2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.1.18.
5 # Report bugs to <https://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.gnupg.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.1.18'
584 PACKAGE_STRING='gnupg 2.1.18'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 ac_subst_vars='am__EXEEXT_FALSE
638 NO_TRUST_MODELS_FALSE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
642 BUILD_WKS_TOOLS_FALSE
646 BUILD_SYMCRYPTRUN_FALSE
647 BUILD_SYMCRYPTRUN_TRUE
667 CROSS_COMPILING_FALSE
671 ENABLE_BZIP2_SUPPORT_FALSE
672 ENABLE_BZIP2_SUPPORT_TRUE
676 BUILD_INCLUDED_LIBINTL
683 XGETTEXT_EXTRA_OPTIONS
691 GETTEXT_MACRO_VERSION
696 USE_LDAPWRAPPER_FALSE
738 HAVE_ANDROID_SYSTEM_FALSE
739 HAVE_ANDROID_SYSTEM_TRUE
740 HAVE_W32CE_SYSTEM_FALSE
741 HAVE_W32CE_SYSTEM_TRUE
742 HAVE_W32_SYSTEM_FALSE
744 USE_SIMPLE_GETTEXT_FALSE
745 USE_SIMPLE_GETTEXT_TRUE
746 HAVE_DOSISH_SYSTEM_FALSE
747 HAVE_DOSISH_SYSTEM_TRUE
762 MAINTAINER_MODE_FALSE
768 GNUPG_DIRMNGR_LDAP_PGM_FALSE
769 GNUPG_DIRMNGR_LDAP_PGM_TRUE
770 GNUPG_DIRMNGR_LDAP_PGM
771 GNUPG_PROTECT_TOOL_PGM_FALSE
772 GNUPG_PROTECT_TOOL_PGM_TRUE
773 GNUPG_PROTECT_TOOL_PGM
774 GNUPG_DIRMNGR_PGM_FALSE
775 GNUPG_DIRMNGR_PGM_TRUE
777 GNUPG_SCDAEMON_PGM_FALSE
778 GNUPG_SCDAEMON_PGM_TRUE
780 GNUPG_PINENTRY_PGM_FALSE
781 GNUPG_PINENTRY_PGM_TRUE
783 GNUPG_AGENT_PGM_FALSE
827 INSTALL_STRIP_PROGRAM
869 program_transform_name
882 enable_option_checking
884 enable_dependency_tracking
899 with_protect_tool_pgm
900 with_dirmngr_ldap_pgm
902 enable_selinux_support
918 enable_gpg_camellia128
919 enable_gpg_camellia192
920 enable_gpg_camellia256
935 enable_dirmngr_auto_start
936 enable_maintainer_mode
939 with_libgpg_error_prefix
940 with_gpg_error_prefix
941 with_libgcrypt_prefix
942 with_libassuan_prefix
964 enable_build_timestamp
966 ac_precious_vars='build_alias
986 # Initialize some variables set by options.
988 ac_init_version=false
989 ac_unrecognized_opts=
991 # The variables have the same names as the options, with
992 # dashes changed to underlines.
1000 program_transform_name=s,x,x,
1008 # Installation directory options.
1009 # These are left unexpanded so users can "make install exec_prefix=/foo"
1010 # and all the variables that are supposed to be based on exec_prefix
1011 # by default will actually change.
1012 # Use braces instead of parens because sh, perl, etc. also accept them.
1013 # (The list follows the same order as the GNU Coding Standards.)
1014 bindir='${exec_prefix}/bin'
1015 sbindir='${exec_prefix}/sbin'
1016 libexecdir='${exec_prefix}/libexec'
1017 datarootdir='${prefix}/share'
1018 datadir='${datarootdir}'
1019 sysconfdir='${prefix}/etc'
1020 sharedstatedir='${prefix}/com'
1021 localstatedir='${prefix}/var'
1022 includedir='${prefix}/include'
1023 oldincludedir='/usr/include'
1024 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025 infodir='${datarootdir}/info'
1030 libdir='${exec_prefix}/lib'
1031 localedir='${datarootdir}/locale'
1032 mandir='${datarootdir}/man'
1038 # If the previous option needs an argument, assign it.
1039 if test -n "$ac_prev"; then
1040 eval $ac_prev=\$ac_option
1046 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 # Accept the important Cygnus configure options, so we can diagnose typos.
1053 case $ac_dashdash$ac_option in
1057 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1060 bindir=$ac_optarg ;;
1062 -build | --build | --buil | --bui | --bu)
1063 ac_prev=build_alias ;;
1064 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1065 build_alias=$ac_optarg ;;
1067 -cache-file | --cache-file | --cache-fil | --cache-fi \
1068 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1069 ac_prev=cache_file ;;
1070 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1071 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1072 cache_file=$ac_optarg ;;
1074 --config-cache | -C)
1075 cache_file=config.cache ;;
1077 -datadir | --datadir | --datadi | --datad)
1079 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1080 datadir=$ac_optarg ;;
1082 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1083 | --dataroo | --dataro | --datar)
1084 ac_prev=datarootdir ;;
1085 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1086 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1087 datarootdir=$ac_optarg ;;
1089 -disable-* | --disable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error $? "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1103 eval enable_$ac_useropt=no ;;
1105 -docdir | --docdir | --docdi | --doc | --do)
1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108 docdir=$ac_optarg ;;
1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113 dvidir=$ac_optarg ;;
1115 -enable-* | --enable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid feature name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_$ac_useropt"
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval enable_$ac_useropt=\$ac_optarg ;;
1131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133 | --exec | --exe | --ex)
1134 ac_prev=exec_prefix ;;
1135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137 | --exec=* | --exe=* | --ex=*)
1138 exec_prefix=$ac_optarg ;;
1140 -gas | --gas | --ga | --g)
1141 # Obsolete; use --with-gas.
1144 -help | --help | --hel | --he | -h)
1145 ac_init_help=long ;;
1146 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147 ac_init_help=recursive ;;
1148 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149 ac_init_help=short ;;
1151 -host | --host | --hos | --ho)
1152 ac_prev=host_alias ;;
1153 -host=* | --host=* | --hos=* | --ho=*)
1154 host_alias=$ac_optarg ;;
1156 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160 htmldir=$ac_optarg ;;
1162 -includedir | --includedir | --includedi | --included | --include \
1163 | --includ | --inclu | --incl | --inc)
1164 ac_prev=includedir ;;
1165 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166 | --includ=* | --inclu=* | --incl=* | --inc=*)
1167 includedir=$ac_optarg ;;
1169 -infodir | --infodir | --infodi | --infod | --info | --inf)
1171 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172 infodir=$ac_optarg ;;
1174 -libdir | --libdir | --libdi | --libd)
1176 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1177 libdir=$ac_optarg ;;
1179 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180 | --libexe | --libex | --libe)
1181 ac_prev=libexecdir ;;
1182 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183 | --libexe=* | --libex=* | --libe=*)
1184 libexecdir=$ac_optarg ;;
1186 -localedir | --localedir | --localedi | --localed | --locale)
1187 ac_prev=localedir ;;
1188 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189 localedir=$ac_optarg ;;
1191 -localstatedir | --localstatedir | --localstatedi | --localstated \
1192 | --localstate | --localstat | --localsta | --localst | --locals)
1193 ac_prev=localstatedir ;;
1194 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196 localstatedir=$ac_optarg ;;
1198 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201 mandir=$ac_optarg ;;
1203 -nfp | --nfp | --nf)
1204 # Obsolete; use --without-fp.
1207 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208 | --no-cr | --no-c | -n)
1211 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1215 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217 | --oldin | --oldi | --old | --ol | --o)
1218 ac_prev=oldincludedir ;;
1219 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222 oldincludedir=$ac_optarg ;;
1224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227 prefix=$ac_optarg ;;
1229 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1230 | --program-pre | --program-pr | --program-p)
1231 ac_prev=program_prefix ;;
1232 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1233 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234 program_prefix=$ac_optarg ;;
1236 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1237 | --program-suf | --program-su | --program-s)
1238 ac_prev=program_suffix ;;
1239 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1240 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241 program_suffix=$ac_optarg ;;
1243 -program-transform-name | --program-transform-name \
1244 | --program-transform-nam | --program-transform-na \
1245 | --program-transform-n | --program-transform- \
1246 | --program-transform | --program-transfor \
1247 | --program-transfo | --program-transf \
1248 | --program-trans | --program-tran \
1249 | --progr-tra | --program-tr | --program-t)
1250 ac_prev=program_transform_name ;;
1251 -program-transform-name=* | --program-transform-name=* \
1252 | --program-transform-nam=* | --program-transform-na=* \
1253 | --program-transform-n=* | --program-transform-=* \
1254 | --program-transform=* | --program-transfor=* \
1255 | --program-transfo=* | --program-transf=* \
1256 | --program-trans=* | --program-tran=* \
1257 | --progr-tra=* | --program-tr=* | --program-t=*)
1258 program_transform_name=$ac_optarg ;;
1260 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263 pdfdir=$ac_optarg ;;
1265 -psdir | --psdir | --psdi | --psd | --ps)
1267 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1274 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278 sbindir=$ac_optarg ;;
1280 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282 | --sharedst | --shareds | --shared | --share | --shar \
1284 ac_prev=sharedstatedir ;;
1285 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289 sharedstatedir=$ac_optarg ;;
1291 -site | --site | --sit)
1293 -site=* | --site=* | --sit=*)
1296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299 srcdir=$ac_optarg ;;
1301 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302 | --syscon | --sysco | --sysc | --sys | --sy)
1303 ac_prev=sysconfdir ;;
1304 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306 sysconfdir=$ac_optarg ;;
1308 -target | --target | --targe | --targ | --tar | --ta | --t)
1309 ac_prev=target_alias ;;
1310 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311 target_alias=$ac_optarg ;;
1313 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1316 -version | --version | --versio | --versi | --vers | -V)
1317 ac_init_version=: ;;
1320 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1333 eval with_$ac_useropt=\$ac_optarg ;;
1335 -without-* | --without-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=no ;;
1352 # Obsolete; use --with-x.
1355 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356 | --x-incl | --x-inc | --x-in | --x-i)
1357 ac_prev=x_includes ;;
1358 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360 x_includes=$ac_optarg ;;
1362 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364 ac_prev=x_libraries ;;
1365 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367 x_libraries=$ac_optarg ;;
1369 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1370 Try \`$0 --help' for more information"
1374 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375 # Reject names that are not valid shell variable names.
1376 case $ac_envvar in #(
1377 '' | [0-9]* | *[!_$as_cr_alnum]* )
1378 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1380 eval $ac_envvar=\$ac_optarg
1381 export $ac_envvar ;;
1384 # FIXME: should be removed in autoconf 3.0.
1385 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 as_fn_error $? "missing argument to $ac_option"
1399 if test -n "$ac_unrecognized_opts"; then
1400 case $enable_option_checking in
1402 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1403 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407 # Check all directory arguments for consistency.
1408 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409 datadir sysconfdir sharedstatedir localstatedir includedir \
1410 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411 libdir localedir mandir
1413 eval ac_val=\$$ac_var
1414 # Remove trailing slashes.
1417 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418 eval $ac_var=\$ac_val;;
1420 # Be sure to have absolute directory names.
1422 [\\/$]* | ?:[\\/]* ) continue;;
1423 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1433 target=$target_alias
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 elif test "x$build_alias" != "x$host_alias"; then
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447 test "$silent" = yes && exec 6>/dev/null
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error $? "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error $? "pwd does not report name of working directory"
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1490 ac_srcdir_defaulted=no
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 for ac_var in $ac_precious_vars; do
1511 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_${ac_var}_value=\$${ac_var}
1513 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 # Report the --help message.
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1524 \`configure' configures gnupg 2.1.18 to adapt to many kinds of systems.
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1531 Defaults for the options are specified in brackets.
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print \`checking ...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for \`--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1555 For better control, use the options below.
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of gnupg 2.1.18:";;
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-silent-rules less verbose build output (undo: "make V=1")
1603 --disable-silent-rules verbose build output (undo: "make V=0")
1604 --enable-dependency-tracking
1605 do not reject slow dependency extractors
1606 --disable-dependency-tracking
1607 speeds up one-time build
1608 --disable-gpg do not build the gpg program
1609 --disable-gpgsm do not build the gpgsm program
1610 --disable-scdaemon do not build the scdaemon program
1611 --enable-g13 build the g13 program
1612 --disable-dirmngr do not build the dirmngr program
1613 --disable-tools do not build the tools program
1614 --disable-doc do not build the doc program
1615 --enable-symcryptrun build the symcryptrun program
1616 --disable-gpgtar do not build the gpgtar program
1617 --enable-wks-tools build the wks-tools program
1618 --enable-gpg2-is-gpg Set installed name of gpg2 to gpg
1619 --enable-selinux-support
1620 enable SELinux support
1621 --enable-large-secmem allocate extra secure memory
1622 --disable-trust-models disable all trust models except "always"
1623 --disable-tofu disable the TOFU trust model
1624 --disable-libdns do not build with libdns support
1625 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1626 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1627 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1628 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1629 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1630 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1631 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1632 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1633 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1634 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1635 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1636 --disable-gpg-camellia128
1637 disable the CAMELLIA128 cipher algorithm in gpg
1638 --disable-gpg-camellia192
1639 disable the CAMELLIA192 cipher algorithm in gpg
1640 --disable-gpg-camellia256
1641 disable the CAMELLIA256 cipher algorithm in gpg
1642 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1643 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1644 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1645 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1646 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1647 --disable-zip disable the ZIP and ZLIB compression algorithm
1648 --disable-bzip2 disable the BZIP2 compression algorithm
1649 --disable-exec disable all external program execution
1650 --disable-photo-viewers disable photo ID viewers
1651 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1652 --disable-card-support disable smartcard support
1653 --disable-ccid-driver disable the internal CCID driver
1654 --disable-dirmngr-auto-start
1655 disable auto starting of the dirmngr
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful (and
1658 sometimes confusing) to the casual installer
1659 --disable-largefile omit support for large files
1660 --disable-sqlite disable the use of SQLITE
1661 --disable-ntbtls disable the use of NTBTLS as TLS library
1662 --disable-gnutls disable GNUTLS as fallback TLS library
1663 --disable-ldap disable LDAP support
1664 --disable-rpath do not hardcode runtime library paths
1665 --disable-nls do not use Native Language Support
1666 --disable-endian-check disable the endian check and trust the OS provided
1668 --disable-regex do not handle regular expressions in trust
1670 --disable-optimization disable compiler optimization
1671 --enable-build-timestamp
1672 set an explicit build timestamp for reproducibility.
1673 (default is the current time in ISO-8601 format)
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-agent-pgm=PATH Use PATH as the default for the agent)
1679 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1680 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1681 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1682 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1683 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1684 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1685 --with-capabilities use linux capabilities default=no
1686 --with-tar=PATH look for a tar program in PATH
1687 --with-libgpg-error-prefix=PFX
1688 prefix where GPG Error is installed (optional)
1690 --with-libgcrypt-prefix=PFX
1691 prefix where LIBGCRYPT is installed (optional)
1692 --with-libassuan-prefix=PFX
1693 prefix where LIBASSUAN is installed (optional)
1694 --with-ksba-prefix=PFX prefix where KSBA is installed (optional)
1695 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1696 --with-ntbtls-prefix=PFX
1697 prefix where NTBTLS is installed (optional)
1698 --with-ldap=DIR look for the LDAP library in DIR
1699 --with-mailprog=NAME use "NAME -t" for mail transport
1700 --with-gnu-ld assume the C compiler uses GNU ld default=no
1701 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1702 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1703 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1704 --without-libintl-prefix don't search for libintl in includedir and libdir
1705 --with-regex=DIR look for regex in DIR
1706 --with-zlib=DIR use libz in DIR
1707 --with-bzip2=DIR look for bzip2 in DIR
1708 --with-readline=DIR look for the readline library in DIR
1710 Some influential environment variables:
1711 CC C compiler command
1712 CFLAGS C compiler flags
1713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1714 nonstandard directory <lib dir>
1715 LIBS libraries to pass to the linker, e.g. -l<library>
1716 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1717 you have headers in a nonstandard directory <include dir>
1719 SYSROOT locate config scripts also below that directory
1721 build system C compiler
1722 PKG_CONFIG path to pkg-config utility
1724 directories to add to pkg-config's search path
1726 path overriding pkg-config's built-in search path
1728 C compiler flags for SQLITE3, overriding pkg-config
1730 linker flags for SQLITE3, overriding pkg-config
1732 C compiler flags for LIBGNUTLS, overriding pkg-config
1734 linker flags for LIBGNUTLS, overriding pkg-config
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1739 Report bugs to <https://bugs.gnupg.org>.
1744 if test "$ac_init_help" = "recursive"; then
1745 # If there are subdirs, report their specific --help.
1746 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747 test -d "$ac_dir" ||
1748 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756 # A ".." for each directory in $ac_dir_suffix.
1757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758 case $ac_top_builddir_sub in
1759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1763 ac_abs_top_builddir=$ac_pwd
1764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir=$ac_top_build_prefix
1769 .) # We are building in place.
1771 ac_top_srcdir=$ac_top_builddir_sub
1772 ac_abs_top_srcdir=$ac_pwd ;;
1773 [\\/]* | ?:[\\/]* ) # Absolute name.
1774 ac_srcdir=$srcdir$ac_dir_suffix;
1775 ac_top_srcdir=$srcdir
1776 ac_abs_top_srcdir=$srcdir ;;
1778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779 ac_top_srcdir=$ac_top_build_prefix$srcdir
1780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1784 cd "$ac_dir" || { ac_status=$?; continue; }
1785 # Check for guested configure.
1786 if test -f "$ac_srcdir/configure.gnu"; then
1788 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789 elif test -f "$ac_srcdir/configure"; then
1791 $SHELL "$ac_srcdir/configure" --help=recursive
1793 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 cd "$ac_pwd" || { ac_status=$?; break; }
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1802 gnupg configure 2.1.18
1803 generated by GNU Autoconf 2.69
1805 Copyright (C) 2012 Free Software Foundation, Inc.
1806 This configure script is free software; the Free Software Foundation
1807 gives unlimited permission to copy, distribute and modify it.
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } > conftest.i && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1896 ac_fn_c_check_header_mongrel ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if eval \${$3+:} false; then :
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1909 # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 ac_header_compiler=yes
1920 ac_header_compiler=no
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 if ac_fn_c_try_cpp "$LINENO"; then :
1934 ac_header_preproc=yes
1936 ac_header_preproc=no
1938 rm -f conftest.err conftest.i conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1942 # So? What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ( $as_echo "## ------------------------------------- ##
1962 ## Report this to https://bugs.gnupg.org ##
1963 ## ------------------------------------- ##"
1964 ) | sed "s/^/$as_me: WARNING: /" >&2
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1972 eval "$3=\$ac_header_compiler"
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_link"
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status $ac_retval
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"; then :
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest$ac_exeext
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_c_try_link
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2116 #define $2 innocuous_$2
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $2 (); below.
2120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 <limits.h> exists even on freestanding compilers. */
2124 # include <limits.h>
2126 # include <assert.h>
2131 /* Override any GCC internal prototype to avoid an error.
2132 Use char because int might match the return type of a GCC
2133 builtin and then its argument prototype would still apply. */
2138 /* The GNU C library defines this for functions which it implements
2139 to always fail with ENOSYS. Some functions are actually named
2140 something starting with __ and the normal name is an alias. */
2141 #if defined __stub_$2 || defined __stub___$2
2153 if ac_fn_c_try_link "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext \
2159 conftest$ac_exeext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_func
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2206 if ac_fn_c_try_compile "$LINENO"; then :
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_type
2222 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2223 # ---------------------------------------------
2224 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2226 ac_fn_c_check_decl ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 as_decl_name=`echo $2|sed 's/ *(.*//'`
2230 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2232 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2233 if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2242 #ifndef $as_decl_name
2244 (void) $as_decl_use;
2246 (void) $as_decl_name;
2254 if ac_fn_c_try_compile "$LINENO"; then :
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266 } # ac_fn_c_check_decl
2268 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2269 # --------------------------------------------
2270 # Tries to find the compile-time value of EXPR in a program that includes
2271 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2273 ac_fn_c_compute_int ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 if test "$cross_compiling" = yes; then
2277 # Depending upon the size, compute the lo and hi bounds.
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) >= 0)];
2286 return test_array [0];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 ac_hi=$ac_mid; break
2312 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2313 if test $ac_lo -le $ac_mid; then
2317 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2328 static int test_array [1 - 2 * !(($2) < 0)];
2330 return test_array [0];
2336 if ac_fn_c_try_compile "$LINENO"; then :
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2345 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2347 return test_array [0];
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 ac_lo=$ac_mid; break
2356 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2357 if test $ac_mid -le $ac_hi; then
2361 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 # Binary search between lo and hi bounds.
2372 while test "x$ac_lo" != "x$ac_hi"; do
2373 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2382 return test_array [0];
2388 if ac_fn_c_try_compile "$LINENO"; then :
2391 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2403 static long int longval () { return $2; }
2404 static unsigned long int ulongval () { return $2; }
2411 FILE *f = fopen ("conftest.val", "w");
2416 long int i = longval ();
2419 fprintf (f, "%ld", i);
2423 unsigned long int i = ulongval ();
2426 fprintf (f, "%lu", i);
2428 /* Do not output a trailing newline, as this causes \r\n confusion
2429 on some platforms. */
2430 return ferror (f) || fclose (f) != 0;
2436 if ac_fn_c_try_run "$LINENO"; then :
2437 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2442 conftest.$ac_objext conftest.beam conftest.$ac_ext
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 as_fn_set_status $ac_retval
2449 } # ac_fn_c_compute_int
2450 cat >config.log <<_ACEOF
2451 This file contains any messages produced by compilers while
2452 running configure, to aid debugging if configure makes a mistake.
2454 It was created by gnupg $as_me 2.1.18, which was
2455 generated by GNU Autoconf 2.69. Invocation command line was
2467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 $as_echo "PATH: $as_dir"
2507 # Keep a trace of the command line.
2508 # Strip out --no-create and --no-recursion so they do not pile up.
2509 # Strip out --silent because we don't want to record it for future runs.
2510 # Also quote any args containing shell meta-characters.
2511 # Make two passes to allow for proper duplicate-argument suppression.
2515 ac_must_keep_next=false
2521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2523 | -silent | --silent | --silen | --sile | --sil)
2526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2529 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2531 as_fn_append ac_configure_args1 " '$ac_arg'"
2532 if test $ac_must_keep_next = true; then
2533 ac_must_keep_next=false # Got value, back to normal.
2536 *=* | --config-cache | -C | -disable-* | --disable-* \
2537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2539 | -with-* | --with-* | -without-* | --without-* | --x)
2540 case "$ac_configure_args0 " in
2541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2544 -* ) ac_must_keep_next=true ;;
2547 as_fn_append ac_configure_args " '$ac_arg'"
2552 { ac_configure_args0=; unset ac_configure_args0;}
2553 { ac_configure_args1=; unset ac_configure_args1;}
2555 # When interrupted or exit'd, cleanup temporary files, and complete
2556 # config.log. We remove comments because anyway the quotes in there
2557 # would cause problems or look ugly.
2558 # WARNING: Use '\'' to represent an apostrophe within the trap.
2559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2560 trap 'exit_status=$?
2561 # Save into config.log some information that might help in debugging.
2565 $as_echo "## ---------------- ##
2566 ## Cache variables. ##
2567 ## ---------------- ##"
2569 # The following way of writing the cache mishandles newlines in values,
2571 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2572 eval ac_val=\$$ac_var
2576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2580 _ | IFS | as_nl) ;; #(
2581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2582 *) { eval $ac_var=; unset $ac_var;} ;;
2587 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2588 *${as_nl}ac_space=\ *)
2590 "s/'\''/'\''\\\\'\'''\''/g;
2591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2601 $as_echo "## ----------------- ##
2602 ## Output variables. ##
2603 ## ----------------- ##"
2605 for ac_var in $ac_subst_vars
2607 eval ac_val=\$$ac_var
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611 $as_echo "$ac_var='\''$ac_val'\''"
2615 if test -n "$ac_subst_files"; then
2616 $as_echo "## ------------------- ##
2617 ## File substitutions. ##
2618 ## ------------------- ##"
2620 for ac_var in $ac_subst_files
2622 eval ac_val=\$$ac_var
2624 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626 $as_echo "$ac_var='\''$ac_val'\''"
2631 if test -s confdefs.h; then
2632 $as_echo "## ----------- ##
2639 test "$ac_signal" != 0 &&
2640 $as_echo "$as_me: caught signal $ac_signal"
2641 $as_echo "$as_me: exit $exit_status"
2643 rm -f core *.core core.conftest.* &&
2644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2647 for ac_signal in 1 2 13 15; do
2648 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2653 rm -f -r conftest* confdefs.h
2655 $as_echo "/* confdefs.h */" > confdefs.h
2657 # Predefined preprocessor variables.
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_NAME "$PACKAGE_NAME"
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_STRING "$PACKAGE_STRING"
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_URL "$PACKAGE_URL"
2684 # Let the site file select an alternate cache file if it wants to.
2685 # Prefer an explicitly selected file to automatically selected ones.
2688 if test -n "$CONFIG_SITE"; then
2689 # We do not want a PATH search for config.site.
2690 case $CONFIG_SITE in #((
2691 -*) ac_site_file1=./$CONFIG_SITE;;
2692 */*) ac_site_file1=$CONFIG_SITE;;
2693 *) ac_site_file1=./$CONFIG_SITE;;
2695 elif test "x$prefix" != xNONE; then
2696 ac_site_file1=$prefix/share/config.site
2697 ac_site_file2=$prefix/etc/config.site
2699 ac_site_file1=$ac_default_prefix/share/config.site
2700 ac_site_file2=$ac_default_prefix/etc/config.site
2702 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2704 test "x$ac_site_file" = xNONE && continue
2705 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2707 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2708 sed 's/^/| /' "$ac_site_file" >&5
2710 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 as_fn_error $? "failed to load site script $ac_site_file
2713 See \`config.log' for more details" "$LINENO" 5; }
2717 if test -r "$cache_file"; then
2718 # Some versions of bash will fail to source /dev/null (special files
2719 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2720 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2722 $as_echo "$as_me: loading cache $cache_file" >&6;}
2724 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2725 *) . "./$cache_file";;
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2730 $as_echo "$as_me: creating cache $cache_file" >&6;}
2734 gt_needs="$gt_needs need-ngettext"
2735 as_fn_append ac_header_list " sys/socket.h"
2736 # Check that the precious variables saved in the cache have kept the same
2738 ac_cache_corrupted=false
2739 for ac_var in $ac_precious_vars; do
2740 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2741 eval ac_new_set=\$ac_env_${ac_var}_set
2742 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2743 eval ac_new_val=\$ac_env_${ac_var}_value
2744 case $ac_old_set,$ac_new_set in
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2751 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2752 ac_cache_corrupted=: ;;
2755 if test "x$ac_old_val" != "x$ac_new_val"; then
2756 # differences in whitespace do not lead to failure.
2757 ac_old_val_w=`echo x $ac_old_val`
2758 ac_new_val_w=`echo x $ac_new_val`
2759 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2761 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2762 ac_cache_corrupted=:
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2765 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2766 eval $ac_var=\$ac_old_val
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2769 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2771 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2774 # Pass precious variables to config.status.
2775 if test "$ac_new_set" = set; then
2777 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 *) ac_arg=$ac_var=$ac_new_val ;;
2780 case " $ac_configure_args " in
2781 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2782 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786 if $ac_cache_corrupted; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2790 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2791 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2793 ## -------------------- ##
2794 ## Main body of script. ##
2795 ## -------------------- ##
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 NEED_GPG_ERROR_VERSION=1.24
2807 NEED_LIBGCRYPT_API=1
2808 NEED_LIBGCRYPT_VERSION=1.7.0
2810 NEED_LIBASSUAN_API=2
2811 NEED_LIBASSUAN_VERSION=2.4.3
2814 NEED_KSBA_VERSION=1.3.4
2817 NEED_NTBTLS_VERSION=0.1.0
2820 NEED_NPTH_VERSION=1.2
2823 NEED_GNUTLS_VERSION=3.0
2825 NEED_SQLITE_VERSION=3.7
2827 development_version=no
2828 PACKAGE=$PACKAGE_NAME
2829 PACKAGE_GT=${PACKAGE_NAME}2
2830 VERSION=$PACKAGE_VERSION
2833 for ac_dir in build-aux "$srcdir"/build-aux; do
2834 if test -f "$ac_dir/install-sh"; then
2836 ac_install_sh="$ac_aux_dir/install-sh -c"
2838 elif test -f "$ac_dir/install.sh"; then
2840 ac_install_sh="$ac_aux_dir/install.sh -c"
2842 elif test -f "$ac_dir/shtool"; then
2844 ac_install_sh="$ac_aux_dir/shtool install -c"
2848 if test -z "$ac_aux_dir"; then
2849 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2852 # These three variables are undocumented and unsupported,
2853 # and are intended to be withdrawn in a future Autoconf release.
2854 # They can cause serious problems if a builder's source tree is in a directory
2855 # whose full name contains unusual characters.
2856 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2857 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2858 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2862 ac_config_headers="$ac_config_headers config.h"
2864 am__api_version='1.14'
2866 # Find a good install program. We prefer a C program (faster),
2867 # so one script is as good as another. But avoid the broken or
2868 # incompatible versions:
2869 # SysV /etc/install, /usr/sbin/install
2870 # SunOS /usr/etc/install
2871 # IRIX /sbin/install
2873 # AmigaOS /C/install, which installs bootblocks on floppy discs
2874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2877 # OS/2's system install, which has a completely different semantic
2878 # ./install, which can be erroneously created by make from ./install.sh.
2879 # Reject install programs that cannot install multiple files.
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2881 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2882 if test -z "$INSTALL"; then
2883 if ${ac_cv_path_install+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 # Account for people who put trailing slashes in PATH elements.
2892 case $as_dir/ in #((
2893 ./ | .// | /[cC]/* | \
2894 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2895 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2898 # OSF1 and SCO ODT 3.0 have their own names for install.
2899 # Don't use installbsd from OSF since it installs stuff as root
2901 for ac_prog in ginstall scoinst install; do
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2904 if test $ac_prog = install &&
2905 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2906 # AIX install. It has an incompatible calling convention.
2908 elif test $ac_prog = install &&
2909 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2910 # program-specific install script used by HP pwplus--don't use.
2913 rm -rf conftest.one conftest.two conftest.dir
2914 echo one > conftest.one
2915 echo two > conftest.two
2917 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2918 test -s conftest.one && test -s conftest.two &&
2919 test -s conftest.dir/conftest.one &&
2920 test -s conftest.dir/conftest.two
2922 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2935 rm -rf conftest.one conftest.two conftest.dir
2938 if test "${ac_cv_path_install+set}" = set; then
2939 INSTALL=$ac_cv_path_install
2941 # As a last resort, use the slow shell script. Don't cache a
2942 # value for INSTALL within a source directory, because that will
2943 # break other packages using the cache if that directory is
2944 # removed, or if the value is a relative name.
2945 INSTALL=$ac_install_sh
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2949 $as_echo "$INSTALL" >&6; }
2951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2952 # It thinks the first close brace ends the variable substitution.
2953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2960 $as_echo_n "checking whether build environment is sane... " >&6; }
2961 # Reject unsafe characters in $srcdir or the absolute working directory
2962 # name. Accept space and tab only in the latter.
2966 *[\\\"\#\$\&\'\`$am_lf]*)
2967 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2970 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2971 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2974 # Do 'set' in a subshell so we don't clobber the current shell's
2975 # arguments. Must try -L first in case configure is actually a
2976 # symlink; some systems play weird games with the mod time of symlinks
2977 # (eg FreeBSD returns the mod time of the symlink's containing
2981 for am_try in 1 2; do
2982 echo "timestamp, slept: $am_has_slept" > conftest.file
2983 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2984 if test "$*" = "X"; then
2986 set X `ls -t "$srcdir/configure" conftest.file`
2988 if test "$*" != "X $srcdir/configure conftest.file" \
2989 && test "$*" != "X conftest.file $srcdir/configure"; then
2991 # If neither matched, then we have a broken ls. This can happen
2992 # if, for instance, CONFIG_SHELL is bash and it inherits a
2993 # broken ls alias from the environment. This has actually
2994 # happened. Such a system could not be considered "sane".
2995 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2996 alias in your environment" "$LINENO" 5
2998 if test "$2" = conftest.file || test $am_try -eq 2; then
3005 test "$2" = conftest.file
3011 as_fn_error $? "newly created file is older than distributed files!
3012 Check your system clock" "$LINENO" 5
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3016 # If we didn't sleep, we still need to ensure time stamps of config.status and
3017 # generated files are strictly newer.
3019 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3026 test "$program_prefix" != NONE &&
3027 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3028 # Use a double $ so make ignores it.
3029 test "$program_suffix" != NONE &&
3030 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3031 # Double any \ or $.
3032 # By default was `s,x,x', remove it if useless.
3033 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3034 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3036 # Expand $ac_aux_dir to an absolute path.
3037 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3039 if test x"${MISSING+set}" != xset; then
3042 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3044 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3047 # Use eval to expand $SHELL
3048 if eval "$MISSING --is-lightweight"; then
3049 am_missing_run="$MISSING "
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3053 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3056 if test x"${install_sh}" != xset; then
3059 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3061 install_sh="\${SHELL} $am_aux_dir/install-sh"
3065 # Installed binaries are usually stripped using 'strip' when the user
3066 # run "make install-strip". However 'strip' might not be the right
3067 # tool to use in cross-compilation environments, therefore Automake
3068 # will honor the 'STRIP' environment variable to overrule this program.
3069 if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}strip; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_STRIP+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3101 $as_echo "$STRIP" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_STRIP"; then
3111 # Extract the first word of "strip", so it can be a program name with args.
3112 set dummy strip; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_STRIP"; then
3119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_STRIP="strip"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3139 if test -n "$ac_ct_STRIP"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3141 $as_echo "$ac_ct_STRIP" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_STRIP" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3159 STRIP="$ac_cv_prog_STRIP"
3163 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3166 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3167 if test -z "$MKDIR_P"; then
3168 if ${ac_cv_path_mkdir+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3175 test -z "$as_dir" && as_dir=.
3176 for ac_prog in mkdir gmkdir; do
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3179 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3180 'mkdir (GNU coreutils) '* | \
3181 'mkdir (coreutils) '* | \
3182 'mkdir (fileutils) '4.1*)
3183 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3193 test -d ./--version && rmdir ./--version
3194 if test "${ac_cv_path_mkdir+set}" = set; then
3195 MKDIR_P="$ac_cv_path_mkdir -p"
3197 # As a last resort, use the slow shell script. Don't cache a
3198 # value for MKDIR_P within a source directory, because that will
3199 # break other packages using the cache if that directory is
3200 # removed, or if the value is a relative name.
3201 MKDIR_P="$ac_install_sh -d"
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3205 $as_echo "$MKDIR_P" >&6; }
3207 for ac_prog in gawk mawk nawk awk
3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_AWK+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 if test -n "$AWK"; then
3217 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_AWK="$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test -n "$AWK"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3239 $as_echo "$AWK" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3246 test -n "$AWK" && break
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3250 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3252 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3253 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 cat >conftest.make <<\_ACEOF
3259 @echo '@@@%%%=$(MAKE)=@@@%%%'
3261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3262 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3264 eval ac_cv_prog_make_${ac_make}_set=yes;;
3266 eval ac_cv_prog_make_${ac_make}_set=no;;
3270 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 SET_MAKE="MAKE=${MAKE-make}"
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3287 rmdir .tst 2>/dev/null
3289 # Check whether --enable-silent-rules was given.
3290 if test "${enable_silent_rules+set}" = set; then :
3291 enableval=$enable_silent_rules;
3294 case $enable_silent_rules in # (((
3295 yes) AM_DEFAULT_VERBOSITY=0;;
3296 no) AM_DEFAULT_VERBOSITY=1;;
3297 *) AM_DEFAULT_VERBOSITY=1;;
3299 am_make=${MAKE-make}
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3301 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3302 if ${am_cv_make_support_nested_variables+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if $as_echo 'TRUE=$(BAR$(V))
3311 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3312 am_cv_make_support_nested_variables=yes
3314 am_cv_make_support_nested_variables=no
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3318 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3319 if test $am_cv_make_support_nested_variables = yes; then
3321 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3323 AM_V=$AM_DEFAULT_VERBOSITY
3324 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3328 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3329 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3330 # is not polluted with repeated "-I."
3331 am__isrc=' -I$(srcdir)'
3332 # test to see if srcdir already configured
3333 if test -f $srcdir/config.status; then
3334 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3338 # test whether we have cygpath
3339 if test -z "$CYGPATH_W"; then
3340 if (cygpath --version) >/dev/null 2>/dev/null; then
3341 CYGPATH_W='cygpath -w'
3348 # Define the identity of the package.
3353 cat >>confdefs.h <<_ACEOF
3354 #define PACKAGE "$PACKAGE"
3358 cat >>confdefs.h <<_ACEOF
3359 #define VERSION "$VERSION"
3362 # Some tools Automake needs.
3364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3378 # For better backward compatibility. To be removed once Automake 1.9.x
3379 # dies out for good. For more background, see:
3380 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3381 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3382 mkdir_p='$(MKDIR_P)'
3384 # We need awk for the "check" target. The system "awk" is bad on
3386 # Always define AMTAR for backward compatibility. Yes, it's still used
3387 # in the wild :-( We should find a proper way to deprecate it ...
3391 # We'll loop over all known methods to create a tar archive until one works.
3392 _am_tools='gnutar pax cpio none'
3394 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3401 # POSIX will say in a future version that running "rm -f" with no argument
3402 # is OK; and we want to be able to make that assumption in our Makefile
3403 # recipes. So use an aggressive probe to check that the usage we want is
3404 # actually supported "in the wild" to an acceptable degree.
3405 # See automake bug#10828.
3406 # To make any issue more visible, cause the running configure to be aborted
3407 # by default if the 'rm' program in use doesn't match our expectations; the
3408 # user can still override this though.
3409 if rm -f && rm -fr && rm -rf; then : OK; else
3413 Your 'rm' program seems unable to run without file operands specified
3414 on the command line, even when the '-f' option is present. This is contrary
3415 to the behaviour of most rm programs out there, and not conforming with
3416 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3418 Please tell bug-automake@gnu.org about your system, including the value
3419 of your $PATH and any error possibly output before this message. This
3420 can help us improve future automake versions.
3423 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3424 echo 'Configuration will proceed anyway, since you have set the' >&2
3425 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3429 Aborting the configuration process, to ensure you take notice of the issue.
3431 You can download and install GNU coreutils to get an 'rm' implementation
3432 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3434 If you want to complete the configuration process using your problematic
3435 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3436 to "yes", and re-run configure.
3439 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3443 # Make sure we can run config.sub.
3444 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3445 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3448 $as_echo_n "checking build system type... " >&6; }
3449 if ${ac_cv_build+:} false; then :
3450 $as_echo_n "(cached) " >&6
3452 ac_build_alias=$build_alias
3453 test "x$ac_build_alias" = x &&
3454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3455 test "x$ac_build_alias" = x &&
3456 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3457 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3462 $as_echo "$ac_cv_build" >&6; }
3463 case $ac_cv_build in
3465 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3468 ac_save_IFS=$IFS; IFS='-'
3474 # Remember, the first character of IFS is used to create $*,
3475 # except with old shells:
3478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3482 $as_echo_n "checking host system type... " >&6; }
3483 if ${ac_cv_host+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test "x$host_alias" = x; then
3487 ac_cv_host=$ac_cv_build
3489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3495 $as_echo "$ac_cv_host" >&6; }
3498 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3501 ac_save_IFS=$IFS; IFS='-'
3507 # Remember, the first character of IFS is used to create $*,
3508 # except with old shells:
3511 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3519 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3521 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3523 if test "$hostname"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3525 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3528 date=`date +%Y%m%d-%H%M%S`
3529 if test "$?" != 0; then
3532 if test "$date"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3534 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3538 DEPDIR="${am__leading_dot}deps"
3540 ac_config_commands="$ac_config_commands depfiles"
3543 am_make=${MAKE-make}
3544 cat > confinc << 'END'
3546 @echo this is the am__doit target
3549 # If we don't find an include directive, just comment out the code.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3551 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3555 # First try GNU make style include.
3556 echo "include confinc" > confmf
3557 # Ignore all kinds of additional output from 'make'.
3558 case `$am_make -s -f confmf 2> /dev/null` in #(
3559 *the\ am__doit\ target*)
3565 # Now try BSD make style include.
3566 if test "$am__include" = "#"; then
3567 echo '.include "confinc"' > confmf
3568 case `$am_make -s -f confmf 2> /dev/null` in #(
3569 *the\ am__doit\ target*)
3570 am__include=.include
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3579 $as_echo "$_am_result" >&6; }
3580 rm -f confinc confmf
3582 # Check whether --enable-dependency-tracking was given.
3583 if test "${enable_dependency_tracking+set}" = set; then :
3584 enableval=$enable_dependency_tracking;
3587 if test "x$enable_dependency_tracking" != xno; then
3588 am_depcomp="$ac_aux_dir/depcomp"
3592 if test "x$enable_dependency_tracking" != xno; then
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_CC+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3645 if test -z "$ac_cv_prog_CC"; then
3647 # Extract the first word of "gcc", so it can be a program name with args.
3648 set dummy gcc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$ac_ct_CC"; then
3655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_CC="gcc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3675 if test -n "$ac_ct_CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3677 $as_echo "$ac_ct_CC" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3683 if test "x$ac_ct_CC" = x; then
3686 case $cross_compiling:$ac_tool_warned in
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3690 ac_tool_warned=yes ;;
3698 if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}cc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if ${ac_cv_prog_CC+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_CC="${ac_tool_prefix}cc"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 # Extract the first word of "cc", so it can be a program name with args.
3741 set dummy cc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3759 ac_prog_rejected=yes
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 if test $ac_prog_rejected = yes; then
3771 # We found a bogon in the path, so make sure we never use it.
3772 set dummy $ac_cv_prog_CC
3774 if test $# != 0; then
3775 # We chose a different compiler from the bogus one.
3776 # However, it has the same basename, so the bogon will be chosen
3777 # first if we set CC to just the basename; use the full file name.
3779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3785 if test -n "$CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 $as_echo "$CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3795 if test -z "$CC"; then
3796 if test -n "$ac_tool_prefix"; then
3797 for ac_prog in cl.exe
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_CC+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 if test -n "$CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829 $as_echo "$CC" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3836 test -n "$CC" && break
3839 if test -z "$CC"; then
3841 for ac_prog in cl.exe
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$ac_ct_CC"; then
3851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_ac_ct_CC="$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3871 if test -n "$ac_ct_CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3873 $as_echo "$ac_ct_CC" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$ac_ct_CC" && break
3883 if test "x$ac_ct_CC" = x; then
3886 case $cross_compiling:$ac_tool_warned in
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "no acceptable C compiler found in \$PATH
3902 See \`config.log' for more details" "$LINENO" 5; }
3904 # Provide some information about the compiler.
3905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3908 for ac_option in --version -v -V -qversion; do
3909 { { ac_try="$ac_compiler $ac_option >&5"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918 if test -s conftest.err; then
3920 ... rest of stderr output deleted ...
3921 10q' conftest.err >conftest.er1
3922 cat conftest.er1 >&5
3924 rm -f conftest.er1 conftest.err
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 ac_clean_files_save=$ac_clean_files
3941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3942 # Try to create an executable without -o first, disregard a.out.
3943 # It will help us diagnose broken compilers, and finding out an intuition
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3946 $as_echo_n "checking whether the C compiler works... " >&6; }
3947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3949 # The possible output files:
3950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3953 for ac_file in $ac_files
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3962 if { { ac_try="$ac_link_default"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link_default") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3976 # so that the user can short-circuit this test for compilers unknown to
3978 for ac_file in $ac_files ''
3980 test -f "$ac_file" || continue
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3985 # We found the default executable, but exeext='' is most
3989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 # We set ac_cv_exeext here because the later test for it is not
3994 # safe: cross compilers may not add the suffix if given an `-o'
3995 # argument, so we may need to know it at that point already.
3996 # Even if this section looks crufty: it has the advantage of
4003 test "$ac_cv_exeext" = no && ac_cv_exeext=
4008 if test -z "$ac_file"; then :
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error 77 "C compiler cannot create executables
4017 See \`config.log' for more details" "$LINENO" 5; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020 $as_echo "yes" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4023 $as_echo_n "checking for C compiler default output file name... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4025 $as_echo "$ac_file" >&6; }
4026 ac_exeext=$ac_cv_exeext
4028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4029 ac_clean_files=$ac_clean_files_save
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4031 $as_echo_n "checking for suffix of executables... " >&6; }
4032 if { { ac_try="$ac_link"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; then :
4043 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4044 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4045 # work properly (i.e., refer to `conftest.exe'), while it won't with
4047 for ac_file in conftest.exe conftest conftest.*; do
4048 test -f "$ac_file" || continue
4050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4060 See \`config.log' for more details" "$LINENO" 5; }
4062 rm -f conftest conftest$ac_cv_exeext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4064 $as_echo "$ac_cv_exeext" >&6; }
4066 rm -f conftest.$ac_ext
4067 EXEEXT=$ac_cv_exeext
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4075 FILE *f = fopen ("conftest.out", "w");
4076 return ferror (f) || fclose (f) != 0;
4082 ac_clean_files="$ac_clean_files conftest.out"
4083 # Check that the compiler produces executables we can run. If not, either
4084 # the compiler is broken, or we cross compile.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4086 $as_echo_n "checking whether we are cross compiling... " >&6; }
4087 if test "$cross_compiling" != yes; then
4088 { { ac_try="$ac_link"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_link") 2>&5
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }
4099 if { ac_try='./conftest$ac_cv_exeext'
4100 { { case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_try") 2>&5
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; }; then
4112 if test "$cross_compiling" = maybe; then
4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "cannot run C compiled programs.
4118 If you meant to cross compile, use \`--host'.
4119 See \`config.log' for more details" "$LINENO" 5; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4124 $as_echo "$cross_compiling" >&6; }
4126 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4127 ac_clean_files=$ac_clean_files_save
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4129 $as_echo_n "checking for suffix of object files... " >&6; }
4130 if ${ac_cv_objext+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4144 rm -f conftest.o conftest.obj
4145 if { { ac_try="$ac_compile"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 $as_echo "$ac_try_echo"; } >&5
4152 (eval "$ac_compile") 2>&5
4154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 test $ac_status = 0; }; then :
4156 for ac_file in conftest.o conftest.obj conftest.*; do
4157 test -f "$ac_file" || continue;
4159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4160 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4165 $as_echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170 as_fn_error $? "cannot compute suffix of object files: cannot compile
4171 See \`config.log' for more details" "$LINENO" 5; }
4173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4176 $as_echo "$ac_cv_objext" >&6; }
4177 OBJEXT=$ac_cv_objext
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4180 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4181 if ${ac_cv_c_compiler_gnu+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4198 if ac_fn_c_try_compile "$LINENO"; then :
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4208 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4209 if test $ac_compiler_gnu = yes; then
4214 ac_test_CFLAGS=${CFLAGS+set}
4215 ac_save_CFLAGS=$CFLAGS
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4217 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4218 if ${ac_cv_prog_cc_g+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 ac_save_c_werror_flag=$ac_c_werror_flag
4222 ac_c_werror_flag=yes
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4236 if ac_fn_c_try_compile "$LINENO"; then :
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4251 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_c_werror_flag=$ac_save_c_werror_flag
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 if ac_fn_c_try_compile "$LINENO"; then :
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4278 $as_echo "$ac_cv_prog_cc_g" >&6; }
4279 if test "$ac_test_CFLAGS" = set; then
4280 CFLAGS=$ac_save_CFLAGS
4281 elif test $ac_cv_prog_cc_g = yes; then
4282 if test "$GCC" = yes; then
4288 if test "$GCC" = yes; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4295 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4296 if ${ac_cv_prog_cc_c89+:} false; then :
4297 $as_echo_n "(cached) " >&6
4299 ac_cv_prog_cc_c89=no
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4307 struct buf { int x; };
4308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4309 static char *e (p, i)
4315 static char *f (char * (*g) (char **, int), char **p, ...)
4320 s = g (p, va_arg (v,int));
4325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4326 function prototypes and stuff, but not '\xHH' hex character constants.
4327 These don't provoke an error unfortunately, instead are silently treated
4328 as 'x'. The following induces an error, until -std is added to get
4329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4330 array size at least. It's necessary to write '\x00'==0 to get something
4331 that's true only with -std. */
4332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4335 inside strings and character constants. */
4337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4339 int test (int i, double x);
4340 struct s1 {int (*f) (int a);};
4341 struct s2 {int (*f) (double a);};
4342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4356 CC="$ac_save_CC $ac_arg"
4357 if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_prog_cc_c89=$ac_arg
4360 rm -f core conftest.err conftest.$ac_objext
4361 test "x$ac_cv_prog_cc_c89" != "xno" && break
4363 rm -f conftest.$ac_ext
4368 case "x$ac_cv_prog_cc_c89" in
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4371 $as_echo "none needed" >&6; } ;;
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374 $as_echo "unsupported" >&6; } ;;
4376 CC="$CC $ac_cv_prog_cc_c89"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4380 if test "x$ac_cv_prog_cc_c89" != xno; then :
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4396 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4397 if ${am_cv_prog_cc_c_o+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 # Make sure it works both with $CC and with simple cc.
4412 # Following AC_PROG_CC_C_O, we do the test twice because some
4413 # compilers refuse to overwrite an existing .o file with -o,
4414 # though they will create one.
4415 am_cv_prog_cc_c_o=yes
4417 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4418 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } \
4422 && test -f conftest2.$ac_objext; then
4425 am_cv_prog_cc_c_o=no
4429 rm -f core conftest*
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4433 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4434 if test "$am_cv_prog_cc_c_o" != yes; then
4435 # Losing compiler, so override with the script.
4436 # FIXME: It is wrong to rewrite CC.
4437 # But if we don't then we get into trouble of one sort or another.
4438 # A longer-term fix would be to have automake use am__CC in this case,
4439 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4440 CC="$am_aux_dir/compile $CC"
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 depcc="$CC" am_compiler_list=
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4452 $as_echo_n "checking dependency style of $depcc... " >&6; }
4453 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4457 # We make a subdir and do the tests there. Otherwise we can end up
4458 # making bogus files that we don't know about and never remove. For
4459 # instance it was reported that on HP-UX the gcc test will end up
4460 # making a dummy file named 'D' -- because '-MD' means "put the output
4464 # Copy depcomp to subdir because otherwise we won't find it if we're
4465 # using a relative directory.
4466 cp "$am_depcomp" conftest.dir
4468 # We will build objects and dependencies in a subdirectory because
4469 # it helps to detect inapplicable dependency modes. For instance
4470 # both Tru64's cc and ICC support -MD to output dependencies as a
4471 # side effect of compilation, but ICC will put the dependencies in
4472 # the current directory while Tru64 will put them in the object
4476 am_cv_CC_dependencies_compiler_type=none
4477 if test "$am_compiler_list" = ""; then
4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4481 case " $depcc " in #(
4482 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4485 for depmode in $am_compiler_list; do
4486 # Setup a source with many dependencies, because some compilers
4487 # like to wrap large dependency lists on column 80 (with \), and
4488 # we should not choose a depcomp mode which is confused by this.
4490 # We need to recreate these files for each test, as the compiler may
4491 # overwrite some of them when testing with obscure command lines.
4492 # This happens at least with the AIX C compiler.
4494 for i in 1 2 3 4 5 6; do
4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4497 # Solaris 10 /bin/sh.
4498 echo '/* dummy */' > sub/conftst$i.h
4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4502 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4503 # mode. It turns out that the SunPro C++ compiler does not properly
4504 # handle '-M -o', and we need to detect this. Also, some Intel
4505 # versions had trouble with output in subdirs.
4506 am__obj=sub/conftest.${OBJEXT-o}
4507 am__minus_obj="-o $am__obj"
4510 # This depmode causes a compiler race in universal mode.
4511 test "$am__universal" = false || continue
4514 # After this tag, mechanisms are not by side-effect, so they'll
4515 # only be used when explicitly requested.
4516 if test "x$enable_dependency_tracking" = xyes; then
4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4523 # This compiler won't grok '-c -o', but also, the minuso test has
4524 # not run yet. These depmodes are late enough in the game, and
4525 # so weak that their functioning should not be impacted.
4526 am__obj=conftest.${OBJEXT-o}
4531 if depmode=$depmode \
4532 source=sub/conftest.c object=$am__obj \
4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4535 >/dev/null 2>conftest.err &&
4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4540 # icc doesn't choke on unknown options, it will just issue warnings
4541 # or remarks (even with -Werror). So we grep stderr for any message
4542 # that says an option was ignored or not supported.
4543 # When given -MP, icc 7.0 and 7.1 complain thusly:
4544 # icc: Command line warning: ignoring option '-M'; no argument required
4545 # The diagnosis changed in icc 8.0:
4546 # icc: Command line remark: option '-MP' not supported
4547 if (grep 'ignoring option' conftest.err ||
4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4549 am_cv_CC_dependencies_compiler_type=$depmode
4558 am_cv_CC_dependencies_compiler_type=none
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4567 test "x$enable_dependency_tracking" != xno \
4568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4570 am__fastdepCC_FALSE='#'
4572 am__fastdepCC_TRUE='#'
4573 am__fastdepCC_FALSE=
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4589 if test -z "$CPP"; then
4590 if ${ac_cv_prog_CPP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 # Double quotes because CPP needs to be expanded
4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4597 for ac_c_preproc_warn_flag in '' yes
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # include <limits.h>
4610 # include <assert.h>
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4617 # Broken: fails on valid input.
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629 # Broken: success on invalid input.
4632 # Passes both tests.
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4656 for ac_c_preproc_warn_flag in '' yes
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4667 # include <limits.h>
4669 # include <assert.h>
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4676 # Broken: fails on valid input.
4679 rm -f conftest.err conftest.i conftest.$ac_ext
4681 # OK, works on sane cases. Now check whether nonexistent headers
4682 # can be detected and how.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688 # Broken: success on invalid input.
4691 # Passes both tests.
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.i conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details" "$LINENO" 5; }
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718 if ${ac_cv_path_GREP+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 if test -z "$GREP"; then
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in grep ggrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p "$ac_path_GREP" || continue
4733 # Check for GNU ac_path_GREP and select it if it is found.
4734 # Check for GNU $ac_path_GREP
4735 case `"$ac_path_GREP" --version 2>&1` in
4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4740 $as_echo_n 0123456789 >"conftest.in"
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'GREP' >> "conftest.nl"
4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_GREP="$ac_path_GREP"
4753 ac_path_GREP_max=$ac_count
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 $ac_path_GREP_found && break 3
4766 if test -z "$ac_cv_path_GREP"; then
4767 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4770 ac_cv_path_GREP=$GREP
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775 $as_echo "$ac_cv_path_GREP" >&6; }
4776 GREP="$ac_cv_path_GREP"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780 $as_echo_n "checking for egrep... " >&6; }
4781 if ${ac_cv_path_EGREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785 then ac_cv_path_EGREP="$GREP -E"
4787 if test -z "$EGREP"; then
4788 ac_path_EGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in egrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 as_fn_executable_p "$ac_path_EGREP" || continue
4799 # Check for GNU ac_path_EGREP and select it if it is found.
4800 # Check for GNU $ac_path_EGREP
4801 case `"$ac_path_EGREP" --version 2>&1` in
4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4806 $as_echo_n 0123456789 >"conftest.in"
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'EGREP' >> "conftest.nl"
4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_EGREP="$ac_path_EGREP"
4819 ac_path_EGREP_max=$ac_count
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827 $ac_path_EGREP_found && break 3
4832 if test -z "$ac_cv_path_EGREP"; then
4833 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4836 ac_cv_path_EGREP=$EGREP
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842 $as_echo "$ac_cv_path_EGREP" >&6; }
4843 EGREP="$ac_cv_path_EGREP"
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4847 $as_echo_n "checking for ANSI C header files... " >&6; }
4848 if ${ac_cv_header_stdc+:} false; then :
4849 $as_echo_n "(cached) " >&6
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867 ac_cv_header_stdc=yes
4869 ac_cv_header_stdc=no
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 $EGREP "memchr" >/dev/null 2>&1; then :
4884 ac_cv_header_stdc=no
4890 if test $ac_cv_header_stdc = yes; then
4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "free" >/dev/null 2>&1; then :
4901 ac_cv_header_stdc=no
4907 if test $ac_cv_header_stdc = yes; then
4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4909 if test "$cross_compiling" = yes; then :
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4939 if ac_fn_c_try_run "$LINENO"; then :
4942 ac_cv_header_stdc=no
4944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945 conftest.$ac_objext conftest.beam conftest.$ac_ext
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4951 $as_echo "$ac_cv_header_stdc" >&6; }
4952 if test $ac_cv_header_stdc = yes; then
4954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960 inttypes.h stdint.h unistd.h
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4966 cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4977 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4984 if test "$MINIX" = yes; then
4986 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4989 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4992 $as_echo "#define _MINIX 1" >>confdefs.h
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4998 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4999 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5005 # define __EXTENSIONS__ 1
5006 $ac_includes_default
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_cv_safe_to_define___extensions__=yes
5018 ac_cv_safe_to_define___extensions__=no
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5023 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5024 test $ac_cv_safe_to_define___extensions__ = yes &&
5025 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5027 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5029 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5031 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5033 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5038 # Before we do anything with the C compiler, we first save the user's
5039 # CFLAGS (they are restored at the end of the configure script). This
5040 # is because some configure checks don't work with -Werror, but we'd
5041 # like to use -Werror with our build.
5045 # Some status variables.
5055 have_system_resolver=no
5056 gnupg_have_ldap="n/a"
5061 use_trust_models=yes
5065 use_ccid_driver=auto
5066 dirmngr_auto_start=yes
5075 # Check whether --enable-gpg was given.
5076 if test "${enable_gpg+set}" = set; then :
5077 enableval=$enable_gpg; build_gpg=$enableval
5083 case "$build_gpg" in
5087 as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5095 # Check whether --enable-gpgsm was given.
5096 if test "${enable_gpgsm+set}" = set; then :
5097 enableval=$enable_gpgsm; build_gpgsm=$enableval
5103 case "$build_gpgsm" in
5107 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5112 # The agent is a required part and can't be disabled anymore.
5117 # Check whether --enable-scdaemon was given.
5118 if test "${enable_scdaemon+set}" = set; then :
5119 enableval=$enable_scdaemon; build_scdaemon=$enableval
5125 case "$build_scdaemon" in
5129 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5137 # Check whether --enable-g13 was given.
5138 if test "${enable_g13+set}" = set; then :
5139 enableval=$enable_g13; build_g13=$enableval
5145 case "$build_g13" in
5149 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5157 # Check whether --enable-dirmngr was given.
5158 if test "${enable_dirmngr+set}" = set; then :
5159 enableval=$enable_dirmngr; build_dirmngr=$enableval
5165 case "$build_dirmngr" in
5169 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5177 # Check whether --enable-tools was given.
5178 if test "${enable_tools+set}" = set; then :
5179 enableval=$enable_tools; build_tools=$enableval
5185 case "$build_tools" in
5189 as_fn_error $? "only yes or no allowed for feature --enable-tools" "$LINENO" 5
5197 # Check whether --enable-doc was given.
5198 if test "${enable_doc+set}" = set; then :
5199 enableval=$enable_doc; build_doc=$enableval
5205 case "$build_doc" in
5209 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5215 build_symcryptrun=no
5217 # Check whether --enable-symcryptrun was given.
5218 if test "${enable_symcryptrun+set}" = set; then :
5219 enableval=$enable_symcryptrun; build_symcryptrun=$enableval
5221 build_symcryptrun=no
5225 case "$build_symcryptrun" in
5229 as_fn_error $? "only yes or no allowed for feature --enable-symcryptrun" "$LINENO" 5
5234 # We use gpgtar to unpack test data, hence we always build it. If the
5235 # user opts out, we simply don't install it.
5239 # Check whether --enable-gpgtar was given.
5240 if test "${enable_gpgtar+set}" = set; then :
5241 enableval=$enable_gpgtar; build_gpgtar=$enableval
5247 case "$build_gpgtar" in
5251 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5259 # Check whether --enable-wks-tools was given.
5260 if test "${enable_wks_tools+set}" = set; then :
5261 enableval=$enable_wks_tools; build_wks_tools=$enableval
5267 case "$build_wks_tools" in
5271 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5281 cat >>confdefs.h <<_ACEOF
5282 #define PACKAGE "$PACKAGE"
5286 cat >>confdefs.h <<_ACEOF
5287 #define PACKAGE_GT "$PACKAGE_GT"
5291 cat >>confdefs.h <<_ACEOF
5292 #define VERSION "$VERSION"
5296 cat >>confdefs.h <<_ACEOF
5297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5301 cat >>confdefs.h <<_ACEOF
5302 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5306 cat >>confdefs.h <<_ACEOF
5307 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5311 cat >>confdefs.h <<_ACEOF
5312 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5318 # The default is to use the modules from this package and the few
5319 # other packages in a standard place; i.e where this package gets
5320 # installed. With these options it is possible to override these
5321 # ${prefix} depended values with fixed paths, which can't be replaced
5322 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5324 # Check whether --with-agent-pgm was given.
5325 if test "${with_agent_pgm+set}" = set; then :
5326 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5332 if test -n "$GNUPG_AGENT_PGM"; then
5333 GNUPG_AGENT_PGM_TRUE=
5334 GNUPG_AGENT_PGM_FALSE='#'
5336 GNUPG_AGENT_PGM_TRUE='#'
5337 GNUPG_AGENT_PGM_FALSE=
5340 show_gnupg_agent_pgm="(default)"
5341 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5344 # Check whether --with-pinentry-pgm was given.
5345 if test "${with_pinentry_pgm+set}" = set; then :
5346 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5348 GNUPG_PINENTRY_PGM=""
5352 if test -n "$GNUPG_PINENTRY_PGM"; then
5353 GNUPG_PINENTRY_PGM_TRUE=
5354 GNUPG_PINENTRY_PGM_FALSE='#'
5356 GNUPG_PINENTRY_PGM_TRUE='#'
5357 GNUPG_PINENTRY_PGM_FALSE=
5360 show_gnupg_pinentry_pgm="(default)"
5361 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5365 # Check whether --with-scdaemon-pgm was given.
5366 if test "${with_scdaemon_pgm+set}" = set; then :
5367 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5369 GNUPG_SCDAEMON_PGM=""
5373 if test -n "$GNUPG_SCDAEMON_PGM"; then
5374 GNUPG_SCDAEMON_PGM_TRUE=
5375 GNUPG_SCDAEMON_PGM_FALSE='#'
5377 GNUPG_SCDAEMON_PGM_TRUE='#'
5378 GNUPG_SCDAEMON_PGM_FALSE=
5381 show_gnupg_scdaemon_pgm="(default)"
5382 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5386 # Check whether --with-dirmngr-pgm was given.
5387 if test "${with_dirmngr_pgm+set}" = set; then :
5388 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5390 GNUPG_DIRMNGR_PGM=""
5394 if test -n "$GNUPG_DIRMNGR_PGM"; then
5395 GNUPG_DIRMNGR_PGM_TRUE=
5396 GNUPG_DIRMNGR_PGM_FALSE='#'
5398 GNUPG_DIRMNGR_PGM_TRUE='#'
5399 GNUPG_DIRMNGR_PGM_FALSE=
5402 show_gnupg_dirmngr_pgm="(default)"
5403 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5406 # Check whether --with-protect-tool-pgm was given.
5407 if test "${with_protect_tool_pgm+set}" = set; then :
5408 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5410 GNUPG_PROTECT_TOOL_PGM=""
5414 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5415 GNUPG_PROTECT_TOOL_PGM_TRUE=
5416 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5418 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5419 GNUPG_PROTECT_TOOL_PGM_FALSE=
5422 show_gnupg_protect_tool_pgm="(default)"
5423 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5424 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5427 # Check whether --with-dirmngr-ldap-pgm was given.
5428 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5429 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5431 GNUPG_DIRMNGR_LDAP_PGM=""
5435 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5436 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5437 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5439 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5440 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5443 show_gnupg_dirmngr_ldap_pgm="(default)"
5444 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5445 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5448 # On some platforms gpg2 is usually installed as gpg without using a
5449 # symlink. For correct operation of gpgconf it needs to know the
5450 # installed name of gpg. This option sets "gpg2"'s installed name to
5451 # just "gpg". Note that it might be required to rename gpg2 to gpg
5452 # manually after the build process.
5454 # Check whether --enable-gpg2-is-gpg was given.
5455 if test "${enable_gpg2_is_gpg+set}" = set; then :
5456 enableval=$enable_gpg2_is_gpg; gpg2_is_gpg=$enableval
5459 if test "$gpg2_is_gpg" != "yes"; then
5461 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5464 if test "$gpg2_is_gpg" != "yes"; then
5466 USE_GPG2_HACK_FALSE='#'
5468 USE_GPG2_HACK_TRUE='#'
5469 USE_GPG2_HACK_FALSE=
5474 # SELinux support includes tracking of sensitive files to avoid
5475 # leaking their contents through processing these files by gpg itself
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5477 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5478 # Check whether --enable-selinux-support was given.
5479 if test "${enable_selinux_support+set}" = set; then :
5480 enableval=$enable_selinux_support; selinux_support=$enableval
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5486 $as_echo "$selinux_support" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5490 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5491 # Check whether --enable-large-secmem was given.
5492 if test "${enable_large_secmem+set}" = set; then :
5493 enableval=$enable_large_secmem; large_secmem=$enableval
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5499 $as_echo "$large_secmem" >&6; }
5500 if test "$large_secmem" = yes ; then
5501 SECMEM_BUFFER_SIZE=65536
5503 SECMEM_BUFFER_SIZE=32768
5506 cat >>confdefs.h <<_ACEOF
5507 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5512 $as_echo_n "checking whether to enable trust models... " >&6; }
5513 # Check whether --enable-trust-models was given.
5514 if test "${enable_trust_models+set}" = set; then :
5515 enableval=$enable_trust_models; use_trust_models=$enableval
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5519 $as_echo "$use_trust_models" >&6; }
5520 if test "$use_trust_models" = no ; then
5522 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5527 $as_echo_n "checking whether to enable TOFU... " >&6; }
5528 # Check whether --enable-tofu was given.
5529 if test "${enable_tofu+set}" = set; then :
5530 enableval=$enable_tofu; use_tofu=$enableval
5532 use_tofu=$use_trust_models
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5536 $as_echo "$use_tofu" >&6; }
5537 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5538 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5542 $as_echo_n "checking whether to enable libdns... " >&6; }
5543 # Check whether --enable-libdns was given.
5544 if test "${enable_libdns+set}" = set; then :
5545 enableval=$enable_libdns; use_libdns=$enableval
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5551 $as_echo "$use_libdns" >&6; }
5552 if test x"$use_libdns" = xyes ; then
5554 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5557 if test "$use_libdns" = yes; then
5559 USE_LIBDNS_FALSE='#'
5568 # Options to disable algorithm
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5572 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5573 # Check whether --enable-gpg-rsa was given.
5574 if test "${enable_gpg_rsa+set}" = set; then :
5575 enableval=$enable_gpg_rsa;
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5581 $as_echo "$enableval" >&6; }
5582 if test x"$enableval" = xyes ; then
5584 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5588 # Elgamal is a MUST algorithm
5589 # DSA is a MUST algorithm
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5591 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5592 # Check whether --enable-gpg-ecdh was given.
5593 if test "${enable_gpg_ecdh+set}" = set; then :
5594 enableval=$enable_gpg_ecdh;
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5600 $as_echo "$enableval" >&6; }
5601 if test x"$enableval" = xyes ; then
5603 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5608 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5609 # Check whether --enable-gpg-ecdsa was given.
5610 if test "${enable_gpg_ecdsa+set}" = set; then :
5611 enableval=$enable_gpg_ecdsa;
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5617 $as_echo "$enableval" >&6; }
5618 if test x"$enableval" = xyes ; then
5620 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5625 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5626 # Check whether --enable-gpg-eddsa was given.
5627 if test "${enable_gpg_eddsa+set}" = set; then :
5628 enableval=$enable_gpg_eddsa;
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5634 $as_echo "$enableval" >&6; }
5635 if test x"$enableval" = xyes ; then
5637 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5643 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5644 # Check whether --enable-gpg-idea was given.
5645 if test "${enable_gpg_idea+set}" = set; then :
5646 enableval=$enable_gpg_idea;
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5652 $as_echo "$enableval" >&6; }
5653 if test x"$enableval" = xyes ; then
5655 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5659 # 3DES is a MUST algorithm
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5661 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5662 # Check whether --enable-gpg-cast5 was given.
5663 if test "${enable_gpg_cast5+set}" = set; then :
5664 enableval=$enable_gpg_cast5;
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5670 $as_echo "$enableval" >&6; }
5671 if test x"$enableval" = xyes ; then
5673 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5678 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5679 # Check whether --enable-gpg-blowfish was given.
5680 if test "${enable_gpg_blowfish+set}" = set; then :
5681 enableval=$enable_gpg_blowfish;
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5687 $as_echo "$enableval" >&6; }
5688 if test x"$enableval" = xyes ; then
5690 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5695 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5696 # Check whether --enable-gpg-aes128 was given.
5697 if test "${enable_gpg_aes128+set}" = set; then :
5698 enableval=$enable_gpg_aes128;
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5704 $as_echo "$enableval" >&6; }
5705 if test x"$enableval" = xyes ; then
5707 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5712 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5713 # Check whether --enable-gpg-aes192 was given.
5714 if test "${enable_gpg_aes192+set}" = set; then :
5715 enableval=$enable_gpg_aes192;
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5721 $as_echo "$enableval" >&6; }
5722 if test x"$enableval" = xyes ; then
5724 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5729 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5730 # Check whether --enable-gpg-aes256 was given.
5731 if test "${enable_gpg_aes256+set}" = set; then :
5732 enableval=$enable_gpg_aes256;
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5738 $as_echo "$enableval" >&6; }
5739 if test x"$enableval" = xyes ; then
5741 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5746 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5747 # Check whether --enable-gpg-twofish was given.
5748 if test "${enable_gpg_twofish+set}" = set; then :
5749 enableval=$enable_gpg_twofish;
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5755 $as_echo "$enableval" >&6; }
5756 if test x"$enableval" = xyes ; then
5758 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5763 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5764 # Check whether --enable-gpg-camellia128 was given.
5765 if test "${enable_gpg_camellia128+set}" = set; then :
5766 enableval=$enable_gpg_camellia128;
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5772 $as_echo "$enableval" >&6; }
5773 if test x"$enableval" = xyes ; then
5775 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5780 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5781 # Check whether --enable-gpg-camellia192 was given.
5782 if test "${enable_gpg_camellia192+set}" = set; then :
5783 enableval=$enable_gpg_camellia192;
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5789 $as_echo "$enableval" >&6; }
5790 if test x"$enableval" = xyes ; then
5792 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5797 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5798 # Check whether --enable-gpg-camellia256 was given.
5799 if test "${enable_gpg_camellia256+set}" = set; then :
5800 enableval=$enable_gpg_camellia256;
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5806 $as_echo "$enableval" >&6; }
5807 if test x"$enableval" = xyes ; then
5809 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5815 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5816 # Check whether --enable-gpg-md5 was given.
5817 if test "${enable_gpg_md5+set}" = set; then :
5818 enableval=$enable_gpg_md5;
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5824 $as_echo "$enableval" >&6; }
5825 if test x"$enableval" = xyes ; then
5827 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5831 # SHA1 is a MUST algorithm
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5833 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5834 # Check whether --enable-gpg-rmd160 was given.
5835 if test "${enable_gpg_rmd160+set}" = set; then :
5836 enableval=$enable_gpg_rmd160;
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5842 $as_echo "$enableval" >&6; }
5843 if test x"$enableval" = xyes ; then
5845 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5850 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5851 # Check whether --enable-gpg-sha224 was given.
5852 if test "${enable_gpg_sha224+set}" = set; then :
5853 enableval=$enable_gpg_sha224;
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5859 $as_echo "$enableval" >&6; }
5860 if test x"$enableval" = xyes ; then
5862 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5866 # SHA256 is a MUST algorithm for GnuPG.
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5868 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5869 # Check whether --enable-gpg-sha384 was given.
5870 if test "${enable_gpg_sha384+set}" = set; then :
5871 enableval=$enable_gpg_sha384;
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5877 $as_echo "$enableval" >&6; }
5878 if test x"$enableval" = xyes ; then
5880 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5885 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5886 # Check whether --enable-gpg-sha512 was given.
5887 if test "${enable_gpg_sha512+set}" = set; then :
5888 enableval=$enable_gpg_sha512;
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5894 $as_echo "$enableval" >&6; }
5895 if test x"$enableval" = xyes ; then
5897 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5903 # Allow disabling of zip support.
5904 # This is in general not a good idea because according to rfc4880 OpenPGP
5905 # implementations SHOULD support ZLIB.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5907 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5908 # Check whether --enable-zip was given.
5909 if test "${enable_zip+set}" = set; then :
5910 enableval=$enable_zip; use_zip=$enableval
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5914 $as_echo "$use_zip" >&6; }
5916 # Allow disabling of bzib2 support.
5917 # It is defined only after we confirm the library is available later
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5919 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5920 # Check whether --enable-bzip2 was given.
5921 if test "${enable_bzip2+set}" = set; then :
5922 enableval=$enable_bzip2; use_bzip2=$enableval
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5926 $as_echo "$use_bzip2" >&6; }
5928 # Configure option to allow or disallow execution of external
5929 # programs, like a photo viewer.
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5931 $as_echo_n "checking whether to enable external program execution... " >&6; }
5932 # Check whether --enable-exec was given.
5933 if test "${enable_exec+set}" = set; then :
5934 enableval=$enable_exec; use_exec=$enableval
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
5938 $as_echo "$use_exec" >&6; }
5939 if test "$use_exec" = no ; then
5941 $as_echo "#define NO_EXEC 1" >>confdefs.h
5945 if test "$use_exec" = yes ; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
5947 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
5948 # Check whether --enable-photo-viewers was given.
5949 if test "${enable_photo_viewers+set}" = set; then :
5950 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
5952 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
5959 gnupg_cv_enable_photo_viewers=$enableval
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5961 $as_echo "$enableval" >&6; }
5963 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
5965 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
5967 # Check whether --with-photo-viewer was given.
5968 if test "${with_photo_viewer+set}" = set; then :
5969 withval=$with_photo_viewer; if test "$withval" = yes ; then
5971 elif test "$withval" != no ; then
5973 cat >>confdefs.h <<_ACEOF
5974 #define FIXED_PHOTO_VIEWER "$withval"
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5983 $as_echo "$withval" >&6; }
5989 # Check for the key/uid cache size. This can't be zero, but can be
5990 # pretty small on embedded systems. This is used for the gpg part.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
5993 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
5994 # Check whether --enable-key-cache was given.
5995 if test "${enable_key_cache+set}" = set; then :
5996 enableval=$enable_key_cache;
6001 if test "$enableval" = "no"; then
6003 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6006 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6007 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6008 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6011 $as_echo "$key_cache_size" >&6; }
6013 cat >>confdefs.h <<_ACEOF
6014 #define PK_UID_CACHE_SIZE $key_cache_size
6021 # Check whether we want to use Linux capabilities
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6024 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6026 # Check whether --with-capabilities was given.
6027 if test "${with_capabilities+set}" = set; then :
6028 withval=$with_capabilities; use_capabilities="$withval"
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6034 $as_echo "$use_capabilities" >&6; }
6037 # Check whether to disable the card support
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6039 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6040 # Check whether --enable-card-support was given.
6041 if test "${enable_card_support+set}" = set; then :
6042 enableval=$enable_card_support; card_support=$enableval
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6046 $as_echo "$card_support" >&6; }
6047 if test "$card_support" = yes ; then
6049 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6056 # Allow disabling of internal CCID support.
6057 # It is defined only after we confirm the library is available later
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6060 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6061 # Check whether --enable-ccid-driver was given.
6062 if test "${enable_ccid_driver+set}" = set; then :
6063 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6067 $as_echo "$use_ccid_driver" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6070 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6071 # Check whether --enable-dirmngr-auto-start was given.
6072 if test "${enable_dirmngr_auto_start+set}" = set; then :
6073 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6077 $as_echo "$dirmngr_auto_start" >&6; }
6078 if test "$dirmngr_auto_start" = yes ; then
6080 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6086 # To avoid double inclusion of config.h which might happen at some
6087 # places, we add the usual double inclusion protection at the top of
6093 # Stuff which goes at the bottom of config.h.
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6100 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6101 # Check whether --enable-maintainer-mode was given.
6102 if test "${enable_maintainer_mode+set}" = set; then :
6103 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6105 USE_MAINTAINER_MODE=no
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6109 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6110 if test $USE_MAINTAINER_MODE = yes; then
6111 MAINTAINER_MODE_TRUE=
6112 MAINTAINER_MODE_FALSE='#'
6114 MAINTAINER_MODE_TRUE='#'
6115 MAINTAINER_MODE_FALSE=
6118 MAINT=$MAINTAINER_MODE_TRUE
6123 # Checks for programs.
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6125 $as_echo "$as_me: checking for programs" >&6;}
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6127 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6129 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6130 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6131 $as_echo_n "(cached) " >&6
6133 cat >conftest.make <<\_ACEOF
6136 @echo '@@@%%%=$(MAKE)=@@@%%%'
6138 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6139 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6141 eval ac_cv_prog_make_${ac_make}_set=yes;;
6143 eval ac_cv_prog_make_${ac_make}_set=no;;
6147 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6149 $as_echo "yes" >&6; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 SET_MAKE="MAKE=${MAKE-make}"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6158 $as_echo_n "checking whether build environment is sane... " >&6; }
6159 # Reject unsafe characters in $srcdir or the absolute working directory
6160 # name. Accept space and tab only in the latter.
6164 *[\\\"\#\$\&\'\`$am_lf]*)
6165 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6168 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6169 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6172 # Do 'set' in a subshell so we don't clobber the current shell's
6173 # arguments. Must try -L first in case configure is actually a
6174 # symlink; some systems play weird games with the mod time of symlinks
6175 # (eg FreeBSD returns the mod time of the symlink's containing
6179 for am_try in 1 2; do
6180 echo "timestamp, slept: $am_has_slept" > conftest.file
6181 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6182 if test "$*" = "X"; then
6184 set X `ls -t "$srcdir/configure" conftest.file`
6186 if test "$*" != "X $srcdir/configure conftest.file" \
6187 && test "$*" != "X conftest.file $srcdir/configure"; then
6189 # If neither matched, then we have a broken ls. This can happen
6190 # if, for instance, CONFIG_SHELL is bash and it inherits a
6191 # broken ls alias from the environment. This has actually
6192 # happened. Such a system could not be considered "sane".
6193 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6194 alias in your environment" "$LINENO" 5
6196 if test "$2" = conftest.file || test $am_try -eq 2; then
6203 test "$2" = conftest.file
6209 as_fn_error $? "newly created file is older than distributed files!
6210 Check your system clock" "$LINENO" 5
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 $as_echo "yes" >&6; }
6214 # If we didn't sleep, we still need to ensure time stamps of config.status and
6215 # generated files are strictly newer.
6217 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6224 missing_dir=`cd $ac_aux_dir && pwd`
6226 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6229 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6232 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6235 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6238 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6240 # Check whether --enable-silent-rules was given.
6241 if test "${enable_silent_rules+set}" = set; then :
6242 enableval=$enable_silent_rules;
6245 case $enable_silent_rules in # (((
6246 yes) AM_DEFAULT_VERBOSITY=0;;
6247 no) AM_DEFAULT_VERBOSITY=1;;
6248 *) AM_DEFAULT_VERBOSITY=1;;
6250 am_make=${MAKE-make}
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6252 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6253 if ${am_cv_make_support_nested_variables+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 if $as_echo 'TRUE=$(BAR$(V))
6262 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6263 am_cv_make_support_nested_variables=yes
6265 am_cv_make_support_nested_variables=no
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6269 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6270 if test $am_cv_make_support_nested_variables = yes; then
6272 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6274 AM_V=$AM_DEFAULT_VERBOSITY
6275 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6279 for ac_prog in gawk mawk nawk awk
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_AWK+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$AWK"; then
6289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AWK="$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 if test -n "$AWK"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6311 $as_echo "$AWK" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$AWK" && break
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_CC+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 if test -n "$CC"; then
6335 ac_cv_prog_CC="$CC" # Let the user override the test.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 if test -n "$CC"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6357 $as_echo "$CC" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6365 if test -z "$ac_cv_prog_CC"; then
6367 # Extract the first word of "gcc", so it can be a program name with args.
6368 set dummy gcc; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$ac_ct_CC"; then
6375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_ac_ct_CC="gcc"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6395 if test -n "$ac_ct_CC"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6397 $as_echo "$ac_ct_CC" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6403 if test "x$ac_ct_CC" = x; then
6406 case $cross_compiling:$ac_tool_warned in
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6418 if test -z "$CC"; then
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}cc; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_CC+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$CC"; then
6428 ac_cv_prog_CC="$CC" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_CC="${ac_tool_prefix}cc"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 if test -n "$CC"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6450 $as_echo "$CC" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6459 if test -z "$CC"; then
6460 # Extract the first word of "cc", so it can be a program name with args.
6461 set dummy cc; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_CC+:} false; then :
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$CC"; then
6468 ac_cv_prog_CC="$CC" # Let the user override the test.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6479 ac_prog_rejected=yes
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 if test $ac_prog_rejected = yes; then
6491 # We found a bogon in the path, so make sure we never use it.
6492 set dummy $ac_cv_prog_CC
6494 if test $# != 0; then
6495 # We chose a different compiler from the bogus one.
6496 # However, it has the same basename, so the bogon will be chosen
6497 # first if we set CC to just the basename; use the full file name.
6499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6505 if test -n "$CC"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6507 $as_echo "$CC" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6515 if test -z "$CC"; then
6516 if test -n "$ac_tool_prefix"; then
6517 for ac_prog in cl.exe
6519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_prog_CC+:} false; then :
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$CC"; then
6527 ac_cv_prog_CC="$CC" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 if test -n "$CC"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6549 $as_echo "$CC" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6556 test -n "$CC" && break
6559 if test -z "$CC"; then
6561 for ac_prog in cl.exe
6563 # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6568 $as_echo_n "(cached) " >&6
6570 if test -n "$ac_ct_CC"; then
6571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580 ac_cv_prog_ac_ct_CC="$ac_prog"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6591 if test -n "$ac_ct_CC"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6593 $as_echo "$ac_ct_CC" >&6; }
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6600 test -n "$ac_ct_CC" && break
6603 if test "x$ac_ct_CC" = x; then
6606 case $cross_compiling:$ac_tool_warned in
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6610 ac_tool_warned=yes ;;
6619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6621 as_fn_error $? "no acceptable C compiler found in \$PATH
6622 See \`config.log' for more details" "$LINENO" 5; }
6624 # Provide some information about the compiler.
6625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6628 for ac_option in --version -v -V -qversion; do
6629 { { ac_try="$ac_compiler $ac_option >&5"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6635 $as_echo "$ac_try_echo"; } >&5
6636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6638 if test -s conftest.err; then
6640 ... rest of stderr output deleted ...
6641 10q' conftest.err >conftest.er1
6642 cat conftest.er1 >&5
6644 rm -f conftest.er1 conftest.err
6645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646 test $ac_status = 0; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6651 if ${ac_cv_c_compiler_gnu+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6668 if ac_fn_c_try_compile "$LINENO"; then :
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6679 if test $ac_compiler_gnu = yes; then
6684 ac_test_CFLAGS=${CFLAGS+set}
6685 ac_save_CFLAGS=$CFLAGS
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6688 if ${ac_cv_prog_cc_g+:} false; then :
6689 $as_echo_n "(cached) " >&6
6691 ac_save_c_werror_flag=$ac_c_werror_flag
6692 ac_c_werror_flag=yes
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6706 if ac_fn_c_try_compile "$LINENO"; then :
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6721 if ac_fn_c_try_compile "$LINENO"; then :
6724 ac_c_werror_flag=$ac_save_c_werror_flag
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6737 if ac_fn_c_try_compile "$LINENO"; then :
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 ac_c_werror_flag=$ac_save_c_werror_flag
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6748 $as_echo "$ac_cv_prog_cc_g" >&6; }
6749 if test "$ac_test_CFLAGS" = set; then
6750 CFLAGS=$ac_save_CFLAGS
6751 elif test $ac_cv_prog_cc_g = yes; then
6752 if test "$GCC" = yes; then
6758 if test "$GCC" = yes; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6766 if ${ac_cv_prog_cc_c89+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 ac_cv_prog_cc_c89=no
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6777 struct buf { int x; };
6778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6779 static char *e (p, i)
6785 static char *f (char * (*g) (char **, int), char **p, ...)
6790 s = g (p, va_arg (v,int));
6795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6796 function prototypes and stuff, but not '\xHH' hex character constants.
6797 These don't provoke an error unfortunately, instead are silently treated
6798 as 'x'. The following induces an error, until -std is added to get
6799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6800 array size at least. It's necessary to write '\x00'==0 to get something
6801 that's true only with -std. */
6802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6805 inside strings and character constants. */
6807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6809 int test (int i, double x);
6810 struct s1 {int (*f) (int a);};
6811 struct s2 {int (*f) (double a);};
6812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6826 CC="$ac_save_CC $ac_arg"
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 ac_cv_prog_cc_c89=$ac_arg
6830 rm -f core conftest.err conftest.$ac_objext
6831 test "x$ac_cv_prog_cc_c89" != "xno" && break
6833 rm -f conftest.$ac_ext
6838 case "x$ac_cv_prog_cc_c89" in
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6841 $as_echo "none needed" >&6; } ;;
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6844 $as_echo "unsupported" >&6; } ;;
6846 CC="$CC $ac_cv_prog_cc_c89"
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6850 if test "x$ac_cv_prog_cc_c89" != xno; then :
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6866 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6867 if ${am_cv_prog_cc_c_o+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6881 # Make sure it works both with $CC and with simple cc.
6882 # Following AC_PROG_CC_C_O, we do the test twice because some
6883 # compilers refuse to overwrite an existing .o file with -o,
6884 # though they will create one.
6885 am_cv_prog_cc_c_o=yes
6887 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6888 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } \
6892 && test -f conftest2.$ac_objext; then
6895 am_cv_prog_cc_c_o=no
6899 rm -f core conftest*
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6903 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6904 if test "$am_cv_prog_cc_c_o" != yes; then
6905 # Losing compiler, so override with the script.
6906 # FIXME: It is wrong to rewrite CC.
6907 # But if we don't then we get into trouble of one sort or another.
6908 # A longer-term fix would be to have automake use am__CC in this case,
6909 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6910 CC="$am_aux_dir/compile $CC"
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 depcc="$CC" am_compiler_list=
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6922 $as_echo_n "checking dependency style of $depcc... " >&6; }
6923 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6927 # We make a subdir and do the tests there. Otherwise we can end up
6928 # making bogus files that we don't know about and never remove. For
6929 # instance it was reported that on HP-UX the gcc test will end up
6930 # making a dummy file named 'D' -- because '-MD' means "put the output
6934 # Copy depcomp to subdir because otherwise we won't find it if we're
6935 # using a relative directory.
6936 cp "$am_depcomp" conftest.dir
6938 # We will build objects and dependencies in a subdirectory because
6939 # it helps to detect inapplicable dependency modes. For instance
6940 # both Tru64's cc and ICC support -MD to output dependencies as a
6941 # side effect of compilation, but ICC will put the dependencies in
6942 # the current directory while Tru64 will put them in the object
6946 am_cv_CC_dependencies_compiler_type=none
6947 if test "$am_compiler_list" = ""; then
6948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6951 case " $depcc " in #(
6952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6955 for depmode in $am_compiler_list; do
6956 # Setup a source with many dependencies, because some compilers
6957 # like to wrap large dependency lists on column 80 (with \), and
6958 # we should not choose a depcomp mode which is confused by this.
6960 # We need to recreate these files for each test, as the compiler may
6961 # overwrite some of them when testing with obscure command lines.
6962 # This happens at least with the AIX C compiler.
6964 for i in 1 2 3 4 5 6; do
6965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6966 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6967 # Solaris 10 /bin/sh.
6968 echo '/* dummy */' > sub/conftst$i.h
6970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6972 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6973 # mode. It turns out that the SunPro C++ compiler does not properly
6974 # handle '-M -o', and we need to detect this. Also, some Intel
6975 # versions had trouble with output in subdirs.
6976 am__obj=sub/conftest.${OBJEXT-o}
6977 am__minus_obj="-o $am__obj"
6980 # This depmode causes a compiler race in universal mode.
6981 test "$am__universal" = false || continue
6984 # After this tag, mechanisms are not by side-effect, so they'll
6985 # only be used when explicitly requested.
6986 if test "x$enable_dependency_tracking" = xyes; then
6992 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6993 # This compiler won't grok '-c -o', but also, the minuso test has
6994 # not run yet. These depmodes are late enough in the game, and
6995 # so weak that their functioning should not be impacted.
6996 am__obj=conftest.${OBJEXT-o}
7001 if depmode=$depmode \
7002 source=sub/conftest.c object=$am__obj \
7003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7005 >/dev/null 2>conftest.err &&
7006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7010 # icc doesn't choke on unknown options, it will just issue warnings
7011 # or remarks (even with -Werror). So we grep stderr for any message
7012 # that says an option was ignored or not supported.
7013 # When given -MP, icc 7.0 and 7.1 complain thusly:
7014 # icc: Command line warning: ignoring option '-M'; no argument required
7015 # The diagnosis changed in icc 8.0:
7016 # icc: Command line remark: option '-MP' not supported
7017 if (grep 'ignoring option' conftest.err ||
7018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7019 am_cv_CC_dependencies_compiler_type=$depmode
7028 am_cv_CC_dependencies_compiler_type=none
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7037 test "x$enable_dependency_tracking" != xno \
7038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7040 am__fastdepCC_FALSE='#'
7042 am__fastdepCC_TRUE='#'
7043 am__fastdepCC_FALSE=
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7054 # On Suns, sometimes $CPP names a directory.
7055 if test -n "$CPP" && test -d "$CPP"; then
7058 if test -z "$CPP"; then
7059 if ${ac_cv_prog_CPP+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 # Double quotes because CPP needs to be expanded
7063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7066 for ac_c_preproc_warn_flag in '' yes
7068 # Use a header file that comes with gcc, so configuring glibc
7069 # with a fresh cross-compiler works.
7070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 # <limits.h> exists even on freestanding compilers.
7072 # On the NeXT, cc -E runs the code through the compiler's parser,
7073 # not just through cpp. "Syntax error" is here to catch this case.
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7077 # include <limits.h>
7079 # include <assert.h>
7083 if ac_fn_c_try_cpp "$LINENO"; then :
7086 # Broken: fails on valid input.
7089 rm -f conftest.err conftest.i conftest.$ac_ext
7091 # OK, works on sane cases. Now check whether nonexistent headers
7092 # can be detected and how.
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 #include <ac_nonexistent.h>
7097 if ac_fn_c_try_cpp "$LINENO"; then :
7098 # Broken: success on invalid input.
7101 # Passes both tests.
7105 rm -f conftest.err conftest.i conftest.$ac_ext
7108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7109 rm -f conftest.i conftest.err conftest.$ac_ext
7110 if $ac_preproc_ok; then :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7123 $as_echo "$CPP" >&6; }
7125 for ac_c_preproc_warn_flag in '' yes
7127 # Use a header file that comes with gcc, so configuring glibc
7128 # with a fresh cross-compiler works.
7129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 # <limits.h> exists even on freestanding compilers.
7131 # On the NeXT, cc -E runs the code through the compiler's parser,
7132 # not just through cpp. "Syntax error" is here to catch this case.
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7136 # include <limits.h>
7138 # include <assert.h>
7142 if ac_fn_c_try_cpp "$LINENO"; then :
7145 # Broken: fails on valid input.
7148 rm -f conftest.err conftest.i conftest.$ac_ext
7150 # OK, works on sane cases. Now check whether nonexistent headers
7151 # can be detected and how.
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #include <ac_nonexistent.h>
7156 if ac_fn_c_try_cpp "$LINENO"; then :
7157 # Broken: success on invalid input.
7160 # Passes both tests.
7164 rm -f conftest.err conftest.i conftest.$ac_ext
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.i conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then :
7172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7174 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7175 See \`config.log' for more details" "$LINENO" 5; }
7179 ac_cpp='$CPP $CPPFLAGS'
7180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7186 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7190 $as_echo_n "checking whether ln -s works... " >&6; }
7192 if test "$LN_S" = "ln -s"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7194 $as_echo "yes" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7197 $as_echo "no, using $LN_S" >&6; }
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_RANLIB+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$RANLIB"; then
7209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 RANLIB=$ac_cv_prog_RANLIB
7229 if test -n "$RANLIB"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7231 $as_echo "$RANLIB" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7239 if test -z "$ac_cv_prog_RANLIB"; then
7240 ac_ct_RANLIB=$RANLIB
7241 # Extract the first word of "ranlib", so it can be a program name with args.
7242 set dummy ranlib; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 if test -n "$ac_ct_RANLIB"; then
7249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_ac_ct_RANLIB="ranlib"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7269 if test -n "$ac_ct_RANLIB"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7271 $as_echo "$ac_ct_RANLIB" >&6; }
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7277 if test "x$ac_ct_RANLIB" = x; then
7280 case $cross_compiling:$ac_tool_warned in
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7286 RANLIB=$ac_ct_RANLIB
7289 RANLIB="$ac_cv_prog_RANLIB"
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ar; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_AR+:} false; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$AR"; then
7301 ac_cv_prog_AR="$AR" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_AR="${ac_tool_prefix}ar"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 if test -n "$AR"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7323 $as_echo "$AR" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_AR"; then
7333 # Extract the first word of "ar", so it can be a program name with args.
7334 set dummy ar; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_AR"; then
7341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_AR="ar"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7361 if test -n "$ac_ct_AR"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7363 $as_echo "$ac_ct_AR" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_AR" = x; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7384 # Extract the first word of ""perl"", so it can be a program name with args.
7385 set dummy "perl"; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_path_PERL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7393 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 PERL=$ac_cv_path_PERL
7415 if test -n "$PERL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7417 $as_echo "$PERL" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}windres; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_WINDRES+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 if test -n "$WINDRES"; then
7433 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 WINDRES=$ac_cv_prog_WINDRES
7453 if test -n "$WINDRES"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7455 $as_echo "$WINDRES" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7463 if test -z "$ac_cv_prog_WINDRES"; then
7464 ac_ct_WINDRES=$WINDRES
7465 # Extract the first word of "windres", so it can be a program name with args.
7466 set dummy windres; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 if test -n "$ac_ct_WINDRES"; then
7473 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_ac_ct_WINDRES="windres"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7493 if test -n "$ac_ct_WINDRES"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7495 $as_echo "$ac_ct_WINDRES" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 if test "x$ac_ct_WINDRES" = x; then
7504 case $cross_compiling:$ac_tool_warned in
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7510 WINDRES=$ac_ct_WINDRES
7513 WINDRES="$ac_cv_prog_WINDRES"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7518 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7519 if ${ac_cv_lib_cposix_strerror+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 ac_check_lib_save_LIBS=$LIBS
7523 LIBS="-lcposix $LIBS"
7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7527 /* Override any GCC internal prototype to avoid an error.
7528 Use char because int might match the return type of a GCC
7529 builtin and then its argument prototype would still apply. */
7542 if ac_fn_c_try_link "$LINENO"; then :
7543 ac_cv_lib_cposix_strerror=yes
7545 ac_cv_lib_cposix_strerror=no
7547 rm -f core conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext
7549 LIBS=$ac_check_lib_save_LIBS
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7552 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7553 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7554 LIBS="$LIBS -lcposix"
7559 # Check whether --enable-largefile was given.
7560 if test "${enable_largefile+set}" = set; then :
7561 enableval=$enable_largefile;
7564 if test "$enable_largefile" != no; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7567 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7568 if ${ac_cv_sys_largefile_CC+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 ac_cv_sys_largefile_CC=no
7572 if test "$GCC" != yes; then
7575 # IRIX 6.2 and later do not support large files by default,
7576 # so use the C compiler's -n32 option if that helps.
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 #include <sys/types.h>
7580 /* Check that off_t can represent 2**63 - 1 correctly.
7581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7582 since some C++ compilers masquerading as C compilers
7583 incorrectly reject 9223372036854775807. */
7584 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7586 && LARGE_OFF_T % 2147483647 == 1)
7596 if ac_fn_c_try_compile "$LINENO"; then :
7599 rm -f core conftest.err conftest.$ac_objext
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 ac_cv_sys_largefile_CC=' -n32'; break
7604 rm -f core conftest.err conftest.$ac_objext
7608 rm -f conftest.$ac_ext
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7612 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7613 if test "$ac_cv_sys_largefile_CC" != no; then
7614 CC=$CC$ac_cv_sys_largefile_CC
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7618 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7619 if ${ac_cv_sys_file_offset_bits+:} false; then :
7620 $as_echo_n "(cached) " >&6
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #include <sys/types.h>
7626 /* Check that off_t can represent 2**63 - 1 correctly.
7627 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7628 since some C++ compilers masquerading as C compilers
7629 incorrectly reject 9223372036854775807. */
7630 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7631 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7632 && LARGE_OFF_T % 2147483647 == 1)
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_sys_file_offset_bits=no; break
7645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #define _FILE_OFFSET_BITS 64
7649 #include <sys/types.h>
7650 /* Check that off_t can represent 2**63 - 1 correctly.
7651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7652 since some C++ compilers masquerading as C compilers
7653 incorrectly reject 9223372036854775807. */
7654 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7656 && LARGE_OFF_T % 2147483647 == 1)
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 ac_cv_sys_file_offset_bits=64; break
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 ac_cv_sys_file_offset_bits=unknown
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7675 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7676 case $ac_cv_sys_file_offset_bits in #(
7679 cat >>confdefs.h <<_ACEOF
7680 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7685 if test $ac_cv_sys_file_offset_bits = unknown; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7687 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7688 if ${ac_cv_sys_large_files+:} false; then :
7689 $as_echo_n "(cached) " >&6
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <sys/types.h>
7695 /* Check that off_t can represent 2**63 - 1 correctly.
7696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7697 since some C++ compilers masquerading as C compilers
7698 incorrectly reject 9223372036854775807. */
7699 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7701 && LARGE_OFF_T % 2147483647 == 1)
7711 if ac_fn_c_try_compile "$LINENO"; then :
7712 ac_cv_sys_large_files=no; break
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #define _LARGE_FILES 1
7718 #include <sys/types.h>
7719 /* Check that off_t can represent 2**63 - 1 correctly.
7720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7721 since some C++ compilers masquerading as C compilers
7722 incorrectly reject 9223372036854775807. */
7723 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7725 && LARGE_OFF_T % 2147483647 == 1)
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 ac_cv_sys_large_files=1; break
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 ac_cv_sys_large_files=unknown
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7744 $as_echo "$ac_cv_sys_large_files" >&6; }
7745 case $ac_cv_sys_large_files in #(
7748 cat >>confdefs.h <<_ACEOF
7749 #define _LARGE_FILES $ac_cv_sys_large_files
7761 # Check whether --with-tar was given.
7762 if test "${with_tar+set}" = set; then :
7763 withval=$with_tar; _do_tar=$withval
7767 if test x$_do_tar != xno ; then
7769 if test x$_do_tar = x ; then
7770 # Extract the first word of ""tar"", so it can be a program name with args.
7771 set dummy "tar"; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if ${ac_cv_path_TAR+:} false; then :
7775 $as_echo_n "(cached) " >&6
7779 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 if test -n "$TAR"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7803 $as_echo "$TAR" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7810 _mytar=$ac_cv_path_TAR
7813 # Check if our tar is ustar format. If so, it's good. TODO: Add some
7814 # code to check various options, etc, to try and create ustar
7817 if test x$_mytar != x ; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7819 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7820 echo hithere > conftest.txt
7821 $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7825 if test x$_tar_bad = x0 ; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827 $as_echo "yes" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 if test x$_tar_bad = x0; then
7837 HAVE_USTAR_FALSE='#'
7846 # We need to compile and run a program on the build machine. A
7847 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7848 # the AC archive is broken for autoconf 2.57. Given that there is no
7849 # newer version of that macro, we assume that it is also broken for
7850 # autoconf 2.61 and thus we use a simple but usually sufficient
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7853 $as_echo_n "checking for cc for build... " >&6; }
7854 if test "$cross_compiling" = "yes"; then
7855 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7857 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7860 $as_echo "$CC_FOR_BUILD" >&6; }
7863 # We need to call this macro because other pkg-config macros are
7872 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7879 $as_echo_n "(cached) " >&6
7883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7905 if test -n "$PKG_CONFIG"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7907 $as_echo "$PKG_CONFIG" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7915 if test -z "$ac_cv_path_PKG_CONFIG"; then
7916 ac_pt_PKG_CONFIG=$PKG_CONFIG
7917 # Extract the first word of "pkg-config", so it can be a program name with args.
7918 set dummy pkg-config; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 case $ac_pt_PKG_CONFIG in
7926 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7948 if test -n "$ac_pt_PKG_CONFIG"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7950 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7956 if test "x$ac_pt_PKG_CONFIG" = x; then
7959 case $cross_compiling:$ac_tool_warned in
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7963 ac_tool_warned=yes ;;
7965 PKG_CONFIG=$ac_pt_PKG_CONFIG
7968 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7972 if test -n "$PKG_CONFIG"; then
7973 _pkg_min_version=0.9.0
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7975 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7976 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7989 have_dosish_system=no
7991 have_w32ce_system=no
7992 have_android_system=no
7993 use_simple_gettext=no
7998 # special stuff for Windoze NT
7999 ac_cv_have_dev_random=no
8001 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8004 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8006 have_dosish_system=yes
8009 use_ldapwrapper=no # Fixme: Do this only for CE.
8012 have_w32ce_system=yes
8016 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8021 use_simple_gettext=yes
8024 i?86-emx-os2 | i?86-*-os2*emx )
8025 # OS/2 with the EMX environment
8026 ac_cv_have_dev_random=no
8027 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8029 have_dosish_system=yes
8034 # DOS with the DJGPP environment
8035 ac_cv_have_dev_random=no
8036 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8038 have_dosish_system=yes
8043 if test -z "$GCC" ; then
8044 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8048 if test -z "$GCC" ; then
8049 # Suppress all warnings
8050 # to get rid of the unsigned/signed char mismatch warnings.
8055 if test -z "$GCC" ; then
8056 # Use the newer compiler `-msg_disable ptrmismatch1' to
8057 # get rid of the unsigned/signed char mismatch warnings.
8058 # Using this may hide other pointer mismatch warnings, but
8059 # it at least lets other warning classes through
8060 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8066 have_android_system=yes
8067 # Android is fully utf-8 and we do not want to use iconv to
8068 # keeps things simple
8075 if test "$have_dosish_system" = yes; then
8077 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8080 if test "$have_dosish_system" = yes; then
8081 HAVE_DOSISH_SYSTEM_TRUE=
8082 HAVE_DOSISH_SYSTEM_FALSE='#'
8084 HAVE_DOSISH_SYSTEM_TRUE='#'
8085 HAVE_DOSISH_SYSTEM_FALSE=
8089 if test x"$use_simple_gettext" = xyes; then
8090 USE_SIMPLE_GETTEXT_TRUE=
8091 USE_SIMPLE_GETTEXT_FALSE='#'
8093 USE_SIMPLE_GETTEXT_TRUE='#'
8094 USE_SIMPLE_GETTEXT_FALSE=
8098 if test "$have_w32_system" = yes; then
8100 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8102 if test "$have_w32ce_system" = yes; then
8104 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8108 if test "$have_w32_system" = yes; then
8109 HAVE_W32_SYSTEM_TRUE=
8110 HAVE_W32_SYSTEM_FALSE='#'
8112 HAVE_W32_SYSTEM_TRUE='#'
8113 HAVE_W32_SYSTEM_FALSE=
8116 if test "$have_w32ce_system" = yes; then
8117 HAVE_W32CE_SYSTEM_TRUE=
8118 HAVE_W32CE_SYSTEM_FALSE='#'
8120 HAVE_W32CE_SYSTEM_TRUE='#'
8121 HAVE_W32CE_SYSTEM_FALSE=
8125 if test "$have_android_system" = yes; then
8127 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8130 if test "$have_android_system" = yes; then
8131 HAVE_ANDROID_SYSTEM_TRUE=
8132 HAVE_ANDROID_SYSTEM_FALSE='#'
8134 HAVE_ANDROID_SYSTEM_TRUE='#'
8135 HAVE_ANDROID_SYSTEM_FALSE=
8140 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8142 cat >>confdefs.h <<_ACEOF
8143 #define EXEEXT "$EXEEXT"
8149 # Checks for libraries.
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8152 $as_echo "$as_me: checking for libraries" >&6;}
8156 # libgpg-error is a library with error codes shared between GnuPG
8160 gpg_error_config_prefix=""
8162 # Check whether --with-libgpg-error-prefix was given.
8163 if test "${with_libgpg_error_prefix+set}" = set; then :
8164 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8169 # Check whether --with-gpg-error-prefix was given.
8170 if test "${with_gpg_error_prefix+set}" = set; then :
8171 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8175 if test x"${GPG_ERROR_CONFIG}" = x ; then
8176 if test x"${gpg_error_config_prefix}" != x ; then
8177 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8179 case "${SYSROOT}" in
8181 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8182 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8189 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8195 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8196 set dummy gpg-error-config; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8200 $as_echo_n "(cached) " >&6
8202 case $GPG_ERROR_CONFIG in
8204 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8226 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8227 if test -n "$GPG_ERROR_CONFIG"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8229 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8238 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8240 if test "$GPG_ERROR_CONFIG" != "no" \
8241 && test -f "$GPG_ERROR_CONFIG" ; then
8242 req_major=`echo $min_gpg_error_version | \
8243 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8244 req_minor=`echo $min_gpg_error_version | \
8245 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8246 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8247 major=`echo $gpg_error_config_version | \
8248 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8249 minor=`echo $gpg_error_config_version | \
8250 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8251 if test "$major" -gt "$req_major"; then
8254 if test "$major" -eq "$req_major"; then
8255 if test "$minor" -ge "$req_minor"; then
8261 if test $ok = yes; then
8262 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8263 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8264 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8265 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8267 $as_echo "yes ($gpg_error_config_version)" >&6; }
8269 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8270 if test x"$gpg_error_config_host" != xnone ; then
8271 if test x"$gpg_error_config_host" != x"$host" ; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8274 *** The config script $GPG_ERROR_CONFIG was
8275 *** built for $gpg_error_config_host and thus may not match the
8276 *** used host $host.
8277 *** You may want to use the configure option --with-gpg-error-prefix
8278 *** to specify a matching config script or use \$SYSROOT.
8280 $as_echo "$as_me: WARNING:
8282 *** The config script $GPG_ERROR_CONFIG was
8283 *** built for $gpg_error_config_host and thus may not match the
8284 *** used host $host.
8285 *** You may want to use the configure option --with-gpg-error-prefix
8286 *** to specify a matching config script or use \$SYSROOT.
8288 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8294 GPG_ERROR_MT_CFLAGS=""
8295 GPG_ERROR_MT_LIBS=""
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8308 # Libgcrypt is our generic crypto library
8312 # Check whether --with-libgcrypt-prefix was given.
8313 if test "${with_libgcrypt_prefix+set}" = set; then :
8314 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8316 libgcrypt_config_prefix=""
8319 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8320 if test x"${libgcrypt_config_prefix}" != x ; then
8321 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8323 case "${SYSROOT}" in
8325 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8326 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8333 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8339 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8340 set dummy libgcrypt-config; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 case $LIBGCRYPT_CONFIG in
8348 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8370 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8371 if test -n "$LIBGCRYPT_CONFIG"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8373 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8380 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8381 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8382 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8383 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8386 min_libgcrypt_version="$tmp"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8390 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8392 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8393 req_major=`echo $min_libgcrypt_version | \
8394 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8395 req_minor=`echo $min_libgcrypt_version | \
8396 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8397 req_micro=`echo $min_libgcrypt_version | \
8398 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8399 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8400 major=`echo $libgcrypt_config_version | \
8401 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8402 minor=`echo $libgcrypt_config_version | \
8403 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8404 micro=`echo $libgcrypt_config_version | \
8405 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8406 if test "$major" -gt "$req_major"; then
8409 if test "$major" -eq "$req_major"; then
8410 if test "$minor" -gt "$req_minor"; then
8413 if test "$minor" -eq "$req_minor"; then
8414 if test "$micro" -ge "$req_micro"; then
8422 if test $ok = yes; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8424 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8429 if test $ok = yes; then
8430 # If we have a recent libgcrypt, we should also check that the
8432 if test "$req_libgcrypt_api" -gt 0 ; then
8433 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8434 if test "$tmp" -gt 0 ; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8436 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8437 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8439 $as_echo "okay" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8443 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8448 if test $ok = yes; then
8449 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8450 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8452 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8453 if test x"$libgcrypt_config_host" != xnone ; then
8454 if test x"$libgcrypt_config_host" != x"$host" ; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8457 *** The config script $LIBGCRYPT_CONFIG was
8458 *** built for $libgcrypt_config_host and thus may not match the
8459 *** used host $host.
8460 *** You may want to use the configure option --with-libgcrypt-prefix
8461 *** to specify a matching config script or use \$SYSROOT.
8463 $as_echo "$as_me: WARNING:
8465 *** The config script $LIBGCRYPT_CONFIG was
8466 *** built for $libgcrypt_config_host and thus may not match the
8467 *** used host $host.
8468 *** You may want to use the configure option --with-libgcrypt-prefix
8469 *** to specify a matching config script or use \$SYSROOT.
8471 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8485 # libassuan is used for IPC
8488 # Check whether --with-libassuan-prefix was given.
8489 if test "${with_libassuan_prefix+set}" = set; then :
8490 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8492 libassuan_config_prefix=""
8495 if test x$libassuan_config_prefix != x ; then
8496 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8497 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8498 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8501 # Extract the first word of "libassuan-config", so it can be a program name with args.
8502 set dummy libassuan-config; ac_word=$2
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504 $as_echo_n "checking for $ac_word... " >&6; }
8505 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8506 $as_echo_n "(cached) " >&6
8508 case $LIBASSUAN_CONFIG in
8510 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8520 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8532 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8533 if test -n "$LIBASSUAN_CONFIG"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8535 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8543 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8544 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8545 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8546 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8549 min_libassuan_version="$tmp"
8552 if test "$LIBASSUAN_CONFIG" != "no" ; then
8553 libassuan_version=`$LIBASSUAN_CONFIG --version`
8555 libassuan_version_major=`echo $libassuan_version | \
8556 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8557 libassuan_version_minor=`echo $libassuan_version | \
8558 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8559 libassuan_version_micro=`echo $libassuan_version | \
8560 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8563 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8565 if test "$LIBASSUAN_CONFIG" != "no" ; then
8567 req_major=`echo $min_libassuan_version | \
8568 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8569 req_minor=`echo $min_libassuan_version | \
8570 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8571 req_micro=`echo $min_libassuan_version | \
8572 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8573 if test "$libassuan_version_major" -gt "$req_major"; then
8576 if test "$libassuan_version_major" -eq "$req_major"; then
8577 if test "$libassuan_version_minor" -gt "$req_minor"; then
8580 if test "$libassuan_version_minor" -eq "$req_minor"; then
8581 if test "$libassuan_version_micro" -ge "$req_micro"; then
8591 if test $ok = yes; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8593 $as_echo "yes ($libassuan_version)" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8599 if test $ok = yes; then
8600 if test "$req_libassuan_api" -gt 0 ; then
8601 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8602 if test "$tmp" -gt 0 ; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8604 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8605 if test "$req_libassuan_api" -eq "$tmp" ; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8607 $as_echo "okay" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8611 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8618 if test $ok = yes; then
8619 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8620 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8630 if test "$have_libassuan" = "yes"; then
8632 cat >>confdefs.h <<_ACEOF
8633 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8636 show_tor_support="only .onion"
8641 # libksba is our X.509 support library
8645 # Check whether --with-ksba-prefix was given.
8646 if test "${with_ksba_prefix+set}" = set; then :
8647 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8649 ksba_config_prefix=""
8652 if test x$ksba_config_prefix != x ; then
8653 ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8654 if test x${KSBA_CONFIG+set} != xset ; then
8655 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8659 # Extract the first word of "ksba-config", so it can be a program name with args.
8660 set dummy ksba-config; ac_word=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8664 $as_echo_n "(cached) " >&6
8666 case $KSBA_CONFIG in
8668 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8690 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8691 if test -n "$KSBA_CONFIG"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8693 $as_echo "$KSBA_CONFIG" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8700 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8701 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8702 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8703 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8706 min_ksba_version="$tmp"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8710 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8712 if test "$KSBA_CONFIG" != "no" ; then
8713 req_major=`echo $min_ksba_version | \
8714 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8715 req_minor=`echo $min_ksba_version | \
8716 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8717 req_micro=`echo $min_ksba_version | \
8718 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8719 ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8720 major=`echo $ksba_config_version | \
8721 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8722 minor=`echo $ksba_config_version | \
8723 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8724 micro=`echo $ksba_config_version | \
8725 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8726 if test "$major" -gt "$req_major"; then
8729 if test "$major" -eq "$req_major"; then
8730 if test "$minor" -gt "$req_minor"; then
8733 if test "$minor" -eq "$req_minor"; then
8734 if test "$micro" -ge "$req_micro"; then
8742 if test $ok = yes; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8744 $as_echo "yes ($ksba_config_version)" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8749 if test $ok = yes; then
8750 # Even if we have a recent libksba, we should check that the
8751 # API is compatible.
8752 if test "$req_ksba_api" -gt 0 ; then
8753 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8754 if test "$tmp" -gt 0 ; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8756 $as_echo_n "checking KSBA API version... " >&6; }
8757 if test "$req_ksba_api" -eq "$tmp" ; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8759 $as_echo "okay" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
8763 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
8768 if test $ok = yes; then
8769 KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8770 KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8772 libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8773 if test x"$libksba_config_host" != xnone ; then
8774 if test x"$libksba_config_host" != x"$host" ; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8777 *** The config script $LIBKSBA_CONFIG was
8778 *** built for $libksba_config_host and thus may not match the
8779 *** used host $host.
8780 *** You may want to use the configure option --with-libksba-prefix
8781 *** to specify a matching config script.
8783 $as_echo "$as_me: WARNING:
8785 *** The config script $LIBKSBA_CONFIG was
8786 *** built for $libksba_config_host and thus may not match the
8787 *** used host $host.
8788 *** You may want to use the configure option --with-libksba-prefix
8789 *** to specify a matching config script.
8804 # libusb allows us to use the integrated CCID smartcard reader driver.
8806 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8807 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8816 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8819 # FreeBSD has a native 1.0 compatible library by -lusb.
8829 if test x"$LIBUSB_NAME" != x ; then
8830 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8832 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8833 if eval \${$as_ac_Lib+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 ac_check_lib_save_LIBS=$LIBS
8837 LIBS="-l$LIBUSB_NAME $LIBS"
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8841 /* Override any GCC internal prototype to avoid an error.
8842 Use char because int might match the return type of a GCC
8843 builtin and then its argument prototype would still apply. */
8847 char libusb_init ();
8851 return libusb_init ();
8856 if ac_fn_c_try_link "$LINENO"; then :
8857 eval "$as_ac_Lib=yes"
8859 eval "$as_ac_Lib=no"
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8865 eval ac_res=\$$as_ac_Lib
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8867 $as_echo "$ac_res" >&6; }
8868 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8869 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
8874 $as_echo_n "checking libusb include dir... " >&6; }
8875 usb_incdir_found="no"
8876 for _incdir in "" "/usr/include/libusb-1.0" "/usr/local/include/libusb-1.0"; do
8877 _libusb_save_cppflags=$CPPFLAGS
8878 if test -n "${_incdir}"; then
8879 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8885 if ac_fn_c_try_cpp "$LINENO"; then :
8886 usb_incdir=${_incdir}; usb_incdir_found="yes"
8888 rm -f conftest.err conftest.i conftest.$ac_ext
8889 CPPFLAGS=${_libusb_save_cppflags}
8890 if test "$usb_incdir_found" = "yes"; then
8894 if test "$usb_incdir_found" = "yes"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
8896 $as_echo "${usb_incdir}" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8899 $as_echo "not found" >&6; }
8902 if test "$use_ccid_driver" != yes; then
8908 if test "$have_libusb" = yes; then
8910 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
8913 if test x"$usb_incdir" = x; then
8916 LIBUSB_CPPFLAGS="-I${usb_incdir}"
8923 # Check wether it is necessary to link against libdl.
8924 # (For example to load libpcsclite)
8926 gnupg_dlopen_save_libs="$LIBS"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8929 $as_echo_n "checking for library containing dlopen... " >&6; }
8930 if ${ac_cv_search_dlopen+:} false; then :
8931 $as_echo_n "(cached) " >&6
8933 ac_func_search_save_LIBS=$LIBS
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8952 for ac_lib in '' c dl; do
8953 if test -z "$ac_lib"; then
8954 ac_res="none required"
8957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 ac_cv_search_dlopen=$ac_res
8962 rm -f core conftest.err conftest.$ac_objext \
8964 if ${ac_cv_search_dlopen+:} false; then :
8968 if ${ac_cv_search_dlopen+:} false; then :
8971 ac_cv_search_dlopen=no
8974 LIBS=$ac_func_search_save_LIBS
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8977 $as_echo "$ac_cv_search_dlopen" >&6; }
8978 ac_res=$ac_cv_search_dlopen
8979 if test "$ac_res" != no; then :
8980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8986 LIBS="$gnupg_dlopen_save_libs"
8991 # Check whether --enable-sqlite was given.
8992 if test "${enable_sqlite+set}" = set; then :
8993 enableval=$enable_sqlite; try_sqlite=$enableval
8999 if test x"$use_tofu" = xyes ; then
9000 if test x"$try_sqlite" = xyes ; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9004 $as_echo_n "checking for SQLITE3... " >&6; }
9006 if test -n "$SQLITE3_CFLAGS"; then
9007 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9008 elif test -n "$PKG_CONFIG"; then
9009 if test -n "$PKG_CONFIG" && \
9010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9011 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014 test $ac_status = 0; }; then
9015 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9016 test "x$?" != "x0" && pkg_failed=yes
9023 if test -n "$SQLITE3_LIBS"; then
9024 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9025 elif test -n "$PKG_CONFIG"; then
9026 if test -n "$PKG_CONFIG" && \
9027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9028 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9031 test $ac_status = 0; }; then
9032 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9033 test "x$?" != "x0" && pkg_failed=yes
9043 if test $pkg_failed = yes; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9048 _pkg_short_errors_supported=yes
9050 _pkg_short_errors_supported=no
9052 if test $_pkg_short_errors_supported = yes; then
9053 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9055 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9057 # Put the nasty error message in config.log where it belongs
9058 echo "$SQLITE3_PKG_ERRORS" >&5
9061 elif test $pkg_failed = untried; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9066 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9067 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9069 $as_echo "yes" >&6; }
9073 if test "$have_sqlite" = "yes"; then
9079 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9082 *** Building without SQLite support - TOFU disabled
9085 $as_echo "$as_me: WARNING:
9087 *** Building without SQLite support - TOFU disabled
9093 if test "$have_sqlite" = "yes"; then
9102 if test x"$use_tofu" = xyes ; then
9104 $as_echo "#define USE_TOFU 1" >>confdefs.h
9111 # Extract the first word of "encfs", so it can be a program name with args.
9112 set dummy encfs; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if ${ac_cv_path_ENCFS+:} false; then :
9116 $as_echo_n "(cached) " >&6
9120 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9142 ENCFS=$ac_cv_path_ENCFS
9143 if test -n "$ENCFS"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9145 $as_echo "$ENCFS" >&6; }
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9153 cat >>confdefs.h <<_ACEOF
9154 #define ENCFS "${ENCFS}"
9158 # Extract the first word of "fusermount", so it can be a program name with args.
9159 set dummy fusermount; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9163 $as_echo_n "(cached) " >&6
9167 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9189 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9190 if test -n "$FUSERMOUNT"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9192 $as_echo "$FUSERMOUNT" >&6; }
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9200 cat >>confdefs.h <<_ACEOF
9201 #define FUSERMOUNT "${FUSERMOUNT}"
9206 # Checks for dirmngr
9210 # Checks for symcryptrun:
9213 # libutil has openpty() and login_tty().
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9215 $as_echo_n "checking for openpty in -lutil... " >&6; }
9216 if ${ac_cv_lib_util_openpty+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 ac_check_lib_save_LIBS=$LIBS
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9224 /* Override any GCC internal prototype to avoid an error.
9225 Use char because int might match the return type of a GCC
9226 builtin and then its argument prototype would still apply. */
9239 if ac_fn_c_try_link "$LINENO"; then :
9240 ac_cv_lib_util_openpty=yes
9242 ac_cv_lib_util_openpty=no
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 LIBS=$ac_check_lib_save_LIBS
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9249 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9250 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9251 LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9253 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9260 # shred is used to clean temporary plain text files.
9261 # Extract the first word of "shred", so it can be a program name with args.
9262 set dummy shred; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_SHRED+:} false; then :
9266 $as_echo_n "(cached) " >&6
9270 ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280 ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9292 SHRED=$ac_cv_path_SHRED
9293 if test -n "$SHRED"; then
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9295 $as_echo "$SHRED" >&6; }
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9303 cat >>confdefs.h <<_ACEOF
9304 #define SHRED "${SHRED}"
9310 # Check whether the nPth library is available
9313 # Check whether --with-npth-prefix was given.
9314 if test "${with_npth_prefix+set}" = set; then :
9315 withval=$with_npth_prefix; npth_config_prefix="$withval"
9317 npth_config_prefix=""
9320 if test "x$npth_config_prefix" != x ; then
9321 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9323 # Extract the first word of "npth-config", so it can be a program name with args.
9324 set dummy npth-config; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9328 $as_echo_n "(cached) " >&6
9330 case $NPTH_CONFIG in
9332 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9354 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9355 if test -n "$NPTH_CONFIG"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9357 $as_echo "$NPTH_CONFIG" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9365 if test "$NPTH_CONFIG" != "no" ; then
9366 npth_version=`$NPTH_CONFIG --version`
9368 npth_version_major=`echo $npth_version | \
9369 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9370 npth_version_minor=`echo $npth_version | \
9371 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9373 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9374 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9375 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9376 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9379 min_npth_version="$tmp"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9383 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9385 if test "$NPTH_CONFIG" != "no" ; then
9386 req_major=`echo $min_npth_version | \
9387 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9388 req_minor=`echo $min_npth_version | \
9389 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9390 if test "$npth_version_major" -gt "$req_major"; then
9393 if test "$npth_version_major" -eq "$req_major"; then
9394 if test "$npth_version_minor" -gt "$req_minor"; then
9397 if test "$npth_version_minor" -eq "$req_minor"; then
9404 if test $ok = yes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9406 $as_echo "yes ($npth_version)" >&6; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9409 $as_echo "no" >&6; }
9411 if test $ok = yes; then
9412 # If we have a recent NPTH, we should also check that the
9413 # API is compatible.
9414 if test "$req_npth_api" -gt 0 ; then
9415 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9416 if test "$tmp" -gt 0 ; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9418 $as_echo_n "checking NPTH API version... " >&6; }
9419 if test "$req_npth_api" -eq "$tmp" ; then
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9421 $as_echo "okay" >&6; }
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9425 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9430 if test $ok = yes; then
9431 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9432 NPTH_LIBS=`$NPTH_CONFIG --libs`
9434 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9435 if test x"$npth_config_host" != xnone ; then
9436 if test x"$npth_config_host" != x"$host" ; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9439 *** The config script $NPTH_CONFIG was
9440 *** built for $npth_config_host and thus may not match the
9441 *** used host $host.
9442 *** You may want to use the configure option --with-npth-prefix
9443 *** to specify a matching config script.
9445 $as_echo "$as_me: WARNING:
9447 *** The config script $NPTH_CONFIG was
9448 *** built for $npth_config_host and thus may not match the
9449 *** used host $host.
9450 *** You may want to use the configure option --with-npth-prefix
9451 *** to specify a matching config script.
9463 if test "$have_npth" = "yes"; then
9465 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9468 $as_echo "#define USE_NPTH 1" >>confdefs.h
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9473 *** To support concurrent access for example in gpg-agent and the SCdaemon
9474 *** we need the support of the New Portable Threads Library.
9476 $as_echo "$as_me: WARNING:
9478 *** To support concurrent access for example in gpg-agent and the SCdaemon
9479 *** we need the support of the New Portable Threads Library.
9485 # NTBTLS is our TLS library. If it is not available fallback to
9488 # Check whether --enable-ntbtls was given.
9489 if test "${enable_ntbtls+set}" = set; then :
9490 enableval=$enable_ntbtls; try_ntbtls=$enableval
9495 if test x"$try_ntbtls" = xyes ; then
9498 # Check whether --with-ntbtls-prefix was given.
9499 if test "${with_ntbtls_prefix+set}" = set; then :
9500 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9502 ntbtls_config_prefix=""
9505 if test x"${NTBTLS_CONFIG}" = x ; then
9506 if test x"${ntbtls_config_prefix}" != x ; then
9507 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9509 case "${SYSROOT}" in
9511 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9512 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9519 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9525 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9526 set dummy ntbtls-config; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 case $NTBTLS_CONFIG in
9534 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9556 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9557 if test -n "$NTBTLS_CONFIG"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9559 $as_echo "$NTBTLS_CONFIG" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9566 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9567 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9568 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9569 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9572 min_ntbtls_version="$tmp"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9576 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9578 if test "$NTBTLS_CONFIG" != "no" ; then
9579 req_major=`echo $min_ntbtls_version | \
9580 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9581 req_minor=`echo $min_ntbtls_version | \
9582 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9583 req_micro=`echo $min_ntbtls_version | \
9584 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9585 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9586 major=`echo $ntbtls_config_version | \
9587 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9588 minor=`echo $ntbtls_config_version | \
9589 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9590 micro=`echo $ntbtls_config_version | \
9591 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9592 if test "$major" -gt "$req_major"; then
9595 if test "$major" -eq "$req_major"; then
9596 if test "$minor" -gt "$req_minor"; then
9599 if test "$minor" -eq "$req_minor"; then
9600 if test "$micro" -ge "$req_micro"; then
9608 if test $ok = yes; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9610 $as_echo "yes ($ntbtls_config_version)" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9615 if test $ok = yes; then
9616 # If we have a recent ntbtls, we should also check that the
9618 if test "$req_ntbtls_api" -gt 0 ; then
9619 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9620 if test "$tmp" -gt 0 ; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9622 $as_echo_n "checking NTBTLS API version... " >&6; }
9623 if test "$req_ntbtls_api" -eq "$tmp" ; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9625 $as_echo "okay" >&6; }
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9629 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9634 if test $ok = yes; then
9635 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9636 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9638 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9639 if test x"$ntbtls_config_host" != xnone ; then
9640 if test x"$ntbtls_config_host" != x"$host" ; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9643 *** The config script $NTBTLS_CONFIG was
9644 *** built for $ntbtls_config_host and thus may not match the
9645 *** used host $host.
9646 *** You may want to use the configure option --with-ntbtls-prefix
9647 *** to specify a matching config script or use \$SYSROOT.
9649 $as_echo "$as_me: WARNING:
9651 *** The config script $NTBTLS_CONFIG was
9652 *** built for $ntbtls_config_host and thus may not match the
9653 *** used host $host.
9654 *** You may want to use the configure option --with-ntbtls-prefix
9655 *** to specify a matching config script or use \$SYSROOT.
9657 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9669 if test "$have_ntbtls" = yes ; then
9670 use_tls_library=ntbtls
9672 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9675 # Check whether --enable-gnutls was given.
9676 if test "${enable_gnutls+set}" = set; then :
9677 enableval=$enable_gnutls; try_gnutls=$enableval
9682 if test x"$try_gnutls" = xyes ; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9686 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9688 if test -n "$LIBGNUTLS_CFLAGS"; then
9689 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9690 elif test -n "$PKG_CONFIG"; then
9691 if test -n "$PKG_CONFIG" && \
9692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9693 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9696 test $ac_status = 0; }; then
9697 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9698 test "x$?" != "x0" && pkg_failed=yes
9705 if test -n "$LIBGNUTLS_LIBS"; then
9706 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9707 elif test -n "$PKG_CONFIG"; then
9708 if test -n "$PKG_CONFIG" && \
9709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9710 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713 test $ac_status = 0; }; then
9714 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9715 test "x$?" != "x0" && pkg_failed=yes
9725 if test $pkg_failed = yes; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9729 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9730 _pkg_short_errors_supported=yes
9732 _pkg_short_errors_supported=no
9734 if test $_pkg_short_errors_supported = yes; then
9735 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9737 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9739 # Put the nasty error message in config.log where it belongs
9740 echo "$LIBGNUTLS_PKG_ERRORS" >&5
9743 elif test $pkg_failed = untried; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9748 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9749 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9751 $as_echo "yes" >&6; }
9755 if test "$have_gnutls" = "yes"; then
9758 use_tls_library=gnutls
9760 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9763 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9766 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9769 $as_echo "$as_me: WARNING:
9771 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9779 $as_echo "$as_me: checking for networking options" >&6;}
9782 # Must check for network library requirements before doing link tests
9783 # for ldap, for example. If ldap libs are static (or dynamic and without
9784 # ELF runtime link paths), then link will fail and LDAP support won't
9787 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9788 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9792 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9793 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9794 $as_echo_n "(cached) " >&6
9796 ac_check_lib_save_LIBS=$LIBS
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9807 char gethostbyname ();
9811 return gethostbyname ();
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 ac_cv_lib_nsl_gethostbyname=yes
9819 ac_cv_lib_nsl_gethostbyname=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9826 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9827 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9828 NETLIBS="-lnsl $NETLIBS"
9833 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
9834 if test "x$ac_cv_func_setsockopt" = xyes; then :
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
9838 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
9839 if ${ac_cv_lib_socket_setsockopt+:} false; then :
9840 $as_echo_n "(cached) " >&6
9842 ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-lsocket $LIBS"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9857 return setsockopt ();
9862 if ac_fn_c_try_link "$LINENO"; then :
9863 ac_cv_lib_socket_setsockopt=yes
9865 ac_cv_lib_socket_setsockopt=no
9867 rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
9872 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
9873 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
9874 NETLIBS="-lsocket $NETLIBS"
9882 # Check standard resolver functions.
9884 if test "$build_dirmngr" = "yes"; then
9885 _dns_save_libs=$LIBS
9888 # Find the system resolver which can always be enabled with
9889 # the dirmngr option --standard-resolver.
9891 # the double underscore thing is a glibc-ism?
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
9893 $as_echo_n "checking for library containing res_query... " >&6; }
9894 if ${ac_cv_search_res_query+:} false; then :
9895 $as_echo_n "(cached) " >&6
9897 ac_func_search_save_LIBS=$LIBS
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9911 return res_query ();
9916 for ac_lib in '' resolv bind; do
9917 if test -z "$ac_lib"; then
9918 ac_res="none required"
9921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 if ac_fn_c_try_link "$LINENO"; then :
9924 ac_cv_search_res_query=$ac_res
9926 rm -f core conftest.err conftest.$ac_objext \
9928 if ${ac_cv_search_res_query+:} false; then :
9932 if ${ac_cv_search_res_query+:} false; then :
9935 ac_cv_search_res_query=no
9938 LIBS=$ac_func_search_save_LIBS
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
9941 $as_echo "$ac_cv_search_res_query" >&6; }
9942 ac_res=$ac_cv_search_res_query
9943 if test "$ac_res" != no; then :
9944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
9948 $as_echo_n "checking for library containing __res_query... " >&6; }
9949 if ${ac_cv_search___res_query+:} false; then :
9950 $as_echo_n "(cached) " >&6
9952 ac_func_search_save_LIBS=$LIBS
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9962 char __res_query ();
9966 return __res_query ();
9971 for ac_lib in '' resolv bind; do
9972 if test -z "$ac_lib"; then
9973 ac_res="none required"
9976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9978 if ac_fn_c_try_link "$LINENO"; then :
9979 ac_cv_search___res_query=$ac_res
9981 rm -f core conftest.err conftest.$ac_objext \
9983 if ${ac_cv_search___res_query+:} false; then :
9987 if ${ac_cv_search___res_query+:} false; then :
9990 ac_cv_search___res_query=no
9993 LIBS=$ac_func_search_save_LIBS
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
9996 $as_echo "$ac_cv_search___res_query" >&6; }
9997 ac_res=$ac_cv_search___res_query
9998 if test "$ac_res" != no; then :
9999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10008 $as_echo_n "checking for library containing dn_expand... " >&6; }
10009 if ${ac_cv_search_dn_expand+:} false; then :
10010 $as_echo_n "(cached) " >&6
10012 ac_func_search_save_LIBS=$LIBS
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10026 return dn_expand ();
10031 for ac_lib in '' resolv bind; do
10032 if test -z "$ac_lib"; then
10033 ac_res="none required"
10036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_search_dn_expand=$ac_res
10041 rm -f core conftest.err conftest.$ac_objext \
10043 if ${ac_cv_search_dn_expand+:} false; then :
10047 if ${ac_cv_search_dn_expand+:} false; then :
10050 ac_cv_search_dn_expand=no
10052 rm conftest.$ac_ext
10053 LIBS=$ac_func_search_save_LIBS
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10056 $as_echo "$ac_cv_search_dn_expand" >&6; }
10057 ac_res=$ac_cv_search_dn_expand
10058 if test "$ac_res" != no; then :
10059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10063 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10064 if ${ac_cv_search___dn_expand+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 ac_func_search_save_LIBS=$LIBS
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10077 char __dn_expand ();
10081 return __dn_expand ();
10086 for ac_lib in '' resolv bind; do
10087 if test -z "$ac_lib"; then
10088 ac_res="none required"
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 ac_cv_search___dn_expand=$ac_res
10096 rm -f core conftest.err conftest.$ac_objext \
10098 if ${ac_cv_search___dn_expand+:} false; then :
10102 if ${ac_cv_search___dn_expand+:} false; then :
10105 ac_cv_search___dn_expand=no
10107 rm conftest.$ac_ext
10108 LIBS=$ac_func_search_save_LIBS
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10111 $as_echo "$ac_cv_search___dn_expand" >&6; }
10112 ac_res=$ac_cv_search___dn_expand
10113 if test "$ac_res" != no; then :
10114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10123 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10124 # and for some reason fools us into believing we don't need
10125 # -lresolv even if we do. Since the test program checking for the
10126 # symbol does not include <resolv.h>, we need to check for the
10127 # renamed symbol explicitly.
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10129 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10130 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10131 $as_echo_n "(cached) " >&6
10133 ac_func_search_save_LIBS=$LIBS
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10143 char res_9_dn_skipname ();
10147 return res_9_dn_skipname ();
10152 for ac_lib in '' resolv bind; do
10153 if test -z "$ac_lib"; then
10154 ac_res="none required"
10157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 ac_cv_search_res_9_dn_skipname=$ac_res
10162 rm -f core conftest.err conftest.$ac_objext \
10164 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10168 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10171 ac_cv_search_res_9_dn_skipname=no
10173 rm conftest.$ac_ext
10174 LIBS=$ac_func_search_save_LIBS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10177 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10178 ac_res=$ac_cv_search_res_9_dn_skipname
10179 if test "$ac_res" != no; then :
10180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10184 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10185 if ${ac_cv_search_dn_skipname+:} false; then :
10186 $as_echo_n "(cached) " >&6
10188 ac_func_search_save_LIBS=$LIBS
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10198 char dn_skipname ();
10202 return dn_skipname ();
10207 for ac_lib in '' resolv bind; do
10208 if test -z "$ac_lib"; then
10209 ac_res="none required"
10212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10214 if ac_fn_c_try_link "$LINENO"; then :
10215 ac_cv_search_dn_skipname=$ac_res
10217 rm -f core conftest.err conftest.$ac_objext \
10219 if ${ac_cv_search_dn_skipname+:} false; then :
10223 if ${ac_cv_search_dn_skipname+:} false; then :
10226 ac_cv_search_dn_skipname=no
10228 rm conftest.$ac_ext
10229 LIBS=$ac_func_search_save_LIBS
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10232 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10233 ac_res=$ac_cv_search_dn_skipname
10234 if test "$ac_res" != no; then :
10235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10239 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10240 if ${ac_cv_search___dn_skipname+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 ac_func_search_save_LIBS=$LIBS
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10253 char __dn_skipname ();
10257 return __dn_skipname ();
10262 for ac_lib in '' resolv bind; do
10263 if test -z "$ac_lib"; then
10264 ac_res="none required"
10267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 ac_cv_search___dn_skipname=$ac_res
10272 rm -f core conftest.err conftest.$ac_objext \
10274 if ${ac_cv_search___dn_skipname+:} false; then :
10278 if ${ac_cv_search___dn_skipname+:} false; then :
10281 ac_cv_search___dn_skipname=no
10283 rm conftest.$ac_ext
10284 LIBS=$ac_func_search_save_LIBS
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10287 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10288 ac_res=$ac_cv_search___dn_skipname
10289 if test "$ac_res" != no; then :
10290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10301 if test x"$have_resolver" != xno ; then
10303 # Make sure that the BIND 4 resolver interface is workable before
10304 # enabling any code that calls it. At some point I'll rewrite the
10305 # code to use the BIND 8 resolver API.
10306 # We might also want to use libdns instead.
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10309 $as_echo_n "checking whether the resolver is usable... " >&6; }
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 #include <sys/types.h>
10313 #include <netinet/in.h>
10314 #include <arpa/nameser.h>
10315 #include <resolv.h>
10319 unsigned char answer[PACKETSZ];
10320 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10322 dn_expand(0,0,0,0,0);
10328 if ac_fn_c_try_link "$LINENO"; then :
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10336 $as_echo "$have_resolver" >&6; }
10338 # This is Apple-specific and somewhat bizarre as they changed the
10339 # define in bind 8 for some reason.
10341 if test x"$have_resolver" != xyes ; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10343 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 #define BIND_8_COMPAT
10347 #include <sys/types.h>
10348 #include <netinet/in.h>
10349 #include <arpa/nameser.h>
10350 #include <resolv.h>
10354 unsigned char answer[PACKETSZ];
10355 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10356 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10362 if ac_fn_c_try_link "$LINENO"; then :
10363 have_resolver=yes ; need_compat=yes
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10368 $as_echo "$have_resolver" >&6; }
10372 if test x"$have_resolver" = xyes ; then
10374 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10376 DNSLIBS="$DNSLIBS $LIBS"
10377 if test x"$need_compat" = xyes ; then
10379 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10382 if test "$use_libdns" = yes; then
10383 show_tor_support=yes
10385 elif test "$use_libdns" = yes; then
10386 show_tor_support=yes
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10390 *** The system's DNS resolver is not usable.
10391 *** Dirmngr functionality is limited.
10393 $as_echo "$as_me: WARNING:
10395 *** The system's DNS resolver is not usable.
10396 *** Dirmngr functionality is limited.
10398 show_tor_support="${show_tor_support} (no system resolver)"
10401 if test "$have_w32_system" = yes; then
10402 if test "$use_libdns" = yes; then
10403 DNSLIBS="$DNSLIBS -liphlpapi"
10407 LIBS=$_dns_save_libs
10416 # Note that running the check changes the variable
10417 # gnupg_have_ldap from "n/a" to "no" or "yes".
10419 # Check whether --enable-ldap was given.
10420 if test "${enable_ldap+set}" = set; then :
10421 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10425 if test "$gnupg_have_ldap" != "no" ; then
10426 if test "$build_dirmngr" = "yes" ; then
10428 # Try and link a LDAP test program to weed out unusable LDAP
10429 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10430 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10431 # If all else fails, the user can play guess-the-dependency by using
10432 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10435 # Check whether --with-ldap was given.
10436 if test "${with_ldap+set}" = set; then :
10437 withval=$with_ldap; _ldap_with=$withval
10441 if test x$_ldap_with != xno ; then
10443 if test -d "$withval" ; then
10444 LDAP_CPPFLAGS="-I$withval/include"
10445 LDAP_LDFLAGS="-L$withval/lib"
10448 _ldap_save_cppflags=$CPPFLAGS
10449 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10450 _ldap_save_ldflags=$LDFLAGS
10451 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10453 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10454 _ldap_save_libs=$LIBS
10455 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10458 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10463 #include <winsock2.h>
10464 #include <winldap.h>
10472 ldap_open("foobar",1234);
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 gnupg_cv_func_ldap_init=yes
10480 gnupg_cv_func_ldap_init=no
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10485 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10487 if test $gnupg_cv_func_ldap_init = no; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10489 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10497 ldap_open("foobar",1234);
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 gnupg_cv_func_ldaplber_init=yes
10505 gnupg_cv_func_ldaplber_init=no
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10510 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10513 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10515 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10519 if test "$gnupg_cv_func_ldap_init" = yes || \
10520 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10521 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10522 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10523 gnupg_have_ldap=yes
10525 for ac_func in ldap_get_option ldap_set_option
10527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10530 cat >>confdefs.h <<_ACEOF
10531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10537 # The extra test for ldap_start_tls_sA is for W32 because
10538 # that is the actual function in the library.
10539 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10552 if test "$ac_cv_func_ldap_get_option" != yes ; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10554 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10561 LDAP *ldap; ldap->ld_errno;
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 gnupg_cv_func_ldap_ld_errno=yes
10569 gnupg_cv_func_ldap_ld_errno=no
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10574 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10576 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10578 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10584 LIBS=$_ldap_save_libs
10586 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10593 CPPFLAGS=$_ldap_save_cppflags
10594 LDFLAGS=$_ldap_save_ldflags
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10598 $as_echo_n "checking for ber_free in -llber... " >&6; }
10599 if ${ac_cv_lib_lber_ber_free+:} false; then :
10600 $as_echo_n "(cached) " >&6
10602 ac_check_lib_save_LIBS=$LIBS
10603 LIBS="-llber $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10617 return ber_free ();
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 ac_cv_lib_lber_ber_free=yes
10625 ac_cv_lib_lber_ber_free=no
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10632 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10633 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10634 LBER_LIBS="$LBER_LIBS -llber"
10636 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10645 if test "$gnupg_have_ldap" = "no"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10648 *** Building without LDAP support.
10649 *** No CRL access or X.509 certificate search available.
10651 $as_echo "$as_me: WARNING:
10653 *** Building without LDAP support.
10654 *** No CRL access or X.509 certificate search available.
10658 if test "$gnupg_have_ldap" = yes; then
10666 if test "$gnupg_have_ldap" = yes ; then
10668 $as_echo "#define USE_LDAP 1" >>confdefs.h
10674 if test "$use_ldapwrapper" = yes; then
10676 $as_echo "#define USE_LDAPWRAPPER 1" >>confdefs.h
10679 if test "$use_ldapwrapper" = yes; then
10680 USE_LDAPWRAPPER_TRUE=
10681 USE_LDAPWRAPPER_FALSE='#'
10683 USE_LDAPWRAPPER_TRUE='#'
10684 USE_LDAPWRAPPER_FALSE=
10692 # Check for sendmail
10694 # This isn't necessarily sendmail itself, but anything that gives a
10695 # sendmail-ish interface to the outside world. That includes Exim,
10696 # Postfix, etc. Basically, anything that can handle "sendmail -t".
10698 # Check whether --with-mailprog was given.
10699 if test "${with_mailprog+set}" = set; then :
10700 withval=$with_mailprog;
10705 if test x"$with_mailprog" = xyes ; then
10706 # Extract the first word of "sendmail", so it can be a program name with args.
10707 set dummy sendmail; ac_word=$2
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10709 $as_echo_n "checking for $ac_word... " >&6; }
10710 if ${ac_cv_path_SENDMAIL+:} false; then :
10711 $as_echo_n "(cached) " >&6
10715 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 as_dummy="$PATH:/usr/sbin:/usr/libexec:/usr/lib"
10720 for as_dir in $as_dummy
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 SENDMAIL=$ac_cv_path_SENDMAIL
10738 if test -n "$SENDMAIL"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10740 $as_echo "$SENDMAIL" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10747 elif test x"$with_mailprog" != xno ; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10749 $as_echo_n "checking for a mail transport program... " >&6; }
10750 SENDMAIL=$with_mailprog
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10753 $as_echo "$with_mailprog" >&6; }
10758 # Construct a printable name of the OS
10762 PRINTABLE_OS_NAME="W32CE"
10765 PRINTABLE_OS_NAME="MingW32"
10768 PRINTABLE_OS_NAME="Cygwin"
10770 i?86-emx-os2 | i?86-*-os2*emx )
10771 PRINTABLE_OS_NAME="OS/2"
10773 i?86-*-msdosdjgpp*)
10774 PRINTABLE_OS_NAME="MSDOS/DJGPP"
10778 PRINTABLE_OS_NAME="GNU/Linux"
10781 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10785 cat >>confdefs.h <<_ACEOF
10786 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10792 # Checking for iconv
10794 if test "$require_iconv" = yes; then
10796 if test "X$prefix" = "XNONE"; then
10797 acl_final_prefix="$ac_default_prefix"
10799 acl_final_prefix="$prefix"
10801 if test "X$exec_prefix" = "XNONE"; then
10802 acl_final_exec_prefix='${prefix}'
10804 acl_final_exec_prefix="$exec_prefix"
10806 acl_save_prefix="$prefix"
10807 prefix="$acl_final_prefix"
10808 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10809 prefix="$acl_save_prefix"
10812 # Check whether --with-gnu-ld was given.
10813 if test "${with_gnu_ld+set}" = set; then :
10814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10819 # Prepare PATH_SEPARATOR.
10820 # The user is always right.
10821 if test "${PATH_SEPARATOR+set}" != set; then
10822 echo "#! /bin/sh" >conf$$.sh
10823 echo "exit 0" >>conf$$.sh
10825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10833 if test "$GCC" = yes; then
10834 # Check if gcc -print-prog-name=ld gives a path.
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10836 $as_echo_n "checking for ld used by GCC... " >&6; }
10839 # gcc leaves a trailing carriage return which upsets mingw
10840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10845 # Accept absolute paths.
10846 [\\/]* | [A-Za-z]:[\\/]*)
10847 re_direlt='/[^/][^/]*/\.\./'
10848 # Canonicalize the path of ld
10849 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10851 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10853 test -z "$LD" && LD="$ac_prog"
10856 # If it fails, then pretend we aren't using GCC.
10860 # If it is relative, then search for the first ld in PATH.
10861 with_gnu_ld=unknown
10864 elif test "$with_gnu_ld" = yes; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10866 $as_echo_n "checking for GNU ld... " >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10869 $as_echo_n "checking for non-GNU ld... " >&6; }
10871 if ${acl_cv_path_LD+:} false; then :
10872 $as_echo_n "(cached) " >&6
10874 if test -z "$LD"; then
10875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10876 for ac_dir in $PATH; do
10877 test -z "$ac_dir" && ac_dir=.
10878 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10879 acl_cv_path_LD="$ac_dir/$ac_prog"
10880 # Check to see if the program is GNU ld. I'd rather use --version,
10881 # but apparently some GNU ld's only accept -v.
10882 # Break only if it was the GNU/non-GNU ld that we prefer.
10883 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10884 *GNU* | *'with BFD'*)
10885 test "$with_gnu_ld" != no && break ;;
10887 test "$with_gnu_ld" != yes && break ;;
10893 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10897 LD="$acl_cv_path_LD"
10898 if test -n "$LD"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10900 $as_echo "$LD" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10907 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10908 if ${acl_cv_prog_gnu_ld+:} false; then :
10909 $as_echo_n "(cached) " >&6
10911 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10912 case `$LD -v 2>&1 </dev/null` in
10913 *GNU* | *'with BFD'*)
10914 acl_cv_prog_gnu_ld=yes ;;
10916 acl_cv_prog_gnu_ld=no ;;
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10921 with_gnu_ld=$acl_cv_prog_gnu_ld
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10927 $as_echo_n "checking for shared library run path origin... " >&6; }
10928 if ${acl_cv_rpath+:} false; then :
10929 $as_echo_n "(cached) " >&6
10932 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10933 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10935 rm -f ./conftest.sh
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10940 $as_echo "$acl_cv_rpath" >&6; }
10942 acl_libext="$acl_cv_libext"
10943 acl_shlibext="$acl_cv_shlibext"
10944 acl_libname_spec="$acl_cv_libname_spec"
10945 acl_library_names_spec="$acl_cv_library_names_spec"
10946 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10947 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10948 acl_hardcode_direct="$acl_cv_hardcode_direct"
10949 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10950 # Check whether --enable-rpath was given.
10951 if test "${enable_rpath+set}" = set; then :
10952 enableval=$enable_rpath; :
10960 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10961 if test -n "$searchpath"; then
10962 acl_save_IFS="${IFS= }"; IFS=":"
10963 for searchdir in $searchpath; do
10964 if test -d "$searchdir"; then
10965 case "$searchdir" in
10966 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10967 *) searchdir=`cd "$searchdir" && pwd`
10968 case "$searchdir" in
10969 */lib64 ) acl_libdirstem=lib64 ;;
10974 IFS="$acl_save_IFS"
10987 acl_save_prefix="$prefix"
10988 prefix="$acl_final_prefix"
10989 acl_save_exec_prefix="$exec_prefix"
10990 exec_prefix="$acl_final_exec_prefix"
10992 eval additional_includedir=\"$includedir\"
10993 eval additional_libdir=\"$libdir\"
10995 exec_prefix="$acl_save_exec_prefix"
10996 prefix="$acl_save_prefix"
10999 # Check whether --with-libiconv-prefix was given.
11000 if test "${with_libiconv_prefix+set}" = set; then :
11001 withval=$with_libiconv_prefix;
11002 if test "X$withval" = "Xno"; then
11005 if test "X$withval" = "X"; then
11007 acl_save_prefix="$prefix"
11008 prefix="$acl_final_prefix"
11009 acl_save_exec_prefix="$exec_prefix"
11010 exec_prefix="$acl_final_exec_prefix"
11012 eval additional_includedir=\"$includedir\"
11013 eval additional_libdir=\"$libdir\"
11015 exec_prefix="$acl_save_exec_prefix"
11016 prefix="$acl_save_prefix"
11019 additional_includedir="$withval/include"
11020 additional_libdir="$withval/$acl_libdirstem"
11032 names_already_handled=
11033 names_next_round='iconv '
11034 while test -n "$names_next_round"; do
11035 names_this_round="$names_next_round"
11037 for name in $names_this_round; do
11039 for n in $names_already_handled; do
11040 if test "$n" = "$name"; then
11041 already_handled=yes
11045 if test -z "$already_handled"; then
11046 names_already_handled="$names_already_handled $name"
11047 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11048 eval value=\"\$HAVE_LIB$uppername\"
11049 if test -n "$value"; then
11050 if test "$value" = yes; then
11051 eval value=\"\$LIB$uppername\"
11052 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11053 eval value=\"\$LTLIB$uppername\"
11054 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11063 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11064 if test -n "$acl_shlibext"; then
11065 shrext=".$acl_shlibext" # typically: shrext=.so
11069 if test $use_additional = yes; then
11070 dir="$additional_libdir"
11071 if test -n "$acl_shlibext"; then
11072 if test -f "$dir/$libname$shrext"; then
11074 found_so="$dir/$libname$shrext"
11076 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11077 ver=`(cd "$dir" && \
11078 for f in "$libname$shrext".*; do echo "$f"; done \
11079 | sed -e "s,^$libname$shrext\\\\.,," \
11080 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11081 | sed 1q ) 2>/dev/null`
11082 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11084 found_so="$dir/$libname$shrext.$ver"
11087 eval library_names=\"$acl_library_names_spec\"
11088 for f in $library_names; do
11089 if test -f "$dir/$f"; then
11098 if test "X$found_dir" = "X"; then
11099 if test -f "$dir/$libname.$acl_libext"; then
11101 found_a="$dir/$libname.$acl_libext"
11104 if test "X$found_dir" != "X"; then
11105 if test -f "$dir/$libname.la"; then
11106 found_la="$dir/$libname.la"
11110 if test "X$found_dir" = "X"; then
11111 for x in $LDFLAGS $LTLIBICONV; do
11113 acl_save_prefix="$prefix"
11114 prefix="$acl_final_prefix"
11115 acl_save_exec_prefix="$exec_prefix"
11116 exec_prefix="$acl_final_exec_prefix"
11118 exec_prefix="$acl_save_exec_prefix"
11119 prefix="$acl_save_prefix"
11123 dir=`echo "X$x" | sed -e 's/^X-L//'`
11124 if test -n "$acl_shlibext"; then
11125 if test -f "$dir/$libname$shrext"; then
11127 found_so="$dir/$libname$shrext"
11129 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11130 ver=`(cd "$dir" && \
11131 for f in "$libname$shrext".*; do echo "$f"; done \
11132 | sed -e "s,^$libname$shrext\\\\.,," \
11133 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11134 | sed 1q ) 2>/dev/null`
11135 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11137 found_so="$dir/$libname$shrext.$ver"
11140 eval library_names=\"$acl_library_names_spec\"
11141 for f in $library_names; do
11142 if test -f "$dir/$f"; then
11151 if test "X$found_dir" = "X"; then
11152 if test -f "$dir/$libname.$acl_libext"; then
11154 found_a="$dir/$libname.$acl_libext"
11157 if test "X$found_dir" != "X"; then
11158 if test -f "$dir/$libname.la"; then
11159 found_la="$dir/$libname.la"
11164 if test "X$found_dir" != "X"; then
11169 if test "X$found_dir" != "X"; then
11170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11171 if test "X$found_so" != "X"; then
11172 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11176 for x in $ltrpathdirs; do
11177 if test "X$x" = "X$found_dir"; then
11182 if test -z "$haveit"; then
11183 ltrpathdirs="$ltrpathdirs $found_dir"
11185 if test "$acl_hardcode_direct" = yes; then
11186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11188 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11191 for x in $rpathdirs; do
11192 if test "X$x" = "X$found_dir"; then
11197 if test -z "$haveit"; then
11198 rpathdirs="$rpathdirs $found_dir"
11202 for x in $LDFLAGS $LIBICONV; do
11204 acl_save_prefix="$prefix"
11205 prefix="$acl_final_prefix"
11206 acl_save_exec_prefix="$exec_prefix"
11207 exec_prefix="$acl_final_exec_prefix"
11209 exec_prefix="$acl_save_exec_prefix"
11210 prefix="$acl_save_prefix"
11212 if test "X$x" = "X-L$found_dir"; then
11217 if test -z "$haveit"; then
11218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11220 if test "$acl_hardcode_minus_L" != no; then
11221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11229 if test "X$found_a" != "X"; then
11230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11235 additional_includedir=
11236 case "$found_dir" in
11237 */$acl_libdirstem | */$acl_libdirstem/)
11238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11239 LIBICONV_PREFIX="$basedir"
11240 additional_includedir="$basedir/include"
11243 if test "X$additional_includedir" != "X"; then
11244 if test "X$additional_includedir" != "X/usr/include"; then
11246 if test "X$additional_includedir" = "X/usr/local/include"; then
11247 if test -n "$GCC"; then
11249 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11253 if test -z "$haveit"; then
11254 for x in $CPPFLAGS $INCICONV; do
11256 acl_save_prefix="$prefix"
11257 prefix="$acl_final_prefix"
11258 acl_save_exec_prefix="$exec_prefix"
11259 exec_prefix="$acl_final_exec_prefix"
11261 exec_prefix="$acl_save_exec_prefix"
11262 prefix="$acl_save_prefix"
11264 if test "X$x" = "X-I$additional_includedir"; then
11269 if test -z "$haveit"; then
11270 if test -d "$additional_includedir"; then
11271 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11277 if test -n "$found_la"; then
11278 save_libdir="$libdir"
11279 case "$found_la" in
11280 */* | *\\*) . "$found_la" ;;
11281 *) . "./$found_la" ;;
11283 libdir="$save_libdir"
11284 for dep in $dependency_libs; do
11287 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11288 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11290 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11291 if test -n "$GCC"; then
11293 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11297 if test -z "$haveit"; then
11299 for x in $LDFLAGS $LIBICONV; do
11301 acl_save_prefix="$prefix"
11302 prefix="$acl_final_prefix"
11303 acl_save_exec_prefix="$exec_prefix"
11304 exec_prefix="$acl_final_exec_prefix"
11306 exec_prefix="$acl_save_exec_prefix"
11307 prefix="$acl_save_prefix"
11309 if test "X$x" = "X-L$additional_libdir"; then
11314 if test -z "$haveit"; then
11315 if test -d "$additional_libdir"; then
11316 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11320 for x in $LDFLAGS $LTLIBICONV; do
11322 acl_save_prefix="$prefix"
11323 prefix="$acl_final_prefix"
11324 acl_save_exec_prefix="$exec_prefix"
11325 exec_prefix="$acl_final_exec_prefix"
11327 exec_prefix="$acl_save_exec_prefix"
11328 prefix="$acl_save_prefix"
11330 if test "X$x" = "X-L$additional_libdir"; then
11335 if test -z "$haveit"; then
11336 if test -d "$additional_libdir"; then
11337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11344 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11345 if test "$enable_rpath" != no; then
11347 for x in $rpathdirs; do
11348 if test "X$x" = "X$dir"; then
11353 if test -z "$haveit"; then
11354 rpathdirs="$rpathdirs $dir"
11357 for x in $ltrpathdirs; do
11358 if test "X$x" = "X$dir"; then
11363 if test -z "$haveit"; then
11364 ltrpathdirs="$ltrpathdirs $dir"
11369 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11372 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11375 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11376 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11382 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11389 if test "X$rpathdirs" != "X"; then
11390 if test -n "$acl_hardcode_libdir_separator"; then
11392 for found_dir in $rpathdirs; do
11393 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11395 acl_save_libdir="$libdir"
11397 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11398 libdir="$acl_save_libdir"
11399 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11401 for found_dir in $rpathdirs; do
11402 acl_save_libdir="$libdir"
11403 libdir="$found_dir"
11404 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11405 libdir="$acl_save_libdir"
11406 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11410 if test "X$ltrpathdirs" != "X"; then
11411 for found_dir in $ltrpathdirs; do
11412 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11422 am_save_CPPFLAGS="$CPPFLAGS"
11424 for element in $INCICONV; do
11426 for x in $CPPFLAGS; do
11428 acl_save_prefix="$prefix"
11429 prefix="$acl_final_prefix"
11430 acl_save_exec_prefix="$exec_prefix"
11431 exec_prefix="$acl_final_exec_prefix"
11433 exec_prefix="$acl_save_exec_prefix"
11434 prefix="$acl_save_prefix"
11436 if test "X$x" = "X$element"; then
11441 if test -z "$haveit"; then
11442 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11448 $as_echo_n "checking for iconv... " >&6; }
11449 if ${am_cv_func_iconv+:} false; then :
11450 $as_echo_n "(cached) " >&6
11453 am_cv_func_iconv="no, consider installing GNU libiconv"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457 #include <stdlib.h>
11462 iconv_t cd = iconv_open("","");
11463 iconv(cd,NULL,NULL,NULL,NULL);
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 am_cv_func_iconv=yes
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 if test "$am_cv_func_iconv" != yes; then
11475 am_save_LIBS="$LIBS"
11476 LIBS="$LIBS $LIBICONV"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 #include <stdlib.h>
11484 iconv_t cd = iconv_open("","");
11485 iconv(cd,NULL,NULL,NULL,NULL);
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 am_cv_lib_iconv=yes
11493 am_cv_func_iconv=yes
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS="$am_save_LIBS"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11502 $as_echo "$am_cv_func_iconv" >&6; }
11503 if test "$am_cv_func_iconv" = yes; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11505 $as_echo_n "checking for working iconv... " >&6; }
11506 if ${am_cv_func_iconv_works+:} false; then :
11507 $as_echo_n "(cached) " >&6
11510 am_save_LIBS="$LIBS"
11511 if test $am_cv_lib_iconv = yes; then
11512 LIBS="$LIBS $LIBICONV"
11514 if test "$cross_compiling" = yes; then :
11516 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11517 *) am_cv_func_iconv_works="guessing yes" ;;
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11524 #include <string.h>
11527 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11530 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11531 if (cd_utf8_to_88591 != (iconv_t)(-1))
11533 static const char input[] = "\342\202\254"; /* EURO SIGN */
11535 const char *inptr = input;
11536 size_t inbytesleft = strlen (input);
11537 char *outptr = buf;
11538 size_t outbytesleft = sizeof (buf);
11539 size_t res = iconv (cd_utf8_to_88591,
11540 (char **) &inptr, &inbytesleft,
11541 &outptr, &outbytesleft);
11546 #if 0 /* This bug could be worked around by the caller. */
11547 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11549 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11550 if (cd_88591_to_utf8 != (iconv_t)(-1))
11552 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11554 const char *inptr = input;
11555 size_t inbytesleft = strlen (input);
11556 char *outptr = buf;
11557 size_t outbytesleft = sizeof (buf);
11558 size_t res = iconv (cd_88591_to_utf8,
11559 (char **) &inptr, &inbytesleft,
11560 &outptr, &outbytesleft);
11566 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11568 if (/* Try standardized names. */
11569 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11570 /* Try IRIX, OSF/1 names. */
11571 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11572 /* Try AIX names. */
11573 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11574 /* Try HP-UX names. */
11575 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11580 if ac_fn_c_try_run "$LINENO"; then :
11581 am_cv_func_iconv_works=yes
11583 am_cv_func_iconv_works=no
11585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11586 conftest.$ac_objext conftest.beam conftest.$ac_ext
11589 LIBS="$am_save_LIBS"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11593 $as_echo "$am_cv_func_iconv_works" >&6; }
11594 case "$am_cv_func_iconv_works" in
11595 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11596 *) am_func_iconv=yes ;;
11599 am_func_iconv=no am_cv_lib_iconv=no
11601 if test "$am_func_iconv" = yes; then
11603 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11606 if test "$am_cv_lib_iconv" = yes; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11608 $as_echo_n "checking how to link with libiconv... " >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11610 $as_echo "$LIBICONV" >&6; }
11612 CPPFLAGS="$am_save_CPPFLAGS"
11619 if test "$am_cv_func_iconv" = yes; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11621 $as_echo_n "checking for iconv declaration... " >&6; }
11622 if ${am_cv_proto_iconv+:} false; then :
11623 $as_echo_n "(cached) " >&6
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 #include <stdlib.h>
11635 #if defined(__STDC__) || defined(__cplusplus)
11636 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650 am_cv_proto_iconv_arg1=""
11652 am_cv_proto_iconv_arg1="const"
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11658 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11660 }$am_cv_proto_iconv" >&5
11662 }$am_cv_proto_iconv" >&6; }
11664 cat >>confdefs.h <<_ACEOF
11665 #define ICONV_CONST $am_cv_proto_iconv_arg1
11679 # Check for gettext
11681 # This is "GNU gnupg" - The project-id script from gettext
11682 # needs this string
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11685 $as_echo "$as_me: checking for gettext" >&6;}
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11688 $as_echo_n "checking whether NLS is requested... " >&6; }
11689 # Check whether --enable-nls was given.
11690 if test "${enable_nls+set}" = set; then :
11691 enableval=$enable_nls; USE_NLS=$enableval
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11697 $as_echo "$USE_NLS" >&6; }
11702 GETTEXT_MACRO_VERSION=0.17
11707 # Prepare PATH_SEPARATOR.
11708 # The user is always right.
11709 if test "${PATH_SEPARATOR+set}" != set; then
11710 echo "#! /bin/sh" >conf$$.sh
11711 echo "exit 0" >>conf$$.sh
11713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11721 # Find out how to test for executable files. Don't use a zero-byte file,
11722 # as systems may use methods other than mode bits to determine executability.
11723 cat >conf$$.file <<_ASEOF
11727 chmod +x conf$$.file
11728 if test -x conf$$.file >/dev/null 2>&1; then
11729 ac_executable_p="test -x"
11731 ac_executable_p="test -f"
11735 # Extract the first word of "msgfmt", so it can be a program name with args.
11736 set dummy msgfmt; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_path_MSGFMT+:} false; then :
11740 $as_echo_n "(cached) " >&6
11744 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11747 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11748 for ac_dir in $PATH; do
11750 test -z "$ac_dir" && ac_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11753 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11754 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11755 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11756 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11763 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11767 MSGFMT="$ac_cv_path_MSGFMT"
11768 if test "$MSGFMT" != ":"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11770 $as_echo "$MSGFMT" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11776 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11777 set dummy gmsgfmt; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_GMSGFMT+:} false; then :
11781 $as_echo_n "(cached) " >&6
11785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11807 GMSGFMT=$ac_cv_path_GMSGFMT
11808 if test -n "$GMSGFMT"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11810 $as_echo "$GMSGFMT" >&6; }
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11818 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11819 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11820 *) MSGFMT_015=$MSGFMT ;;
11823 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11824 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11825 *) GMSGFMT_015=$GMSGFMT ;;
11830 # Prepare PATH_SEPARATOR.
11831 # The user is always right.
11832 if test "${PATH_SEPARATOR+set}" != set; then
11833 echo "#! /bin/sh" >conf$$.sh
11834 echo "exit 0" >>conf$$.sh
11836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11844 # Find out how to test for executable files. Don't use a zero-byte file,
11845 # as systems may use methods other than mode bits to determine executability.
11846 cat >conf$$.file <<_ASEOF
11850 chmod +x conf$$.file
11851 if test -x conf$$.file >/dev/null 2>&1; then
11852 ac_executable_p="test -x"
11854 ac_executable_p="test -f"
11858 # Extract the first word of "xgettext", so it can be a program name with args.
11859 set dummy xgettext; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_path_XGETTEXT+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 case "$XGETTEXT" in
11867 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11871 for ac_dir in $PATH; do
11873 test -z "$ac_dir" && ac_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11876 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11877 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11878 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11879 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11886 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11890 XGETTEXT="$ac_cv_path_XGETTEXT"
11891 if test "$XGETTEXT" != ":"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11893 $as_echo "$XGETTEXT" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11901 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11902 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11903 *) XGETTEXT_015=$XGETTEXT ;;
11908 # Prepare PATH_SEPARATOR.
11909 # The user is always right.
11910 if test "${PATH_SEPARATOR+set}" != set; then
11911 echo "#! /bin/sh" >conf$$.sh
11912 echo "exit 0" >>conf$$.sh
11914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11922 # Find out how to test for executable files. Don't use a zero-byte file,
11923 # as systems may use methods other than mode bits to determine executability.
11924 cat >conf$$.file <<_ASEOF
11928 chmod +x conf$$.file
11929 if test -x conf$$.file >/dev/null 2>&1; then
11930 ac_executable_p="test -x"
11932 ac_executable_p="test -f"
11936 # Extract the first word of "msgmerge", so it can be a program name with args.
11937 set dummy msgmerge; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_path_MSGMERGE+:} false; then :
11941 $as_echo_n "(cached) " >&6
11943 case "$MSGMERGE" in
11945 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11948 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11949 for ac_dir in $PATH; do
11951 test -z "$ac_dir" && ac_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11954 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11955 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11956 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11963 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11967 MSGMERGE="$ac_cv_path_MSGMERGE"
11968 if test "$MSGMERGE" != ":"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11970 $as_echo "$MSGMERGE" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11977 test -n "$localedir" || localedir='${datadir}/locale'
11980 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
11983 ac_config_commands="$ac_config_commands po-directories"
11987 if test "$try_gettext" = yes; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12012 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12013 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12014 $as_echo_n "(cached) " >&6
12016 gt_save_LIBS="$LIBS"
12017 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <CoreFoundation/CFPreferences.h>
12024 CFPreferencesCopyAppValue(NULL, NULL)
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 gt_cv_func_CFPreferencesCopyAppValue=yes
12032 gt_cv_func_CFPreferencesCopyAppValue=no
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS="$gt_save_LIBS"
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12039 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12040 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12042 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12046 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12047 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12048 $as_echo_n "(cached) " >&6
12050 gt_save_LIBS="$LIBS"
12051 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 #include <CoreFoundation/CFLocale.h>
12058 CFLocaleCopyCurrent();
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 gt_cv_func_CFLocaleCopyCurrent=yes
12066 gt_cv_func_CFLocaleCopyCurrent=no
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS="$gt_save_LIBS"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12073 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12074 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12076 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12080 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12081 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12093 case " $gt_needs " in
12094 *" need-formatstring-macros "*) gt_api_version=3 ;;
12095 *" need-ngettext "*) gt_api_version=2 ;;
12096 *) gt_api_version=1 ;;
12098 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12099 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12101 if test "$USE_NLS" = "yes"; then
12102 gt_use_preinstalled_gnugettext=no
12105 if test $gt_api_version -ge 3; then
12106 gt_revision_test_code='
12107 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12108 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12110 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12113 gt_revision_test_code=
12115 if test $gt_api_version -ge 2; then
12116 gt_expression_test_code=' + * ngettext ("", "", 0)'
12118 gt_expression_test_code=
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12122 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12123 if eval \${$gt_func_gnugettext_libc+:} false; then :
12124 $as_echo_n "(cached) " >&6
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <libintl.h>
12129 $gt_revision_test_code
12130 extern int _nl_msg_cat_cntr;
12131 extern int *_nl_domain_bindings;
12135 bindtextdomain ("", "");
12136 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 eval "$gt_func_gnugettext_libc=yes"
12144 eval "$gt_func_gnugettext_libc=no"
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12149 eval ac_res=\$$gt_func_gnugettext_libc
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12151 $as_echo "$ac_res" >&6; }
12153 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12159 am_save_CPPFLAGS="$CPPFLAGS"
12161 for element in $INCICONV; do
12163 for x in $CPPFLAGS; do
12165 acl_save_prefix="$prefix"
12166 prefix="$acl_final_prefix"
12167 acl_save_exec_prefix="$exec_prefix"
12168 exec_prefix="$acl_final_exec_prefix"
12170 exec_prefix="$acl_save_exec_prefix"
12171 prefix="$acl_save_prefix"
12173 if test "X$x" = "X$element"; then
12178 if test -z "$haveit"; then
12179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12185 $as_echo_n "checking for iconv... " >&6; }
12186 if ${am_cv_func_iconv+:} false; then :
12187 $as_echo_n "(cached) " >&6
12190 am_cv_func_iconv="no, consider installing GNU libiconv"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12194 #include <stdlib.h>
12199 iconv_t cd = iconv_open("","");
12200 iconv(cd,NULL,NULL,NULL,NULL);
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 am_cv_func_iconv=yes
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 if test "$am_cv_func_iconv" != yes; then
12212 am_save_LIBS="$LIBS"
12213 LIBS="$LIBS $LIBICONV"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 #include <stdlib.h>
12221 iconv_t cd = iconv_open("","");
12222 iconv(cd,NULL,NULL,NULL,NULL);
12228 if ac_fn_c_try_link "$LINENO"; then :
12229 am_cv_lib_iconv=yes
12230 am_cv_func_iconv=yes
12232 rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS="$am_save_LIBS"
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12239 $as_echo "$am_cv_func_iconv" >&6; }
12240 if test "$am_cv_func_iconv" = yes; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12242 $as_echo_n "checking for working iconv... " >&6; }
12243 if ${am_cv_func_iconv_works+:} false; then :
12244 $as_echo_n "(cached) " >&6
12247 am_save_LIBS="$LIBS"
12248 if test $am_cv_lib_iconv = yes; then
12249 LIBS="$LIBS $LIBICONV"
12251 if test "$cross_compiling" = yes; then :
12253 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12254 *) am_cv_func_iconv_works="guessing yes" ;;
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12261 #include <string.h>
12264 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12267 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12268 if (cd_utf8_to_88591 != (iconv_t)(-1))
12270 static const char input[] = "\342\202\254"; /* EURO SIGN */
12272 const char *inptr = input;
12273 size_t inbytesleft = strlen (input);
12274 char *outptr = buf;
12275 size_t outbytesleft = sizeof (buf);
12276 size_t res = iconv (cd_utf8_to_88591,
12277 (char **) &inptr, &inbytesleft,
12278 &outptr, &outbytesleft);
12283 #if 0 /* This bug could be worked around by the caller. */
12284 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12286 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12287 if (cd_88591_to_utf8 != (iconv_t)(-1))
12289 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12291 const char *inptr = input;
12292 size_t inbytesleft = strlen (input);
12293 char *outptr = buf;
12294 size_t outbytesleft = sizeof (buf);
12295 size_t res = iconv (cd_88591_to_utf8,
12296 (char **) &inptr, &inbytesleft,
12297 &outptr, &outbytesleft);
12303 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12305 if (/* Try standardized names. */
12306 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12307 /* Try IRIX, OSF/1 names. */
12308 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12309 /* Try AIX names. */
12310 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12311 /* Try HP-UX names. */
12312 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12317 if ac_fn_c_try_run "$LINENO"; then :
12318 am_cv_func_iconv_works=yes
12320 am_cv_func_iconv_works=no
12322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12323 conftest.$ac_objext conftest.beam conftest.$ac_ext
12326 LIBS="$am_save_LIBS"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12330 $as_echo "$am_cv_func_iconv_works" >&6; }
12331 case "$am_cv_func_iconv_works" in
12332 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12333 *) am_func_iconv=yes ;;
12336 am_func_iconv=no am_cv_lib_iconv=no
12338 if test "$am_func_iconv" = yes; then
12340 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12343 if test "$am_cv_lib_iconv" = yes; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12345 $as_echo_n "checking how to link with libiconv... " >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12347 $as_echo "$LIBICONV" >&6; }
12349 CPPFLAGS="$am_save_CPPFLAGS"
12363 acl_save_prefix="$prefix"
12364 prefix="$acl_final_prefix"
12365 acl_save_exec_prefix="$exec_prefix"
12366 exec_prefix="$acl_final_exec_prefix"
12368 eval additional_includedir=\"$includedir\"
12369 eval additional_libdir=\"$libdir\"
12371 exec_prefix="$acl_save_exec_prefix"
12372 prefix="$acl_save_prefix"
12375 # Check whether --with-libintl-prefix was given.
12376 if test "${with_libintl_prefix+set}" = set; then :
12377 withval=$with_libintl_prefix;
12378 if test "X$withval" = "Xno"; then
12381 if test "X$withval" = "X"; then
12383 acl_save_prefix="$prefix"
12384 prefix="$acl_final_prefix"
12385 acl_save_exec_prefix="$exec_prefix"
12386 exec_prefix="$acl_final_exec_prefix"
12388 eval additional_includedir=\"$includedir\"
12389 eval additional_libdir=\"$libdir\"
12391 exec_prefix="$acl_save_exec_prefix"
12392 prefix="$acl_save_prefix"
12395 additional_includedir="$withval/include"
12396 additional_libdir="$withval/$acl_libdirstem"
12408 names_already_handled=
12409 names_next_round='intl '
12410 while test -n "$names_next_round"; do
12411 names_this_round="$names_next_round"
12413 for name in $names_this_round; do
12415 for n in $names_already_handled; do
12416 if test "$n" = "$name"; then
12417 already_handled=yes
12421 if test -z "$already_handled"; then
12422 names_already_handled="$names_already_handled $name"
12423 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12424 eval value=\"\$HAVE_LIB$uppername\"
12425 if test -n "$value"; then
12426 if test "$value" = yes; then
12427 eval value=\"\$LIB$uppername\"
12428 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12429 eval value=\"\$LTLIB$uppername\"
12430 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12439 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12440 if test -n "$acl_shlibext"; then
12441 shrext=".$acl_shlibext" # typically: shrext=.so
12445 if test $use_additional = yes; then
12446 dir="$additional_libdir"
12447 if test -n "$acl_shlibext"; then
12448 if test -f "$dir/$libname$shrext"; then
12450 found_so="$dir/$libname$shrext"
12452 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12453 ver=`(cd "$dir" && \
12454 for f in "$libname$shrext".*; do echo "$f"; done \
12455 | sed -e "s,^$libname$shrext\\\\.,," \
12456 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12457 | sed 1q ) 2>/dev/null`
12458 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12460 found_so="$dir/$libname$shrext.$ver"
12463 eval library_names=\"$acl_library_names_spec\"
12464 for f in $library_names; do
12465 if test -f "$dir/$f"; then
12474 if test "X$found_dir" = "X"; then
12475 if test -f "$dir/$libname.$acl_libext"; then
12477 found_a="$dir/$libname.$acl_libext"
12480 if test "X$found_dir" != "X"; then
12481 if test -f "$dir/$libname.la"; then
12482 found_la="$dir/$libname.la"
12486 if test "X$found_dir" = "X"; then
12487 for x in $LDFLAGS $LTLIBINTL; do
12489 acl_save_prefix="$prefix"
12490 prefix="$acl_final_prefix"
12491 acl_save_exec_prefix="$exec_prefix"
12492 exec_prefix="$acl_final_exec_prefix"
12494 exec_prefix="$acl_save_exec_prefix"
12495 prefix="$acl_save_prefix"
12499 dir=`echo "X$x" | sed -e 's/^X-L//'`
12500 if test -n "$acl_shlibext"; then
12501 if test -f "$dir/$libname$shrext"; then
12503 found_so="$dir/$libname$shrext"
12505 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12506 ver=`(cd "$dir" && \
12507 for f in "$libname$shrext".*; do echo "$f"; done \
12508 | sed -e "s,^$libname$shrext\\\\.,," \
12509 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12510 | sed 1q ) 2>/dev/null`
12511 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12513 found_so="$dir/$libname$shrext.$ver"
12516 eval library_names=\"$acl_library_names_spec\"
12517 for f in $library_names; do
12518 if test -f "$dir/$f"; then
12527 if test "X$found_dir" = "X"; then
12528 if test -f "$dir/$libname.$acl_libext"; then
12530 found_a="$dir/$libname.$acl_libext"
12533 if test "X$found_dir" != "X"; then
12534 if test -f "$dir/$libname.la"; then
12535 found_la="$dir/$libname.la"
12540 if test "X$found_dir" != "X"; then
12545 if test "X$found_dir" != "X"; then
12546 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12547 if test "X$found_so" != "X"; then
12548 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12552 for x in $ltrpathdirs; do
12553 if test "X$x" = "X$found_dir"; then
12558 if test -z "$haveit"; then
12559 ltrpathdirs="$ltrpathdirs $found_dir"
12561 if test "$acl_hardcode_direct" = yes; then
12562 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12564 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12565 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12567 for x in $rpathdirs; do
12568 if test "X$x" = "X$found_dir"; then
12573 if test -z "$haveit"; then
12574 rpathdirs="$rpathdirs $found_dir"
12578 for x in $LDFLAGS $LIBINTL; do
12580 acl_save_prefix="$prefix"
12581 prefix="$acl_final_prefix"
12582 acl_save_exec_prefix="$exec_prefix"
12583 exec_prefix="$acl_final_exec_prefix"
12585 exec_prefix="$acl_save_exec_prefix"
12586 prefix="$acl_save_prefix"
12588 if test "X$x" = "X-L$found_dir"; then
12593 if test -z "$haveit"; then
12594 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12596 if test "$acl_hardcode_minus_L" != no; then
12597 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12599 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12605 if test "X$found_a" != "X"; then
12606 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12608 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12611 additional_includedir=
12612 case "$found_dir" in
12613 */$acl_libdirstem | */$acl_libdirstem/)
12614 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12615 LIBINTL_PREFIX="$basedir"
12616 additional_includedir="$basedir/include"
12619 if test "X$additional_includedir" != "X"; then
12620 if test "X$additional_includedir" != "X/usr/include"; then
12622 if test "X$additional_includedir" = "X/usr/local/include"; then
12623 if test -n "$GCC"; then
12625 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12629 if test -z "$haveit"; then
12630 for x in $CPPFLAGS $INCINTL; do
12632 acl_save_prefix="$prefix"
12633 prefix="$acl_final_prefix"
12634 acl_save_exec_prefix="$exec_prefix"
12635 exec_prefix="$acl_final_exec_prefix"
12637 exec_prefix="$acl_save_exec_prefix"
12638 prefix="$acl_save_prefix"
12640 if test "X$x" = "X-I$additional_includedir"; then
12645 if test -z "$haveit"; then
12646 if test -d "$additional_includedir"; then
12647 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12653 if test -n "$found_la"; then
12654 save_libdir="$libdir"
12655 case "$found_la" in
12656 */* | *\\*) . "$found_la" ;;
12657 *) . "./$found_la" ;;
12659 libdir="$save_libdir"
12660 for dep in $dependency_libs; do
12663 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12664 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12666 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12667 if test -n "$GCC"; then
12669 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12673 if test -z "$haveit"; then
12675 for x in $LDFLAGS $LIBINTL; do
12677 acl_save_prefix="$prefix"
12678 prefix="$acl_final_prefix"
12679 acl_save_exec_prefix="$exec_prefix"
12680 exec_prefix="$acl_final_exec_prefix"
12682 exec_prefix="$acl_save_exec_prefix"
12683 prefix="$acl_save_prefix"
12685 if test "X$x" = "X-L$additional_libdir"; then
12690 if test -z "$haveit"; then
12691 if test -d "$additional_libdir"; then
12692 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12696 for x in $LDFLAGS $LTLIBINTL; do
12698 acl_save_prefix="$prefix"
12699 prefix="$acl_final_prefix"
12700 acl_save_exec_prefix="$exec_prefix"
12701 exec_prefix="$acl_final_exec_prefix"
12703 exec_prefix="$acl_save_exec_prefix"
12704 prefix="$acl_save_prefix"
12706 if test "X$x" = "X-L$additional_libdir"; then
12711 if test -z "$haveit"; then
12712 if test -d "$additional_libdir"; then
12713 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12720 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12721 if test "$enable_rpath" != no; then
12723 for x in $rpathdirs; do
12724 if test "X$x" = "X$dir"; then
12729 if test -z "$haveit"; then
12730 rpathdirs="$rpathdirs $dir"
12733 for x in $ltrpathdirs; do
12734 if test "X$x" = "X$dir"; then
12739 if test -z "$haveit"; then
12740 ltrpathdirs="$ltrpathdirs $dir"
12745 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12751 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12752 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12758 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12759 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12765 if test "X$rpathdirs" != "X"; then
12766 if test -n "$acl_hardcode_libdir_separator"; then
12768 for found_dir in $rpathdirs; do
12769 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12771 acl_save_libdir="$libdir"
12773 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12774 libdir="$acl_save_libdir"
12775 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12777 for found_dir in $rpathdirs; do
12778 acl_save_libdir="$libdir"
12779 libdir="$found_dir"
12780 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12781 libdir="$acl_save_libdir"
12782 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12786 if test "X$ltrpathdirs" != "X"; then
12787 for found_dir in $ltrpathdirs; do
12788 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12793 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12794 if eval \${$gt_func_gnugettext_libintl+:} false; then :
12795 $as_echo_n "(cached) " >&6
12797 gt_save_CPPFLAGS="$CPPFLAGS"
12798 CPPFLAGS="$CPPFLAGS $INCINTL"
12799 gt_save_LIBS="$LIBS"
12800 LIBS="$LIBS $LIBINTL"
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803 #include <libintl.h>
12804 $gt_revision_test_code
12805 extern int _nl_msg_cat_cntr;
12810 const char *_nl_expand_alias (const char *);
12814 bindtextdomain ("", "");
12815 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 eval "$gt_func_gnugettext_libintl=yes"
12823 eval "$gt_func_gnugettext_libintl=no"
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12828 LIBS="$LIBS $LIBICONV"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 #include <libintl.h>
12832 $gt_revision_test_code
12833 extern int _nl_msg_cat_cntr;
12838 const char *_nl_expand_alias (const char *);
12842 bindtextdomain ("", "");
12843 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12848 if ac_fn_c_try_link "$LINENO"; then :
12849 LIBINTL="$LIBINTL $LIBICONV"
12850 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12851 eval "$gt_func_gnugettext_libintl=yes"
12854 rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12857 CPPFLAGS="$gt_save_CPPFLAGS"
12858 LIBS="$gt_save_LIBS"
12860 eval ac_res=\$$gt_func_gnugettext_libintl
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12862 $as_echo "$ac_res" >&6; }
12865 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12866 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12867 && test "$PACKAGE" != gettext-runtime \
12868 && test "$PACKAGE" != gettext-tools; }; then
12869 gt_use_preinstalled_gnugettext=yes
12878 if test -n "$INTL_MACOSX_LIBS"; then
12879 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12880 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12881 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12882 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12886 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12887 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12889 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12897 $as_echo_n "checking whether to use NLS... " >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12899 $as_echo "$USE_NLS" >&6; }
12900 if test "$USE_NLS" = "yes"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12902 $as_echo_n "checking where the gettext function comes from... " >&6; }
12903 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12904 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12905 gt_source="external libintl"
12910 gt_source="included intl directory"
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12913 $as_echo "$gt_source" >&6; }
12916 if test "$USE_NLS" = "yes"; then
12918 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12919 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12921 $as_echo_n "checking how to link with libintl... " >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12923 $as_echo "$LIBINTL" >&6; }
12925 for element in $INCINTL; do
12927 for x in $CPPFLAGS; do
12929 acl_save_prefix="$prefix"
12930 prefix="$acl_final_prefix"
12931 acl_save_exec_prefix="$exec_prefix"
12932 exec_prefix="$acl_final_exec_prefix"
12934 exec_prefix="$acl_save_exec_prefix"
12935 prefix="$acl_save_prefix"
12937 if test "X$x" = "X$element"; then
12942 if test -z "$haveit"; then
12943 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12950 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12953 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12962 INTLLIBS="$LIBINTL"
12970 # gettext requires some extra checks. These really should be part of
12971 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
12972 # function checks to here.
12974 for ac_func in strchr
12976 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
12977 if test "x$ac_cv_func_strchr" = xyes; then :
12978 cat >>confdefs.h <<_ACEOF
12979 #define HAVE_STRCHR 1
12987 USE_INCLUDED_LIBINTL=no
12988 BUILD_INCLUDED_LIBINTL=no
12996 # We use HAVE_LANGINFO_CODESET in a couple of places.
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12999 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13000 if ${am_cv_langinfo_codeset+:} false; then :
13001 $as_echo_n "(cached) " >&6
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 #include <langinfo.h>
13009 char* cs = nl_langinfo(CODESET); return !cs;
13014 if ac_fn_c_try_link "$LINENO"; then :
13015 am_cv_langinfo_codeset=yes
13017 am_cv_langinfo_codeset=no
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13024 $as_echo "$am_cv_langinfo_codeset" >&6; }
13025 if test $am_cv_langinfo_codeset = yes; then
13027 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13032 # Checks required for our use of locales
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13035 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13036 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13037 $as_echo_n "(cached) " >&6
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <locale.h>
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 gt_cv_val_LC_MESSAGES=yes
13053 gt_cv_val_LC_MESSAGES=no
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13059 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13060 if test $gt_cv_val_LC_MESSAGES = yes; then
13062 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13071 if test "$selinux_support" = yes ; then
13073 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13079 # Checks for header files.
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13082 $as_echo "$as_me: checking for header files" >&6;}
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13084 $as_echo_n "checking for ANSI C header files... " >&6; }
13085 if ${ac_cv_header_stdc+:} false; then :
13086 $as_echo_n "(cached) " >&6
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 #include <stdlib.h>
13091 #include <stdarg.h>
13092 #include <string.h>
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104 ac_cv_header_stdc=yes
13106 ac_cv_header_stdc=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 if test $ac_cv_header_stdc = yes; then
13111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <string.h>
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 $EGREP "memchr" >/dev/null 2>&1; then :
13121 ac_cv_header_stdc=no
13127 if test $ac_cv_header_stdc = yes; then
13128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 #include <stdlib.h>
13134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13135 $EGREP "free" >/dev/null 2>&1; then :
13138 ac_cv_header_stdc=no
13144 if test $ac_cv_header_stdc = yes; then
13145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13146 if test "$cross_compiling" = yes; then :
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13152 #include <stdlib.h>
13153 #if ((' ' & 0x0FF) == 0x020)
13154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13157 # define ISLOWER(c) \
13158 (('a' <= (c) && (c) <= 'i') \
13159 || ('j' <= (c) && (c) <= 'r') \
13160 || ('s' <= (c) && (c) <= 'z'))
13161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13169 for (i = 0; i < 256; i++)
13170 if (XOR (islower (i), ISLOWER (i))
13171 || toupper (i) != TOUPPER (i))
13176 if ac_fn_c_try_run "$LINENO"; then :
13179 ac_cv_header_stdc=no
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13182 conftest.$ac_objext conftest.beam conftest.$ac_ext
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13188 $as_echo "$ac_cv_header_stdc" >&6; }
13189 if test $ac_cv_header_stdc = yes; then
13191 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13195 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13196 pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \
13199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13211 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13212 if ${ac_cv_header_time+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217 #include <sys/types.h>
13218 #include <sys/time.h>
13224 if ((struct tm *) 0)
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 ac_cv_header_time=yes
13233 ac_cv_header_time=no
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13238 $as_echo "$ac_cv_header_time" >&6; }
13239 if test $ac_cv_header_time = yes; then
13241 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13248 # Checks for typedefs, structures, and compiler characteristics.
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13251 $as_echo "$as_me: checking for system characteristics" >&6;}
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13253 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13254 if ${ac_cv_c_const+:} false; then :
13255 $as_echo_n "(cached) " >&6
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13264 #ifndef __cplusplus
13265 /* Ultrix mips cc rejects this sort of thing. */
13266 typedef int charset[2];
13267 const charset cs = { 0, 0 };
13268 /* SunOS 4.1.1 cc rejects this. */
13269 char const *const *pcpcc;
13271 /* NEC SVR4.0.2 mips cc rejects this. */
13272 struct point {int x, y;};
13273 static struct point const zero = {0,0};
13274 /* AIX XL C 1.02.0.0 rejects this.
13275 It does not let you subtract one const X* pointer from another in
13276 an arm of an if-expression whose if-part is not a constant
13278 const char *g = "string";
13279 pcpcc = &g + (g ? g-g : 0);
13280 /* HPUX 7.0 cc rejects these. */
13282 ppc = (char**) pcpcc;
13283 pcpcc = (char const *const *) ppc;
13284 { /* SCO 3.2v4 cc rejects this sort of thing. */
13287 char const *s = 0 ? (char *) 0 : (char const *) 0;
13292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13293 int x[] = {25, 17};
13294 const int *foo = &x[0];
13297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13298 typedef const int *iptr;
13302 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13304 struct s { int j; const int *ap[3]; } bx;
13305 struct s *b = &bx; b->j = 5;
13307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13308 const int foo = 10;
13309 if (!foo) return 0;
13311 return !cs[0] && !zero.x;
13318 if ac_fn_c_try_compile "$LINENO"; then :
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13326 $as_echo "$ac_cv_c_const" >&6; }
13327 if test $ac_cv_c_const = no; then
13329 $as_echo "#define const /**/" >>confdefs.h
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13334 $as_echo_n "checking for inline... " >&6; }
13335 if ${ac_cv_c_inline+:} false; then :
13336 $as_echo_n "(cached) " >&6
13339 for ac_kw in inline __inline__ __inline; do
13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342 #ifndef __cplusplus
13344 static $ac_kw foo_t static_foo () {return 0; }
13345 $ac_kw foo_t foo () {return 0; }
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 ac_cv_c_inline=$ac_kw
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 test "$ac_cv_c_inline" != no && break
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13358 $as_echo "$ac_cv_c_inline" >&6; }
13360 case $ac_cv_c_inline in
13363 case $ac_cv_c_inline in
13365 *) ac_val=$ac_cv_c_inline;;
13367 cat >>confdefs.h <<_ACEOF
13368 #ifndef __cplusplus
13369 #define inline $ac_val
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13376 $as_echo_n "checking for working volatile... " >&6; }
13377 if ${ac_cv_c_volatile+:} false; then :
13378 $as_echo_n "(cached) " >&6
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13388 int * volatile y = (int *) 0;
13394 if ac_fn_c_try_compile "$LINENO"; then :
13395 ac_cv_c_volatile=yes
13397 ac_cv_c_volatile=no
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13402 $as_echo "$ac_cv_c_volatile" >&6; }
13403 if test $ac_cv_c_volatile = no; then
13405 $as_echo "#define volatile /**/" >>confdefs.h
13409 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13410 if test "x$ac_cv_type_size_t" = xyes; then :
13414 cat >>confdefs.h <<_ACEOF
13415 #define size_t unsigned int
13420 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13421 if test "x$ac_cv_type_mode_t" = xyes; then :
13425 cat >>confdefs.h <<_ACEOF
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13432 $as_echo_n "checking return type of signal handlers... " >&6; }
13433 if ${ac_cv_type_signal+:} false; then :
13434 $as_echo_n "(cached) " >&6
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13439 #include <signal.h>
13444 return *(signal (0, 0)) (0) == 1;
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 ac_cv_type_signal=int
13452 ac_cv_type_signal=void
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13457 $as_echo "$ac_cv_type_signal" >&6; }
13459 cat >>confdefs.h <<_ACEOF
13460 #define RETSIGTYPE $ac_cv_type_signal
13464 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13465 /* NetBSD declares sys_siglist in unistd.h. */
13466 #ifdef HAVE_UNISTD_H
13467 # include <unistd.h>
13471 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13477 cat >>confdefs.h <<_ACEOF
13478 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13486 for ac_header in $ac_header_list
13488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13492 cat >>confdefs.h <<_ACEOF
13493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13504 if test $ac_cv_header_sys_socket_h = yes; then
13507 for ac_header in winsock2.h ws2tcpip.h
13509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13520 SYS_SOCKET_H='sys/socket.h'
13524 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13525 #if HAVE_SYS_SOCKET_H
13526 # include <sys/socket.h>
13527 #elif HAVE_WS2TCPIP_H
13528 # include <ws2tcpip.h>
13531 if test "x$ac_cv_type_socklen_t" = xyes; then :
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13535 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13536 if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 # Systems have either "struct sockaddr *" or
13540 # "void *" as the second argument to getpeername
13541 gl_cv_socklen_t_equiv=
13542 for arg2 in "struct sockaddr" void; do
13543 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 #include <sys/types.h>
13547 #include <sys/socket.h>
13549 int getpeername (int, $arg2 *, $t *);
13554 getpeername (0, 0, &len);
13559 if ac_fn_c_try_compile "$LINENO"; then :
13560 gl_cv_socklen_t_equiv="$t"
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 test "$gl_cv_socklen_t_equiv" != "" && break
13565 test "$gl_cv_socklen_t_equiv" != "" && break
13570 if test "$gl_cv_socklen_t_equiv" = ""; then
13571 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13574 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13576 cat >>confdefs.h <<_ACEOF
13577 #define socklen_t $gl_cv_socklen_t_equiv
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13584 $as_echo_n "checking for library containing inet_addr... " >&6; }
13585 if ${ac_cv_search_inet_addr+:} false; then :
13586 $as_echo_n "(cached) " >&6
13588 ac_func_search_save_LIBS=$LIBS
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13602 return inet_addr ();
13607 for ac_lib in '' nsl; do
13608 if test -z "$ac_lib"; then
13609 ac_res="none required"
13612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13614 if ac_fn_c_try_link "$LINENO"; then :
13615 ac_cv_search_inet_addr=$ac_res
13617 rm -f core conftest.err conftest.$ac_objext \
13619 if ${ac_cv_search_inet_addr+:} false; then :
13623 if ${ac_cv_search_inet_addr+:} false; then :
13626 ac_cv_search_inet_addr=no
13628 rm conftest.$ac_ext
13629 LIBS=$ac_func_search_save_LIBS
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13632 $as_echo "$ac_cv_search_inet_addr" >&6; }
13633 ac_res=$ac_cv_search_inet_addr
13634 if test "$ac_res" != no; then :
13635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13640 # Check whether --enable-endian-check was given.
13641 if test "${enable_endian_check+set}" = set; then :
13642 enableval=$enable_endian_check; endiancheck=$enableval
13648 if test x"$endiancheck" = xyes ; then
13650 tmp_assumed_endian=big
13652 if test "$cross_compiling" = yes; then
13653 case "$host_cpu" in
13655 tmp_assumed_endian=little
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13662 $as_echo_n "checking endianness... " >&6; }
13663 if ${gnupg_cv_c_endian+:} false; then :
13664 $as_echo_n "(cached) " >&6
13666 gnupg_cv_c_endian=unknown
13667 # See if sys/param.h defines the BYTE_ORDER macro.
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 #include <sys/types.h>
13671 #include <sys/param.h>
13676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13677 bogus endian macros
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 # It does; now see whether it defined to BIG_ENDIAN or not.
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #include <sys/types.h>
13688 #include <sys/param.h>
13693 #if BYTE_ORDER != BIG_ENDIAN
13700 if ac_fn_c_try_compile "$LINENO"; then :
13701 gnupg_cv_c_endian=big
13703 gnupg_cv_c_endian=little
13705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 if test "$gnupg_cv_c_endian" = unknown; then
13709 if test "$cross_compiling" = yes; then :
13710 gnupg_cv_c_endian=$tmp_assumed_endian
13711 tmp_assumed_warn=" (assumed)"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 /* Are we little or big endian? From Harbison&Steele. */
13721 char c[sizeof (long)];
13724 exit (u.c[sizeof (long) - 1] == 1);
13727 if ac_fn_c_try_run "$LINENO"; then :
13728 gnupg_cv_c_endian=little
13730 gnupg_cv_c_endian=big
13732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13733 conftest.$ac_objext conftest.beam conftest.$ac_ext
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
13741 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
13742 if test "$gnupg_cv_c_endian" = little; then
13744 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
13748 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
13754 # fixme: we should get rid of the byte type
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
13756 $as_echo_n "checking for byte typedef... " >&6; }
13757 if ${gnupg_cv_typedef_byte+:} false; then :
13758 $as_echo_n "(cached) " >&6
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 #define _GNU_SOURCE 1
13763 #include <stdlib.h>
13764 #include <sys/types.h>
13770 int a = sizeof(byte);
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 gnupg_cv_typedef_byte=yes
13779 gnupg_cv_typedef_byte=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
13785 $as_echo "$gnupg_cv_typedef_byte" >&6; }
13786 if test "$gnupg_cv_typedef_byte" = yes; then
13788 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
13793 $as_echo_n "checking for ushort typedef... " >&6; }
13794 if ${gnupg_cv_typedef_ushort+:} false; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 #define _GNU_SOURCE 1
13800 #include <stdlib.h>
13801 #include <sys/types.h>
13807 int a = sizeof(ushort);
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814 gnupg_cv_typedef_ushort=yes
13816 gnupg_cv_typedef_ushort=no
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
13822 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
13823 if test "$gnupg_cv_typedef_ushort" = yes; then
13825 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
13830 $as_echo_n "checking for ulong typedef... " >&6; }
13831 if ${gnupg_cv_typedef_ulong+:} false; then :
13832 $as_echo_n "(cached) " >&6
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 #define _GNU_SOURCE 1
13837 #include <stdlib.h>
13838 #include <sys/types.h>
13844 int a = sizeof(ulong);
13850 if ac_fn_c_try_compile "$LINENO"; then :
13851 gnupg_cv_typedef_ulong=yes
13853 gnupg_cv_typedef_ulong=no
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
13859 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
13860 if test "$gnupg_cv_typedef_ulong" = yes; then
13862 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
13867 $as_echo_n "checking for u16 typedef... " >&6; }
13868 if ${gnupg_cv_typedef_u16+:} false; then :
13869 $as_echo_n "(cached) " >&6
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #define _GNU_SOURCE 1
13874 #include <stdlib.h>
13875 #include <sys/types.h>
13881 int a = sizeof(u16);
13887 if ac_fn_c_try_compile "$LINENO"; then :
13888 gnupg_cv_typedef_u16=yes
13890 gnupg_cv_typedef_u16=no
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
13896 $as_echo "$gnupg_cv_typedef_u16" >&6; }
13897 if test "$gnupg_cv_typedef_u16" = yes; then
13899 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
13904 $as_echo_n "checking for u32 typedef... " >&6; }
13905 if ${gnupg_cv_typedef_u32+:} false; then :
13906 $as_echo_n "(cached) " >&6
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 #define _GNU_SOURCE 1
13911 #include <stdlib.h>
13912 #include <sys/types.h>
13918 int a = sizeof(u32);
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925 gnupg_cv_typedef_u32=yes
13927 gnupg_cv_typedef_u32=no
13929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
13933 $as_echo "$gnupg_cv_typedef_u32" >&6; }
13934 if test "$gnupg_cv_typedef_u32" = yes; then
13936 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
13941 # The cast to long int works around a bug in the HP C Compiler
13942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13944 # This bug is HP SR number 8606223364.
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13946 $as_echo_n "checking size of unsigned short... " >&6; }
13947 if ${ac_cv_sizeof_unsigned_short+:} false; then :
13948 $as_echo_n "(cached) " >&6
13950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
13953 if test "$ac_cv_type_unsigned_short" = yes; then
13954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13956 as_fn_error 77 "cannot compute sizeof (unsigned short)
13957 See \`config.log' for more details" "$LINENO" 5; }
13959 ac_cv_sizeof_unsigned_short=0
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13965 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13969 cat >>confdefs.h <<_ACEOF
13970 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13974 # The cast to long int works around a bug in the HP C Compiler
13975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13977 # This bug is HP SR number 8606223364.
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13979 $as_echo_n "checking size of unsigned int... " >&6; }
13980 if ${ac_cv_sizeof_unsigned_int+:} false; then :
13981 $as_echo_n "(cached) " >&6
13983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
13986 if test "$ac_cv_type_unsigned_int" = yes; then
13987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13989 as_fn_error 77 "cannot compute sizeof (unsigned int)
13990 See \`config.log' for more details" "$LINENO" 5; }
13992 ac_cv_sizeof_unsigned_int=0
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13998 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14002 cat >>confdefs.h <<_ACEOF
14003 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14007 # The cast to long int works around a bug in the HP C Compiler
14008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14010 # This bug is HP SR number 8606223364.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14012 $as_echo_n "checking size of unsigned long... " >&6; }
14013 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14014 $as_echo_n "(cached) " >&6
14016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14019 if test "$ac_cv_type_unsigned_long" = yes; then
14020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14022 as_fn_error 77 "cannot compute sizeof (unsigned long)
14023 See \`config.log' for more details" "$LINENO" 5; }
14025 ac_cv_sizeof_unsigned_long=0
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14031 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14035 cat >>confdefs.h <<_ACEOF
14036 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14040 # The cast to long int works around a bug in the HP C Compiler
14041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14043 # This bug is HP SR number 8606223364.
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14045 $as_echo_n "checking size of unsigned long long... " >&6; }
14046 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14047 $as_echo_n "(cached) " >&6
14049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14052 if test "$ac_cv_type_unsigned_long_long" = yes; then
14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14055 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14056 See \`config.log' for more details" "$LINENO" 5; }
14058 ac_cv_sizeof_unsigned_long_long=0
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14064 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14068 cat >>confdefs.h <<_ACEOF
14069 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14074 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14075 if ${ac_cv_header_time+:} false; then :
14076 $as_echo_n "(cached) " >&6
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <sys/types.h>
14081 #include <sys/time.h>
14087 if ((struct tm *) 0)
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 ac_cv_header_time=yes
14096 ac_cv_header_time=no
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14101 $as_echo "$ac_cv_header_time" >&6; }
14102 if test $ac_cv_header_time = yes; then
14104 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14108 # The cast to long int works around a bug in the HP C Compiler
14109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14111 # This bug is HP SR number 8606223364.
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14113 $as_echo_n "checking size of time_t... " >&6; }
14114 if ${ac_cv_sizeof_time_t+:} false; then :
14115 $as_echo_n "(cached) " >&6
14117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14119 #if TIME_WITH_SYS_TIME
14120 # include <sys/time.h>
14123 # if HAVE_SYS_TIME_H
14124 # include <sys/time.h>
14133 if test "$ac_cv_type_time_t" = yes; then
14134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14136 as_fn_error 77 "cannot compute sizeof (time_t)
14137 See \`config.log' for more details" "$LINENO" 5; }
14139 ac_cv_sizeof_time_t=0
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14145 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14149 cat >>confdefs.h <<_ACEOF
14150 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14155 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14156 if ${gnupg_cv_time_t_unsigned+:} false; then :
14157 $as_echo_n "(cached) " >&6
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 $ac_includes_default
14162 #if TIME_WITH_SYS_TIME
14163 # include <sys/time.h>
14166 # if HAVE_SYS_TIME_H
14167 # include <sys/time.h>
14176 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14177 test_array [0] = 0;
14178 return test_array [0];
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 gnupg_cv_time_t_unsigned=no
14187 gnupg_cv_time_t_unsigned=yes
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14192 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14193 if test $gnupg_cv_time_t_unsigned = yes; then
14195 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14201 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14202 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14203 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14205 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14210 # Checks for library functions.
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14213 $as_echo "$as_me: checking for library functions" >&6;}
14214 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14215 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14226 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14227 if ${ac_cv_sys_largefile_source+:} false; then :
14228 $as_echo_n "(cached) " >&6
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 #include <sys/types.h> /* for off_t */
14238 int (*fp) (FILE *, off_t, int) = fseeko;
14239 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 ac_cv_sys_largefile_source=no; break
14247 rm -f core conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #define _LARGEFILE_SOURCE 1
14252 #include <sys/types.h> /* for off_t */
14257 int (*fp) (FILE *, off_t, int) = fseeko;
14258 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 ac_cv_sys_largefile_source=1; break
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 ac_cv_sys_largefile_source=unknown
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14273 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14274 case $ac_cv_sys_largefile_source in #(
14277 cat >>confdefs.h <<_ACEOF
14278 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14284 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14285 # in glibc 2.1.3, but that breaks too many other things.
14286 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14287 if test $ac_cv_sys_largefile_source != unknown; then
14289 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14293 for ac_func in vprintf
14295 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14296 if test "x$ac_cv_func_vprintf" = xyes; then :
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_VPRINTF 1
14301 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14302 if test "x$ac_cv_func__doprnt" = xyes; then :
14304 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14312 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14313 if test "x$ac_cv_type_pid_t" = xyes; then :
14317 cat >>confdefs.h <<_ACEOF
14323 for ac_header in vfork.h
14325 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14326 if test "x$ac_cv_header_vfork_h" = xyes; then :
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_VFORK_H 1
14335 for ac_func in fork vfork
14337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14340 cat >>confdefs.h <<_ACEOF
14341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14347 if test "x$ac_cv_func_fork" = xyes; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14349 $as_echo_n "checking for working fork... " >&6; }
14350 if ${ac_cv_func_fork_works+:} false; then :
14351 $as_echo_n "(cached) " >&6
14353 if test "$cross_compiling" = yes; then :
14354 ac_cv_func_fork_works=cross
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358 $ac_includes_default
14363 /* By Ruediger Kuhlmann. */
14364 return fork () < 0;
14370 if ac_fn_c_try_run "$LINENO"; then :
14371 ac_cv_func_fork_works=yes
14373 ac_cv_func_fork_works=no
14375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14376 conftest.$ac_objext conftest.beam conftest.$ac_ext
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14381 $as_echo "$ac_cv_func_fork_works" >&6; }
14384 ac_cv_func_fork_works=$ac_cv_func_fork
14386 if test "x$ac_cv_func_fork_works" = xcross; then
14388 *-*-amigaos* | *-*-msdosdjgpp*)
14389 # Override, as these systems have only a dummy fork() stub
14390 ac_cv_func_fork_works=no
14393 ac_cv_func_fork_works=yes
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14397 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14399 ac_cv_func_vfork_works=$ac_cv_func_vfork
14400 if test "x$ac_cv_func_vfork" = xyes; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14402 $as_echo_n "checking for working vfork... " >&6; }
14403 if ${ac_cv_func_vfork_works+:} false; then :
14404 $as_echo_n "(cached) " >&6
14406 if test "$cross_compiling" = yes; then :
14407 ac_cv_func_vfork_works=cross
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 /* Thanks to Paul Eggert for this test. */
14412 $ac_includes_default
14413 #include <sys/wait.h>
14414 #ifdef HAVE_VFORK_H
14415 # include <vfork.h>
14417 /* On some sparc systems, changes by the child to local and incoming
14418 argument registers are propagated back to the parent. The compiler
14419 is told about this with #include <vfork.h>, but some compilers
14420 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14421 static variable whose address is put into a register that is
14422 clobbered by the vfork. */
14425 sparc_address_test (int arg)
14427 sparc_address_test (arg) int arg;
14430 static pid_t child;
14448 pid_t parent = getpid ();
14451 sparc_address_test (0);
14456 /* Here is another test for sparc vfork register problems. This
14457 test uses lots of local variables, at least as many local
14458 variables as main has allocated so far including compiler
14459 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14460 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14461 reuse the register of parent for one of the local variables,
14462 since it will think that parent can't possibly be used any more
14463 in this routine. Assigning to the local variable will thus
14464 munge parent in the parent process. */
14466 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14467 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14468 /* Convince the compiler that p..p7 are live; otherwise, it might
14469 use the same hardware register for all 8 local variables. */
14470 if (p != p1 || p != p2 || p != p3 || p != p4
14471 || p != p5 || p != p6 || p != p7)
14474 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14475 from child file descriptors. If the child closes a descriptor
14476 before it execs or exits, this munges the parent's descriptor
14477 as well. Test for this by closing stdout in the child. */
14478 _exit(close(fileno(stdout)) != 0);
14483 while (wait(&status) != child)
14486 /* Was there some problem with vforking? */
14489 /* Did the child fail? (This shouldn't happen.) */
14492 /* Did the vfork/compiler bug occur? */
14493 || parent != getpid()
14495 /* Did the file descriptor bug occur? */
14496 || fstat(fileno(stdout), &st) != 0
14501 if ac_fn_c_try_run "$LINENO"; then :
14502 ac_cv_func_vfork_works=yes
14504 ac_cv_func_vfork_works=no
14506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14507 conftest.$ac_objext conftest.beam conftest.$ac_ext
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14512 $as_echo "$ac_cv_func_vfork_works" >&6; }
14515 if test "x$ac_cv_func_fork_works" = xcross; then
14516 ac_cv_func_vfork_works=$ac_cv_func_vfork
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14518 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14521 if test "x$ac_cv_func_vfork_works" = xyes; then
14523 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14527 $as_echo "#define vfork fork" >>confdefs.h
14530 if test "x$ac_cv_func_fork_works" = xyes; then
14532 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14536 for ac_func in strerror strlwr tcgetattr mmap canonicalize_file_name
14538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14548 for ac_func in strcasecmp strncasecmp ctermid times gmtime_r strtoull
14550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14552 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14553 cat >>confdefs.h <<_ACEOF
14554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14560 for ac_func in setenv unsetenv fcntl ftruncate inet_ntop
14562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14564 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14572 for ac_func in canonicalize_file_name
14574 ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
14575 if test "x$ac_cv_func_canonicalize_file_name" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_CANONICALIZE_FILE_NAME 1
14583 for ac_func in gettimeofday getrusage getrlimit setrlimit clock_gettime
14585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14595 for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale
14597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14600 cat >>confdefs.h <<_ACEOF
14601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14607 for ac_func in waitpid wait4 sigaction sigprocmask pipe getaddrinfo
14609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14619 for ac_func in ttyname rand ftello fsync stat lstat
14621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631 for ac_func in memicmp stpcpy strsep strlwr strtoul memmove stricmp strtol \
14632 memrchr isascii timegm getrusage setrlimit stat setlocale \
14633 flockfile funlockfile getpwnam getpwuid \
14634 getenv inet_pton strpbrk
14636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14638 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14639 cat >>confdefs.h <<_ACEOF
14640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14647 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14648 # Given that we use nanosleep only as an optimization over a select
14649 # based wait function we want it only if it is available in libc.
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14652 $as_echo_n "checking for library containing nanosleep... " >&6; }
14653 if ${ac_cv_search_nanosleep+:} false; then :
14654 $as_echo_n "(cached) " >&6
14656 ac_func_search_save_LIBS=$LIBS
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14660 /* Override any GCC internal prototype to avoid an error.
14661 Use char because int might match the return type of a GCC
14662 builtin and then its argument prototype would still apply. */
14670 return nanosleep ();
14675 for ac_lib in '' ; do
14676 if test -z "$ac_lib"; then
14677 ac_res="none required"
14680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_search_nanosleep=$ac_res
14685 rm -f core conftest.err conftest.$ac_objext \
14687 if ${ac_cv_search_nanosleep+:} false; then :
14691 if ${ac_cv_search_nanosleep+:} false; then :
14694 ac_cv_search_nanosleep=no
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14700 $as_echo "$ac_cv_search_nanosleep" >&6; }
14701 ac_res=$ac_cv_search_nanosleep
14702 if test "$ac_res" != no; then :
14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14705 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14712 # See whether libc supports the Linux inotify interface
14715 for ac_func in inotify_init
14717 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14718 if test "x$ac_cv_func_inotify_init" = xyes; then :
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_INOTIFY_INIT 1
14730 if test "$have_android_system" = yes; then
14731 # On Android ttyname is a stub but prints an error message.
14733 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14737 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14739 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_STRUCT_SIGACTION 1
14747 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14749 if test "x$ac_cv_type_sigset_t" = xyes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define HAVE_SIGSET_T 1
14759 # Dirmngr requires mmap on Unix systems.
14760 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14761 as_fn_error $? "Sorry, the current implemenation requires mmap." "$LINENO" 5
14765 # W32 specific test
14767 for ac_header in sys/stat.h unistd.h direct.h
14769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
14781 $as_echo_n "checking if mkdir takes one argument... " >&6; }
14782 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
14783 $as_echo_n "(cached) " >&6
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14788 #include <sys/types.h>
14789 #ifdef HAVE_SYS_STAT_H
14790 # include <sys/stat.h>
14792 #ifdef HAVE_UNISTD_H
14793 # include <unistd.h>
14795 #ifdef HAVE_DIRECT_H
14796 # include <direct.h>
14806 if ac_fn_c_try_compile "$LINENO"; then :
14807 gnupg_cv_mkdir_takes_one_arg=no
14809 gnupg_cv_mkdir_takes_one_arg=yes
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
14814 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
14815 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
14817 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
14823 # Sanity check regex. Tests adapted from mutt.
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether regular expression support is requested" >&5
14826 $as_echo_n "checking whether regular expression support is requested... " >&6; }
14827 # Check whether --enable-regex was given.
14828 if test "${enable_regex+set}" = set; then :
14829 enableval=$enable_regex; use_regex=$enableval
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_regex" >&5
14835 $as_echo "$use_regex" >&6; }
14837 if test "$use_regex" = yes ; then
14838 _cppflags="${CPPFLAGS}"
14839 _ldflags="${LDFLAGS}"
14841 # Check whether --with-regex was given.
14842 if test "${with_regex+set}" = set; then :
14843 withval=$with_regex;
14844 if test -d "$withval" ; then
14845 CPPFLAGS="${CPPFLAGS} -I$withval/include"
14846 LDFLAGS="${LDFLAGS} -L$withval/lib"
14854 # Does the system have regex functions at all?
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
14856 $as_echo_n "checking for library containing regcomp... " >&6; }
14857 if ${ac_cv_search_regcomp+:} false; then :
14858 $as_echo_n "(cached) " >&6
14860 ac_func_search_save_LIBS=$LIBS
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14879 for ac_lib in '' regex; do
14880 if test -z "$ac_lib"; then
14881 ac_res="none required"
14884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14886 if ac_fn_c_try_link "$LINENO"; then :
14887 ac_cv_search_regcomp=$ac_res
14889 rm -f core conftest.err conftest.$ac_objext \
14891 if ${ac_cv_search_regcomp+:} false; then :
14895 if ${ac_cv_search_regcomp+:} false; then :
14898 ac_cv_search_regcomp=no
14900 rm conftest.$ac_ext
14901 LIBS=$ac_func_search_save_LIBS
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
14904 $as_echo "$ac_cv_search_regcomp" >&6; }
14905 ac_res=$ac_cv_search_regcomp
14906 if test "$ac_res" != no; then :
14907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14911 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
14912 if test "x$ac_cv_func_regcomp" = xyes; then :
14913 gnupg_cv_have_regex=yes
14915 gnupg_cv_have_regex=no
14919 if test $gnupg_cv_have_regex = no; then
14922 if test x"$cross_compiling" = xyes; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling; assuming regexp libray is not broken" >&5
14924 $as_echo "$as_me: WARNING: cross compiling; assuming regexp libray is not broken" >&2;}
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's regexp library is broken" >&5
14927 $as_echo_n "checking whether your system's regexp library is broken... " >&6; }
14928 if ${gnupg_cv_regex_broken+:} false; then :
14929 $as_echo_n "(cached) " >&6
14931 if test "$cross_compiling" = yes; then :
14932 gnupg_cv_regex_broken=yes
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14937 #include <unistd.h>
14939 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
14941 if ac_fn_c_try_run "$LINENO"; then :
14942 gnupg_cv_regex_broken=no
14944 gnupg_cv_regex_broken=yes
14946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14947 conftest.$ac_objext conftest.beam conftest.$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_regex_broken" >&5
14952 $as_echo "$gnupg_cv_regex_broken" >&6; }
14954 if test $gnupg_cv_regex_broken = yes; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your regex is broken - disabling regex use" >&5
14956 $as_echo "$as_me: WARNING: your regex is broken - disabling regex use" >&2;}
14961 CPPFLAGS="${_cppflags}"
14962 LDFLAGS="${_ldflags}"
14965 if test "$use_regex" != yes ; then
14967 $as_echo "#define DISABLE_REGEX 1" >>confdefs.h
14970 if test x"$use_regex" != xyes; then
14971 DISABLE_REGEX_TRUE=
14972 DISABLE_REGEX_FALSE='#'
14974 DISABLE_REGEX_TRUE='#'
14975 DISABLE_REGEX_FALSE=
14982 # Do we have zlib? Must do it here because Solaris failed
14983 # when compiling a conftest (due to the "-lz" from LIBS).
14984 # Note that we combine zlib and bzlib2 in ZLIBS.
14986 if test "$use_zip" = yes ; then
14987 _cppflags="${CPPFLAGS}"
14988 _ldflags="${LDFLAGS}"
14990 # Check whether --with-zlib was given.
14991 if test "${with_zlib+set}" = set; then :
14992 withval=$with_zlib;
14993 if test -d "$withval"; then
14994 CPPFLAGS="${CPPFLAGS} -I$withval/include"
14995 LDFLAGS="${LDFLAGS} -L$withval/lib"
15001 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15002 if test "x$ac_cv_header_zlib_h" = xyes; then :
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15004 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15005 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15006 $as_echo_n "(cached) " >&6
15008 ac_check_lib_save_LIBS=$LIBS
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15013 /* Override any GCC internal prototype to avoid an error.
15014 Use char because int might match the return type of a GCC
15015 builtin and then its argument prototype would still apply. */
15019 char deflateInit2_ ();
15023 return deflateInit2_ ();
15028 if ac_fn_c_try_link "$LINENO"; then :
15029 ac_cv_lib_z_deflateInit2_=yes
15031 ac_cv_lib_z_deflateInit2_=no
15033 rm -f core conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15038 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15039 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15043 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15047 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15051 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15059 # Check whether we can support bzip2
15061 if test "$use_bzip2" = yes ; then
15062 _cppflags="${CPPFLAGS}"
15063 _ldflags="${LDFLAGS}"
15065 # Check whether --with-bzip2 was given.
15066 if test "${with_bzip2+set}" = set; then :
15067 withval=$with_bzip2;
15068 if test -d "$withval" ; then
15069 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15070 LDFLAGS="${LDFLAGS} -L$withval/lib"
15078 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15079 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15080 # woefully out of date.
15081 if test "$withval" != no ; then
15082 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15084 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15086 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15087 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15088 $as_echo_n "(cached) " >&6
15090 ac_check_lib_save_LIBS=$LIBS
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char BZ2_bzCompressInit ();
15105 return BZ2_bzCompressInit ();
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15113 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15120 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15121 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15124 ZLIBS="$ZLIBS -lbz2"
15126 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15130 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15134 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15140 if test x"$have_bz2" = "xyes"; then
15141 ENABLE_BZIP2_SUPPORT_TRUE=
15142 ENABLE_BZIP2_SUPPORT_FALSE='#'
15144 ENABLE_BZIP2_SUPPORT_TRUE='#'
15145 ENABLE_BZIP2_SUPPORT_FALSE=
15151 # Check for readline support
15154 # Check whether --with-readline was given.
15155 if test "${with_readline+set}" = set; then :
15156 withval=$with_readline; _do_readline=$withval
15162 gnupg_cv_have_readline=no
15163 if test "$_do_readline" != "no" ; then
15164 if test -d "$withval" ; then
15165 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15166 LDFLAGS="${LDFLAGS} -L$withval/lib"
15169 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15170 _readline_save_libs=$LIBS
15171 _combo="-lreadline${_termcap:+ $_termcap}"
15172 LIBS="$LIBS $_combo"
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15175 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15181 #include <readline/readline.h>
15182 #include <readline/history.h>
15188 rl_completion_func_t *completer;
15189 add_history("foobar");
15190 rl_catch_signals=0;
15191 rl_inhibit_completion=0;
15192 rl_attempted_completion_function=NULL;
15193 rl_completion_matches(NULL,NULL);
15199 if ac_fn_c_try_link "$LINENO"; then :
15200 _found_readline=yes
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15208 $as_echo "$_found_readline" >&6; }
15210 LIBS=$_readline_save_libs
15212 if test $_found_readline = yes ; then
15214 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15216 LIBREADLINE=$_combo
15218 gnupg_cv_have_readline=yes
15224 unset _readline_save_libs
15226 unset _found_readline
15231 if test "$development_version" = yes; then
15233 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15237 if test x$cross_compiling = xyes; then
15238 CROSS_COMPILING_TRUE=
15239 CROSS_COMPILING_FALSE='#'
15241 CROSS_COMPILING_TRUE='#'
15242 CROSS_COMPILING_FALSE=
15247 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15252 *** It seems that you are not using GNU make. Some make tools have serious
15253 *** flaws and you may not be able to build this software at all. Before you
15254 *** complain, please try GNU make: GNU make is easy to build and available
15255 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15257 $as_echo "$as_me: WARNING:
15259 *** It seems that you are not using GNU make. Some make tools have serious
15260 *** flaws and you may not be able to build this software at all. Before you
15261 *** complain, please try GNU make: GNU make is easy to build and available
15262 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15267 # Add some extra libs here so that previous tests don't fail for
15268 # mysterious reasons - the final link step should bail out.
15269 # W32SOCKLIBS is also defined so that if can be used for tools not
15270 # requiring any network stuff but linking to code in libcommon which
15271 # tracks in winsock stuff (e.g. init_common_subsystems).
15272 if test "$have_w32_system" = yes; then
15273 if test "$have_w32ce_system" = yes; then
15274 W32SOCKLIBS="-lws2"
15276 W32SOCKLIBS="-lws2_32"
15278 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15285 # Setup gcc specific options
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15289 $as_echo "$as_me: checking for cc features" >&6;}
15290 if test "$GCC" = yes; then
15292 mycflags_save=$CFLAGS
15294 # Check whether gcc does not emit a diagnositc for unknow -Wno-*
15295 # options. This is the case for gcc >= 4.6
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15297 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15312 if ac_fn_c_try_compile "$LINENO"; then :
15313 _gcc_silent_wno=yes
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15319 $as_echo "$_gcc_silent_wno" >&6; }
15321 # Note that it is okay to use CFLAGS here because these are just
15322 # warning options and the user should have a chance of overriding
15324 if test "$USE_MAINTAINER_MODE" = "yes"; then
15325 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15326 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15327 if test x"$_gcc_silent_wno" = xyes ; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15331 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15332 CFLAGS="-Wno-missing-field-initializers"
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15344 if ac_fn_c_try_compile "$LINENO"; then :
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15351 $as_echo "$_gcc_wopt" >&6; }
15353 if test x"$_gcc_wopt" = xyes ; then
15354 mycflags="$mycflags -W -Wno-sign-compare"
15355 mycflags="$mycflags -Wno-missing-field-initializers"
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15359 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15360 CFLAGS="-Wdeclaration-after-statement"
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15372 if ac_fn_c_try_compile "$LINENO"; then :
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15379 $as_echo "$_gcc_wopt" >&6; }
15380 if test x"$_gcc_wopt" = xyes ; then
15381 mycflags="$mycflags -Wdeclaration-after-statement"
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op and -Wvla" >&5
15385 $as_echo_n "checking if gcc supports -Wlogical-op and -Wvla... " >&6; }
15386 CFLAGS="-Wlogical-op -Wvla"
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15398 if ac_fn_c_try_compile "$LINENO"; then :
15403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15405 $as_echo "$_gcc_wopt" >&6; }
15406 if test x"$_gcc_wopt" = xyes ; then
15407 mycflags="$mycflags -Wlogical-op -Wvla"
15411 mycflags="$mycflags -Wall"
15414 if test x"$_gcc_silent_wno" = xyes ; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15418 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15419 CFLAGS="-Wno-pointer-sign"
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15431 if ac_fn_c_try_compile "$LINENO"; then :
15436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15438 $as_echo "$_gcc_psign" >&6; }
15440 if test x"$_gcc_psign" = xyes ; then
15441 mycflags="$mycflags -Wno-pointer-sign"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15445 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15446 CFLAGS="-Wpointer-arith"
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15458 if ac_fn_c_try_compile "$LINENO"; then :
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15465 $as_echo "$_gcc_psign" >&6; }
15466 if test x"$_gcc_psign" = xyes ; then
15467 mycflags="$mycflags -Wpointer-arith"
15470 CFLAGS="$mycflags $mycflags_save"
15471 if test "$use_libdns" = yes; then
15472 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
15473 USE_C99_CFLAGS="-std=gnu99"
15481 # This is handy for debugging so the compiler doesn't rearrange
15482 # things and eliminate variables.
15484 # Check whether --enable-optimization was given.
15485 if test "${enable_optimization+set}" = set; then :
15486 enableval=$enable_optimization; if test $enableval = no ; then
15487 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15495 CFLAGS="$CFLAGS $CFLAGS_orig"
15498 # Decide what to build
15501 build_scdaemon_extra=""
15502 if test "$build_scdaemon" = "yes"; then
15503 if test $have_libusb = no; then
15504 build_scdaemon_extra="without internal CCID driver"
15506 if test -n "$build_scdaemon_extra"; then
15507 build_scdaemon_extra="(${build_scdaemon_extra})"
15513 # Set variables for use by automake makefiles.
15515 if test "$build_gpg" = "yes"; then
15517 BUILD_GPG_FALSE='#'
15523 if test "$build_gpgsm" = "yes"; then
15525 BUILD_GPGSM_FALSE='#'
15527 BUILD_GPGSM_TRUE='#'
15531 if test "$build_agent" = "yes"; then
15533 BUILD_AGENT_FALSE='#'
15535 BUILD_AGENT_TRUE='#'
15539 if test "$build_scdaemon" = "yes"; then
15540 BUILD_SCDAEMON_TRUE=
15541 BUILD_SCDAEMON_FALSE='#'
15543 BUILD_SCDAEMON_TRUE='#'
15544 BUILD_SCDAEMON_FALSE=
15547 if test "$build_g13" = "yes"; then
15549 BUILD_G13_FALSE='#'
15555 if test "$build_dirmngr" = "yes"; then
15556 BUILD_DIRMNGR_TRUE=
15557 BUILD_DIRMNGR_FALSE='#'
15559 BUILD_DIRMNGR_TRUE='#'
15560 BUILD_DIRMNGR_FALSE=
15563 if test "$build_tools" = "yes"; then
15565 BUILD_TOOLS_FALSE='#'
15567 BUILD_TOOLS_TRUE='#'
15571 if test "$build_doc" = "yes"; then
15573 BUILD_DOC_FALSE='#'
15579 if test "$build_symcryptrun" = "yes"; then
15580 BUILD_SYMCRYPTRUN_TRUE=
15581 BUILD_SYMCRYPTRUN_FALSE='#'
15583 BUILD_SYMCRYPTRUN_TRUE='#'
15584 BUILD_SYMCRYPTRUN_FALSE=
15587 if test "$build_gpgtar" = "yes"; then
15589 BUILD_GPGTAR_FALSE='#'
15591 BUILD_GPGTAR_TRUE='#'
15592 BUILD_GPGTAR_FALSE=
15595 if test "$build_wks_tools" = "yes"; then
15596 BUILD_WKS_TOOLS_TRUE=
15597 BUILD_WKS_TOOLS_FALSE='#'
15599 BUILD_WKS_TOOLS_TRUE='#'
15600 BUILD_WKS_TOOLS_FALSE=
15604 if test "$card_support" = yes; then
15605 ENABLE_CARD_SUPPORT_TRUE=
15606 ENABLE_CARD_SUPPORT_FALSE='#'
15608 ENABLE_CARD_SUPPORT_TRUE='#'
15609 ENABLE_CARD_SUPPORT_FALSE=
15612 if test "$use_trust_models" = no; then
15613 NO_TRUST_MODELS_TRUE=
15614 NO_TRUST_MODELS_FALSE='#'
15616 NO_TRUST_MODELS_TRUE='#'
15617 NO_TRUST_MODELS_FALSE=
15620 if test "$use_tofu" = yes; then
15630 # Set some defines for use gpgconf.
15632 if test "$build_gpg" = yes ; then
15634 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15637 if test "$build_gpgsm" = yes ; then
15639 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15642 if test "$build_agent" = yes ; then
15644 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15647 if test "$build_scdaemon" = yes ; then
15649 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15652 if test "$build_dirmngr" = yes ; then
15654 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15657 if test "$build_g13" = yes ; then
15659 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15665 # Define Name strings
15668 cat >>confdefs.h <<_ACEOF
15669 #define GNUPG_NAME "GnuPG"
15674 cat >>confdefs.h <<_ACEOF
15675 #define GPG_NAME "gpg"
15679 cat >>confdefs.h <<_ACEOF
15680 #define GPG_DISP_NAME "GnuPG"
15685 cat >>confdefs.h <<_ACEOF
15686 #define GPGSM_NAME "gpgsm"
15690 cat >>confdefs.h <<_ACEOF
15691 #define GPGSM_DISP_NAME "GPGSM"
15696 cat >>confdefs.h <<_ACEOF
15697 #define GPG_AGENT_NAME "gpg-agent"
15701 cat >>confdefs.h <<_ACEOF
15702 #define GPG_AGENT_DISP_NAME "GPG Agent"
15707 cat >>confdefs.h <<_ACEOF
15708 #define SCDAEMON_NAME "scdaemon"
15712 cat >>confdefs.h <<_ACEOF
15713 #define SCDAEMON_DISP_NAME "SCDaemon"
15718 cat >>confdefs.h <<_ACEOF
15719 #define DIRMNGR_NAME "dirmngr"
15723 cat >>confdefs.h <<_ACEOF
15724 #define DIRMNGR_DISP_NAME "DirMngr"
15729 cat >>confdefs.h <<_ACEOF
15730 #define G13_NAME "g13"
15734 cat >>confdefs.h <<_ACEOF
15735 #define G13_DISP_NAME "G13"
15740 cat >>confdefs.h <<_ACEOF
15741 #define GPGCONF_NAME "gpgconf"
15745 cat >>confdefs.h <<_ACEOF
15746 #define GPGCONF_DISP_NAME "GPGConf"
15751 cat >>confdefs.h <<_ACEOF
15752 #define GPGTAR_NAME "gpgtar"
15757 cat >>confdefs.h <<_ACEOF
15758 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15762 cat >>confdefs.h <<_ACEOF
15763 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
15767 cat >>confdefs.h <<_ACEOF
15768 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
15772 cat >>confdefs.h <<_ACEOF
15773 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
15777 cat >>confdefs.h <<_ACEOF
15778 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
15782 cat >>confdefs.h <<_ACEOF
15783 #define SCDAEMON_SOCK_NAME "S.scdaemon"
15787 cat >>confdefs.h <<_ACEOF
15788 #define DIRMNGR_SOCK_NAME "S.dirmngr"
15792 cat >>confdefs.h <<_ACEOF
15793 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
15798 cat >>confdefs.h <<_ACEOF
15799 #define GPGEXT_GPG "gpg"
15803 if test "$have_w32_system" = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define GNUPG_REGISTRY_DIR "\\\\Software\\\\GNU\\\\GnuPG"
15813 # Provide information about the build.
15815 BUILD_REVISION="f8289b1"
15818 cat >>confdefs.h <<_ACEOF
15819 #define BUILD_REVISION "$BUILD_REVISION"
15823 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
15824 BUILD_VERSION="${BUILD_VERSION}63528"
15825 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
15829 # Check whether --enable-build-timestamp was given.
15830 if test "${enable_build_timestamp+set}" = set; then :
15831 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
15832 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
15834 BUILD_TIMESTAMP="$enableval"
15836 BUILD_HOSTNAME="$ac_hostname"
15838 BUILD_TIMESTAMP="<none>"
15839 BUILD_HOSTNAME="<anon>"
15844 cat >>confdefs.h <<_ACEOF
15845 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
15852 # Print errors here so that they are visible all
15853 # together and the user can acquire them all together.
15856 if test "$have_gpg_error" = "no"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}:
15860 *** You need libgpg-error to build this program.
15861 ** This library is for example available at
15862 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
15863 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
15867 *** You need libgpg-error to build this program.
15868 ** This library is for example available at
15869 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
15870 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
15873 if test "$have_libgcrypt" = "no"; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}:
15877 *** You need libgcrypt to build this program.
15878 ** This library is for example available at
15879 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
15880 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
15884 *** You need libgcrypt to build this program.
15885 ** This library is for example available at
15886 *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
15887 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
15890 if test "$have_libassuan" = "no"; then
15892 { $as_echo "$as_me:${as_lineno-$LINENO}:
15894 *** You need libassuan to build this program.
15895 *** This library is for example available at
15896 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
15897 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
15901 *** You need libassuan to build this program.
15902 *** This library is for example available at
15903 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
15904 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
15907 if test "$have_ksba" = "no"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}:
15911 *** You need libksba to build this program.
15912 *** This library is for example available at
15913 *** ftp://ftp.gnupg.org/gcrypt/libksba/
15914 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
15918 *** You need libksba to build this program.
15919 *** This library is for example available at
15920 *** ftp://ftp.gnupg.org/gcrypt/libksba/
15921 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
15924 if test "$gnupg_have_ldap" = yes; then
15925 if test "$have_w32ce_system" = yes; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}:
15927 *** Note that CeGCC might be broken, a package fixing this is:
15928 *** http://files.kolab.org/local/windows-ce/
15929 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
15930 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
15933 *** Note that CeGCC might be broken, a package fixing this is:
15934 *** http://files.kolab.org/local/windows-ce/
15935 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
15936 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
15940 if test "$have_npth" = "no"; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}:
15944 *** It is now required to build with support for the
15945 *** New Portable Threads Library (nPth). Please install this
15946 *** library first. The library is for example available at
15947 *** ftp://ftp.gnupg.org/gcrypt/npth/
15948 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
15952 *** It is now required to build with support for the
15953 *** New Portable Threads Library (nPth). Please install this
15954 *** library first. The library is for example available at
15955 *** ftp://ftp.gnupg.org/gcrypt/npth/
15956 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
15960 if test "$require_iconv" = yes; then
15961 if test "$am_func_iconv" != yes; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}:
15965 *** The system does not provide a working iconv function. Please
15966 *** install a suitable library; for example GNU Libiconv which is
15968 *** http://ftp.gnu.org/gnu/libiconv/
15972 *** The system does not provide a working iconv function. Please
15973 *** install a suitable library; for example GNU Libiconv which is
15975 *** http://ftp.gnu.org/gnu/libiconv/
15980 if test "$use_ccid_driver" = yes; then
15981 if test "$have_libusb" != yes; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}:
15985 *** You need libusb to build the internal ccid driver. Please
15986 *** install a libusb suitable for your system.
15990 *** You need libusb to build the internal ccid driver. Please
15991 *** install a libusb suitable for your system.
15996 if test "$die" = "yes"; then
15999 *** Required libraries not found. Please consult the above messages
16000 *** and install them before running configure again.
16006 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile g13/Makefile dirmngr/Makefile tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest"
16010 cat >confcache <<\_ACEOF
16011 # This file is a shell script that caches the results of configure
16012 # tests run on this system so they can be shared between configure
16013 # scripts and configure runs, see configure's option --config-cache.
16014 # It is not useful on other systems. If it contains results you don't
16015 # want to keep, you may remove or edit it.
16017 # config.status only pays attention to the cache file if you give it
16018 # the --recheck option to rerun configure.
16020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16022 # following values.
16026 # The following way of writing the cache mishandles newlines in values,
16027 # but we know of no workaround that is simple, portable, and efficient.
16028 # So, we kill variables containing newlines.
16029 # Ultrix sh set writes to stderr and can't be redirected directly,
16030 # and sets the high bit in the cache file unless we assign to the vars.
16032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16033 eval ac_val=\$$ac_var
16037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16041 _ | IFS | as_nl) ;; #(
16042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16043 *) { eval $ac_var=; unset $ac_var;} ;;
16049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16050 *${as_nl}ac_space=\ *)
16051 # `set' does not quote correctly, so add quotes: double-quote
16052 # substitution turns \\\\ into \\, and sed turns \\ into \.
16055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16058 # `set' quotes correctly as required by POSIX, so do not add quotes.
16059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16073 if test -w "$cache_file"; then
16074 if test "x$cache_file" != "x/dev/null"; then
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16076 $as_echo "$as_me: updating cache $cache_file" >&6;}
16077 if test ! -f "$cache_file" || test -h "$cache_file"; then
16078 cat confcache >"$cache_file"
16080 case $cache_file in #(
16082 mv -f confcache "$cache_file"$$ &&
16083 mv -f "$cache_file"$$ "$cache_file" ;; #(
16085 mv -f confcache "$cache_file" ;;
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16097 # Let make expand exec_prefix.
16098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16100 DEFS=-DHAVE_CONFIG_H
16105 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16106 # 1. Remove the extension, and $U if already installed.
16107 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16108 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16109 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16110 # will be set to the directory where LIBOBJS objects are built.
16111 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16112 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16114 LIBOBJS=$ac_libobjs
16116 LTLIBOBJS=$ac_ltlibobjs
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16120 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16121 if test -n "$am_sleep_pid"; then
16122 # Hide warnings about reused PIDs.
16123 wait $am_sleep_pid 2>/dev/null
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16126 $as_echo "done" >&6; }
16127 if test -n "$EXEEXT"; then
16129 am__EXEEXT_FALSE='#'
16131 am__EXEEXT_TRUE='#'
16135 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16136 as_fn_error $? "conditional \"AMDEP\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16139 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16140 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16144 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16147 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16148 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16151 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16152 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16155 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16156 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16159 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16160 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16163 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16164 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16167 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16168 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16171 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16172 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16175 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16176 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16180 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16181 if test -n "$am_sleep_pid"; then
16182 # Hide warnings about reused PIDs.
16183 wait $am_sleep_pid 2>/dev/null
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16186 $as_echo "done" >&6; }
16187 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16188 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16191 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16192 as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16195 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16196 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16199 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16200 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16203 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16204 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16207 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16208 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16211 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16212 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16215 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16216 as_fn_error $? "conditional \"SQLITE3\" was never defined.
16217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16219 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16220 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16223 if test -z "${USE_LDAPWRAPPER_TRUE}" && test -z "${USE_LDAPWRAPPER_FALSE}"; then
16224 as_fn_error $? "conditional \"USE_LDAPWRAPPER\" was never defined.
16225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16227 if test -z "${DISABLE_REGEX_TRUE}" && test -z "${DISABLE_REGEX_FALSE}"; then
16228 as_fn_error $? "conditional \"DISABLE_REGEX\" was never defined.
16229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16231 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16232 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16235 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16236 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16239 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16240 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16243 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16244 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16247 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16248 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16251 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16252 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16255 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16256 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16260 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
16264 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
16265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16267 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16268 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271 if test -z "${BUILD_SYMCRYPTRUN_TRUE}" && test -z "${BUILD_SYMCRYPTRUN_FALSE}"; then
16272 as_fn_error $? "conditional \"BUILD_SYMCRYPTRUN\" was never defined.
16273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16276 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16280 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16284 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16287 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16288 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16289 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16292 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 : "${CONFIG_STATUS=./config.status}"
16298 ac_clean_files_save=$ac_clean_files
16299 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16301 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16303 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16305 # Generated by $as_me.
16306 # Run this file to recreate the current configuration.
16307 # Compiler output produced by configure, useful for debugging
16308 # configure, is in config.log if it exists.
16311 ac_cs_recheck=false
16314 SHELL=\${CONFIG_SHELL-$SHELL}
16317 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16318 ## -------------------- ##
16319 ## M4sh Initialization. ##
16320 ## -------------------- ##
16322 # Be more Bourne compatible
16323 DUALCASE=1; export DUALCASE # for MKS sh
16324 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16327 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16328 # is contrary to our usage. Disable this feature.
16329 alias -g '${1+"$@"}'='"$@"'
16330 setopt NO_GLOB_SUBST
16332 case `(set -o) 2>/dev/null` in #(
16344 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16345 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16346 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16348 # Prefer a ksh shell builtin over an external printf program on Solaris,
16349 # but without wasting forks for bash or zsh.
16350 if test -z "$BASH_VERSION$ZSH_VERSION" \
16351 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16352 as_echo='print -r --'
16353 as_echo_n='print -rn --'
16354 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16355 as_echo='printf %s\n'
16356 as_echo_n='printf %s'
16358 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16359 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16360 as_echo_n='/usr/ucb/echo -n'
16362 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16363 as_echo_n_body='eval
16367 expr "X$arg" : "X\\(.*\\)$as_nl";
16368 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16370 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16372 export as_echo_n_body
16373 as_echo_n='sh -c $as_echo_n_body as_echo'
16375 export as_echo_body
16376 as_echo='sh -c $as_echo_body as_echo'
16379 # The user is always right.
16380 if test "${PATH_SEPARATOR+set}" != set; then
16382 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16383 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16390 # We need space, tab and new line, in precisely that order. Quoting is
16391 # there to prevent editors from complaining about space-tab.
16392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16393 # splitting by setting IFS to empty value.)
16396 # Find who we are. Look in the path if we contain no directory separator.
16399 *[\\/]* ) as_myself=$0 ;;
16400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16401 for as_dir in $PATH
16404 test -z "$as_dir" && as_dir=.
16405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16411 # We did not find ourselves, most probably we were run as `sh COMMAND'
16412 # in which case we are not to be found in the path.
16413 if test "x$as_myself" = x; then
16416 if test ! -f "$as_myself"; then
16417 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16421 # Unset variables that we do not need and which cause bugs (e.g. in
16422 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16423 # suppresses any "Segmentation fault" message there. '((' could
16424 # trigger a bug in pdksh 5.2.14.
16425 for as_var in BASH_ENV ENV MAIL MAILPATH
16426 do eval test x\${$as_var+set} = xset \
16427 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16443 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16444 # ----------------------------------------
16445 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16446 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16447 # script with STATUS, using 1 if that was 0.
16450 as_status=$1; test $as_status -eq 0 && as_status=1
16452 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16453 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16455 $as_echo "$as_me: error: $2" >&2
16456 as_fn_exit $as_status
16460 # as_fn_set_status STATUS
16461 # -----------------------
16462 # Set $? to STATUS, without forking.
16463 as_fn_set_status ()
16466 } # as_fn_set_status
16468 # as_fn_exit STATUS
16469 # -----------------
16470 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16474 as_fn_set_status $1
16480 # Portably unset VAR.
16483 { eval $1=; unset $1;}
16485 as_unset=as_fn_unset
16486 # as_fn_append VAR VALUE
16487 # ----------------------
16488 # Append the text in VALUE to the end of the definition contained in VAR. Take
16489 # advantage of any shell optimizations that allow amortized linear growth over
16490 # repeated appends, instead of the typical quadratic growth present in naive
16492 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16493 eval 'as_fn_append ()
16504 # as_fn_arith ARG...
16505 # ------------------
16506 # Perform arithmetic evaluation on the ARGs, and store the result in the
16507 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16508 # must be portable across $(()) and expr.
16509 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16510 eval 'as_fn_arith ()
16517 as_val=`expr "$@" || test $? -eq 1`
16522 if expr a : '\(a\)' >/dev/null 2>&1 &&
16523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16529 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16530 as_basename=basename
16535 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16541 as_me=`$as_basename -- "$0" ||
16542 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16543 X"$0" : 'X\(//\)$' \| \
16544 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16546 sed '/^.*\/\([^/][^/]*\)\/*$/{
16560 # Avoid depending upon Character Ranges.
16561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16564 as_cr_digits='0123456789'
16565 as_cr_alnum=$as_cr_Letters$as_cr_digits
16567 ECHO_C= ECHO_N= ECHO_T=
16568 case `echo -n x` in #(((((
16570 case `echo 'xy\c'` in
16571 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16573 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16580 rm -f conf$$ conf$$.exe conf$$.file
16581 if test -d conf$$.dir; then
16582 rm -f conf$$.dir/conf$$.file
16585 mkdir conf$$.dir 2>/dev/null
16587 if (echo >conf$$.file) 2>/dev/null; then
16588 if ln -s conf$$.file conf$$ 2>/dev/null; then
16590 # ... but there are two gotchas:
16591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16593 # In both cases, we have to default to `cp -pR'.
16594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16596 elif ln conf$$.file conf$$ 2>/dev/null; then
16604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16605 rmdir conf$$.dir 2>/dev/null
16610 # Create "$as_dir" as a directory, including parents if necessary.
16615 -*) as_dir=./$as_dir;;
16617 test -d "$as_dir" || eval $as_mkdir_p || {
16621 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16622 *) as_qdir=$as_dir;;
16624 as_dirs="'$as_qdir' $as_dirs"
16625 as_dir=`$as_dirname -- "$as_dir" ||
16626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16627 X"$as_dir" : 'X\(//\)[^/]' \| \
16628 X"$as_dir" : 'X\(//\)$' \| \
16629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16630 $as_echo X"$as_dir" |
16631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16635 /^X\(\/\/\)[^/].*/{
16648 test -d "$as_dir" && break
16650 test -z "$as_dirs" || eval "mkdir $as_dirs"
16651 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16655 if mkdir -p . 2>/dev/null; then
16656 as_mkdir_p='mkdir -p "$as_dir"'
16658 test -d ./-p && rmdir ./-p
16663 # as_fn_executable_p FILE
16664 # -----------------------
16665 # Test if FILE is an executable regular file.
16666 as_fn_executable_p ()
16668 test -f "$1" && test -x "$1"
16669 } # as_fn_executable_p
16670 as_test_x='test -x'
16671 as_executable_p=as_fn_executable_p
16673 # Sed expression to map a string onto a valid CPP name.
16674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16676 # Sed expression to map a string onto a valid variable name.
16677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16681 ## ----------------------------------- ##
16682 ## Main body of $CONFIG_STATUS script. ##
16683 ## ----------------------------------- ##
16685 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16688 # Save the log message, to keep $0 and so on meaningful, and to
16689 # report actual input values of CONFIG_FILES etc. instead of their
16690 # values after options handling.
16692 This file was extended by gnupg $as_me 2.1.18, which was
16693 generated by GNU Autoconf 2.69. Invocation command line was
16695 CONFIG_FILES = $CONFIG_FILES
16696 CONFIG_HEADERS = $CONFIG_HEADERS
16697 CONFIG_LINKS = $CONFIG_LINKS
16698 CONFIG_COMMANDS = $CONFIG_COMMANDS
16701 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16706 case $ac_config_files in *"
16707 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16710 case $ac_config_headers in *"
16711 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16716 # Files that config.status was made for.
16717 config_files="$ac_config_files"
16718 config_headers="$ac_config_headers"
16719 config_commands="$ac_config_commands"
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 \`$as_me' instantiates files and other configuration actions
16726 from templates according to the current configuration. Unless the files
16727 and actions are specified as TAGs, all are instantiated by default.
16729 Usage: $0 [OPTION]... [TAG]...
16731 -h, --help print this help, then exit
16732 -V, --version print version number and configuration settings, then exit
16733 --config print configuration, then exit
16734 -q, --quiet, --silent
16735 do not print progress messages
16736 -d, --debug don't remove temporary files
16737 --recheck update $as_me by reconfiguring in the same conditions
16738 --file=FILE[:TEMPLATE]
16739 instantiate the configuration file FILE
16740 --header=FILE[:TEMPLATE]
16741 instantiate the configuration header FILE
16743 Configuration files:
16746 Configuration headers:
16749 Configuration commands:
16752 Report bugs to <https://bugs.gnupg.org>."
16755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16756 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16758 gnupg config.status 2.1.18
16759 configured by $0, generated by GNU Autoconf 2.69,
16760 with options \\"\$ac_cs_config\\"
16762 Copyright (C) 2012 Free Software Foundation, Inc.
16763 This config.status script is free software; the Free Software Foundation
16764 gives unlimited permission to copy, distribute and modify it."
16771 test -n "\$AWK" || AWK=awk
16774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16775 # The default lists apply if the user does not specify any file.
16781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16798 # Handling of the options.
16799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16802 $as_echo "$ac_cs_version"; exit ;;
16803 --config | --confi | --conf | --con | --co | --c )
16804 $as_echo "$ac_cs_config"; exit ;;
16805 --debug | --debu | --deb | --de | --d | -d )
16807 --file | --fil | --fi | --f )
16810 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16811 '') as_fn_error $? "missing file argument" ;;
16813 as_fn_append CONFIG_FILES " '$ac_optarg'"
16814 ac_need_defaults=false;;
16815 --header | --heade | --head | --hea )
16818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16820 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16821 ac_need_defaults=false;;
16823 # Conflict between --help and --header
16824 as_fn_error $? "ambiguous option: \`$1'
16825 Try \`$0 --help' for more information.";;
16826 --help | --hel | -h )
16827 $as_echo "$ac_cs_usage"; exit ;;
16828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16832 # This is an error.
16833 -*) as_fn_error $? "unrecognized option: \`$1'
16834 Try \`$0 --help' for more information." ;;
16836 *) as_fn_append ac_config_targets " $1"
16837 ac_need_defaults=false ;;
16843 ac_configure_extra_args=
16845 if $ac_cs_silent; then
16847 ac_configure_extra_args="$ac_configure_extra_args --silent"
16851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16852 if \$ac_cs_recheck; then
16853 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16856 CONFIG_SHELL='$SHELL'
16857 export CONFIG_SHELL
16862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16867 ## Running $as_me. ##
16873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16877 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16878 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16879 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16880 # from automake < 1.5.
16881 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16882 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16883 LINGUAS="${LINGUAS-%UNSET%}"
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 # Handling of arguments.
16891 for ac_config_target in $ac_config_targets
16893 case $ac_config_target in
16894 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16895 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16896 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16897 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16898 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16899 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16900 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
16901 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
16902 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
16903 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
16904 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
16905 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
16906 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
16907 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
16908 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
16909 "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
16910 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16911 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16912 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16913 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
16914 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
16915 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
16916 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
16917 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
16918 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
16919 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
16921 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16926 # If the user did not use the arguments to specify the items to instantiate,
16927 # then the envvar interface is used. Set only those that are not.
16928 # We use the long form for the default assignment because of an extremely
16929 # bizarre bug on SunOS 4.1.3.
16930 if $ac_need_defaults; then
16931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16936 # Have a temporary directory for convenience. Make it in the build tree
16937 # simply because there is no reason against having it here, and in addition,
16938 # creating and moving files from /tmp can sometimes cause problems.
16939 # Hook for its removal unless debugging.
16940 # Note that there is a small window in which the directory will not be cleaned:
16941 # after its creation but before its name has been assigned to `$tmp'.
16945 trap 'exit_status=$?
16946 : "${ac_tmp:=$tmp}"
16947 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16949 trap 'as_fn_exit 1' 1 2 13 15
16951 # Create a (secure) tmp directory for tmp files.
16954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16958 tmp=./conf$$-$RANDOM
16959 (umask 077 && mkdir "$tmp")
16960 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16963 # Set up the scripts for CONFIG_FILES section.
16964 # No need to generate them if there are no CONFIG_FILES.
16965 # This happens for instance with `./config.status config.h'.
16966 if test -n "$CONFIG_FILES"; then
16969 ac_cr=`echo X | tr X '\015'`
16970 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16971 # But we know of no other shell where ac_cr would be empty at this
16972 # point, so we can use a bashism as a fallback.
16973 if test "x$ac_cr" = x; then
16974 eval ac_cr=\$\'\\r\'
16976 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16977 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16980 ac_cs_awk_cr=$ac_cr
16983 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16988 echo "cat >conf$$subs.awk <<_ACEOF" &&
16989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16991 } >conf$$subs.sh ||
16992 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16995 for ac_last_try in false false false false false :; do
16996 . ./conf$$subs.sh ||
16997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17000 if test $ac_delim_n = $ac_delim_num; then
17002 elif $ac_last_try; then
17003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17008 rm -f conf$$subs.sh
17010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17015 s/^/S["/; s/!.*/"]=/
17025 s/\(.\{148\}\)..*/\1/
17027 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17039 s/\(.\{148\}\)..*/\1/
17041 s/["\\]/\\&/g; s/^/"/; s/$/"/
17045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17050 ' <conf$$subs.awk | sed '
17055 ' >>$CONFIG_STATUS || ac_write_fail=1
17056 rm -f conf$$subs.awk
17057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17059 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17060 for (key in S) S_is_set[key] = 1
17066 nfields = split(line, field, "@")
17068 len = length(field[1])
17069 for (i = 2; i < nfields; i++) {
17071 keylen = length(key)
17072 if (S_is_set[key]) {
17074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17075 len += length(value) + length(field[++i])
17086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17087 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17088 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17091 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17092 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17095 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17096 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17097 # trailing colons and then remove the whole line if VPATH becomes empty
17098 # (actually we leave an empty line to preserve line numbers).
17099 if test "x$srcdir" = x.; then
17100 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17119 fi # test -n "$CONFIG_FILES"
17121 # Set up the scripts for CONFIG_HEADERS section.
17122 # No need to generate them if there are no CONFIG_HEADERS.
17123 # This happens for instance with `./config.status Makefile'.
17124 if test -n "$CONFIG_HEADERS"; then
17125 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17129 # Transform confdefs.h into an awk script `defines.awk', embedded as
17130 # here-document in config.status, that substitutes the proper values into
17131 # config.h.in to produce config.h.
17133 # Create a delimiter string that does not exist in confdefs.h, to ease
17134 # handling of long lines.
17136 for ac_last_try in false false :; do
17137 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17138 if test -z "$ac_tt"; then
17140 elif $ac_last_try; then
17141 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17147 # For the awk script, D is an array of macro values keyed by name,
17148 # likewise P contains macro parameters if any. Preserve backslash
17149 # newline sequences.
17151 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17153 s/.\{148\}/&'"$ac_delim"'/g
17156 s/^[ ]*#[ ]*define[ ][ ]*/ /
17163 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17169 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17170 D["\1"]=" \3\\\\\\n"\\/p
17172 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17177 s/.\{148\}/&'"$ac_delim"'/g
17182 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17185 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17187 ' <confdefs.h | sed '
17188 s/'"$ac_delim"'/"\\\
17189 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17192 for (key in D) D_is_set[key] = 1
17195 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17197 split(line, arg, " ")
17198 if (arg[1] == "#") {
17202 defundef = substr(arg[1], 2)
17205 split(mac1, mac2, "(") #)
17207 prefix = substr(line, 1, index(line, defundef) - 1)
17208 if (D_is_set[macro]) {
17209 # Preserve the white space surrounding the "#".
17210 print prefix "define", macro P[macro] D[macro]
17213 # Replace #undef with comments. This is necessary, for example,
17214 # in the case of _POSIX_SOURCE, which is predefined and required
17215 # on some systems where configure will not decide to define it.
17216 if (defundef == "undef") {
17217 print "/*", prefix defundef, macro, "*/"
17225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17226 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17227 fi # test -n "$CONFIG_HEADERS"
17230 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17235 :[FHLC]) ac_mode=$ac_tag; continue;;
17237 case $ac_mode$ac_tag in
17239 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17240 :[FH]-) ac_tag=-:-;;
17241 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17258 -) ac_f="$ac_tmp/stdin";;
17259 *) # Look for the file first in the build tree, then in the source tree
17260 # (if the path is not absolute). The absolute path cannot be DOS-style,
17261 # because $ac_f cannot contain `:'.
17265 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17267 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17269 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17270 as_fn_append ac_file_inputs " '$ac_f'"
17273 # Let's still pretend it is `configure' which instantiates (i.e., don't
17274 # use $as_me), people would be surprised to read:
17275 # /* config.h. Generated by config.status. */
17276 configure_input='Generated from '`
17277 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17279 if test x"$ac_file" != x-; then
17280 configure_input="$ac_file. $configure_input"
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17282 $as_echo "$as_me: creating $ac_file" >&6;}
17284 # Neutralize special characters interpreted by sed in replacement strings.
17285 case $configure_input in #(
17286 *\&* | *\|* | *\\* )
17287 ac_sed_conf_input=`$as_echo "$configure_input" |
17288 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17289 *) ac_sed_conf_input=$configure_input;;
17293 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17299 ac_dir=`$as_dirname -- "$ac_file" ||
17300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17301 X"$ac_file" : 'X\(//\)[^/]' \| \
17302 X"$ac_file" : 'X\(//\)$' \| \
17303 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17304 $as_echo X"$ac_file" |
17305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17309 /^X\(\/\/\)[^/].*/{
17322 as_dir="$ac_dir"; as_fn_mkdir_p
17326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17328 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17329 # A ".." for each directory in $ac_dir_suffix.
17330 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17331 case $ac_top_builddir_sub in
17332 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17333 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17336 ac_abs_top_builddir=$ac_pwd
17337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17338 # for backward compatibility:
17339 ac_top_builddir=$ac_top_build_prefix
17342 .) # We are building in place.
17344 ac_top_srcdir=$ac_top_builddir_sub
17345 ac_abs_top_srcdir=$ac_pwd ;;
17346 [\\/]* | ?:[\\/]* ) # Absolute name.
17347 ac_srcdir=$srcdir$ac_dir_suffix;
17348 ac_top_srcdir=$srcdir
17349 ac_abs_top_srcdir=$srcdir ;;
17350 *) # Relative name.
17351 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17352 ac_top_srcdir=$ac_top_build_prefix$srcdir
17353 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17365 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17366 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17368 ac_MKDIR_P=$MKDIR_P
17370 [\\/$]* | ?:[\\/]* ) ;;
17371 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 # If the template does not know about datarootdir, expand it.
17377 # FIXME: This hack should be removed a few years after 2.60.
17378 ac_datarootdir_hack=; ac_datarootdir_seen=
17389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17390 *datarootdir*) ac_datarootdir_seen=yes;;
17391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 ac_datarootdir_hack='
17397 s&@datadir@&$datadir&g
17398 s&@docdir@&$docdir&g
17399 s&@infodir@&$infodir&g
17400 s&@localedir@&$localedir&g
17401 s&@mandir@&$mandir&g
17402 s&\\\${datarootdir}&$datarootdir&g' ;;
17406 # Neutralize VPATH when `$srcdir' = `.'.
17407 # Shell code in configure.ac might set extrasub.
17408 # FIXME: do we really want to maintain this feature?
17409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17410 ac_sed_extra="$ac_vpsub
17413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17416 s|@configure_input@|$ac_sed_conf_input|;t t
17417 s&@top_builddir@&$ac_top_builddir_sub&;t t
17418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17419 s&@srcdir@&$ac_srcdir&;t t
17420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17421 s&@top_srcdir@&$ac_top_srcdir&;t t
17422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17423 s&@builddir@&$ac_builddir&;t t
17424 s&@abs_builddir@&$ac_abs_builddir&;t t
17425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17426 s&@INSTALL@&$ac_INSTALL&;t t
17427 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17428 $ac_datarootdir_hack
17430 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17431 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17433 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17434 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17435 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17436 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17438 which seems to be undefined. Please make sure it is defined" >&5
17439 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17440 which seems to be undefined. Please make sure it is defined" >&2;}
17442 rm -f "$ac_tmp/stdin"
17444 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17445 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17453 if test x"$ac_file" != x-; then
17455 $as_echo "/* $configure_input */" \
17456 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17457 } >"$ac_tmp/config.h" \
17458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17459 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17461 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17464 mv "$ac_tmp/config.h" "$ac_file" \
17465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17468 $as_echo "/* $configure_input */" \
17469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17470 || as_fn_error $? "could not create -" "$LINENO" 5
17472 # Compute "$ac_file"'s index in $config_headers.
17475 for _am_header in $config_headers :; do
17476 case $_am_header in
17477 $_am_arg | $_am_arg:* )
17480 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17483 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17484 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17485 X"$_am_arg" : 'X\(//\)[^/]' \| \
17486 X"$_am_arg" : 'X\(//\)$' \| \
17487 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17488 $as_echo X"$_am_arg" |
17489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17493 /^X\(\/\/\)[^/].*/{
17505 s/.*/./; q'`/stamp-h$_am_stamp_count
17508 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17509 $as_echo "$as_me: executing $ac_file commands" >&6;}
17514 case $ac_file$ac_mode in
17515 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17516 # Older Autoconf quotes --file arguments for eval, but not when files
17517 # are listed without --file. Let's play safe and only enable the eval
17518 # if we detect the quoting.
17519 case $CONFIG_FILES in
17520 *\'*) eval set x "$CONFIG_FILES" ;;
17521 *) set x $CONFIG_FILES ;;
17526 # Strip MF so we end up with the name of the file.
17527 mf=`echo "$mf" | sed -e 's/:.*$//'`
17528 # Check whether this is an Automake generated Makefile or not.
17529 # We used to match only the files named 'Makefile.in', but
17530 # some people rename them; so instead we look at the file content.
17531 # Grep'ing the first line is not enough: some people post-process
17532 # each Makefile.in and add a new line on top of each file to say so.
17533 # Grep'ing the whole file is not good either: AIX grep has a line
17534 # limit of 2048, but all sed's we know have understand at least 4000.
17535 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17536 dirpart=`$as_dirname -- "$mf" ||
17537 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17538 X"$mf" : 'X\(//\)[^/]' \| \
17539 X"$mf" : 'X\(//\)$' \| \
17540 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17546 /^X\(\/\/\)[^/].*/{
17562 # Extract the definition of DEPDIR, am__include, and am__quote
17563 # from the Makefile without running 'make'.
17564 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17565 test -z "$DEPDIR" && continue
17566 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17567 test -z "$am__include" && continue
17568 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17569 # Find all dependency output files, they are included files with
17570 # $(DEPDIR) in their names. We invoke sed twice because it is the
17571 # simplest approach to changing $(DEPDIR) to its actual value in the
17573 for file in `sed -n "
17574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17576 # Make sure the directory exists.
17577 test -f "$dirpart/$file" && continue
17578 fdir=`$as_dirname -- "$file" ||
17579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17580 X"$file" : 'X\(//\)[^/]' \| \
17581 X"$file" : 'X\(//\)$' \| \
17582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17583 $as_echo X"$file" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17588 /^X\(\/\/\)[^/].*/{
17601 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17602 # echo "creating $dirpart/$file"
17603 echo '# dummy' > "$dirpart/$file"
17608 "po-directories":C)
17609 for ac_file in $CONFIG_FILES; do
17610 # Support "outfile[:infile[:infile...]]"
17612 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17614 # PO directories have a Makefile.in generated from Makefile.in.in.
17615 case "$ac_file" in */Makefile.in)
17616 # Adjust a relative srcdir.
17617 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17618 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17619 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17620 # In autoconf-2.13 it is called $ac_given_srcdir.
17621 # In autoconf-2.50 it is called $srcdir.
17622 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17623 case "$ac_given_srcdir" in
17624 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17625 /*) top_srcdir="$ac_given_srcdir" ;;
17626 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17628 # Treat a directory as a PO directory if and only if it has a
17629 # POTFILES.in file. This allows packages to have multiple PO
17630 # directories under different names or in different locations.
17631 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17632 rm -f "$ac_dir/POTFILES"
17633 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17634 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17635 POMAKEFILEDEPS="POTFILES.in"
17636 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17637 # on $ac_dir but don't depend on user-specified configuration
17639 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17640 # The LINGUAS file contains the set of available languages.
17641 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17642 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17644 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17645 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17646 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17647 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17649 # The set of available languages was given in configure.in.
17650 # Hide the ALL_LINGUAS assigment from automake < 1.5.
17651 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17654 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17655 # Compute UPDATEPOFILES
17656 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17657 # Compute DUMMYPOFILES
17658 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17660 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17661 case "$ac_given_srcdir" in
17663 *) srcdirpre='$(srcdir)/' ;;
17669 for lang in $ALL_LINGUAS; do
17670 POFILES="$POFILES $srcdirpre$lang.po"
17671 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17672 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17673 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17675 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17676 # environment variable.
17678 if test -n "$ALL_LINGUAS"; then
17679 for presentlang in $ALL_LINGUAS; do
17681 if test "%UNSET%" != "$LINGUAS"; then
17682 desiredlanguages="$LINGUAS"
17684 desiredlanguages="$ALL_LINGUAS"
17686 for desiredlang in $desiredlanguages; do
17687 # Use the presentlang catalog if desiredlang is
17688 # a. equal to presentlang, or
17689 # b. a variant of presentlang (because in this case,
17690 # presentlang can be used as a fallback for messages
17691 # which are not translated in the desiredlang catalog).
17692 case "$desiredlang" in
17693 "$presentlang"*) useit=yes;;
17696 if test $useit = yes; then
17697 INST_LINGUAS="$INST_LINGUAS $presentlang"
17702 if test -n "$INST_LINGUAS"; then
17703 for lang in $INST_LINGUAS; do
17704 CATALOGS="$CATALOGS $lang.gmo"
17707 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17708 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"
17709 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17710 if test -f "$f"; then
17712 *.orig | *.bak | *~) ;;
17713 *) cat "$f" >> "$ac_dir/Makefile" ;;
17728 ac_clean_files=$ac_clean_files_save
17730 test $ac_write_fail = 0 ||
17731 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17734 # configure is writing to config.log, and then calls config.status.
17735 # config.status does its own redirection, appending to config.log.
17736 # Unfortunately, on DOS this fails, as config.log is still kept open
17737 # by configure, so config.status won't be able to write to it; its
17738 # output is simply discarded. So we exec the FD to /dev/null,
17739 # effectively closing config.log, so it can be properly (re)opened and
17740 # appended to by config.status. When coming back to configure, we
17741 # need to make the FD available again.
17742 if test "$no_create" != yes; then
17744 ac_config_status_args=
17745 test "$silent" = yes &&
17746 ac_config_status_args="$ac_config_status_args --quiet"
17748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17751 # would make configure fail if this is the last instruction.
17752 $ac_cs_success || as_fn_exit 1
17754 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17756 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17762 GnuPG v${VERSION} has been configured as follows:
17764 Revision: f8289b1 (63528)
17765 Platform: $PRINTABLE_OS_NAME ($host)
17767 OpenPGP: $build_gpg
17768 S/MIME: $build_gpgsm
17769 Agent: $build_agent
17770 Smartcard: $build_scdaemon $build_scdaemon_extra
17772 Dirmngr: $build_dirmngr
17773 Gpgtar: $build_gpgtar
17774 WKS tools: $build_wks_tools
17776 Protect tool: $show_gnupg_protect_tool_pgm
17777 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
17778 Default agent: $show_gnupg_agent_pgm
17779 Default pinentry: $show_gnupg_pinentry_pgm
17780 Default scdaemon: $show_gnupg_scdaemon_pgm
17781 Default dirmngr: $show_gnupg_dirmngr_pgm
17783 Dirmngr auto start: $dirmngr_auto_start
17784 Readline support: $gnupg_cv_have_readline
17785 LDAP support: $gnupg_have_ldap
17786 TLS support: $use_tls_library
17787 TOFU support: $use_tofu
17788 Tor support: $show_tor_support
17790 if test x"$use_regex" != xyes ; then
17792 Warning: No regular expression support available.
17793 OpenPGP trust signatures won't work.
17794 gpg-check-pattern will not be built.
17797 if test "x${gpg_config_script_warn}" != x; then
17799 Warning: Mismatches between the target platform and the
17800 to be used libraries have been detected for:
17801 ${gpg_config_script_warn}
17802 Please check above for more warning messages.