2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for gnupg 1.9.15.
5
# Report bugs to <gnupg-devel@gnupg.org>.
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
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
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 \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
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
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
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
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
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
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; }; }
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).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe 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
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
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'"
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'"
237
# We need space, tab and new line, in precisely that order.
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`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
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}
269
# Identity of this package.
271
PACKAGE_TARNAME='gnupg'
272
PACKAGE_VERSION='1.9.15'
273
PACKAGE_STRING='gnupg 1.9.15'
274
PACKAGE_BUGREPORT='gnupg-devel@gnupg.org'
276
ac_unique_file="sm/gpgsm.c"
277
# Factoring default headers for most tests.
278
ac_includes_default="\
281
# include <sys/types.h>
284
# include <sys/stat.h>
295
# if !STDC_HEADERS && HAVE_MEMORY_H
301
# include <strings.h>
304
# include <inttypes.h>
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'
317
# Initialize some variables set by options.
319
ac_init_version=false
320
# The variables have the same names as the options, with
321
# dashes changed to underlines.
329
program_transform_name=s,x,x,
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'
358
# If the previous option needs an argument, assign it.
359
if test -n "$ac_prev"; then
360
eval "$ac_prev=\$ac_option"
365
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
# Accept the important Cygnus configure options, so we can diagnose typos.
371
-bindir | --bindir | --bindi | --bind | --bin | --bi)
373
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
-build | --build | --buil | --bui | --bu)
377
ac_prev=build_alias ;;
378
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
379
build_alias=$ac_optarg ;;
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 ;;
389
cache_file=config.cache ;;
391
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
datadir=$ac_optarg ;;
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" ;;
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'`
414
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
428
-gas | --gas | --ga | --g)
429
# Obsolete; use --with-gas.
432
-help | --help | --hel | --he | -h)
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 ;;
439
-host | --host | --hos | --ho)
440
ac_prev=host_alias ;;
441
-host=* | --host=* | --hos=* | --ho=*)
442
host_alias=$ac_optarg ;;
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 ;;
451
-infodir | --infodir | --infodi | --infod | --info | --inf)
453
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454
infodir=$ac_optarg ;;
456
-libdir | --libdir | --libdi | --libd)
458
-libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
477
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483
# Obsolete; use --without-fp.
486
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
487
| --no-cr | --no-c | -n)
490
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
491
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
503
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
539
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
| -silent | --silent | --silen | --sile | --sil)
543
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547
sbindir=$ac_optarg ;;
549
-sharedstatedir | --sharedstatedir | --sharedstatedi \
550
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551
| --sharedst | --shareds | --shared | --share | --shar \
553
ac_prev=sharedstatedir ;;
554
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558
sharedstatedir=$ac_optarg ;;
560
-site | --site | --sit)
562
-site=* | --site=* | --sit=*)
565
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
582
-v | -verbose | --verbose | --verbos | --verbo | --verb)
585
-version | --version | --versio | --versi | --vers | -V)
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'`
596
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
611
# Obsolete; use --with-x.
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 ;;
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 ;;
628
-*) { echo "$as_me: error: unrecognized option: $ac_option
629
Try \`$0 --help' for more information." >&2
630
{ (exit 1); exit 1; }; }
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'"
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}
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; }; }
660
# Be sure to have absolute paths.
661
for ac_var in exec_prefix prefix
663
eval ac_val=$`echo $ac_var`
665
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
{ (exit 1); exit 1; }; };;
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
675
eval ac_val=$`echo $ac_var`
677
[\\/$]* | ?:[\\/]* ) ;;
678
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
{ (exit 1); exit 1; }; };;
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.
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
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
test "$silent" = yes && exec 6>/dev/null
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 ||
718
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
/^X\(\/\/\)$/{ s//\1/; q; }
721
/^X\(\/\).*/{ s//\1/; q; }
724
if test ! -r $srcdir/$ac_unique_file; then
728
ac_srcdir_defaulted=no
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; }; }
735
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
{ (exit 1); exit 1; }; }
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}
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
777
# Report the --help message.
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.
783
\`configure' configures gnupg 1.9.15 to adapt to many kinds of systems.
785
Usage: $0 [OPTION]... [VAR=VALUE]...
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.
790
Defaults for the options are specified in brackets.
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 \`..']
806
Installation directories:
807
--prefix=PREFIX install architecture-independent files in PREFIX
809
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
817
For better control, use the options below.
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]
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
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]
848
if test -n "$ac_init_help"; then
849
case $ac_init_help in
850
short | recursive ) echo "Configuration of gnupg 1.9.15:";;
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
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
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
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>
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.
924
Report bugs to <gnupg-devel@gnupg.org>.
928
if test "$ac_init_help" = "recursive"; then
929
# If there are subdirs, report their specific --help.
931
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
932
test -d $ac_dir || continue
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'`
940
ac_dir_suffix= ac_top_builddir=
944
.) # No --srcdir option. We are building in place.
946
if test -z "$ac_top_builddir"; then
949
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951
[\\/]* | ?:[\\/]* ) # Absolute path.
952
ac_srcdir=$srcdir$ac_dir_suffix;
953
ac_top_srcdir=$srcdir ;;
955
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
956
ac_top_srcdir=$ac_top_builddir$srcdir ;;
959
# Do not use `cd foo && pwd` to compute absolute paths, because
960
# the directories may not exist.
962
.) ac_abs_builddir="$ac_dir";;
965
.) ac_abs_builddir=`pwd`;;
966
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
967
*) ac_abs_builddir=`pwd`/"$ac_dir";;
970
case $ac_abs_builddir in
971
.) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
979
case $ac_abs_builddir in
980
.) ac_abs_srcdir=$ac_srcdir;;
983
.) ac_abs_srcdir=$ac_abs_builddir;;
984
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
985
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
988
case $ac_abs_builddir in
989
.) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
999
# Check for guested configure; otherwise get Cygnus style configure.
1000
if test -f $ac_srcdir/configure.gnu; then
1002
$SHELL $ac_srcdir/configure.gnu --help=recursive
1003
elif test -f $ac_srcdir/configure; then
1005
$SHELL $ac_srcdir/configure --help=recursive
1006
elif test -f $ac_srcdir/configure.ac ||
1007
test -f $ac_srcdir/configure.in; then
1009
$ac_configure --help
1011
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017
test -n "$ac_init_help" && exit 0
1018
if $ac_init_version; then
1020
gnupg configure 1.9.15
1021
generated by GNU Autoconf 2.59
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.
1031
This file contains any messages produced by compilers while
1032
running configure, to aid debugging if configure makes a mistake.
1034
It was created by gnupg $as_me 1.9.15, which was
1035
generated by GNU Autoconf 2.59. Invocation command line was
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`
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`
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`
1065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069
test -z "$as_dir" && as_dir=.
1070
echo "PATH: $as_dir"
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.
1094
ac_must_keep_next=false
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)
1104
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1105
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1108
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
1123
-* ) ac_must_keep_next=true ;;
1126
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1127
# Get rid of the leading space.
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; }
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.
1147
## ---------------- ##
1148
## Cache variables. ##
1149
## ---------------- ##
1152
# The following way of writing the cache mishandles newlines in values,
1155
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1158
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1159
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170
## ----------------- ##
1171
## Output variables. ##
1172
## ----------------- ##
1175
for ac_var in $ac_subst_vars
1177
eval ac_val=$`echo $ac_var`
1178
echo "$ac_var='"'"'$ac_val'"'"'"
1182
if test -n "$ac_subst_files"; then
1189
for ac_var in $ac_subst_files
1191
eval ac_val=$`echo $ac_var`
1192
echo "$ac_var='"'"'$ac_val'"'"'"
1197
if test -s confdefs.h; then
1204
sed "/^$/d" confdefs.h | sort
1207
test "$ac_signal" != 0 &&
1208
echo "$as_me: caught signal $ac_signal"
1209
echo "$as_me: exit $exit_status"
1211
rm -f core *.core &&
1212
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1215
for ac_signal in 1 2 13 15; do
1216
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1225
# Predefined preprocessor variables.
1227
cat >>confdefs.h <<_ACEOF
1228
#define PACKAGE_NAME "$PACKAGE_NAME"
1232
cat >>confdefs.h <<_ACEOF
1233
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237
cat >>confdefs.h <<_ACEOF
1238
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1242
cat >>confdefs.h <<_ACEOF
1243
#define PACKAGE_STRING "$PACKAGE_STRING"
1247
cat >>confdefs.h <<_ACEOF
1248
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1258
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1277
[\\/]* | ?:[\\/]* ) . $cache_file;;
1278
*) . ./$cache_file;;
1282
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1283
echo "$as_me: creating cache $cache_file" >&6;}
1287
# Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1317
# Pass precious variables to config.status.
1318
if test "$ac_new_set" = set; then
1320
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322
*) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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
1373
development_version=yes
1374
NEED_GPG_ERROR_VERSION=1.0
1376
NEED_LIBGCRYPT_API=1
1377
NEED_LIBGCRYPT_VERSION=1.1.94
1379
NEED_LIBASSUAN_VERSION=0.6.9
1381
NEED_KSBA_VERSION=0.9.7
1383
NEED_OPENSC_VERSION=0.8.0
1387
PACKAGE=$PACKAGE_NAME
1388
PACKAGE_GT=${PACKAGE_NAME}2
1389
VERSION=$PACKAGE_VERSION
1392
for ac_dir in scripts $srcdir/scripts; do
1393
if test -f $ac_dir/install-sh; then
1395
ac_install_sh="$ac_aux_dir/install-sh -c"
1397
elif test -f $ac_dir/install.sh; then
1399
ac_install_sh="$ac_aux_dir/install.sh -c"
1401
elif test -f $ac_dir/shtool; then
1403
ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
1417
ac_config_headers="$ac_config_headers config.h"
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; }; }
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
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; }; }
1443
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1444
echo "${ECHO_T}$ac_cv_build" >&6
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/'`
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
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; }; }
1465
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1466
echo "${ECHO_T}$ac_cv_host" >&6
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/'`
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
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; }; }
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/'`
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" = \
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
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
1521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525
test -z "$as_dir" && as_dir=.
1526
# Account for people who put trailing slashes in PATH elements.
1528
./ | .// | /cC/* | \
1529
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1530
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
1548
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1560
if test "${ac_cv_path_install+set}" = set; then
1561
INSTALL=$ac_cv_path_install
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
1570
echo "$as_me:$LINENO: result: $INSTALL" >&5
1571
echo "${ECHO_T}$INSTALL" >&6
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}'
1577
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1579
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
1592
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1593
if test "$*" = "X"; then
1595
set X `ls -t $srcdir/configure conftest.file`
1598
if test "$*" != "X $srcdir/configure conftest.file" \
1599
&& test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
1612
test "$2" = conftest.file
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; }; }
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,$//
1636
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1640
# expand $ac_aux_dir to an absolute path
1641
am_aux_dir=`cd $ac_aux_dir && pwd`
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 "
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;}
1653
for ac_prog in gawk mawk nawk awk
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
1662
if test -n "$AWK"; then
1663
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1682
if test -n "$AWK"; then
1683
echo "$as_me:$LINENO: result: $AWK" >&5
1684
echo "${ECHO_T}$AWK" >&6
1686
echo "$as_me:$LINENO: result: no" >&5
1687
echo "${ECHO_T}no" >&6
1690
test -n "$AWK" && break
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
1699
cat >conftest.make <<\_ACEOF
1701
@echo 'ac_maketemp="$(MAKE)"'
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
1708
eval ac_cv_prog_make_${ac_make}_set=no
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
1717
echo "$as_me:$LINENO: result: no" >&5
1718
echo "${ECHO_T}no" >&6
1719
SET_MAKE="MAKE=${MAKE-make}"
1722
rm -rf .tst 2>/dev/null
1723
mkdir .tst 2>/dev/null
1724
if test -d .tst; then
1729
rmdir .tst 2>/dev/null
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; }; }
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'
1749
# Define the identity of the package.
1754
cat >>confdefs.h <<_ACEOF
1755
#define PACKAGE "$PACKAGE"
1759
cat >>confdefs.h <<_ACEOF
1760
#define VERSION "$VERSION"
1763
# Some tools Automake needs.
1765
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1768
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1771
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1774
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1777
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1780
AMTAR=${AMTAR-"${am_missing_run}tar"}
1782
install_sh=${install_sh-"$am_aux_dir/install-sh"}
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
1797
if test -n "$STRIP"; then
1798
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1821
echo "$as_me:$LINENO: result: no" >&5
1822
echo "${ECHO_T}no" >&6
1826
if test -z "$ac_cv_prog_STRIP"; then
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
1835
if test -n "$ac_ct_STRIP"; then
1836
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1852
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
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
1860
echo "$as_me:$LINENO: result: no" >&5
1861
echo "${ECHO_T}no" >&6
1866
STRIP="$ac_cv_prog_STRIP"
1870
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1872
# We need awk for the "check" target. The system "awk" is bad on
1879
cat >>confdefs.h <<\_ACEOF
1880
#define _GNU_SOURCE 1
1885
# Some status variables to give feedback at the end of a configure run
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
1903
case "$build_gpg" in
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; }; }
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
1923
case "$build_gpgsm" in
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; }; }
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
1943
case "$build_agent" in
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; }; }
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
1963
case "$build_scdaemon" in
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; }; }
1979
cat >>confdefs.h <<_ACEOF
1980
#define PACKAGE "$PACKAGE"
1984
cat >>confdefs.h <<_ACEOF
1985
#define PACKAGE_GT "$PACKAGE_GT"
1989
cat >>confdefs.h <<_ACEOF
1990
#define VERSION "$VERSION"
1994
cat >>confdefs.h <<_ACEOF
1995
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999
cat >>confdefs.h <<_ACEOF
2000
#define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
2004
cat >>confdefs.h <<_ACEOF
2005
#define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
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.
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"
2027
if test -n "$GNUPG_AGENT_PGM"; then
2028
GNUPG_AGENT_PGM_TRUE=
2029
GNUPG_AGENT_PGM_FALSE='#'
2031
GNUPG_AGENT_PGM_TRUE='#'
2032
GNUPG_AGENT_PGM_FALSE=
2035
show_gnupg_agent_pgm="(default)"
2036
test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
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"
2044
GNUPG_PINENTRY_PGM=""
2049
if test -n "$GNUPG_PINENTRY_PGM"; then
2050
GNUPG_PINENTRY_PGM_TRUE=
2051
GNUPG_PINENTRY_PGM_FALSE='#'
2053
GNUPG_PINENTRY_PGM_TRUE='#'
2054
GNUPG_PINENTRY_PGM_FALSE=
2057
show_gnupg_pinentry_pgm="(default)"
2058
test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
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"
2067
GNUPG_SCDAEMON_PGM=""
2072
if test -n "$GNUPG_SCDAEMON_PGM"; then
2073
GNUPG_SCDAEMON_PGM_TRUE=
2074
GNUPG_SCDAEMON_PGM_FALSE='#'
2076
GNUPG_SCDAEMON_PGM_TRUE='#'
2077
GNUPG_SCDAEMON_PGM_FALSE=
2080
show_gnupg_scdaemon_pgm="(default)"
2081
test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
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"
2090
GNUPG_DIRMNGR_PGM=""
2095
if test -n "$GNUPG_DIRMNGR_PGM"; then
2096
GNUPG_DIRMNGR_PGM_TRUE=
2097
GNUPG_DIRMNGR_PGM_FALSE='#'
2099
GNUPG_DIRMNGR_PGM_TRUE='#'
2100
GNUPG_DIRMNGR_PGM_FALSE=
2103
show_gnupg_dirmngr_pgm="(default)"
2104
test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
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"
2112
GNUPG_PROTECT_TOOL_PGM=""
2117
if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
2118
GNUPG_PROTECT_TOOL_PGM_TRUE=
2119
GNUPG_PROTECT_TOOL_PGM_FALSE='#'
2121
GNUPG_PROTECT_TOOL_PGM_TRUE='#'
2122
GNUPG_PROTECT_TOOL_PGM_FALSE=
2125
show_gnupg_protect_tool_pgm="(default)"
2126
test -n "$GNUPG_PROTECT_TOOL_PGM" \
2127
&& show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
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
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"
2150
echo "$as_me:$LINENO: result: $use_exec" >&5
2151
echo "${ECHO_T}$use_exec" >&6
2152
if test "$use_exec" = no ; then
2154
cat >>confdefs.h <<\_ACEOF
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
2168
cat >>confdefs.h <<\_ACEOF
2169
#define DISABLE_PHOTO_VIEWER 1
2176
gnupg_cv_enable_photo_viewers=$enableval
2177
echo "$as_me:$LINENO: result: $enableval" >&5
2178
echo "${ECHO_T}$enableval" >&6
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
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
2189
elif test "$withval" != no ; then
2191
cat >>confdefs.h <<_ACEOF
2192
#define FIXED_PHOTO_VIEWER "$withval"
2199
echo "$as_me:$LINENO: result: $withval" >&5
2200
echo "${ECHO_T}$withval" >&6
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
2210
cat >>confdefs.h <<\_ACEOF
2211
#define DISABLE_KEYSERVER_HELPERS 1
2218
gnupg_cv_enable_keyserver_helpers=$enableval
2219
echo "$as_me:$LINENO: result: $enableval" >&5
2220
echo "${ECHO_T}$enableval" >&6
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"
2232
echo "$as_me:$LINENO: result: $try_ldap" >&5
2233
echo "${ECHO_T}$try_ldap" >&6
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"
2244
echo "$as_me:$LINENO: result: $try_hkp" >&5
2245
echo "${ECHO_T}$try_hkp" >&6
2247
if test "$try_hkp" = yes ; then
2248
GPGKEYS_HKP="gpgkeys_hkp$EXEEXT"
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
2261
echo "$as_me:$LINENO: result: $try_mailto" >&5
2262
echo "${ECHO_T}$try_mailto" >&6
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
2272
cat >>confdefs.h <<\_ACEOF
2273
#define DISABLE_KEYSERVER_PATH 1
2280
echo "$as_me:$LINENO: result: $enableval" >&5
2281
echo "${ECHO_T}$enableval" >&6
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
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"
2294
echo "$as_me:$LINENO: result: $use_capabilities" >&5
2295
echo "${ECHO_T}$use_capabilities" >&6
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
2308
USE_MAINTAINER_MODE=no
2310
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2311
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2314
if test $USE_MAINTAINER_MODE = yes; then
2315
MAINTAINER_MODE_TRUE=
2316
MAINTAINER_MODE_FALSE='#'
2318
MAINTAINER_MODE_TRUE='#'
2319
MAINTAINER_MODE_FALSE=
2322
MAINT=$MAINTAINER_MODE_TRUE
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
2333
cat >conftest.make <<\_ACEOF
2335
@echo 'ac_maketemp="$(MAKE)"'
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
2342
eval ac_cv_prog_make_${ac_make}_set=no
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
2351
echo "$as_me:$LINENO: result: no" >&5
2352
echo "${ECHO_T}no" >&6
2353
SET_MAKE="MAKE=${MAKE-make}"
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
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
2367
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2368
if test "$*" = "X"; then
2370
set X `ls -t $srcdir/configure conftest.file`
2373
if test "$*" != "X $srcdir/configure conftest.file" \
2374
&& test "$*" != "X conftest.file $srcdir/configure"; then
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; }; }
2387
test "$2" = conftest.file
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; }; }
2399
echo "$as_me:$LINENO: result: yes" >&5
2400
echo "${ECHO_T}yes" >&6
2401
missing_dir=`cd $ac_aux_dir && pwd`
2403
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2406
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2409
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
2412
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2415
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2417
for ac_prog in gawk mawk nawk awk
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
2426
if test -n "$AWK"; then
2427
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2446
if test -n "$AWK"; then
2447
echo "$as_me:$LINENO: result: $AWK" >&5
2448
echo "${ECHO_T}$AWK" >&6
2450
echo "$as_me:$LINENO: result: no" >&5
2451
echo "${ECHO_T}no" >&6
2454
test -n "$AWK" && break
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
2470
if test -n "$CC"; then
2471
ac_cv_prog_CC="$CC" # Let the user override the test.
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2490
if test -n "$CC"; then
2491
echo "$as_me:$LINENO: result: $CC" >&5
2492
echo "${ECHO_T}$CC" >&6
2494
echo "$as_me:$LINENO: result: no" >&5
2495
echo "${ECHO_T}no" >&6
2499
if test -z "$ac_cv_prog_CC"; then
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
2508
if test -n "$ac_ct_CC"; then
2509
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2532
echo "$as_me:$LINENO: result: no" >&5
2533
echo "${ECHO_T}no" >&6
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
2550
if test -n "$CC"; then
2551
ac_cv_prog_CC="$CC" # Let the user override the test.
2553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2570
if test -n "$CC"; then
2571
echo "$as_me:$LINENO: result: $CC" >&5
2572
echo "${ECHO_T}$CC" >&6
2574
echo "$as_me:$LINENO: result: no" >&5
2575
echo "${ECHO_T}no" >&6
2579
if test -z "$ac_cv_prog_CC"; then
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
2588
if test -n "$ac_ct_CC"; then
2589
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2612
echo "$as_me:$LINENO: result: no" >&5
2613
echo "${ECHO_T}no" >&6
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
2630
if test -n "$CC"; then
2631
ac_cv_prog_CC="$CC" # Let the user override the test.
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2646
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2661
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2667
if test -n "$CC"; then
2668
echo "$as_me:$LINENO: result: $CC" >&5
2669
echo "${ECHO_T}$CC" >&6
2671
echo "$as_me:$LINENO: result: no" >&5
2672
echo "${ECHO_T}no" >&6
2676
if test -z "$CC"; then
2677
if test -n "$ac_tool_prefix"; then
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
2687
if test -n "$CC"; then
2688
ac_cv_prog_CC="$CC" # Let the user override the test.
2690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2707
if test -n "$CC"; then
2708
echo "$as_me:$LINENO: result: $CC" >&5
2709
echo "${ECHO_T}$CC" >&6
2711
echo "$as_me:$LINENO: result: no" >&5
2712
echo "${ECHO_T}no" >&6
2715
test -n "$CC" && break
2718
if test -z "$CC"; then
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
2729
if test -n "$ac_ct_CC"; then
2730
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
2753
echo "$as_me:$LINENO: result: no" >&5
2754
echo "${ECHO_T}no" >&6
2757
test -n "$ac_ct_CC" && break
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; }; }
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
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
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
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }
2792
cat >conftest.$ac_ext <<_ACEOF
2795
cat confdefs.h >>conftest.$ac_ext
2796
cat >>conftest.$ac_ext <<_ACEOF
2797
/* end confdefs.h. */
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
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
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
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.
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
2830
test -f "$ac_file" || continue
2832
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2835
# This is the source file.
2838
# We found the default executable, but exeext='' is most
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.
2853
echo "$as_me: failed program was:" >&5
2854
sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2863
ac_exeext=$ac_cv_exeext
2864
echo "$as_me:$LINENO: result: $ac_file" >&5
2865
echo "${ECHO_T}$ac_file" >&6
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
2878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879
(exit $ac_status); }; }; then
2882
if test "$cross_compiling" = maybe; then
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; }; }
2895
echo "$as_me:$LINENO: result: yes" >&5
2896
echo "${ECHO_T}yes" >&6
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
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
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
2918
for ac_file in conftest.exe conftest conftest.*; do
2919
test -f "$ac_file" || continue
2921
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2922
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
2940
rm -f conftest.$ac_ext
2941
EXEEXT=$ac_cv_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
2948
cat >conftest.$ac_ext <<_ACEOF
2951
cat confdefs.h >>conftest.$ac_ext
2952
cat >>conftest.$ac_ext <<_ACEOF
2953
/* end confdefs.h. */
2963
rm -f conftest.o conftest.obj
2964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965
(eval $ac_compile) 2>&5
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
2971
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2972
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977
echo "$as_me: failed program was:" >&5
2978
sed 's/^/| /' conftest.$ac_ext >&5
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; }; }
2987
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2990
echo "${ECHO_T}$ac_cv_objext" >&6
2991
OBJEXT=$ac_cv_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
2998
cat >conftest.$ac_ext <<_ACEOF
3001
cat confdefs.h >>conftest.$ac_ext
3002
cat >>conftest.$ac_ext <<_ACEOF
3003
/* end confdefs.h. */
3016
rm -f conftest.$ac_objext
3017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018
(eval $ac_compile) 2>conftest.er1
3020
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036
(exit $ac_status); }; }; then
3039
echo "$as_me: failed program was:" >&5
3040
sed 's/^/| /' conftest.$ac_ext >&5
3044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045
ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
3059
cat >conftest.$ac_ext <<_ACEOF
3062
cat confdefs.h >>conftest.$ac_ext
3063
cat >>conftest.$ac_ext <<_ACEOF
3064
/* end confdefs.h. */
3074
rm -f conftest.$ac_objext
3075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076
(eval $ac_compile) 2>conftest.er1
3078
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094
(exit $ac_status); }; }; then
3097
echo "$as_me: failed program was:" >&5
3098
sed 's/^/| /' conftest.$ac_ext >&5
3102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
3115
if test "$GCC" = yes; then
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
3126
ac_cv_prog_cc_stdc=no
3128
cat >conftest.$ac_ext <<_ACEOF
3131
cat confdefs.h >>conftest.$ac_ext
3132
cat >>conftest.$ac_ext <<_ACEOF
3133
/* end confdefs.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)
3147
static char *f (char * (*g) (char **, int), char **p, ...)
3152
s = g (p, va_arg (v,int));
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];
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);
3175
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
3194
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
(exit $ac_status); }; }; then
3211
ac_cv_prog_cc_stdc=$ac_arg
3214
echo "$as_me: failed program was:" >&5
3215
sed 's/^/| /' conftest.$ac_ext >&5
3218
rm -f conftest.err conftest.$ac_objext
3220
rm -f conftest.$ac_ext conftest.$ac_objext
3225
case "x$ac_cv_prog_cc_stdc" in
3227
echo "$as_me:$LINENO: result: none needed" >&5
3228
echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
3244
rm -f conftest.$ac_objext
3245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246
(eval $ac_compile) 2>conftest.er1
3248
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264
(exit $ac_status); }; }; then
3265
for ac_declaration in \
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);' \
3273
cat >conftest.$ac_ext <<_ACEOF
3276
cat confdefs.h >>conftest.$ac_ext
3277
cat >>conftest.$ac_ext <<_ACEOF
3278
/* end confdefs.h. */
3289
rm -f conftest.$ac_objext
3290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291
(eval $ac_compile) 2>conftest.er1
3293
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); }; }; then
3312
echo "$as_me: failed program was:" >&5
3313
sed 's/^/| /' conftest.$ac_ext >&5
3317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318
cat >conftest.$ac_ext <<_ACEOF
3321
cat confdefs.h >>conftest.$ac_ext
3322
cat >>conftest.$ac_ext <<_ACEOF
3323
/* end confdefs.h. */
3333
rm -f conftest.$ac_objext
3334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335
(eval $ac_compile) 2>conftest.er1
3337
grep -v '^ *+' conftest.er1 >conftest.err
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
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
3352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353
(exit $ac_status); }; }; then
3356
echo "$as_me: failed program was:" >&5
3357
sed 's/^/| /' conftest.$ac_ext >&5
3360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363
if test -n "$ac_declaration"; then
3364
echo '#ifdef __cplusplus' >>confdefs.h
3365
echo $ac_declaration >>confdefs.h
3366
echo '#endif' >>confdefs.h
3370
echo "$as_me: failed program was:" >&5
3371
sed 's/^/| /' conftest.$ac_ext >&5
3374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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"
3382
ac_config_commands="$ac_config_commands depfiles"
3385
am_make=${MAKE-make}
3386
cat > confinc << '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
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
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
3420
echo "$as_me:$LINENO: result: $_am_result" >&5
3421
echo "${ECHO_T}$_am_result" >&6
3422
rm -f confinc confmf
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"
3429
if test "x$enable_dependency_tracking" != xno; then
3430
am_depcomp="$ac_aux_dir/depcomp"
3435
if test "x$enable_dependency_tracking" != xno; then
3446
depcc="$CC" am_compiler_list=
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
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
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
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
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`
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.
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.
3485
for i in 1 2 3 4 5 6; do
3486
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
3527
am_cv_CC_dependencies_compiler_type=none
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
3538
test "x$enable_dependency_tracking" != xno \
3539
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3541
am__fastdepCC_FALSE='#'
3543
am__fastdepCC_TRUE='#'
3544
am__fastdepCC_FALSE=
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
3559
if test -z "$CPP"; then
3560
if test "${ac_cv_prog_CPP+set}" = set; then
3561
echo $ECHO_N "(cached) $ECHO_C" >&6
3563
# Double quotes because CPP needs to be expanded
3564
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3567
for ac_c_preproc_warn_flag in '' yes
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
3578
cat confdefs.h >>conftest.$ac_ext
3579
cat >>conftest.$ac_ext <<_ACEOF
3580
/* end confdefs.h. */
3582
# include <limits.h>
3584
# include <assert.h>
3588
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3591
grep -v '^ *+' conftest.er1 >conftest.err
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
3605
if test -z "$ac_cpp_err"; then
3608
echo "$as_me: failed program was:" >&5
3609
sed 's/^/| /' conftest.$ac_ext >&5
3611
# Broken: fails on valid input.
3614
rm -f conftest.err conftest.$ac_ext
3616
# OK, works on sane cases. Now check whether non-existent headers
3617
# can be detected and how.
3618
cat >conftest.$ac_ext <<_ACEOF
3621
cat confdefs.h >>conftest.$ac_ext
3622
cat >>conftest.$ac_ext <<_ACEOF
3623
/* end confdefs.h. */
3624
#include <ac_nonexistent.h>
3626
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3627
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3629
grep -v '^ *+' conftest.er1 >conftest.err
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
3643
if test -z "$ac_cpp_err"; then
3644
# Broken: success on invalid input.
3647
echo "$as_me: failed program was:" >&5
3648
sed 's/^/| /' conftest.$ac_ext >&5
3650
# Passes both tests.
3654
rm -f conftest.err conftest.$ac_ext
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
3671
echo "$as_me:$LINENO: result: $CPP" >&5
3672
echo "${ECHO_T}$CPP" >&6
3674
for ac_c_preproc_warn_flag in '' yes
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
3685
cat confdefs.h >>conftest.$ac_ext
3686
cat >>conftest.$ac_ext <<_ACEOF
3687
/* end confdefs.h. */
3689
# include <limits.h>
3691
# include <assert.h>
3695
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3698
grep -v '^ *+' conftest.er1 >conftest.err
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
3712
if test -z "$ac_cpp_err"; then
3715
echo "$as_me: failed program was:" >&5
3716
sed 's/^/| /' conftest.$ac_ext >&5
3718
# Broken: fails on valid input.
3721
rm -f conftest.err conftest.$ac_ext
3723
# OK, works on sane cases. Now check whether non-existent headers
3724
# can be detected and how.
3725
cat >conftest.$ac_ext <<_ACEOF
3728
cat confdefs.h >>conftest.$ac_ext
3729
cat >>conftest.$ac_ext <<_ACEOF
3730
/* end confdefs.h. */
3731
#include <ac_nonexistent.h>
3733
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736
grep -v '^ *+' conftest.er1 >conftest.err
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
3750
if test -z "$ac_cpp_err"; then
3751
# Broken: success on invalid input.
3754
echo "$as_me: failed program was:" >&5
3755
sed 's/^/| /' conftest.$ac_ext >&5
3757
# Passes both tests.
3761
rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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
3801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805
test -z "$as_dir" && as_dir=.
3806
# Account for people who put trailing slashes in PATH elements.
3808
./ | .// | /cC/* | \
3809
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3810
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
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.
3828
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3840
if test "${ac_cv_path_install+set}" = set; then
3841
INSTALL=$ac_cv_path_install
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
3850
echo "$as_me:$LINENO: result: $INSTALL" >&5
3851
echo "${ECHO_T}$INSTALL" >&6
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}'
3857
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3859
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3861
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3862
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3864
if test "$LN_S" = "ln -s"; then
3865
echo "$as_me:$LINENO: result: yes" >&5
3866
echo "${ECHO_T}yes" >&6
3868
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3869
echo "${ECHO_T}no, using $LN_S" >&6
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
3878
cat >conftest.make <<\_ACEOF
3880
@echo 'ac_maketemp="$(MAKE)"'
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
3887
eval ac_cv_prog_make_${ac_make}_set=no
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
3896
echo "$as_me:$LINENO: result: no" >&5
3897
echo "${ECHO_T}no" >&6
3898
SET_MAKE="MAKE=${MAKE-make}"
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
3909
if test -n "$RANLIB"; then
3910
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
3933
echo "$as_me:$LINENO: result: no" >&5
3934
echo "${ECHO_T}no" >&6
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
3947
if test -n "$ac_ct_RANLIB"; then
3948
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3964
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
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
3972
echo "$as_me:$LINENO: result: no" >&5
3973
echo "${ECHO_T}no" >&6
3976
RANLIB=$ac_ct_RANLIB
3978
RANLIB="$ac_cv_prog_RANLIB"
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
3989
if test -n "$AR"; then
3990
ac_cv_prog_AR="$AR" # Let the user override the test.
3992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4009
if test -n "$AR"; then
4010
echo "$as_me:$LINENO: result: $AR" >&5
4011
echo "${ECHO_T}$AR" >&6
4013
echo "$as_me:$LINENO: result: no" >&5
4014
echo "${ECHO_T}no" >&6
4018
if test -z "$ac_cv_prog_AR"; then
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
4027
if test -n "$ac_ct_AR"; then
4028
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4044
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":"
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
4052
echo "$as_me:$LINENO: result: no" >&5
4053
echo "${ECHO_T}no" >&6
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
4070
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4090
PERL=$ac_cv_path_PERL
4092
if test -n "$PERL"; then
4093
echo "$as_me:$LINENO: result: $PERL" >&5
4094
echo "${ECHO_T}$PERL" >&6
4096
echo "$as_me:$LINENO: result: no" >&5
4097
echo "${ECHO_T}no" >&6
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
4107
ac_check_lib_save_LIBS=$LIBS
4108
LIBS="-lcposix $LIBS"
4109
cat >conftest.$ac_ext <<_ACEOF
4112
cat confdefs.h >>conftest.$ac_ext
4113
cat >>conftest.$ac_ext <<_ACEOF
4114
/* end confdefs.h. */
4116
/* Override any gcc2 internal prototype to avoid an error. */
4120
/* We use char because int might match the return type of a gcc2
4121
builtin and then its argument prototype would still apply. */
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
4135
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
(exit $ac_status); }; }; then
4152
ac_cv_lib_cposix_strerror=yes
4154
echo "$as_me: failed program was:" >&5
4155
sed 's/^/| /' conftest.$ac_ext >&5
4157
ac_cv_lib_cposix_strerror=no
4159
rm -f conftest.err conftest.$ac_objext \
4160
conftest$ac_exeext conftest.$ac_ext
4161
LIBS=$ac_check_lib_save_LIBS
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"
4171
# Check whether --enable-largefile or --disable-largefile was given.
4172
if test "${enable_largefile+set}" = set; then
4173
enableval="$enable_largefile"
4176
if test "$enable_largefile" != no; then
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
4183
ac_cv_sys_largefile_CC=no
4184
if test "$GCC" != yes; then
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
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)
4212
rm -f conftest.$ac_objext
4213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214
(eval $ac_compile) 2>conftest.er1
4216
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232
(exit $ac_status); }; }; then
4235
echo "$as_me: failed program was:" >&5
4236
sed 's/^/| /' conftest.$ac_ext >&5
4239
rm -f conftest.err conftest.$ac_objext
4241
rm -f conftest.$ac_objext
4242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4243
(eval $ac_compile) 2>conftest.er1
4245
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); }; }; then
4262
ac_cv_sys_largefile_CC=' -n32'; break
4264
echo "$as_me: failed program was:" >&5
4265
sed 's/^/| /' conftest.$ac_ext >&5
4268
rm -f conftest.err conftest.$ac_objext
4272
rm -f conftest.$ac_ext
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
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
4287
ac_cv_sys_file_offset_bits=no
4288
cat >conftest.$ac_ext <<_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)
4311
rm -f conftest.$ac_objext
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313
(eval $ac_compile) 2>conftest.er1
4315
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331
(exit $ac_status); }; }; then
4334
echo "$as_me: failed program was:" >&5
4335
sed 's/^/| /' conftest.$ac_ext >&5
4338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339
cat >conftest.$ac_ext <<_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)
4363
rm -f conftest.$ac_objext
4364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365
(eval $ac_compile) 2>conftest.er1
4367
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
(exit $ac_status); }; }; then
4384
ac_cv_sys_file_offset_bits=64; break
4386
echo "$as_me: failed program was:" >&5
4387
sed 's/^/| /' conftest.$ac_ext >&5
4390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
4398
cat >>confdefs.h <<_ACEOF
4399
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
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
4410
ac_cv_sys_large_files=no
4411
cat >conftest.$ac_ext <<_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)
4434
rm -f conftest.$ac_objext
4435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436
(eval $ac_compile) 2>conftest.er1
4438
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454
(exit $ac_status); }; }; then
4457
echo "$as_me: failed program was:" >&5
4458
sed 's/^/| /' conftest.$ac_ext >&5
4461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462
cat >conftest.$ac_ext <<_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)
4486
rm -f conftest.$ac_objext
4487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488
(eval $ac_compile) 2>conftest.er1
4490
grep -v '^ *+' conftest.er1 >conftest.err
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
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
4505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
(exit $ac_status); }; }; then
4507
ac_cv_sys_large_files=1; break
4509
echo "$as_me: failed program was:" >&5
4510
sed 's/^/| /' conftest.$ac_ext >&5
4513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
4521
cat >>confdefs.h <<_ACEOF
4522
#define _LARGE_FILES $ac_cv_sys_large_files
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
4536
if test -n "$DOCBOOK_TO_MAN"; then
4537
ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
4539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4553
test -z "$ac_cv_prog_DOCBOOK_TO_MAN" && ac_cv_prog_DOCBOOK_TO_MAN="no"
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
4561
echo "$as_me:$LINENO: result: no" >&5
4562
echo "${ECHO_T}no" >&6
4567
if test "$ac_cv_prog_DOCBOOK_TO_MAN" = yes; then
4568
HAVE_DOCBOOK_TO_MAN_TRUE=
4569
HAVE_DOCBOOK_TO_MAN_FALSE='#'
4571
HAVE_DOCBOOK_TO_MAN_TRUE='#'
4572
HAVE_DOCBOOK_TO_MAN_FALSE=
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
4579
FAQPROG="faqprog.pl"
4584
echo "$as_me:$LINENO: result: $working_faqprog" >&5
4585
echo "${ECHO_T}$working_faqprog" >&6
4589
if test "$working_faqprog" = "yes" ; then
4590
WORKING_FAQPROG_TRUE=
4591
WORKING_FAQPROG_FALSE='#'
4593
WORKING_FAQPROG_TRUE='#'
4594
WORKING_FAQPROG_FALSE=
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
4607
if test -n "$DOCBOOK_TO_TEXI"; then
4608
ac_cv_prog_DOCBOOK_TO_TEXI="$DOCBOOK_TO_TEXI" # Let the user override the test.
4610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4624
test -z "$ac_cv_prog_DOCBOOK_TO_TEXI" && ac_cv_prog_DOCBOOK_TO_TEXI="no"
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
4632
echo "$as_me:$LINENO: result: no" >&5
4633
echo "${ECHO_T}no" >&6
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
4644
echo "$as_me:$LINENO: result: $working_sgmltotexi" >&5
4645
echo "${ECHO_T}$working_sgmltotexi" >&6
4648
if test "$working_sgmltotexi" = "yes" ; then
4649
HAVE_DOCBOOK_TO_TEXI_TRUE=
4650
HAVE_DOCBOOK_TO_TEXI_FALSE='#'
4652
HAVE_DOCBOOK_TO_TEXI_TRUE='#'
4653
HAVE_DOCBOOK_TO_TEXI_FALSE=
4660
have_dosish_system=no
4664
# special stuff for Windoze NT
4665
ac_cv_have_dev_random=no
4667
cat >>confdefs.h <<\_ACEOF
4668
#define USE_ONLY_8DOT3 1
4672
cat >>confdefs.h <<\_ACEOF
4673
#define HAVE_DRIVE_LETTERS 1
4677
cat >>confdefs.h <<\_ACEOF
4678
#define USE_SIMPLE_GETTEXT 1
4681
have_dosish_system=yes
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
4692
have_dosish_system=yes
4697
# DOS with the DJGPP environment
4698
ac_cv_have_dev_random=no
4699
cat >>confdefs.h <<\_ACEOF
4700
#define HAVE_DRIVE_LETTERS 1
4703
have_dosish_system=yes
4709
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4710
LDFLAGS="$LDFLAGS -L/usr/local/lib"
4714
if test -z "$GCC" ; then
4715
CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
4719
if test -z "$GCC" ; then
4720
# Suppress all warnings
4721
# to get rid of the unsigned/signed char mismatch warnings.
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"
4740
if test "$have_dosish_system" = yes; then
4742
cat >>confdefs.h <<\_ACEOF
4743
#define HAVE_DOSISH_SYSTEM 1
4749
if test "$have_dosish_system" = yes; then
4750
HAVE_DOSISH_SYSTEM_TRUE=
4751
HAVE_DOSISH_SYSTEM_FALSE='#'
4753
HAVE_DOSISH_SYSTEM_TRUE='#'
4754
HAVE_DOSISH_SYSTEM_FALSE=
4758
if test "$have_w32_system" = yes; then
4760
cat >>confdefs.h <<\_ACEOF
4761
#define HAVE_W32_SYSTEM 1
4767
if test "$have_w32_system" = yes; then
4768
HAVE_W32_SYSTEM_TRUE=
4769
HAVE_W32_SYSTEM_FALSE='#'
4771
HAVE_W32_SYSTEM_TRUE='#'
4772
HAVE_W32_SYSTEM_FALSE=
4779
# Checks for libraries.
4784
# libgpg-error is a library with error codes shared between GnuPG
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"
4793
gpg_error_config_prefix=""
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
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
4808
case $GPG_ERROR_CONFIG in
4810
ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
4813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4827
test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
4831
GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
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
4837
echo "$as_me:$LINENO: result: no" >&5
4838
echo "${ECHO_T}no" >&6
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
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
4858
if test "$major" -eq "$req_major"; then
4859
if test "$minor" -ge "$req_minor"; then
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
4874
echo "$as_me:$LINENO: result: no" >&5
4875
echo "${ECHO_T}no" >&6
4884
# Libgcrypt is our generic crypto library
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"
4892
libgcrypt_config_prefix=""
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
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
4907
case $LIBGCRYPT_CONFIG in
4909
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
4912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
4926
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
4930
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
4932
if test -n "$LIBGCRYPT_CONFIG"; then
4933
echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
4934
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6
4936
echo "$as_me:$LINENO: result: no" >&5
4937
echo "${ECHO_T}no" >&6
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/'`
4946
min_libgcrypt_version="$tmp"
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
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
4969
if test "$major" -eq "$req_major"; then
4970
if test "$minor" -gt "$req_minor"; then
4973
if test "$minor" -eq "$req_minor"; then
4974
if test "$micro" -ge "$req_micro"; then
4982
if test $ok = yes; then
4983
echo "$as_me:$LINENO: result: yes" >&5
4984
echo "${ECHO_T}yes" >&6
4986
echo "$as_me:$LINENO: result: no" >&5
4987
echo "${ECHO_T}no" >&6
4989
if test $ok = yes; then
4990
# If we have a recent libgcrypt, we should also check that the
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
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
5008
if test $ok = yes; then
5009
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
5010
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
5023
# libassuan is used for IPC
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"
5031
libassuan_config_prefix=""
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
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
5047
case $LIBASSUAN_CONFIG in
5049
ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
5052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5066
test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
5070
LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
5072
if test -n "$LIBASSUAN_CONFIG"; then
5073
echo "$as_me:$LINENO: result: $LIBASSUAN_CONFIG" >&5
5074
echo "${ECHO_T}$LIBASSUAN_CONFIG" >&6
5076
echo "$as_me:$LINENO: result: no" >&5
5077
echo "${ECHO_T}no" >&6
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
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
5101
if test "$major" -eq "$req_major"; then
5102
if test "$minor" -gt "$req_minor"; then
5105
if test "$minor" -eq "$req_minor"; then
5106
if test "$micro" -ge "$req_micro"; then
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
5123
echo "$as_me:$LINENO: result: no" >&5
5124
echo "${ECHO_T}no" >&6
5133
# libksba is our X.509 support library
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"
5141
ksba_config_prefix=""
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
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
5157
case $KSBA_CONFIG in
5159
ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
5162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5176
test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
5180
KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
5182
if test -n "$KSBA_CONFIG"; then
5183
echo "$as_me:$LINENO: result: $KSBA_CONFIG" >&5
5184
echo "${ECHO_T}$KSBA_CONFIG" >&6
5186
echo "$as_me:$LINENO: result: no" >&5
5187
echo "${ECHO_T}no" >&6
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
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
5211
if test "$major" -eq "$req_major"; then
5212
if test "$minor" -gt "$req_minor"; then
5215
if test "$minor" -eq "$req_minor"; then
5216
if test "$micro" -ge "$req_micro"; then
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
5233
echo "$as_me:$LINENO: result: no" >&5
5234
echo "${ECHO_T}no" >&6
5242
# libusb allows us to use the integrated CCID smartcard reader driver.
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
5249
ac_check_lib_save_LIBS=$LIBS
5251
cat >conftest.$ac_ext <<_ACEOF
5254
cat confdefs.h >>conftest.$ac_ext
5255
cat >>conftest.$ac_ext <<_ACEOF
5256
/* end confdefs.h. */
5258
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
5277
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
(exit $ac_status); }; }; then
5294
ac_cv_lib_usb_usb_bulk_write=yes
5296
echo "$as_me: failed program was:" >&5
5297
sed 's/^/| /' conftest.$ac_ext >&5
5299
ac_cv_lib_usb_usb_bulk_write=no
5301
rm -f conftest.err conftest.$ac_objext \
5302
conftest$ac_exeext conftest.$ac_ext
5303
LIBS=$ac_check_lib_save_LIBS
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"
5310
cat >>confdefs.h <<\_ACEOF
5311
#define HAVE_LIBUSB 1
5319
for ac_func in usb_create_match
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
5327
cat >conftest.$ac_ext <<_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
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. */
5343
# include <limits.h>
5345
# include <assert.h>
5350
/* Override any gcc2 internal prototype to avoid an error. */
5355
/* We use char because int might match the return type of a gcc2
5356
builtin and then its argument prototype would still apply. */
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)
5364
char (*f) () = $ac_func;
5373
return f != $ac_func;
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
5382
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
(exit $ac_status); }; }; then
5399
eval "$as_ac_var=yes"
5401
echo "$as_me: failed program was:" >&5
5402
sed 's/^/| /' conftest.$ac_ext >&5
5404
eval "$as_ac_var=no"
5406
rm -f conftest.err conftest.$ac_objext \
5407
conftest$ac_exeext conftest.$ac_ext
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
5421
# Check wether it is necessary to link against libdl.
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
5429
ac_func_search_save_LIBS=$LIBS
5430
ac_cv_search_dlopen=no
5431
cat >conftest.$ac_ext <<_ACEOF
5434
cat confdefs.h >>conftest.$ac_ext
5435
cat >>conftest.$ac_ext <<_ACEOF
5436
/* end confdefs.h. */
5438
/* Override any gcc2 internal prototype to avoid an error. */
5442
/* We use char because int might match the return type of a gcc2
5443
builtin and then its argument prototype would still apply. */
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
5457
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473
(exit $ac_status); }; }; then
5474
ac_cv_search_dlopen="none required"
5476
echo "$as_me: failed program was:" >&5
5477
sed 's/^/| /' conftest.$ac_ext >&5
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
5488
cat confdefs.h >>conftest.$ac_ext
5489
cat >>conftest.$ac_ext <<_ACEOF
5490
/* end confdefs.h. */
5492
/* Override any gcc2 internal prototype to avoid an error. */
5496
/* We use char because int might match the return type of a gcc2
5497
builtin and then its argument prototype would still apply. */
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
5511
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527
(exit $ac_status); }; }; then
5528
ac_cv_search_dlopen="-l$ac_lib"
5531
echo "$as_me: failed program was:" >&5
5532
sed 's/^/| /' conftest.$ac_ext >&5
5535
rm -f conftest.err conftest.$ac_objext \
5536
conftest$ac_exeext conftest.$ac_ext
5539
LIBS=$ac_func_search_save_LIBS
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"
5552
# OpenSC is needed by the SCdaemon - if it is not availbale we can only
5553
# build a limited SCdaemon
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"
5561
opensc_config_prefix=""
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
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
5577
case $OPENSC_CONFIG in
5579
ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
5582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5596
test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
5600
OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
5602
if test -n "$OPENSC_CONFIG"; then
5603
echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
5604
echo "${ECHO_T}$OPENSC_CONFIG" >&6
5606
echo "$as_me:$LINENO: result: no" >&5
5607
echo "${ECHO_T}no" >&6
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
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
5631
if test "$major" -eq "$req_major"; then
5632
if test "$minor" -gt "$req_minor"; then
5635
if test "$minor" -eq "$req_minor"; then
5636
if test "$micro" -ge "$req_micro"; then
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
5654
echo "$as_me:$LINENO: result: no" >&5
5655
echo "${ECHO_T}no" >&6
5661
if test $have_opensc = yes; then
5663
cat >>confdefs.h <<\_ACEOF
5664
#define HAVE_OPENSC 1
5670
if test "$have_opensc" = "yes"; then
5672
HAVE_OPENSC_FALSE='#'
5674
HAVE_OPENSC_TRUE='#'
5680
# Check whether the (highly desirable) GNU Pth library is available
5681
# Note, that we include a Pth emulation for W32.
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"
5689
pth_config_prefix=""
5691
if test x$pth_config_prefix != x ; then
5692
PTH_CONFIG="$pth_config_prefix/bin/pth-config"
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
5703
ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
5706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
5720
test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
5724
PTH_CONFIG=$ac_cv_path_PTH_CONFIG
5726
if test -n "$PTH_CONFIG"; then
5727
echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
5728
echo "${ECHO_T}$PTH_CONFIG" >&6
5730
echo "$as_me:$LINENO: result: no" >&5
5731
echo "${ECHO_T}no" >&6
5734
if test "$have_w32_system" = no; then
5735
if test "$PTH_CONFIG" = "no"; then
5736
{ echo "$as_me:$LINENO: WARNING:
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
5744
echo "$as_me: WARNING:
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
5754
_pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
5755
_req_version="1.3.7"
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/'`
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\""
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
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
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
5800
cat confdefs.h >>conftest.$ac_ext
5801
cat >>conftest.$ac_ext <<_ACEOF
5802
/* end confdefs.h. */
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
5817
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833
(exit $ac_status); }; }; then
5834
gnupg_cv_pth_is_sane=yes
5836
echo "$as_me: failed program was:" >&5
5837
sed 's/^/| /' conftest.$ac_ext >&5
5839
gnupg_cv_pth_is_sane=no
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
5849
if test $gnupg_cv_pth_is_sane != yes; then
5852
echo "$as_me:$LINENO: result: $gnupg_cv_pth_is_sane" >&5
5853
echo "${ECHO_T}$gnupg_cv_pth_is_sane" >&6
5855
echo "$as_me:$LINENO: result: no" >&5
5856
echo "${ECHO_T}no" >&6
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`"
5864
cat >>confdefs.h <<\_ACEOF
5865
#define USE_GNU_PTH 1
5874
cat >>confdefs.h <<\_ACEOF
5875
#define USE_GNU_PTH 1
5882
# Check whether --enable-threads or --disable-threads was given.
5883
if test "${enable_threads+set}" = set; then
5884
enableval="$enable_threads"
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
5895
cat >conftest.$ac_ext <<_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
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. */
5911
# include <limits.h>
5913
# include <assert.h>
5916
#undef gethostbyname
5918
/* Override any gcc2 internal prototype to avoid an error. */
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)
5932
char (*f) () = gethostbyname;
5941
return f != gethostbyname;
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
5950
grep -v '^ *+' conftest.er1 >conftest.err
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
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
5965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966
(exit $ac_status); }; }; then
5967
ac_cv_func_gethostbyname=yes
5969
echo "$as_me: failed program was:" >&5
5970
sed 's/^/| /' conftest.$ac_ext >&5
5972
ac_cv_func_gethostbyname=no
5974
rm -f conftest.err conftest.$ac_objext \
5975
conftest$ac_exeext conftest.$ac_ext
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
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
5987
ac_check_lib_save_LIBS=$LIBS
5989
cat >conftest.$ac_ext <<_ACEOF
5992
cat confdefs.h >>conftest.$ac_ext
5993
cat >>conftest.$ac_ext <<_ACEOF
5994
/* end confdefs.h. */
5996
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6015
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031
(exit $ac_status); }; }; then
6032
ac_cv_lib_nsl_gethostbyname=yes
6034
echo "$as_me: failed program was:" >&5
6035
sed 's/^/| /' conftest.$ac_ext >&5
6037
ac_cv_lib_nsl_gethostbyname=no
6039
rm -f conftest.err conftest.$ac_objext \
6040
conftest$ac_exeext conftest.$ac_ext
6041
LIBS=$ac_check_lib_save_LIBS
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"
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
6056
cat >conftest.$ac_ext <<_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
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. */
6072
# include <limits.h>
6074
# include <assert.h>
6079
/* Override any gcc2 internal prototype to avoid an error. */
6084
/* We use char because int might match the return type of a gcc2
6085
builtin and then its argument prototype would still apply. */
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)
6093
char (*f) () = setsockopt;
6102
return f != setsockopt;
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
6111
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127
(exit $ac_status); }; }; then
6128
ac_cv_func_setsockopt=yes
6130
echo "$as_me: failed program was:" >&5
6131
sed 's/^/| /' conftest.$ac_ext >&5
6133
ac_cv_func_setsockopt=no
6135
rm -f conftest.err conftest.$ac_objext \
6136
conftest$ac_exeext conftest.$ac_ext
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
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
6148
ac_check_lib_save_LIBS=$LIBS
6149
LIBS="-lsocket $LIBS"
6150
cat >conftest.$ac_ext <<_ACEOF
6153
cat confdefs.h >>conftest.$ac_ext
6154
cat >>conftest.$ac_ext <<_ACEOF
6155
/* end confdefs.h. */
6157
/* Override any gcc2 internal prototype to avoid an error. */
6161
/* We use char because int might match the return type of a gcc2
6162
builtin and then its argument prototype would still apply. */
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
6176
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192
(exit $ac_status); }; }; then
6193
ac_cv_lib_socket_setsockopt=yes
6195
echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6198
ac_cv_lib_socket_setsockopt=no
6200
rm -f conftest.err conftest.$ac_objext \
6201
conftest$ac_exeext conftest.$ac_ext
6202
LIBS=$ac_check_lib_save_LIBS
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"
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
6222
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
6223
_srv_save_libs=$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
6231
ac_func_search_save_LIBS=$LIBS
6232
ac_cv_search_res_query=no
6233
cat >conftest.$ac_ext <<_ACEOF
6236
cat confdefs.h >>conftest.$ac_ext
6237
cat >>conftest.$ac_ext <<_ACEOF
6238
/* end confdefs.h. */
6240
/* Override any gcc2 internal prototype to avoid an error. */
6244
/* We use char because int might match the return type of a gcc2
6245
builtin and then its argument prototype would still apply. */
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
6259
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275
(exit $ac_status); }; }; then
6276
ac_cv_search_res_query="none required"
6278
echo "$as_me: failed program was:" >&5
6279
sed 's/^/| /' conftest.$ac_ext >&5
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
6290
cat confdefs.h >>conftest.$ac_ext
6291
cat >>conftest.$ac_ext <<_ACEOF
6292
/* end confdefs.h. */
6294
/* Override any gcc2 internal prototype to avoid an error. */
6298
/* We use char because int might match the return type of a gcc2
6299
builtin and then its argument prototype would still apply. */
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
6313
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329
(exit $ac_status); }; }; then
6330
ac_cv_search_res_query="-l$ac_lib"
6333
echo "$as_me: failed program was:" >&5
6334
sed 's/^/| /' conftest.$ac_ext >&5
6337
rm -f conftest.err conftest.$ac_objext \
6338
conftest$ac_exeext conftest.$ac_ext
6341
LIBS=$ac_func_search_save_LIBS
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"
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
6354
ac_func_search_save_LIBS=$LIBS
6355
ac_cv_search___res_query=no
6356
cat >conftest.$ac_ext <<_ACEOF
6359
cat confdefs.h >>conftest.$ac_ext
6360
cat >>conftest.$ac_ext <<_ACEOF
6361
/* end confdefs.h. */
6363
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6382
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398
(exit $ac_status); }; }; then
6399
ac_cv_search___res_query="none required"
6401
echo "$as_me: failed program was:" >&5
6402
sed 's/^/| /' conftest.$ac_ext >&5
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
6413
cat confdefs.h >>conftest.$ac_ext
6414
cat >>conftest.$ac_ext <<_ACEOF
6415
/* end confdefs.h. */
6417
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6436
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452
(exit $ac_status); }; }; then
6453
ac_cv_search___res_query="-l$ac_lib"
6456
echo "$as_me: failed program was:" >&5
6457
sed 's/^/| /' conftest.$ac_ext >&5
6460
rm -f conftest.err conftest.$ac_objext \
6461
conftest$ac_exeext conftest.$ac_ext
6464
LIBS=$ac_func_search_save_LIBS
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"
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
6482
ac_func_search_save_LIBS=$LIBS
6483
ac_cv_search_dn_expand=no
6484
cat >conftest.$ac_ext <<_ACEOF
6487
cat confdefs.h >>conftest.$ac_ext
6488
cat >>conftest.$ac_ext <<_ACEOF
6489
/* end confdefs.h. */
6491
/* Override any gcc2 internal prototype to avoid an error. */
6495
/* We use char because int might match the return type of a gcc2
6496
builtin and then its argument prototype would still apply. */
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
6510
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526
(exit $ac_status); }; }; then
6527
ac_cv_search_dn_expand="none required"
6529
echo "$as_me: failed program was:" >&5
6530
sed 's/^/| /' conftest.$ac_ext >&5
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
6541
cat confdefs.h >>conftest.$ac_ext
6542
cat >>conftest.$ac_ext <<_ACEOF
6543
/* end confdefs.h. */
6545
/* Override any gcc2 internal prototype to avoid an error. */
6549
/* We use char because int might match the return type of a gcc2
6550
builtin and then its argument prototype would still apply. */
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
6564
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); }; }; then
6581
ac_cv_search_dn_expand="-l$ac_lib"
6584
echo "$as_me: failed program was:" >&5
6585
sed 's/^/| /' conftest.$ac_ext >&5
6588
rm -f conftest.err conftest.$ac_objext \
6589
conftest$ac_exeext conftest.$ac_ext
6592
LIBS=$ac_func_search_save_LIBS
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"
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
6605
ac_func_search_save_LIBS=$LIBS
6606
ac_cv_search___dn_expand=no
6607
cat >conftest.$ac_ext <<_ACEOF
6610
cat confdefs.h >>conftest.$ac_ext
6611
cat >>conftest.$ac_ext <<_ACEOF
6612
/* end confdefs.h. */
6614
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6633
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649
(exit $ac_status); }; }; then
6650
ac_cv_search___dn_expand="none required"
6652
echo "$as_me: failed program was:" >&5
6653
sed 's/^/| /' conftest.$ac_ext >&5
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
6664
cat confdefs.h >>conftest.$ac_ext
6665
cat >>conftest.$ac_ext <<_ACEOF
6666
/* end confdefs.h. */
6668
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6687
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703
(exit $ac_status); }; }; then
6704
ac_cv_search___dn_expand="-l$ac_lib"
6707
echo "$as_me: failed program was:" >&5
6708
sed 's/^/| /' conftest.$ac_ext >&5
6711
rm -f conftest.err conftest.$ac_objext \
6712
conftest$ac_exeext conftest.$ac_ext
6715
LIBS=$ac_func_search_save_LIBS
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"
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
6733
ac_func_search_save_LIBS=$LIBS
6734
ac_cv_search_dn_skipname=no
6735
cat >conftest.$ac_ext <<_ACEOF
6738
cat confdefs.h >>conftest.$ac_ext
6739
cat >>conftest.$ac_ext <<_ACEOF
6740
/* end confdefs.h. */
6742
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6761
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777
(exit $ac_status); }; }; then
6778
ac_cv_search_dn_skipname="none required"
6780
echo "$as_me: failed program was:" >&5
6781
sed 's/^/| /' conftest.$ac_ext >&5
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
6792
cat confdefs.h >>conftest.$ac_ext
6793
cat >>conftest.$ac_ext <<_ACEOF
6794
/* end confdefs.h. */
6796
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6815
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
(exit $ac_status); }; }; then
6832
ac_cv_search_dn_skipname="-l$ac_lib"
6835
echo "$as_me: failed program was:" >&5
6836
sed 's/^/| /' conftest.$ac_ext >&5
6839
rm -f conftest.err conftest.$ac_objext \
6840
conftest$ac_exeext conftest.$ac_ext
6843
LIBS=$ac_func_search_save_LIBS
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"
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
6856
ac_func_search_save_LIBS=$LIBS
6857
ac_cv_search___dn_skipname=no
6858
cat >conftest.$ac_ext <<_ACEOF
6861
cat confdefs.h >>conftest.$ac_ext
6862
cat >>conftest.$ac_ext <<_ACEOF
6863
/* end confdefs.h. */
6865
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6884
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900
(exit $ac_status); }; }; then
6901
ac_cv_search___dn_skipname="none required"
6903
echo "$as_me: failed program was:" >&5
6904
sed 's/^/| /' conftest.$ac_ext >&5
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
6915
cat confdefs.h >>conftest.$ac_ext
6916
cat >>conftest.$ac_ext <<_ACEOF
6917
/* end confdefs.h. */
6919
/* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
6938
grep -v '^ *+' conftest.er1 >conftest.err
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
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
6953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954
(exit $ac_status); }; }; then
6955
ac_cv_search___dn_skipname="-l$ac_lib"
6958
echo "$as_me: failed program was:" >&5
6959
sed 's/^/| /' conftest.$ac_ext >&5
6962
rm -f conftest.err conftest.$ac_objext \
6963
conftest$ac_exeext conftest.$ac_ext
6966
LIBS=$ac_func_search_save_LIBS
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"
6980
if test x"$use_dns_srv" = xyes ; then
6982
cat >>confdefs.h <<\_ACEOF
6983
#define USE_DNS_SRV 1
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;}
6991
LIBS=$_srv_save_libs
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"
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"
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
7012
cat confdefs.h >>conftest.$ac_ext
7013
cat >>conftest.$ac_ext <<_ACEOF
7014
/* end confdefs.h. */
7019
ldap_open("foobar",1234);
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
7028
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044
(exit $ac_status); }; }; then
7045
gnupg_cv_func_ldap_init=yes
7047
echo "$as_me: failed program was:" >&5
7048
sed 's/^/| /' conftest.$ac_ext >&5
7050
gnupg_cv_func_ldap_init=no
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
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
7063
cat confdefs.h >>conftest.$ac_ext
7064
cat >>conftest.$ac_ext <<_ACEOF
7065
/* end confdefs.h. */
7071
ldap_open("foobar",1234);
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
7080
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096
(exit $ac_status); }; }; then
7097
gnupg_cv_func_ldaplber_init=yes
7099
echo "$as_me: failed program was:" >&5
7100
sed 's/^/| /' conftest.$ac_ext >&5
7102
gnupg_cv_func_ldaplber_init=no
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
7110
if test "$gnupg_cv_func_ldaplber_init" = yes ; then
7112
cat >>confdefs.h <<\_ACEOF
7113
#define NEED_LBER_H 1
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"
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
7126
if test "$gnupg_cv_func_ldap_init" = yes ; then
7127
cat >conftest.$ac_ext <<_ACEOF
7130
cat confdefs.h >>conftest.$ac_ext
7131
cat >>conftest.$ac_ext <<_ACEOF
7132
/* end confdefs.h. */
7137
ldap_get_option((void *)0,0,(void *)0);
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
7146
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162
(exit $ac_status); }; }; then
7163
gnupg_cv_func_ldap_get_option=yes
7165
echo "$as_me: failed program was:" >&5
7166
sed 's/^/| /' conftest.$ac_ext >&5
7168
gnupg_cv_func_ldap_get_option=no
7170
rm -f conftest.err conftest.$ac_objext \
7171
conftest$ac_exeext conftest.$ac_ext
7173
cat >conftest.$ac_ext <<_ACEOF
7176
cat confdefs.h >>conftest.$ac_ext
7177
cat >>conftest.$ac_ext <<_ACEOF
7178
/* end confdefs.h. */
7184
ldap_get_option((void *)0,0,(void *)0);
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
7193
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209
(exit $ac_status); }; }; then
7210
gnupg_cv_func_ldap_get_option=yes
7212
echo "$as_me: failed program was:" >&5
7213
sed 's/^/| /' conftest.$ac_ext >&5
7215
gnupg_cv_func_ldap_get_option=no
7217
rm -f conftest.err conftest.$ac_objext \
7218
conftest$ac_exeext conftest.$ac_ext
7221
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_get_option" >&5
7222
echo "${ECHO_T}$gnupg_cv_func_ldap_get_option" >&6
7224
if test "$gnupg_cv_func_ldap_get_option" = yes ; then
7226
cat >>confdefs.h <<\_ACEOF
7227
#define HAVE_LDAP_GET_OPTION 1
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
7234
if test "$gnupg_cv_func_ldap_init" = yes ; then
7235
cat >conftest.$ac_ext <<_ACEOF
7238
cat confdefs.h >>conftest.$ac_ext
7239
cat >>conftest.$ac_ext <<_ACEOF
7240
/* end confdefs.h. */
7245
LDAP *ldap; ldap->ld_errno;
7250
rm -f conftest.$ac_objext
7251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252
(eval $ac_compile) 2>conftest.er1
7254
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270
(exit $ac_status); }; }; then
7271
gnupg_cv_func_ldap_ld_errno=yes
7273
echo "$as_me: failed program was:" >&5
7274
sed 's/^/| /' conftest.$ac_ext >&5
7276
gnupg_cv_func_ldap_ld_errno=no
7278
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280
cat >conftest.$ac_ext <<_ACEOF
7283
cat confdefs.h >>conftest.$ac_ext
7284
cat >>conftest.$ac_ext <<_ACEOF
7285
/* end confdefs.h. */
7291
LDAP *ldap; ldap->ld_errno;
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
7300
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316
(exit $ac_status); }; }; then
7317
gnupg_cv_func_ldap_ld_errno=yes
7319
echo "$as_me: failed program was:" >&5
7320
sed 's/^/| /' conftest.$ac_ext >&5
7322
gnupg_cv_func_ldap_ld_errno=no
7324
rm -f conftest.err conftest.$ac_objext \
7325
conftest$ac_exeext conftest.$ac_ext
7328
echo "$as_me:$LINENO: result: $gnupg_cv_func_ldap_ld_errno" >&5
7329
echo "${ECHO_T}$gnupg_cv_func_ldap_ld_errno" >&6
7331
if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
7333
cat >>confdefs.h <<\_ACEOF
7334
#define HAVE_LDAP_LD_ERRNO 1
7341
LIBS=$_ldap_save_libs
7343
if test "$GPGKEYS_LDAP" != "" ; then break; fi
7351
if test "$try_mailto" = yes ; then
7353
# Check whether --with-mailprog or --without-mailprog was given.
7354
if test "${with_mailprog+set}" = set; then
7355
withval="$with_mailprog"
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
7371
ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
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
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
7392
SENDMAIL=$ac_cv_path_SENDMAIL
7394
if test -n "$SENDMAIL"; then
7395
echo "$as_me:$LINENO: result: $SENDMAIL" >&5
7396
echo "${ECHO_T}$SENDMAIL" >&6
7398
echo "$as_me:$LINENO: result: no" >&5
7399
echo "${ECHO_T}no" >&6
7402
if test "$ac_cv_path_SENDMAIL" ; then
7403
GPGKEYS_MAILTO="gpgkeys_mailto"
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
7410
echo "$as_me:$LINENO: result: $with_mailprog" >&5
7411
echo "${ECHO_T}$with_mailprog" >&6
7412
GPGKEYS_MAILTO="gpgkeys_mailto"
7420
PRINTABLE_OS_NAME="MingW32"
7423
PRINTABLE_OS_NAME="Cygwin"
7425
i?86-emx-os2 | i?86-*-os2*emx )
7426
PRINTABLE_OS_NAME="OS/2"
7429
PRINTABLE_OS_NAME="MSDOS/DJGPP"
7433
PRINTABLE_OS_NAME="GNU/Linux"
7436
PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
7440
cat >>confdefs.h <<_ACEOF
7441
#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
7447
if test "$try_gettext" = yes; then
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" ;;
7456
if test -z "$MKINSTALLDIRS"; then
7457
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
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"
7471
echo "$as_me:$LINENO: result: $USE_NLS" >&5
7472
echo "${ECHO_T}$USE_NLS" >&6
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
7485
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
7499
chmod +x conf$$.file
7500
if test -x conf$$.file >/dev/null 2>&1; then
7501
ac_executable_p="test -x"
7503
ac_executable_p="test -f"
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
7516
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7519
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7520
for ac_dir in $PATH; do
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"
7534
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
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
7543
echo "$as_me:$LINENO: result: no" >&5
7544
echo "${ECHO_T}no" >&6
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
7556
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
7573
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7577
GMSGFMT=$ac_cv_path_GMSGFMT
7579
if test -n "$GMSGFMT"; then
7580
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7581
echo "${ECHO_T}$GMSGFMT" >&6
7583
echo "$as_me:$LINENO: result: no" >&5
7584
echo "${ECHO_T}no" >&6
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
7595
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
7609
chmod +x conf$$.file
7610
if test -x conf$$.file >/dev/null 2>&1; then
7611
ac_executable_p="test -x"
7613
ac_executable_p="test -f"
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
7626
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7629
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7630
for ac_dir in $PATH; do
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"
7644
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
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
7653
echo "$as_me:$LINENO: result: no" >&5
7654
echo "${ECHO_T}no" >&6
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
7666
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
7680
chmod +x conf$$.file
7681
if test -x conf$$.file >/dev/null 2>&1; then
7682
ac_executable_p="test -x"
7684
ac_executable_p="test -f"
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
7697
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7700
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7701
for ac_dir in $PATH; do
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"
7714
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
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
7723
echo "$as_me:$LINENO: result: no" >&5
7724
echo "${ECHO_T}no" >&6
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
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
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
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
7752
ac_config_commands="$ac_config_commands default-1"
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
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'
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
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
7776
cat >conftest.$ac_ext <<_ACEOF
7779
cat confdefs.h >>conftest.$ac_ext
7780
cat >>conftest.$ac_ext <<_ACEOF
7781
/* end confdefs.h. */
7795
rm -f conftest.$ac_objext
7796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797
(eval $ac_compile) 2>conftest.er1
7799
grep -v '^ *+' conftest.er1 >conftest.err
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
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
7814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815
(exit $ac_status); }; }; then
7816
ac_cv_header_stdc=yes
7818
echo "$as_me: failed program was:" >&5
7819
sed 's/^/| /' conftest.$ac_ext >&5
7821
ac_cv_header_stdc=no
7823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
7830
cat confdefs.h >>conftest.$ac_ext
7831
cat >>conftest.$ac_ext <<_ACEOF
7832
/* end confdefs.h. */
7836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837
$EGREP "memchr" >/dev/null 2>&1; then
7840
ac_cv_header_stdc=no
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
7851
cat confdefs.h >>conftest.$ac_ext
7852
cat >>conftest.$ac_ext <<_ACEOF
7853
/* end confdefs.h. */
7857
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7858
$EGREP "free" >/dev/null 2>&1; then
7861
ac_cv_header_stdc=no
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
7872
cat >conftest.$ac_ext <<_ACEOF
7875
cat confdefs.h >>conftest.$ac_ext
7876
cat >>conftest.$ac_ext <<_ACEOF
7877
/* end confdefs.h. */
7879
#if ((' ' & 0x0FF) == 0x020)
7880
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7881
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
7890
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7895
for (i = 0; i < 256; i++)
7896
if (XOR (islower (i), ISLOWER (i))
7897
|| toupper (i) != TOUPPER (i))
7902
rm -f conftest$ac_exeext
7903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904
(eval $ac_link) 2>&5
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
7911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912
(exit $ac_status); }; }; then
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
7920
ac_cv_header_stdc=no
7922
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
7930
cat >>confdefs.h <<\_ACEOF
7931
#define STDC_HEADERS 1
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
7941
cat >conftest.$ac_ext <<_ACEOF
7944
cat confdefs.h >>conftest.$ac_ext
7945
cat >>conftest.$ac_ext <<_ACEOF
7946
/* end confdefs.h. */
7951
/* FIXME: Include the comments suggested by Paul. */
7953
/* Ultrix mips cc rejects this. */
7954
typedef int charset[2];
7956
/* SunOS 4.1.1 cc rejects this. */
7957
char const *const *ccp;
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
7966
const char *g = "string";
7967
ccp = &g + (g ? g-g : 0);
7968
/* HPUX 7.0 cc rejects these. */
7971
ccp = (char const *const *) p;
7972
{ /* SCO 3.2v4 cc rejects this. */
7974
char const *s = 0 ? (char *) 0 : (char const *) 0;
7978
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7980
const int *foo = &x[0];
7983
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7984
typedef const int *iptr;
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;
7993
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8002
rm -f conftest.$ac_objext
8003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8004
(eval $ac_compile) 2>conftest.er1
8006
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022
(exit $ac_status); }; }; then
8025
echo "$as_me: failed program was:" >&5
8026
sed 's/^/| /' conftest.$ac_ext >&5
8030
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8036
cat >>confdefs.h <<\_ACEOF
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
8048
cat >conftest.$ac_ext <<_ACEOF
8051
cat confdefs.h >>conftest.$ac_ext
8052
cat >>conftest.$ac_ext <<_ACEOF
8053
/* end confdefs.h. */
8063
rm -f conftest.$ac_objext
8064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065
(eval $ac_compile) 2>conftest.er1
8067
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083
(exit $ac_status); }; }; then
8086
echo "$as_me: failed program was:" >&5
8087
sed 's/^/| /' conftest.$ac_ext >&5
8091
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8097
cat >>confdefs.h <<\_ACEOF
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
8109
for ac_kw in inline __inline__ __inline; do
8110
cat >conftest.$ac_ext <<_ACEOF
8113
cat confdefs.h >>conftest.$ac_ext
8114
cat >>conftest.$ac_ext <<_ACEOF
8115
/* end confdefs.h. */
8118
static $ac_kw foo_t static_foo () {return 0; }
8119
$ac_kw foo_t foo () {return 0; }
8123
rm -f conftest.$ac_objext
8124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125
(eval $ac_compile) 2>conftest.er1
8127
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143
(exit $ac_status); }; }; then
8144
ac_cv_c_inline=$ac_kw; break
8146
echo "$as_me: failed program was:" >&5
8147
sed 's/^/| /' conftest.$ac_ext >&5
8150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8155
echo "${ECHO_T}$ac_cv_c_inline" >&6
8158
case $ac_cv_c_inline in
8161
case $ac_cv_c_inline in
8163
*) ac_val=$ac_cv_c_inline;;
8165
cat >>confdefs.h <<_ACEOF
8167
#define inline $ac_val
8173
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
8192
cat >conftest.$ac_ext <<_ACEOF
8195
cat confdefs.h >>conftest.$ac_ext
8196
cat >>conftest.$ac_ext <<_ACEOF
8197
/* end confdefs.h. */
8198
$ac_includes_default
8200
#include <$ac_header>
8202
rm -f conftest.$ac_objext
8203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204
(eval $ac_compile) 2>conftest.er1
8206
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
(exit $ac_status); }; }; then
8223
eval "$as_ac_Header=yes"
8225
echo "$as_me: failed program was:" >&5
8226
sed 's/^/| /' conftest.$ac_ext >&5
8228
eval "$as_ac_Header=no"
8230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
8249
cat >conftest.$ac_ext <<_ACEOF
8252
cat confdefs.h >>conftest.$ac_ext
8253
cat >>conftest.$ac_ext <<_ACEOF
8254
/* end confdefs.h. */
8255
$ac_includes_default
8267
rm -f conftest.$ac_objext
8268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8269
(eval $ac_compile) 2>conftest.er1
8271
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287
(exit $ac_status); }; }; then
8288
ac_cv_type_off_t=yes
8290
echo "$as_me: failed program was:" >&5
8291
sed 's/^/| /' conftest.$ac_ext >&5
8295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8303
cat >>confdefs.h <<_ACEOF
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
8314
cat >conftest.$ac_ext <<_ACEOF
8317
cat confdefs.h >>conftest.$ac_ext
8318
cat >>conftest.$ac_ext <<_ACEOF
8319
/* end confdefs.h. */
8320
$ac_includes_default
8326
if (sizeof (size_t))
8332
rm -f conftest.$ac_objext
8333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334
(eval $ac_compile) 2>conftest.er1
8336
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352
(exit $ac_status); }; }; then
8353
ac_cv_type_size_t=yes
8355
echo "$as_me: failed program was:" >&5
8356
sed 's/^/| /' conftest.$ac_ext >&5
8358
ac_cv_type_size_t=no
8360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8368
cat >>confdefs.h <<_ACEOF
8369
#define size_t unsigned
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
8380
cat >conftest.$ac_ext <<_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;
8390
long long llmax = (long long) -1;
8391
return ll << i | ll >> i | llmax / ll | llmax % ll;
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
8400
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
(exit $ac_status); }; }; then
8417
ac_cv_type_long_long=yes
8419
echo "$as_me: failed program was:" >&5
8420
sed 's/^/| /' conftest.$ac_ext >&5
8422
ac_cv_type_long_long=no
8424
rm -f conftest.err conftest.$ac_objext \
8425
conftest$ac_exeext conftest.$ac_ext
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
8431
cat >>confdefs.h <<\_ACEOF
8432
#define HAVE_LONG_LONG 1
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
8443
if test "$GCC" = yes; then
8444
gt_cv_c_long_double=yes
8446
cat >conftest.$ac_ext <<_ACEOF
8449
cat confdefs.h >>conftest.$ac_ext
8450
cat >>conftest.$ac_ext <<_ACEOF
8451
/* end confdefs.h. */
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];
8466
rm -f conftest.$ac_objext
8467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468
(eval $ac_compile) 2>conftest.er1
8470
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486
(exit $ac_status); }; }; then
8487
gt_cv_c_long_double=yes
8489
echo "$as_me: failed program was:" >&5
8490
sed 's/^/| /' conftest.$ac_ext >&5
8492
gt_cv_c_long_double=no
8494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8501
cat >>confdefs.h <<\_ACEOF
8502
#define HAVE_LONG_DOUBLE 1
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
8513
cat >conftest.$ac_ext <<_ACEOF
8516
cat confdefs.h >>conftest.$ac_ext
8517
cat >>conftest.$ac_ext <<_ACEOF
8518
/* end confdefs.h. */
8520
wchar_t foo = (wchar_t)'\0';
8529
rm -f conftest.$ac_objext
8530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531
(eval $ac_compile) 2>conftest.er1
8533
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549
(exit $ac_status); }; }; then
8552
echo "$as_me: failed program was:" >&5
8553
sed 's/^/| /' conftest.$ac_ext >&5
8557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8563
cat >>confdefs.h <<\_ACEOF
8564
#define HAVE_WCHAR_T 1
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
8575
cat >conftest.$ac_ext <<_ACEOF
8578
cat confdefs.h >>conftest.$ac_ext
8579
cat >>conftest.$ac_ext <<_ACEOF
8580
/* end confdefs.h. */
8582
wint_t foo = (wchar_t)'\0';
8591
rm -f conftest.$ac_objext
8592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593
(eval $ac_compile) 2>conftest.er1
8595
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611
(exit $ac_status); }; }; then
8614
echo "$as_me: failed program was:" >&5
8615
sed 's/^/| /' conftest.$ac_ext >&5
8619
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8625
cat >>confdefs.h <<\_ACEOF
8626
#define HAVE_WINT_T 1
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
8637
cat >conftest.$ac_ext <<_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>
8648
uintmax_t i = (uintmax_t) -1;
8653
rm -f conftest.$ac_objext
8654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655
(eval $ac_compile) 2>conftest.er1
8657
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673
(exit $ac_status); }; }; then
8674
jm_ac_cv_header_inttypes_h=yes
8676
echo "$as_me: failed program was:" >&5
8677
sed 's/^/| /' conftest.$ac_ext >&5
8679
jm_ac_cv_header_inttypes_h=no
8681
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8687
cat >>confdefs.h <<_ACEOF
8688
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
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
8699
cat >conftest.$ac_ext <<_ACEOF
8702
cat confdefs.h >>conftest.$ac_ext
8703
cat >>conftest.$ac_ext <<_ACEOF
8704
/* end confdefs.h. */
8705
#include <sys/types.h>
8710
uintmax_t i = (uintmax_t) -1;
8715
rm -f conftest.$ac_objext
8716
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717
(eval $ac_compile) 2>conftest.er1
8719
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735
(exit $ac_status); }; }; then
8736
jm_ac_cv_header_stdint_h=yes
8738
echo "$as_me: failed program was:" >&5
8739
sed 's/^/| /' conftest.$ac_ext >&5
8741
jm_ac_cv_header_stdint_h=no
8743
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8749
cat >>confdefs.h <<_ACEOF
8750
#define HAVE_STDINT_H_WITH_UINTMAX 1
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
8763
cat >conftest.$ac_ext <<_ACEOF
8766
cat confdefs.h >>conftest.$ac_ext
8767
cat >>conftest.$ac_ext <<_ACEOF
8768
/* end confdefs.h. */
8772
#if HAVE_STDINT_H_WITH_UINTMAX
8775
#if HAVE_INTTYPES_H_WITH_UINTMAX
8776
#include <inttypes.h>
8787
rm -f conftest.$ac_objext
8788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789
(eval $ac_compile) 2>conftest.er1
8791
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807
(exit $ac_status); }; }; then
8808
gt_cv_c_intmax_t=yes
8810
echo "$as_me: failed program was:" >&5
8811
sed 's/^/| /' conftest.$ac_ext >&5
8815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
8821
cat >>confdefs.h <<\_ACEOF
8822
#define HAVE_INTMAX_T 1
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
8835
if test "$cross_compiling" = yes; then
8837
cat >conftest.$ac_ext <<_ACEOF
8840
cat confdefs.h >>conftest.$ac_ext
8841
cat >>conftest.$ac_ext <<_ACEOF
8842
/* end confdefs.h. */
8844
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
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"
8853
gt_cv_func_printf_posix="guessing yes"
8859
cat >conftest.$ac_ext <<_ACEOF
8862
cat confdefs.h >>conftest.$ac_ext
8863
cat >>conftest.$ac_ext <<_ACEOF
8864
/* end confdefs.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];
8874
sprintf (buf, format, 33, 55);
8875
return (strcmp (buf, "55 33") != 0);
8878
rm -f conftest$ac_exeext
8879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880
(eval $ac_link) 2>&5
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
8887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888
(exit $ac_status); }; }; then
8889
gt_cv_func_printf_posix=yes
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
8896
gt_cv_func_printf_posix=no
8898
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
8907
cat >>confdefs.h <<\_ACEOF
8908
#define HAVE_POSIX_PRINTF 1
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
8921
cat >conftest.$ac_ext <<_ACEOF
8924
cat confdefs.h >>conftest.$ac_ext
8925
cat >>conftest.$ac_ext <<_ACEOF
8926
/* end confdefs.h. */
8931
char *p = (char *) alloca (2 * sizeof (int));
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
8940
grep -v '^ *+' conftest.er1 >conftest.err
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
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
8955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956
(exit $ac_status); }; }; then
8957
ac_cv_working_alloca_h=yes
8959
echo "$as_me: failed program was:" >&5
8960
sed 's/^/| /' conftest.$ac_ext >&5
8962
ac_cv_working_alloca_h=no
8964
rm -f conftest.err conftest.$ac_objext \
8965
conftest$ac_exeext conftest.$ac_ext
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
8971
cat >>confdefs.h <<\_ACEOF
8972
#define HAVE_ALLOCA_H 1
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
8982
cat >conftest.$ac_ext <<_ACEOF
8985
cat confdefs.h >>conftest.$ac_ext
8986
cat >>conftest.$ac_ext <<_ACEOF
8987
/* end confdefs.h. */
8989
# define alloca __builtin_alloca
8992
# include <malloc.h>
8993
# define alloca _alloca
8996
# include <alloca.h>
9001
# ifndef alloca /* predefined by HP cc +Olibcalls */
9012
char *p = (char *) alloca (1);
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
9021
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037
(exit $ac_status); }; }; then
9038
ac_cv_func_alloca_works=yes
9040
echo "$as_me: failed program was:" >&5
9041
sed 's/^/| /' conftest.$ac_ext >&5
9043
ac_cv_func_alloca_works=no
9045
rm -f conftest.err conftest.$ac_objext \
9046
conftest$ac_exeext conftest.$ac_ext
9048
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9049
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9051
if test $ac_cv_func_alloca_works = yes; then
9053
cat >>confdefs.h <<\_ACEOF
9054
#define HAVE_ALLOCA 1
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.
9063
ALLOCA=alloca.$ac_objext
9065
cat >>confdefs.h <<\_ACEOF
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
9075
cat >conftest.$ac_ext <<_ACEOF
9078
cat confdefs.h >>conftest.$ac_ext
9079
cat >>conftest.$ac_ext <<_ACEOF
9080
/* end confdefs.h. */
9081
#if defined(CRAY) && ! defined(CRAY2)
9088
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089
$EGREP "webecray" >/dev/null 2>&1; then
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
9107
cat >conftest.$ac_ext <<_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
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. */
9123
# include <limits.h>
9125
# include <assert.h>
9130
/* Override any gcc2 internal prototype to avoid an error. */
9135
/* We use char because int might match the return type of a gcc2
9136
builtin and then its argument prototype would still apply. */
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)
9144
char (*f) () = $ac_func;
9153
return f != $ac_func;
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
9162
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178
(exit $ac_status); }; }; then
9179
eval "$as_ac_var=yes"
9181
echo "$as_me: failed program was:" >&5
9182
sed 's/^/| /' conftest.$ac_ext >&5
9184
eval "$as_ac_var=no"
9186
rm -f conftest.err conftest.$ac_objext \
9187
conftest$ac_exeext conftest.$ac_ext
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
9193
cat >>confdefs.h <<_ACEOF
9194
#define CRAY_STACKSEG_END $ac_func
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
9208
if test "$cross_compiling" = yes; then
9209
ac_cv_c_stack_direction=0
9211
cat >conftest.$ac_ext <<_ACEOF
9214
cat confdefs.h >>conftest.$ac_ext
9215
cat >>conftest.$ac_ext <<_ACEOF
9216
/* end confdefs.h. */
9218
find_stack_direction ()
9220
static char *addr = 0;
9225
return find_stack_direction ();
9228
return (&dummy > addr) ? 1 : -1;
9234
exit (find_stack_direction () < 0);
9237
rm -f conftest$ac_exeext
9238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239
(eval $ac_link) 2>&5
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
9246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247
(exit $ac_status); }; }; then
9248
ac_cv_c_stack_direction=1
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
9255
ac_cv_c_stack_direction=-1
9257
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9260
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9261
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9263
cat >>confdefs.h <<_ACEOF
9264
#define STACK_DIRECTION $ac_cv_c_stack_direction
9272
for ac_header in stdlib.h unistd.h
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
9281
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9282
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
9296
rm -f conftest.$ac_objext
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298
(eval $ac_compile) 2>conftest.er1
9300
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316
(exit $ac_status); }; }; then
9317
ac_header_compiler=yes
9319
echo "$as_me: failed program was:" >&5
9320
sed 's/^/| /' conftest.$ac_ext >&5
9322
ac_header_compiler=no
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
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
9334
cat confdefs.h >>conftest.$ac_ext
9335
cat >>conftest.$ac_ext <<_ACEOF
9336
/* end confdefs.h. */
9337
#include <$ac_header>
9339
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9340
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9342
grep -v '^ *+' conftest.er1 >conftest.err
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
9356
if test -z "$ac_cpp_err"; then
9357
ac_header_preproc=yes
9359
echo "$as_me: failed program was:" >&5
9360
sed 's/^/| /' conftest.$ac_ext >&5
9362
ac_header_preproc=no
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
9368
# So? What about this header?
9369
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
9392
## ------------------------------------ ##
9393
## Report this to gnupg-devel@gnupg.org ##
9394
## ------------------------------------ ##
9397
sed "s/^/$as_me: WARNING: /" >&2
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
9405
eval "$as_ac_Header=\$ac_header_preproc"
9407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9408
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
9421
for ac_func in getpagesize
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
9429
cat >conftest.$ac_ext <<_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
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. */
9445
# include <limits.h>
9447
# include <assert.h>
9452
/* Override any gcc2 internal prototype to avoid an error. */
9457
/* We use char because int might match the return type of a gcc2
9458
builtin and then its argument prototype would still apply. */
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)
9466
char (*f) () = $ac_func;
9475
return f != $ac_func;
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
9484
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500
(exit $ac_status); }; }; then
9501
eval "$as_ac_var=yes"
9503
echo "$as_me: failed program was:" >&5
9504
sed 's/^/| /' conftest.$ac_ext >&5
9506
eval "$as_ac_var=no"
9508
rm -f conftest.err conftest.$ac_objext \
9509
conftest$ac_exeext conftest.$ac_ext
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
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
9526
if test "$cross_compiling" = yes; then
9527
ac_cv_func_mmap_fixed_mapped=no
9529
cat >conftest.$ac_ext <<_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. */
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.
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) */
9562
#include <sys/mman.h>
9564
#if !STDC_HEADERS && !HAVE_STDLIB_H
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
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 */
9584
# define getpagesize() NBPG * CLSIZE
9587
# endif /* no CLSIZE */
9588
# else /* no NBPG */
9590
# define getpagesize() NBPC
9591
# else /* no NBPC */
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 */
9603
#endif /* no HAVE_GETPAGESIZE */
9608
char *data, *data2, *data3;
9612
pagesize = getpagesize ();
9614
/* First, make a file with some known garbage in it. */
9615
data = (char *) malloc (pagesize);
9618
for (i = 0; i < pagesize; ++i)
9619
*(data + i) = rand ();
9621
fd = creat ("conftest.mmap", 0600);
9624
if (write (fd, data, pagesize) != pagesize)
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);
9634
data2 = (char *) malloc (2 * pagesize);
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))
9641
for (i = 0; i < pagesize; ++i)
9642
if (*(data + i) != *(data2 + i))
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);
9653
if (read (fd, data3, pagesize) != pagesize)
9655
for (i = 0; i < pagesize; ++i)
9656
if (*(data + i) != *(data3 + i))
9662
rm -f conftest$ac_exeext
9663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664
(eval $ac_link) 2>&5
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
9671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
(exit $ac_status); }; }; then
9673
ac_cv_func_mmap_fixed_mapped=yes
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
9680
ac_cv_func_mmap_fixed_mapped=no
9682
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
9689
cat >>confdefs.h <<\_ACEOF
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
9702
cat >conftest.$ac_ext <<_ACEOF
9705
cat confdefs.h >>conftest.$ac_ext
9706
cat >>conftest.$ac_ext <<_ACEOF
9707
/* end confdefs.h. */
9709
#include <features.h>
9710
#ifdef __GNU_LIBRARY__
9711
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
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
9721
ac_cv_gnu_library_2_1=no
9728
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9729
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9731
GLIBC21="$ac_cv_gnu_library_2_1"
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
9742
if test "$cross_compiling" = yes; then
9744
# Guess based on the CPU.
9746
alpha* | i3456786 | m68k | s390*)
9747
gt_cv_int_divbyzero_sigfpe="guessing yes";;
9749
gt_cv_int_divbyzero_sigfpe="guessing no";;
9753
cat >conftest.$ac_ext <<_ACEOF
9756
cat confdefs.h >>conftest.$ac_ext
9757
cat >>conftest.$ac_ext <<_ACEOF
9758
/* end confdefs.h. */
9765
sigfpe_handler (int sig)
9767
sigfpe_handler (sig) int sig;
9770
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9771
exit (sig != SIGFPE);
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);
9786
/* Linux/SPARC yields signal SIGILL. */
9787
#if defined (__sparc__) && defined (__linux__)
9788
signal (SIGILL, sigfpe_handler);
9797
rm -f conftest$ac_exeext
9798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799
(eval $ac_link) 2>&5
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
9806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807
(exit $ac_status); }; }; then
9808
gt_cv_int_divbyzero_sigfpe=yes
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
9815
gt_cv_int_divbyzero_sigfpe=no
9817
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
9828
cat >>confdefs.h <<_ACEOF
9829
#define INTDIV0_RAISES_SIGFPE $value
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
9839
cat >conftest.$ac_ext <<_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;
9849
unsigned long long ullmax = (unsigned long long) -1;
9850
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
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
9859
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875
(exit $ac_status); }; }; then
9876
ac_cv_type_unsigned_long_long=yes
9878
echo "$as_me: failed program was:" >&5
9879
sed 's/^/| /' conftest.$ac_ext >&5
9881
ac_cv_type_unsigned_long_long=no
9883
rm -f conftest.err conftest.$ac_objext \
9884
conftest$ac_exeext conftest.$ac_ext
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
9890
cat >>confdefs.h <<\_ACEOF
9891
#define HAVE_UNSIGNED_LONG_LONG 1
9899
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
9901
test $ac_cv_type_unsigned_long_long = yes \
9902
&& ac_type='unsigned long long' \
9903
|| ac_type='unsigned long'
9905
cat >>confdefs.h <<_ACEOF
9906
#define uintmax_t $ac_type
9911
cat >>confdefs.h <<\_ACEOF
9912
#define HAVE_UINTMAX_T 1
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
9924
cat >conftest.$ac_ext <<_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>
9940
rm -f conftest.$ac_objext
9941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942
(eval $ac_compile) 2>conftest.er1
9944
grep -v '^ *+' conftest.er1 >conftest.err
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
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
9959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960
(exit $ac_status); }; }; then
9961
gt_cv_header_inttypes_h=yes
9963
echo "$as_me: failed program was:" >&5
9964
sed 's/^/| /' conftest.$ac_ext >&5
9966
gt_cv_header_inttypes_h=no
9968
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
9975
cat >>confdefs.h <<_ACEOF
9976
#define HAVE_INTTYPES_H 1
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
9990
cat >conftest.$ac_ext <<_ACEOF
9993
cat confdefs.h >>conftest.$ac_ext
9994
cat >>conftest.$ac_ext <<_ACEOF
9995
/* end confdefs.h. */
9996
#include <inttypes.h>
10009
rm -f conftest.$ac_objext
10010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011
(eval $ac_compile) 2>conftest.er1
10013
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029
(exit $ac_status); }; }; then
10030
gt_cv_inttypes_pri_broken=no
10032
echo "$as_me: failed program was:" >&5
10033
sed 's/^/| /' conftest.$ac_ext >&5
10035
gt_cv_inttypes_pri_broken=yes
10037
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10040
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10041
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10043
if test "$gt_cv_inttypes_pri_broken" = yes; then
10045
cat >>confdefs.h <<_ACEOF
10046
#define PRI_MACROS_BROKEN 1
10053
for ac_header in stdint.h
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
10062
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10063
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
10077
rm -f conftest.$ac_objext
10078
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10079
(eval $ac_compile) 2>conftest.er1
10081
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097
(exit $ac_status); }; }; then
10098
ac_header_compiler=yes
10100
echo "$as_me: failed program was:" >&5
10101
sed 's/^/| /' conftest.$ac_ext >&5
10103
ac_header_compiler=no
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
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
10115
cat confdefs.h >>conftest.$ac_ext
10116
cat >>conftest.$ac_ext <<_ACEOF
10117
/* end confdefs.h. */
10118
#include <$ac_header>
10120
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10121
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10123
grep -v '^ *+' conftest.er1 >conftest.err
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
10137
if test -z "$ac_cpp_err"; then
10138
ac_header_preproc=yes
10140
echo "$as_me: failed program was:" >&5
10141
sed 's/^/| /' conftest.$ac_ext >&5
10143
ac_header_preproc=no
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
10149
# So? What about this header?
10150
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
10173
## ------------------------------------ ##
10174
## Report this to gnupg-devel@gnupg.org ##
10175
## ------------------------------------ ##
10178
sed "s/^/$as_me: WARNING: /" >&2
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
10186
eval "$as_ac_Header=\$ac_header_preproc"
10188
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10189
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
10201
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10202
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
10204
cat >conftest.$ac_ext <<_ACEOF
10207
cat confdefs.h >>conftest.$ac_ext
10208
cat >>conftest.$ac_ext <<_ACEOF
10209
/* end confdefs.h. */
10211
#include <limits.h>
10213
#include <stdint.h>
10220
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10221
$EGREP "Found it" >/dev/null 2>&1; then
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
10232
cat confdefs.h >>conftest.$ac_ext
10233
cat >>conftest.$ac_ext <<_ACEOF
10234
/* end confdefs.h. */
10235
#include <stddef.h>
10239
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10246
rm -f conftest.$ac_objext
10247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248
(eval $ac_compile) 2>conftest.er1
10250
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266
(exit $ac_status); }; }; then
10269
cat >conftest.$ac_ext <<_ACEOF
10272
cat confdefs.h >>conftest.$ac_ext
10273
cat >>conftest.$ac_ext <<_ACEOF
10274
/* end confdefs.h. */
10275
#include <stddef.h>
10279
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10286
rm -f conftest.$ac_objext
10287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288
(eval $ac_compile) 2>conftest.er1
10290
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306
(exit $ac_status); }; }; then
10307
ac_hi=$ac_mid; break
10309
echo "$as_me: failed program was:" >&5
10310
sed 's/^/| /' conftest.$ac_ext >&5
10312
ac_lo=`expr $ac_mid + 1`
10313
if test $ac_lo -le $ac_mid; then
10317
ac_mid=`expr 2 '*' $ac_mid + 1`
10319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322
echo "$as_me: failed program was:" >&5
10323
sed 's/^/| /' conftest.$ac_ext >&5
10325
cat >conftest.$ac_ext <<_ACEOF
10328
cat confdefs.h >>conftest.$ac_ext
10329
cat >>conftest.$ac_ext <<_ACEOF
10330
/* end confdefs.h. */
10331
#include <stddef.h>
10335
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10342
rm -f conftest.$ac_objext
10343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344
(eval $ac_compile) 2>conftest.er1
10346
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362
(exit $ac_status); }; }; then
10365
cat >conftest.$ac_ext <<_ACEOF
10368
cat confdefs.h >>conftest.$ac_ext
10369
cat >>conftest.$ac_ext <<_ACEOF
10370
/* end confdefs.h. */
10371
#include <stddef.h>
10375
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10382
rm -f conftest.$ac_objext
10383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384
(eval $ac_compile) 2>conftest.er1
10386
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402
(exit $ac_status); }; }; then
10403
ac_lo=$ac_mid; break
10405
echo "$as_me: failed program was:" >&5
10406
sed 's/^/| /' conftest.$ac_ext >&5
10408
ac_hi=`expr '(' $ac_mid ')' - 1`
10409
if test $ac_mid -le $ac_hi; then
10413
ac_mid=`expr 2 '*' $ac_mid`
10415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10418
echo "$as_me: failed program was:" >&5
10419
sed 's/^/| /' conftest.$ac_ext >&5
10423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10432
cat confdefs.h >>conftest.$ac_ext
10433
cat >>conftest.$ac_ext <<_ACEOF
10434
/* end confdefs.h. */
10435
#include <stddef.h>
10439
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10446
rm -f conftest.$ac_objext
10447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448
(eval $ac_compile) 2>conftest.er1
10450
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466
(exit $ac_status); }; }; then
10469
echo "$as_me: failed program was:" >&5
10470
sed 's/^/| /' conftest.$ac_ext >&5
10472
ac_lo=`expr '(' $ac_mid ')' + 1`
10474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477
?*) res_hi=$ac_lo;;
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; }; }
10486
cat >conftest.$ac_ext <<_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; }
10496
#include <stdlib.h>
10501
FILE *f = fopen ("conftest.val", "w");
10504
if ((~(size_t)0 / 10) < 0)
10506
long i = longval ();
10507
if (i != (~(size_t)0 / 10))
10509
fprintf (f, "%ld\n", i);
10513
unsigned long i = ulongval ();
10514
if (i != (~(size_t)0 / 10))
10516
fprintf (f, "%lu\n", i);
10518
exit (ferror (f) || fclose (f) != 0);
10524
rm -f conftest$ac_exeext
10525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526
(eval $ac_link) 2>&5
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
10533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
(exit $ac_status); }; }; then
10535
res_hi=`cat conftest.val`
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
10541
( exit $ac_status )
10544
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10548
if test "$cross_compiling" = yes; then
10549
# Depending upon the size, compute the lo and hi bounds.
10550
cat >conftest.$ac_ext <<_ACEOF
10553
cat confdefs.h >>conftest.$ac_ext
10554
cat >>conftest.$ac_ext <<_ACEOF
10555
/* end confdefs.h. */
10556
#include <stddef.h>
10560
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10567
rm -f conftest.$ac_objext
10568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569
(eval $ac_compile) 2>conftest.er1
10571
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587
(exit $ac_status); }; }; then
10590
cat >conftest.$ac_ext <<_ACEOF
10593
cat confdefs.h >>conftest.$ac_ext
10594
cat >>conftest.$ac_ext <<_ACEOF
10595
/* end confdefs.h. */
10596
#include <stddef.h>
10600
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10607
rm -f conftest.$ac_objext
10608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609
(eval $ac_compile) 2>conftest.er1
10611
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627
(exit $ac_status); }; }; then
10628
ac_hi=$ac_mid; break
10630
echo "$as_me: failed program was:" >&5
10631
sed 's/^/| /' conftest.$ac_ext >&5
10633
ac_lo=`expr $ac_mid + 1`
10634
if test $ac_lo -le $ac_mid; then
10638
ac_mid=`expr 2 '*' $ac_mid + 1`
10640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10643
echo "$as_me: failed program was:" >&5
10644
sed 's/^/| /' conftest.$ac_ext >&5
10646
cat >conftest.$ac_ext <<_ACEOF
10649
cat confdefs.h >>conftest.$ac_ext
10650
cat >>conftest.$ac_ext <<_ACEOF
10651
/* end confdefs.h. */
10652
#include <stddef.h>
10656
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10663
rm -f conftest.$ac_objext
10664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665
(eval $ac_compile) 2>conftest.er1
10667
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
(exit $ac_status); }; }; then
10686
cat >conftest.$ac_ext <<_ACEOF
10689
cat confdefs.h >>conftest.$ac_ext
10690
cat >>conftest.$ac_ext <<_ACEOF
10691
/* end confdefs.h. */
10692
#include <stddef.h>
10696
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10703
rm -f conftest.$ac_objext
10704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705
(eval $ac_compile) 2>conftest.er1
10707
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723
(exit $ac_status); }; }; then
10724
ac_lo=$ac_mid; break
10726
echo "$as_me: failed program was:" >&5
10727
sed 's/^/| /' conftest.$ac_ext >&5
10729
ac_hi=`expr '(' $ac_mid ')' - 1`
10730
if test $ac_mid -le $ac_hi; then
10734
ac_mid=`expr 2 '*' $ac_mid`
10736
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10739
echo "$as_me: failed program was:" >&5
10740
sed 's/^/| /' conftest.$ac_ext >&5
10744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
10753
cat confdefs.h >>conftest.$ac_ext
10754
cat >>conftest.$ac_ext <<_ACEOF
10755
/* end confdefs.h. */
10756
#include <stddef.h>
10760
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10767
rm -f conftest.$ac_objext
10768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769
(eval $ac_compile) 2>conftest.er1
10771
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787
(exit $ac_status); }; }; then
10790
echo "$as_me: failed program was:" >&5
10791
sed 's/^/| /' conftest.$ac_ext >&5
10793
ac_lo=`expr '(' $ac_mid ')' + 1`
10795
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10798
?*) res_lo=$ac_lo;;
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; }; }
10807
cat >conftest.$ac_ext <<_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; }
10817
#include <stdlib.h>
10822
FILE *f = fopen ("conftest.val", "w");
10825
if ((~(size_t)0 % 10) < 0)
10827
long i = longval ();
10828
if (i != (~(size_t)0 % 10))
10830
fprintf (f, "%ld\n", i);
10834
unsigned long i = ulongval ();
10835
if (i != (~(size_t)0 % 10))
10837
fprintf (f, "%lu\n", i);
10839
exit (ferror (f) || fclose (f) != 0);
10845
rm -f conftest$ac_exeext
10846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847
(eval $ac_link) 2>&5
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
10854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855
(exit $ac_status); }; }; then
10856
res_lo=`cat conftest.val`
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
10862
( exit $ac_status )
10865
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10869
if test "$cross_compiling" = yes; then
10870
# Depending upon the size, compute the lo and hi bounds.
10871
cat >conftest.$ac_ext <<_ACEOF
10874
cat confdefs.h >>conftest.$ac_ext
10875
cat >>conftest.$ac_ext <<_ACEOF
10876
/* end confdefs.h. */
10877
#include <stddef.h>
10881
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10888
rm -f conftest.$ac_objext
10889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890
(eval $ac_compile) 2>conftest.er1
10892
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908
(exit $ac_status); }; }; then
10911
cat >conftest.$ac_ext <<_ACEOF
10914
cat confdefs.h >>conftest.$ac_ext
10915
cat >>conftest.$ac_ext <<_ACEOF
10916
/* end confdefs.h. */
10917
#include <stddef.h>
10921
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10928
rm -f conftest.$ac_objext
10929
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930
(eval $ac_compile) 2>conftest.er1
10932
grep -v '^ *+' conftest.er1 >conftest.err
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
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
10947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948
(exit $ac_status); }; }; then
10949
ac_hi=$ac_mid; break
10951
echo "$as_me: failed program was:" >&5
10952
sed 's/^/| /' conftest.$ac_ext >&5
10954
ac_lo=`expr $ac_mid + 1`
10955
if test $ac_lo -le $ac_mid; then
10959
ac_mid=`expr 2 '*' $ac_mid + 1`
10961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10964
echo "$as_me: failed program was:" >&5
10965
sed 's/^/| /' conftest.$ac_ext >&5
10967
cat >conftest.$ac_ext <<_ACEOF
10970
cat confdefs.h >>conftest.$ac_ext
10971
cat >>conftest.$ac_ext <<_ACEOF
10972
/* end confdefs.h. */
10973
#include <stddef.h>
10977
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10984
rm -f conftest.$ac_objext
10985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986
(eval $ac_compile) 2>conftest.er1
10988
grep -v '^ *+' conftest.er1 >conftest.err
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
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
11003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004
(exit $ac_status); }; }; then
11007
cat >conftest.$ac_ext <<_ACEOF
11010
cat confdefs.h >>conftest.$ac_ext
11011
cat >>conftest.$ac_ext <<_ACEOF
11012
/* end confdefs.h. */
11013
#include <stddef.h>
11017
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11024
rm -f conftest.$ac_objext
11025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026
(eval $ac_compile) 2>conftest.er1
11028
grep -v '^ *+' conftest.er1 >conftest.err
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
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
11043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044
(exit $ac_status); }; }; then
11045
ac_lo=$ac_mid; break
11047
echo "$as_me: failed program was:" >&5
11048
sed 's/^/| /' conftest.$ac_ext >&5
11050
ac_hi=`expr '(' $ac_mid ')' - 1`
11051
if test $ac_mid -le $ac_hi; then
11055
ac_mid=`expr 2 '*' $ac_mid`
11057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11060
echo "$as_me: failed program was:" >&5
11061
sed 's/^/| /' conftest.$ac_ext >&5
11065
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
11074
cat confdefs.h >>conftest.$ac_ext
11075
cat >>conftest.$ac_ext <<_ACEOF
11076
/* end confdefs.h. */
11077
#include <stddef.h>
11081
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11088
rm -f conftest.$ac_objext
11089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090
(eval $ac_compile) 2>conftest.er1
11092
grep -v '^ *+' conftest.er1 >conftest.err
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
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
11107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108
(exit $ac_status); }; }; then
11111
echo "$as_me: failed program was:" >&5
11112
sed 's/^/| /' conftest.$ac_ext >&5
11114
ac_lo=`expr '(' $ac_mid ')' + 1`
11116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119
?*) fits_in_uint=$ac_lo;;
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; }; }
11128
cat >conftest.$ac_ext <<_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); }
11138
#include <stdlib.h>
11143
FILE *f = fopen ("conftest.val", "w");
11146
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11148
long i = longval ();
11149
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11151
fprintf (f, "%ld\n", i);
11155
unsigned long i = ulongval ();
11156
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11158
fprintf (f, "%lu\n", i);
11160
exit (ferror (f) || fclose (f) != 0);
11166
rm -f conftest$ac_exeext
11167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11168
(eval $ac_link) 2>&5
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
11175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176
(exit $ac_status); }; }; then
11177
fits_in_uint=`cat conftest.val`
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
11183
( exit $ac_status )
11186
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11190
if test "$fits_in_uint" = 1; then
11191
cat >conftest.$ac_ext <<_ACEOF
11194
cat confdefs.h >>conftest.$ac_ext
11195
cat >>conftest.$ac_ext <<_ACEOF
11196
/* end confdefs.h. */
11197
#include <stddef.h>
11199
extern unsigned long foo;
11209
rm -f conftest.$ac_objext
11210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11211
(eval $ac_compile) 2>conftest.er1
11213
grep -v '^ *+' conftest.er1 >conftest.err
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
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
11228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229
(exit $ac_status); }; }; then
11232
echo "$as_me: failed program was:" >&5
11233
sed 's/^/| /' conftest.$ac_ext >&5
11236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11238
if test -z "$result"; then
11239
if test "$fits_in_uint" = 1; then
11240
result="$res_hi$res_lo"U
11242
result="$res_hi$res_lo"UL
11245
result='~(size_t)0'
11248
echo "$as_me:$LINENO: result: $result" >&5
11249
echo "${ECHO_T}$result" >&6
11250
if test "$result" != yes; then
11252
cat >>confdefs.h <<_ACEOF
11253
#define SIZE_MAX $result
11261
for ac_header in stdint.h
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
11270
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11271
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
11285
rm -f conftest.$ac_objext
11286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11287
(eval $ac_compile) 2>conftest.er1
11289
grep -v '^ *+' conftest.er1 >conftest.err
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
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
11304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305
(exit $ac_status); }; }; then
11306
ac_header_compiler=yes
11308
echo "$as_me: failed program was:" >&5
11309
sed 's/^/| /' conftest.$ac_ext >&5
11311
ac_header_compiler=no
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
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
11323
cat confdefs.h >>conftest.$ac_ext
11324
cat >>conftest.$ac_ext <<_ACEOF
11325
/* end confdefs.h. */
11326
#include <$ac_header>
11328
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11329
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11331
grep -v '^ *+' conftest.er1 >conftest.err
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
11345
if test -z "$ac_cpp_err"; then
11346
ac_header_preproc=yes
11348
echo "$as_me: failed program was:" >&5
11349
sed 's/^/| /' conftest.$ac_ext >&5
11351
ac_header_preproc=no
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
11357
# So? What about this header?
11358
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
11381
## ------------------------------------ ##
11382
## Report this to gnupg-devel@gnupg.org ##
11383
## ------------------------------------ ##
11386
sed "s/^/$as_me: WARNING: /" >&2
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
11394
eval "$as_ac_Header=\$ac_header_preproc"
11396
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11397
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
11411
if test "X$prefix" = "XNONE"; then
11412
acl_final_prefix="$ac_default_prefix"
11414
acl_final_prefix="$prefix"
11416
if test "X$exec_prefix" = "XNONE"; then
11417
acl_final_exec_prefix='${prefix}'
11419
acl_final_exec_prefix="$exec_prefix"
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"
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
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
11440
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
11454
# gcc leaves a trailing carriage return which upsets mingw
11455
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11457
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
11468
test -z "$LD" && LD="$ac_prog"
11471
# If it fails, then pretend we aren't using GCC.
11475
# If it is relative, then search for the first ld in PATH.
11476
with_gnu_ld=unknown
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
11483
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11484
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11486
if test "${acl_cv_path_LD+set}" = set; then
11487
echo $ECHO_N "(cached) $ECHO_C" >&6
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 ;;
11502
test "$with_gnu_ld" != yes && break ;;
11508
acl_cv_path_LD="$LD" # Let the user override the test with a path.
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
11517
echo "$as_me:$LINENO: result: no" >&5
11518
echo "${ECHO_T}no" >&6
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
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 ;;
11533
acl_cv_prog_gnu_ld=no ;;
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
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
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
11551
rm -f ./conftest.sh
11555
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11556
echo "${ECHO_T}$acl_cv_rpath" >&6
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"
11580
acl_save_prefix="$prefix"
11581
prefix="$acl_final_prefix"
11582
acl_save_exec_prefix="$exec_prefix"
11583
exec_prefix="$acl_final_exec_prefix"
11585
eval additional_includedir=\"$includedir\"
11586
eval additional_libdir=\"$libdir\"
11588
exec_prefix="$acl_save_exec_prefix"
11589
prefix="$acl_save_prefix"
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"
11596
if test "X$withval" = "Xno"; then
11599
if test "X$withval" = "X"; then
11601
acl_save_prefix="$prefix"
11602
prefix="$acl_final_prefix"
11603
acl_save_exec_prefix="$exec_prefix"
11604
exec_prefix="$acl_final_exec_prefix"
11606
eval additional_includedir=\"$includedir\"
11607
eval additional_libdir=\"$libdir\"
11609
exec_prefix="$acl_save_exec_prefix"
11610
prefix="$acl_save_prefix"
11613
additional_includedir="$withval/include"
11614
additional_libdir="$withval/lib"
11624
names_already_handled=
11625
names_next_round='iconv '
11626
while test -n "$names_next_round"; do
11627
names_this_round="$names_next_round"
11629
for name in $names_this_round; do
11631
for n in $names_already_handled; do
11632
if test "$n" = "$name"; then
11633
already_handled=yes
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"
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"
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"
11672
if test "X$found_dir" = "X"; then
11673
for x in $LDFLAGS $LTLIBICONV; do
11675
acl_save_prefix="$prefix"
11676
prefix="$acl_final_prefix"
11677
acl_save_exec_prefix="$exec_prefix"
11678
exec_prefix="$acl_final_exec_prefix"
11680
exec_prefix="$acl_save_exec_prefix"
11681
prefix="$acl_save_prefix"
11685
dir=`echo "X$x" | sed -e 's/^X-L//'`
11686
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11688
found_so="$dir/lib$name.$shlibext"
11689
if test -f "$dir/lib$name.la"; then
11690
found_la="$dir/lib$name.la"
11693
if test -f "$dir/lib$name.$libext"; then
11695
found_a="$dir/lib$name.$libext"
11696
if test -f "$dir/lib$name.la"; then
11697
found_la="$dir/lib$name.la"
11703
if test "X$found_dir" != "X"; then
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"
11715
for x in $ltrpathdirs; do
11716
if test "X$x" = "X$found_dir"; then
11721
if test -z "$haveit"; then
11722
ltrpathdirs="$ltrpathdirs $found_dir"
11724
if test "$hardcode_direct" = yes; then
11725
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11727
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11728
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11730
for x in $rpathdirs; do
11731
if test "X$x" = "X$found_dir"; then
11736
if test -z "$haveit"; then
11737
rpathdirs="$rpathdirs $found_dir"
11741
for x in $LDFLAGS $LIBICONV; do
11743
acl_save_prefix="$prefix"
11744
prefix="$acl_final_prefix"
11745
acl_save_exec_prefix="$exec_prefix"
11746
exec_prefix="$acl_final_exec_prefix"
11748
exec_prefix="$acl_save_exec_prefix"
11749
prefix="$acl_save_prefix"
11751
if test "X$x" = "X-L$found_dir"; then
11756
if test -z "$haveit"; then
11757
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11759
if test "$hardcode_minus_L" != no; then
11760
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11762
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11768
if test "X$found_a" != "X"; then
11769
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11771
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11774
additional_includedir=
11775
case "$found_dir" in
11777
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11778
additional_includedir="$basedir/include"
11781
if test "X$additional_includedir" != "X"; then
11782
if test "X$additional_includedir" != "X/usr/include"; then
11784
if test "X$additional_includedir" = "X/usr/local/include"; then
11785
if test -n "$GCC"; then
11787
linux*) haveit=yes;;
11791
if test -z "$haveit"; then
11792
for x in $CPPFLAGS $INCICONV; do
11794
acl_save_prefix="$prefix"
11795
prefix="$acl_final_prefix"
11796
acl_save_exec_prefix="$exec_prefix"
11797
exec_prefix="$acl_final_exec_prefix"
11799
exec_prefix="$acl_save_exec_prefix"
11800
prefix="$acl_save_prefix"
11802
if test "X$x" = "X-I$additional_includedir"; then
11807
if test -z "$haveit"; then
11808
if test -d "$additional_includedir"; then
11809
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11815
if test -n "$found_la"; then
11816
save_libdir="$libdir"
11817
case "$found_la" in
11818
*/* | *\\*) . "$found_la" ;;
11819
*) . "./$found_la" ;;
11821
libdir="$save_libdir"
11822
for dep in $dependency_libs; do
11825
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11826
if test "X$additional_libdir" != "X/usr/lib"; then
11828
if test "X$additional_libdir" = "X/usr/local/lib"; then
11829
if test -n "$GCC"; then
11831
linux*) haveit=yes;;
11835
if test -z "$haveit"; then
11837
for x in $LDFLAGS $LIBICONV; do
11839
acl_save_prefix="$prefix"
11840
prefix="$acl_final_prefix"
11841
acl_save_exec_prefix="$exec_prefix"
11842
exec_prefix="$acl_final_exec_prefix"
11844
exec_prefix="$acl_save_exec_prefix"
11845
prefix="$acl_save_prefix"
11847
if test "X$x" = "X-L$additional_libdir"; then
11852
if test -z "$haveit"; then
11853
if test -d "$additional_libdir"; then
11854
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11858
for x in $LDFLAGS $LTLIBICONV; do
11860
acl_save_prefix="$prefix"
11861
prefix="$acl_final_prefix"
11862
acl_save_exec_prefix="$exec_prefix"
11863
exec_prefix="$acl_final_exec_prefix"
11865
exec_prefix="$acl_save_exec_prefix"
11866
prefix="$acl_save_prefix"
11868
if test "X$x" = "X-L$additional_libdir"; then
11873
if test -z "$haveit"; then
11874
if test -d "$additional_libdir"; then
11875
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11882
dir=`echo "X$dep" | sed -e 's/^X-R//'`
11883
if test "$enable_rpath" != no; then
11885
for x in $rpathdirs; do
11886
if test "X$x" = "X$dir"; then
11891
if test -z "$haveit"; then
11892
rpathdirs="$rpathdirs $dir"
11895
for x in $ltrpathdirs; do
11896
if test "X$x" = "X$dir"; then
11901
if test -z "$haveit"; then
11902
ltrpathdirs="$ltrpathdirs $dir"
11907
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11910
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11913
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11914
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11920
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11921
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11927
if test "X$rpathdirs" != "X"; then
11928
if test -n "$hardcode_libdir_separator"; then
11930
for found_dir in $rpathdirs; do
11931
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11933
acl_save_libdir="$libdir"
11935
eval flag=\"$hardcode_libdir_flag_spec\"
11936
libdir="$acl_save_libdir"
11937
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
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"
11948
if test "X$ltrpathdirs" != "X"; then
11949
for found_dir in $ltrpathdirs; do
11950
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
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
11966
cat >conftest.$ac_ext <<_ACEOF
11969
cat confdefs.h >>conftest.$ac_ext
11970
cat >>conftest.$ac_ext <<_ACEOF
11971
/* end confdefs.h. */
11972
$ac_includes_default
11976
if ((ptrdiff_t *) 0)
11978
if (sizeof (ptrdiff_t))
11984
rm -f conftest.$ac_objext
11985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986
(eval $ac_compile) 2>conftest.er1
11988
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004
(exit $ac_status); }; }; then
12005
ac_cv_type_ptrdiff_t=yes
12007
echo "$as_me: failed program was:" >&5
12008
sed 's/^/| /' conftest.$ac_ext >&5
12010
ac_cv_type_ptrdiff_t=no
12012
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12020
cat >>confdefs.h <<\_ACEOF
12021
#define ptrdiff_t long
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
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
12047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12048
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
12062
rm -f conftest.$ac_objext
12063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064
(eval $ac_compile) 2>conftest.er1
12066
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082
(exit $ac_status); }; }; then
12083
ac_header_compiler=yes
12085
echo "$as_me: failed program was:" >&5
12086
sed 's/^/| /' conftest.$ac_ext >&5
12088
ac_header_compiler=no
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
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
12100
cat confdefs.h >>conftest.$ac_ext
12101
cat >>conftest.$ac_ext <<_ACEOF
12102
/* end confdefs.h. */
12103
#include <$ac_header>
12105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12106
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12108
grep -v '^ *+' conftest.er1 >conftest.err
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
12122
if test -z "$ac_cpp_err"; then
12123
ac_header_preproc=yes
12125
echo "$as_me: failed program was:" >&5
12126
sed 's/^/| /' conftest.$ac_ext >&5
12128
ac_header_preproc=no
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
12134
# So? What about this header?
12135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
12158
## ------------------------------------ ##
12159
## Report this to gnupg-devel@gnupg.org ##
12160
## ------------------------------------ ##
12163
sed "s/^/$as_me: WARNING: /" >&2
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
12171
eval "$as_ac_Header=\$ac_header_preproc"
12173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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 \
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
12220
cat >conftest.$ac_ext <<_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
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. */
12236
# include <limits.h>
12238
# include <assert.h>
12243
/* Override any gcc2 internal prototype to avoid an error. */
12248
/* We use char because int might match the return type of a gcc2
12249
builtin and then its argument prototype would still apply. */
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)
12257
char (*f) () = $ac_func;
12266
return f != $ac_func;
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
12275
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291
(exit $ac_status); }; }; then
12292
eval "$as_ac_var=yes"
12294
echo "$as_me: failed program was:" >&5
12295
sed 's/^/| /' conftest.$ac_ext >&5
12297
eval "$as_ac_var=no"
12299
rm -f conftest.err conftest.$ac_objext \
12300
conftest$ac_exeext conftest.$ac_ext
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
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
12319
cat >conftest.$ac_ext <<_ACEOF
12322
cat confdefs.h >>conftest.$ac_ext
12323
cat >>conftest.$ac_ext <<_ACEOF
12324
/* end confdefs.h. */
12331
char *p = (char *) _snprintf;
12338
rm -f conftest.$ac_objext
12339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340
(eval $ac_compile) 2>conftest.er1
12342
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358
(exit $ac_status); }; }; then
12359
ac_cv_have_decl__snprintf=yes
12361
echo "$as_me: failed program was:" >&5
12362
sed 's/^/| /' conftest.$ac_ext >&5
12364
ac_cv_have_decl__snprintf=no
12366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12376
cat >>confdefs.h <<_ACEOF
12377
#define HAVE_DECL__SNPRINTF $gt_value
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
12387
cat >conftest.$ac_ext <<_ACEOF
12390
cat confdefs.h >>conftest.$ac_ext
12391
cat >>conftest.$ac_ext <<_ACEOF
12392
/* end confdefs.h. */
12399
char *p = (char *) _snwprintf;
12406
rm -f conftest.$ac_objext
12407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408
(eval $ac_compile) 2>conftest.er1
12410
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426
(exit $ac_status); }; }; then
12427
ac_cv_have_decl__snwprintf=yes
12429
echo "$as_me: failed program was:" >&5
12430
sed 's/^/| /' conftest.$ac_ext >&5
12432
ac_cv_have_decl__snwprintf=no
12434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12444
cat >>confdefs.h <<_ACEOF
12445
#define HAVE_DECL__SNWPRINTF $gt_value
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
12456
cat >conftest.$ac_ext <<_ACEOF
12459
cat confdefs.h >>conftest.$ac_ext
12460
cat >>conftest.$ac_ext <<_ACEOF
12461
/* end confdefs.h. */
12467
#ifndef feof_unlocked
12468
char *p = (char *) feof_unlocked;
12475
rm -f conftest.$ac_objext
12476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477
(eval $ac_compile) 2>conftest.er1
12479
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495
(exit $ac_status); }; }; then
12496
ac_cv_have_decl_feof_unlocked=yes
12498
echo "$as_me: failed program was:" >&5
12499
sed 's/^/| /' conftest.$ac_ext >&5
12501
ac_cv_have_decl_feof_unlocked=no
12503
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12513
cat >>confdefs.h <<_ACEOF
12514
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
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
12524
cat >conftest.$ac_ext <<_ACEOF
12527
cat confdefs.h >>conftest.$ac_ext
12528
cat >>conftest.$ac_ext <<_ACEOF
12529
/* end confdefs.h. */
12535
#ifndef fgets_unlocked
12536
char *p = (char *) fgets_unlocked;
12543
rm -f conftest.$ac_objext
12544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545
(eval $ac_compile) 2>conftest.er1
12547
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563
(exit $ac_status); }; }; then
12564
ac_cv_have_decl_fgets_unlocked=yes
12566
echo "$as_me: failed program was:" >&5
12567
sed 's/^/| /' conftest.$ac_ext >&5
12569
ac_cv_have_decl_fgets_unlocked=no
12571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12581
cat >>confdefs.h <<_ACEOF
12582
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
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
12592
cat >conftest.$ac_ext <<_ACEOF
12595
cat confdefs.h >>conftest.$ac_ext
12596
cat >>conftest.$ac_ext <<_ACEOF
12597
/* end confdefs.h. */
12603
#ifndef getc_unlocked
12604
char *p = (char *) getc_unlocked;
12611
rm -f conftest.$ac_objext
12612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613
(eval $ac_compile) 2>conftest.er1
12615
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631
(exit $ac_status); }; }; then
12632
ac_cv_have_decl_getc_unlocked=yes
12634
echo "$as_me: failed program was:" >&5
12635
sed 's/^/| /' conftest.$ac_ext >&5
12637
ac_cv_have_decl_getc_unlocked=no
12639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
12649
cat >>confdefs.h <<_ACEOF
12650
#define HAVE_DECL_GETC_UNLOCKED $gt_value
12655
case $gt_cv_func_printf_posix in
12656
*yes) HAVE_POSIX_PRINTF=1 ;;
12657
*) HAVE_POSIX_PRINTF=0 ;;
12660
if test "$ac_cv_func_asprintf" = yes; then
12666
if test "$ac_cv_func_snprintf" = yes; then
12672
if test "$ac_cv_func_wprintf" = yes; then
12684
am_save_CPPFLAGS="$CPPFLAGS"
12686
for element in $INCICONV; do
12688
for x in $CPPFLAGS; do
12690
acl_save_prefix="$prefix"
12691
prefix="$acl_final_prefix"
12692
acl_save_exec_prefix="$exec_prefix"
12693
exec_prefix="$acl_final_exec_prefix"
12695
exec_prefix="$acl_save_exec_prefix"
12696
prefix="$acl_save_prefix"
12698
if test "X$x" = "X$element"; then
12703
if test -z "$haveit"; then
12704
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
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
12715
am_cv_func_iconv="no, consider installing GNU libiconv"
12717
cat >conftest.$ac_ext <<_ACEOF
12720
cat confdefs.h >>conftest.$ac_ext
12721
cat >>conftest.$ac_ext <<_ACEOF
12722
/* end confdefs.h. */
12723
#include <stdlib.h>
12728
iconv_t cd = iconv_open("","");
12729
iconv(cd,NULL,NULL,NULL,NULL);
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
12739
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755
(exit $ac_status); }; }; then
12756
am_cv_func_iconv=yes
12758
echo "$as_me: failed program was:" >&5
12759
sed 's/^/| /' conftest.$ac_ext >&5
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
12770
cat confdefs.h >>conftest.$ac_ext
12771
cat >>conftest.$ac_ext <<_ACEOF
12772
/* end confdefs.h. */
12773
#include <stdlib.h>
12778
iconv_t cd = iconv_open("","");
12779
iconv(cd,NULL,NULL,NULL,NULL);
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
12789
grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
12809
echo "$as_me: failed program was:" >&5
12810
sed 's/^/| /' conftest.$ac_ext >&5
12813
rm -f conftest.err conftest.$ac_objext \
12814
conftest$ac_exeext conftest.$ac_ext
12815
LIBS="$am_save_LIBS"
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
12823
cat >>confdefs.h <<\_ACEOF
12824
#define HAVE_ICONV 1
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
12834
CPPFLAGS="$am_save_CPPFLAGS"
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
12848
cat >conftest.$ac_ext <<_ACEOF
12851
cat confdefs.h >>conftest.$ac_ext
12852
cat >>conftest.$ac_ext <<_ACEOF
12853
/* end confdefs.h. */
12855
#include <stdlib.h>
12861
#if defined(__STDC__) || defined(__cplusplus)
12862
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12875
rm -f conftest.$ac_objext
12876
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877
(eval $ac_compile) 2>conftest.er1
12879
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895
(exit $ac_status); }; }; then
12896
am_cv_proto_iconv_arg1=""
12898
echo "$as_me: failed program was:" >&5
12899
sed 's/^/| /' conftest.$ac_ext >&5
12901
am_cv_proto_iconv_arg1="const"
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);"
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
12913
cat >>confdefs.h <<_ACEOF
12914
#define ICONV_CONST $am_cv_proto_iconv_arg1
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
12925
cat >conftest.$ac_ext <<_ACEOF
12928
cat confdefs.h >>conftest.$ac_ext
12929
cat >>conftest.$ac_ext <<_ACEOF
12930
/* end confdefs.h. */
12931
#include <langinfo.h>
12935
char* cs = nl_langinfo(CODESET);
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
12944
grep -v '^ *+' conftest.er1 >conftest.err
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
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
12959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960
(exit $ac_status); }; }; then
12961
am_cv_langinfo_codeset=yes
12963
echo "$as_me: failed program was:" >&5
12964
sed 's/^/| /' conftest.$ac_ext >&5
12966
am_cv_langinfo_codeset=no
12968
rm -f conftest.err conftest.$ac_objext \
12969
conftest$ac_exeext conftest.$ac_ext
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
12976
cat >>confdefs.h <<\_ACEOF
12977
#define HAVE_LANGINFO_CODESET 1
12982
if test $ac_cv_header_locale_h = yes; then
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
12989
cat >conftest.$ac_ext <<_ACEOF
12992
cat confdefs.h >>conftest.$ac_ext
12993
cat >>conftest.$ac_ext <<_ACEOF
12994
/* end confdefs.h. */
12995
#include <locale.h>
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
13008
grep -v '^ *+' conftest.er1 >conftest.err
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
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
13023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024
(exit $ac_status); }; }; then
13025
am_cv_val_LC_MESSAGES=yes
13027
echo "$as_me: failed program was:" >&5
13028
sed 's/^/| /' conftest.$ac_ext >&5
13030
am_cv_val_LC_MESSAGES=no
13032
rm -f conftest.err conftest.$ac_objext \
13033
conftest$ac_exeext conftest.$ac_ext
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
13039
cat >>confdefs.h <<\_ACEOF
13040
#define HAVE_LC_MESSAGES 1
13047
for ac_prog in bison
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
13056
if test -n "$INTLBISON"; then
13057
ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060
for as_dir in $PATH
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
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
13080
echo "$as_me:$LINENO: result: no" >&5
13081
echo "${ECHO_T}no" >&6
13084
test -n "$INTLBISON" && break
13087
if test -z "$INTLBISON"; then
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;;
13099
echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13100
echo "${ECHO_T}$ac_prog_version" >&6
13102
if test $ac_verc_fail = yes; then
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"
13130
echo "$as_me:$LINENO: result: $USE_NLS" >&5
13131
echo "${ECHO_T}$USE_NLS" >&6
13136
BUILD_INCLUDED_LIBINTL=no
13137
USE_INCLUDED_LIBINTL=no
13143
if test "$USE_NLS" = "yes"; then
13144
gt_use_preinstalled_gnugettext=no
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
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
13154
nls_cv_force_use_gnu_gettext=no
13156
echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13157
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13159
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13160
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
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
13172
cat >conftest.$ac_ext <<_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;
13184
bindtextdomain ("", "");
13185
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
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
13194
grep -v '^ *+' conftest.er1 >conftest.err
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
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
13209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210
(exit $ac_status); }; }; then
13211
gt_cv_func_gnugettext2_libc=yes
13213
echo "$as_me: failed program was:" >&5
13214
sed 's/^/| /' conftest.$ac_ext >&5
13216
gt_cv_func_gnugettext2_libc=no
13218
rm -f conftest.err conftest.$ac_objext \
13219
conftest$ac_exeext conftest.$ac_ext
13221
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
13222
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
13224
if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13230
acl_save_prefix="$prefix"
13231
prefix="$acl_final_prefix"
13232
acl_save_exec_prefix="$exec_prefix"
13233
exec_prefix="$acl_final_exec_prefix"
13235
eval additional_includedir=\"$includedir\"
13236
eval additional_libdir=\"$libdir\"
13238
exec_prefix="$acl_save_exec_prefix"
13239
prefix="$acl_save_prefix"
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"
13246
if test "X$withval" = "Xno"; then
13249
if test "X$withval" = "X"; then
13251
acl_save_prefix="$prefix"
13252
prefix="$acl_final_prefix"
13253
acl_save_exec_prefix="$exec_prefix"
13254
exec_prefix="$acl_final_exec_prefix"
13256
eval additional_includedir=\"$includedir\"
13257
eval additional_libdir=\"$libdir\"
13259
exec_prefix="$acl_save_exec_prefix"
13260
prefix="$acl_save_prefix"
13263
additional_includedir="$withval/include"
13264
additional_libdir="$withval/lib"
13274
names_already_handled=
13275
names_next_round='intl '
13276
while test -n "$names_next_round"; do
13277
names_this_round="$names_next_round"
13279
for name in $names_this_round; do
13281
for n in $names_already_handled; do
13282
if test "$n" = "$name"; then
13283
already_handled=yes
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"
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"
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"
13322
if test "X$found_dir" = "X"; then
13323
for x in $LDFLAGS $LTLIBINTL; do
13325
acl_save_prefix="$prefix"
13326
prefix="$acl_final_prefix"
13327
acl_save_exec_prefix="$exec_prefix"
13328
exec_prefix="$acl_final_exec_prefix"
13330
exec_prefix="$acl_save_exec_prefix"
13331
prefix="$acl_save_prefix"
13335
dir=`echo "X$x" | sed -e 's/^X-L//'`
13336
if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13338
found_so="$dir/lib$name.$shlibext"
13339
if test -f "$dir/lib$name.la"; then
13340
found_la="$dir/lib$name.la"
13343
if test -f "$dir/lib$name.$libext"; then
13345
found_a="$dir/lib$name.$libext"
13346
if test -f "$dir/lib$name.la"; then
13347
found_la="$dir/lib$name.la"
13353
if test "X$found_dir" != "X"; then
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"
13365
for x in $ltrpathdirs; do
13366
if test "X$x" = "X$found_dir"; then
13371
if test -z "$haveit"; then
13372
ltrpathdirs="$ltrpathdirs $found_dir"
13374
if test "$hardcode_direct" = yes; then
13375
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13377
if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13378
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13380
for x in $rpathdirs; do
13381
if test "X$x" = "X$found_dir"; then
13386
if test -z "$haveit"; then
13387
rpathdirs="$rpathdirs $found_dir"
13391
for x in $LDFLAGS $LIBINTL; do
13393
acl_save_prefix="$prefix"
13394
prefix="$acl_final_prefix"
13395
acl_save_exec_prefix="$exec_prefix"
13396
exec_prefix="$acl_final_exec_prefix"
13398
exec_prefix="$acl_save_exec_prefix"
13399
prefix="$acl_save_prefix"
13401
if test "X$x" = "X-L$found_dir"; then
13406
if test -z "$haveit"; then
13407
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13409
if test "$hardcode_minus_L" != no; then
13410
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13412
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13418
if test "X$found_a" != "X"; then
13419
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13421
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13424
additional_includedir=
13425
case "$found_dir" in
13427
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13428
additional_includedir="$basedir/include"
13431
if test "X$additional_includedir" != "X"; then
13432
if test "X$additional_includedir" != "X/usr/include"; then
13434
if test "X$additional_includedir" = "X/usr/local/include"; then
13435
if test -n "$GCC"; then
13437
linux*) haveit=yes;;
13441
if test -z "$haveit"; then
13442
for x in $CPPFLAGS $INCINTL; do
13444
acl_save_prefix="$prefix"
13445
prefix="$acl_final_prefix"
13446
acl_save_exec_prefix="$exec_prefix"
13447
exec_prefix="$acl_final_exec_prefix"
13449
exec_prefix="$acl_save_exec_prefix"
13450
prefix="$acl_save_prefix"
13452
if test "X$x" = "X-I$additional_includedir"; then
13457
if test -z "$haveit"; then
13458
if test -d "$additional_includedir"; then
13459
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13465
if test -n "$found_la"; then
13466
save_libdir="$libdir"
13467
case "$found_la" in
13468
*/* | *\\*) . "$found_la" ;;
13469
*) . "./$found_la" ;;
13471
libdir="$save_libdir"
13472
for dep in $dependency_libs; do
13475
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13476
if test "X$additional_libdir" != "X/usr/lib"; then
13478
if test "X$additional_libdir" = "X/usr/local/lib"; then
13479
if test -n "$GCC"; then
13481
linux*) haveit=yes;;
13485
if test -z "$haveit"; then
13487
for x in $LDFLAGS $LIBINTL; do
13489
acl_save_prefix="$prefix"
13490
prefix="$acl_final_prefix"
13491
acl_save_exec_prefix="$exec_prefix"
13492
exec_prefix="$acl_final_exec_prefix"
13494
exec_prefix="$acl_save_exec_prefix"
13495
prefix="$acl_save_prefix"
13497
if test "X$x" = "X-L$additional_libdir"; then
13502
if test -z "$haveit"; then
13503
if test -d "$additional_libdir"; then
13504
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13508
for x in $LDFLAGS $LTLIBINTL; do
13510
acl_save_prefix="$prefix"
13511
prefix="$acl_final_prefix"
13512
acl_save_exec_prefix="$exec_prefix"
13513
exec_prefix="$acl_final_exec_prefix"
13515
exec_prefix="$acl_save_exec_prefix"
13516
prefix="$acl_save_prefix"
13518
if test "X$x" = "X-L$additional_libdir"; then
13523
if test -z "$haveit"; then
13524
if test -d "$additional_libdir"; then
13525
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13532
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13533
if test "$enable_rpath" != no; then
13535
for x in $rpathdirs; do
13536
if test "X$x" = "X$dir"; then
13541
if test -z "$haveit"; then
13542
rpathdirs="$rpathdirs $dir"
13545
for x in $ltrpathdirs; do
13546
if test "X$x" = "X$dir"; then
13551
if test -z "$haveit"; then
13552
ltrpathdirs="$ltrpathdirs $dir"
13557
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13560
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13563
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13564
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13570
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13571
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13577
if test "X$rpathdirs" != "X"; then
13578
if test -n "$hardcode_libdir_separator"; then
13580
for found_dir in $rpathdirs; do
13581
alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13583
acl_save_libdir="$libdir"
13585
eval flag=\"$hardcode_libdir_flag_spec\"
13586
libdir="$acl_save_libdir"
13587
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
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"
13598
if test "X$ltrpathdirs" != "X"; then
13599
for found_dir in $ltrpathdirs; do
13600
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
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
13609
gt_save_CPPFLAGS="$CPPFLAGS"
13610
CPPFLAGS="$CPPFLAGS $INCINTL"
13611
gt_save_LIBS="$LIBS"
13612
LIBS="$LIBS $LIBINTL"
13613
cat >conftest.$ac_ext <<_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;
13625
const char *_nl_expand_alias ();
13629
bindtextdomain ("", "");
13630
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
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
13639
grep -v '^ *+' conftest.er1 >conftest.err
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
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
13654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655
(exit $ac_status); }; }; then
13656
gt_cv_func_gnugettext2_libintl=yes
13658
echo "$as_me: failed program was:" >&5
13659
sed 's/^/| /' conftest.$ac_ext >&5
13661
gt_cv_func_gnugettext2_libintl=no
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
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;
13679
const char *_nl_expand_alias ();
13683
bindtextdomain ("", "");
13684
return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
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
13693
grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
13715
echo "$as_me: failed program was:" >&5
13716
sed 's/^/| /' conftest.$ac_ext >&5
13719
rm -f conftest.err conftest.$ac_objext \
13720
conftest$ac_exeext conftest.$ac_ext
13722
CPPFLAGS="$gt_save_CPPFLAGS"
13723
LIBS="$gt_save_LIBS"
13725
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
13726
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
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
13741
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13742
nls_cv_use_gnu_gettext=yes
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/ $//'`
13754
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13755
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13760
if test "$gt_use_preinstalled_gnugettext" = "yes" \
13761
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
13763
cat >>confdefs.h <<\_ACEOF
13764
#define ENABLE_NLS 1
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"
13786
gt_source="included intl directory"
13788
echo "$as_me:$LINENO: result: $gt_source" >&5
13789
echo "${ECHO_T}$gt_source" >&6
13792
if test "$USE_NLS" = "yes"; then
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
13801
for element in $INCINTL; do
13803
for x in $CPPFLAGS; do
13805
acl_save_prefix="$prefix"
13806
prefix="$acl_final_prefix"
13807
acl_save_exec_prefix="$exec_prefix"
13808
exec_prefix="$acl_final_exec_prefix"
13810
exec_prefix="$acl_save_exec_prefix"
13811
prefix="$acl_save_prefix"
13813
if test "X$x" = "X$element"; then
13818
if test -z "$haveit"; then
13819
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13826
cat >>confdefs.h <<\_ACEOF
13827
#define HAVE_GETTEXT 1
13831
cat >>confdefs.h <<\_ACEOF
13832
#define HAVE_DCGETTEXT 1
13841
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13842
BUILD_INCLUDED_LIBINTL=yes
13849
nls_cv_header_intl=
13850
nls_cv_header_libgt=
13861
if test "$USE_INCLUDED_LIBINTL" = yes; then
13862
INTLOBJS="\$(GETTOBJS)"
13866
INTL_LIBTOOL_SUFFIX_PREFIX=
13870
INTLLIBS="$LIBINTL"
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.
13883
for ac_func in strchr
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
13891
cat >conftest.$ac_ext <<_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
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. */
13907
# include <limits.h>
13909
# include <assert.h>
13914
/* Override any gcc2 internal prototype to avoid an error. */
13919
/* We use char because int might match the return type of a gcc2
13920
builtin and then its argument prototype would still apply. */
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)
13928
char (*f) () = $ac_func;
13937
return f != $ac_func;
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
13946
grep -v '^ *+' conftest.er1 >conftest.err
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
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
13961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962
(exit $ac_status); }; }; then
13963
eval "$as_ac_var=yes"
13965
echo "$as_me: failed program was:" >&5
13966
sed 's/^/| /' conftest.$ac_ext >&5
13968
eval "$as_ac_var=no"
13970
rm -f conftest.err conftest.$ac_objext \
13971
conftest$ac_exeext conftest.$ac_ext
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
13985
USE_INCLUDED_LIBINTL=no
13986
BUILD_INCLUDED_LIBINTL=no
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
13998
cat >conftest.$ac_ext <<_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>
14017
rm -f conftest.$ac_objext
14018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019
(eval $ac_compile) 2>conftest.er1
14021
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037
(exit $ac_status); }; }; then
14038
ac_cv_header_stdc=yes
14040
echo "$as_me: failed program was:" >&5
14041
sed 's/^/| /' conftest.$ac_ext >&5
14043
ac_cv_header_stdc=no
14045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
14052
cat confdefs.h >>conftest.$ac_ext
14053
cat >>conftest.$ac_ext <<_ACEOF
14054
/* end confdefs.h. */
14055
#include <string.h>
14058
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14059
$EGREP "memchr" >/dev/null 2>&1; then
14062
ac_cv_header_stdc=no
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
14073
cat confdefs.h >>conftest.$ac_ext
14074
cat >>conftest.$ac_ext <<_ACEOF
14075
/* end confdefs.h. */
14076
#include <stdlib.h>
14079
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080
$EGREP "free" >/dev/null 2>&1; then
14083
ac_cv_header_stdc=no
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
14094
cat >conftest.$ac_ext <<_ACEOF
14097
cat confdefs.h >>conftest.$ac_ext
14098
cat >>conftest.$ac_ext <<_ACEOF
14099
/* end confdefs.h. */
14101
#if ((' ' & 0x0FF) == 0x020)
14102
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14103
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
14112
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14117
for (i = 0; i < 256; i++)
14118
if (XOR (islower (i), ISLOWER (i))
14119
|| toupper (i) != TOUPPER (i))
14124
rm -f conftest$ac_exeext
14125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14126
(eval $ac_link) 2>&5
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
14133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134
(exit $ac_status); }; }; then
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
14141
( exit $ac_status )
14142
ac_cv_header_stdc=no
14144
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
14152
cat >>confdefs.h <<\_ACEOF
14153
#define STDC_HEADERS 1
14164
for ac_header in string.h unistd.h langinfo.h termio.h locale.h dlfcn.h
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
14173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
14188
rm -f conftest.$ac_objext
14189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190
(eval $ac_compile) 2>conftest.er1
14192
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208
(exit $ac_status); }; }; then
14209
ac_header_compiler=yes
14211
echo "$as_me: failed program was:" >&5
14212
sed 's/^/| /' conftest.$ac_ext >&5
14214
ac_header_compiler=no
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
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
14226
cat confdefs.h >>conftest.$ac_ext
14227
cat >>conftest.$ac_ext <<_ACEOF
14228
/* end confdefs.h. */
14229
#include <$ac_header>
14231
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14232
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14234
grep -v '^ *+' conftest.er1 >conftest.err
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
14248
if test -z "$ac_cpp_err"; then
14249
ac_header_preproc=yes
14251
echo "$as_me: failed program was:" >&5
14252
sed 's/^/| /' conftest.$ac_ext >&5
14254
ac_header_preproc=no
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
14260
# So? What about this header?
14261
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
14284
## ------------------------------------ ##
14285
## Report this to gnupg-devel@gnupg.org ##
14286
## ------------------------------------ ##
14289
sed "s/^/$as_me: WARNING: /" >&2
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
14297
eval "$as_ac_Header=\$ac_header_preproc"
14299
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
14319
cat >conftest.$ac_ext <<_ACEOF
14322
cat confdefs.h >>conftest.$ac_ext
14323
cat >>conftest.$ac_ext <<_ACEOF
14324
/* end confdefs.h. */
14329
/* FIXME: Include the comments suggested by Paul. */
14330
#ifndef __cplusplus
14331
/* Ultrix mips cc rejects this. */
14332
typedef int charset[2];
14334
/* SunOS 4.1.1 cc rejects this. */
14335
char const *const *ccp;
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
14344
const char *g = "string";
14345
ccp = &g + (g ? g-g : 0);
14346
/* HPUX 7.0 cc rejects these. */
14349
ccp = (char const *const *) p;
14350
{ /* SCO 3.2v4 cc rejects this. */
14352
char const *s = 0 ? (char *) 0 : (char const *) 0;
14356
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14357
int x[] = {25, 17};
14358
const int *foo = &x[0];
14361
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14362
typedef const int *iptr;
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;
14371
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14372
const int foo = 10;
14380
rm -f conftest.$ac_objext
14381
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382
(eval $ac_compile) 2>conftest.er1
14384
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400
(exit $ac_status); }; }; then
14403
echo "$as_me: failed program was:" >&5
14404
sed 's/^/| /' conftest.$ac_ext >&5
14408
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
14414
cat >>confdefs.h <<\_ACEOF
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
14426
for ac_kw in inline __inline__ __inline; do
14427
cat >conftest.$ac_ext <<_ACEOF
14430
cat confdefs.h >>conftest.$ac_ext
14431
cat >>conftest.$ac_ext <<_ACEOF
14432
/* end confdefs.h. */
14433
#ifndef __cplusplus
14435
static $ac_kw foo_t static_foo () {return 0; }
14436
$ac_kw foo_t foo () {return 0; }
14440
rm -f conftest.$ac_objext
14441
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442
(eval $ac_compile) 2>conftest.er1
14444
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460
(exit $ac_status); }; }; then
14461
ac_cv_c_inline=$ac_kw; break
14463
echo "$as_me: failed program was:" >&5
14464
sed 's/^/| /' conftest.$ac_ext >&5
14467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14471
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14472
echo "${ECHO_T}$ac_cv_c_inline" >&6
14475
case $ac_cv_c_inline in
14478
case $ac_cv_c_inline in
14480
*) ac_val=$ac_cv_c_inline;;
14482
cat >>confdefs.h <<_ACEOF
14483
#ifndef __cplusplus
14484
#define inline $ac_val
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
14495
cat >conftest.$ac_ext <<_ACEOF
14498
cat confdefs.h >>conftest.$ac_ext
14499
cat >>conftest.$ac_ext <<_ACEOF
14500
/* end confdefs.h. */
14501
$ac_includes_default
14507
if (sizeof (size_t))
14513
rm -f conftest.$ac_objext
14514
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515
(eval $ac_compile) 2>conftest.er1
14517
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533
(exit $ac_status); }; }; then
14534
ac_cv_type_size_t=yes
14536
echo "$as_me: failed program was:" >&5
14537
sed 's/^/| /' conftest.$ac_ext >&5
14539
ac_cv_type_size_t=no
14541
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
14549
cat >>confdefs.h <<_ACEOF
14550
#define size_t unsigned
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
14560
cat >conftest.$ac_ext <<_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>
14572
extern "C" void (*signal (int, void (*)(int)))(int);
14574
void (*signal ()) ();
14585
rm -f conftest.$ac_objext
14586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14587
(eval $ac_compile) 2>conftest.er1
14589
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605
(exit $ac_status); }; }; then
14606
ac_cv_type_signal=void
14608
echo "$as_me: failed program was:" >&5
14609
sed 's/^/| /' conftest.$ac_ext >&5
14611
ac_cv_type_signal=int
14613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14615
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14616
echo "${ECHO_T}$ac_cv_type_signal" >&6
14618
cat >>confdefs.h <<_ACEOF
14619
#define RETSIGTYPE $ac_cv_type_signal
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
14628
cat >conftest.$ac_ext <<_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. */
14637
# include <unistd.h>
14644
#ifndef sys_siglist
14645
char *p = (char *) sys_siglist;
14652
rm -f conftest.$ac_objext
14653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14654
(eval $ac_compile) 2>conftest.er1
14656
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672
(exit $ac_status); }; }; then
14673
ac_cv_have_decl_sys_siglist=yes
14675
echo "$as_me: failed program was:" >&5
14676
sed 's/^/| /' conftest.$ac_ext >&5
14678
ac_cv_have_decl_sys_siglist=no
14680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
14686
cat >>confdefs.h <<_ACEOF
14687
#define HAVE_DECL_SYS_SIGLIST 1
14692
cat >>confdefs.h <<_ACEOF
14693
#define HAVE_DECL_SYS_SIGLIST 0
14703
tmp_assumed_endian=big
14704
if test "$cross_compiling" = yes; then
14705
case "$host_cpu" in
14707
tmp_assumed_endian=little
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;}
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
14720
gnupg_cv_c_endian=unknown
14721
# See if sys/param.h defines the BYTE_ORDER macro.
14722
cat >conftest.$ac_ext <<_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>
14734
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14735
bogus endian macros
14741
rm -f conftest.$ac_objext
14742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743
(eval $ac_compile) 2>conftest.er1
14745
grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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>
14775
#if BYTE_ORDER != BIG_ENDIAN
14782
rm -f conftest.$ac_objext
14783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784
(eval $ac_compile) 2>conftest.er1
14786
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802
(exit $ac_status); }; }; then
14803
gnupg_cv_c_endian=big
14805
echo "$as_me: failed program was:" >&5
14806
sed 's/^/| /' conftest.$ac_ext >&5
14808
gnupg_cv_c_endian=little
14810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812
echo "$as_me: failed program was:" >&5
14813
sed 's/^/| /' conftest.$ac_ext >&5
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
14822
cat >conftest.$ac_ext <<_ACEOF
14825
cat confdefs.h >>conftest.$ac_ext
14826
cat >>conftest.$ac_ext <<_ACEOF
14827
/* end confdefs.h. */
14829
/* Are we little or big endian? From Harbison&Steele. */
14833
char c[sizeof (long)];
14836
exit (u.c[sizeof (long) - 1] == 1);
14839
rm -f conftest$ac_exeext
14840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841
(eval $ac_link) 2>&5
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
14848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849
(exit $ac_status); }; }; then
14850
gnupg_cv_c_endian=little
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
14856
( exit $ac_status )
14857
gnupg_cv_c_endian=big
14859
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
14869
cat >>confdefs.h <<\_ACEOF
14870
#define LITTLE_ENDIAN_HOST 1
14875
cat >>confdefs.h <<\_ACEOF
14876
#define BIG_ENDIAN_HOST 1
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
14887
cat >conftest.$ac_ext <<_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>
14901
int a = sizeof(byte);
14907
rm -f conftest.$ac_objext
14908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909
(eval $ac_compile) 2>conftest.er1
14911
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927
(exit $ac_status); }; }; then
14928
gnupg_cv_typedef_byte=yes
14930
echo "$as_me: failed program was:" >&5
14931
sed 's/^/| /' conftest.$ac_ext >&5
14933
gnupg_cv_typedef_byte=no
14935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
14942
cat >>confdefs.h <<\_ACEOF
14943
#define HAVE_BYTE_TYPEDEF 1
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
14953
cat >conftest.$ac_ext <<_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>
14967
int a = sizeof(ushort);
14973
rm -f conftest.$ac_objext
14974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14975
(eval $ac_compile) 2>conftest.er1
14977
grep -v '^ *+' conftest.er1 >conftest.err
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
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
14992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993
(exit $ac_status); }; }; then
14994
gnupg_cv_typedef_ushort=yes
14996
echo "$as_me: failed program was:" >&5
14997
sed 's/^/| /' conftest.$ac_ext >&5
14999
gnupg_cv_typedef_ushort=no
15001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15008
cat >>confdefs.h <<\_ACEOF
15009
#define HAVE_USHORT_TYPEDEF 1
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
15019
cat >conftest.$ac_ext <<_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>
15033
int a = sizeof(ulong);
15039
rm -f conftest.$ac_objext
15040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041
(eval $ac_compile) 2>conftest.er1
15043
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059
(exit $ac_status); }; }; then
15060
gnupg_cv_typedef_ulong=yes
15062
echo "$as_me: failed program was:" >&5
15063
sed 's/^/| /' conftest.$ac_ext >&5
15065
gnupg_cv_typedef_ulong=no
15067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15074
cat >>confdefs.h <<\_ACEOF
15075
#define HAVE_ULONG_TYPEDEF 1
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
15085
cat >conftest.$ac_ext <<_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>
15099
int a = sizeof(u16);
15105
rm -f conftest.$ac_objext
15106
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107
(eval $ac_compile) 2>conftest.er1
15109
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125
(exit $ac_status); }; }; then
15126
gnupg_cv_typedef_u16=yes
15128
echo "$as_me: failed program was:" >&5
15129
sed 's/^/| /' conftest.$ac_ext >&5
15131
gnupg_cv_typedef_u16=no
15133
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15140
cat >>confdefs.h <<\_ACEOF
15141
#define HAVE_U16_TYPEDEF 1
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
15151
cat >conftest.$ac_ext <<_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>
15165
int a = sizeof(u32);
15171
rm -f conftest.$ac_objext
15172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173
(eval $ac_compile) 2>conftest.er1
15175
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191
(exit $ac_status); }; }; then
15192
gnupg_cv_typedef_u32=yes
15194
echo "$as_me: failed program was:" >&5
15195
sed 's/^/| /' conftest.$ac_ext >&5
15197
gnupg_cv_typedef_u32=no
15199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15206
cat >>confdefs.h <<\_ACEOF
15207
#define HAVE_U32_TYPEDEF 1
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
15218
cat >conftest.$ac_ext <<_ACEOF
15221
cat confdefs.h >>conftest.$ac_ext
15222
cat >>conftest.$ac_ext <<_ACEOF
15223
/* end confdefs.h. */
15224
$ac_includes_default
15228
if ((unsigned short *) 0)
15230
if (sizeof (unsigned short))
15236
rm -f conftest.$ac_objext
15237
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238
(eval $ac_compile) 2>conftest.er1
15240
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256
(exit $ac_status); }; }; then
15257
ac_cv_type_unsigned_short=yes
15259
echo "$as_me: failed program was:" >&5
15260
sed 's/^/| /' conftest.$ac_ext >&5
15262
ac_cv_type_unsigned_short=no
15264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
15267
echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
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
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
15284
cat confdefs.h >>conftest.$ac_ext
15285
cat >>conftest.$ac_ext <<_ACEOF
15286
/* end confdefs.h. */
15287
$ac_includes_default
15291
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
15298
rm -f conftest.$ac_objext
15299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300
(eval $ac_compile) 2>conftest.er1
15302
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318
(exit $ac_status); }; }; then
15321
cat >conftest.$ac_ext <<_ACEOF
15324
cat confdefs.h >>conftest.$ac_ext
15325
cat >>conftest.$ac_ext <<_ACEOF
15326
/* end confdefs.h. */
15327
$ac_includes_default
15331
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
15338
rm -f conftest.$ac_objext
15339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340
(eval $ac_compile) 2>conftest.er1
15342
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358
(exit $ac_status); }; }; then
15359
ac_hi=$ac_mid; break
15361
echo "$as_me: failed program was:" >&5
15362
sed 's/^/| /' conftest.$ac_ext >&5
15364
ac_lo=`expr $ac_mid + 1`
15365
if test $ac_lo -le $ac_mid; then
15369
ac_mid=`expr 2 '*' $ac_mid + 1`
15371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374
echo "$as_me: failed program was:" >&5
15375
sed 's/^/| /' conftest.$ac_ext >&5
15377
cat >conftest.$ac_ext <<_ACEOF
15380
cat confdefs.h >>conftest.$ac_ext
15381
cat >>conftest.$ac_ext <<_ACEOF
15382
/* end confdefs.h. */
15383
$ac_includes_default
15387
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
15394
rm -f conftest.$ac_objext
15395
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15396
(eval $ac_compile) 2>conftest.er1
15398
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414
(exit $ac_status); }; }; then
15417
cat >conftest.$ac_ext <<_ACEOF
15420
cat confdefs.h >>conftest.$ac_ext
15421
cat >>conftest.$ac_ext <<_ACEOF
15422
/* end confdefs.h. */
15423
$ac_includes_default
15427
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
15434
rm -f conftest.$ac_objext
15435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15436
(eval $ac_compile) 2>conftest.er1
15438
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454
(exit $ac_status); }; }; then
15455
ac_lo=$ac_mid; break
15457
echo "$as_me: failed program was:" >&5
15458
sed 's/^/| /' conftest.$ac_ext >&5
15460
ac_hi=`expr '(' $ac_mid ')' - 1`
15461
if test $ac_mid -le $ac_hi; then
15465
ac_mid=`expr 2 '*' $ac_mid`
15467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15470
echo "$as_me: failed program was:" >&5
15471
sed 's/^/| /' conftest.$ac_ext >&5
15475
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15484
cat confdefs.h >>conftest.$ac_ext
15485
cat >>conftest.$ac_ext <<_ACEOF
15486
/* end confdefs.h. */
15487
$ac_includes_default
15491
static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
15498
rm -f conftest.$ac_objext
15499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500
(eval $ac_compile) 2>conftest.er1
15502
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518
(exit $ac_status); }; }; then
15521
echo "$as_me: failed program was:" >&5
15522
sed 's/^/| /' conftest.$ac_ext >&5
15524
ac_lo=`expr '(' $ac_mid ')' + 1`
15526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
15542
cat >conftest.$ac_ext <<_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)); }
15552
#include <stdlib.h>
15557
FILE *f = fopen ("conftest.val", "w");
15560
if (((long) (sizeof (unsigned short))) < 0)
15562
long i = longval ();
15563
if (i != ((long) (sizeof (unsigned short))))
15565
fprintf (f, "%ld\n", i);
15569
unsigned long i = ulongval ();
15570
if (i != ((long) (sizeof (unsigned short))))
15572
fprintf (f, "%lu\n", i);
15574
exit (ferror (f) || fclose (f) != 0);
15580
rm -f conftest$ac_exeext
15581
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582
(eval $ac_link) 2>&5
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
15589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590
(exit $ac_status); }; }; then
15591
ac_cv_sizeof_unsigned_short=`cat conftest.val`
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
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; }; }
15604
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609
ac_cv_sizeof_unsigned_short=0
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
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
15624
cat >conftest.$ac_ext <<_ACEOF
15627
cat confdefs.h >>conftest.$ac_ext
15628
cat >>conftest.$ac_ext <<_ACEOF
15629
/* end confdefs.h. */
15630
$ac_includes_default
15634
if ((unsigned int *) 0)
15636
if (sizeof (unsigned int))
15642
rm -f conftest.$ac_objext
15643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644
(eval $ac_compile) 2>conftest.er1
15646
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662
(exit $ac_status); }; }; then
15663
ac_cv_type_unsigned_int=yes
15665
echo "$as_me: failed program was:" >&5
15666
sed 's/^/| /' conftest.$ac_ext >&5
15668
ac_cv_type_unsigned_int=no
15670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
15673
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
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
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
15690
cat confdefs.h >>conftest.$ac_ext
15691
cat >>conftest.$ac_ext <<_ACEOF
15692
/* end confdefs.h. */
15693
$ac_includes_default
15697
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
15704
rm -f conftest.$ac_objext
15705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706
(eval $ac_compile) 2>conftest.er1
15708
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724
(exit $ac_status); }; }; then
15727
cat >conftest.$ac_ext <<_ACEOF
15730
cat confdefs.h >>conftest.$ac_ext
15731
cat >>conftest.$ac_ext <<_ACEOF
15732
/* end confdefs.h. */
15733
$ac_includes_default
15737
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
15744
rm -f conftest.$ac_objext
15745
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746
(eval $ac_compile) 2>conftest.er1
15748
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764
(exit $ac_status); }; }; then
15765
ac_hi=$ac_mid; break
15767
echo "$as_me: failed program was:" >&5
15768
sed 's/^/| /' conftest.$ac_ext >&5
15770
ac_lo=`expr $ac_mid + 1`
15771
if test $ac_lo -le $ac_mid; then
15775
ac_mid=`expr 2 '*' $ac_mid + 1`
15777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780
echo "$as_me: failed program was:" >&5
15781
sed 's/^/| /' conftest.$ac_ext >&5
15783
cat >conftest.$ac_ext <<_ACEOF
15786
cat confdefs.h >>conftest.$ac_ext
15787
cat >>conftest.$ac_ext <<_ACEOF
15788
/* end confdefs.h. */
15789
$ac_includes_default
15793
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
15800
rm -f conftest.$ac_objext
15801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802
(eval $ac_compile) 2>conftest.er1
15804
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820
(exit $ac_status); }; }; then
15823
cat >conftest.$ac_ext <<_ACEOF
15826
cat confdefs.h >>conftest.$ac_ext
15827
cat >>conftest.$ac_ext <<_ACEOF
15828
/* end confdefs.h. */
15829
$ac_includes_default
15833
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
15840
rm -f conftest.$ac_objext
15841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842
(eval $ac_compile) 2>conftest.er1
15844
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860
(exit $ac_status); }; }; then
15861
ac_lo=$ac_mid; break
15863
echo "$as_me: failed program was:" >&5
15864
sed 's/^/| /' conftest.$ac_ext >&5
15866
ac_hi=`expr '(' $ac_mid ')' - 1`
15867
if test $ac_mid -le $ac_hi; then
15871
ac_mid=`expr 2 '*' $ac_mid`
15873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876
echo "$as_me: failed program was:" >&5
15877
sed 's/^/| /' conftest.$ac_ext >&5
15881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
15890
cat confdefs.h >>conftest.$ac_ext
15891
cat >>conftest.$ac_ext <<_ACEOF
15892
/* end confdefs.h. */
15893
$ac_includes_default
15897
static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
15904
rm -f conftest.$ac_objext
15905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906
(eval $ac_compile) 2>conftest.er1
15908
grep -v '^ *+' conftest.er1 >conftest.err
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
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
15923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924
(exit $ac_status); }; }; then
15927
echo "$as_me: failed program was:" >&5
15928
sed 's/^/| /' conftest.$ac_ext >&5
15930
ac_lo=`expr '(' $ac_mid ')' + 1`
15932
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
15948
cat >conftest.$ac_ext <<_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)); }
15958
#include <stdlib.h>
15963
FILE *f = fopen ("conftest.val", "w");
15966
if (((long) (sizeof (unsigned int))) < 0)
15968
long i = longval ();
15969
if (i != ((long) (sizeof (unsigned int))))
15971
fprintf (f, "%ld\n", i);
15975
unsigned long i = ulongval ();
15976
if (i != ((long) (sizeof (unsigned int))))
15978
fprintf (f, "%lu\n", i);
15980
exit (ferror (f) || fclose (f) != 0);
15986
rm -f conftest$ac_exeext
15987
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15988
(eval $ac_link) 2>&5
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
15995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996
(exit $ac_status); }; }; then
15997
ac_cv_sizeof_unsigned_int=`cat conftest.val`
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
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; }; }
16010
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16015
ac_cv_sizeof_unsigned_int=0
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
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
16030
cat >conftest.$ac_ext <<_ACEOF
16033
cat confdefs.h >>conftest.$ac_ext
16034
cat >>conftest.$ac_ext <<_ACEOF
16035
/* end confdefs.h. */
16036
$ac_includes_default
16040
if ((unsigned long *) 0)
16042
if (sizeof (unsigned long))
16048
rm -f conftest.$ac_objext
16049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050
(eval $ac_compile) 2>conftest.er1
16052
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068
(exit $ac_status); }; }; then
16069
ac_cv_type_unsigned_long=yes
16071
echo "$as_me: failed program was:" >&5
16072
sed 's/^/| /' conftest.$ac_ext >&5
16074
ac_cv_type_unsigned_long=no
16076
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16078
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
16079
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
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
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
16096
cat confdefs.h >>conftest.$ac_ext
16097
cat >>conftest.$ac_ext <<_ACEOF
16098
/* end confdefs.h. */
16099
$ac_includes_default
16103
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
16110
rm -f conftest.$ac_objext
16111
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112
(eval $ac_compile) 2>conftest.er1
16114
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130
(exit $ac_status); }; }; then
16133
cat >conftest.$ac_ext <<_ACEOF
16136
cat confdefs.h >>conftest.$ac_ext
16137
cat >>conftest.$ac_ext <<_ACEOF
16138
/* end confdefs.h. */
16139
$ac_includes_default
16143
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
16150
rm -f conftest.$ac_objext
16151
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16152
(eval $ac_compile) 2>conftest.er1
16154
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170
(exit $ac_status); }; }; then
16171
ac_hi=$ac_mid; break
16173
echo "$as_me: failed program was:" >&5
16174
sed 's/^/| /' conftest.$ac_ext >&5
16176
ac_lo=`expr $ac_mid + 1`
16177
if test $ac_lo -le $ac_mid; then
16181
ac_mid=`expr 2 '*' $ac_mid + 1`
16183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16186
echo "$as_me: failed program was:" >&5
16187
sed 's/^/| /' conftest.$ac_ext >&5
16189
cat >conftest.$ac_ext <<_ACEOF
16192
cat confdefs.h >>conftest.$ac_ext
16193
cat >>conftest.$ac_ext <<_ACEOF
16194
/* end confdefs.h. */
16195
$ac_includes_default
16199
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
16206
rm -f conftest.$ac_objext
16207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208
(eval $ac_compile) 2>conftest.er1
16210
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226
(exit $ac_status); }; }; then
16229
cat >conftest.$ac_ext <<_ACEOF
16232
cat confdefs.h >>conftest.$ac_ext
16233
cat >>conftest.$ac_ext <<_ACEOF
16234
/* end confdefs.h. */
16235
$ac_includes_default
16239
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
16246
rm -f conftest.$ac_objext
16247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248
(eval $ac_compile) 2>conftest.er1
16250
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266
(exit $ac_status); }; }; then
16267
ac_lo=$ac_mid; break
16269
echo "$as_me: failed program was:" >&5
16270
sed 's/^/| /' conftest.$ac_ext >&5
16272
ac_hi=`expr '(' $ac_mid ')' - 1`
16273
if test $ac_mid -le $ac_hi; then
16277
ac_mid=`expr 2 '*' $ac_mid`
16279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282
echo "$as_me: failed program was:" >&5
16283
sed 's/^/| /' conftest.$ac_ext >&5
16287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
16296
cat confdefs.h >>conftest.$ac_ext
16297
cat >>conftest.$ac_ext <<_ACEOF
16298
/* end confdefs.h. */
16299
$ac_includes_default
16303
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
16310
rm -f conftest.$ac_objext
16311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312
(eval $ac_compile) 2>conftest.er1
16314
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330
(exit $ac_status); }; }; then
16333
echo "$as_me: failed program was:" >&5
16334
sed 's/^/| /' conftest.$ac_ext >&5
16336
ac_lo=`expr '(' $ac_mid ')' + 1`
16338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
16354
cat >conftest.$ac_ext <<_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)); }
16364
#include <stdlib.h>
16369
FILE *f = fopen ("conftest.val", "w");
16372
if (((long) (sizeof (unsigned long))) < 0)
16374
long i = longval ();
16375
if (i != ((long) (sizeof (unsigned long))))
16377
fprintf (f, "%ld\n", i);
16381
unsigned long i = ulongval ();
16382
if (i != ((long) (sizeof (unsigned long))))
16384
fprintf (f, "%lu\n", i);
16386
exit (ferror (f) || fclose (f) != 0);
16392
rm -f conftest$ac_exeext
16393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16394
(eval $ac_link) 2>&5
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
16401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402
(exit $ac_status); }; }; then
16403
ac_cv_sizeof_unsigned_long=`cat conftest.val`
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
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; }; }
16416
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16421
ac_cv_sizeof_unsigned_long=0
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
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
16436
cat >conftest.$ac_ext <<_ACEOF
16439
cat confdefs.h >>conftest.$ac_ext
16440
cat >>conftest.$ac_ext <<_ACEOF
16441
/* end confdefs.h. */
16442
$ac_includes_default
16446
if ((unsigned long long *) 0)
16448
if (sizeof (unsigned long long))
16454
rm -f conftest.$ac_objext
16455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456
(eval $ac_compile) 2>conftest.er1
16458
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474
(exit $ac_status); }; }; then
16475
ac_cv_type_unsigned_long_long=yes
16477
echo "$as_me: failed program was:" >&5
16478
sed 's/^/| /' conftest.$ac_ext >&5
16480
ac_cv_type_unsigned_long_long=no
16482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16484
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
16485
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
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
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
16502
cat confdefs.h >>conftest.$ac_ext
16503
cat >>conftest.$ac_ext <<_ACEOF
16504
/* end confdefs.h. */
16505
$ac_includes_default
16509
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= 0)];
16516
rm -f conftest.$ac_objext
16517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518
(eval $ac_compile) 2>conftest.er1
16520
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536
(exit $ac_status); }; }; then
16539
cat >conftest.$ac_ext <<_ACEOF
16542
cat confdefs.h >>conftest.$ac_ext
16543
cat >>conftest.$ac_ext <<_ACEOF
16544
/* end confdefs.h. */
16545
$ac_includes_default
16549
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
16556
rm -f conftest.$ac_objext
16557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558
(eval $ac_compile) 2>conftest.er1
16560
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576
(exit $ac_status); }; }; then
16577
ac_hi=$ac_mid; break
16579
echo "$as_me: failed program was:" >&5
16580
sed 's/^/| /' conftest.$ac_ext >&5
16582
ac_lo=`expr $ac_mid + 1`
16583
if test $ac_lo -le $ac_mid; then
16587
ac_mid=`expr 2 '*' $ac_mid + 1`
16589
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16592
echo "$as_me: failed program was:" >&5
16593
sed 's/^/| /' conftest.$ac_ext >&5
16595
cat >conftest.$ac_ext <<_ACEOF
16598
cat confdefs.h >>conftest.$ac_ext
16599
cat >>conftest.$ac_ext <<_ACEOF
16600
/* end confdefs.h. */
16601
$ac_includes_default
16605
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) < 0)];
16612
rm -f conftest.$ac_objext
16613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16614
(eval $ac_compile) 2>conftest.er1
16616
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632
(exit $ac_status); }; }; then
16635
cat >conftest.$ac_ext <<_ACEOF
16638
cat confdefs.h >>conftest.$ac_ext
16639
cat >>conftest.$ac_ext <<_ACEOF
16640
/* end confdefs.h. */
16641
$ac_includes_default
16645
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) >= $ac_mid)];
16652
rm -f conftest.$ac_objext
16653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16654
(eval $ac_compile) 2>conftest.er1
16656
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672
(exit $ac_status); }; }; then
16673
ac_lo=$ac_mid; break
16675
echo "$as_me: failed program was:" >&5
16676
sed 's/^/| /' conftest.$ac_ext >&5
16678
ac_hi=`expr '(' $ac_mid ')' - 1`
16679
if test $ac_mid -le $ac_hi; then
16683
ac_mid=`expr 2 '*' $ac_mid`
16685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688
echo "$as_me: failed program was:" >&5
16689
sed 's/^/| /' conftest.$ac_ext >&5
16693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
16702
cat confdefs.h >>conftest.$ac_ext
16703
cat >>conftest.$ac_ext <<_ACEOF
16704
/* end confdefs.h. */
16705
$ac_includes_default
16709
static int test_array [1 - 2 * !(((long) (sizeof (unsigned long long))) <= $ac_mid)];
16716
rm -f conftest.$ac_objext
16717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718
(eval $ac_compile) 2>conftest.er1
16720
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736
(exit $ac_status); }; }; then
16739
echo "$as_me: failed program was:" >&5
16740
sed 's/^/| /' conftest.$ac_ext >&5
16742
ac_lo=`expr '(' $ac_mid ')' + 1`
16744
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
16760
cat >conftest.$ac_ext <<_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)); }
16770
#include <stdlib.h>
16775
FILE *f = fopen ("conftest.val", "w");
16778
if (((long) (sizeof (unsigned long long))) < 0)
16780
long i = longval ();
16781
if (i != ((long) (sizeof (unsigned long long))))
16783
fprintf (f, "%ld\n", i);
16787
unsigned long i = ulongval ();
16788
if (i != ((long) (sizeof (unsigned long long))))
16790
fprintf (f, "%lu\n", i);
16792
exit (ferror (f) || fclose (f) != 0);
16798
rm -f conftest$ac_exeext
16799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800
(eval $ac_link) 2>&5
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
16807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808
(exit $ac_status); }; }; then
16809
ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
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
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; }; }
16822
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16827
ac_cv_sizeof_unsigned_long_long=0
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
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
16844
cat >conftest.$ac_ext <<_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);
16860
rm -f conftest.$ac_objext
16861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16862
(eval $ac_compile) 2>conftest.er1
16864
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880
(exit $ac_status); }; }; then
16881
gnupg_cv_uint64_c_works=yes
16883
echo "$as_me: failed program was:" >&5
16884
sed 's/^/| /' conftest.$ac_ext >&5
16886
gnupg_cv_uint64_c_works=no
16888
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
16898
cat >conftest.$ac_ext <<_ACEOF
16901
cat confdefs.h >>conftest.$ac_ext
16902
cat >>conftest.$ac_ext <<_ACEOF
16903
/* end confdefs.h. */
16904
$ac_includes_default
16908
if ((uint64_t *) 0)
16910
if (sizeof (uint64_t))
16916
rm -f conftest.$ac_objext
16917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16918
(eval $ac_compile) 2>conftest.er1
16920
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936
(exit $ac_status); }; }; then
16937
ac_cv_type_uint64_t=yes
16939
echo "$as_me: failed program was:" >&5
16940
sed 's/^/| /' conftest.$ac_ext >&5
16942
ac_cv_type_uint64_t=no
16944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16946
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16947
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
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
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
16964
cat confdefs.h >>conftest.$ac_ext
16965
cat >>conftest.$ac_ext <<_ACEOF
16966
/* end confdefs.h. */
16967
$ac_includes_default
16971
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
16978
rm -f conftest.$ac_objext
16979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980
(eval $ac_compile) 2>conftest.er1
16982
grep -v '^ *+' conftest.er1 >conftest.err
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
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
16997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998
(exit $ac_status); }; }; then
17001
cat >conftest.$ac_ext <<_ACEOF
17004
cat confdefs.h >>conftest.$ac_ext
17005
cat >>conftest.$ac_ext <<_ACEOF
17006
/* end confdefs.h. */
17007
$ac_includes_default
17011
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
17018
rm -f conftest.$ac_objext
17019
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020
(eval $ac_compile) 2>conftest.er1
17022
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038
(exit $ac_status); }; }; then
17039
ac_hi=$ac_mid; break
17041
echo "$as_me: failed program was:" >&5
17042
sed 's/^/| /' conftest.$ac_ext >&5
17044
ac_lo=`expr $ac_mid + 1`
17045
if test $ac_lo -le $ac_mid; then
17049
ac_mid=`expr 2 '*' $ac_mid + 1`
17051
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054
echo "$as_me: failed program was:" >&5
17055
sed 's/^/| /' conftest.$ac_ext >&5
17057
cat >conftest.$ac_ext <<_ACEOF
17060
cat confdefs.h >>conftest.$ac_ext
17061
cat >>conftest.$ac_ext <<_ACEOF
17062
/* end confdefs.h. */
17063
$ac_includes_default
17067
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
17074
rm -f conftest.$ac_objext
17075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17076
(eval $ac_compile) 2>conftest.er1
17078
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094
(exit $ac_status); }; }; then
17097
cat >conftest.$ac_ext <<_ACEOF
17100
cat confdefs.h >>conftest.$ac_ext
17101
cat >>conftest.$ac_ext <<_ACEOF
17102
/* end confdefs.h. */
17103
$ac_includes_default
17107
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
17114
rm -f conftest.$ac_objext
17115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17116
(eval $ac_compile) 2>conftest.er1
17118
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134
(exit $ac_status); }; }; then
17135
ac_lo=$ac_mid; break
17137
echo "$as_me: failed program was:" >&5
17138
sed 's/^/| /' conftest.$ac_ext >&5
17140
ac_hi=`expr '(' $ac_mid ')' - 1`
17141
if test $ac_mid -le $ac_hi; then
17145
ac_mid=`expr 2 '*' $ac_mid`
17147
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17150
echo "$as_me: failed program was:" >&5
17151
sed 's/^/| /' conftest.$ac_ext >&5
17155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
17164
cat confdefs.h >>conftest.$ac_ext
17165
cat >>conftest.$ac_ext <<_ACEOF
17166
/* end confdefs.h. */
17167
$ac_includes_default
17171
static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
17178
rm -f conftest.$ac_objext
17179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180
(eval $ac_compile) 2>conftest.er1
17182
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198
(exit $ac_status); }; }; then
17201
echo "$as_me: failed program was:" >&5
17202
sed 's/^/| /' conftest.$ac_ext >&5
17204
ac_lo=`expr '(' $ac_mid ')' + 1`
17206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; } ;;
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; }; }
17222
cat >conftest.$ac_ext <<_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)); }
17232
#include <stdlib.h>
17237
FILE *f = fopen ("conftest.val", "w");
17240
if (((long) (sizeof (uint64_t))) < 0)
17242
long i = longval ();
17243
if (i != ((long) (sizeof (uint64_t))))
17245
fprintf (f, "%ld\n", i);
17249
unsigned long i = ulongval ();
17250
if (i != ((long) (sizeof (uint64_t))))
17252
fprintf (f, "%lu\n", i);
17254
exit (ferror (f) || fclose (f) != 0);
17260
rm -f conftest$ac_exeext
17261
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17262
(eval $ac_link) 2>&5
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
17269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270
(exit $ac_status); }; }; then
17271
ac_cv_sizeof_uint64_t=`cat conftest.val`
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
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; }; }
17284
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17289
ac_cv_sizeof_uint64_t=0
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
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;};
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;}
17318
if test x"$use_sha512" = xyes ; then
17322
cat >>confdefs.h <<\_ACEOF
17323
#define USE_SHA512 1
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
17335
cat >conftest.$ac_ext <<_ACEOF
17338
cat confdefs.h >>conftest.$ac_ext
17339
cat >>conftest.$ac_ext <<_ACEOF
17340
/* end confdefs.h. */
17341
#include <sys/socket.h>
17346
int cl = sizeof cr;
17347
getsockopt (1, SOL_SOCKET, SO_PEERCRED, &cr, &cl);
17352
rm -f conftest.$ac_objext
17353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354
(eval $ac_compile) 2>conftest.er1
17356
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372
(exit $ac_status); }; }; then
17373
gnupg_cv_sys_so_peercred=yes
17375
echo "$as_me: failed program was:" >&5
17376
sed 's/^/| /' conftest.$ac_ext >&5
17378
gnupg_cv_sys_so_peercred=no
17380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
17388
cat >>confdefs.h <<\_ACEOF
17389
#define HAVE_SO_PEERCRED 1
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
17402
ac_cv_sys_largefile_source=no
17403
cat >conftest.$ac_ext <<_ACEOF
17406
cat confdefs.h >>conftest.$ac_ext
17407
cat >>conftest.$ac_ext <<_ACEOF
17408
/* end confdefs.h. */
17418
rm -f conftest.$ac_objext
17419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17420
(eval $ac_compile) 2>conftest.er1
17422
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438
(exit $ac_status); }; }; then
17441
echo "$as_me: failed program was:" >&5
17442
sed 's/^/| /' conftest.$ac_ext >&5
17445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17446
cat >conftest.$ac_ext <<_ACEOF
17449
cat confdefs.h >>conftest.$ac_ext
17450
cat >>conftest.$ac_ext <<_ACEOF
17451
/* end confdefs.h. */
17452
#define _LARGEFILE_SOURCE 1
17462
rm -f conftest.$ac_objext
17463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17464
(eval $ac_compile) 2>conftest.er1
17466
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
(exit $ac_status); }; }; then
17483
ac_cv_sys_largefile_source=1; break
17485
echo "$as_me: failed program was:" >&5
17486
sed 's/^/| /' conftest.$ac_ext >&5
17489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
17497
cat >>confdefs.h <<_ACEOF
17498
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
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
17512
cat >conftest.$ac_ext <<_ACEOF
17515
cat confdefs.h >>conftest.$ac_ext
17516
cat >>conftest.$ac_ext <<_ACEOF
17517
/* end confdefs.h. */
17522
return fseeko && fseeko (stdin, 0, 0);
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
17531
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547
(exit $ac_status); }; }; then
17548
ac_cv_func_fseeko=yes
17550
echo "$as_me: failed program was:" >&5
17551
sed 's/^/| /' conftest.$ac_ext >&5
17553
ac_cv_func_fseeko=no
17555
rm -f conftest.err conftest.$ac_objext \
17556
conftest$ac_exeext conftest.$ac_ext
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
17562
cat >>confdefs.h <<\_ACEOF
17563
#define HAVE_FSEEKO 1
17569
for ac_func in vprintf
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
17577
cat >conftest.$ac_ext <<_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
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. */
17593
# include <limits.h>
17595
# include <assert.h>
17600
/* Override any gcc2 internal prototype to avoid an error. */
17605
/* We use char because int might match the return type of a gcc2
17606
builtin and then its argument prototype would still apply. */
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)
17614
char (*f) () = $ac_func;
17623
return f != $ac_func;
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
17632
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
(exit $ac_status); }; }; then
17649
eval "$as_ac_var=yes"
17651
echo "$as_me: failed program was:" >&5
17652
sed 's/^/| /' conftest.$ac_ext >&5
17654
eval "$as_ac_var=no"
17656
rm -f conftest.err conftest.$ac_objext \
17657
conftest$ac_exeext conftest.$ac_ext
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
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
17671
cat >conftest.$ac_ext <<_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
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. */
17687
# include <limits.h>
17689
# include <assert.h>
17694
/* Override any gcc2 internal prototype to avoid an error. */
17699
/* We use char because int might match the return type of a gcc2
17700
builtin and then its argument prototype would still apply. */
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)
17708
char (*f) () = _doprnt;
17717
return f != _doprnt;
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
17726
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742
(exit $ac_status); }; }; then
17743
ac_cv_func__doprnt=yes
17745
echo "$as_me: failed program was:" >&5
17746
sed 's/^/| /' conftest.$ac_ext >&5
17748
ac_cv_func__doprnt=no
17750
rm -f conftest.err conftest.$ac_objext \
17751
conftest$ac_exeext conftest.$ac_ext
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
17757
cat >>confdefs.h <<\_ACEOF
17758
#define HAVE_DOPRNT 1
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
17772
cat >conftest.$ac_ext <<_ACEOF
17775
cat confdefs.h >>conftest.$ac_ext
17776
cat >>conftest.$ac_ext <<_ACEOF
17777
/* end confdefs.h. */
17778
$ac_includes_default
17784
if (sizeof (pid_t))
17790
rm -f conftest.$ac_objext
17791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17792
(eval $ac_compile) 2>conftest.er1
17794
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810
(exit $ac_status); }; }; then
17811
ac_cv_type_pid_t=yes
17813
echo "$as_me: failed program was:" >&5
17814
sed 's/^/| /' conftest.$ac_ext >&5
17816
ac_cv_type_pid_t=no
17818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
17826
cat >>confdefs.h <<_ACEOF
17834
for ac_header in unistd.h vfork.h
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
17843
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17844
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
17858
rm -f conftest.$ac_objext
17859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17860
(eval $ac_compile) 2>conftest.er1
17862
grep -v '^ *+' conftest.er1 >conftest.err
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
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
17877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878
(exit $ac_status); }; }; then
17879
ac_header_compiler=yes
17881
echo "$as_me: failed program was:" >&5
17882
sed 's/^/| /' conftest.$ac_ext >&5
17884
ac_header_compiler=no
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
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
17896
cat confdefs.h >>conftest.$ac_ext
17897
cat >>conftest.$ac_ext <<_ACEOF
17898
/* end confdefs.h. */
17899
#include <$ac_header>
17901
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17902
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17904
grep -v '^ *+' conftest.er1 >conftest.err
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
17918
if test -z "$ac_cpp_err"; then
17919
ac_header_preproc=yes
17921
echo "$as_me: failed program was:" >&5
17922
sed 's/^/| /' conftest.$ac_ext >&5
17924
ac_header_preproc=no
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
17930
# So? What about this header?
17931
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
17954
## ------------------------------------ ##
17955
## Report this to gnupg-devel@gnupg.org ##
17956
## ------------------------------------ ##
17959
sed "s/^/$as_me: WARNING: /" >&2
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
17967
eval "$as_ac_Header=\$ac_header_preproc"
17969
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17970
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
17984
for ac_func in fork vfork
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
17992
cat >conftest.$ac_ext <<_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
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. */
18008
# include <limits.h>
18010
# include <assert.h>
18015
/* Override any gcc2 internal prototype to avoid an error. */
18020
/* We use char because int might match the return type of a gcc2
18021
builtin and then its argument prototype would still apply. */
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)
18029
char (*f) () = $ac_func;
18038
return f != $ac_func;
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
18047
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063
(exit $ac_status); }; }; then
18064
eval "$as_ac_var=yes"
18066
echo "$as_me: failed program was:" >&5
18067
sed 's/^/| /' conftest.$ac_ext >&5
18069
eval "$as_ac_var=no"
18071
rm -f conftest.err conftest.$ac_objext \
18072
conftest$ac_exeext conftest.$ac_ext
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
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
18090
if test "$cross_compiling" = yes; then
18091
ac_cv_func_fork_works=cross
18093
cat >conftest.$ac_ext <<_ACEOF
18094
/* By Ruediger Kuhlmann. */
18095
#include <sys/types.h>
18097
# include <unistd.h>
18099
/* Some systems only have a dummy stub for fork() */
18107
rm -f conftest$ac_exeext
18108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109
(eval $ac_link) 2>&5
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
18116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117
(exit $ac_status); }; }; then
18118
ac_cv_func_fork_works=yes
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
18124
( exit $ac_status )
18125
ac_cv_func_fork_works=no
18127
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18130
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
18131
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18134
ac_cv_func_fork_works=$ac_cv_func_fork
18136
if test "x$ac_cv_func_fork_works" = xcross; then
18138
*-*-amigaos* | *-*-msdosdjgpp*)
18139
# Override, as these systems have only a dummy fork() stub
18140
ac_cv_func_fork_works=no
18143
ac_cv_func_fork_works=yes
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;}
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
18156
if test "$cross_compiling" = yes; then
18157
ac_cv_func_vfork_works=cross
18159
cat >conftest.$ac_ext <<_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. */
18167
#include <stdlib.h>
18168
#include <sys/types.h>
18169
#include <sys/stat.h>
18170
#include <sys/wait.h>
18172
# include <unistd.h>
18175
# include <vfork.h>
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. */
18185
sparc_address_test (int arg)
18187
sparc_address_test (arg) int arg;
18190
static pid_t child;
18208
pid_t parent = getpid ();
18211
sparc_address_test (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. */
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)
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);
18243
while (wait(&status) != child)
18246
/* Was there some problem with vforking? */
18249
/* Did the child fail? (This shouldn't happen.) */
18252
/* Did the vfork/compiler bug occur? */
18253
|| parent != getpid()
18255
/* Did the file descriptor bug occur? */
18256
|| fstat(fileno(stdout), &st) != 0
18261
rm -f conftest$ac_exeext
18262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263
(eval $ac_link) 2>&5
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
18270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271
(exit $ac_status); }; }; then
18272
ac_cv_func_vfork_works=yes
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
18278
( exit $ac_status )
18279
ac_cv_func_vfork_works=no
18281
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18284
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
18285
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
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;}
18294
if test "x$ac_cv_func_vfork_works" = xyes; then
18296
cat >>confdefs.h <<\_ACEOF
18297
#define HAVE_WORKING_VFORK 1
18302
cat >>confdefs.h <<\_ACEOF
18307
if test "x$ac_cv_func_fork_works" = xyes; then
18309
cat >>confdefs.h <<\_ACEOF
18310
#define HAVE_WORKING_FORK 1
18322
for ac_func in strerror stpcpy strsep strlwr tcgetattr strtoul mmap
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
18330
cat >conftest.$ac_ext <<_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
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. */
18346
# include <limits.h>
18348
# include <assert.h>
18353
/* Override any gcc2 internal prototype to avoid an error. */
18358
/* We use char because int might match the return type of a gcc2
18359
builtin and then its argument prototype would still apply. */
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)
18367
char (*f) () = $ac_func;
18376
return f != $ac_func;
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
18385
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401
(exit $ac_status); }; }; then
18402
eval "$as_ac_var=yes"
18404
echo "$as_me: failed program was:" >&5
18405
sed 's/^/| /' conftest.$ac_ext >&5
18407
eval "$as_ac_var=no"
18409
rm -f conftest.err conftest.$ac_objext \
18410
conftest$ac_exeext conftest.$ac_ext
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
18427
for ac_func in strcasecmp strncasecmp ctermid times gmtime_r
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
18435
cat >conftest.$ac_ext <<_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
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. */
18451
# include <limits.h>
18453
# include <assert.h>
18458
/* Override any gcc2 internal prototype to avoid an error. */
18463
/* We use char because int might match the return type of a gcc2
18464
builtin and then its argument prototype would still apply. */
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)
18472
char (*f) () = $ac_func;
18481
return f != $ac_func;
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
18490
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506
(exit $ac_status); }; }; then
18507
eval "$as_ac_var=yes"
18509
echo "$as_me: failed program was:" >&5
18510
sed 's/^/| /' conftest.$ac_ext >&5
18512
eval "$as_ac_var=no"
18514
rm -f conftest.err conftest.$ac_objext \
18515
conftest$ac_exeext conftest.$ac_ext
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
18532
for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime
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
18540
cat >conftest.$ac_ext <<_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
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. */
18556
# include <limits.h>
18558
# include <assert.h>
18563
/* Override any gcc2 internal prototype to avoid an error. */
18568
/* We use char because int might match the return type of a gcc2
18569
builtin and then its argument prototype would still apply. */
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)
18577
char (*f) () = $ac_func;
18586
return f != $ac_func;
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
18595
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611
(exit $ac_status); }; }; then
18612
eval "$as_ac_var=yes"
18614
echo "$as_me: failed program was:" >&5
18615
sed 's/^/| /' conftest.$ac_ext >&5
18617
eval "$as_ac_var=no"
18619
rm -f conftest.err conftest.$ac_objext \
18620
conftest$ac_exeext conftest.$ac_ext
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
18638
for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
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
18646
cat >conftest.$ac_ext <<_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
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. */
18662
# include <limits.h>
18664
# include <assert.h>
18669
/* Override any gcc2 internal prototype to avoid an error. */
18674
/* We use char because int might match the return type of a gcc2
18675
builtin and then its argument prototype would still apply. */
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)
18683
char (*f) () = $ac_func;
18692
return f != $ac_func;
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
18701
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717
(exit $ac_status); }; }; then
18718
eval "$as_ac_var=yes"
18720
echo "$as_me: failed program was:" >&5
18721
sed 's/^/| /' conftest.$ac_ext >&5
18723
eval "$as_ac_var=no"
18725
rm -f conftest.err conftest.$ac_objext \
18726
conftest$ac_exeext conftest.$ac_ext
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
18746
for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo
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
18754
cat >conftest.$ac_ext <<_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
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. */
18770
# include <limits.h>
18772
# include <assert.h>
18777
/* Override any gcc2 internal prototype to avoid an error. */
18782
/* We use char because int might match the return type of a gcc2
18783
builtin and then its argument prototype would still apply. */
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)
18791
char (*f) () = $ac_func;
18800
return f != $ac_func;
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
18809
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825
(exit $ac_status); }; }; then
18826
eval "$as_ac_var=yes"
18828
echo "$as_me: failed program was:" >&5
18829
sed 's/^/| /' conftest.$ac_ext >&5
18831
eval "$as_ac_var=no"
18833
rm -f conftest.err conftest.$ac_objext \
18834
conftest$ac_exeext conftest.$ac_ext
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
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
18852
cat >conftest.$ac_ext <<_ACEOF
18855
cat confdefs.h >>conftest.$ac_ext
18856
cat >>conftest.$ac_ext <<_ACEOF
18857
/* end confdefs.h. */
18858
#include <signal.h>
18863
if ((struct sigaction *) 0)
18865
if (sizeof (struct sigaction))
18871
rm -f conftest.$ac_objext
18872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873
(eval $ac_compile) 2>conftest.er1
18875
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891
(exit $ac_status); }; }; then
18892
ac_cv_type_struct_sigaction=yes
18894
echo "$as_me: failed program was:" >&5
18895
sed 's/^/| /' conftest.$ac_ext >&5
18897
ac_cv_type_struct_sigaction=no
18899
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
18905
cat >>confdefs.h <<_ACEOF
18906
#define HAVE_STRUCT_SIGACTION 1
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
18916
cat >conftest.$ac_ext <<_ACEOF
18919
cat confdefs.h >>conftest.$ac_ext
18920
cat >>conftest.$ac_ext <<_ACEOF
18921
/* end confdefs.h. */
18922
#include <signal.h>
18927
if ((sigset_t *) 0)
18929
if (sizeof (sigset_t))
18935
rm -f conftest.$ac_objext
18936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937
(eval $ac_compile) 2>conftest.er1
18939
grep -v '^ *+' conftest.er1 >conftest.err
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
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
18954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955
(exit $ac_status); }; }; then
18956
ac_cv_type_sigset_t=yes
18958
echo "$as_me: failed program was:" >&5
18959
sed 's/^/| /' conftest.$ac_ext >&5
18961
ac_cv_type_sigset_t=no
18963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
18969
cat >>confdefs.h <<_ACEOF
18970
#define HAVE_SIGSET_T 1
18977
# These are needed by libjnlib - fixme: we should have macros for them
18985
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
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
18993
cat >conftest.$ac_ext <<_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
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. */
19009
# include <limits.h>
19011
# include <assert.h>
19016
/* Override any gcc2 internal prototype to avoid an error. */
19021
/* We use char because int might match the return type of a gcc2
19022
builtin and then its argument prototype would still apply. */
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)
19030
char (*f) () = $ac_func;
19039
return f != $ac_func;
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
19048
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064
(exit $ac_status); }; }; then
19065
eval "$as_ac_var=yes"
19067
echo "$as_me: failed program was:" >&5
19068
sed 's/^/| /' conftest.$ac_ext >&5
19070
eval "$as_ac_var=no"
19072
rm -f conftest.err conftest.$ac_objext \
19073
conftest$ac_exeext conftest.$ac_ext
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
19089
for ac_func in getrusage setrlimit stat setlocale
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
19097
cat >conftest.$ac_ext <<_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
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. */
19113
# include <limits.h>
19115
# include <assert.h>
19120
/* Override any gcc2 internal prototype to avoid an error. */
19125
/* We use char because int might match the return type of a gcc2
19126
builtin and then its argument prototype would still apply. */
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)
19134
char (*f) () = $ac_func;
19143
return f != $ac_func;
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
19152
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168
(exit $ac_status); }; }; then
19169
eval "$as_ac_var=yes"
19171
echo "$as_me: failed program was:" >&5
19172
sed 's/^/| /' conftest.$ac_ext >&5
19174
eval "$as_ac_var=no"
19176
rm -f conftest.err conftest.$ac_objext \
19177
conftest$ac_exeext conftest.$ac_ext
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
19193
for ac_func in flockfile funlockfile fopencookie funopen
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
19201
cat >conftest.$ac_ext <<_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
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. */
19217
# include <limits.h>
19219
# include <assert.h>
19224
/* Override any gcc2 internal prototype to avoid an error. */
19229
/* We use char because int might match the return type of a gcc2
19230
builtin and then its argument prototype would still apply. */
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)
19238
char (*f) () = $ac_func;
19247
return f != $ac_func;
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
19256
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272
(exit $ac_status); }; }; then
19273
eval "$as_ac_var=yes"
19275
echo "$as_me: failed program was:" >&5
19276
sed 's/^/| /' conftest.$ac_ext >&5
19278
eval "$as_ac_var=no"
19280
rm -f conftest.err conftest.$ac_objext \
19281
conftest$ac_exeext conftest.$ac_ext
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
19295
for ac_func in vasprintf
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
19303
cat >conftest.$ac_ext <<_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
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. */
19319
# include <limits.h>
19321
# include <assert.h>
19326
/* Override any gcc2 internal prototype to avoid an error. */
19331
/* We use char because int might match the return type of a gcc2
19332
builtin and then its argument prototype would still apply. */
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)
19340
char (*f) () = $ac_func;
19349
return f != $ac_func;
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
19358
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374
(exit $ac_status); }; }; then
19375
eval "$as_ac_var=yes"
19377
echo "$as_me: failed program was:" >&5
19378
sed 's/^/| /' conftest.$ac_ext >&5
19380
eval "$as_ac_var=no"
19382
rm -f conftest.err conftest.$ac_objext \
19383
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19406
for ac_func in mkdtemp
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
19414
cat >conftest.$ac_ext <<_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
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. */
19430
# include <limits.h>
19432
# include <assert.h>
19437
/* Override any gcc2 internal prototype to avoid an error. */
19442
/* We use char because int might match the return type of a gcc2
19443
builtin and then its argument prototype would still apply. */
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)
19451
char (*f) () = $ac_func;
19460
return f != $ac_func;
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
19469
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485
(exit $ac_status); }; }; then
19486
eval "$as_ac_var=yes"
19488
echo "$as_me: failed program was:" >&5
19489
sed 's/^/| /' conftest.$ac_ext >&5
19491
eval "$as_ac_var=no"
19493
rm -f conftest.err conftest.$ac_objext \
19494
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19518
for ac_func in fseeko ftello
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
19526
cat >conftest.$ac_ext <<_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
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. */
19542
# include <limits.h>
19544
# include <assert.h>
19549
/* Override any gcc2 internal prototype to avoid an error. */
19554
/* We use char because int might match the return type of a gcc2
19555
builtin and then its argument prototype would still apply. */
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)
19563
char (*f) () = $ac_func;
19572
return f != $ac_func;
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
19581
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597
(exit $ac_status); }; }; then
19598
eval "$as_ac_var=yes"
19600
echo "$as_me: failed program was:" >&5
19601
sed 's/^/| /' conftest.$ac_ext >&5
19603
eval "$as_ac_var=no"
19605
rm -f conftest.err conftest.$ac_objext \
19606
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19629
for ac_func in isascii
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
19637
cat >conftest.$ac_ext <<_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
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. */
19653
# include <limits.h>
19655
# include <assert.h>
19660
/* Override any gcc2 internal prototype to avoid an error. */
19665
/* We use char because int might match the return type of a gcc2
19666
builtin and then its argument prototype would still apply. */
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)
19674
char (*f) () = $ac_func;
19683
return f != $ac_func;
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
19692
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708
(exit $ac_status); }; }; then
19709
eval "$as_ac_var=yes"
19711
echo "$as_me: failed program was:" >&5
19712
sed 's/^/| /' conftest.$ac_ext >&5
19714
eval "$as_ac_var=no"
19716
rm -f conftest.err conftest.$ac_objext \
19717
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19740
for ac_func in putc_unlocked
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
19748
cat >conftest.$ac_ext <<_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
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. */
19764
# include <limits.h>
19766
# include <assert.h>
19771
/* Override any gcc2 internal prototype to avoid an error. */
19776
/* We use char because int might match the return type of a gcc2
19777
builtin and then its argument prototype would still apply. */
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)
19785
char (*f) () = $ac_func;
19794
return f != $ac_func;
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
19803
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819
(exit $ac_status); }; }; then
19820
eval "$as_ac_var=yes"
19822
echo "$as_me: failed program was:" >&5
19823
sed 's/^/| /' conftest.$ac_ext >&5
19825
eval "$as_ac_var=no"
19827
rm -f conftest.err conftest.$ac_objext \
19828
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19851
for ac_func in strsep
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
19859
cat >conftest.$ac_ext <<_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
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. */
19875
# include <limits.h>
19877
# include <assert.h>
19882
/* Override any gcc2 internal prototype to avoid an error. */
19887
/* We use char because int might match the return type of a gcc2
19888
builtin and then its argument prototype would still apply. */
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)
19896
char (*f) () = $ac_func;
19905
return f != $ac_func;
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
19914
grep -v '^ *+' conftest.er1 >conftest.err
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
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
19929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930
(exit $ac_status); }; }; then
19931
eval "$as_ac_var=yes"
19933
echo "$as_me: failed program was:" >&5
19934
sed 's/^/| /' conftest.$ac_ext >&5
19936
eval "$as_ac_var=no"
19938
rm -f conftest.err conftest.$ac_objext \
19939
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
19962
for ac_func in ttyname
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
19970
cat >conftest.$ac_ext <<_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
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. */
19986
# include <limits.h>
19988
# include <assert.h>
19993
/* Override any gcc2 internal prototype to avoid an error. */
19998
/* We use char because int might match the return type of a gcc2
19999
builtin and then its argument prototype would still apply. */
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)
20007
char (*f) () = $ac_func;
20016
return f != $ac_func;
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
20025
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041
(exit $ac_status); }; }; then
20042
eval "$as_ac_var=yes"
20044
echo "$as_me: failed program was:" >&5
20045
sed 's/^/| /' conftest.$ac_ext >&5
20047
eval "$as_ac_var=no"
20049
rm -f conftest.err conftest.$ac_objext \
20050
conftest$ac_exeext conftest.$ac_ext
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
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" ;;
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
20080
# fixme: Do we need this - iirc, this is only used by libgcrypt.
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
20087
cat >conftest.$ac_ext <<_ACEOF
20090
cat confdefs.h >>conftest.$ac_ext
20091
cat >>conftest.$ac_ext <<_ACEOF
20092
/* end confdefs.h. */
20093
#include <sys/times.h>
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
20109
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125
(exit $ac_status); }; }; then
20126
gnupg_cv_func_gethrtime=yes
20128
echo "$as_me: failed program was:" >&5
20129
sed 's/^/| /' conftest.$ac_ext >&5
20131
gnupg_cv_func_gethrtime=no
20133
rm -f conftest.err conftest.$ac_objext \
20134
conftest$ac_exeext conftest.$ac_ext
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
20141
cat >>confdefs.h <<\_ACEOF
20142
#define HAVE_GETHRTIME 1
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
20150
if test "$cross_compiling" = yes; then
20151
gnupg_cv_func_broken_gethrtime=assume-no
20153
cat >conftest.$ac_ext <<_ACEOF
20156
cat confdefs.h >>conftest.$ac_ext
20157
cat >>conftest.$ac_ext <<_ACEOF
20158
/* end confdefs.h. */
20160
#include <sys/times.h>
20167
rm -f conftest$ac_exeext
20168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169
(eval $ac_link) 2>&5
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
20176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177
(exit $ac_status); }; }; then
20178
gnupg_cv_func_broken_gethrtime=no
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
20184
( exit $ac_status )
20185
gnupg_cv_func_broken_gethrtime=yes
20187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
20195
cat >>confdefs.h <<\_ACEOF
20196
#define HAVE_BROKEN_GETHRTIME 1
20204
for ac_func in mlock
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
20212
cat >conftest.$ac_ext <<_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
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. */
20228
# include <limits.h>
20230
# include <assert.h>
20235
/* Override any gcc2 internal prototype to avoid an error. */
20240
/* We use char because int might match the return type of a gcc2
20241
builtin and then its argument prototype would still apply. */
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)
20249
char (*f) () = $ac_func;
20258
return f != $ac_func;
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
20267
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283
(exit $ac_status); }; }; then
20284
eval "$as_ac_var=yes"
20286
echo "$as_me: failed program was:" >&5
20287
sed 's/^/| /' conftest.$ac_ext >&5
20289
eval "$as_ac_var=no"
20291
rm -f conftest.err conftest.$ac_objext \
20292
conftest$ac_exeext conftest.$ac_ext
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
20304
if test "$ac_cv_func_mlock" = "no"; then
20306
for ac_header in sys/mman.h
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
20315
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20316
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
20330
rm -f conftest.$ac_objext
20331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20332
(eval $ac_compile) 2>conftest.er1
20334
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
(exit $ac_status); }; }; then
20351
ac_header_compiler=yes
20353
echo "$as_me: failed program was:" >&5
20354
sed 's/^/| /' conftest.$ac_ext >&5
20356
ac_header_compiler=no
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
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
20368
cat confdefs.h >>conftest.$ac_ext
20369
cat >>conftest.$ac_ext <<_ACEOF
20370
/* end confdefs.h. */
20371
#include <$ac_header>
20373
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20374
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20376
grep -v '^ *+' conftest.er1 >conftest.err
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
20390
if test -z "$ac_cpp_err"; then
20391
ac_header_preproc=yes
20393
echo "$as_me: failed program was:" >&5
20394
sed 's/^/| /' conftest.$ac_ext >&5
20396
ac_header_preproc=no
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
20402
# So? What about this header?
20403
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
20426
## ------------------------------------ ##
20427
## Report this to gnupg-devel@gnupg.org ##
20428
## ------------------------------------ ##
20431
sed "s/^/$as_me: WARNING: /" >&2
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
20439
eval "$as_ac_Header=\$ac_header_preproc"
20441
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20442
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
20454
if test "$ac_cv_header_sys_mman_h" = "yes"; then
20455
# Add librt to LIBS:
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
20462
ac_check_lib_save_LIBS=$LIBS
20464
cat >conftest.$ac_ext <<_ACEOF
20467
cat confdefs.h >>conftest.$ac_ext
20468
cat >>conftest.$ac_ext <<_ACEOF
20469
/* end confdefs.h. */
20471
/* Override any gcc2 internal prototype to avoid an error. */
20475
/* We use char because int might match the return type of a gcc2
20476
builtin and then its argument prototype would still apply. */
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
20490
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506
(exit $ac_status); }; }; then
20507
ac_cv_lib_rt_memlk=yes
20509
echo "$as_me: failed program was:" >&5
20510
sed 's/^/| /' conftest.$ac_ext >&5
20512
ac_cv_lib_rt_memlk=no
20514
rm -f conftest.err conftest.$ac_objext \
20515
conftest$ac_exeext conftest.$ac_ext
20516
LIBS=$ac_check_lib_save_LIBS
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
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
20534
cat >conftest.$ac_ext <<_ACEOF
20537
cat confdefs.h >>conftest.$ac_ext
20538
cat >>conftest.$ac_ext <<_ACEOF
20539
/* end confdefs.h. */
20541
#include <assert.h>
20542
#ifdef HAVE_SYS_MMAN_H
20543
#include <sys/mman.h>
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
20556
#if defined (__stub_mlock) || defined (__stub___mlock)
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
20571
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587
(exit $ac_status); }; }; then
20588
gnupg_cv_mlock_is_in_sys_mman=yes
20590
echo "$as_me: failed program was:" >&5
20591
sed 's/^/| /' conftest.$ac_ext >&5
20593
gnupg_cv_mlock_is_in_sys_mman=no
20595
rm -f conftest.err conftest.$ac_objext \
20596
conftest$ac_exeext conftest.$ac_ext
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
20602
cat >>confdefs.h <<\_ACEOF
20603
#define HAVE_MLOCK 1
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
20615
if test "$cross_compiling" = yes; then
20616
gnupg_cv_have_broken_mlock="assume-no"
20619
cat >conftest.$ac_ext <<_ACEOF
20622
cat confdefs.h >>conftest.$ac_ext
20623
cat >>conftest.$ac_ext <<_ACEOF
20624
/* end confdefs.h. */
20626
#include <stdlib.h>
20627
#include <unistd.h>
20629
#include <sys/mman.h>
20630
#include <sys/types.h>
20637
long int pgsize = getpagesize();
20639
pool = malloc( 4096 + pgsize );
20642
pool += (pgsize - ((long int)pool % pgsize));
20644
err = mlock( pool, 4096 );
20645
if( !err || errno == EPERM )
20646
return 0; /* okay */
20648
return 1; /* hmmm */
20653
rm -f conftest$ac_exeext
20654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655
(eval $ac_link) 2>&5
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
20662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663
(exit $ac_status); }; }; then
20664
gnupg_cv_have_broken_mlock="no"
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
20670
( exit $ac_status )
20671
gnupg_cv_have_broken_mlock="yes"
20673
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20678
if test "$gnupg_cv_have_broken_mlock" = "yes"; then
20680
cat >>confdefs.h <<\_ACEOF
20681
#define HAVE_BROKEN_MLOCK 1
20684
echo "$as_me:$LINENO: result: yes" >&5
20685
echo "${ECHO_T}yes" >&6
20687
for ac_func in plock
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
20695
cat >conftest.$ac_ext <<_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
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. */
20711
# include <limits.h>
20713
# include <assert.h>
20718
/* Override any gcc2 internal prototype to avoid an error. */
20723
/* We use char because int might match the return type of a gcc2
20724
builtin and then its argument prototype would still apply. */
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)
20732
char (*f) () = $ac_func;
20741
return f != $ac_func;
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
20750
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766
(exit $ac_status); }; }; then
20767
eval "$as_ac_var=yes"
20769
echo "$as_me: failed program was:" >&5
20770
sed 's/^/| /' conftest.$ac_ext >&5
20772
eval "$as_ac_var=no"
20774
rm -f conftest.err conftest.$ac_objext \
20775
conftest$ac_exeext conftest.$ac_ext
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
20788
if test "$gnupg_cv_have_broken_mlock" = "no"; then
20789
echo "$as_me:$LINENO: result: no" >&5
20790
echo "${ECHO_T}no" >&6
20792
echo "$as_me:$LINENO: result: assuming no" >&5
20793
echo "${ECHO_T}assuming no" >&6
20801
for ac_header in sys/stat.h unistd.h direct.h
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
20810
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
20825
rm -f conftest.$ac_objext
20826
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827
(eval $ac_compile) 2>conftest.er1
20829
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845
(exit $ac_status); }; }; then
20846
ac_header_compiler=yes
20848
echo "$as_me: failed program was:" >&5
20849
sed 's/^/| /' conftest.$ac_ext >&5
20851
ac_header_compiler=no
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
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
20863
cat confdefs.h >>conftest.$ac_ext
20864
cat >>conftest.$ac_ext <<_ACEOF
20865
/* end confdefs.h. */
20866
#include <$ac_header>
20868
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20869
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20871
grep -v '^ *+' conftest.er1 >conftest.err
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
20885
if test -z "$ac_cpp_err"; then
20886
ac_header_preproc=yes
20888
echo "$as_me: failed program was:" >&5
20889
sed 's/^/| /' conftest.$ac_ext >&5
20891
ac_header_preproc=no
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
20897
# So? What about this header?
20898
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
20921
## ------------------------------------ ##
20922
## Report this to gnupg-devel@gnupg.org ##
20923
## ------------------------------------ ##
20926
sed "s/^/$as_me: WARNING: /" >&2
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
20934
eval "$as_ac_Header=\$ac_header_preproc"
20936
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20937
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
20954
cat >conftest.$ac_ext <<_ACEOF
20957
cat confdefs.h >>conftest.$ac_ext
20958
cat >>conftest.$ac_ext <<_ACEOF
20959
/* end confdefs.h. */
20961
#include <sys/types.h>
20962
#ifdef HAVE_SYS_STAT_H
20963
# include <sys/stat.h>
20965
#ifdef HAVE_UNISTD_H
20966
# include <unistd.h>
20968
#ifdef HAVE_DIRECT_H
20969
# include <direct.h>
20979
rm -f conftest.$ac_objext
20980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20981
(eval $ac_compile) 2>conftest.er1
20983
grep -v '^ *+' conftest.er1 >conftest.err
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
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
20998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999
(exit $ac_status); }; }; then
21000
gnupg_cv_mkdir_takes_one_arg=no
21002
echo "$as_me: failed program was:" >&5
21003
sed 's/^/| /' conftest.$ac_ext >&5
21005
gnupg_cv_mkdir_takes_one_arg=yes
21007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
21013
cat >>confdefs.h <<\_ACEOF
21014
#define MKDIR_TAKES_ONE_ARG 1
21020
# fixme: Still required?
21022
if test "$use_capabilities" = "yes" ; then
21023
use_capabilities=no
21025
for ac_header in sys/capability.h
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
21034
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21035
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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>
21049
rm -f conftest.$ac_objext
21050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21051
(eval $ac_compile) 2>conftest.er1
21053
grep -v '^ *+' conftest.er1 >conftest.err
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
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
21068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069
(exit $ac_status); }; }; then
21070
ac_header_compiler=yes
21072
echo "$as_me: failed program was:" >&5
21073
sed 's/^/| /' conftest.$ac_ext >&5
21075
ac_header_compiler=no
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
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
21087
cat confdefs.h >>conftest.$ac_ext
21088
cat >>conftest.$ac_ext <<_ACEOF
21089
/* end confdefs.h. */
21090
#include <$ac_header>
21092
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21093
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21095
grep -v '^ *+' conftest.er1 >conftest.err
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
21109
if test -z "$ac_cpp_err"; then
21110
ac_header_preproc=yes
21112
echo "$as_me: failed program was:" >&5
21113
sed 's/^/| /' conftest.$ac_ext >&5
21115
ac_header_preproc=no
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
21121
# So? What about this header?
21122
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
21145
## ------------------------------------ ##
21146
## Report this to gnupg-devel@gnupg.org ##
21147
## ------------------------------------ ##
21150
sed "s/^/$as_me: WARNING: /" >&2
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
21158
eval "$as_ac_Header=\$ac_header_preproc"
21160
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21161
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
21179
ac_check_lib_save_LIBS=$LIBS
21181
cat >conftest.$ac_ext <<_ACEOF
21184
cat confdefs.h >>conftest.$ac_ext
21185
cat >>conftest.$ac_ext <<_ACEOF
21186
/* end confdefs.h. */
21188
/* Override any gcc2 internal prototype to avoid an error. */
21192
/* We use char because int might match the return type of a gcc2
21193
builtin and then its argument prototype would still apply. */
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
21207
grep -v '^ *+' conftest.er1 >conftest.err
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
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
21222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223
(exit $ac_status); }; }; then
21224
ac_cv_lib_cap_cap_init=yes
21226
echo "$as_me: failed program was:" >&5
21227
sed 's/^/| /' conftest.$ac_ext >&5
21229
ac_cv_lib_cap_cap_init=no
21231
rm -f conftest.err conftest.$ac_objext \
21232
conftest$ac_exeext conftest.$ac_ext
21233
LIBS=$ac_check_lib_save_LIBS
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
21241
if test "$ac_cv_lib_cap_cap_init" = "yes"; then
21243
cat >>confdefs.h <<\_ACEOF
21244
#define USE_CAPABILITIES 1
21249
use_capabilities=yes
21252
if test "$use_capabilities" = "no" ; then
21253
{ echo "$as_me:$LINENO: WARNING:
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.
21263
echo "$as_me: WARNING:
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.
21277
# Sanity check regex. Tests adapted from mutt.
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
21288
echo "$as_me:$LINENO: result: $use_regex" >&5
21289
echo "${ECHO_T}$use_regex" >&6
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
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
21300
gnupg_cv_included_regex=no
21302
echo "$as_me:$LINENO: result: $gnupg_cv_included_regex" >&5
21303
echo "${ECHO_T}$gnupg_cv_included_regex" >&6
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
21312
cat >conftest.$ac_ext <<_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
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. */
21328
# include <limits.h>
21330
# include <assert.h>
21335
/* Override any gcc2 internal prototype to avoid an error. */
21340
/* We use char because int might match the return type of a gcc2
21341
builtin and then its argument prototype would still apply. */
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)
21349
char (*f) () = regcomp;
21358
return f != regcomp;
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
21367
grep -v '^ *+' conftest.er1 >conftest.err
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
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
21382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383
(exit $ac_status); }; }; then
21384
ac_cv_func_regcomp=yes
21386
echo "$as_me: failed program was:" >&5
21387
sed 's/^/| /' conftest.$ac_ext >&5
21389
ac_cv_func_regcomp=no
21391
rm -f conftest.err conftest.$ac_objext \
21392
conftest$ac_exeext conftest.$ac_ext
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
21399
gnupg_cv_included_regex=yes
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
21410
if test "$cross_compiling" = yes; then
21411
gnupg_cv_regex_broken=yes
21413
cat >conftest.$ac_ext <<_ACEOF
21416
cat confdefs.h >>conftest.$ac_ext
21417
cat >>conftest.$ac_ext <<_ACEOF
21418
/* end confdefs.h. */
21420
#include <unistd.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); }
21424
rm -f conftest$ac_exeext
21425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21426
(eval $ac_link) 2>&5
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
21433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434
(exit $ac_status); }; }; then
21435
gnupg_cv_regex_broken=no
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
21441
( exit $ac_status )
21442
gnupg_cv_regex_broken=yes
21444
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21447
echo "$as_me:$LINENO: result: $gnupg_cv_regex_broken" >&5
21448
echo "${ECHO_T}$gnupg_cv_regex_broken" >&6
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
21457
if test $gnupg_cv_included_regex = yes; then
21459
cat >>confdefs.h <<\_ACEOF
21460
#define USE_GNU_REGEX 1
21469
cat >>confdefs.h <<\_ACEOF
21470
#define DISABLE_REGEX 1
21475
_cppflags="${CPPFLAGS}"
21476
_ldflags="${LDFLAGS}"
21479
# Check whether --with-zlib or --without-zlib was given.
21480
if test "${with_zlib+set}" = set; then
21481
withval="$with_zlib"
21483
if test -d "$withval"; then
21484
CPPFLAGS="${CPPFLAGS} -I$withval/include"
21485
LDFLAGS="${LDFLAGS} -L$withval/lib"
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
21496
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21497
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
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
21505
cat confdefs.h >>conftest.$ac_ext
21506
cat >>conftest.$ac_ext <<_ACEOF
21507
/* end confdefs.h. */
21508
$ac_includes_default
21511
rm -f conftest.$ac_objext
21512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21513
(eval $ac_compile) 2>conftest.er1
21515
grep -v '^ *+' conftest.er1 >conftest.err
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
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
21530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531
(exit $ac_status); }; }; then
21532
ac_header_compiler=yes
21534
echo "$as_me: failed program was:" >&5
21535
sed 's/^/| /' conftest.$ac_ext >&5
21537
ac_header_compiler=no
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
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
21549
cat confdefs.h >>conftest.$ac_ext
21550
cat >>conftest.$ac_ext <<_ACEOF
21551
/* end confdefs.h. */
21554
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21555
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21557
grep -v '^ *+' conftest.er1 >conftest.err
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
21571
if test -z "$ac_cpp_err"; then
21572
ac_header_preproc=yes
21574
echo "$as_me: failed program was:" >&5
21575
sed 's/^/| /' conftest.$ac_ext >&5
21577
ac_header_preproc=no
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
21583
# So? What about this header?
21584
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
21607
## ------------------------------------ ##
21608
## Report this to gnupg-devel@gnupg.org ##
21609
## ------------------------------------ ##
21612
sed "s/^/$as_me: WARNING: /" >&2
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
21620
ac_cv_header_zlib_h=$ac_header_preproc
21622
echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21623
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
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
21632
ac_check_lib_save_LIBS=$LIBS
21634
cat >conftest.$ac_ext <<_ACEOF
21637
cat confdefs.h >>conftest.$ac_ext
21638
cat >>conftest.$ac_ext <<_ACEOF
21639
/* end confdefs.h. */
21641
/* Override any gcc2 internal prototype to avoid an error. */
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_ ();
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
21660
grep -v '^ *+' conftest.er1 >conftest.err
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
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
21675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676
(exit $ac_status); }; }; then
21677
ac_cv_lib_z_deflateInit2_=yes
21679
echo "$as_me: failed program was:" >&5
21680
sed 's/^/| /' conftest.$ac_ext >&5
21682
ac_cv_lib_z_deflateInit2_=no
21684
rm -f conftest.err conftest.$ac_objext \
21685
conftest$ac_exeext conftest.$ac_ext
21686
LIBS=$ac_check_lib_save_LIBS
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
21693
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
21697
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
21704
# See wether we want to run the long test suite.
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
21715
if test "$run_pkits_tests" = "yes"; then
21716
RUN_PKITS_TESTS_TRUE=
21717
RUN_PKITS_TESTS_FALSE='#'
21719
RUN_PKITS_TESTS_TRUE='#'
21720
RUN_PKITS_TESTS_FALSE=
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
21730
if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then
21731
development_version=yes
21734
if test "$development_version" = yes; then
21736
cat >>confdefs.h <<\_ACEOF
21737
#define IS_DEVELOPMENT_VERSION 1
21744
if test x$cross_compiling = xyes; then
21745
CROSS_COMPILING_TRUE=
21746
CROSS_COMPILING_FALSE='#'
21748
CROSS_COMPILING_TRUE='#'
21749
CROSS_COMPILING_FALSE=
21754
if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
21757
{ echo "$as_me:$LINENO: WARNING:
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.
21764
echo "$as_me: WARNING:
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.
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"
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"
21786
CFLAGS="$CFLAGS -Wall"
21794
# We use jnlib, so tell other modules about it
21796
cat >>confdefs.h <<\_ACEOF
21797
#define HAVE_JNLIB_LOGGING 1
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"
21809
# Decide what to build
21812
if test $have_ksba = no; then
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)"
21825
build_scdaemon_extra=""
21826
if test "$build_scdaemon" = "yes"; then
21828
if test $have_pth = no; then
21829
build_scdaemon_extra="not multi-threaded"
21833
if test $have_opensc = no; then
21834
build_scdaemon_extra="${build_scdaemon_extra}${tmp}no pkcs#15"
21837
if test -n "$build_scdaemon_extra"; then
21838
build_scdaemon_extra="(${build_scdaemon_extra})"
21843
if test "$build_agent_only" = "yes" ; then
21852
if test "$build_gpg" = "yes"; then
21854
BUILD_GPG_FALSE='#'
21862
if test "$build_gpgsm" = "yes"; then
21864
BUILD_GPGSM_FALSE='#'
21866
BUILD_GPGSM_TRUE='#'
21872
if test "$build_agent" = "yes"; then
21874
BUILD_AGENT_FALSE='#'
21876
BUILD_AGENT_TRUE='#'
21882
if test "$build_scdaemon" = "yes"; then
21883
BUILD_SCDAEMON_TRUE=
21884
BUILD_SCDAEMON_FALSE='#'
21886
BUILD_SCDAEMON_TRUE='#'
21887
BUILD_SCDAEMON_FALSE=
21894
# Print errors here so that they are visible all
21895
# together and the user can acquire them all together.
21898
if test "$have_gpg_error" = "no"; then
21900
{ echo "$as_me:$LINENO:
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.)
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.)
21915
if test "$have_libgcrypt" = "no"; then
21917
{ echo "$as_me:$LINENO:
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.)
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.)
21932
if test "$have_libassuan" = "no"; then
21934
{ echo "$as_me:$LINENO:
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).
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).
21949
if test "$have_ksba" = "no"; then
21950
{ echo "$as_me:$LINENO:
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).
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).
21965
if test "$missing_pth" = "yes"; then
21966
{ echo "$as_me:$LINENO:
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
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
21986
if test "$enable_threads" != "no"; then
21991
if test "$die" = "yes"; then
21992
{ { echo "$as_me:$LINENO: error:
21994
*** Required libraries not found. Please consult the above messages
21995
*** and install them before running configure again.
21997
echo "$as_me: error:
21999
*** Required libraries not found. Please consult the above messages
22000
*** and install them before running configure again.
22002
{ (exit 1); exit 1; }; }
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"
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.
22016
# config.status only pays attention to the cache file if you give it
22017
# the --recheck option to rerun configure.
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.
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.
22032
case `(ac_space=' '; set | grep ac_space) 2>&1` in
22034
# `set' does not quote correctly, so add quotes (double-quote
22035
# substitution turns \\\\ into \\, and sed turns \\ into \).
22038
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22041
# `set' quotes correctly as required by POSIX, so do not add quotes.
22043
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22050
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22052
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
22059
echo "not updating unwritable cache $cache_file"
22064
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22065
# Let make expand exec_prefix.
22066
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
22077
s/^\([^=]*=[ ]*\):*/\1/;
22083
DEFS=-DHAVE_CONFIG_H
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$//'`
22092
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22093
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22095
LIBOBJS=$ac_libobjs
22097
LTLIBOBJS=$ac_ltlibobjs
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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; }; }
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
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.
22254
ac_cs_recheck=false
22256
SHELL=\${CONFIG_SHELL-$SHELL}
22259
cat >>$CONFIG_STATUS <<\_ACEOF
22260
## --------------------- ##
22261
## M4sh Initialization. ##
22262
## --------------------- ##
22264
# Be Bourne compatible
22265
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
22274
DUALCASE=1; export DUALCASE # for MKS sh
22276
# Support unset when possible.
22277
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22284
# Work around bugs in pre-3.0 UWIN ksh.
22285
$as_unset ENV MAIL MAILPATH
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
22296
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22297
eval $as_var=C; export $as_var
22303
# Required to use basename.
22304
if expr a : '\(a\)' >/dev/null 2>&1; then
22310
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22311
as_basename=basename
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 ||
22324
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22325
/^X\/\(\/\/\)$/{ s//\1/; q; }
22326
/^X\/\(\/\).*/{ s//\1/; q; }
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
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
22343
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
22360
*[\\/]* ) as_myself=$0 ;;
22361
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22362
for as_dir in $PATH
22365
test -z "$as_dir" && as_dir=.
22366
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
22381
case $CONFIG_SHELL in
22383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22384
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22387
test -z "$as_dir" && as_dir=.
22388
for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
22422
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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; }; }
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).
22436
# Exit status is that of the last command.
22441
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22442
*c*,-n*) ECHO_N= ECHO_C='
22444
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22445
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22448
if expr a : '\(a\)' >/dev/null 2>&1; then
22454
rm -f conf$$ conf$$.exe 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
22465
elif ln conf$$.file conf$$ 2>/dev/null; then
22470
rm -f conf$$ conf$$.exe conf$$.file
22472
if mkdir -p . 2>/dev/null; then
22475
test -d ./-p && rmdir ./-p
22479
as_executable_p="test -f"
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'"
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'"
22489
# We need space, tab and new line, in precisely that order.
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.
22505
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22506
## Running $as_me. ##
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
22514
CONFIG_FILES = $CONFIG_FILES
22515
CONFIG_HEADERS = $CONFIG_HEADERS
22516
CONFIG_LINKS = $CONFIG_LINKS
22517
CONFIG_COMMANDS = $CONFIG_COMMANDS
22521
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
22530
if test -n "$ac_config_headers"; then
22531
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22534
if test -n "$ac_config_links"; then
22535
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22538
if test -n "$ac_config_commands"; then
22539
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22542
cat >>$CONFIG_STATUS <<\_ACEOF
22545
\`$as_me' instantiates files from templates according to the
22546
current configuration.
22548
Usage: $0 [OPTIONS] [FILE]...
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
22560
Configuration files:
22563
Configuration headers:
22566
Configuration links:
22569
Configuration commands:
22572
Report bugs to <bug-autoconf@gnu.org>."
22575
cat >>$CONFIG_STATUS <<_ACEOF
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'`\\"
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."
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.
22596
ac_option=`expr "x$1" : 'x\([^=]*\)='`
22597
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22605
*) # This is not an option, so the user has probably given explicit
22608
ac_need_defaults=false;;
22612
# Handling of the options.
22614
cat >>$CONFIG_STATUS <<\_ACEOF
22615
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22617
--version | --vers* | -V )
22618
echo "$ac_cs_version"; exit 0 ;;
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 )
22630
--file | --fil | --fi | --f )
22632
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22633
ac_need_defaults=false;;
22634
--header | --heade | --head | --hea )
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)
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; }; } ;;
22649
*) ac_config_targets="$ac_config_targets $1" ;;
22655
ac_configure_extra_args=
22657
if $ac_cs_silent; then
22659
ac_configure_extra_args="$ac_configure_extra_args --silent"
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
22671
cat >>$CONFIG_STATUS <<_ACEOF
22673
# INIT-COMMANDS section.
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
22680
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22681
# Capture the value of LINGUAS because we need it to compute CATALOGS.
22682
LINGUAS="${LINGUAS-%UNSET%}"
22689
cat >>$CONFIG_STATUS <<\_ACEOF
22690
for ac_config_target in $ac_config_targets
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; }; };;
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
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.
22735
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22736
trap '{ (exit 1); exit 1; }' 1 2 13 15
22739
# Create a (secure) tmp directory for tmp files.
22742
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22743
test -n "$tmp" && test -d "$tmp"
22746
tmp=./confstat$$-$RANDOM
22747
(umask 077 && mkdir $tmp)
22750
echo "$me: cannot create a temporary directory in ." >&2
22751
{ (exit 1); exit 1; }
22756
cat >>$CONFIG_STATUS <<_ACEOF
22759
# CONFIG_FILES section.
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
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
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
22866
s,@LN_S@,$LN_S,;t t
22867
s,@RANLIB@,$RANLIB,;t t
22868
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;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
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.
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
22976
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22978
if test ! -s $tmp/subs.frag; then
22979
ac_more_lines=false
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.
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"
22990
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22992
ac_sed_frag=`expr $ac_sed_frag + 1`
22994
ac_end=`expr $ac_end + $ac_max_sed_lines`
22997
if test -z "$ac_sed_cmds"; then
23000
fi # test -n "$CONFIG_FILES"
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".
23007
- | *:- | *:-:* ) # input from 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 ;;
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 ||
23024
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23025
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23026
/^X\(\/\/\)$/{ s//\1/; q; }
23027
/^X\(\/\).*/{ s//\1/; q; }
23029
{ if $as_mkdir_p; then
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 ||
23043
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23044
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23045
/^X\(\/\/\)$/{ s//\1/; q; }
23046
/^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
23061
ac_dir_suffix= ac_top_builddir=
23065
.) # No --srcdir option. We are building in place.
23067
if test -z "$ac_top_builddir"; then
23070
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
23080
# Do not use `cd foo && pwd` to compute absolute paths, because
23081
# the directories may not exist.
23083
.) ac_abs_builddir="$ac_dir";;
23086
.) ac_abs_builddir=`pwd`;;
23087
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23088
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23091
case $ac_abs_builddir in
23092
.) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
23100
case $ac_abs_builddir in
23101
.) ac_abs_srcdir=$ac_srcdir;;
23104
.) ac_abs_srcdir=$ac_abs_builddir;;
23105
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23106
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23109
case $ac_abs_builddir in
23110
.) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
23121
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23122
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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
23131
configure_input="$ac_file. "
23133
configure_input=$configure_input"Generated from `echo $ac_file_in |
23134
sed 's,.*/,,'` by configure."
23136
# First look for the input files in the build tree, otherwise in the
23138
ac_file_inputs=`IFS=:
23139
for f in $ac_file_in; do
23141
-) echo $tmp/stdin ;;
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; }; }
23149
if test -f "$f"; then
23152
elif test -f "$srcdir/$f"; then
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; }; }
23162
done` || { (exit 1); exit 1; }
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;}
23170
cat >>$CONFIG_STATUS <<_ACEOF
23174
cat >>$CONFIG_STATUS <<\_ACEOF
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
23189
if test x"$ac_file" != x-; then
23190
mv $tmp/out $ac_file
23198
cat >>$CONFIG_STATUS <<\_ACEOF
23201
# CONFIG_HEADER section.
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.
23207
# ac_d sets the value in "#define NAME VALUE" lines.
23208
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23209
ac_dB='[ ].*$,\1#\2'
23212
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23213
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23214
ac_uB='$,\1#\2define\3'
23218
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23219
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23221
- | *:- | *:-:* ) # input from 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 ;;
23230
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23231
echo "$as_me: creating $ac_file" >&6;}
23233
# First look for the input files in the build tree, otherwise in the
23235
ac_file_inputs=`IFS=:
23236
for f in $ac_file_in; do
23238
-) echo $tmp/stdin ;;
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.
23247
if test -f "$f"; then
23250
elif test -f "$srcdir/$f"; then
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; }; }
23260
done` || { (exit 1); exit 1; }
23261
# Remove the trailing spaces.
23262
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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.
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
23285
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23287
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
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
23322
sed -f $tmp/defines.sed $tmp/in >$tmp/out
23324
mv $tmp/out $tmp/in
23326
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23327
rm -f conftest.defines
23328
mv conftest.tail conftest.defines
23330
rm -f conftest.defines
23331
echo ' fi # grep' >>$CONFIG_STATUS
23332
echo >>$CONFIG_STATUS
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
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
23349
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23351
mv $tmp/out $tmp/in
23353
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23354
rm -f conftest.undefs
23355
mv conftest.tail conftest.undefs
23357
rm -f conftest.undefs
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
23366
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23368
cat $tmp/in >>$tmp/config.h
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;}
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 ||
23382
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384
/^X\(\/\/\)$/{ s//\1/; q; }
23385
/^X\(\/\).*/{ s//\1/; q; }
23387
{ if $as_mkdir_p; then
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 ||
23401
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23402
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23403
/^X\(\/\/\)$/{ s//\1/; q; }
23404
/^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
23413
mv $tmp/config.h $ac_file
23417
rm -f $tmp/config.h
23419
# Compute $ac_file's index in $config_headers.
23421
for _am_header in $config_headers :; do
23422
case $_am_header in
23423
$ac_file | $ac_file:* )
23426
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
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 ||
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
23443
cat >>$CONFIG_STATUS <<\_ACEOF
23446
# CONFIG_LINKS section.
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,[^:]*:,,'`
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;}
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; }; }
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 ||
23471
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23472
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23473
/^X\(\/\/\)$/{ s//\1/; q; }
23474
/^X\(\/\).*/{ s//\1/; q; }
23476
{ if $as_mkdir_p; then
23477
mkdir -p "$ac_dest_dir"
23479
as_dir="$ac_dest_dir"
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 ||
23490
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23491
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23492
/^X\(\/\/\)$/{ s//\1/; q; }
23493
/^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
23508
ac_dir_suffix= ac_top_builddir=
23512
.) # No --srcdir option. We are building in place.
23514
if test -z "$ac_top_builddir"; then
23517
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
23527
# Do not use `cd foo && pwd` to compute absolute paths, because
23528
# the directories may not exist.
23530
.) ac_abs_builddir="$ac_dest_dir";;
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";;
23538
case $ac_abs_builddir in
23539
.) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
23547
case $ac_abs_builddir in
23548
.) ac_abs_srcdir=$ac_srcdir;;
23551
.) ac_abs_srcdir=$ac_abs_builddir;;
23552
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23553
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23556
case $ac_abs_builddir in
23557
.) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
23568
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23569
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
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; }; }
23581
cat >>$CONFIG_STATUS <<\_ACEOF
23584
# CONFIG_COMMANDS section.
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 ||
23596
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23597
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23598
/^X\(\/\/\)$/{ s//\1/; q; }
23599
/^X\(\/\).*/{ s//\1/; q; }
23601
{ if $as_mkdir_p; then
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 ||
23615
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23616
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23617
/^X\(\/\/\)$/{ s//\1/; q; }
23618
/^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
23633
ac_dir_suffix= ac_top_builddir=
23637
.) # No --srcdir option. We are building in place.
23639
if test -z "$ac_top_builddir"; then
23642
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
23652
# Do not use `cd foo && pwd` to compute absolute paths, because
23653
# the directories may not exist.
23655
.) ac_abs_builddir="$ac_dir";;
23658
.) ac_abs_builddir=`pwd`;;
23659
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23660
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23663
case $ac_abs_builddir in
23664
.) ac_abs_top_builddir=${ac_top_builddir}.;;
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}.;;
23672
case $ac_abs_builddir in
23673
.) ac_abs_srcdir=$ac_srcdir;;
23676
.) ac_abs_srcdir=$ac_abs_builddir;;
23677
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23678
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23681
case $ac_abs_builddir in
23682
.) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
23692
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23693
echo "$as_me: executing $ac_dest commands" >&6;}
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 ||
23712
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23713
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23714
/^X\(\/\/\)$/{ s//\1/; q; }
23715
/^X\(\/\).*/{ s//\1/; q; }
23720
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23721
# Extract the definition of DEP_FILES from the Makefile without
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 = .*\\\\$/ {
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 ||
23751
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23752
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23753
/^X\(\/\/\)$/{ s//\1/; q; }
23754
/^X\(\/\).*/{ s//\1/; q; }
23756
{ if $as_mkdir_p; then
23757
mkdir -p $dirpart/$fdir
23759
as_dir=$dirpart/$fdir
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 ||
23770
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23771
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23772
/^X\(\/\/\)$/{ s//\1/; q; }
23773
/^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
23781
# echo "creating $dirpart/$file"
23782
echo '# dummy' > "$dirpart/$file"
23787
for ac_file in $CONFIG_FILES; do
23788
# Support "outfile[:infile[:infile...]]"
23790
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
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" ;;
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
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"
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"
23824
# The set of available languages was given in configure.in.
23825
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
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)
23834
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23835
case "$ac_given_srcdir" in
23837
*) srcdirpre='$(srcdir)/' ;;
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"
23849
# CATALOGS depends on both $ac_dir and the user's LINGUAS
23850
# environment variable.
23852
if test -n "$ALL_LINGUAS"; then
23853
for presentlang in $ALL_LINGUAS; do
23855
if test "%UNSET%" != "$LINGUAS"; then
23856
desiredlanguages="$LINGUAS"
23858
desiredlanguages="$ALL_LINGUAS"
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;;
23870
if test $useit = yes; then
23871
INST_LINGUAS="$INST_LINGUAS $presentlang"
23876
if test -n "$INST_LINGUAS"; then
23877
for lang in $INST_LINGUAS; do
23878
CATALOGS="$CATALOGS $lang.gmo"
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
23886
*.orig | *.bak | *~) ;;
23887
*) cat "$f" >> "$ac_dir/Makefile" ;;
23899
cat >>$CONFIG_STATUS <<\_ACEOF
23901
{ (exit 0); exit 0; }
23903
chmod +x $CONFIG_STATUS
23904
ac_clean_files=$ac_clean_files_save
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
23917
ac_config_status_args=
23918
test "$silent" = yes &&
23919
ac_config_status_args="$ac_config_status_args --quiet"
23921
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
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; }
23929
#tests/pkits/Makefile
23935
GnuPG v${VERSION} has been configured as follows:
23937
Platform: $PRINTABLE_OS_NAME ($host)
23939
OpenPGP: $build_gpg
23940
S/MIME: $build_gpgsm
23941
Agent: $build_agent $build_agent_threaded
23942
Smartcard: $build_scdaemon $build_scdaemon_extra
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
23950
PKITS based tests: $run_pkits_tests