2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.2.
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.3.2'
584 PACKAGE_STRING='gnupg 2.3.2'
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
644 BUILD_WKS_TOOLS_FALSE
681 CROSS_COMPILING_FALSE
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
688 BUILD_INCLUDED_LIBINTL
695 XGETTEXT_EXTRA_OPTIONS
703 GETTEXT_MACRO_VERSION
747 HAVE_ANDROID_SYSTEM_FALSE
748 HAVE_ANDROID_SYSTEM_TRUE
749 HAVE_W32CE_SYSTEM_FALSE
750 HAVE_W32CE_SYSTEM_TRUE
751 HAVE_W32_SYSTEM_FALSE
753 USE_SIMPLE_GETTEXT_FALSE
754 USE_SIMPLE_GETTEXT_TRUE
755 HAVE_DOSISH_SYSTEM_FALSE
756 HAVE_DOSISH_SYSTEM_TRUE
761 AWK_HEX_NUMBER_OPTION
772 MAINTAINER_MODE_FALSE
778 GNUPG_DIRMNGR_LDAP_PGM_FALSE
779 GNUPG_DIRMNGR_LDAP_PGM_TRUE
780 GNUPG_DIRMNGR_LDAP_PGM
781 GNUPG_PROTECT_TOOL_PGM_FALSE
782 GNUPG_PROTECT_TOOL_PGM_TRUE
783 GNUPG_PROTECT_TOOL_PGM
784 GNUPG_KEYBOXD_PGM_FALSE
785 GNUPG_KEYBOXD_PGM_TRUE
787 GNUPG_DIRMNGR_PGM_FALSE
788 GNUPG_DIRMNGR_PGM_TRUE
790 GNUPG_TPM2DAEMON_PGM_FALSE
791 GNUPG_TPM2DAEMON_PGM_TRUE
793 GNUPG_SCDAEMON_PGM_FALSE
794 GNUPG_SCDAEMON_PGM_TRUE
796 GNUPG_PINENTRY_PGM_FALSE
797 GNUPG_PINENTRY_PGM_TRUE
799 GNUPG_AGENT_PGM_FALSE
842 INSTALL_STRIP_PROGRAM
885 program_transform_name
899 enable_option_checking
901 enable_dependency_tracking
917 with_protect_tool_pgm
918 with_dirmngr_ldap_pgm
920 enable_selinux_support
922 with_agent_s2k_calibration
937 enable_gpg_camellia128
938 enable_gpg_camellia192
939 enable_gpg_camellia256
954 enable_dirmngr_auto_start
955 enable_maintainer_mode
957 with_libgpg_error_prefix
958 with_gpg_error_prefix
959 with_libgcrypt_prefix
960 with_libassuan_prefix
969 with_default_trust_store_file
988 enable_gnupg_builddir_envvar
989 enable_run_gnupg_user_socket
990 enable_build_timestamp
992 ac_precious_vars='build_alias
1013 # Initialize some variables set by options.
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1027 program_transform_name=s,x,x,
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 runstatedir='${localstatedir}/run'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1053 infodir='${datarootdir}/info'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1066 # If the previous option needs an argument, assign it.
1067 if test -n "$ac_prev"; then
1068 eval $ac_prev=\$ac_option
1074 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1079 # Accept the important Cygnus configure options, so we can diagnose typos.
1081 case $ac_dashdash$ac_option in
1085 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1088 bindir=$ac_optarg ;;
1090 -build | --build | --buil | --bui | --bu)
1091 ac_prev=build_alias ;;
1092 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1093 build_alias=$ac_optarg ;;
1095 -cache-file | --cache-file | --cache-fil | --cache-fi \
1096 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1097 ac_prev=cache_file ;;
1098 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1099 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1100 cache_file=$ac_optarg ;;
1102 --config-cache | -C)
1103 cache_file=config.cache ;;
1105 -datadir | --datadir | --datadi | --datad)
1107 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1108 datadir=$ac_optarg ;;
1110 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1111 | --dataroo | --dataro | --datar)
1112 ac_prev=datarootdir ;;
1113 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1114 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1115 datarootdir=$ac_optarg ;;
1117 -disable-* | --disable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "enable_$ac_useropt"
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1131 eval enable_$ac_useropt=no ;;
1133 -docdir | --docdir | --docdi | --doc | --do)
1135 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1136 docdir=$ac_optarg ;;
1138 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1140 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1141 dvidir=$ac_optarg ;;
1143 -enable-* | --enable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_$ac_useropt"
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval enable_$ac_useropt=\$ac_optarg ;;
1159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161 | --exec | --exe | --ex)
1162 ac_prev=exec_prefix ;;
1163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165 | --exec=* | --exe=* | --ex=*)
1166 exec_prefix=$ac_optarg ;;
1168 -gas | --gas | --ga | --g)
1169 # Obsolete; use --with-gas.
1172 -help | --help | --hel | --he | -h)
1173 ac_init_help=long ;;
1174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175 ac_init_help=recursive ;;
1176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177 ac_init_help=short ;;
1179 -host | --host | --hos | --ho)
1180 ac_prev=host_alias ;;
1181 -host=* | --host=* | --hos=* | --ho=*)
1182 host_alias=$ac_optarg ;;
1184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188 htmldir=$ac_optarg ;;
1190 -includedir | --includedir | --includedi | --included | --include \
1191 | --includ | --inclu | --incl | --inc)
1192 ac_prev=includedir ;;
1193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194 | --includ=* | --inclu=* | --incl=* | --inc=*)
1195 includedir=$ac_optarg ;;
1197 -infodir | --infodir | --infodi | --infod | --info | --inf)
1199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200 infodir=$ac_optarg ;;
1202 -libdir | --libdir | --libdi | --libd)
1204 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205 libdir=$ac_optarg ;;
1207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208 | --libexe | --libex | --libe)
1209 ac_prev=libexecdir ;;
1210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211 | --libexe=* | --libex=* | --libe=*)
1212 libexecdir=$ac_optarg ;;
1214 -localedir | --localedir | --localedi | --localed | --locale)
1215 ac_prev=localedir ;;
1216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217 localedir=$ac_optarg ;;
1219 -localstatedir | --localstatedir | --localstatedi | --localstated \
1220 | --localstate | --localstat | --localsta | --localst | --locals)
1221 ac_prev=localstatedir ;;
1222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224 localstatedir=$ac_optarg ;;
1226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229 mandir=$ac_optarg ;;
1231 -nfp | --nfp | --nf)
1232 # Obsolete; use --without-fp.
1235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236 | --no-cr | --no-c | -n)
1239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245 | --oldin | --oldi | --old | --ol | --o)
1246 ac_prev=oldincludedir ;;
1247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250 oldincludedir=$ac_optarg ;;
1252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255 prefix=$ac_optarg ;;
1257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258 | --program-pre | --program-pr | --program-p)
1259 ac_prev=program_prefix ;;
1260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262 program_prefix=$ac_optarg ;;
1264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265 | --program-suf | --program-su | --program-s)
1266 ac_prev=program_suffix ;;
1267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269 program_suffix=$ac_optarg ;;
1271 -program-transform-name | --program-transform-name \
1272 | --program-transform-nam | --program-transform-na \
1273 | --program-transform-n | --program-transform- \
1274 | --program-transform | --program-transfor \
1275 | --program-transfo | --program-transf \
1276 | --program-trans | --program-tran \
1277 | --progr-tra | --program-tr | --program-t)
1278 ac_prev=program_transform_name ;;
1279 -program-transform-name=* | --program-transform-name=* \
1280 | --program-transform-nam=* | --program-transform-na=* \
1281 | --program-transform-n=* | --program-transform-=* \
1282 | --program-transform=* | --program-transfor=* \
1283 | --program-transfo=* | --program-transf=* \
1284 | --program-trans=* | --program-tran=* \
1285 | --progr-tra=* | --program-tr=* | --program-t=*)
1286 program_transform_name=$ac_optarg ;;
1288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291 pdfdir=$ac_optarg ;;
1293 -psdir | --psdir | --psdi | --psd | --ps)
1295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1302 -runstatedir | --runstatedir | --runstatedi | --runstated \
1303 | --runstate | --runstat | --runsta | --runst | --runs \
1304 | --run | --ru | --r)
1305 ac_prev=runstatedir ;;
1306 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1307 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1308 | --run=* | --ru=* | --r=*)
1309 runstatedir=$ac_optarg ;;
1311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 sbindir=$ac_optarg ;;
1317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1319 | --sharedst | --shareds | --shared | --share | --shar \
1321 ac_prev=sharedstatedir ;;
1322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 sharedstatedir=$ac_optarg ;;
1328 -site | --site | --sit)
1330 -site=* | --site=* | --sit=*)
1333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1336 srcdir=$ac_optarg ;;
1338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1339 | --syscon | --sysco | --sysc | --sys | --sy)
1340 ac_prev=sysconfdir ;;
1341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1343 sysconfdir=$ac_optarg ;;
1345 -target | --target | --targe | --targ | --tar | --ta | --t)
1346 ac_prev=target_alias ;;
1347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1348 target_alias=$ac_optarg ;;
1350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353 -version | --version | --versio | --versi | --vers | -V)
1354 ac_init_version=: ;;
1357 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error $? "invalid package name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval with_$ac_useropt=\$ac_optarg ;;
1372 -without-* | --without-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1386 eval with_$ac_useropt=no ;;
1389 # Obsolete; use --with-x.
1392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1393 | --x-incl | --x-inc | --x-in | --x-i)
1394 ac_prev=x_includes ;;
1395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1397 x_includes=$ac_optarg ;;
1399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1401 ac_prev=x_libraries ;;
1402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1404 x_libraries=$ac_optarg ;;
1406 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information"
1411 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412 # Reject names that are not valid shell variable names.
1413 case $ac_envvar in #(
1414 '' | [0-9]* | *[!_$as_cr_alnum]* )
1415 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 eval $ac_envvar=\$ac_optarg
1418 export $ac_envvar ;;
1421 # FIXME: should be removed in autoconf 3.0.
1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1431 if test -n "$ac_prev"; then
1432 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1433 as_fn_error $? "missing argument to $ac_option"
1436 if test -n "$ac_unrecognized_opts"; then
1437 case $enable_option_checking in
1439 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444 # Check all directory arguments for consistency.
1445 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir runstatedir
1450 eval ac_val=\$$ac_var
1451 # Remove trailing slashes.
1454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\$ac_val;;
1457 # Be sure to have absolute directory names.
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 elif test "x$build_alias" != "x$host_alias"; then
1482 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484 test "$silent" = yes && exec 6>/dev/null
1487 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1488 ac_ls_di=`ls -di .` &&
1489 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1490 as_fn_error $? "working directory cannot be determined"
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 as_fn_error $? "pwd does not report name of working directory"
1495 # Find the source files, if location was not specified.
1496 if test -z "$srcdir"; then
1497 ac_srcdir_defaulted=yes
1498 # Try the directory containing this script, then the parent directory.
1499 ac_confdir=`$as_dirname -- "$as_myself" ||
1500 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1501 X"$as_myself" : 'X\(//\)[^/]' \| \
1502 X"$as_myself" : 'X\(//\)$' \| \
1503 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1504 $as_echo X"$as_myself" |
1505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1527 ac_srcdir_defaulted=no
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1531 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 # When building in place, set srcdir=.
1538 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 # Remove unnecessary trailing slashes from srcdir.
1542 # Double slashes in file names in object file debugging info
1543 # mess up M-x gdb in Emacs.
1545 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 for ac_var in $ac_precious_vars; do
1548 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_env_${ac_var}_value=\$${ac_var}
1550 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 # Report the --help message.
1557 if test "$ac_init_help" = "long"; then
1558 # Omit some internal or obsolete options to make the list less imposing.
1559 # This message is too long to be a string in the A/UX 3.1 sh.
1561 \`configure' configures gnupg 2.3.2 to adapt to many kinds of systems.
1563 Usage: $0 [OPTION]... [VAR=VALUE]...
1565 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1566 VAR=VALUE. See below for descriptions of some of the useful variables.
1568 Defaults for the options are specified in brackets.
1571 -h, --help display this help and exit
1572 --help=short display options specific to this package
1573 --help=recursive display the short help of all the included packages
1574 -V, --version display version information and exit
1575 -q, --quiet, --silent do not print \`checking ...' messages
1576 --cache-file=FILE cache test results in FILE [disabled]
1577 -C, --config-cache alias for \`--cache-file=config.cache'
1578 -n, --no-create do not create output files
1579 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581 Installation directories:
1582 --prefix=PREFIX install architecture-independent files in PREFIX
1583 [$ac_default_prefix]
1584 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 By default, \`make install' will install all the files in
1588 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1589 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1590 for instance \`--prefix=\$HOME'.
1592 For better control, use the options below.
1594 Fine tuning of the installation directories:
1595 --bindir=DIR user executables [EPREFIX/bin]
1596 --sbindir=DIR system admin executables [EPREFIX/sbin]
1597 --libexecdir=DIR program executables [EPREFIX/libexec]
1598 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1599 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1600 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1601 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1630 if test -n "$ac_init_help"; then
1631 case $ac_init_help in
1632 short | recursive ) echo "Configuration of gnupg 2.3.2:";;
1637 --disable-option-checking ignore unrecognized --enable/--with options
1638 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1639 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1640 --enable-silent-rules less verbose build output (undo: "make V=1")
1641 --disable-silent-rules verbose build output (undo: "make V=0")
1642 --enable-dependency-tracking
1643 do not reject slow dependency extractors
1644 --disable-dependency-tracking
1645 speeds up one-time build
1646 --disable-gpgsm do not build the gpgsm program
1647 --disable-scdaemon do not build the scdaemon program
1648 --enable-g13 build the g13 program
1649 --disable-dirmngr do not build the dirmngr program
1650 --disable-keyboxd do not build the keyboxd program
1651 --disable-tpm2d do not build the tpm2d program
1652 --disable-doc do not build the doc program
1653 --disable-gpgtar do not build the gpgtar program
1654 --disable-wks-tools do not build the wks-tools program
1655 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1656 --enable-selinux-support
1657 enable SELinux support
1658 --enable-large-secmem allocate extra secure memory
1659 --disable-trust-models disable all trust models except "always"
1660 --disable-tofu disable the TOFU trust model
1661 --disable-libdns do not build with libdns support
1662 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1663 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1664 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1665 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1666 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1667 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1668 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1669 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1670 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1671 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1672 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1673 --disable-gpg-camellia128
1674 disable the CAMELLIA128 cipher algorithm in gpg
1675 --disable-gpg-camellia192
1676 disable the CAMELLIA192 cipher algorithm in gpg
1677 --disable-gpg-camellia256
1678 disable the CAMELLIA256 cipher algorithm in gpg
1679 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1680 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1681 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1682 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1683 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1684 --disable-zip disable the ZIP and ZLIB compression algorithm
1685 --disable-bzip2 disable the BZIP2 compression algorithm
1686 --disable-exec disable all external program execution
1687 --disable-photo-viewers disable photo ID viewers
1688 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1689 --disable-card-support disable smartcard support
1690 --disable-ccid-driver disable the internal CCID driver
1691 --disable-dirmngr-auto-start
1692 disable auto starting of the dirmngr
1693 --enable-maintainer-mode
1694 enable make rules and dependencies not useful (and
1695 sometimes confusing) to the casual installer
1696 --disable-largefile omit support for large files
1697 --disable-sqlite disable the use of SQLITE
1698 --enable-npth-debug build with debug version of npth
1699 --disable-ntbtls disable the use of NTBTLS as TLS library
1700 --disable-gnutls disable GNUTLS as fallback TLS library
1701 --disable-ldap disable LDAP support
1702 --disable-rpath do not hardcode runtime library paths
1703 --disable-nls do not use Native Language Support
1704 --disable-endian-check disable the endian check and trust the OS provided
1706 --disable-optimization disable compiler optimization
1707 --enable-log-clock enable log_clock timestamps
1708 --enable-werror append -Werror to CFLAGS
1709 --enable-all-tests let "make check" run all tests
1710 --disable-tests do not run any tests
1712 --enable-run-gnupg-user-socket
1713 try /run/gnupg/user for sockets prior to /run/user
1714 --enable-build-timestamp
1715 set an explicit build timestamp for reproducibility.
1716 (default is the current time in ISO-8601 format)
1719 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1720 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1721 --with-agent-pgm=PATH Use PATH as the default for the agent)
1722 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1723 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1724 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1725 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1726 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1727 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1728 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1729 --with-agent-s2k-calibration=MSEC
1730 calibrate passphrase stretching (s2k) to MSEC
1732 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1733 --with-capabilities use linux capabilities default=no
1734 --with-libgpg-error-prefix=PFX
1735 prefix where GPG Error is installed (optional)
1737 --with-libgcrypt-prefix=PFX
1738 prefix where LIBGCRYPT is installed (optional)
1739 --with-libassuan-prefix=PFX
1740 prefix where LIBASSUAN is installed (optional)
1741 --with-libksba-prefix=PFX
1742 prefix where KSBA is installed (optional)
1743 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1744 --with-ntbtls-prefix=PFX
1745 prefix where NTBTLS is installed (optional)
1746 --with-default-trust-store-file=FILE
1747 Use FILE as system trust store
1748 --with-ldap=DIR look for the LDAP library in DIR
1749 --with-mailprog=NAME use "NAME -t" for mail transport
1750 --with-gnu-ld assume the C compiler uses GNU ld default=no
1751 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1752 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1753 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1754 --without-libintl-prefix don't search for libintl in includedir and libdir
1755 --with-zlib=DIR use libz in DIR
1756 --with-bzip2=DIR look for bzip2 in DIR
1757 --with-readline=DIR look for the readline library in DIR
1758 --with-tss=TSS use the specified TPM Software Stack (ibm, intel, or
1761 Some influential environment variables:
1762 CC C compiler command
1763 CFLAGS C compiler flags
1764 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1765 nonstandard directory <lib dir>
1766 LIBS libraries to pass to the linker, e.g. -l<library>
1767 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1768 you have headers in a nonstandard directory <include dir>
1770 SYSROOT locate config scripts also below that directory
1771 YAT2M tool to convert texi to man pages
1773 build system C compiler
1774 PKG_CONFIG path to pkg-config utility
1776 directories to add to pkg-config's search path
1778 path overriding pkg-config's built-in search path
1780 C compiler flags for SQLITE3, overriding pkg-config
1782 linker flags for SQLITE3, overriding pkg-config
1784 C compiler flags for LIBGNUTLS, overriding pkg-config
1786 linker flags for LIBGNUTLS, overriding pkg-config
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1791 Report bugs to <https://bugs.gnupg.org>.
1796 if test "$ac_init_help" = "recursive"; then
1797 # If there are subdirs, report their specific --help.
1798 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1799 test -d "$ac_dir" ||
1800 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1808 # A ".." for each directory in $ac_dir_suffix.
1809 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1810 case $ac_top_builddir_sub in
1811 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815 ac_abs_top_builddir=$ac_pwd
1816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1817 # for backward compatibility:
1818 ac_top_builddir=$ac_top_build_prefix
1821 .) # We are building in place.
1823 ac_top_srcdir=$ac_top_builddir_sub
1824 ac_abs_top_srcdir=$ac_pwd ;;
1825 [\\/]* | ?:[\\/]* ) # Absolute name.
1826 ac_srcdir=$srcdir$ac_dir_suffix;
1827 ac_top_srcdir=$srcdir
1828 ac_abs_top_srcdir=$srcdir ;;
1830 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1831 ac_top_srcdir=$ac_top_build_prefix$srcdir
1832 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1836 cd "$ac_dir" || { ac_status=$?; continue; }
1837 # Check for guested configure.
1838 if test -f "$ac_srcdir/configure.gnu"; then
1840 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1841 elif test -f "$ac_srcdir/configure"; then
1843 $SHELL "$ac_srcdir/configure" --help=recursive
1845 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1847 cd "$ac_pwd" || { ac_status=$?; break; }
1851 test -n "$ac_init_help" && exit $ac_status
1852 if $ac_init_version; then
1854 gnupg configure 2.3.2
1855 generated by GNU Autoconf 2.69
1857 Copyright (C) 2012 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1864 ## ------------------------ ##
1865 ## Autoconf initialization. ##
1866 ## ------------------------ ##
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext
1875 if { { ac_try="$ac_compile"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_compile") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; then :
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i && {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------------- ##
2014 ## Report this to https://bugs.gnupg.org ##
2015 ## ------------------------------------- ##"
2016 ) | sed "s/^/$as_me: WARNING: /" >&2
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 eval "$3=\$ac_header_compiler"
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_try_link LINENO
2108 # -----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext conftest$ac_exeext
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest$ac_exeext && {
2133 test "$cross_compiling" = yes ||
2134 test -x conftest$ac_exeext
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145 # interfere with the next link command; also delete a directory that is
2146 # left behind by Apple's compiler. We do this before executing the actions.
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_c_try_link
2153 # ac_fn_c_check_func LINENO FUNC VAR
2154 # ----------------------------------
2155 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2156 ac_fn_c_check_func ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2168 #define $2 innocuous_$2
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $2 (); below.
2172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173 <limits.h> exists even on freestanding compilers. */
2176 # include <limits.h>
2178 # include <assert.h>
2183 /* Override any GCC internal prototype to avoid an error.
2184 Use char because int might match the return type of a GCC
2185 builtin and then its argument prototype would still apply. */
2190 /* The GNU C library defines this for functions which it implements
2191 to always fail with ENOSYS. Some functions are actually named
2192 something starting with __ and the normal name is an alias. */
2193 #if defined __stub_$2 || defined __stub___$2
2205 if ac_fn_c_try_link "$LINENO"; then :
2210 rm -f core conftest.err conftest.$ac_objext \
2211 conftest$ac_exeext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 } # ac_fn_c_check_func
2220 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2221 # -------------------------------------------
2222 # Tests whether TYPE exists after having included INCLUDES, setting cache
2223 # variable VAR accordingly.
2224 ac_fn_c_check_type ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_c_check_type
2274 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2275 # ---------------------------------------------
2276 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2278 ac_fn_c_check_decl ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 as_decl_name=`echo $2|sed 's/ *(.*//'`
2282 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2284 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 #ifndef $as_decl_name
2296 (void) $as_decl_use;
2298 (void) $as_decl_name;
2306 if ac_fn_c_try_compile "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_decl
2320 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2321 # --------------------------------------------
2322 # Tries to find the compile-time value of EXPR in a program that includes
2323 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2325 ac_fn_c_compute_int ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 if test "$cross_compiling" = yes; then
2329 # Depending upon the size, compute the lo and hi bounds.
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) >= 0)];
2338 return test_array [0];
2344 if ac_fn_c_try_compile "$LINENO"; then :
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2353 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 return test_array [0];
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362 ac_hi=$ac_mid; break
2364 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2365 if test $ac_lo -le $ac_mid; then
2369 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) < 0)];
2382 return test_array [0];
2388 if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2399 return test_array [0];
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 ac_lo=$ac_mid; break
2408 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2409 if test $ac_mid -le $ac_hi; then
2413 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 # Binary search between lo and hi bounds.
2424 while test "x$ac_lo" != "x$ac_hi"; do
2425 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2432 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2434 return test_array [0];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2443 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2455 static long int longval () { return $2; }
2456 static unsigned long int ulongval () { return $2; }
2463 FILE *f = fopen ("conftest.val", "w");
2468 long int i = longval ();
2471 fprintf (f, "%ld", i);
2475 unsigned long int i = ulongval ();
2478 fprintf (f, "%lu", i);
2480 /* Do not output a trailing newline, as this causes \r\n confusion
2481 on some platforms. */
2482 return ferror (f) || fclose (f) != 0;
2488 if ac_fn_c_try_run "$LINENO"; then :
2489 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2494 conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status $ac_retval
2501 } # ac_fn_c_compute_int
2503 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2504 # ----------------------------------------------------
2505 # Tries to find if the field MEMBER exists in type AGGR, after including
2506 # INCLUDES, setting cache variable VAR accordingly.
2507 ac_fn_c_check_member ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2511 $as_echo_n "checking for $2.$3... " >&6; }
2512 if eval \${$4+:} false; then :
2513 $as_echo_n "(cached) " >&6
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2528 if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2538 if (sizeof ac_aggr.$3)
2544 if ac_fn_c_try_compile "$LINENO"; then :
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 } # ac_fn_c_check_member
2559 cat >config.log <<_ACEOF
2560 This file contains any messages produced by compilers while
2561 running configure, to aid debugging if configure makes a mistake.
2563 It was created by gnupg $as_me 2.3.2, which was
2564 generated by GNU Autoconf 2.69. Invocation command line was
2576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 $as_echo "PATH: $as_dir"
2616 # Keep a trace of the command line.
2617 # Strip out --no-create and --no-recursion so they do not pile up.
2618 # Strip out --silent because we don't want to record it for future runs.
2619 # Also quote any args containing shell meta-characters.
2620 # Make two passes to allow for proper duplicate-argument suppression.
2624 ac_must_keep_next=false
2630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2632 | -silent | --silent | --silen | --sile | --sil)
2635 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2640 as_fn_append ac_configure_args1 " '$ac_arg'"
2641 if test $ac_must_keep_next = true; then
2642 ac_must_keep_next=false # Got value, back to normal.
2645 *=* | --config-cache | -C | -disable-* | --disable-* \
2646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2648 | -with-* | --with-* | -without-* | --without-* | --x)
2649 case "$ac_configure_args0 " in
2650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2653 -* ) ac_must_keep_next=true ;;
2656 as_fn_append ac_configure_args " '$ac_arg'"
2661 { ac_configure_args0=; unset ac_configure_args0;}
2662 { ac_configure_args1=; unset ac_configure_args1;}
2664 # When interrupted or exit'd, cleanup temporary files, and complete
2665 # config.log. We remove comments because anyway the quotes in there
2666 # would cause problems or look ugly.
2667 # WARNING: Use '\'' to represent an apostrophe within the trap.
2668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2669 trap 'exit_status=$?
2670 # Save into config.log some information that might help in debugging.
2674 $as_echo "## ---------------- ##
2675 ## Cache variables. ##
2676 ## ---------------- ##"
2678 # The following way of writing the cache mishandles newlines in values,
2680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2681 eval ac_val=\$$ac_var
2685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2689 _ | IFS | as_nl) ;; #(
2690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2691 *) { eval $ac_var=; unset $ac_var;} ;;
2696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2697 *${as_nl}ac_space=\ *)
2699 "s/'\''/'\''\\\\'\'''\''/g;
2700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2710 $as_echo "## ----------------- ##
2711 ## Output variables. ##
2712 ## ----------------- ##"
2714 for ac_var in $ac_subst_vars
2716 eval ac_val=\$$ac_var
2718 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2720 $as_echo "$ac_var='\''$ac_val'\''"
2724 if test -n "$ac_subst_files"; then
2725 $as_echo "## ------------------- ##
2726 ## File substitutions. ##
2727 ## ------------------- ##"
2729 for ac_var in $ac_subst_files
2731 eval ac_val=\$$ac_var
2733 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2735 $as_echo "$ac_var='\''$ac_val'\''"
2740 if test -s confdefs.h; then
2741 $as_echo "## ----------- ##
2748 test "$ac_signal" != 0 &&
2749 $as_echo "$as_me: caught signal $ac_signal"
2750 $as_echo "$as_me: exit $exit_status"
2752 rm -f core *.core core.conftest.* &&
2753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2756 for ac_signal in 1 2 13 15; do
2757 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2762 rm -f -r conftest* confdefs.h
2764 $as_echo "/* confdefs.h */" > confdefs.h
2766 # Predefined preprocessor variables.
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_NAME "$PACKAGE_NAME"
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE_STRING "$PACKAGE_STRING"
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE_URL "$PACKAGE_URL"
2793 # Let the site file select an alternate cache file if it wants to.
2794 # Prefer an explicitly selected file to automatically selected ones.
2797 if test -n "$CONFIG_SITE"; then
2798 # We do not want a PATH search for config.site.
2799 case $CONFIG_SITE in #((
2800 -*) ac_site_file1=./$CONFIG_SITE;;
2801 */*) ac_site_file1=$CONFIG_SITE;;
2802 *) ac_site_file1=./$CONFIG_SITE;;
2804 elif test "x$prefix" != xNONE; then
2805 ac_site_file1=$prefix/share/config.site
2806 ac_site_file2=$prefix/etc/config.site
2808 ac_site_file1=$ac_default_prefix/share/config.site
2809 ac_site_file2=$ac_default_prefix/etc/config.site
2811 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2813 test "x$ac_site_file" = xNONE && continue
2814 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2816 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2817 sed 's/^/| /' "$ac_site_file" >&5
2819 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $? "failed to load site script $ac_site_file
2822 See \`config.log' for more details" "$LINENO" 5; }
2826 if test -r "$cache_file"; then
2827 # Some versions of bash will fail to source /dev/null (special files
2828 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2829 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2831 $as_echo "$as_me: loading cache $cache_file" >&6;}
2833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2834 *) . "./$cache_file";;
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2839 $as_echo "$as_me: creating cache $cache_file" >&6;}
2843 gt_needs="$gt_needs need-ngettext"
2844 as_fn_append ac_header_list " sys/socket.h"
2845 # Check that the precious variables saved in the cache have kept the same
2847 ac_cache_corrupted=false
2848 for ac_var in $ac_precious_vars; do
2849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2850 eval ac_new_set=\$ac_env_${ac_var}_set
2851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2852 eval ac_new_val=\$ac_env_${ac_var}_value
2853 case $ac_old_set,$ac_new_set in
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2856 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2857 ac_cache_corrupted=: ;;
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2860 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2861 ac_cache_corrupted=: ;;
2864 if test "x$ac_old_val" != "x$ac_new_val"; then
2865 # differences in whitespace do not lead to failure.
2866 ac_old_val_w=`echo x $ac_old_val`
2867 ac_new_val_w=`echo x $ac_new_val`
2868 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2870 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2871 ac_cache_corrupted=:
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2874 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2875 eval $ac_var=\$ac_old_val
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2878 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2880 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2883 # Pass precious variables to config.status.
2884 if test "$ac_new_set" = set; then
2886 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2887 *) ac_arg=$ac_var=$ac_new_val ;;
2889 case " $ac_configure_args " in
2890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2891 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2895 if $ac_cache_corrupted; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2899 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2900 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2902 ## -------------------- ##
2903 ## Main body of script. ##
2904 ## -------------------- ##
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 # When changing the SWDB tag please also adjust the hard coded tags in
2915 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2917 cat >>confdefs.h <<_ACEOF
2918 #define GNUPG_SWDB_TAG "gnupg24"
2922 NEED_GPGRT_VERSION=1.41
2924 NEED_LIBGCRYPT_API=1
2925 NEED_LIBGCRYPT_VERSION=1.9.1
2927 NEED_LIBASSUAN_API=2
2928 NEED_LIBASSUAN_VERSION=2.5.0
2931 NEED_KSBA_VERSION=1.3.4
2934 NEED_NTBTLS_VERSION=0.1.0
2937 NEED_NPTH_VERSION=1.2
2940 NEED_GNUTLS_VERSION=3.0
2942 NEED_SQLITE_VERSION=3.27
2944 development_version=no
2945 PACKAGE=$PACKAGE_NAME
2946 PACKAGE_GT=${PACKAGE_NAME}2
2947 VERSION=$PACKAGE_VERSION
2950 for ac_dir in build-aux "$srcdir"/build-aux; do
2951 if test -f "$ac_dir/install-sh"; then
2953 ac_install_sh="$ac_aux_dir/install-sh -c"
2955 elif test -f "$ac_dir/install.sh"; then
2957 ac_install_sh="$ac_aux_dir/install.sh -c"
2959 elif test -f "$ac_dir/shtool"; then
2961 ac_install_sh="$ac_aux_dir/shtool install -c"
2965 if test -z "$ac_aux_dir"; then
2966 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2979 ac_config_headers="$ac_config_headers config.h"
2981 am__api_version='1.16'
2983 # Find a good install program. We prefer a C program (faster),
2984 # so one script is as good as another. But avoid the broken or
2985 # incompatible versions:
2986 # SysV /etc/install, /usr/sbin/install
2987 # SunOS /usr/etc/install
2988 # IRIX /sbin/install
2990 # AmigaOS /C/install, which installs bootblocks on floppy discs
2991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2994 # OS/2's system install, which has a completely different semantic
2995 # ./install, which can be erroneously created by make from ./install.sh.
2996 # Reject install programs that cannot install multiple files.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2999 if test -z "$INSTALL"; then
3000 if ${ac_cv_path_install+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 # Account for people who put trailing slashes in PATH elements.
3009 case $as_dir/ in #((
3010 ./ | .// | /[cC]/* | \
3011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3015 # OSF1 and SCO ODT 3.0 have their own names for install.
3016 # Don't use installbsd from OSF since it installs stuff as root
3018 for ac_prog in ginstall scoinst install; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021 if test $ac_prog = install &&
3022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 # AIX install. It has an incompatible calling convention.
3025 elif test $ac_prog = install &&
3026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027 # program-specific install script used by HP pwplus--don't use.
3030 rm -rf conftest.one conftest.two conftest.dir
3031 echo one > conftest.one
3032 echo two > conftest.two
3034 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3035 test -s conftest.one && test -s conftest.two &&
3036 test -s conftest.dir/conftest.one &&
3037 test -s conftest.dir/conftest.two
3039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 rm -rf conftest.one conftest.two conftest.dir
3055 if test "${ac_cv_path_install+set}" = set; then
3056 INSTALL=$ac_cv_path_install
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for INSTALL within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 INSTALL=$ac_install_sh
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3066 $as_echo "$INSTALL" >&6; }
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3077 $as_echo_n "checking whether build environment is sane... " >&6; }
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3083 *[\\\"\#\$\&\'\`$am_lf]*)
3084 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3091 # Do 'set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3098 for am_try in 1 2; do
3099 echo "timestamp, slept: $am_has_slept" > conftest.file
3100 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3101 if test "$*" = "X"; then
3103 set X `ls -t "$srcdir/configure" conftest.file`
3105 if test "$*" != "X $srcdir/configure conftest.file" \
3106 && test "$*" != "X conftest.file $srcdir/configure"; then
3108 # If neither matched, then we have a broken ls. This can happen
3109 # if, for instance, CONFIG_SHELL is bash and it inherits a
3110 # broken ls alias from the environment. This has actually
3111 # happened. Such a system could not be considered "sane".
3112 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3113 alias in your environment" "$LINENO" 5
3115 if test "$2" = conftest.file || test $am_try -eq 2; then
3122 test "$2" = conftest.file
3128 as_fn_error $? "newly created file is older than distributed files!
3129 Check your system clock" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 # If we didn't sleep, we still need to ensure time stamps of config.status and
3134 # generated files are strictly newer.
3136 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3143 test "$program_prefix" != NONE &&
3144 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3145 # Use a double $ so make ignores it.
3146 test "$program_suffix" != NONE &&
3147 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3148 # Double any \ or $.
3149 # By default was `s,x,x', remove it if useless.
3150 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3151 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153 # Expand $ac_aux_dir to an absolute path.
3154 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3156 if test x"${MISSING+set}" != xset; then
3157 MISSING="\${SHELL} '$am_aux_dir/missing'"
3159 # Use eval to expand $SHELL
3160 if eval "$MISSING --is-lightweight"; then
3161 am_missing_run="$MISSING "
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3165 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3168 if test x"${install_sh+set}" != xset; then
3171 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3173 install_sh="\${SHELL} $am_aux_dir/install-sh"
3177 # Installed binaries are usually stripped using 'strip' when the user
3178 # run "make install-strip". However 'strip' might not be the right
3179 # tool to use in cross-compilation environments, therefore Automake
3180 # will honor the 'STRIP' environment variable to overrule this program.
3181 if test "$cross_compiling" != no; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}strip; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_STRIP+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$STRIP"; then
3191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 STRIP=$ac_cv_prog_STRIP
3211 if test -n "$STRIP"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3213 $as_echo "$STRIP" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_STRIP"; then
3223 # Extract the first word of "strip", so it can be a program name with args.
3224 set dummy strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_STRIP"; then
3231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_STRIP="strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3251 if test -n "$ac_ct_STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3253 $as_echo "$ac_ct_STRIP" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_STRIP" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3271 STRIP="$ac_cv_prog_STRIP"
3275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3279 if test -z "$MKDIR_P"; then
3280 if ${ac_cv_path_mkdir+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3287 test -z "$as_dir" && as_dir=.
3288 for ac_prog in mkdir gmkdir; do
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3292 'mkdir (GNU coreutils) '* | \
3293 'mkdir (coreutils) '* | \
3294 'mkdir (fileutils) '4.1*)
3295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3305 test -d ./--version && rmdir ./--version
3306 if test "${ac_cv_path_mkdir+set}" = set; then
3307 MKDIR_P="$ac_cv_path_mkdir -p"
3309 # As a last resort, use the slow shell script. Don't cache a
3310 # value for MKDIR_P within a source directory, because that will
3311 # break other packages using the cache if that directory is
3312 # removed, or if the value is a relative name.
3313 MKDIR_P="$ac_install_sh -d"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3317 $as_echo "$MKDIR_P" >&6; }
3319 for ac_prog in gawk mawk nawk awk
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_AWK+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$AWK"; then
3329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_AWK="$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$AWK"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3351 $as_echo "$AWK" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3358 test -n "$AWK" && break
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 cat >conftest.make <<\_ACEOF
3371 @echo '@@@%%%=$(MAKE)=@@@%%%'
3373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3376 eval ac_cv_prog_make_${ac_make}_set=yes;;
3378 eval ac_cv_prog_make_${ac_make}_set=no;;
3382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 SET_MAKE="MAKE=${MAKE-make}"
3392 rm -rf .tst 2>/dev/null
3393 mkdir .tst 2>/dev/null
3394 if test -d .tst; then
3399 rmdir .tst 2>/dev/null
3401 # Check whether --enable-silent-rules was given.
3402 if test "${enable_silent_rules+set}" = set; then :
3403 enableval=$enable_silent_rules;
3406 case $enable_silent_rules in # (((
3407 yes) AM_DEFAULT_VERBOSITY=0;;
3408 no) AM_DEFAULT_VERBOSITY=1;;
3409 *) AM_DEFAULT_VERBOSITY=1;;
3411 am_make=${MAKE-make}
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3413 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3414 if ${am_cv_make_support_nested_variables+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if $as_echo 'TRUE=$(BAR$(V))
3423 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3424 am_cv_make_support_nested_variables=yes
3426 am_cv_make_support_nested_variables=no
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3430 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3431 if test $am_cv_make_support_nested_variables = yes; then
3433 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3435 AM_V=$AM_DEFAULT_VERBOSITY
3436 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3442 # is not polluted with repeated "-I."
3443 am__isrc=' -I$(srcdir)'
3444 # test to see if srcdir already configured
3445 if test -f $srcdir/config.status; then
3446 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3450 # test whether we have cygpath
3451 if test -z "$CYGPATH_W"; then
3452 if (cygpath --version) >/dev/null 2>/dev/null; then
3453 CYGPATH_W='cygpath -w'
3460 # Define the identity of the package.
3465 cat >>confdefs.h <<_ACEOF
3466 #define PACKAGE "$PACKAGE"
3470 cat >>confdefs.h <<_ACEOF
3471 #define VERSION "$VERSION"
3474 # Some tools Automake needs.
3476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3490 # For better backward compatibility. To be removed once Automake 1.9.x
3491 # dies out for good. For more background, see:
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3493 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3494 mkdir_p='$(MKDIR_P)'
3496 # We need awk for the "check" target (and possibly the TAP driver). The
3497 # system "awk" is bad on some platforms.
3498 # Always define AMTAR for backward compatibility. Yes, it's still used
3499 # in the wild :-( We should find a proper way to deprecate it ...
3503 # We'll loop over all known methods to create a tar archive until one works.
3504 _am_tools='gnutar pax cpio none'
3506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes. So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present. This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message. This
3532 can help us improve future automake versions.
3535 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536 echo 'Configuration will proceed anyway, since you have set the' >&2
3537 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3541 Aborting the configuration process, to ensure you take notice of the issue.
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3551 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3560 $as_echo_n "checking build system type... " >&6; }
3561 if ${ac_cv_build+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3574 $as_echo "$ac_cv_build" >&6; }
3575 case $ac_cv_build in
3577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3580 ac_save_IFS=$IFS; IFS='-'
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3594 $as_echo_n "checking host system type... " >&6; }
3595 if ${ac_cv_host+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3607 $as_echo "$ac_cv_host" >&6; }
3610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3613 ac_save_IFS=$IFS; IFS='-'
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3631 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3633 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3635 if test "$hostname"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3637 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3640 date=`date +%Y%m%d-%H%M%S`
3641 if test "$?" != 0; then
3644 if test "$date"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3646 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3650 DEPDIR="${am__leading_dot}deps"
3652 ac_config_commands="$ac_config_commands depfiles"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3655 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3656 cat > confinc.mk << 'END'
3658 @echo this is the am__doit target >confinc.out
3663 # BSD make does it like this.
3664 echo '.include "confinc.mk" # ignored' > confmf.BSD
3665 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3666 echo 'include confinc.mk # ignored' > confmf.GNU
3668 for s in GNU BSD; do
3669 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3670 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }
3674 case $?:`cat confinc.out 2>/dev/null` in #(
3675 '0:this is the am__doit target') :
3678 am__include='.include' am__quote='"' ;; #(
3680 am__include='include' am__quote='' ;;
3685 if test "$am__include" != "#"; then
3686 _am_result="yes ($s style)"
3690 rm -f confinc.* confmf.*
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3692 $as_echo "${_am_result}" >&6; }
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696 enableval=$enable_dependency_tracking;
3699 if test "x$enable_dependency_tracking" != xno; then
3700 am_depcomp="$ac_aux_dir/depcomp"
3704 if test "x$enable_dependency_tracking" != xno; then
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_CC+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3757 if test -z "$ac_cv_prog_CC"; then
3759 # Extract the first word of "gcc", so it can be a program name with args.
3760 set dummy gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$ac_ct_CC"; then
3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_CC="gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 $as_echo "$ac_ct_CC" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3795 if test "x$ac_ct_CC" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3810 if test -z "$CC"; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}cc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3851 if test -z "$CC"; then
3852 # Extract the first word of "cc", so it can be a program name with args.
3853 set dummy cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871 ac_prog_rejected=yes
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 if test $ac_prog_rejected = yes; then
3883 # We found a bogon in the path, so make sure we never use it.
3884 set dummy $ac_cv_prog_CC
3886 if test $# != 0; then
3887 # We chose a different compiler from the bogus one.
3888 # However, it has the same basename, so the bogon will be chosen
3889 # first if we set CC to just the basename; use the full file name.
3891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3907 if test -z "$CC"; then
3908 if test -n "$ac_tool_prefix"; then
3909 for ac_prog in cl.exe
3911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_CC+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3948 test -n "$CC" && break
3951 if test -z "$CC"; then
3953 for ac_prog in cl.exe
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_ac_ct_CC="$ac_prog"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3992 test -n "$ac_ct_CC" && break
3995 if test "x$ac_ct_CC" = x; then
3998 case $cross_compiling:$ac_tool_warned in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details" "$LINENO" 5; }
4016 # Provide some information about the compiler.
4017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020 for ac_option in --version -v -V -qversion; do
4021 { { ac_try="$ac_compiler $ac_option >&5"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4030 if test -s conftest.err; then
4032 ... rest of stderr output deleted ...
4033 10q' conftest.err >conftest.er1
4034 cat conftest.er1 >&5
4036 rm -f conftest.er1 conftest.err
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 ac_clean_files_save=$ac_clean_files
4053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4054 # Try to create an executable without -o first, disregard a.out.
4055 # It will help us diagnose broken compilers, and finding out an intuition
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4058 $as_echo_n "checking whether the C compiler works... " >&6; }
4059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061 # The possible output files:
4062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4065 for ac_file in $ac_files
4068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4069 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4074 if { { ac_try="$ac_link_default"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_link_default") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4087 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4088 # so that the user can short-circuit this test for compilers unknown to
4090 for ac_file in $ac_files ''
4092 test -f "$ac_file" || continue
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4097 # We found the default executable, but exeext='' is most
4101 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4105 # We set ac_cv_exeext here because the later test for it is not
4106 # safe: cross compilers may not add the suffix if given an `-o'
4107 # argument, so we may need to know it at that point already.
4108 # Even if this section looks crufty: it has the advantage of
4115 test "$ac_cv_exeext" = no && ac_cv_exeext=
4120 if test -z "$ac_file"; then :
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error 77 "C compiler cannot create executables
4129 See \`config.log' for more details" "$LINENO" 5; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132 $as_echo "yes" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135 $as_echo_n "checking for C compiler default output file name... " >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4137 $as_echo "$ac_file" >&6; }
4138 ac_exeext=$ac_cv_exeext
4140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4141 ac_clean_files=$ac_clean_files_save
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4143 $as_echo_n "checking for suffix of executables... " >&6; }
4144 if { { ac_try="$ac_link"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_link") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4157 # work properly (i.e., refer to `conftest.exe'), while it won't with
4159 for ac_file in conftest.exe conftest conftest.*; do
4160 test -f "$ac_file" || continue
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4172 See \`config.log' for more details" "$LINENO" 5; }
4174 rm -f conftest conftest$ac_cv_exeext
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4176 $as_echo "$ac_cv_exeext" >&6; }
4178 rm -f conftest.$ac_ext
4179 EXEEXT=$ac_cv_exeext
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4187 FILE *f = fopen ("conftest.out", "w");
4188 return ferror (f) || fclose (f) != 0;
4194 ac_clean_files="$ac_clean_files conftest.out"
4195 # Check that the compiler produces executables we can run. If not, either
4196 # the compiler is broken, or we cross compile.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4198 $as_echo_n "checking whether we are cross compiling... " >&6; }
4199 if test "$cross_compiling" != yes; then
4200 { { ac_try="$ac_link"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207 (eval "$ac_link") 2>&5
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 if { ac_try='./conftest$ac_cv_exeext'
4212 { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }; }; then
4224 if test "$cross_compiling" = maybe; then
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "cannot run C compiled programs.
4230 If you meant to cross compile, use \`--host'.
4231 See \`config.log' for more details" "$LINENO" 5; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4236 $as_echo "$cross_compiling" >&6; }
4238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4239 ac_clean_files=$ac_clean_files_save
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4241 $as_echo_n "checking for suffix of object files... " >&6; }
4242 if ${ac_cv_objext+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4256 rm -f conftest.o conftest.obj
4257 if { { ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264 (eval "$ac_compile") 2>&5
4266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267 test $ac_status = 0; }; then :
4268 for ac_file in conftest.o conftest.obj conftest.*; do
4269 test -f "$ac_file" || continue;
4271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error $? "cannot compute suffix of object files: cannot compile
4283 See \`config.log' for more details" "$LINENO" 5; }
4285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4288 $as_echo "$ac_cv_objext" >&6; }
4289 OBJEXT=$ac_cv_objext
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4293 if ${ac_cv_c_compiler_gnu+:} false; then :
4294 $as_echo_n "(cached) " >&6
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4310 if ac_fn_c_try_compile "$LINENO"; then :
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4321 if test $ac_compiler_gnu = yes; then
4326 ac_test_CFLAGS=${CFLAGS+set}
4327 ac_save_CFLAGS=$CFLAGS
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4330 if ${ac_cv_prog_cc_g+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 ac_save_c_werror_flag=$ac_c_werror_flag
4334 ac_c_werror_flag=yes
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4348 if ac_fn_c_try_compile "$LINENO"; then :
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_c_werror_flag=$ac_save_c_werror_flag
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 if ac_fn_c_try_compile "$LINENO"; then :
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 ac_c_werror_flag=$ac_save_c_werror_flag
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4390 $as_echo "$ac_cv_prog_cc_g" >&6; }
4391 if test "$ac_test_CFLAGS" = set; then
4392 CFLAGS=$ac_save_CFLAGS
4393 elif test $ac_cv_prog_cc_g = yes; then
4394 if test "$GCC" = yes; then
4400 if test "$GCC" = yes; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4408 if ${ac_cv_prog_cc_c89+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 ac_cv_prog_cc_c89=no
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4432 s = g (p, va_arg (v,int));
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4475 rm -f conftest.$ac_ext
4480 case "x$ac_cv_prog_cc_c89" in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4508 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4509 if ${am_cv_prog_cc_c_o+:} false; then :
4510 $as_echo_n "(cached) " >&6
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 # Make sure it works both with $CC and with simple cc.
4524 # Following AC_PROG_CC_C_O, we do the test twice because some
4525 # compilers refuse to overwrite an existing .o file with -o,
4526 # though they will create one.
4527 am_cv_prog_cc_c_o=yes
4529 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4530 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } \
4534 && test -f conftest2.$ac_objext; then
4537 am_cv_prog_cc_c_o=no
4541 rm -f core conftest*
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4545 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4546 if test "$am_cv_prog_cc_c_o" != yes; then
4547 # Losing compiler, so override with the script.
4548 # FIXME: It is wrong to rewrite CC.
4549 # But if we don't then we get into trouble of one sort or another.
4550 # A longer-term fix would be to have automake use am__CC in this case,
4551 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4552 CC="$am_aux_dir/compile $CC"
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 depcc="$CC" am_compiler_list=
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4564 $as_echo_n "checking dependency style of $depcc... " >&6; }
4565 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4569 # We make a subdir and do the tests there. Otherwise we can end up
4570 # making bogus files that we don't know about and never remove. For
4571 # instance it was reported that on HP-UX the gcc test will end up
4572 # making a dummy file named 'D' -- because '-MD' means "put the output
4576 # Copy depcomp to subdir because otherwise we won't find it if we're
4577 # using a relative directory.
4578 cp "$am_depcomp" conftest.dir
4580 # We will build objects and dependencies in a subdirectory because
4581 # it helps to detect inapplicable dependency modes. For instance
4582 # both Tru64's cc and ICC support -MD to output dependencies as a
4583 # side effect of compilation, but ICC will put the dependencies in
4584 # the current directory while Tru64 will put them in the object
4588 am_cv_CC_dependencies_compiler_type=none
4589 if test "$am_compiler_list" = ""; then
4590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4593 case " $depcc " in #(
4594 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4597 for depmode in $am_compiler_list; do
4598 # Setup a source with many dependencies, because some compilers
4599 # like to wrap large dependency lists on column 80 (with \), and
4600 # we should not choose a depcomp mode which is confused by this.
4602 # We need to recreate these files for each test, as the compiler may
4603 # overwrite some of them when testing with obscure command lines.
4604 # This happens at least with the AIX C compiler.
4606 for i in 1 2 3 4 5 6; do
4607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4609 # Solaris 10 /bin/sh.
4610 echo '/* dummy */' > sub/conftst$i.h
4612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4615 # mode. It turns out that the SunPro C++ compiler does not properly
4616 # handle '-M -o', and we need to detect this. Also, some Intel
4617 # versions had trouble with output in subdirs.
4618 am__obj=sub/conftest.${OBJEXT-o}
4619 am__minus_obj="-o $am__obj"
4622 # This depmode causes a compiler race in universal mode.
4623 test "$am__universal" = false || continue
4626 # After this tag, mechanisms are not by side-effect, so they'll
4627 # only be used when explicitly requested.
4628 if test "x$enable_dependency_tracking" = xyes; then
4634 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4635 # This compiler won't grok '-c -o', but also, the minuso test has
4636 # not run yet. These depmodes are late enough in the game, and
4637 # so weak that their functioning should not be impacted.
4638 am__obj=conftest.${OBJEXT-o}
4643 if depmode=$depmode \
4644 source=sub/conftest.c object=$am__obj \
4645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4647 >/dev/null 2>conftest.err &&
4648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4652 # icc doesn't choke on unknown options, it will just issue warnings
4653 # or remarks (even with -Werror). So we grep stderr for any message
4654 # that says an option was ignored or not supported.
4655 # When given -MP, icc 7.0 and 7.1 complain thusly:
4656 # icc: Command line warning: ignoring option '-M'; no argument required
4657 # The diagnosis changed in icc 8.0:
4658 # icc: Command line remark: option '-MP' not supported
4659 if (grep 'ignoring option' conftest.err ||
4660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4661 am_cv_CC_dependencies_compiler_type=$depmode
4670 am_cv_CC_dependencies_compiler_type=none
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4675 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4676 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4679 test "x$enable_dependency_tracking" != xno \
4680 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4682 am__fastdepCC_FALSE='#'
4684 am__fastdepCC_TRUE='#'
4685 am__fastdepCC_FALSE=
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4697 # On Suns, sometimes $CPP names a directory.
4698 if test -n "$CPP" && test -d "$CPP"; then
4701 if test -z "$CPP"; then
4702 if ${ac_cv_prog_CPP+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 # Double quotes because CPP needs to be expanded
4706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709 for ac_c_preproc_warn_flag in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4729 # Broken: fails on valid input.
4732 rm -f conftest.err conftest.i conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <ac_nonexistent.h>
4740 if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4744 # Passes both tests.
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.i conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then :
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4766 $as_echo "$CPP" >&6; }
4768 for ac_c_preproc_warn_flag in '' yes
4770 # Use a header file that comes with gcc, so configuring glibc
4771 # with a fresh cross-compiler works.
4772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773 # <limits.h> exists even on freestanding compilers.
4774 # On the NeXT, cc -E runs the code through the compiler's parser,
4775 # not just through cpp. "Syntax error" is here to catch this case.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4779 # include <limits.h>
4781 # include <assert.h>
4785 if ac_fn_c_try_cpp "$LINENO"; then :
4788 # Broken: fails on valid input.
4791 rm -f conftest.err conftest.i conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <ac_nonexistent.h>
4799 if ac_fn_c_try_cpp "$LINENO"; then :
4800 # Broken: success on invalid input.
4803 # Passes both tests.
4807 rm -f conftest.err conftest.i conftest.$ac_ext
4810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4811 rm -f conftest.i conftest.err conftest.$ac_ext
4812 if $ac_preproc_ok; then :
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4818 See \`config.log' for more details" "$LINENO" 5; }
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4830 if ${ac_cv_path_GREP+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -z "$GREP"; then
4834 ac_path_GREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in grep ggrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_GREP" || continue
4845 # Check for GNU ac_path_GREP and select it if it is found.
4846 # Check for GNU $ac_path_GREP
4847 case `"$ac_path_GREP" --version 2>&1` in
4849 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852 $as_echo_n 0123456789 >"conftest.in"
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'GREP' >> "conftest.nl"
4859 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_GREP="$ac_path_GREP"
4865 ac_path_GREP_max=$ac_count
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 $ac_path_GREP_found && break 3
4878 if test -z "$ac_cv_path_GREP"; then
4879 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 ac_cv_path_GREP=$GREP
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4887 $as_echo "$ac_cv_path_GREP" >&6; }
4888 GREP="$ac_cv_path_GREP"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4892 $as_echo_n "checking for egrep... " >&6; }
4893 if ${ac_cv_path_EGREP+:} false; then :
4894 $as_echo_n "(cached) " >&6
4896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4897 then ac_cv_path_EGREP="$GREP -E"
4899 if test -z "$EGREP"; then
4900 ac_path_EGREP_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906 test -z "$as_dir" && as_dir=.
4907 for ac_prog in egrep; do
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4910 as_fn_executable_p "$ac_path_EGREP" || continue
4911 # Check for GNU ac_path_EGREP and select it if it is found.
4912 # Check for GNU $ac_path_EGREP
4913 case `"$ac_path_EGREP" --version 2>&1` in
4915 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918 $as_echo_n 0123456789 >"conftest.in"
4921 cat "conftest.in" "conftest.in" >"conftest.tmp"
4922 mv "conftest.tmp" "conftest.in"
4923 cp "conftest.in" "conftest.nl"
4924 $as_echo 'EGREP' >> "conftest.nl"
4925 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927 as_fn_arith $ac_count + 1 && ac_count=$as_val
4928 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4929 # Best one so far, save it but keep looking for a better one
4930 ac_cv_path_EGREP="$ac_path_EGREP"
4931 ac_path_EGREP_max=$ac_count
4933 # 10*(2^10) chars as input seems more than enough
4934 test $ac_count -gt 10 && break
4936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 $ac_path_EGREP_found && break 3
4944 if test -z "$ac_cv_path_EGREP"; then
4945 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4948 ac_cv_path_EGREP=$EGREP
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4954 $as_echo "$ac_cv_path_EGREP" >&6; }
4955 EGREP="$ac_cv_path_EGREP"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4959 $as_echo_n "checking for ANSI C header files... " >&6; }
4960 if ${ac_cv_header_stdc+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_header_stdc=yes
4981 ac_cv_header_stdc=no
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 if test $ac_cv_header_stdc = yes; then
4986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 $EGREP "memchr" >/dev/null 2>&1; then :
4996 ac_cv_header_stdc=no
5002 if test $ac_cv_header_stdc = yes; then
5003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "free" >/dev/null 2>&1; then :
5013 ac_cv_header_stdc=no
5019 if test $ac_cv_header_stdc = yes; then
5020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5021 if test "$cross_compiling" = yes; then :
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5051 if ac_fn_c_try_run "$LINENO"; then :
5054 ac_cv_header_stdc=no
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5057 conftest.$ac_objext conftest.beam conftest.$ac_ext
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5063 $as_echo "$ac_cv_header_stdc" >&6; }
5064 if test $ac_cv_header_stdc = yes; then
5066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5072 inttypes.h stdint.h unistd.h
5074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5078 cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5088 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5089 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5096 if test "$MINIX" = yes; then
5098 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5101 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5104 $as_echo "#define _MINIX 1" >>confdefs.h
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5110 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5111 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5117 # define __EXTENSIONS__ 1
5118 $ac_includes_default
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_safe_to_define___extensions__=yes
5130 ac_cv_safe_to_define___extensions__=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5135 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5136 test $ac_cv_safe_to_define___extensions__ = yes &&
5137 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5139 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5141 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5143 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5145 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5150 # Some status variables.
5161 have_system_resolver=no
5162 gnupg_have_ldap="n/a"
5167 use_trust_models=yes
5171 use_ccid_driver=auto
5172 dirmngr_auto_start=yes
5177 # gpg is a required part and can't be disabled anymore.
5182 # Check whether --enable-gpgsm was given.
5183 if test "${enable_gpgsm+set}" = set; then :
5184 enableval=$enable_gpgsm; build_gpgsm=$enableval
5190 case "$build_gpgsm" in
5194 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5199 # The agent is a required part and can't be disabled anymore.
5204 # Check whether --enable-scdaemon was given.
5205 if test "${enable_scdaemon+set}" = set; then :
5206 enableval=$enable_scdaemon; build_scdaemon=$enableval
5212 case "$build_scdaemon" in
5216 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5224 # Check whether --enable-g13 was given.
5225 if test "${enable_g13+set}" = set; then :
5226 enableval=$enable_g13; build_g13=$enableval
5232 case "$build_g13" in
5236 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5244 # Check whether --enable-dirmngr was given.
5245 if test "${enable_dirmngr+set}" = set; then :
5246 enableval=$enable_dirmngr; build_dirmngr=$enableval
5252 case "$build_dirmngr" in
5256 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5264 # Check whether --enable-keyboxd was given.
5265 if test "${enable_keyboxd+set}" = set; then :
5266 enableval=$enable_keyboxd; build_keyboxd=$enableval
5272 case "$build_keyboxd" in
5276 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5284 # Check whether --enable-tpm2d was given.
5285 if test "${enable_tpm2d+set}" = set; then :
5286 enableval=$enable_tpm2d; build_tpm2d=$enableval
5292 case "$build_tpm2d" in
5296 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5304 # Check whether --enable-doc was given.
5305 if test "${enable_doc+set}" = set; then :
5306 enableval=$enable_doc; build_doc=$enableval
5312 case "$build_doc" in
5316 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5321 # We use gpgtar to unpack test data, hence we always build it. If the
5322 # user opts out, we simply don't install it.
5326 # Check whether --enable-gpgtar was given.
5327 if test "${enable_gpgtar+set}" = set; then :
5328 enableval=$enable_gpgtar; build_gpgtar=$enableval
5334 case "$build_gpgtar" in
5338 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5343 # We also install the gpg-wks-server tool by default but disable it
5344 # later for platforms where it can't be build.
5348 # Check whether --enable-wks-tools was given.
5349 if test "${enable_wks_tools+set}" = set; then :
5350 enableval=$enable_wks_tools; build_wks_tools=$enableval
5356 case "$build_wks_tools" in
5360 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5371 cat >>confdefs.h <<_ACEOF
5372 #define PACKAGE "$PACKAGE"
5376 cat >>confdefs.h <<_ACEOF
5377 #define PACKAGE_GT "$PACKAGE_GT"
5381 cat >>confdefs.h <<_ACEOF
5382 #define VERSION "$VERSION"
5386 cat >>confdefs.h <<_ACEOF
5387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5391 cat >>confdefs.h <<_ACEOF
5392 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5396 cat >>confdefs.h <<_ACEOF
5397 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5401 cat >>confdefs.h <<_ACEOF
5402 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5408 # The default is to use the modules from this package and the few
5409 # other packages in a standard place; i.e where this package gets
5410 # installed. With these options it is possible to override these
5411 # ${prefix} depended values with fixed paths, which can't be replaced
5412 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5414 # Check whether --with-agent-pgm was given.
5415 if test "${with_agent_pgm+set}" = set; then :
5416 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5422 if test -n "$GNUPG_AGENT_PGM"; then
5423 GNUPG_AGENT_PGM_TRUE=
5424 GNUPG_AGENT_PGM_FALSE='#'
5426 GNUPG_AGENT_PGM_TRUE='#'
5427 GNUPG_AGENT_PGM_FALSE=
5430 show_gnupg_agent_pgm="(default)"
5431 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5434 # Check whether --with-pinentry-pgm was given.
5435 if test "${with_pinentry_pgm+set}" = set; then :
5436 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5438 GNUPG_PINENTRY_PGM=""
5442 if test -n "$GNUPG_PINENTRY_PGM"; then
5443 GNUPG_PINENTRY_PGM_TRUE=
5444 GNUPG_PINENTRY_PGM_FALSE='#'
5446 GNUPG_PINENTRY_PGM_TRUE='#'
5447 GNUPG_PINENTRY_PGM_FALSE=
5450 show_gnupg_pinentry_pgm="(default)"
5451 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5455 # Check whether --with-scdaemon-pgm was given.
5456 if test "${with_scdaemon_pgm+set}" = set; then :
5457 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5459 GNUPG_SCDAEMON_PGM=""
5463 if test -n "$GNUPG_SCDAEMON_PGM"; then
5464 GNUPG_SCDAEMON_PGM_TRUE=
5465 GNUPG_SCDAEMON_PGM_FALSE='#'
5467 GNUPG_SCDAEMON_PGM_TRUE='#'
5468 GNUPG_SCDAEMON_PGM_FALSE=
5471 show_gnupg_scdaemon_pgm="(default)"
5472 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5476 # Check whether --with-tpm2daemon-pgm was given.
5477 if test "${with_tpm2daemon_pgm+set}" = set; then :
5478 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5480 GNUPG_TPM2DAEMON_PGM=""
5484 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5485 GNUPG_TPM2DAEMON_PGM_TRUE=
5486 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5488 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5489 GNUPG_TPM2DAEMON_PGM_FALSE=
5492 show_gnupg_tpm2daemon_pgm="(default)"
5493 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5497 # Check whether --with-dirmngr-pgm was given.
5498 if test "${with_dirmngr_pgm+set}" = set; then :
5499 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5501 GNUPG_DIRMNGR_PGM=""
5505 if test -n "$GNUPG_DIRMNGR_PGM"; then
5506 GNUPG_DIRMNGR_PGM_TRUE=
5507 GNUPG_DIRMNGR_PGM_FALSE='#'
5509 GNUPG_DIRMNGR_PGM_TRUE='#'
5510 GNUPG_DIRMNGR_PGM_FALSE=
5513 show_gnupg_dirmngr_pgm="(default)"
5514 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5517 # Check whether --with-keyboxd-pgm was given.
5518 if test "${with_keyboxd_pgm+set}" = set; then :
5519 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5521 GNUPG_KEYBOXD_PGM=""
5525 if test -n "$GNUPG_KEYBOXD_PGM"; then
5526 GNUPG_KEYBOXD_PGM_TRUE=
5527 GNUPG_KEYBOXD_PGM_FALSE='#'
5529 GNUPG_KEYBOXD_PGM_TRUE='#'
5530 GNUPG_KEYBOXD_PGM_FALSE=
5533 show_gnupg_keyboxd_pgm="(default)"
5534 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5537 # Check whether --with-protect-tool-pgm was given.
5538 if test "${with_protect_tool_pgm+set}" = set; then :
5539 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5541 GNUPG_PROTECT_TOOL_PGM=""
5545 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5546 GNUPG_PROTECT_TOOL_PGM_TRUE=
5547 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5549 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5550 GNUPG_PROTECT_TOOL_PGM_FALSE=
5553 show_gnupg_protect_tool_pgm="(default)"
5554 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5555 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5558 # Check whether --with-dirmngr-ldap-pgm was given.
5559 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5560 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5562 GNUPG_DIRMNGR_LDAP_PGM=""
5566 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5567 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5568 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5570 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5571 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5574 show_gnupg_dirmngr_ldap_pgm="(default)"
5575 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5576 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5580 # For a long time gpg 2.x was installed as gpg2. This changed with
5581 # 2.2. This option can be used to install gpg under the name gpg2.
5583 # Check whether --enable-gpg-is-gpg2 was given.
5584 if test "${enable_gpg_is_gpg2+set}" = set; then :
5585 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5588 if test "$gpg_is_gpg2" = "yes"; then
5590 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5593 if test "$gpg_is_gpg2" = "yes"; then
5595 USE_GPG2_HACK_FALSE='#'
5597 USE_GPG2_HACK_TRUE='#'
5598 USE_GPG2_HACK_FALSE=
5603 # SELinux support includes tracking of sensitive files to avoid
5604 # leaking their contents through processing these files by gpg itself
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5606 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5607 # Check whether --enable-selinux-support was given.
5608 if test "${enable_selinux_support+set}" = set; then :
5609 enableval=$enable_selinux_support; selinux_support=$enableval
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5615 $as_echo "$selinux_support" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5619 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5620 # Check whether --enable-large-secmem was given.
5621 if test "${enable_large_secmem+set}" = set; then :
5622 enableval=$enable_large_secmem; large_secmem=$enableval
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5628 $as_echo "$large_secmem" >&6; }
5629 if test "$large_secmem" = yes ; then
5630 SECMEM_BUFFER_SIZE=65536
5632 SECMEM_BUFFER_SIZE=32768
5635 cat >>confdefs.h <<_ACEOF
5636 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5641 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5643 # Check whether --with-agent-s2k-calibration was given.
5644 if test "${with_agent_s2k_calibration+set}" = set; then :
5645 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5647 agent_s2k_calibration=100
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5651 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5653 cat >>confdefs.h <<_ACEOF
5654 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5659 $as_echo_n "checking whether to enable trust models... " >&6; }
5660 # Check whether --enable-trust-models was given.
5661 if test "${enable_trust_models+set}" = set; then :
5662 enableval=$enable_trust_models; use_trust_models=$enableval
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5666 $as_echo "$use_trust_models" >&6; }
5667 if test "$use_trust_models" = no ; then
5669 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5674 $as_echo_n "checking whether to enable TOFU... " >&6; }
5675 # Check whether --enable-tofu was given.
5676 if test "${enable_tofu+set}" = set; then :
5677 enableval=$enable_tofu; use_tofu=$enableval
5679 use_tofu=$use_trust_models
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5683 $as_echo "$use_tofu" >&6; }
5684 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5685 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5689 $as_echo_n "checking whether to enable libdns... " >&6; }
5690 # Check whether --enable-libdns was given.
5691 if test "${enable_libdns+set}" = set; then :
5692 enableval=$enable_libdns; use_libdns=$enableval
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5698 $as_echo "$use_libdns" >&6; }
5699 if test x"$use_libdns" = xyes ; then
5701 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5704 if test "$use_libdns" = yes; then
5706 USE_LIBDNS_FALSE='#'
5715 # Options to disable algorithm
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5719 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5720 # Check whether --enable-gpg-rsa was given.
5721 if test "${enable_gpg_rsa+set}" = set; then :
5722 enableval=$enable_gpg_rsa;
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5728 $as_echo "$enableval" >&6; }
5729 if test x"$enableval" = xyes ; then
5731 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5735 # Elgamal is a MUST algorithm
5736 # DSA is a MUST algorithm
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5738 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5739 # Check whether --enable-gpg-ecdh was given.
5740 if test "${enable_gpg_ecdh+set}" = set; then :
5741 enableval=$enable_gpg_ecdh;
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5747 $as_echo "$enableval" >&6; }
5748 if test x"$enableval" = xyes ; then
5750 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5755 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5756 # Check whether --enable-gpg-ecdsa was given.
5757 if test "${enable_gpg_ecdsa+set}" = set; then :
5758 enableval=$enable_gpg_ecdsa;
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5764 $as_echo "$enableval" >&6; }
5765 if test x"$enableval" = xyes ; then
5767 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5772 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5773 # Check whether --enable-gpg-eddsa was given.
5774 if test "${enable_gpg_eddsa+set}" = set; then :
5775 enableval=$enable_gpg_eddsa;
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5781 $as_echo "$enableval" >&6; }
5782 if test x"$enableval" = xyes ; then
5784 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5790 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5791 # Check whether --enable-gpg-idea was given.
5792 if test "${enable_gpg_idea+set}" = set; then :
5793 enableval=$enable_gpg_idea;
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5799 $as_echo "$enableval" >&6; }
5800 if test x"$enableval" = xyes ; then
5802 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5806 # 3DES is a MUST algorithm
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5808 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5809 # Check whether --enable-gpg-cast5 was given.
5810 if test "${enable_gpg_cast5+set}" = set; then :
5811 enableval=$enable_gpg_cast5;
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5817 $as_echo "$enableval" >&6; }
5818 if test x"$enableval" = xyes ; then
5820 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5825 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5826 # Check whether --enable-gpg-blowfish was given.
5827 if test "${enable_gpg_blowfish+set}" = set; then :
5828 enableval=$enable_gpg_blowfish;
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5834 $as_echo "$enableval" >&6; }
5835 if test x"$enableval" = xyes ; then
5837 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5842 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5843 # Check whether --enable-gpg-aes128 was given.
5844 if test "${enable_gpg_aes128+set}" = set; then :
5845 enableval=$enable_gpg_aes128;
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5851 $as_echo "$enableval" >&6; }
5852 if test x"$enableval" = xyes ; then
5854 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5859 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5860 # Check whether --enable-gpg-aes192 was given.
5861 if test "${enable_gpg_aes192+set}" = set; then :
5862 enableval=$enable_gpg_aes192;
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5868 $as_echo "$enableval" >&6; }
5869 if test x"$enableval" = xyes ; then
5871 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5876 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5877 # Check whether --enable-gpg-aes256 was given.
5878 if test "${enable_gpg_aes256+set}" = set; then :
5879 enableval=$enable_gpg_aes256;
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5885 $as_echo "$enableval" >&6; }
5886 if test x"$enableval" = xyes ; then
5888 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5893 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5894 # Check whether --enable-gpg-twofish was given.
5895 if test "${enable_gpg_twofish+set}" = set; then :
5896 enableval=$enable_gpg_twofish;
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5902 $as_echo "$enableval" >&6; }
5903 if test x"$enableval" = xyes ; then
5905 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5910 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5911 # Check whether --enable-gpg-camellia128 was given.
5912 if test "${enable_gpg_camellia128+set}" = set; then :
5913 enableval=$enable_gpg_camellia128;
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5919 $as_echo "$enableval" >&6; }
5920 if test x"$enableval" = xyes ; then
5922 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5927 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5928 # Check whether --enable-gpg-camellia192 was given.
5929 if test "${enable_gpg_camellia192+set}" = set; then :
5930 enableval=$enable_gpg_camellia192;
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5936 $as_echo "$enableval" >&6; }
5937 if test x"$enableval" = xyes ; then
5939 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5944 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5945 # Check whether --enable-gpg-camellia256 was given.
5946 if test "${enable_gpg_camellia256+set}" = set; then :
5947 enableval=$enable_gpg_camellia256;
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5953 $as_echo "$enableval" >&6; }
5954 if test x"$enableval" = xyes ; then
5956 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5962 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5963 # Check whether --enable-gpg-md5 was given.
5964 if test "${enable_gpg_md5+set}" = set; then :
5965 enableval=$enable_gpg_md5;
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5971 $as_echo "$enableval" >&6; }
5972 if test x"$enableval" = xyes ; then
5974 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5978 # SHA1 is a MUST algorithm
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5980 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5981 # Check whether --enable-gpg-rmd160 was given.
5982 if test "${enable_gpg_rmd160+set}" = set; then :
5983 enableval=$enable_gpg_rmd160;
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5989 $as_echo "$enableval" >&6; }
5990 if test x"$enableval" = xyes ; then
5992 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5997 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5998 # Check whether --enable-gpg-sha224 was given.
5999 if test "${enable_gpg_sha224+set}" = set; then :
6000 enableval=$enable_gpg_sha224;
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6006 $as_echo "$enableval" >&6; }
6007 if test x"$enableval" = xyes ; then
6009 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6013 # SHA256 is a MUST algorithm for GnuPG.
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6015 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6016 # Check whether --enable-gpg-sha384 was given.
6017 if test "${enable_gpg_sha384+set}" = set; then :
6018 enableval=$enable_gpg_sha384;
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6024 $as_echo "$enableval" >&6; }
6025 if test x"$enableval" = xyes ; then
6027 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6032 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6033 # Check whether --enable-gpg-sha512 was given.
6034 if test "${enable_gpg_sha512+set}" = set; then :
6035 enableval=$enable_gpg_sha512;
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6041 $as_echo "$enableval" >&6; }
6042 if test x"$enableval" = xyes ; then
6044 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6050 # Allow disabling of zip support.
6051 # This is in general not a good idea because according to rfc4880 OpenPGP
6052 # implementations SHOULD support ZLIB.
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6054 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6055 # Check whether --enable-zip was given.
6056 if test "${enable_zip+set}" = set; then :
6057 enableval=$enable_zip; use_zip=$enableval
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6061 $as_echo "$use_zip" >&6; }
6063 # Allow disabling of bzib2 support.
6064 # It is defined only after we confirm the library is available later
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6066 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6067 # Check whether --enable-bzip2 was given.
6068 if test "${enable_bzip2+set}" = set; then :
6069 enableval=$enable_bzip2; use_bzip2=$enableval
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6073 $as_echo "$use_bzip2" >&6; }
6075 # Configure option to allow or disallow execution of external
6076 # programs, like a photo viewer.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6078 $as_echo_n "checking whether to enable external program execution... " >&6; }
6079 # Check whether --enable-exec was given.
6080 if test "${enable_exec+set}" = set; then :
6081 enableval=$enable_exec; use_exec=$enableval
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6085 $as_echo "$use_exec" >&6; }
6086 if test "$use_exec" = no ; then
6088 $as_echo "#define NO_EXEC 1" >>confdefs.h
6092 if test "$use_exec" = yes ; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6094 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6095 # Check whether --enable-photo-viewers was given.
6096 if test "${enable_photo_viewers+set}" = set; then :
6097 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6099 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6106 gnupg_cv_enable_photo_viewers=$enableval
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6108 $as_echo "$enableval" >&6; }
6110 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6112 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6114 # Check whether --with-photo-viewer was given.
6115 if test "${with_photo_viewer+set}" = set; then :
6116 withval=$with_photo_viewer; if test "$withval" = yes ; then
6118 elif test "$withval" != no ; then
6120 cat >>confdefs.h <<_ACEOF
6121 #define FIXED_PHOTO_VIEWER "$withval"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6130 $as_echo "$withval" >&6; }
6136 # Check for the key/uid cache size. This can't be zero, but can be
6137 # pretty small on embedded systems. This is used for the gpg part.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6140 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6141 # Check whether --enable-key-cache was given.
6142 if test "${enable_key_cache+set}" = set; then :
6143 enableval=$enable_key_cache;
6148 if test "$enableval" = "no"; then
6150 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6153 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6154 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6155 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6158 $as_echo "$key_cache_size" >&6; }
6160 cat >>confdefs.h <<_ACEOF
6161 #define PK_UID_CACHE_SIZE $key_cache_size
6168 # Check whether we want to use Linux capabilities
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6171 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6173 # Check whether --with-capabilities was given.
6174 if test "${with_capabilities+set}" = set; then :
6175 withval=$with_capabilities; use_capabilities="$withval"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6181 $as_echo "$use_capabilities" >&6; }
6184 # Check whether to disable the card support
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6186 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6187 # Check whether --enable-card-support was given.
6188 if test "${enable_card_support+set}" = set; then :
6189 enableval=$enable_card_support; card_support=$enableval
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6193 $as_echo "$card_support" >&6; }
6194 if test "$card_support" = yes ; then
6196 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6203 # Allow disabling of internal CCID support.
6204 # It is defined only after we confirm the library is available later
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6207 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6208 # Check whether --enable-ccid-driver was given.
6209 if test "${enable_ccid_driver+set}" = set; then :
6210 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6214 $as_echo "$use_ccid_driver" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6217 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6218 # Check whether --enable-dirmngr-auto-start was given.
6219 if test "${enable_dirmngr_auto_start+set}" = set; then :
6220 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6224 $as_echo "$dirmngr_auto_start" >&6; }
6225 if test "$dirmngr_auto_start" = yes ; then
6227 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6233 # To avoid double inclusion of config.h which might happen at some
6234 # places, we add the usual double inclusion protection at the top of
6240 # Stuff which goes at the bottom of config.h.
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6247 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6248 # Check whether --enable-maintainer-mode was given.
6249 if test "${enable_maintainer_mode+set}" = set; then :
6250 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6252 USE_MAINTAINER_MODE=no
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6256 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6257 if test $USE_MAINTAINER_MODE = yes; then
6258 MAINTAINER_MODE_TRUE=
6259 MAINTAINER_MODE_FALSE='#'
6261 MAINTAINER_MODE_TRUE='#'
6262 MAINTAINER_MODE_FALSE=
6265 MAINT=$MAINTAINER_MODE_TRUE
6270 # Checks for programs.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6272 $as_echo "$as_me: checking for programs" >&6;}
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 cat >conftest.make <<\_ACEOF
6283 @echo '@@@%%%=$(MAKE)=@@@%%%'
6285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6288 eval ac_cv_prog_make_${ac_make}_set=yes;;
6290 eval ac_cv_prog_make_${ac_make}_set=no;;
6294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296 $as_echo "yes" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 SET_MAKE="MAKE=${MAKE-make}"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6305 $as_echo_n "checking whether build environment is sane... " >&6; }
6306 # Reject unsafe characters in $srcdir or the absolute working directory
6307 # name. Accept space and tab only in the latter.
6311 *[\\\"\#\$\&\'\`$am_lf]*)
6312 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6315 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6316 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6319 # Do 'set' in a subshell so we don't clobber the current shell's
6320 # arguments. Must try -L first in case configure is actually a
6321 # symlink; some systems play weird games with the mod time of symlinks
6322 # (eg FreeBSD returns the mod time of the symlink's containing
6326 for am_try in 1 2; do
6327 echo "timestamp, slept: $am_has_slept" > conftest.file
6328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6329 if test "$*" = "X"; then
6331 set X `ls -t "$srcdir/configure" conftest.file`
6333 if test "$*" != "X $srcdir/configure conftest.file" \
6334 && test "$*" != "X conftest.file $srcdir/configure"; then
6336 # If neither matched, then we have a broken ls. This can happen
6337 # if, for instance, CONFIG_SHELL is bash and it inherits a
6338 # broken ls alias from the environment. This has actually
6339 # happened. Such a system could not be considered "sane".
6340 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6341 alias in your environment" "$LINENO" 5
6343 if test "$2" = conftest.file || test $am_try -eq 2; then
6350 test "$2" = conftest.file
6356 as_fn_error $? "newly created file is older than distributed files!
6357 Check your system clock" "$LINENO" 5
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6360 $as_echo "yes" >&6; }
6361 # If we didn't sleep, we still need to ensure time stamps of config.status and
6362 # generated files are strictly newer.
6364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6371 missing_dir=`cd $ac_aux_dir && pwd`
6373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6387 # Check whether --enable-silent-rules was given.
6388 if test "${enable_silent_rules+set}" = set; then :
6389 enableval=$enable_silent_rules;
6392 case $enable_silent_rules in # (((
6393 yes) AM_DEFAULT_VERBOSITY=0;;
6394 no) AM_DEFAULT_VERBOSITY=1;;
6395 *) AM_DEFAULT_VERBOSITY=1;;
6397 am_make=${MAKE-make}
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6399 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6400 if ${am_cv_make_support_nested_variables+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if $as_echo 'TRUE=$(BAR$(V))
6409 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6410 am_cv_make_support_nested_variables=yes
6412 am_cv_make_support_nested_variables=no
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6416 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6417 if test $am_cv_make_support_nested_variables = yes; then
6419 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6421 AM_V=$AM_DEFAULT_VERBOSITY
6422 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6426 for ac_prog in gawk mawk nawk awk
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_AWK+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$AWK"; then
6436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_AWK="$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 if test -n "$AWK"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6458 $as_echo "$AWK" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$AWK" && break
6469 ac_cpp='$CPP $CPPFLAGS'
6470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_CC+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$CC"; then
6482 ac_cv_prog_CC="$CC" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$CC"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6504 $as_echo "$CC" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6512 if test -z "$ac_cv_prog_CC"; then
6514 # Extract the first word of "gcc", so it can be a program name with args.
6515 set dummy gcc; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$ac_ct_CC"; then
6522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_CC="gcc"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6542 if test -n "$ac_ct_CC"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6544 $as_echo "$ac_ct_CC" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6550 if test "x$ac_ct_CC" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6565 if test -z "$CC"; then
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}cc; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_CC+:} false; then :
6572 $as_echo_n "(cached) " >&6
6574 if test -n "$CC"; then
6575 ac_cv_prog_CC="$CC" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_CC="${ac_tool_prefix}cc"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 if test -n "$CC"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6597 $as_echo "$CC" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6606 if test -z "$CC"; then
6607 # Extract the first word of "cc", so it can be a program name with args.
6608 set dummy cc; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_CC+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$CC"; then
6615 ac_cv_prog_CC="$CC" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6626 ac_prog_rejected=yes
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 if test $ac_prog_rejected = yes; then
6638 # We found a bogon in the path, so make sure we never use it.
6639 set dummy $ac_cv_prog_CC
6641 if test $# != 0; then
6642 # We chose a different compiler from the bogus one.
6643 # However, it has the same basename, so the bogon will be chosen
6644 # first if we set CC to just the basename; use the full file name.
6646 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6652 if test -n "$CC"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6654 $as_echo "$CC" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$CC"; then
6663 if test -n "$ac_tool_prefix"; then
6664 for ac_prog in cl.exe
6666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_CC+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 if test -n "$CC"; then
6674 ac_cv_prog_CC="$CC" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 if test -n "$CC"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6696 $as_echo "$CC" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6703 test -n "$CC" && break
6706 if test -z "$CC"; then
6708 for ac_prog in cl.exe
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_CC"; then
6718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_CC="$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6738 if test -n "$ac_ct_CC"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6740 $as_echo "$ac_ct_CC" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6747 test -n "$ac_ct_CC" && break
6750 if test "x$ac_ct_CC" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6766 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 as_fn_error $? "no acceptable C compiler found in \$PATH
6769 See \`config.log' for more details" "$LINENO" 5; }
6771 # Provide some information about the compiler.
6772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6775 for ac_option in --version -v -V -qversion; do
6776 { { ac_try="$ac_compiler $ac_option >&5"
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6782 $as_echo "$ac_try_echo"; } >&5
6783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6785 if test -s conftest.err; then
6787 ... rest of stderr output deleted ...
6788 10q' conftest.err >conftest.er1
6789 cat conftest.er1 >&5
6791 rm -f conftest.er1 conftest.err
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6798 if ${ac_cv_c_compiler_gnu+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6815 if ac_fn_c_try_compile "$LINENO"; then :
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6826 if test $ac_compiler_gnu = yes; then
6831 ac_test_CFLAGS=${CFLAGS+set}
6832 ac_save_CFLAGS=$CFLAGS
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6835 if ${ac_cv_prog_cc_g+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 ac_save_c_werror_flag=$ac_c_werror_flag
6839 ac_c_werror_flag=yes
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6853 if ac_fn_c_try_compile "$LINENO"; then :
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6868 if ac_fn_c_try_compile "$LINENO"; then :
6871 ac_c_werror_flag=$ac_save_c_werror_flag
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6884 if ac_fn_c_try_compile "$LINENO"; then :
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 ac_c_werror_flag=$ac_save_c_werror_flag
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6895 $as_echo "$ac_cv_prog_cc_g" >&6; }
6896 if test "$ac_test_CFLAGS" = set; then
6897 CFLAGS=$ac_save_CFLAGS
6898 elif test $ac_cv_prog_cc_g = yes; then
6899 if test "$GCC" = yes; then
6905 if test "$GCC" = yes; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6913 if ${ac_cv_prog_cc_c89+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 ac_cv_prog_cc_c89=no
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6924 struct buf { int x; };
6925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6926 static char *e (p, i)
6932 static char *f (char * (*g) (char **, int), char **p, ...)
6937 s = g (p, va_arg (v,int));
6942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6943 function prototypes and stuff, but not '\xHH' hex character constants.
6944 These don't provoke an error unfortunately, instead are silently treated
6945 as 'x'. The following induces an error, until -std is added to get
6946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6947 array size at least. It's necessary to write '\x00'==0 to get something
6948 that's true only with -std. */
6949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6952 inside strings and character constants. */
6954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6956 int test (int i, double x);
6957 struct s1 {int (*f) (int a);};
6958 struct s2 {int (*f) (double a);};
6959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6973 CC="$ac_save_CC $ac_arg"
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975 ac_cv_prog_cc_c89=$ac_arg
6977 rm -f core conftest.err conftest.$ac_objext
6978 test "x$ac_cv_prog_cc_c89" != "xno" && break
6980 rm -f conftest.$ac_ext
6985 case "x$ac_cv_prog_cc_c89" in
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6988 $as_echo "none needed" >&6; } ;;
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6991 $as_echo "unsupported" >&6; } ;;
6993 CC="$CC $ac_cv_prog_cc_c89"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6997 if test "x$ac_cv_prog_cc_c89" != xno; then :
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7014 if ${am_cv_prog_cc_c_o+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7028 # Make sure it works both with $CC and with simple cc.
7029 # Following AC_PROG_CC_C_O, we do the test twice because some
7030 # compilers refuse to overwrite an existing .o file with -o,
7031 # though they will create one.
7032 am_cv_prog_cc_c_o=yes
7034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } \
7039 && test -f conftest2.$ac_objext; then
7042 am_cv_prog_cc_c_o=no
7046 rm -f core conftest*
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7051 if test "$am_cv_prog_cc_c_o" != yes; then
7052 # Losing compiler, so override with the script.
7053 # FIXME: It is wrong to rewrite CC.
7054 # But if we don't then we get into trouble of one sort or another.
7055 # A longer-term fix would be to have automake use am__CC in this case,
7056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7057 CC="$am_aux_dir/compile $CC"
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 depcc="$CC" am_compiler_list=
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7069 $as_echo_n "checking dependency style of $depcc... " >&6; }
7070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7074 # We make a subdir and do the tests there. Otherwise we can end up
7075 # making bogus files that we don't know about and never remove. For
7076 # instance it was reported that on HP-UX the gcc test will end up
7077 # making a dummy file named 'D' -- because '-MD' means "put the output
7081 # Copy depcomp to subdir because otherwise we won't find it if we're
7082 # using a relative directory.
7083 cp "$am_depcomp" conftest.dir
7085 # We will build objects and dependencies in a subdirectory because
7086 # it helps to detect inapplicable dependency modes. For instance
7087 # both Tru64's cc and ICC support -MD to output dependencies as a
7088 # side effect of compilation, but ICC will put the dependencies in
7089 # the current directory while Tru64 will put them in the object
7093 am_cv_CC_dependencies_compiler_type=none
7094 if test "$am_compiler_list" = ""; then
7095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7098 case " $depcc " in #(
7099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7102 for depmode in $am_compiler_list; do
7103 # Setup a source with many dependencies, because some compilers
7104 # like to wrap large dependency lists on column 80 (with \), and
7105 # we should not choose a depcomp mode which is confused by this.
7107 # We need to recreate these files for each test, as the compiler may
7108 # overwrite some of them when testing with obscure command lines.
7109 # This happens at least with the AIX C compiler.
7111 for i in 1 2 3 4 5 6; do
7112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7114 # Solaris 10 /bin/sh.
7115 echo '/* dummy */' > sub/conftst$i.h
7117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7120 # mode. It turns out that the SunPro C++ compiler does not properly
7121 # handle '-M -o', and we need to detect this. Also, some Intel
7122 # versions had trouble with output in subdirs.
7123 am__obj=sub/conftest.${OBJEXT-o}
7124 am__minus_obj="-o $am__obj"
7127 # This depmode causes a compiler race in universal mode.
7128 test "$am__universal" = false || continue
7131 # After this tag, mechanisms are not by side-effect, so they'll
7132 # only be used when explicitly requested.
7133 if test "x$enable_dependency_tracking" = xyes; then
7139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7140 # This compiler won't grok '-c -o', but also, the minuso test has
7141 # not run yet. These depmodes are late enough in the game, and
7142 # so weak that their functioning should not be impacted.
7143 am__obj=conftest.${OBJEXT-o}
7148 if depmode=$depmode \
7149 source=sub/conftest.c object=$am__obj \
7150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7152 >/dev/null 2>conftest.err &&
7153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7157 # icc doesn't choke on unknown options, it will just issue warnings
7158 # or remarks (even with -Werror). So we grep stderr for any message
7159 # that says an option was ignored or not supported.
7160 # When given -MP, icc 7.0 and 7.1 complain thusly:
7161 # icc: Command line warning: ignoring option '-M'; no argument required
7162 # The diagnosis changed in icc 8.0:
7163 # icc: Command line remark: option '-MP' not supported
7164 if (grep 'ignoring option' conftest.err ||
7165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7166 am_cv_CC_dependencies_compiler_type=$depmode
7175 am_cv_CC_dependencies_compiler_type=none
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7184 test "x$enable_dependency_tracking" != xno \
7185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7187 am__fastdepCC_FALSE='#'
7189 am__fastdepCC_TRUE='#'
7190 am__fastdepCC_FALSE=
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7201 # On Suns, sometimes $CPP names a directory.
7202 if test -n "$CPP" && test -d "$CPP"; then
7205 if test -z "$CPP"; then
7206 if ${ac_cv_prog_CPP+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 # Double quotes because CPP needs to be expanded
7210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7213 for ac_c_preproc_warn_flag in '' yes
7215 # Use a header file that comes with gcc, so configuring glibc
7216 # with a fresh cross-compiler works.
7217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218 # <limits.h> exists even on freestanding compilers.
7219 # On the NeXT, cc -E runs the code through the compiler's parser,
7220 # not just through cpp. "Syntax error" is here to catch this case.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 # include <limits.h>
7226 # include <assert.h>
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7233 # Broken: fails on valid input.
7236 rm -f conftest.err conftest.i conftest.$ac_ext
7238 # OK, works on sane cases. Now check whether nonexistent headers
7239 # can be detected and how.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <ac_nonexistent.h>
7244 if ac_fn_c_try_cpp "$LINENO"; then :
7245 # Broken: success on invalid input.
7248 # Passes both tests.
7252 rm -f conftest.err conftest.i conftest.$ac_ext
7255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7256 rm -f conftest.i conftest.err conftest.$ac_ext
7257 if $ac_preproc_ok; then :
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7270 $as_echo "$CPP" >&6; }
7272 for ac_c_preproc_warn_flag in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 # include <limits.h>
7285 # include <assert.h>
7289 if ac_fn_c_try_cpp "$LINENO"; then :
7292 # Broken: fails on valid input.
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7297 # OK, works on sane cases. Now check whether nonexistent headers
7298 # can be detected and how.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #include <ac_nonexistent.h>
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7304 # Broken: success on invalid input.
7307 # Passes both tests.
7311 rm -f conftest.err conftest.i conftest.$ac_ext
7314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315 rm -f conftest.i conftest.err conftest.$ac_ext
7316 if $ac_preproc_ok; then :
7319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7322 See \`config.log' for more details" "$LINENO" 5; }
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7333 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7337 $as_echo_n "checking whether ln -s works... " >&6; }
7339 if test "$LN_S" = "ln -s"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7344 $as_echo "no, using $LN_S" >&6; }
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_RANLIB+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$RANLIB"; then
7356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 RANLIB=$ac_cv_prog_RANLIB
7376 if test -n "$RANLIB"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7378 $as_echo "$RANLIB" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test -z "$ac_cv_prog_RANLIB"; then
7387 ac_ct_RANLIB=$RANLIB
7388 # Extract the first word of "ranlib", so it can be a program name with args.
7389 set dummy ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$ac_ct_RANLIB"; then
7396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_RANLIB="ranlib"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7416 if test -n "$ac_ct_RANLIB"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7418 $as_echo "$ac_ct_RANLIB" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7424 if test "x$ac_ct_RANLIB" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7433 RANLIB=$ac_ct_RANLIB
7436 RANLIB="$ac_cv_prog_RANLIB"
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}ar; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_AR+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$AR"; then
7448 ac_cv_prog_AR="$AR" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_AR="${ac_tool_prefix}ar"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 if test -n "$AR"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7470 $as_echo "$AR" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7478 if test -z "$ac_cv_prog_AR"; then
7480 # Extract the first word of "ar", so it can be a program name with args.
7481 set dummy ar; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$ac_ct_AR"; then
7488 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_ac_ct_AR="ar"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7508 if test -n "$ac_ct_AR"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7510 $as_echo "$ac_ct_AR" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7516 if test "x$ac_ct_AR" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7531 # Extract the first word of ""perl"", so it can be a program name with args.
7532 set dummy "perl"; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_PERL+:} false; then :
7536 $as_echo_n "(cached) " >&6
7540 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 PERL=$ac_cv_path_PERL
7562 if test -n "$PERL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7564 $as_echo "$PERL" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}windres; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_WINDRES+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test -n "$WINDRES"; then
7580 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 WINDRES=$ac_cv_prog_WINDRES
7600 if test -n "$WINDRES"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7602 $as_echo "$WINDRES" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7610 if test -z "$ac_cv_prog_WINDRES"; then
7611 ac_ct_WINDRES=$WINDRES
7612 # Extract the first word of "windres", so it can be a program name with args.
7613 set dummy windres; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$ac_ct_WINDRES"; then
7620 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_WINDRES="windres"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7640 if test -n "$ac_ct_WINDRES"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7642 $as_echo "$ac_ct_WINDRES" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_ct_WINDRES" = x; then
7651 case $cross_compiling:$ac_tool_warned in
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7657 WINDRES=$ac_ct_WINDRES
7660 WINDRES="$ac_cv_prog_WINDRES"
7663 # Extract the first word of ""yat2m"", so it can be a program name with args.
7664 set dummy "yat2m"; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_path_YAT2M+:} false; then :
7668 $as_echo_n "(cached) " >&6
7672 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7694 YAT2M=$ac_cv_path_YAT2M
7695 if test -n "$YAT2M"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7697 $as_echo "$YAT2M" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -n "$ac_cv_path_YAT2M"; then
7707 HAVE_YAT2M_FALSE='#'
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7714 $as_echo_n "checking for library containing strerror... " >&6; }
7715 if ${ac_cv_search_strerror+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 ac_func_search_save_LIBS=$LIBS
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7737 for ac_lib in '' cposix; do
7738 if test -z "$ac_lib"; then
7739 ac_res="none required"
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7744 if ac_fn_c_try_link "$LINENO"; then :
7745 ac_cv_search_strerror=$ac_res
7747 rm -f core conftest.err conftest.$ac_objext \
7749 if ${ac_cv_search_strerror+:} false; then :
7753 if ${ac_cv_search_strerror+:} false; then :
7756 ac_cv_search_strerror=no
7759 LIBS=$ac_func_search_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7762 $as_echo "$ac_cv_search_strerror" >&6; }
7763 ac_res=$ac_cv_search_strerror
7764 if test "$ac_res" != no; then :
7765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7769 # Check whether --enable-largefile was given.
7770 if test "${enable_largefile+set}" = set; then :
7771 enableval=$enable_largefile;
7774 if test "$enable_largefile" != no; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7778 if ${ac_cv_sys_largefile_CC+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_cv_sys_largefile_CC=no
7782 if test "$GCC" != yes; then
7785 # IRIX 6.2 and later do not support large files by default,
7786 # so use the C compiler's -n32 option if that helps.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #include <sys/types.h>
7790 /* Check that off_t can represent 2**63 - 1 correctly.
7791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7792 since some C++ compilers masquerading as C compilers
7793 incorrectly reject 9223372036854775807. */
7794 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7796 && LARGE_OFF_T % 2147483647 == 1)
7806 if ac_fn_c_try_compile "$LINENO"; then :
7809 rm -f core conftest.err conftest.$ac_objext
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 ac_cv_sys_largefile_CC=' -n32'; break
7814 rm -f core conftest.err conftest.$ac_objext
7818 rm -f conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7822 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7823 if test "$ac_cv_sys_largefile_CC" != no; then
7824 CC=$CC$ac_cv_sys_largefile_CC
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7828 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7829 if ${ac_cv_sys_file_offset_bits+:} false; then :
7830 $as_echo_n "(cached) " >&6
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 /* Check that off_t can represent 2**63 - 1 correctly.
7837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7838 since some C++ compilers masquerading as C compilers
7839 incorrectly reject 9223372036854775807. */
7840 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7842 && LARGE_OFF_T % 2147483647 == 1)
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 ac_cv_sys_file_offset_bits=no; break
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 #define _FILE_OFFSET_BITS 64
7859 #include <sys/types.h>
7860 /* Check that off_t can represent 2**63 - 1 correctly.
7861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7862 since some C++ compilers masquerading as C compilers
7863 incorrectly reject 9223372036854775807. */
7864 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7866 && LARGE_OFF_T % 2147483647 == 1)
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877 ac_cv_sys_file_offset_bits=64; break
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 ac_cv_sys_file_offset_bits=unknown
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7885 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7886 case $ac_cv_sys_file_offset_bits in #(
7889 cat >>confdefs.h <<_ACEOF
7890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7895 if test $ac_cv_sys_file_offset_bits = unknown; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7897 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7898 if ${ac_cv_sys_large_files+:} false; then :
7899 $as_echo_n "(cached) " >&6
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 /* Check that off_t can represent 2**63 - 1 correctly.
7906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7907 since some C++ compilers masquerading as C compilers
7908 incorrectly reject 9223372036854775807. */
7909 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7911 && LARGE_OFF_T % 2147483647 == 1)
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922 ac_cv_sys_large_files=no; break
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 #define _LARGE_FILES 1
7928 #include <sys/types.h>
7929 /* Check that off_t can represent 2**63 - 1 correctly.
7930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7931 since some C++ compilers masquerading as C compilers
7932 incorrectly reject 9223372036854775807. */
7933 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7935 && LARGE_OFF_T % 2147483647 == 1)
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 ac_cv_sys_large_files=1; break
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 ac_cv_sys_large_files=unknown
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7954 $as_echo "$ac_cv_sys_large_files" >&6; }
7955 case $ac_cv_sys_large_files in #(
7958 cat >>confdefs.h <<_ACEOF
7959 #define _LARGE_FILES $ac_cv_sys_large_files
7971 # GNU AWK requires -n option to interpret "0xHH" as a number
7972 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7973 AWK_HEX_NUMBER_OPTION=''
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7975 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7977 AWK_HEX_NUMBER_OPTION='-n'
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7979 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7983 # We need to compile and run a program on the build machine. A
7984 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7985 # the AC archive is broken for autoconf 2.57. Given that there is no
7986 # newer version of that macro, we assume that it is also broken for
7987 # autoconf 2.61 and thus we use a simple but usually sufficient
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7990 $as_echo_n "checking for cc for build... " >&6; }
7991 if test "$cross_compiling" = "yes"; then
7992 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7994 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7997 $as_echo "$CC_FOR_BUILD" >&6; }
8000 # We need to call this macro because other pkg-config macros are
8009 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8016 $as_echo_n "(cached) " >&6
8020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8042 if test -n "$PKG_CONFIG"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8044 $as_echo "$PKG_CONFIG" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_path_PKG_CONFIG"; then
8053 ac_pt_PKG_CONFIG=$PKG_CONFIG
8054 # Extract the first word of "pkg-config", so it can be a program name with args.
8055 set dummy pkg-config; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 case $ac_pt_PKG_CONFIG in
8063 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8085 if test -n "$ac_pt_PKG_CONFIG"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8087 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8093 if test "x$ac_pt_PKG_CONFIG" = x; then
8096 case $cross_compiling:$ac_tool_warned in
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8102 PKG_CONFIG=$ac_pt_PKG_CONFIG
8105 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8109 if test -n "$PKG_CONFIG"; then
8110 _pkg_min_version=0.9.0
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8112 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8113 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115 $as_echo "yes" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8126 have_dosish_system=no
8128 have_w32ce_system=no
8129 have_android_system=no
8130 use_simple_gettext=no
8132 require_pipe_to_unblock_pselect=yes
8135 # special stuff for Windoze NT
8136 ac_cv_have_dev_random=no
8138 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8141 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8143 have_dosish_system=yes
8146 require_pipe_to_unblock_pselect=no
8149 have_w32ce_system=yes
8153 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8158 use_simple_gettext=yes
8162 i?86-emx-os2 | i?86-*-os2*emx )
8163 # OS/2 with the EMX environment
8164 ac_cv_have_dev_random=no
8165 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8167 have_dosish_system=yes
8173 # DOS with the DJGPP environment
8174 ac_cv_have_dev_random=no
8175 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8177 have_dosish_system=yes
8183 if test -z "$GCC" ; then
8184 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8188 if test -z "$GCC" ; then
8189 # Suppress all warnings
8190 # to get rid of the unsigned/signed char mismatch warnings.
8195 if test -z "$GCC" ; then
8196 # Use the newer compiler `-msg_disable ptrmismatch1' to
8197 # get rid of the unsigned/signed char mismatch warnings.
8198 # Using this may hide other pointer mismatch warnings, but
8199 # it at least lets other warning classes through
8200 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8206 have_android_system=yes
8207 # Android is fully utf-8 and we do not want to use iconv to
8208 # keeps things simple
8214 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8218 require_pipe_to_unblock_pselect=yes
8224 if test "$require_pipe_to_unblock_pselect" = yes; then
8226 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8230 if test "$have_dosish_system" = yes; then
8232 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8235 if test "$have_dosish_system" = yes; then
8236 HAVE_DOSISH_SYSTEM_TRUE=
8237 HAVE_DOSISH_SYSTEM_FALSE='#'
8239 HAVE_DOSISH_SYSTEM_TRUE='#'
8240 HAVE_DOSISH_SYSTEM_FALSE=
8244 if test x"$use_simple_gettext" = xyes; then
8245 USE_SIMPLE_GETTEXT_TRUE=
8246 USE_SIMPLE_GETTEXT_FALSE='#'
8248 USE_SIMPLE_GETTEXT_TRUE='#'
8249 USE_SIMPLE_GETTEXT_FALSE=
8253 if test "$have_w32_system" = yes; then
8255 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8257 if test "$have_w32ce_system" = yes; then
8259 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8263 if test "$have_w32_system" = yes; then
8264 HAVE_W32_SYSTEM_TRUE=
8265 HAVE_W32_SYSTEM_FALSE='#'
8267 HAVE_W32_SYSTEM_TRUE='#'
8268 HAVE_W32_SYSTEM_FALSE=
8271 if test "$have_w32ce_system" = yes; then
8272 HAVE_W32CE_SYSTEM_TRUE=
8273 HAVE_W32CE_SYSTEM_FALSE='#'
8275 HAVE_W32CE_SYSTEM_TRUE='#'
8276 HAVE_W32CE_SYSTEM_FALSE=
8280 if test "$have_android_system" = yes; then
8282 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8285 if test "$have_android_system" = yes; then
8286 HAVE_ANDROID_SYSTEM_TRUE=
8287 HAVE_ANDROID_SYSTEM_FALSE='#'
8289 HAVE_ANDROID_SYSTEM_TRUE='#'
8290 HAVE_ANDROID_SYSTEM_FALSE=
8295 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8297 cat >>confdefs.h <<_ACEOF
8298 #define EXEEXT "$EXEEXT"
8304 # Checks for libraries.
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8307 $as_echo "$as_me: checking for libraries" >&6;}
8311 # gpgrt (aka libgpg-error) is a library with error codes shared
8312 # between GnuPG related projects.
8315 gpg_error_config_prefix=""
8317 # Check whether --with-libgpg-error-prefix was given.
8318 if test "${with_libgpg_error_prefix+set}" = set; then :
8319 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8324 # Check whether --with-gpg-error-prefix was given.
8325 if test "${with_gpg_error_prefix+set}" = set; then :
8326 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8330 if test x"${GPG_ERROR_CONFIG}" = x ; then
8331 if test x"${gpg_error_config_prefix}" != x ; then
8332 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8334 case "${SYSROOT}" in
8336 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8337 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8344 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8350 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8351 set dummy gpg-error-config; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 case $GPG_ERROR_CONFIG in
8359 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8381 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8382 if test -n "$GPG_ERROR_CONFIG"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8384 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 min_gpg_error_version="$NEED_GPGRT_VERSION"
8394 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8395 set dummy gpgrt-config; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8399 $as_echo_n "(cached) " >&6
8401 case $GPGRT_CONFIG in
8403 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 as_dummy="$prefix/bin:$PATH"
8408 for as_dir in $as_dummy
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8426 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8427 if test -n "$GPGRT_CONFIG"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8429 $as_echo "$GPGRT_CONFIG" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8436 if test "$GPGRT_CONFIG" != "no"; then
8437 # Determine gpgrt_libdir
8439 # Get the prefix of gpgrt-config assuming it's something like:
8440 # <PREFIX>/bin/gpgrt-config
8441 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8442 possible_libdir1=${gpgrt_prefix}/lib
8443 # Determine by using system libdir-format with CC, it's like:
8444 # Normal style: /usr/lib
8445 # GNU cross style: /usr/<triplet>/lib
8446 # Debian style: /usr/lib/<multiarch-name>
8447 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8448 # It is assumed that CC is specified to the one of host on cross build.
8449 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8450 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8452 # From the output of -print-search-dirs, select valid pkgconfig dirs.
8453 libdir_candidates=$(for dir in $libdir_candidates; do
8454 if p=$(cd $dir 2>/dev/null && pwd); then
8455 test -d "$p/pkgconfig" && echo $p;
8459 for possible_libdir0 in $libdir_candidates; do
8461 # Fallback candidate, the one of system-installed (by $CC)
8462 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8464 # Another candidate, user-locally-installed
8465 # (<gpgrt_prefix>/lib)
8468 # (<gpgrt_prefix>/<triplet>/lib,
8469 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8470 if test "${possible_libdir0##*/}" = "lib"; then
8471 possible_prefix0=${possible_libdir0%/lib}
8472 possible_prefix0_triplet=${possible_prefix0##*/}
8473 if test -z "$possible_prefix0_triplet"; then
8476 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8478 possible_prefix0=${possible_libdir0%%/lib*}
8479 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8481 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8482 gpgrt_libdir=${possible_libdir2}
8483 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8484 gpgrt_libdir=${possible_libdir1}
8485 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8486 gpgrt_libdir=${possible_libdir0}
8488 if test -n "$gpgrt_libdir"; then break; fi
8491 # When we cannot determine system libdir-format, use this:
8492 gpgrt_libdir=${possible_libdir1}
8498 if test -n "$gpgrt_libdir"; then
8499 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8500 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8501 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8503 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8504 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8508 elif test "$GPG_ERROR_CONFIG" != "no"; then
8509 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8511 if test "$GPG_ERROR_CONFIG" != "no"; then
8512 req_major=`echo $min_gpg_error_version | \
8513 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8514 req_minor=`echo $min_gpg_error_version | \
8515 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8516 major=`echo $gpg_error_config_version | \
8517 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8518 minor=`echo $gpg_error_config_version | \
8519 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8520 if test "$major" -gt "$req_major"; then
8523 if test "$major" -eq "$req_major"; then
8524 if test "$minor" -ge "$req_minor"; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8531 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8532 if test $ok = yes; then
8533 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8534 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8535 if test -z "$GPGRT_CONFIG"; then
8536 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8537 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8539 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8540 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8541 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8542 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8545 $as_echo "yes ($gpg_error_config_version)" >&6; }
8547 if test -z "$GPGRT_CONFIG"; then
8548 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8550 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8552 if test x"$gpg_error_config_host" != xnone ; then
8553 if test x"$gpg_error_config_host" != x"$host" ; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8556 *** The config script \"$GPG_ERROR_CONFIG\" was
8557 *** built for $gpg_error_config_host and thus may not match the
8558 *** used host $host.
8559 *** You may want to use the configure option --with-libgpg-error-prefix
8560 *** to specify a matching config script or use \$SYSROOT.
8562 $as_echo "$as_me: WARNING:
8564 *** The config script \"$GPG_ERROR_CONFIG\" was
8565 *** built for $gpg_error_config_host and thus may not match the
8566 *** used host $host.
8567 *** You may want to use the configure option --with-libgpg-error-prefix
8568 *** to specify a matching config script or use \$SYSROOT.
8570 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8576 GPG_ERROR_MT_CFLAGS=""
8577 GPG_ERROR_MT_LIBS=""
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8590 # Libgcrypt is our generic crypto library
8594 # Check whether --with-libgcrypt-prefix was given.
8595 if test "${with_libgcrypt_prefix+set}" = set; then :
8596 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8598 libgcrypt_config_prefix=""
8601 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8602 if test x"${libgcrypt_config_prefix}" != x ; then
8603 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8608 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8609 if $GPGRT_CONFIG libgcrypt --exists; then
8610 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8612 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8613 use_gpgrt_config=yes
8616 if test -z "$use_gpgrt_config"; then
8617 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8618 case "${SYSROOT}" in
8620 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8621 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8628 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8632 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8633 set dummy libgcrypt-config; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 case $LIBGCRYPT_CONFIG in
8641 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8663 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8664 if test -n "$LIBGCRYPT_CONFIG"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8666 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8675 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8676 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8677 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8678 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8681 min_libgcrypt_version="$tmp"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8685 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8687 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8688 req_major=`echo $min_libgcrypt_version | \
8689 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8690 req_minor=`echo $min_libgcrypt_version | \
8691 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8692 req_micro=`echo $min_libgcrypt_version | \
8693 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8694 if test -z "$use_gpgrt_config"; then
8695 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8697 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8699 major=`echo $libgcrypt_config_version | \
8700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8701 minor=`echo $libgcrypt_config_version | \
8702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8703 micro=`echo $libgcrypt_config_version | \
8704 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8705 if test "$major" -gt "$req_major"; then
8708 if test "$major" -eq "$req_major"; then
8709 if test "$minor" -gt "$req_minor"; then
8712 if test "$minor" -eq "$req_minor"; then
8713 if test "$micro" -ge "$req_micro"; then
8721 if test $ok = yes; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8723 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8728 if test $ok = yes; then
8729 # If we have a recent libgcrypt, we should also check that the
8731 if test "$req_libgcrypt_api" -gt 0 ; then
8732 if test -z "$use_gpgrt_config"; then
8733 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8735 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8737 if test "$tmp" -gt 0 ; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8739 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8740 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8742 $as_echo "okay" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8746 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8751 if test $ok = yes; then
8752 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8753 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8755 if test -z "$use_gpgrt_config"; then
8756 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8758 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8760 if test x"$libgcrypt_config_host" != xnone ; then
8761 if test x"$libgcrypt_config_host" != x"$host" ; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8764 *** The config script \"$LIBGCRYPT_CONFIG\" was
8765 *** built for $libgcrypt_config_host and thus may not match the
8766 *** used host $host.
8767 *** You may want to use the configure option --with-libgcrypt-prefix
8768 *** to specify a matching config script or use \$SYSROOT.
8770 $as_echo "$as_me: WARNING:
8772 *** The config script \"$LIBGCRYPT_CONFIG\" was
8773 *** built for $libgcrypt_config_host and thus may not match the
8774 *** used host $host.
8775 *** You may want to use the configure option --with-libgcrypt-prefix
8776 *** to specify a matching config script or use \$SYSROOT.
8778 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8789 # And, then, check if it's newer than 1.9.0 so that we can
8790 # conditionally build some programs.
8791 # Note: This is not anymore needed but keep the code commented in case
8792 # we need it again with some future libgcrypt.
8793 #have_libgcrypt_newer=no
8794 #if test $ok = yes; then
8795 # if test "$major" -gt 1; then
8796 # have_libgcrypt_newer=yes
8798 # if test "$major" -eq 1; then
8799 # if test "$minor" -gt 9; then
8800 # have_libgcrypt_newer=yes
8802 # if test "$minor" -eq 9; then
8803 # if test "$micro" -ge 0; then
8804 # have_libgcrypt_newer=yes
8811 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8814 # libassuan is used for IPC
8818 # Check whether --with-libassuan-prefix was given.
8819 if test "${with_libassuan_prefix+set}" = set; then :
8820 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8822 libassuan_config_prefix=""
8825 if test x$libassuan_config_prefix != x ; then
8826 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8827 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8832 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8833 if $GPGRT_CONFIG libassuan --exists; then
8834 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8836 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8837 use_gpgrt_config=yes
8840 if test -z "$use_gpgrt_config"; then
8841 # Extract the first word of "libassuan-config", so it can be a program name with args.
8842 set dummy libassuan-config; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 case $LIBASSUAN_CONFIG in
8850 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8872 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8873 if test -n "$LIBASSUAN_CONFIG"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8875 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8884 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8885 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8886 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8887 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8890 min_libassuan_version="$tmp"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8894 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8896 if test "$LIBASSUAN_CONFIG" != "no"; then
8897 req_major=`echo $min_libassuan_version | \
8898 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8899 req_minor=`echo $min_libassuan_version | \
8900 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8901 req_micro=`echo $min_libassuan_version | \
8902 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8904 if test -z "$use_gpgrt_config"; then
8905 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8907 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8909 major=`echo $libassuan_config_version | \
8910 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8911 minor=`echo $libassuan_config_version | \
8912 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8913 micro=`echo $libassuan_config_version | \
8914 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8916 if test "$major" -gt "$req_major"; then
8919 if test "$major" -eq "$req_major"; then
8920 if test "$minor" -gt "$req_minor"; then
8923 if test "$minor" -eq "$req_minor"; then
8924 if test "$micro" -ge "$req_micro"; then
8933 if test $ok = yes; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8935 $as_echo "yes ($libassuan_config_version)" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8941 if test $ok = yes; then
8942 if test "$req_libassuan_api" -gt 0 ; then
8943 if test -z "$use_gpgrt_config"; then
8944 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8946 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8948 if test "$tmp" -gt 0 ; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8950 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8951 if test "$req_libassuan_api" -eq "$tmp" ; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8953 $as_echo "okay" >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8957 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8963 if test $ok = yes; then
8964 if test x"$host" != x ; then
8965 if test -z "$use_gpgrt_config"; then
8966 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8968 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8970 if test x"$libassuan_config_host" != xnone ; then
8971 if test x"$libassuan_config_host" != x"$host" ; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8974 *** The config script \"$LIBASSUAN_CONFIG\" was
8975 *** built for $libassuan_config_host and thus may not match the
8976 *** used host $host.
8977 *** You may want to use the configure option --with-libassuan-prefix
8978 *** to specify a matching config script.
8980 $as_echo "$as_me: WARNING:
8982 *** The config script \"$LIBASSUAN_CONFIG\" was
8983 *** built for $libassuan_config_host and thus may not match the
8984 *** used host $host.
8985 *** You may want to use the configure option --with-libassuan-prefix
8986 *** to specify a matching config script.
8993 if test $ok = yes; then
8994 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8995 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9005 if test "$have_libassuan" = "yes"; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9011 show_tor_support="only .onion"
9016 # libksba is our X.509 support library
9020 # Check whether --with-libksba-prefix was given.
9021 if test "${with_libksba_prefix+set}" = set; then :
9022 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9024 ksba_config_prefix=""
9029 # Check whether --with-ksba-prefix was given.
9030 if test "${with_ksba_prefix+set}" = set; then :
9031 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9033 ksba_config_prefix=""
9037 if test x$ksba_config_prefix != x ; then
9038 if test x${KSBA_CONFIG+set} != xset ; then
9039 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9044 if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9045 if $GPGRT_CONFIG ksba --exists; then
9046 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9048 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9049 use_gpgrt_config=yes
9052 if test -z "$use_gpgrt_config"; then
9053 # Extract the first word of "ksba-config", so it can be a program name with args.
9054 set dummy ksba-config; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9058 $as_echo_n "(cached) " >&6
9060 case $KSBA_CONFIG in
9062 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9084 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9085 if test -n "$KSBA_CONFIG"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9087 $as_echo "$KSBA_CONFIG" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9096 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9097 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9098 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9099 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9102 min_ksba_version="$tmp"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9106 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9108 if test "$KSBA_CONFIG" != "no" ; then
9109 req_major=`echo $min_ksba_version | \
9110 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9111 req_minor=`echo $min_ksba_version | \
9112 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9113 req_micro=`echo $min_ksba_version | \
9114 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9115 if test -z "$use_gpgrt_config"; then
9116 ksba_config_version=`$KSBA_CONFIG --version`
9118 ksba_config_version=`$KSBA_CONFIG --modversion`
9120 major=`echo $ksba_config_version | \
9121 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9122 minor=`echo $ksba_config_version | \
9123 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9124 micro=`echo $ksba_config_version | \
9125 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9126 if test "$major" -gt "$req_major"; then
9129 if test "$major" -eq "$req_major"; then
9130 if test "$minor" -gt "$req_minor"; then
9133 if test "$minor" -eq "$req_minor"; then
9134 if test "$micro" -ge "$req_micro"; then
9142 if test $ok = yes; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9144 $as_echo "yes ($ksba_config_version)" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9149 if test $ok = yes; then
9150 # Even if we have a recent libksba, we should check that the
9151 # API is compatible.
9152 if test "$req_ksba_api" -gt 0 ; then
9153 if test -z "$use_gpgrt_config"; then
9154 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9156 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9158 if test "$tmp" -gt 0 ; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9160 $as_echo_n "checking KSBA API version... " >&6; }
9161 if test "$req_ksba_api" -eq "$tmp" ; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9163 $as_echo "okay" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9167 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
9172 if test $ok = yes; then
9173 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9174 KSBA_LIBS=`$KSBA_CONFIG --libs`
9176 if test -z "$use_gpgrt_config"; then
9177 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9179 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9181 if test x"$libksba_config_host" != xnone ; then
9182 if test x"$libksba_config_host" != x"$host" ; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9185 *** The config script \"$KSBA_CONFIG\" was
9186 *** built for $libksba_config_host and thus may not match the
9187 *** used host $host.
9188 *** You may want to use the configure option --with-libksba-prefix
9189 *** to specify a matching config script.
9191 $as_echo "$as_me: WARNING:
9193 *** The config script \"$KSBA_CONFIG\" was
9194 *** built for $libksba_config_host and thus may not match the
9195 *** used host $host.
9196 *** You may want to use the configure option --with-libksba-prefix
9197 *** to specify a matching config script.
9212 # libusb allows us to use the integrated CCID smartcard reader driver.
9214 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9215 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9224 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9227 # FreeBSD has a native 1.0 compatible library by -lusb.
9237 if test x"$LIBUSB_NAME" != x ; then
9238 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9240 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9241 if eval \${$as_ac_Lib+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-l$LIBUSB_NAME $LIBS"
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9255 char libusb_init ();
9259 return libusb_init ();
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 eval "$as_ac_Lib=yes"
9267 eval "$as_ac_Lib=no"
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LIBS=$ac_check_lib_save_LIBS
9273 eval ac_res=\$$as_ac_Lib
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9275 $as_echo "$ac_res" >&6; }
9276 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9277 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9282 $as_echo_n "checking libusb include dir... " >&6; }
9283 usb_incdir_found="no"
9284 for _incdir in "" "/usr/include/libusb-1.0" \
9285 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9286 _libusb_save_cppflags=$CPPFLAGS
9287 if test -n "${_incdir}"; then
9288 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9294 if ac_fn_c_try_cpp "$LINENO"; then :
9295 usb_incdir=${_incdir}; usb_incdir_found="yes"
9297 rm -f conftest.err conftest.i conftest.$ac_ext
9298 CPPFLAGS=${_libusb_save_cppflags}
9299 if test "$usb_incdir_found" = "yes"; then
9303 if test "$usb_incdir_found" = "yes"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9305 $as_echo "${usb_incdir}" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9308 $as_echo "not found" >&6; }
9311 if test "$use_ccid_driver" != yes; then
9317 if test "$have_libusb" = yes; then
9319 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9322 if test x"$usb_incdir" = x; then
9325 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9332 # Check whether it is necessary to link against libdl.
9333 # (For example to load libpcsclite)
9335 gnupg_dlopen_save_libs="$LIBS"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9338 $as_echo_n "checking for library containing dlopen... " >&6; }
9339 if ${ac_cv_search_dlopen+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 ac_func_search_save_LIBS=$LIBS
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9346 /* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9361 for ac_lib in '' c dl; do
9362 if test -z "$ac_lib"; then
9363 ac_res="none required"
9366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 ac_cv_search_dlopen=$ac_res
9371 rm -f core conftest.err conftest.$ac_objext \
9373 if ${ac_cv_search_dlopen+:} false; then :
9377 if ${ac_cv_search_dlopen+:} false; then :
9380 ac_cv_search_dlopen=no
9383 LIBS=$ac_func_search_save_LIBS
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9386 $as_echo "$ac_cv_search_dlopen" >&6; }
9387 ac_res=$ac_cv_search_dlopen
9388 if test "$ac_res" != no; then :
9389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9395 LIBS="$gnupg_dlopen_save_libs"
9400 # Check whether --enable-sqlite was given.
9401 if test "${enable_sqlite+set}" = set; then :
9402 enableval=$enable_sqlite; try_sqlite=$enableval
9408 if test x"$use_tofu" = xyes ; then
9409 if test x"$try_sqlite" = xyes ; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9413 $as_echo_n "checking for SQLITE3... " >&6; }
9415 if test -n "$SQLITE3_CFLAGS"; then
9416 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9417 elif test -n "$PKG_CONFIG"; then
9418 if test -n "$PKG_CONFIG" && \
9419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9420 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423 test $ac_status = 0; }; then
9424 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9425 test "x$?" != "x0" && pkg_failed=yes
9432 if test -n "$SQLITE3_LIBS"; then
9433 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9434 elif test -n "$PKG_CONFIG"; then
9435 if test -n "$PKG_CONFIG" && \
9436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9437 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9440 test $ac_status = 0; }; then
9441 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9442 test "x$?" != "x0" && pkg_failed=yes
9452 if test $pkg_failed = yes; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9457 _pkg_short_errors_supported=yes
9459 _pkg_short_errors_supported=no
9461 if test $_pkg_short_errors_supported = yes; then
9462 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9464 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9466 # Put the nasty error message in config.log where it belongs
9467 echo "$SQLITE3_PKG_ERRORS" >&5
9470 elif test $pkg_failed = untried; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9475 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9476 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478 $as_echo "yes" >&6; }
9482 if test "$have_sqlite" = "yes"; then
9489 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9492 *** Building without SQLite support - TOFU and Keyboxd disabled
9495 $as_echo "$as_me: WARNING:
9497 *** Building without SQLite support - TOFU and Keyboxd disabled
9503 if test "$have_sqlite" = "yes"; then
9512 if test x"$use_tofu" = xyes ; then
9514 $as_echo "#define USE_TOFU 1" >>confdefs.h
9521 # Extract the first word of "encfs", so it can be a program name with args.
9522 set dummy encfs; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_path_ENCFS+:} false; then :
9526 $as_echo_n "(cached) " >&6
9530 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9548 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9552 ENCFS=$ac_cv_path_ENCFS
9553 if test -n "$ENCFS"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9555 $as_echo "$ENCFS" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 cat >>confdefs.h <<_ACEOF
9564 #define ENCFS "${ENCFS}"
9568 # Extract the first word of "fusermount", so it can be a program name with args.
9569 set dummy fusermount; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9573 $as_echo_n "(cached) " >&6
9577 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9599 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9600 if test -n "$FUSERMOUNT"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9602 $as_echo "$FUSERMOUNT" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9610 cat >>confdefs.h <<_ACEOF
9611 #define FUSERMOUNT "${FUSERMOUNT}"
9618 # Check whether the nPth library is available
9621 # Check whether --with-npth-prefix was given.
9622 if test "${with_npth_prefix+set}" = set; then :
9623 withval=$with_npth_prefix; npth_config_prefix="$withval"
9625 npth_config_prefix=""
9628 if test "x$npth_config_prefix" != x ; then
9629 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9633 if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9634 if $GPGRT_CONFIG npth --exists; then
9635 NPTH_CONFIG="$GPGRT_CONFIG npth"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9637 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9638 use_gpgrt_config=yes
9641 if test -z "$use_gpgrt_config"; then
9642 # Extract the first word of "npth-config", so it can be a program name with args.
9643 set dummy npth-config; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9647 $as_echo_n "(cached) " >&6
9649 case $NPTH_CONFIG in
9651 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9673 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9674 if test -n "$NPTH_CONFIG"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9676 $as_echo "$NPTH_CONFIG" >&6; }
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9685 if test "$NPTH_CONFIG" != "no" ; then
9686 if test -z "$use_gpgrt_config"; then
9687 npth_version=`$NPTH_CONFIG --version`
9689 npth_version=`$NPTH_CONFIG --modversion`
9692 npth_version_major=`echo $npth_version | \
9693 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9694 npth_version_minor=`echo $npth_version | \
9695 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9697 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9698 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9699 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9700 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9703 min_npth_version="$tmp"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9707 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9709 if test "$NPTH_CONFIG" != "no" ; then
9710 req_major=`echo $min_npth_version | \
9711 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9712 req_minor=`echo $min_npth_version | \
9713 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9714 if test "$npth_version_major" -gt "$req_major"; then
9717 if test "$npth_version_major" -eq "$req_major"; then
9718 if test "$npth_version_minor" -gt "$req_minor"; then
9721 if test "$npth_version_minor" -eq "$req_minor"; then
9728 if test $ok = yes; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9730 $as_echo "yes ($npth_version)" >&6; }
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9735 if test $ok = yes; then
9736 # If we have a recent NPTH, we should also check that the
9737 # API is compatible.
9738 if test "$req_npth_api" -gt 0 ; then
9739 if test -z "$use_gpgrt_config"; then
9740 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9742 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9744 if test "$tmp" -gt 0 ; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9746 $as_echo_n "checking NPTH API version... " >&6; }
9747 if test "$req_npth_api" -eq "$tmp" ; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9749 $as_echo "okay" >&6; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9753 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9758 if test $ok = yes; then
9759 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9760 NPTH_LIBS=`$NPTH_CONFIG --libs`
9762 if test -z "$use_gpgrt_config"; then
9763 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9765 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9767 if test x"$npth_config_host" != xnone ; then
9768 if test x"$npth_config_host" != x"$host" ; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9771 *** The config script \"$NPTH_CONFIG\" was
9772 *** built for $npth_config_host and thus may not match the
9773 *** used host $host.
9774 *** You may want to use the configure option --with-npth-prefix
9775 *** to specify a matching config script.
9777 $as_echo "$as_me: WARNING:
9779 *** The config script \"$NPTH_CONFIG\" was
9780 *** built for $npth_config_host and thus may not match the
9781 *** used host $host.
9782 *** You may want to use the configure option --with-npth-prefix
9783 *** to specify a matching config script.
9795 if test "$have_npth" = "yes"; then
9797 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9800 $as_echo "#define USE_NPTH 1" >>confdefs.h
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9805 *** To support concurrent access for example in gpg-agent and the SCdaemon
9806 *** we need the support of the New Portable Threads Library.
9808 $as_echo "$as_me: WARNING:
9810 *** To support concurrent access for example in gpg-agent and the SCdaemon
9811 *** we need the support of the New Portable Threads Library.
9815 # Enable debugging of nPth
9817 # Check whether --enable-npth-debug was given.
9818 if test "${enable_npth_debug+set}" = set; then :
9819 enableval=$enable_npth_debug; if test $enableval = yes ; then
9821 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9830 # NTBTLS is our TLS library. If it is not available we fall back to
9833 # Check whether --enable-ntbtls was given.
9834 if test "${enable_ntbtls+set}" = set; then :
9835 enableval=$enable_ntbtls; try_ntbtls=$enableval
9840 if test x"$try_ntbtls" = xyes ; then
9843 # Check whether --with-ntbtls-prefix was given.
9844 if test "${with_ntbtls_prefix+set}" = set; then :
9845 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9847 ntbtls_config_prefix=""
9850 if test x"${NTBTLS_CONFIG}" = x ; then
9851 if test x"${ntbtls_config_prefix}" != x ; then
9852 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9857 if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9858 if $GPGRT_CONFIG ntbtls --exists; then
9859 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9861 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9862 use_gpgrt_config=yes
9865 if test -z "$use_gpgrt_config"; then
9866 if test x"${NTBTLS_CONFIG}" = x ; then
9867 case "${SYSROOT}" in
9869 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9870 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9877 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9881 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9882 set dummy ntbtls-config; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9886 $as_echo_n "(cached) " >&6
9888 case $NTBTLS_CONFIG in
9890 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9912 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9913 if test -n "$NTBTLS_CONFIG"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9915 $as_echo "$NTBTLS_CONFIG" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9924 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9925 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9926 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9927 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9930 min_ntbtls_version="$tmp"
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9934 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9936 if test "$NTBTLS_CONFIG" != "no" ; then
9937 req_major=`echo $min_ntbtls_version | \
9938 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9939 req_minor=`echo $min_ntbtls_version | \
9940 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9941 req_micro=`echo $min_ntbtls_version | \
9942 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9943 if test -z "$use_gpgrt_config"; then
9944 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9946 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9948 major=`echo $ntbtls_config_version | \
9949 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9950 minor=`echo $ntbtls_config_version | \
9951 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9952 micro=`echo $ntbtls_config_version | \
9953 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9954 if test "$major" -gt "$req_major"; then
9957 if test "$major" -eq "$req_major"; then
9958 if test "$minor" -gt "$req_minor"; then
9961 if test "$minor" -eq "$req_minor"; then
9962 if test "$micro" -ge "$req_micro"; then
9970 if test $ok = yes; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9972 $as_echo "yes ($ntbtls_config_version)" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9977 if test $ok = yes; then
9978 # If we have a recent ntbtls, we should also check that the
9980 if test "$req_ntbtls_api" -gt 0 ; then
9981 if test -z "$use_gpgrt_config"; then
9982 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9984 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9986 if test "$tmp" -gt 0 ; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9988 $as_echo_n "checking NTBTLS API version... " >&6; }
9989 if test "$req_ntbtls_api" -eq "$tmp" ; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9991 $as_echo "okay" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9995 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
10000 if test $ok = yes; then
10001 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10002 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10004 if test -z "$use_gpgrt_config"; then
10005 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10007 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10009 if test x"$ntbtls_config_host" != xnone ; then
10010 if test x"$ntbtls_config_host" != x"$host" ; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10013 *** The config script \"$NTBTLS_CONFIG\" was
10014 *** built for $ntbtls_config_host and thus may not match the
10015 *** used host $host.
10016 *** You may want to use the configure option --with-ntbtls-prefix
10017 *** to specify a matching config script or use \$SYSROOT.
10019 $as_echo "$as_me: WARNING:
10021 *** The config script \"$NTBTLS_CONFIG\" was
10022 *** built for $ntbtls_config_host and thus may not match the
10023 *** used host $host.
10024 *** You may want to use the configure option --with-ntbtls-prefix
10025 *** to specify a matching config script or use \$SYSROOT.
10027 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10039 if test "$have_ntbtls" = yes ; then
10040 use_tls_library=ntbtls
10042 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10045 # Check whether --enable-gnutls was given.
10046 if test "${enable_gnutls+set}" = set; then :
10047 enableval=$enable_gnutls; try_gnutls=$enableval
10052 if test x"$try_gnutls" = xyes ; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10056 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10058 if test -n "$LIBGNUTLS_CFLAGS"; then
10059 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10060 elif test -n "$PKG_CONFIG"; then
10061 if test -n "$PKG_CONFIG" && \
10062 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10063 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10066 test $ac_status = 0; }; then
10067 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10068 test "x$?" != "x0" && pkg_failed=yes
10075 if test -n "$LIBGNUTLS_LIBS"; then
10076 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10077 elif test -n "$PKG_CONFIG"; then
10078 if test -n "$PKG_CONFIG" && \
10079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10080 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; }; then
10084 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10085 test "x$?" != "x0" && pkg_failed=yes
10095 if test $pkg_failed = yes; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10100 _pkg_short_errors_supported=yes
10102 _pkg_short_errors_supported=no
10104 if test $_pkg_short_errors_supported = yes; then
10105 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10107 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10109 # Put the nasty error message in config.log where it belongs
10110 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10113 elif test $pkg_failed = untried; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10118 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10119 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10125 if test "$have_gnutls" = "yes"; then
10128 use_tls_library=gnutls
10130 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10133 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10137 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10140 $as_echo "$as_me: WARNING:
10142 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10149 # Allow to set a fixed trust store file for system provided certificates.
10152 # Check whether --with-default-trust-store-file was given.
10153 if test "${with_default_trust_store_file+set}" = set; then :
10154 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10156 default_trust_store_file=""
10159 if test x"$default_trust_store_file" = xno;then
10160 default_trust_store_file=""
10162 if test x"$default_trust_store_file" != x ; then
10164 cat >>confdefs.h <<_ACEOF
10165 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10172 $as_echo "$as_me: checking for networking options" >&6;}
10175 # Must check for network library requirements before doing link tests
10176 # for ldap, for example. If ldap libs are static (or dynamic and without
10177 # ELF runtime link paths), then link will fail and LDAP support won't
10180 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10181 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10185 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10186 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10187 $as_echo_n "(cached) " >&6
10189 ac_check_lib_save_LIBS=$LIBS
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10200 char gethostbyname ();
10204 return gethostbyname ();
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 ac_cv_lib_nsl_gethostbyname=yes
10212 ac_cv_lib_nsl_gethostbyname=no
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10219 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10220 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10221 NETLIBS="-lnsl $NETLIBS"
10226 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10227 if test "x$ac_cv_func_setsockopt" = xyes; then :
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10231 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10232 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10233 $as_echo_n "(cached) " >&6
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-lsocket $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10246 char setsockopt ();
10250 return setsockopt ();
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 ac_cv_lib_socket_setsockopt=yes
10258 ac_cv_lib_socket_setsockopt=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10265 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10266 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10267 NETLIBS="-lsocket $NETLIBS"
10275 # Check standard resolver functions.
10277 if test "$build_dirmngr" = "yes"; then
10278 _dns_save_libs=$LIBS
10281 # Find the system resolver which can always be enabled with
10282 # the dirmngr option --standard-resolver.
10284 # the double underscore thing is a glibc-ism?
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10286 $as_echo_n "checking for library containing res_query... " >&6; }
10287 if ${ac_cv_search_res_query+:} false; then :
10288 $as_echo_n "(cached) " >&6
10290 ac_func_search_save_LIBS=$LIBS
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10294 /* Override any GCC internal prototype to avoid an error.
10295 Use char because int might match the return type of a GCC
10296 builtin and then its argument prototype would still apply. */
10304 return res_query ();
10309 for ac_lib in '' resolv bind; do
10310 if test -z "$ac_lib"; then
10311 ac_res="none required"
10314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10316 if ac_fn_c_try_link "$LINENO"; then :
10317 ac_cv_search_res_query=$ac_res
10319 rm -f core conftest.err conftest.$ac_objext \
10321 if ${ac_cv_search_res_query+:} false; then :
10325 if ${ac_cv_search_res_query+:} false; then :
10328 ac_cv_search_res_query=no
10330 rm conftest.$ac_ext
10331 LIBS=$ac_func_search_save_LIBS
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10334 $as_echo "$ac_cv_search_res_query" >&6; }
10335 ac_res=$ac_cv_search_res_query
10336 if test "$ac_res" != no; then :
10337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10341 $as_echo_n "checking for library containing __res_query... " >&6; }
10342 if ${ac_cv_search___res_query+:} false; then :
10343 $as_echo_n "(cached) " >&6
10345 ac_func_search_save_LIBS=$LIBS
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10355 char __res_query ();
10359 return __res_query ();
10364 for ac_lib in '' resolv bind; do
10365 if test -z "$ac_lib"; then
10366 ac_res="none required"
10369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10371 if ac_fn_c_try_link "$LINENO"; then :
10372 ac_cv_search___res_query=$ac_res
10374 rm -f core conftest.err conftest.$ac_objext \
10376 if ${ac_cv_search___res_query+:} false; then :
10380 if ${ac_cv_search___res_query+:} false; then :
10383 ac_cv_search___res_query=no
10385 rm conftest.$ac_ext
10386 LIBS=$ac_func_search_save_LIBS
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10389 $as_echo "$ac_cv_search___res_query" >&6; }
10390 ac_res=$ac_cv_search___res_query
10391 if test "$ac_res" != no; then :
10392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10401 $as_echo_n "checking for library containing dn_expand... " >&6; }
10402 if ${ac_cv_search_dn_expand+:} false; then :
10403 $as_echo_n "(cached) " >&6
10405 ac_func_search_save_LIBS=$LIBS
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10419 return dn_expand ();
10424 for ac_lib in '' resolv bind; do
10425 if test -z "$ac_lib"; then
10426 ac_res="none required"
10429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10431 if ac_fn_c_try_link "$LINENO"; then :
10432 ac_cv_search_dn_expand=$ac_res
10434 rm -f core conftest.err conftest.$ac_objext \
10436 if ${ac_cv_search_dn_expand+:} false; then :
10440 if ${ac_cv_search_dn_expand+:} false; then :
10443 ac_cv_search_dn_expand=no
10445 rm conftest.$ac_ext
10446 LIBS=$ac_func_search_save_LIBS
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10449 $as_echo "$ac_cv_search_dn_expand" >&6; }
10450 ac_res=$ac_cv_search_dn_expand
10451 if test "$ac_res" != no; then :
10452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10456 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10457 if ${ac_cv_search___dn_expand+:} false; then :
10458 $as_echo_n "(cached) " >&6
10460 ac_func_search_save_LIBS=$LIBS
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 /* Override any GCC internal prototype to avoid an error.
10465 Use char because int might match the return type of a GCC
10466 builtin and then its argument prototype would still apply. */
10470 char __dn_expand ();
10474 return __dn_expand ();
10479 for ac_lib in '' resolv bind; do
10480 if test -z "$ac_lib"; then
10481 ac_res="none required"
10484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10486 if ac_fn_c_try_link "$LINENO"; then :
10487 ac_cv_search___dn_expand=$ac_res
10489 rm -f core conftest.err conftest.$ac_objext \
10491 if ${ac_cv_search___dn_expand+:} false; then :
10495 if ${ac_cv_search___dn_expand+:} false; then :
10498 ac_cv_search___dn_expand=no
10500 rm conftest.$ac_ext
10501 LIBS=$ac_func_search_save_LIBS
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10504 $as_echo "$ac_cv_search___dn_expand" >&6; }
10505 ac_res=$ac_cv_search___dn_expand
10506 if test "$ac_res" != no; then :
10507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10516 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10517 # and for some reason fools us into believing we don't need
10518 # -lresolv even if we do. Since the test program checking for the
10519 # symbol does not include <resolv.h>, we need to check for the
10520 # renamed symbol explicitly.
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10522 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10523 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10524 $as_echo_n "(cached) " >&6
10526 ac_func_search_save_LIBS=$LIBS
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10536 char res_9_dn_skipname ();
10540 return res_9_dn_skipname ();
10545 for ac_lib in '' resolv bind; do
10546 if test -z "$ac_lib"; then
10547 ac_res="none required"
10550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10552 if ac_fn_c_try_link "$LINENO"; then :
10553 ac_cv_search_res_9_dn_skipname=$ac_res
10555 rm -f core conftest.err conftest.$ac_objext \
10557 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10561 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10564 ac_cv_search_res_9_dn_skipname=no
10566 rm conftest.$ac_ext
10567 LIBS=$ac_func_search_save_LIBS
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10570 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10571 ac_res=$ac_cv_search_res_9_dn_skipname
10572 if test "$ac_res" != no; then :
10573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10577 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10578 if ${ac_cv_search_dn_skipname+:} false; then :
10579 $as_echo_n "(cached) " >&6
10581 ac_func_search_save_LIBS=$LIBS
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10591 char dn_skipname ();
10595 return dn_skipname ();
10600 for ac_lib in '' resolv bind; do
10601 if test -z "$ac_lib"; then
10602 ac_res="none required"
10605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10607 if ac_fn_c_try_link "$LINENO"; then :
10608 ac_cv_search_dn_skipname=$ac_res
10610 rm -f core conftest.err conftest.$ac_objext \
10612 if ${ac_cv_search_dn_skipname+:} false; then :
10616 if ${ac_cv_search_dn_skipname+:} false; then :
10619 ac_cv_search_dn_skipname=no
10621 rm conftest.$ac_ext
10622 LIBS=$ac_func_search_save_LIBS
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10625 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10626 ac_res=$ac_cv_search_dn_skipname
10627 if test "$ac_res" != no; then :
10628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10632 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10633 if ${ac_cv_search___dn_skipname+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 ac_func_search_save_LIBS=$LIBS
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10646 char __dn_skipname ();
10650 return __dn_skipname ();
10655 for ac_lib in '' resolv bind; do
10656 if test -z "$ac_lib"; then
10657 ac_res="none required"
10660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10662 if ac_fn_c_try_link "$LINENO"; then :
10663 ac_cv_search___dn_skipname=$ac_res
10665 rm -f core conftest.err conftest.$ac_objext \
10667 if ${ac_cv_search___dn_skipname+:} false; then :
10671 if ${ac_cv_search___dn_skipname+:} false; then :
10674 ac_cv_search___dn_skipname=no
10676 rm conftest.$ac_ext
10677 LIBS=$ac_func_search_save_LIBS
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10680 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10681 ac_res=$ac_cv_search___dn_skipname
10682 if test "$ac_res" != no; then :
10683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10694 if test x"$have_resolver" != xno ; then
10696 # Make sure that the BIND 4 resolver interface is workable before
10697 # enabling any code that calls it. At some point I'll rewrite the
10698 # code to use the BIND 8 resolver API.
10699 # We might also want to use libdns instead.
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10702 $as_echo_n "checking whether the resolver is usable... " >&6; }
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <sys/types.h>
10706 #include <netinet/in.h>
10707 #include <arpa/nameser.h>
10708 #include <resolv.h>
10712 unsigned char answer[PACKETSZ];
10713 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10715 dn_expand(0,0,0,0,0);
10721 if ac_fn_c_try_link "$LINENO"; then :
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10729 $as_echo "$have_resolver" >&6; }
10731 # This is Apple-specific and somewhat bizarre as they changed the
10732 # define in bind 8 for some reason.
10734 if test x"$have_resolver" != xyes ; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10736 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #define BIND_8_COMPAT
10740 #include <sys/types.h>
10741 #include <netinet/in.h>
10742 #include <arpa/nameser.h>
10743 #include <resolv.h>
10747 unsigned char answer[PACKETSZ];
10748 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10749 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10755 if ac_fn_c_try_link "$LINENO"; then :
10756 have_resolver=yes ; need_compat=yes
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10761 $as_echo "$have_resolver" >&6; }
10765 if test x"$have_resolver" = xyes ; then
10767 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10769 DNSLIBS="$DNSLIBS $LIBS"
10770 if test x"$need_compat" = xyes ; then
10772 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10775 if test "$use_libdns" = yes; then
10776 show_tor_support=yes
10778 elif test "$use_libdns" = yes; then
10779 show_tor_support=yes
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10783 *** The system's DNS resolver is not usable.
10784 *** Dirmngr functionality is limited.
10786 $as_echo "$as_me: WARNING:
10788 *** The system's DNS resolver is not usable.
10789 *** Dirmngr functionality is limited.
10791 show_tor_support="${show_tor_support} (no system resolver)"
10794 if test "$have_w32_system" = yes; then
10795 if test "$use_libdns" = yes; then
10796 DNSLIBS="$DNSLIBS -liphlpapi"
10800 LIBS=$_dns_save_libs
10809 # Note that running the check changes the variable
10810 # gnupg_have_ldap from "n/a" to "no" or "yes".
10812 # Check whether --enable-ldap was given.
10813 if test "${enable_ldap+set}" = set; then :
10814 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10818 if test "$gnupg_have_ldap" != "no" ; then
10819 if test "$build_dirmngr" = "yes" ; then
10821 # Try and link a LDAP test program to weed out unusable LDAP
10822 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10823 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10824 # If all else fails, the user can play guess-the-dependency by using
10825 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10828 # Check whether --with-ldap was given.
10829 if test "${with_ldap+set}" = set; then :
10830 withval=$with_ldap; _ldap_with=$withval
10834 if test x$_ldap_with != xno ; then
10836 if test -d "$withval" ; then
10837 LDAP_CPPFLAGS="-I$withval/include"
10838 LDAP_LDFLAGS="-L$withval/lib"
10841 _ldap_save_cppflags=$CPPFLAGS
10842 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10843 _ldap_save_ldflags=$LDFLAGS
10844 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10846 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10847 _ldap_save_libs=$LIBS
10848 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10851 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10856 #include <winsock2.h>
10857 #include <winldap.h>
10865 ldap_open("foobar",1234);
10870 if ac_fn_c_try_link "$LINENO"; then :
10871 gnupg_cv_func_ldap_init=yes
10873 gnupg_cv_func_ldap_init=no
10875 rm -f core conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10878 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10880 if test $gnupg_cv_func_ldap_init = no; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10882 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10890 ldap_open("foobar",1234);
10895 if ac_fn_c_try_link "$LINENO"; then :
10896 gnupg_cv_func_ldaplber_init=yes
10898 gnupg_cv_func_ldaplber_init=no
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10903 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10906 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10908 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10912 if test "$gnupg_cv_func_ldap_init" = yes || \
10913 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10914 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10915 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10916 gnupg_have_ldap=yes
10918 for ac_func in ldap_get_option ldap_set_option
10920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10923 cat >>confdefs.h <<_ACEOF
10924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10930 # The extra test for ldap_start_tls_sA is for W32 because
10931 # that is the actual function in the library.
10932 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 if test "$ac_cv_func_ldap_get_option" != yes ; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10947 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10954 LDAP *ldap; ldap->ld_errno;
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 gnupg_cv_func_ldap_ld_errno=yes
10962 gnupg_cv_func_ldap_ld_errno=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10967 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10969 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10971 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10977 LIBS=$_ldap_save_libs
10979 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10986 CPPFLAGS=$_ldap_save_cppflags
10987 LDFLAGS=$_ldap_save_ldflags
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10991 $as_echo_n "checking for ber_free in -llber... " >&6; }
10992 if ${ac_cv_lib_lber_ber_free+:} false; then :
10993 $as_echo_n "(cached) " >&6
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-llber $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11010 return ber_free ();
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_lber_ber_free=yes
11018 ac_cv_lib_lber_ber_free=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11025 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11026 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11027 LBER_LIBS="$LBER_LIBS -llber"
11029 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11038 if test "$gnupg_have_ldap" = "no"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11041 *** Building without LDAP support.
11042 *** No CRL access or X.509 certificate search available.
11044 $as_echo "$as_me: WARNING:
11046 *** Building without LDAP support.
11047 *** No CRL access or X.509 certificate search available.
11051 if test "$gnupg_have_ldap" = yes; then
11059 if test "$gnupg_have_ldap" = yes ; then
11061 $as_echo "#define USE_LDAP 1" >>confdefs.h
11068 # Check for sendmail
11070 # This isn't necessarily sendmail itself, but anything that gives a
11071 # sendmail-ish interface to the outside world. That includes Exim,
11072 # Postfix, etc. Basically, anything that can handle "sendmail -t".
11074 # Check whether --with-mailprog was given.
11075 if test "${with_mailprog+set}" = set; then :
11076 withval=$with_mailprog;
11081 if test x"$with_mailprog" = xyes ; then
11082 # Extract the first word of "sendmail", so it can be a program name with args.
11083 set dummy sendmail; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_SENDMAIL+:} false; then :
11087 $as_echo_n "(cached) " >&6
11091 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11096 for as_dir in $as_dummy
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 SENDMAIL=$ac_cv_path_SENDMAIL
11114 if test -n "$SENDMAIL"; then
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11116 $as_echo "$SENDMAIL" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11123 elif test x"$with_mailprog" != xno ; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11125 $as_echo_n "checking for a mail transport program... " >&6; }
11126 SENDMAIL=$with_mailprog
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11129 $as_echo "$with_mailprog" >&6; }
11132 cat >>confdefs.h <<_ACEOF
11133 #define NAME_OF_SENDMAIL "$SENDMAIL"
11139 # Construct a printable name of the OS
11143 PRINTABLE_OS_NAME="W32CE"
11146 PRINTABLE_OS_NAME="MingW32"
11149 PRINTABLE_OS_NAME="Cygwin"
11151 i?86-emx-os2 | i?86-*-os2*emx )
11152 PRINTABLE_OS_NAME="OS/2"
11154 i?86-*-msdosdjgpp*)
11155 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11159 PRINTABLE_OS_NAME="GNU/Linux"
11162 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11166 cat >>confdefs.h <<_ACEOF
11167 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11173 # Checking for iconv
11175 if test "$require_iconv" = yes; then
11177 if test "X$prefix" = "XNONE"; then
11178 acl_final_prefix="$ac_default_prefix"
11180 acl_final_prefix="$prefix"
11182 if test "X$exec_prefix" = "XNONE"; then
11183 acl_final_exec_prefix='${prefix}'
11185 acl_final_exec_prefix="$exec_prefix"
11187 acl_save_prefix="$prefix"
11188 prefix="$acl_final_prefix"
11189 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11190 prefix="$acl_save_prefix"
11193 # Check whether --with-gnu-ld was given.
11194 if test "${with_gnu_ld+set}" = set; then :
11195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11200 # Prepare PATH_SEPARATOR.
11201 # The user is always right.
11202 if test "${PATH_SEPARATOR+set}" != set; then
11203 echo "#! /bin/sh" >conf$$.sh
11204 echo "exit 0" >>conf$$.sh
11206 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11214 if test "$GCC" = yes; then
11215 # Check if gcc -print-prog-name=ld gives a path.
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11217 $as_echo_n "checking for ld used by GCC... " >&6; }
11220 # gcc leaves a trailing carriage return which upsets mingw
11221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11226 # Accept absolute paths.
11227 [\\/]* | [A-Za-z]:[\\/]*)
11228 re_direlt='/[^/][^/]*/\.\./'
11229 # Canonicalize the path of ld
11230 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11231 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11232 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11234 test -z "$LD" && LD="$ac_prog"
11237 # If it fails, then pretend we aren't using GCC.
11241 # If it is relative, then search for the first ld in PATH.
11242 with_gnu_ld=unknown
11245 elif test "$with_gnu_ld" = yes; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11247 $as_echo_n "checking for GNU ld... " >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11250 $as_echo_n "checking for non-GNU ld... " >&6; }
11252 if ${acl_cv_path_LD+:} false; then :
11253 $as_echo_n "(cached) " >&6
11255 if test -z "$LD"; then
11256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11257 for ac_dir in $PATH; do
11258 test -z "$ac_dir" && ac_dir=.
11259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11260 acl_cv_path_LD="$ac_dir/$ac_prog"
11261 # Check to see if the program is GNU ld. I'd rather use --version,
11262 # but apparently some GNU ld's only accept -v.
11263 # Break only if it was the GNU/non-GNU ld that we prefer.
11264 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11265 *GNU* | *'with BFD'*)
11266 test "$with_gnu_ld" != no && break ;;
11268 test "$with_gnu_ld" != yes && break ;;
11274 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11278 LD="$acl_cv_path_LD"
11279 if test -n "$LD"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11281 $as_echo "$LD" >&6; }
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11289 if ${acl_cv_prog_gnu_ld+:} false; then :
11290 $as_echo_n "(cached) " >&6
11292 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11293 case `$LD -v 2>&1 </dev/null` in
11294 *GNU* | *'with BFD'*)
11295 acl_cv_prog_gnu_ld=yes ;;
11297 acl_cv_prog_gnu_ld=no ;;
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11301 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11302 with_gnu_ld=$acl_cv_prog_gnu_ld
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11308 $as_echo_n "checking for shared library run path origin... " >&6; }
11309 if ${acl_cv_rpath+:} false; then :
11310 $as_echo_n "(cached) " >&6
11313 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11314 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11316 rm -f ./conftest.sh
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11321 $as_echo "$acl_cv_rpath" >&6; }
11323 acl_libext="$acl_cv_libext"
11324 acl_shlibext="$acl_cv_shlibext"
11325 acl_libname_spec="$acl_cv_libname_spec"
11326 acl_library_names_spec="$acl_cv_library_names_spec"
11327 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11328 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11329 acl_hardcode_direct="$acl_cv_hardcode_direct"
11330 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11331 # Check whether --enable-rpath was given.
11332 if test "${enable_rpath+set}" = set; then :
11333 enableval=$enable_rpath; :
11341 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11342 if test -n "$searchpath"; then
11343 acl_save_IFS="${IFS= }"; IFS=":"
11344 for searchdir in $searchpath; do
11345 if test -d "$searchdir"; then
11346 case "$searchdir" in
11347 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11348 *) searchdir=`cd "$searchdir" && pwd`
11349 case "$searchdir" in
11350 */lib64 ) acl_libdirstem=lib64 ;;
11355 IFS="$acl_save_IFS"
11368 acl_save_prefix="$prefix"
11369 prefix="$acl_final_prefix"
11370 acl_save_exec_prefix="$exec_prefix"
11371 exec_prefix="$acl_final_exec_prefix"
11373 eval additional_includedir=\"$includedir\"
11374 eval additional_libdir=\"$libdir\"
11376 exec_prefix="$acl_save_exec_prefix"
11377 prefix="$acl_save_prefix"
11380 # Check whether --with-libiconv-prefix was given.
11381 if test "${with_libiconv_prefix+set}" = set; then :
11382 withval=$with_libiconv_prefix;
11383 if test "X$withval" = "Xno"; then
11386 if test "X$withval" = "X"; then
11388 acl_save_prefix="$prefix"
11389 prefix="$acl_final_prefix"
11390 acl_save_exec_prefix="$exec_prefix"
11391 exec_prefix="$acl_final_exec_prefix"
11393 eval additional_includedir=\"$includedir\"
11394 eval additional_libdir=\"$libdir\"
11396 exec_prefix="$acl_save_exec_prefix"
11397 prefix="$acl_save_prefix"
11400 additional_includedir="$withval/include"
11401 additional_libdir="$withval/$acl_libdirstem"
11413 names_already_handled=
11414 names_next_round='iconv '
11415 while test -n "$names_next_round"; do
11416 names_this_round="$names_next_round"
11418 for name in $names_this_round; do
11420 for n in $names_already_handled; do
11421 if test "$n" = "$name"; then
11422 already_handled=yes
11426 if test -z "$already_handled"; then
11427 names_already_handled="$names_already_handled $name"
11428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11429 eval value=\"\$HAVE_LIB$uppername\"
11430 if test -n "$value"; then
11431 if test "$value" = yes; then
11432 eval value=\"\$LIB$uppername\"
11433 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11434 eval value=\"\$LTLIB$uppername\"
11435 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11444 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11445 if test -n "$acl_shlibext"; then
11446 shrext=".$acl_shlibext" # typically: shrext=.so
11450 if test $use_additional = yes; then
11451 dir="$additional_libdir"
11452 if test -n "$acl_shlibext"; then
11453 if test -f "$dir/$libname$shrext"; then
11455 found_so="$dir/$libname$shrext"
11457 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11458 ver=`(cd "$dir" && \
11459 for f in "$libname$shrext".*; do echo "$f"; done \
11460 | sed -e "s,^$libname$shrext\\\\.,," \
11461 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11462 | sed 1q ) 2>/dev/null`
11463 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11465 found_so="$dir/$libname$shrext.$ver"
11468 eval library_names=\"$acl_library_names_spec\"
11469 for f in $library_names; do
11470 if test -f "$dir/$f"; then
11479 if test "X$found_dir" = "X"; then
11480 if test -f "$dir/$libname.$acl_libext"; then
11482 found_a="$dir/$libname.$acl_libext"
11485 if test "X$found_dir" != "X"; then
11486 if test -f "$dir/$libname.la"; then
11487 found_la="$dir/$libname.la"
11491 if test "X$found_dir" = "X"; then
11492 for x in $LDFLAGS $LTLIBICONV; do
11494 acl_save_prefix="$prefix"
11495 prefix="$acl_final_prefix"
11496 acl_save_exec_prefix="$exec_prefix"
11497 exec_prefix="$acl_final_exec_prefix"
11499 exec_prefix="$acl_save_exec_prefix"
11500 prefix="$acl_save_prefix"
11504 dir=`echo "X$x" | sed -e 's/^X-L//'`
11505 if test -n "$acl_shlibext"; then
11506 if test -f "$dir/$libname$shrext"; then
11508 found_so="$dir/$libname$shrext"
11510 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11511 ver=`(cd "$dir" && \
11512 for f in "$libname$shrext".*; do echo "$f"; done \
11513 | sed -e "s,^$libname$shrext\\\\.,," \
11514 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11515 | sed 1q ) 2>/dev/null`
11516 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11518 found_so="$dir/$libname$shrext.$ver"
11521 eval library_names=\"$acl_library_names_spec\"
11522 for f in $library_names; do
11523 if test -f "$dir/$f"; then
11532 if test "X$found_dir" = "X"; then
11533 if test -f "$dir/$libname.$acl_libext"; then
11535 found_a="$dir/$libname.$acl_libext"
11538 if test "X$found_dir" != "X"; then
11539 if test -f "$dir/$libname.la"; then
11540 found_la="$dir/$libname.la"
11545 if test "X$found_dir" != "X"; then
11550 if test "X$found_dir" != "X"; then
11551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11552 if test "X$found_so" != "X"; then
11553 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11554 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11557 for x in $ltrpathdirs; do
11558 if test "X$x" = "X$found_dir"; then
11563 if test -z "$haveit"; then
11564 ltrpathdirs="$ltrpathdirs $found_dir"
11566 if test "$acl_hardcode_direct" = yes; then
11567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11569 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11572 for x in $rpathdirs; do
11573 if test "X$x" = "X$found_dir"; then
11578 if test -z "$haveit"; then
11579 rpathdirs="$rpathdirs $found_dir"
11583 for x in $LDFLAGS $LIBICONV; do
11585 acl_save_prefix="$prefix"
11586 prefix="$acl_final_prefix"
11587 acl_save_exec_prefix="$exec_prefix"
11588 exec_prefix="$acl_final_exec_prefix"
11590 exec_prefix="$acl_save_exec_prefix"
11591 prefix="$acl_save_prefix"
11593 if test "X$x" = "X-L$found_dir"; then
11598 if test -z "$haveit"; then
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11601 if test "$acl_hardcode_minus_L" != no; then
11602 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11604 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11610 if test "X$found_a" != "X"; then
11611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11616 additional_includedir=
11617 case "$found_dir" in
11618 */$acl_libdirstem | */$acl_libdirstem/)
11619 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11620 LIBICONV_PREFIX="$basedir"
11621 additional_includedir="$basedir/include"
11624 if test "X$additional_includedir" != "X"; then
11625 if test "X$additional_includedir" != "X/usr/include"; then
11627 if test "X$additional_includedir" = "X/usr/local/include"; then
11628 if test -n "$GCC"; then
11630 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11634 if test -z "$haveit"; then
11635 for x in $CPPFLAGS $INCICONV; do
11637 acl_save_prefix="$prefix"
11638 prefix="$acl_final_prefix"
11639 acl_save_exec_prefix="$exec_prefix"
11640 exec_prefix="$acl_final_exec_prefix"
11642 exec_prefix="$acl_save_exec_prefix"
11643 prefix="$acl_save_prefix"
11645 if test "X$x" = "X-I$additional_includedir"; then
11650 if test -z "$haveit"; then
11651 if test -d "$additional_includedir"; then
11652 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11658 if test -n "$found_la"; then
11659 save_libdir="$libdir"
11660 case "$found_la" in
11661 */* | *\\*) . "$found_la" ;;
11662 *) . "./$found_la" ;;
11664 libdir="$save_libdir"
11665 for dep in $dependency_libs; do
11668 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11669 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11671 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11672 if test -n "$GCC"; then
11674 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11678 if test -z "$haveit"; then
11680 for x in $LDFLAGS $LIBICONV; do
11682 acl_save_prefix="$prefix"
11683 prefix="$acl_final_prefix"
11684 acl_save_exec_prefix="$exec_prefix"
11685 exec_prefix="$acl_final_exec_prefix"
11687 exec_prefix="$acl_save_exec_prefix"
11688 prefix="$acl_save_prefix"
11690 if test "X$x" = "X-L$additional_libdir"; then
11695 if test -z "$haveit"; then
11696 if test -d "$additional_libdir"; then
11697 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11701 for x in $LDFLAGS $LTLIBICONV; do
11703 acl_save_prefix="$prefix"
11704 prefix="$acl_final_prefix"
11705 acl_save_exec_prefix="$exec_prefix"
11706 exec_prefix="$acl_final_exec_prefix"
11708 exec_prefix="$acl_save_exec_prefix"
11709 prefix="$acl_save_prefix"
11711 if test "X$x" = "X-L$additional_libdir"; then
11716 if test -z "$haveit"; then
11717 if test -d "$additional_libdir"; then
11718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11725 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11726 if test "$enable_rpath" != no; then
11728 for x in $rpathdirs; do
11729 if test "X$x" = "X$dir"; then
11734 if test -z "$haveit"; then
11735 rpathdirs="$rpathdirs $dir"
11738 for x in $ltrpathdirs; do
11739 if test "X$x" = "X$dir"; then
11744 if test -z "$haveit"; then
11745 ltrpathdirs="$ltrpathdirs $dir"
11750 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11753 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11756 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11757 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11763 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11770 if test "X$rpathdirs" != "X"; then
11771 if test -n "$acl_hardcode_libdir_separator"; then
11773 for found_dir in $rpathdirs; do
11774 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11776 acl_save_libdir="$libdir"
11778 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11779 libdir="$acl_save_libdir"
11780 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11782 for found_dir in $rpathdirs; do
11783 acl_save_libdir="$libdir"
11784 libdir="$found_dir"
11785 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11786 libdir="$acl_save_libdir"
11787 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11791 if test "X$ltrpathdirs" != "X"; then
11792 for found_dir in $ltrpathdirs; do
11793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11803 am_save_CPPFLAGS="$CPPFLAGS"
11805 for element in $INCICONV; do
11807 for x in $CPPFLAGS; do
11809 acl_save_prefix="$prefix"
11810 prefix="$acl_final_prefix"
11811 acl_save_exec_prefix="$exec_prefix"
11812 exec_prefix="$acl_final_exec_prefix"
11814 exec_prefix="$acl_save_exec_prefix"
11815 prefix="$acl_save_prefix"
11817 if test "X$x" = "X$element"; then
11822 if test -z "$haveit"; then
11823 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11829 $as_echo_n "checking for iconv... " >&6; }
11830 if ${am_cv_func_iconv+:} false; then :
11831 $as_echo_n "(cached) " >&6
11834 am_cv_func_iconv="no, consider installing GNU libiconv"
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11839 #include <stdlib.h>
11845 iconv_t cd = iconv_open("","");
11846 iconv(cd,NULL,NULL,NULL,NULL);
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 am_cv_func_iconv=yes
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11857 if test "$am_cv_func_iconv" != yes; then
11858 am_save_LIBS="$LIBS"
11859 LIBS="$LIBS $LIBICONV"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11863 #include <stdlib.h>
11869 iconv_t cd = iconv_open("","");
11870 iconv(cd,NULL,NULL,NULL,NULL);
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 am_cv_lib_iconv=yes
11878 am_cv_func_iconv=yes
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS="$am_save_LIBS"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11887 $as_echo "$am_cv_func_iconv" >&6; }
11888 if test "$am_cv_func_iconv" = yes; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11890 $as_echo_n "checking for working iconv... " >&6; }
11891 if ${am_cv_func_iconv_works+:} false; then :
11892 $as_echo_n "(cached) " >&6
11895 am_save_LIBS="$LIBS"
11896 if test $am_cv_lib_iconv = yes; then
11897 LIBS="$LIBS $LIBICONV"
11899 am_cv_func_iconv_works=no
11900 for ac_iconv_const in '' 'const'; do
11901 if test "$cross_compiling" = yes; then :
11903 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11904 *) am_cv_func_iconv_works="guessing yes" ;;
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11911 #include <string.h>
11913 #ifndef ICONV_CONST
11914 # define ICONV_CONST $ac_iconv_const
11921 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11924 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11925 if (cd_utf8_to_88591 != (iconv_t)(-1))
11927 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11929 ICONV_CONST char *inptr = input;
11930 size_t inbytesleft = strlen (input);
11931 char *outptr = buf;
11932 size_t outbytesleft = sizeof (buf);
11933 size_t res = iconv (cd_utf8_to_88591,
11934 &inptr, &inbytesleft,
11935 &outptr, &outbytesleft);
11938 iconv_close (cd_utf8_to_88591);
11941 /* Test against Solaris 10 bug: Failures are not distinguishable from
11942 successful returns. */
11944 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11945 if (cd_ascii_to_88591 != (iconv_t)(-1))
11947 static ICONV_CONST char input[] = "\263";
11949 ICONV_CONST char *inptr = input;
11950 size_t inbytesleft = strlen (input);
11951 char *outptr = buf;
11952 size_t outbytesleft = sizeof (buf);
11953 size_t res = iconv (cd_ascii_to_88591,
11954 &inptr, &inbytesleft,
11955 &outptr, &outbytesleft);
11958 iconv_close (cd_ascii_to_88591);
11961 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11963 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11964 if (cd_88591_to_utf8 != (iconv_t)(-1))
11966 static ICONV_CONST char input[] = "\304";
11967 static char buf[2] = { (char)0xDE, (char)0xAD };
11968 ICONV_CONST char *inptr = input;
11969 size_t inbytesleft = 1;
11970 char *outptr = buf;
11971 size_t outbytesleft = 1;
11972 size_t res = iconv (cd_88591_to_utf8,
11973 &inptr, &inbytesleft,
11974 &outptr, &outbytesleft);
11975 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11977 iconv_close (cd_88591_to_utf8);
11980 #if 0 /* This bug could be worked around by the caller. */
11981 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11983 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11984 if (cd_88591_to_utf8 != (iconv_t)(-1))
11986 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11988 ICONV_CONST char *inptr = input;
11989 size_t inbytesleft = strlen (input);
11990 char *outptr = buf;
11991 size_t outbytesleft = sizeof (buf);
11992 size_t res = iconv (cd_88591_to_utf8,
11993 &inptr, &inbytesleft,
11994 &outptr, &outbytesleft);
11997 iconv_close (cd_88591_to_utf8);
12001 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12004 /* Try standardized names. */
12005 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12006 /* Try IRIX, OSF/1 names. */
12007 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12008 /* Try AIX names. */
12009 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12010 /* Try HP-UX names. */
12011 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12012 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12013 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12015 if (cd1 != (iconv_t)(-1))
12017 if (cd2 != (iconv_t)(-1))
12019 if (cd3 != (iconv_t)(-1))
12021 if (cd4 != (iconv_t)(-1))
12030 if ac_fn_c_try_run "$LINENO"; then :
12031 am_cv_func_iconv_works=yes
12033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12034 conftest.$ac_objext conftest.beam conftest.$ac_ext
12037 test "$am_cv_func_iconv_works" = no || break
12039 LIBS="$am_save_LIBS"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12043 $as_echo "$am_cv_func_iconv_works" >&6; }
12044 case "$am_cv_func_iconv_works" in
12045 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12046 *) am_func_iconv=yes ;;
12049 am_func_iconv=no am_cv_lib_iconv=no
12051 if test "$am_func_iconv" = yes; then
12053 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12056 if test "$am_cv_lib_iconv" = yes; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12058 $as_echo_n "checking how to link with libiconv... " >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12060 $as_echo "$LIBICONV" >&6; }
12062 CPPFLAGS="$am_save_CPPFLAGS"
12069 if test "$am_cv_func_iconv" = yes; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12071 $as_echo_n "checking for iconv declaration... " >&6; }
12072 if ${am_cv_proto_iconv+:} false; then :
12073 $as_echo_n "(cached) " >&6
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 #include <stdlib.h>
12085 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12086 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100 am_cv_proto_iconv_arg1=""
12102 am_cv_proto_iconv_arg1="const"
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 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);"
12108 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12110 $am_cv_proto_iconv" >&5
12112 $am_cv_proto_iconv" >&6; }
12114 am_cv_proto_iconv_arg1=""
12117 cat >>confdefs.h <<_ACEOF
12118 #define ICONV_CONST $am_cv_proto_iconv_arg1
12132 # Check for gettext
12134 # This is "GNU gnupg" - The project-id script from gettext
12135 # needs this string
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12138 $as_echo "$as_me: checking for gettext" >&6;}
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12141 $as_echo_n "checking whether NLS is requested... " >&6; }
12142 # Check whether --enable-nls was given.
12143 if test "${enable_nls+set}" = set; then :
12144 enableval=$enable_nls; USE_NLS=$enableval
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12150 $as_echo "$USE_NLS" >&6; }
12155 GETTEXT_MACRO_VERSION=0.17
12160 # Prepare PATH_SEPARATOR.
12161 # The user is always right.
12162 if test "${PATH_SEPARATOR+set}" != set; then
12163 echo "#! /bin/sh" >conf$$.sh
12164 echo "exit 0" >>conf$$.sh
12166 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12174 # Find out how to test for executable files. Don't use a zero-byte file,
12175 # as systems may use methods other than mode bits to determine executability.
12176 cat >conf$$.file <<_ASEOF
12180 chmod +x conf$$.file
12181 if test -x conf$$.file >/dev/null 2>&1; then
12182 ac_executable_p="test -x"
12184 ac_executable_p="test -f"
12188 # Extract the first word of "msgfmt", so it can be a program name with args.
12189 set dummy msgfmt; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_MSGFMT+:} false; then :
12193 $as_echo_n "(cached) " >&6
12197 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12200 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12201 for ac_dir in $PATH; do
12203 test -z "$ac_dir" && ac_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12206 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12207 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12208 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12209 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12220 MSGFMT="$ac_cv_path_MSGFMT"
12221 if test "$MSGFMT" != ":"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12223 $as_echo "$MSGFMT" >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12229 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12230 set dummy gmsgfmt; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_path_GMSGFMT+:} false; then :
12234 $as_echo_n "(cached) " >&6
12238 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12260 GMSGFMT=$ac_cv_path_GMSGFMT
12261 if test -n "$GMSGFMT"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12263 $as_echo "$GMSGFMT" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12272 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12273 *) MSGFMT_015=$MSGFMT ;;
12276 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12277 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12278 *) GMSGFMT_015=$GMSGFMT ;;
12283 # Prepare PATH_SEPARATOR.
12284 # The user is always right.
12285 if test "${PATH_SEPARATOR+set}" != set; then
12286 echo "#! /bin/sh" >conf$$.sh
12287 echo "exit 0" >>conf$$.sh
12289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12297 # Find out how to test for executable files. Don't use a zero-byte file,
12298 # as systems may use methods other than mode bits to determine executability.
12299 cat >conf$$.file <<_ASEOF
12303 chmod +x conf$$.file
12304 if test -x conf$$.file >/dev/null 2>&1; then
12305 ac_executable_p="test -x"
12307 ac_executable_p="test -f"
12311 # Extract the first word of "xgettext", so it can be a program name with args.
12312 set dummy xgettext; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_path_XGETTEXT+:} false; then :
12316 $as_echo_n "(cached) " >&6
12318 case "$XGETTEXT" in
12320 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12323 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12324 for ac_dir in $PATH; do
12326 test -z "$ac_dir" && ac_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12329 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12330 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12331 (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
12332 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12339 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12343 XGETTEXT="$ac_cv_path_XGETTEXT"
12344 if test "$XGETTEXT" != ":"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12346 $as_echo "$XGETTEXT" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12354 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12355 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12356 *) XGETTEXT_015=$XGETTEXT ;;
12361 # Prepare PATH_SEPARATOR.
12362 # The user is always right.
12363 if test "${PATH_SEPARATOR+set}" != set; then
12364 echo "#! /bin/sh" >conf$$.sh
12365 echo "exit 0" >>conf$$.sh
12367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12375 # Find out how to test for executable files. Don't use a zero-byte file,
12376 # as systems may use methods other than mode bits to determine executability.
12377 cat >conf$$.file <<_ASEOF
12381 chmod +x conf$$.file
12382 if test -x conf$$.file >/dev/null 2>&1; then
12383 ac_executable_p="test -x"
12385 ac_executable_p="test -f"
12389 # Extract the first word of "msgmerge", so it can be a program name with args.
12390 set dummy msgmerge; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_MSGMERGE+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 case "$MSGMERGE" in
12398 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12401 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12402 for ac_dir in $PATH; do
12404 test -z "$ac_dir" && ac_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12407 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12408 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12409 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12416 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12420 MSGMERGE="$ac_cv_path_MSGMERGE"
12421 if test "$MSGMERGE" != ":"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12423 $as_echo "$MSGMERGE" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12430 test -n "$localedir" || localedir='${datadir}/locale'
12433 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12436 ac_config_commands="$ac_config_commands po-directories"
12440 if test "$try_gettext" = yes; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12465 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12466 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 gt_save_LIBS="$LIBS"
12470 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 #include <CoreFoundation/CFPreferences.h>
12477 CFPreferencesCopyAppValue(NULL, NULL)
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 gt_cv_func_CFPreferencesCopyAppValue=yes
12485 gt_cv_func_CFPreferencesCopyAppValue=no
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 LIBS="$gt_save_LIBS"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12492 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12493 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12495 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12499 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12500 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12501 $as_echo_n "(cached) " >&6
12503 gt_save_LIBS="$LIBS"
12504 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 #include <CoreFoundation/CFLocale.h>
12511 CFLocaleCopyCurrent();
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 gt_cv_func_CFLocaleCopyCurrent=yes
12519 gt_cv_func_CFLocaleCopyCurrent=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS="$gt_save_LIBS"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12526 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12527 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12529 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12533 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12534 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12546 case " $gt_needs " in
12547 *" need-formatstring-macros "*) gt_api_version=3 ;;
12548 *" need-ngettext "*) gt_api_version=2 ;;
12549 *) gt_api_version=1 ;;
12551 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12552 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12554 if test "$USE_NLS" = "yes"; then
12555 gt_use_preinstalled_gnugettext=no
12558 if test $gt_api_version -ge 3; then
12559 gt_revision_test_code='
12560 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12561 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12563 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12566 gt_revision_test_code=
12568 if test $gt_api_version -ge 2; then
12569 gt_expression_test_code=' + * ngettext ("", "", 0)'
12571 gt_expression_test_code=
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12575 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12576 if eval \${$gt_func_gnugettext_libc+:} false; then :
12577 $as_echo_n "(cached) " >&6
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 #include <libintl.h>
12583 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12584 extern int _nl_msg_cat_cntr;
12585 extern int *_nl_domain_bindings;
12586 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12588 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12590 $gt_revision_test_code
12596 bindtextdomain ("", "");
12597 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12603 if ac_fn_c_try_link "$LINENO"; then :
12604 eval "$gt_func_gnugettext_libc=yes"
12606 eval "$gt_func_gnugettext_libc=no"
12608 rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12611 eval ac_res=\$$gt_func_gnugettext_libc
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12613 $as_echo "$ac_res" >&6; }
12615 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12621 am_save_CPPFLAGS="$CPPFLAGS"
12623 for element in $INCICONV; do
12625 for x in $CPPFLAGS; do
12627 acl_save_prefix="$prefix"
12628 prefix="$acl_final_prefix"
12629 acl_save_exec_prefix="$exec_prefix"
12630 exec_prefix="$acl_final_exec_prefix"
12632 exec_prefix="$acl_save_exec_prefix"
12633 prefix="$acl_save_prefix"
12635 if test "X$x" = "X$element"; then
12640 if test -z "$haveit"; then
12641 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12647 $as_echo_n "checking for iconv... " >&6; }
12648 if ${am_cv_func_iconv+:} false; then :
12649 $as_echo_n "(cached) " >&6
12652 am_cv_func_iconv="no, consider installing GNU libiconv"
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12657 #include <stdlib.h>
12663 iconv_t cd = iconv_open("","");
12664 iconv(cd,NULL,NULL,NULL,NULL);
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 am_cv_func_iconv=yes
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 if test "$am_cv_func_iconv" != yes; then
12676 am_save_LIBS="$LIBS"
12677 LIBS="$LIBS $LIBICONV"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <stdlib.h>
12687 iconv_t cd = iconv_open("","");
12688 iconv(cd,NULL,NULL,NULL,NULL);
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 am_cv_lib_iconv=yes
12696 am_cv_func_iconv=yes
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS="$am_save_LIBS"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12705 $as_echo "$am_cv_func_iconv" >&6; }
12706 if test "$am_cv_func_iconv" = yes; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12708 $as_echo_n "checking for working iconv... " >&6; }
12709 if ${am_cv_func_iconv_works+:} false; then :
12710 $as_echo_n "(cached) " >&6
12713 am_save_LIBS="$LIBS"
12714 if test $am_cv_lib_iconv = yes; then
12715 LIBS="$LIBS $LIBICONV"
12717 am_cv_func_iconv_works=no
12718 for ac_iconv_const in '' 'const'; do
12719 if test "$cross_compiling" = yes; then :
12721 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12722 *) am_cv_func_iconv_works="guessing yes" ;;
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12729 #include <string.h>
12731 #ifndef ICONV_CONST
12732 # define ICONV_CONST $ac_iconv_const
12739 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12742 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12743 if (cd_utf8_to_88591 != (iconv_t)(-1))
12745 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12747 ICONV_CONST char *inptr = input;
12748 size_t inbytesleft = strlen (input);
12749 char *outptr = buf;
12750 size_t outbytesleft = sizeof (buf);
12751 size_t res = iconv (cd_utf8_to_88591,
12752 &inptr, &inbytesleft,
12753 &outptr, &outbytesleft);
12756 iconv_close (cd_utf8_to_88591);
12759 /* Test against Solaris 10 bug: Failures are not distinguishable from
12760 successful returns. */
12762 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12763 if (cd_ascii_to_88591 != (iconv_t)(-1))
12765 static ICONV_CONST char input[] = "\263";
12767 ICONV_CONST char *inptr = input;
12768 size_t inbytesleft = strlen (input);
12769 char *outptr = buf;
12770 size_t outbytesleft = sizeof (buf);
12771 size_t res = iconv (cd_ascii_to_88591,
12772 &inptr, &inbytesleft,
12773 &outptr, &outbytesleft);
12776 iconv_close (cd_ascii_to_88591);
12779 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12781 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12782 if (cd_88591_to_utf8 != (iconv_t)(-1))
12784 static ICONV_CONST char input[] = "\304";
12785 static char buf[2] = { (char)0xDE, (char)0xAD };
12786 ICONV_CONST char *inptr = input;
12787 size_t inbytesleft = 1;
12788 char *outptr = buf;
12789 size_t outbytesleft = 1;
12790 size_t res = iconv (cd_88591_to_utf8,
12791 &inptr, &inbytesleft,
12792 &outptr, &outbytesleft);
12793 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12795 iconv_close (cd_88591_to_utf8);
12798 #if 0 /* This bug could be worked around by the caller. */
12799 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12801 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12802 if (cd_88591_to_utf8 != (iconv_t)(-1))
12804 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12806 ICONV_CONST char *inptr = input;
12807 size_t inbytesleft = strlen (input);
12808 char *outptr = buf;
12809 size_t outbytesleft = sizeof (buf);
12810 size_t res = iconv (cd_88591_to_utf8,
12811 &inptr, &inbytesleft,
12812 &outptr, &outbytesleft);
12815 iconv_close (cd_88591_to_utf8);
12819 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12822 /* Try standardized names. */
12823 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12824 /* Try IRIX, OSF/1 names. */
12825 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12826 /* Try AIX names. */
12827 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12828 /* Try HP-UX names. */
12829 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12830 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12831 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12833 if (cd1 != (iconv_t)(-1))
12835 if (cd2 != (iconv_t)(-1))
12837 if (cd3 != (iconv_t)(-1))
12839 if (cd4 != (iconv_t)(-1))
12848 if ac_fn_c_try_run "$LINENO"; then :
12849 am_cv_func_iconv_works=yes
12851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12852 conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 test "$am_cv_func_iconv_works" = no || break
12857 LIBS="$am_save_LIBS"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12861 $as_echo "$am_cv_func_iconv_works" >&6; }
12862 case "$am_cv_func_iconv_works" in
12863 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12864 *) am_func_iconv=yes ;;
12867 am_func_iconv=no am_cv_lib_iconv=no
12869 if test "$am_func_iconv" = yes; then
12871 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12874 if test "$am_cv_lib_iconv" = yes; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12876 $as_echo_n "checking how to link with libiconv... " >&6; }
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12878 $as_echo "$LIBICONV" >&6; }
12880 CPPFLAGS="$am_save_CPPFLAGS"
12894 acl_save_prefix="$prefix"
12895 prefix="$acl_final_prefix"
12896 acl_save_exec_prefix="$exec_prefix"
12897 exec_prefix="$acl_final_exec_prefix"
12899 eval additional_includedir=\"$includedir\"
12900 eval additional_libdir=\"$libdir\"
12902 exec_prefix="$acl_save_exec_prefix"
12903 prefix="$acl_save_prefix"
12906 # Check whether --with-libintl-prefix was given.
12907 if test "${with_libintl_prefix+set}" = set; then :
12908 withval=$with_libintl_prefix;
12909 if test "X$withval" = "Xno"; then
12912 if test "X$withval" = "X"; then
12914 acl_save_prefix="$prefix"
12915 prefix="$acl_final_prefix"
12916 acl_save_exec_prefix="$exec_prefix"
12917 exec_prefix="$acl_final_exec_prefix"
12919 eval additional_includedir=\"$includedir\"
12920 eval additional_libdir=\"$libdir\"
12922 exec_prefix="$acl_save_exec_prefix"
12923 prefix="$acl_save_prefix"
12926 additional_includedir="$withval/include"
12927 additional_libdir="$withval/$acl_libdirstem"
12939 names_already_handled=
12940 names_next_round='intl '
12941 while test -n "$names_next_round"; do
12942 names_this_round="$names_next_round"
12944 for name in $names_this_round; do
12946 for n in $names_already_handled; do
12947 if test "$n" = "$name"; then
12948 already_handled=yes
12952 if test -z "$already_handled"; then
12953 names_already_handled="$names_already_handled $name"
12954 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12955 eval value=\"\$HAVE_LIB$uppername\"
12956 if test -n "$value"; then
12957 if test "$value" = yes; then
12958 eval value=\"\$LIB$uppername\"
12959 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12960 eval value=\"\$LTLIB$uppername\"
12961 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12970 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12971 if test -n "$acl_shlibext"; then
12972 shrext=".$acl_shlibext" # typically: shrext=.so
12976 if test $use_additional = yes; then
12977 dir="$additional_libdir"
12978 if test -n "$acl_shlibext"; then
12979 if test -f "$dir/$libname$shrext"; then
12981 found_so="$dir/$libname$shrext"
12983 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12984 ver=`(cd "$dir" && \
12985 for f in "$libname$shrext".*; do echo "$f"; done \
12986 | sed -e "s,^$libname$shrext\\\\.,," \
12987 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12988 | sed 1q ) 2>/dev/null`
12989 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12991 found_so="$dir/$libname$shrext.$ver"
12994 eval library_names=\"$acl_library_names_spec\"
12995 for f in $library_names; do
12996 if test -f "$dir/$f"; then
13005 if test "X$found_dir" = "X"; then
13006 if test -f "$dir/$libname.$acl_libext"; then
13008 found_a="$dir/$libname.$acl_libext"
13011 if test "X$found_dir" != "X"; then
13012 if test -f "$dir/$libname.la"; then
13013 found_la="$dir/$libname.la"
13017 if test "X$found_dir" = "X"; then
13018 for x in $LDFLAGS $LTLIBINTL; do
13020 acl_save_prefix="$prefix"
13021 prefix="$acl_final_prefix"
13022 acl_save_exec_prefix="$exec_prefix"
13023 exec_prefix="$acl_final_exec_prefix"
13025 exec_prefix="$acl_save_exec_prefix"
13026 prefix="$acl_save_prefix"
13030 dir=`echo "X$x" | sed -e 's/^X-L//'`
13031 if test -n "$acl_shlibext"; then
13032 if test -f "$dir/$libname$shrext"; then
13034 found_so="$dir/$libname$shrext"
13036 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13037 ver=`(cd "$dir" && \
13038 for f in "$libname$shrext".*; do echo "$f"; done \
13039 | sed -e "s,^$libname$shrext\\\\.,," \
13040 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13041 | sed 1q ) 2>/dev/null`
13042 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13044 found_so="$dir/$libname$shrext.$ver"
13047 eval library_names=\"$acl_library_names_spec\"
13048 for f in $library_names; do
13049 if test -f "$dir/$f"; then
13058 if test "X$found_dir" = "X"; then
13059 if test -f "$dir/$libname.$acl_libext"; then
13061 found_a="$dir/$libname.$acl_libext"
13064 if test "X$found_dir" != "X"; then
13065 if test -f "$dir/$libname.la"; then
13066 found_la="$dir/$libname.la"
13071 if test "X$found_dir" != "X"; then
13076 if test "X$found_dir" != "X"; then
13077 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13078 if test "X$found_so" != "X"; then
13079 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13080 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13083 for x in $ltrpathdirs; do
13084 if test "X$x" = "X$found_dir"; then
13089 if test -z "$haveit"; then
13090 ltrpathdirs="$ltrpathdirs $found_dir"
13092 if test "$acl_hardcode_direct" = yes; then
13093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13095 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13098 for x in $rpathdirs; do
13099 if test "X$x" = "X$found_dir"; then
13104 if test -z "$haveit"; then
13105 rpathdirs="$rpathdirs $found_dir"
13109 for x in $LDFLAGS $LIBINTL; do
13111 acl_save_prefix="$prefix"
13112 prefix="$acl_final_prefix"
13113 acl_save_exec_prefix="$exec_prefix"
13114 exec_prefix="$acl_final_exec_prefix"
13116 exec_prefix="$acl_save_exec_prefix"
13117 prefix="$acl_save_prefix"
13119 if test "X$x" = "X-L$found_dir"; then
13124 if test -z "$haveit"; then
13125 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13127 if test "$acl_hardcode_minus_L" != no; then
13128 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13130 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13136 if test "X$found_a" != "X"; then
13137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13142 additional_includedir=
13143 case "$found_dir" in
13144 */$acl_libdirstem | */$acl_libdirstem/)
13145 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13146 LIBINTL_PREFIX="$basedir"
13147 additional_includedir="$basedir/include"
13150 if test "X$additional_includedir" != "X"; then
13151 if test "X$additional_includedir" != "X/usr/include"; then
13153 if test "X$additional_includedir" = "X/usr/local/include"; then
13154 if test -n "$GCC"; then
13156 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13160 if test -z "$haveit"; then
13161 for x in $CPPFLAGS $INCINTL; do
13163 acl_save_prefix="$prefix"
13164 prefix="$acl_final_prefix"
13165 acl_save_exec_prefix="$exec_prefix"
13166 exec_prefix="$acl_final_exec_prefix"
13168 exec_prefix="$acl_save_exec_prefix"
13169 prefix="$acl_save_prefix"
13171 if test "X$x" = "X-I$additional_includedir"; then
13176 if test -z "$haveit"; then
13177 if test -d "$additional_includedir"; then
13178 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13184 if test -n "$found_la"; then
13185 save_libdir="$libdir"
13186 case "$found_la" in
13187 */* | *\\*) . "$found_la" ;;
13188 *) . "./$found_la" ;;
13190 libdir="$save_libdir"
13191 for dep in $dependency_libs; do
13194 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13195 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13197 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13198 if test -n "$GCC"; then
13200 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13204 if test -z "$haveit"; then
13206 for x in $LDFLAGS $LIBINTL; do
13208 acl_save_prefix="$prefix"
13209 prefix="$acl_final_prefix"
13210 acl_save_exec_prefix="$exec_prefix"
13211 exec_prefix="$acl_final_exec_prefix"
13213 exec_prefix="$acl_save_exec_prefix"
13214 prefix="$acl_save_prefix"
13216 if test "X$x" = "X-L$additional_libdir"; then
13221 if test -z "$haveit"; then
13222 if test -d "$additional_libdir"; then
13223 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13227 for x in $LDFLAGS $LTLIBINTL; do
13229 acl_save_prefix="$prefix"
13230 prefix="$acl_final_prefix"
13231 acl_save_exec_prefix="$exec_prefix"
13232 exec_prefix="$acl_final_exec_prefix"
13234 exec_prefix="$acl_save_exec_prefix"
13235 prefix="$acl_save_prefix"
13237 if test "X$x" = "X-L$additional_libdir"; then
13242 if test -z "$haveit"; then
13243 if test -d "$additional_libdir"; then
13244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13251 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13252 if test "$enable_rpath" != no; then
13254 for x in $rpathdirs; do
13255 if test "X$x" = "X$dir"; then
13260 if test -z "$haveit"; then
13261 rpathdirs="$rpathdirs $dir"
13264 for x in $ltrpathdirs; do
13265 if test "X$x" = "X$dir"; then
13270 if test -z "$haveit"; then
13271 ltrpathdirs="$ltrpathdirs $dir"
13276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13282 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13289 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13296 if test "X$rpathdirs" != "X"; then
13297 if test -n "$acl_hardcode_libdir_separator"; then
13299 for found_dir in $rpathdirs; do
13300 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13302 acl_save_libdir="$libdir"
13304 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13305 libdir="$acl_save_libdir"
13306 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13308 for found_dir in $rpathdirs; do
13309 acl_save_libdir="$libdir"
13310 libdir="$found_dir"
13311 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13312 libdir="$acl_save_libdir"
13313 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13317 if test "X$ltrpathdirs" != "X"; then
13318 for found_dir in $ltrpathdirs; do
13319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13324 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13325 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 gt_save_CPPFLAGS="$CPPFLAGS"
13329 CPPFLAGS="$CPPFLAGS $INCINTL"
13330 gt_save_LIBS="$LIBS"
13331 LIBS="$LIBS $LIBINTL"
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13335 #include <libintl.h>
13336 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13337 extern int _nl_msg_cat_cntr;
13342 const char *_nl_expand_alias (const char *);
13343 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13345 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13347 $gt_revision_test_code
13353 bindtextdomain ("", "");
13354 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 eval "$gt_func_gnugettext_libintl=yes"
13363 eval "$gt_func_gnugettext_libintl=no"
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13368 LIBS="$LIBS $LIBICONV"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13372 #include <libintl.h>
13373 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13374 extern int _nl_msg_cat_cntr;
13379 const char *_nl_expand_alias (const char *);
13380 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13382 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13384 $gt_revision_test_code
13390 bindtextdomain ("", "");
13391 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13397 if ac_fn_c_try_link "$LINENO"; then :
13398 LIBINTL="$LIBINTL $LIBICONV"
13399 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13400 eval "$gt_func_gnugettext_libintl=yes"
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13406 CPPFLAGS="$gt_save_CPPFLAGS"
13407 LIBS="$gt_save_LIBS"
13409 eval ac_res=\$$gt_func_gnugettext_libintl
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13411 $as_echo "$ac_res" >&6; }
13414 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13415 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13416 && test "$PACKAGE" != gettext-runtime \
13417 && test "$PACKAGE" != gettext-tools; }; then
13418 gt_use_preinstalled_gnugettext=yes
13427 if test -n "$INTL_MACOSX_LIBS"; then
13428 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13429 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13430 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13431 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13435 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13436 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13438 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13446 $as_echo_n "checking whether to use NLS... " >&6; }
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13448 $as_echo "$USE_NLS" >&6; }
13449 if test "$USE_NLS" = "yes"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13451 $as_echo_n "checking where the gettext function comes from... " >&6; }
13452 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13453 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13454 gt_source="external libintl"
13459 gt_source="included intl directory"
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13462 $as_echo "$gt_source" >&6; }
13465 if test "$USE_NLS" = "yes"; then
13467 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13468 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13470 $as_echo_n "checking how to link with libintl... " >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13472 $as_echo "$LIBINTL" >&6; }
13474 for element in $INCINTL; do
13476 for x in $CPPFLAGS; do
13478 acl_save_prefix="$prefix"
13479 prefix="$acl_final_prefix"
13480 acl_save_exec_prefix="$exec_prefix"
13481 exec_prefix="$acl_final_exec_prefix"
13483 exec_prefix="$acl_save_exec_prefix"
13484 prefix="$acl_save_prefix"
13486 if test "X$x" = "X$element"; then
13491 if test -z "$haveit"; then
13492 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13499 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13502 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13511 INTLLIBS="$LIBINTL"
13519 # gettext requires some extra checks. These really should be part of
13520 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13521 # function checks to here.
13523 for ac_func in strchr
13525 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13526 if test "x$ac_cv_func_strchr" = xyes; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_STRCHR 1
13536 USE_INCLUDED_LIBINTL=no
13537 BUILD_INCLUDED_LIBINTL=no
13545 # We use HAVE_LANGINFO_CODESET in a couple of places.
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13548 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13549 if ${am_cv_langinfo_codeset+:} false; then :
13550 $as_echo_n "(cached) " >&6
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 #include <langinfo.h>
13558 char* cs = nl_langinfo(CODESET); return !cs;
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 am_cv_langinfo_codeset=yes
13566 am_cv_langinfo_codeset=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13573 $as_echo "$am_cv_langinfo_codeset" >&6; }
13574 if test $am_cv_langinfo_codeset = yes; then
13576 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13581 # Checks required for our use of locales
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13585 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13586 $as_echo_n "(cached) " >&6
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <locale.h>
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 gt_cv_val_LC_MESSAGES=yes
13602 gt_cv_val_LC_MESSAGES=no
13604 rm -f core conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13608 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13609 if test $gt_cv_val_LC_MESSAGES = yes; then
13611 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13620 if test "$selinux_support" = yes ; then
13622 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13628 # Checks for header files.
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13631 $as_echo "$as_me: checking for header files" >&6;}
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13633 $as_echo_n "checking for ANSI C header files... " >&6; }
13634 if ${ac_cv_header_stdc+:} false; then :
13635 $as_echo_n "(cached) " >&6
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <stdlib.h>
13640 #include <stdarg.h>
13641 #include <string.h>
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_header_stdc=yes
13655 ac_cv_header_stdc=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 if test $ac_cv_header_stdc = yes; then
13660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 #include <string.h>
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 $EGREP "memchr" >/dev/null 2>&1; then :
13670 ac_cv_header_stdc=no
13676 if test $ac_cv_header_stdc = yes; then
13677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <stdlib.h>
13683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13684 $EGREP "free" >/dev/null 2>&1; then :
13687 ac_cv_header_stdc=no
13693 if test $ac_cv_header_stdc = yes; then
13694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13695 if test "$cross_compiling" = yes; then :
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13701 #include <stdlib.h>
13702 #if ((' ' & 0x0FF) == 0x020)
13703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13706 # define ISLOWER(c) \
13707 (('a' <= (c) && (c) <= 'i') \
13708 || ('j' <= (c) && (c) <= 'r') \
13709 || ('s' <= (c) && (c) <= 'z'))
13710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13718 for (i = 0; i < 256; i++)
13719 if (XOR (islower (i), ISLOWER (i))
13720 || toupper (i) != TOUPPER (i))
13725 if ac_fn_c_try_run "$LINENO"; then :
13728 ac_cv_header_stdc=no
13730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13731 conftest.$ac_objext conftest.beam conftest.$ac_ext
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13737 $as_echo "$ac_cv_header_stdc" >&6; }
13738 if test $ac_cv_header_stdc = yes; then
13740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13746 if ${ac_cv_header_time+:} false; then :
13747 $as_echo_n "(cached) " >&6
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 #include <sys/types.h>
13752 #include <sys/time.h>
13758 if ((struct tm *) 0)
13764 if ac_fn_c_try_compile "$LINENO"; then :
13765 ac_cv_header_time=yes
13767 ac_cv_header_time=no
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13772 $as_echo "$ac_cv_header_time" >&6; }
13773 if test $ac_cv_header_time = yes; then
13775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13779 for ac_header in unistd.h langinfo.h termio.h locale.h \
13780 pwd.h inttypes.h signal.h sys/select.h \
13781 stdint.h signal.h termios.h \
13782 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13798 # Checks for typedefs, structures, and compiler characteristics.
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13801 $as_echo "$as_me: checking for system characteristics" >&6;}
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13803 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13804 if ${ac_cv_c_const+:} false; then :
13805 $as_echo_n "(cached) " >&6
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13814 #ifndef __cplusplus
13815 /* Ultrix mips cc rejects this sort of thing. */
13816 typedef int charset[2];
13817 const charset cs = { 0, 0 };
13818 /* SunOS 4.1.1 cc rejects this. */
13819 char const *const *pcpcc;
13821 /* NEC SVR4.0.2 mips cc rejects this. */
13822 struct point {int x, y;};
13823 static struct point const zero = {0,0};
13824 /* AIX XL C 1.02.0.0 rejects this.
13825 It does not let you subtract one const X* pointer from another in
13826 an arm of an if-expression whose if-part is not a constant
13828 const char *g = "string";
13829 pcpcc = &g + (g ? g-g : 0);
13830 /* HPUX 7.0 cc rejects these. */
13832 ppc = (char**) pcpcc;
13833 pcpcc = (char const *const *) ppc;
13834 { /* SCO 3.2v4 cc rejects this sort of thing. */
13837 char const *s = 0 ? (char *) 0 : (char const *) 0;
13842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13843 int x[] = {25, 17};
13844 const int *foo = &x[0];
13847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13848 typedef const int *iptr;
13852 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13854 struct s { int j; const int *ap[3]; } bx;
13855 struct s *b = &bx; b->j = 5;
13857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13858 const int foo = 10;
13859 if (!foo) return 0;
13861 return !cs[0] && !zero.x;
13868 if ac_fn_c_try_compile "$LINENO"; then :
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13876 $as_echo "$ac_cv_c_const" >&6; }
13877 if test $ac_cv_c_const = no; then
13879 $as_echo "#define const /**/" >>confdefs.h
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13884 $as_echo_n "checking for inline... " >&6; }
13885 if ${ac_cv_c_inline+:} false; then :
13886 $as_echo_n "(cached) " >&6
13889 for ac_kw in inline __inline__ __inline; do
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 #ifndef __cplusplus
13894 static $ac_kw foo_t static_foo () {return 0; }
13895 $ac_kw foo_t foo () {return 0; }
13899 if ac_fn_c_try_compile "$LINENO"; then :
13900 ac_cv_c_inline=$ac_kw
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 test "$ac_cv_c_inline" != no && break
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13908 $as_echo "$ac_cv_c_inline" >&6; }
13910 case $ac_cv_c_inline in
13913 case $ac_cv_c_inline in
13915 *) ac_val=$ac_cv_c_inline;;
13917 cat >>confdefs.h <<_ACEOF
13918 #ifndef __cplusplus
13919 #define inline $ac_val
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13926 $as_echo_n "checking for working volatile... " >&6; }
13927 if ${ac_cv_c_volatile+:} false; then :
13928 $as_echo_n "(cached) " >&6
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13938 int * volatile y = (int *) 0;
13944 if ac_fn_c_try_compile "$LINENO"; then :
13945 ac_cv_c_volatile=yes
13947 ac_cv_c_volatile=no
13949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13952 $as_echo "$ac_cv_c_volatile" >&6; }
13953 if test $ac_cv_c_volatile = no; then
13955 $as_echo "#define volatile /**/" >>confdefs.h
13959 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13960 if test "x$ac_cv_type_size_t" = xyes; then :
13964 cat >>confdefs.h <<_ACEOF
13965 #define size_t unsigned int
13970 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13971 if test "x$ac_cv_type_mode_t" = xyes; then :
13975 cat >>confdefs.h <<_ACEOF
13981 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13982 /* NetBSD declares sys_siglist in unistd.h. */
13983 #ifdef HAVE_UNISTD_H
13984 # include <unistd.h>
13988 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
14003 for ac_header in $ac_header_list
14005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14021 if test $ac_cv_header_sys_socket_h = yes; then
14024 for ac_header in winsock2.h ws2tcpip.h
14026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14029 cat >>confdefs.h <<_ACEOF
14030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14037 SYS_SOCKET_H='sys/socket.h'
14042 if test $ac_cv_header_sys_socket_h = no; then
14043 for ac_header in ws2tcpip.h
14045 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14046 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_WS2TCPIP_H 1
14057 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14058 /* <sys/types.h> is not needed according to POSIX, but the
14059 <sys/socket.h> in i386-unknown-freebsd4.10 and
14060 powerpc-apple-darwin5.5 required it. */
14061 #include <sys/types.h>
14062 #if HAVE_SYS_SOCKET_H
14063 # include <sys/socket.h>
14064 #elif HAVE_WS2TCPIP_H
14065 # include <ws2tcpip.h>
14069 if test "x$ac_cv_type_socklen_t" = xyes; then :
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14073 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14074 if ${gl_cv_socklen_t_equiv+:} false; then :
14075 $as_echo_n "(cached) " >&6
14077 # Systems have either "struct sockaddr *" or
14078 # "void *" as the second argument to getpeername
14079 gl_cv_socklen_t_equiv=
14080 for arg2 in "struct sockaddr" void; do
14081 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 #include <sys/types.h>
14085 #include <sys/socket.h>
14087 int getpeername (int, $arg2 *, $t *);
14092 getpeername (0, 0, &len);
14097 if ac_fn_c_try_compile "$LINENO"; then :
14098 gl_cv_socklen_t_equiv="$t"
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101 test "$gl_cv_socklen_t_equiv" != "" && break
14103 test "$gl_cv_socklen_t_equiv" != "" && break
14105 if test "$gl_cv_socklen_t_equiv" = ""; then
14106 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14111 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14113 cat >>confdefs.h <<_ACEOF
14114 #define socklen_t $gl_cv_socklen_t_equiv
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14121 $as_echo_n "checking for library containing inet_addr... " >&6; }
14122 if ${ac_cv_search_inet_addr+:} false; then :
14123 $as_echo_n "(cached) " >&6
14125 ac_func_search_save_LIBS=$LIBS
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14129 /* Override any GCC internal prototype to avoid an error.
14130 Use char because int might match the return type of a GCC
14131 builtin and then its argument prototype would still apply. */
14139 return inet_addr ();
14144 for ac_lib in '' nsl; do
14145 if test -z "$ac_lib"; then
14146 ac_res="none required"
14149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14151 if ac_fn_c_try_link "$LINENO"; then :
14152 ac_cv_search_inet_addr=$ac_res
14154 rm -f core conftest.err conftest.$ac_objext \
14156 if ${ac_cv_search_inet_addr+:} false; then :
14160 if ${ac_cv_search_inet_addr+:} false; then :
14163 ac_cv_search_inet_addr=no
14165 rm conftest.$ac_ext
14166 LIBS=$ac_func_search_save_LIBS
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14169 $as_echo "$ac_cv_search_inet_addr" >&6; }
14170 ac_res=$ac_cv_search_inet_addr
14171 if test "$ac_res" != no; then :
14172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14177 # Check whether --enable-endian-check was given.
14178 if test "${enable_endian_check+set}" = set; then :
14179 enableval=$enable_endian_check; endiancheck=$enableval
14185 if test x"$endiancheck" = xyes ; then
14187 tmp_assumed_endian=big
14189 if test "$cross_compiling" = yes; then
14190 case "$host_cpu" in
14192 tmp_assumed_endian=little
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14199 $as_echo_n "checking endianness... " >&6; }
14200 if ${gnupg_cv_c_endian+:} false; then :
14201 $as_echo_n "(cached) " >&6
14203 gnupg_cv_c_endian=unknown
14204 # See if sys/param.h defines the BYTE_ORDER macro.
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207 #include <sys/types.h>
14208 #include <sys/param.h>
14213 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14214 bogus endian macros
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221 # It does; now see whether it defined to BIG_ENDIAN or not.
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 #include <sys/types.h>
14225 #include <sys/param.h>
14230 #if BYTE_ORDER != BIG_ENDIAN
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 gnupg_cv_c_endian=big
14240 gnupg_cv_c_endian=little
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 if test "$gnupg_cv_c_endian" = unknown; then
14246 if test "$cross_compiling" = yes; then :
14247 gnupg_cv_c_endian=$tmp_assumed_endian
14248 tmp_assumed_warn=" (assumed)"
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 /* Are we little or big endian? From Harbison&Steele. */
14258 char c[sizeof (long)];
14261 exit (u.c[sizeof (long) - 1] == 1);
14264 if ac_fn_c_try_run "$LINENO"; then :
14265 gnupg_cv_c_endian=little
14267 gnupg_cv_c_endian=big
14269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14270 conftest.$ac_objext conftest.beam conftest.$ac_ext
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14278 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14279 if test "$gnupg_cv_c_endian" = little; then
14281 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14285 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14291 # fixme: we should get rid of the byte type
14292 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14293 if test "x$ac_cv_type_byte" = xyes; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_BYTE 1
14301 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14302 if test "x$ac_cv_type_ushort" = xyes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_USHORT 1
14310 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14311 if test "x$ac_cv_type_ulong" = xyes; then :
14313 cat >>confdefs.h <<_ACEOF
14314 #define HAVE_ULONG 1
14319 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14320 if test "x$ac_cv_type_u16" = xyes; then :
14322 cat >>confdefs.h <<_ACEOF
14328 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14329 if test "x$ac_cv_type_u32" = xyes; then :
14331 cat >>confdefs.h <<_ACEOF
14338 # The cast to long int works around a bug in the HP C Compiler
14339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14341 # This bug is HP SR number 8606223364.
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14343 $as_echo_n "checking size of unsigned short... " >&6; }
14344 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14345 $as_echo_n "(cached) " >&6
14347 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14350 if test "$ac_cv_type_unsigned_short" = yes; then
14351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14353 as_fn_error 77 "cannot compute sizeof (unsigned short)
14354 See \`config.log' for more details" "$LINENO" 5; }
14356 ac_cv_sizeof_unsigned_short=0
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14362 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14366 cat >>confdefs.h <<_ACEOF
14367 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14371 # The cast to long int works around a bug in the HP C Compiler
14372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14374 # This bug is HP SR number 8606223364.
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14376 $as_echo_n "checking size of unsigned int... " >&6; }
14377 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14378 $as_echo_n "(cached) " >&6
14380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14383 if test "$ac_cv_type_unsigned_int" = yes; then
14384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14386 as_fn_error 77 "cannot compute sizeof (unsigned int)
14387 See \`config.log' for more details" "$LINENO" 5; }
14389 ac_cv_sizeof_unsigned_int=0
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14395 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14399 cat >>confdefs.h <<_ACEOF
14400 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14404 # The cast to long int works around a bug in the HP C Compiler
14405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14407 # This bug is HP SR number 8606223364.
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14409 $as_echo_n "checking size of unsigned long... " >&6; }
14410 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14411 $as_echo_n "(cached) " >&6
14413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14416 if test "$ac_cv_type_unsigned_long" = yes; then
14417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14419 as_fn_error 77 "cannot compute sizeof (unsigned long)
14420 See \`config.log' for more details" "$LINENO" 5; }
14422 ac_cv_sizeof_unsigned_long=0
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14428 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14432 cat >>confdefs.h <<_ACEOF
14433 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14437 # The cast to long int works around a bug in the HP C Compiler
14438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14440 # This bug is HP SR number 8606223364.
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14442 $as_echo_n "checking size of unsigned long long... " >&6; }
14443 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14444 $as_echo_n "(cached) " >&6
14446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14449 if test "$ac_cv_type_unsigned_long_long" = yes; then
14450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14452 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14453 See \`config.log' for more details" "$LINENO" 5; }
14455 ac_cv_sizeof_unsigned_long_long=0
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14461 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14465 cat >>confdefs.h <<_ACEOF
14466 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14470 # The cast to long int works around a bug in the HP C Compiler
14471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14473 # This bug is HP SR number 8606223364.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14475 $as_echo_n "checking size of size_t... " >&6; }
14476 if ${ac_cv_sizeof_size_t+:} false; then :
14477 $as_echo_n "(cached) " >&6
14479 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14482 if test "$ac_cv_type_size_t" = yes; then
14483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14485 as_fn_error 77 "cannot compute sizeof (size_t)
14486 See \`config.log' for more details" "$LINENO" 5; }
14488 ac_cv_sizeof_size_t=0
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14494 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14498 cat >>confdefs.h <<_ACEOF
14499 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14503 # The cast to long int works around a bug in the HP C Compiler
14504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14506 # This bug is HP SR number 8606223364.
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14508 $as_echo_n "checking size of time_t... " >&6; }
14509 if ${ac_cv_sizeof_time_t+:} false; then :
14510 $as_echo_n "(cached) " >&6
14512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14514 #if TIME_WITH_SYS_TIME
14515 # include <sys/time.h>
14518 # if HAVE_SYS_TIME_H
14519 # include <sys/time.h>
14528 if test "$ac_cv_type_time_t" = yes; then
14529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14531 as_fn_error 77 "cannot compute sizeof (time_t)
14532 See \`config.log' for more details" "$LINENO" 5; }
14534 ac_cv_sizeof_time_t=0
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14540 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14544 cat >>confdefs.h <<_ACEOF
14545 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14550 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14551 if ${gnupg_cv_time_t_unsigned+:} false; then :
14552 $as_echo_n "(cached) " >&6
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14556 $ac_includes_default
14557 #if TIME_WITH_SYS_TIME
14558 # include <sys/time.h>
14561 # if HAVE_SYS_TIME_H
14562 # include <sys/time.h>
14571 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14572 test_array [0] = 0;
14573 return test_array [0];
14579 if ac_fn_c_try_compile "$LINENO"; then :
14580 gnupg_cv_time_t_unsigned=no
14582 gnupg_cv_time_t_unsigned=yes
14584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14587 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14588 if test $gnupg_cv_time_t_unsigned = yes; then
14590 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14596 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14597 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14598 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14600 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14605 # Checks for library functions.
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14608 $as_echo "$as_me: checking for library functions" >&6;}
14609 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14610 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14616 cat >>confdefs.h <<_ACEOF
14617 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14621 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14622 if ${ac_cv_sys_largefile_source+:} false; then :
14623 $as_echo_n "(cached) " >&6
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 #include <sys/types.h> /* for off_t */
14633 int (*fp) (FILE *, off_t, int) = fseeko;
14634 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_sys_largefile_source=no; break
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646 #define _LARGEFILE_SOURCE 1
14647 #include <sys/types.h> /* for off_t */
14652 int (*fp) (FILE *, off_t, int) = fseeko;
14653 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 ac_cv_sys_largefile_source=1; break
14661 rm -f core conftest.err conftest.$ac_objext \
14662 conftest$ac_exeext conftest.$ac_ext
14663 ac_cv_sys_largefile_source=unknown
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14668 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14669 case $ac_cv_sys_largefile_source in #(
14672 cat >>confdefs.h <<_ACEOF
14673 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14679 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14680 # in glibc 2.1.3, but that breaks too many other things.
14681 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14682 if test $ac_cv_sys_largefile_source != unknown; then
14684 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14688 for ac_func in vprintf
14690 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14691 if test "x$ac_cv_func_vprintf" = xyes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_VPRINTF 1
14696 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14697 if test "x$ac_cv_func__doprnt" = xyes; then :
14699 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14707 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14708 if test "x$ac_cv_type_pid_t" = xyes; then :
14712 cat >>confdefs.h <<_ACEOF
14718 for ac_header in vfork.h
14720 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14721 if test "x$ac_cv_header_vfork_h" = xyes; then :
14722 cat >>confdefs.h <<_ACEOF
14723 #define HAVE_VFORK_H 1
14730 for ac_func in fork vfork
14732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14742 if test "x$ac_cv_func_fork" = xyes; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14744 $as_echo_n "checking for working fork... " >&6; }
14745 if ${ac_cv_func_fork_works+:} false; then :
14746 $as_echo_n "(cached) " >&6
14748 if test "$cross_compiling" = yes; then :
14749 ac_cv_func_fork_works=cross
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 $ac_includes_default
14758 /* By Ruediger Kuhlmann. */
14759 return fork () < 0;
14765 if ac_fn_c_try_run "$LINENO"; then :
14766 ac_cv_func_fork_works=yes
14768 ac_cv_func_fork_works=no
14770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14771 conftest.$ac_objext conftest.beam conftest.$ac_ext
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14776 $as_echo "$ac_cv_func_fork_works" >&6; }
14779 ac_cv_func_fork_works=$ac_cv_func_fork
14781 if test "x$ac_cv_func_fork_works" = xcross; then
14783 *-*-amigaos* | *-*-msdosdjgpp*)
14784 # Override, as these systems have only a dummy fork() stub
14785 ac_cv_func_fork_works=no
14788 ac_cv_func_fork_works=yes
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14792 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14794 ac_cv_func_vfork_works=$ac_cv_func_vfork
14795 if test "x$ac_cv_func_vfork" = xyes; then
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14797 $as_echo_n "checking for working vfork... " >&6; }
14798 if ${ac_cv_func_vfork_works+:} false; then :
14799 $as_echo_n "(cached) " >&6
14801 if test "$cross_compiling" = yes; then :
14802 ac_cv_func_vfork_works=cross
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806 /* Thanks to Paul Eggert for this test. */
14807 $ac_includes_default
14808 #include <sys/wait.h>
14809 #ifdef HAVE_VFORK_H
14810 # include <vfork.h>
14812 /* On some sparc systems, changes by the child to local and incoming
14813 argument registers are propagated back to the parent. The compiler
14814 is told about this with #include <vfork.h>, but some compilers
14815 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14816 static variable whose address is put into a register that is
14817 clobbered by the vfork. */
14820 sparc_address_test (int arg)
14822 sparc_address_test (arg) int arg;
14825 static pid_t child;
14843 pid_t parent = getpid ();
14846 sparc_address_test (0);
14851 /* Here is another test for sparc vfork register problems. This
14852 test uses lots of local variables, at least as many local
14853 variables as main has allocated so far including compiler
14854 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14855 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14856 reuse the register of parent for one of the local variables,
14857 since it will think that parent can't possibly be used any more
14858 in this routine. Assigning to the local variable will thus
14859 munge parent in the parent process. */
14861 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14862 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14863 /* Convince the compiler that p..p7 are live; otherwise, it might
14864 use the same hardware register for all 8 local variables. */
14865 if (p != p1 || p != p2 || p != p3 || p != p4
14866 || p != p5 || p != p6 || p != p7)
14869 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14870 from child file descriptors. If the child closes a descriptor
14871 before it execs or exits, this munges the parent's descriptor
14872 as well. Test for this by closing stdout in the child. */
14873 _exit(close(fileno(stdout)) != 0);
14878 while (wait(&status) != child)
14881 /* Was there some problem with vforking? */
14884 /* Did the child fail? (This shouldn't happen.) */
14887 /* Did the vfork/compiler bug occur? */
14888 || parent != getpid()
14890 /* Did the file descriptor bug occur? */
14891 || fstat(fileno(stdout), &st) != 0
14896 if ac_fn_c_try_run "$LINENO"; then :
14897 ac_cv_func_vfork_works=yes
14899 ac_cv_func_vfork_works=no
14901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14902 conftest.$ac_objext conftest.beam conftest.$ac_ext
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14907 $as_echo "$ac_cv_func_vfork_works" >&6; }
14910 if test "x$ac_cv_func_fork_works" = xcross; then
14911 ac_cv_func_vfork_works=$ac_cv_func_vfork
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14913 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14916 if test "x$ac_cv_func_vfork_works" = xyes; then
14918 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14922 $as_echo "#define vfork fork" >>confdefs.h
14925 if test "x$ac_cv_func_fork_works" = xyes; then
14927 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14931 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14932 explicit_bzero fcntl flockfile fsync ftello \
14933 ftruncate funlockfile getaddrinfo getenv getpagesize \
14934 getpwnam getpwuid getrlimit getrusage gettimeofday \
14935 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14936 memmove memrchr mmap nl_langinfo pipe raise rand \
14937 setenv setlocale setrlimit sigaction sigprocmask \
14938 stat stpcpy strcasecmp strerror strftime stricmp \
14939 strlwr strncasecmp strpbrk strsep strtol strtoul \
14940 strtoull tcgetattr timegm times ttyname unsetenv \
14943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14954 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14955 # Given that we use nanosleep only as an optimization over a select
14956 # based wait function we want it only if it is available in libc.
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14959 $as_echo_n "checking for library containing nanosleep... " >&6; }
14960 if ${ac_cv_search_nanosleep+:} false; then :
14961 $as_echo_n "(cached) " >&6
14963 ac_func_search_save_LIBS=$LIBS
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14967 /* Override any GCC internal prototype to avoid an error.
14968 Use char because int might match the return type of a GCC
14969 builtin and then its argument prototype would still apply. */
14977 return nanosleep ();
14982 for ac_lib in '' ; do
14983 if test -z "$ac_lib"; then
14984 ac_res="none required"
14987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14989 if ac_fn_c_try_link "$LINENO"; then :
14990 ac_cv_search_nanosleep=$ac_res
14992 rm -f core conftest.err conftest.$ac_objext \
14994 if ${ac_cv_search_nanosleep+:} false; then :
14998 if ${ac_cv_search_nanosleep+:} false; then :
15001 ac_cv_search_nanosleep=no
15003 rm conftest.$ac_ext
15004 LIBS=$ac_func_search_save_LIBS
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15007 $as_echo "$ac_cv_search_nanosleep" >&6; }
15008 ac_res=$ac_cv_search_nanosleep
15009 if test "$ac_res" != no; then :
15010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15012 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15019 # See whether libc supports the Linux inotify interface
15022 for ac_func in inotify_init
15024 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15025 if test "x$ac_cv_func_inotify_init" = xyes; then :
15026 cat >>confdefs.h <<_ACEOF
15027 #define HAVE_INOTIFY_INIT 1
15037 if test "$have_android_system" = yes; then
15038 # On Android ttyname is a stub but prints an error message.
15040 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15044 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15046 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15048 cat >>confdefs.h <<_ACEOF
15049 #define HAVE_STRUCT_SIGACTION 1
15054 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15056 if test "x$ac_cv_type_sigset_t" = xyes; then :
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_SIGSET_T 1
15066 # Dirmngr requires mmap on Unix systems.
15067 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15068 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15073 # Check for the getsockopt SO_PEERCRED, etc.
15075 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15076 #include <sys/socket.h>
15078 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_STRUCT_UCRED_PID 1
15086 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15087 #include <sys/socket.h>
15089 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_STRUCT_UCRED_CR_PID 1
15097 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15098 #include <sys/socket.h>
15100 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15111 for ac_func in getpeerucred
15113 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15114 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15115 cat >>confdefs.h <<_ACEOF
15116 #define HAVE_GETPEERUCRED 1
15125 # W32 specific test
15130 # Do we have zlib? Must do it here because Solaris failed
15131 # when compiling a conftest (due to the "-lz" from LIBS).
15132 # Note that we combine zlib and bzlib2 in ZLIBS.
15134 if test "$use_zip" = yes ; then
15135 _cppflags="${CPPFLAGS}"
15136 _ldflags="${LDFLAGS}"
15138 # Check whether --with-zlib was given.
15139 if test "${with_zlib+set}" = set; then :
15140 withval=$with_zlib;
15141 if test -d "$withval"; then
15142 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15143 LDFLAGS="${LDFLAGS} -L$withval/lib"
15149 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15150 if test "x$ac_cv_header_zlib_h" = xyes; then :
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15152 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15153 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15154 $as_echo_n "(cached) " >&6
15156 ac_check_lib_save_LIBS=$LIBS
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15161 /* Override any GCC internal prototype to avoid an error.
15162 Use char because int might match the return type of a GCC
15163 builtin and then its argument prototype would still apply. */
15167 char deflateInit2_ ();
15171 return deflateInit2_ ();
15176 if ac_fn_c_try_link "$LINENO"; then :
15177 ac_cv_lib_z_deflateInit2_=yes
15179 ac_cv_lib_z_deflateInit2_=no
15181 rm -f core conftest.err conftest.$ac_objext \
15182 conftest$ac_exeext conftest.$ac_ext
15183 LIBS=$ac_check_lib_save_LIBS
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15186 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15187 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15191 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15195 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15199 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15207 # Check whether we can support bzip2
15209 if test "$use_bzip2" = yes ; then
15210 _cppflags="${CPPFLAGS}"
15211 _ldflags="${LDFLAGS}"
15213 # Check whether --with-bzip2 was given.
15214 if test "${with_bzip2+set}" = set; then :
15215 withval=$with_bzip2;
15216 if test -d "$withval" ; then
15217 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15218 LDFLAGS="${LDFLAGS} -L$withval/lib"
15226 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15227 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15228 # woefully out of date.
15229 if test "$withval" != no ; then
15230 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15232 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15234 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15235 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15236 $as_echo_n "(cached) " >&6
15238 ac_check_lib_save_LIBS=$LIBS
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15243 /* Override any GCC internal prototype to avoid an error.
15244 Use char because int might match the return type of a GCC
15245 builtin and then its argument prototype would still apply. */
15249 char BZ2_bzCompressInit ();
15253 return BZ2_bzCompressInit ();
15258 if ac_fn_c_try_link "$LINENO"; then :
15259 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15261 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15263 rm -f core conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15268 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15269 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15272 ZLIBS="$ZLIBS -lbz2"
15274 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15278 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15282 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15288 if test x"$have_bz2" = "xyes"; then
15289 ENABLE_BZIP2_SUPPORT_TRUE=
15290 ENABLE_BZIP2_SUPPORT_FALSE='#'
15292 ENABLE_BZIP2_SUPPORT_TRUE='#'
15293 ENABLE_BZIP2_SUPPORT_FALSE=
15299 # Check for readline support
15302 # Check whether --with-readline was given.
15303 if test "${with_readline+set}" = set; then :
15304 withval=$with_readline; _do_readline=$withval
15310 gnupg_cv_have_readline=no
15311 if test "$_do_readline" != "no" ; then
15312 if test -d "$withval" ; then
15313 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15314 LDFLAGS="${LDFLAGS} -L$withval/lib"
15317 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15318 _readline_save_libs=$LIBS
15319 _combo="-lreadline${_termcap:+ $_termcap}"
15320 LIBS="$LIBS $_combo"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15323 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15329 #include <readline/readline.h>
15330 #include <readline/history.h>
15336 rl_completion_func_t *completer;
15337 add_history("foobar");
15338 rl_catch_signals=0;
15339 rl_inhibit_completion=0;
15340 rl_attempted_completion_function=NULL;
15341 rl_completion_matches(NULL,NULL);
15347 if ac_fn_c_try_link "$LINENO"; then :
15348 _found_readline=yes
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15356 $as_echo "$_found_readline" >&6; }
15358 LIBS=$_readline_save_libs
15360 if test $_found_readline = yes ; then
15362 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15364 LIBREADLINE=$_combo
15366 gnupg_cv_have_readline=yes
15372 unset _readline_save_libs
15374 unset _found_readline
15379 if test "$development_version" = yes; then
15381 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15385 if test "$USE_MAINTAINER_MODE" = "yes"; then
15387 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15391 if test x$cross_compiling = xyes; then
15392 CROSS_COMPILING_TRUE=
15393 CROSS_COMPILING_FALSE='#'
15395 CROSS_COMPILING_TRUE='#'
15396 CROSS_COMPILING_FALSE=
15401 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15406 *** It seems that you are not using GNU make. Some make tools have serious
15407 *** flaws and you may not be able to build this software at all. Before you
15408 *** complain, please try GNU make: GNU make is easy to build and available
15409 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15411 $as_echo "$as_me: WARNING:
15413 *** It seems that you are not using GNU make. Some make tools have serious
15414 *** flaws and you may not be able to build this software at all. Before you
15415 *** complain, please try GNU make: GNU make is easy to build and available
15416 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15421 # Add some extra libs here so that previous tests don't fail for
15422 # mysterious reasons - the final link step should bail out.
15423 # W32SOCKLIBS is also defined so that if can be used for tools not
15424 # requiring any network stuff but linking to code in libcommon which
15425 # tracks in winsock stuff (e.g. init_common_subsystems).
15426 if test "$have_w32_system" = yes; then
15427 if test "$have_w32ce_system" = yes; then
15428 W32SOCKLIBS="-lws2"
15430 W32SOCKLIBS="-lws2_32"
15432 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15439 # TPM libtss library .. don't compile TPM support if we don't have it
15442 # Check whether --with-tss was given.
15443 if test "${with_tss+set}" = set; then :
15444 withval=$with_tss; with_tss=$withval
15446 with_tss=autodetect
15451 if test "$build_tpm2d" = "yes"; then
15453 _save_cflags="$CFLAGS"
15455 if test "$with_tss" = autodetect; then
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15457 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15458 if ${ac_cv_search_TSS_Create+:} false; then :
15459 $as_echo_n "(cached) " >&6
15461 ac_func_search_save_LIBS=$LIBS
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15471 char TSS_Create ();
15475 return TSS_Create ();
15480 for ac_lib in '' tss ibmtss; do
15481 if test -z "$ac_lib"; then
15482 ac_res="none required"
15485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15487 if ac_fn_c_try_link "$LINENO"; then :
15488 ac_cv_search_TSS_Create=$ac_res
15490 rm -f core conftest.err conftest.$ac_objext \
15492 if ${ac_cv_search_TSS_Create+:} false; then :
15496 if ${ac_cv_search_TSS_Create+:} false; then :
15499 ac_cv_search_TSS_Create=no
15501 rm conftest.$ac_ext
15502 LIBS=$ac_func_search_save_LIBS
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15505 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15506 ac_res=$ac_cv_search_TSS_Create
15507 if test "$ac_res" != no; then :
15508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15512 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15513 if ${ac_cv_search_Esys_Initialize+:} false; then :
15514 $as_echo_n "(cached) " >&6
15516 ac_func_search_save_LIBS=$LIBS
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15526 char Esys_Initialize ();
15530 return Esys_Initialize ();
15535 for ac_lib in '' tss2-esys; do
15536 if test -z "$ac_lib"; then
15537 ac_res="none required"
15540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 ac_cv_search_Esys_Initialize=$ac_res
15545 rm -f core conftest.err conftest.$ac_objext \
15547 if ${ac_cv_search_Esys_Initialize+:} false; then :
15551 if ${ac_cv_search_Esys_Initialize+:} false; then :
15554 ac_cv_search_Esys_Initialize=no
15556 rm conftest.$ac_ext
15557 LIBS=$ac_func_search_save_LIBS
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15560 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15561 ac_res=$ac_cv_search_Esys_Initialize
15562 if test "$ac_res" != no; then :
15563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15571 elif test "$with_tss" = ibm; then
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15573 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15574 if ${ac_cv_search_TSS_Create+:} false; then :
15575 $as_echo_n "(cached) " >&6
15577 ac_func_search_save_LIBS=$LIBS
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15581 /* Override any GCC internal prototype to avoid an error.
15582 Use char because int might match the return type of a GCC
15583 builtin and then its argument prototype would still apply. */
15587 char TSS_Create ();
15591 return TSS_Create ();
15596 for ac_lib in '' tss ibmtss; do
15597 if test -z "$ac_lib"; then
15598 ac_res="none required"
15601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15603 if ac_fn_c_try_link "$LINENO"; then :
15604 ac_cv_search_TSS_Create=$ac_res
15606 rm -f core conftest.err conftest.$ac_objext \
15608 if ${ac_cv_search_TSS_Create+:} false; then :
15612 if ${ac_cv_search_TSS_Create+:} false; then :
15615 ac_cv_search_TSS_Create=no
15617 rm conftest.$ac_ext
15618 LIBS=$ac_func_search_save_LIBS
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15621 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15622 ac_res=$ac_cv_search_TSS_Create
15623 if test "$ac_res" != no; then :
15624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15627 as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15630 elif test "$with_tss" = intel; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15632 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15633 if ${ac_cv_search_Esys_Initialize+:} false; then :
15634 $as_echo_n "(cached) " >&6
15636 ac_func_search_save_LIBS=$LIBS
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15646 char Esys_Initialize ();
15650 return Esys_Initialize ();
15655 for ac_lib in '' tss2-esys; do
15656 if test -z "$ac_lib"; then
15657 ac_res="none required"
15660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 ac_cv_search_Esys_Initialize=$ac_res
15665 rm -f core conftest.err conftest.$ac_objext \
15667 if ${ac_cv_search_Esys_Initialize+:} false; then :
15671 if ${ac_cv_search_Esys_Initialize+:} false; then :
15674 ac_cv_search_Esys_Initialize=no
15676 rm conftest.$ac_ext
15677 LIBS=$ac_func_search_save_LIBS
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15680 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15681 ac_res=$ac_cv_search_Esys_Initialize
15682 if test "$ac_res" != no; then :
15683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15686 as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15690 as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15693 if test "$have_libtss" = IBM; then
15694 LIBTSS_CFLAGS="-DTPM_POSIX"
15695 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15696 ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15697 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15699 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15703 ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15704 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15706 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15711 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15723 elif test "$have_libtss" = Intel; then
15725 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15726 # until version 2.4.0.
15728 # Note: the missing API is fairly serious and is also easily backportable
15729 # so keep the check below as is intead of going by library version number.
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15732 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15733 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15734 $as_echo_n "(cached) " >&6
15736 ac_check_lib_save_LIBS=$LIBS
15737 LIBS="-ltss2-esys $LIBS"
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15741 /* Override any GCC internal prototype to avoid an error.
15742 Use char because int might match the return type of a GCC
15743 builtin and then its argument prototype would still apply. */
15747 char Esys_TR_GetTpmHandle ();
15751 return Esys_TR_GetTpmHandle ();
15756 if ac_fn_c_try_link "$LINENO"; then :
15757 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15759 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15763 LIBS=$ac_check_lib_save_LIBS
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15766 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15767 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15768 cat >>confdefs.h <<_ACEOF
15769 #define HAVE_LIBTSS2_ESYS 1
15772 LIBS="-ltss2-esys $LIBS"
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15777 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15782 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15784 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15788 CFLAGS="$_save_cflags"
15789 if test "$have_libtss" != no; then
15791 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15793 # look for a TPM emulator for testing
15794 # Extract the first word of "tpm_server", so it can be a program name with args.
15795 set dummy tpm_server; ac_word=$2
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15797 $as_echo_n "checking for $ac_word... " >&6; }
15798 if ${ac_cv_path_TPMSERVER+:} false; then :
15799 $as_echo_n "(cached) " >&6
15803 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15808 for as_dir in $as_dummy
15811 test -z "$as_dir" && as_dir=.
15812 for ac_exec_ext in '' $ac_executable_extensions; do
15813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15814 ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15825 TPMSERVER=$ac_cv_path_TPMSERVER
15826 if test -n "$TPMSERVER"; then
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15828 $as_echo "$TPMSERVER" >&6; }
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15835 # Extract the first word of "swtpm", so it can be a program name with args.
15836 set dummy swtpm; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15838 $as_echo_n "checking for $ac_word... " >&6; }
15839 if ${ac_cv_path_SWTPM+:} false; then :
15840 $as_echo_n "(cached) " >&6
15844 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15849 for as_dir in $as_dummy
15852 test -z "$as_dir" && as_dir=.
15853 for ac_exec_ext in '' $ac_executable_extensions; do
15854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15855 ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15866 SWTPM=$ac_cv_path_SWTPM
15867 if test -n "$SWTPM"; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15869 $as_echo "$SWTPM" >&6; }
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15876 # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15877 set dummy swtpm_ioctl; ac_word=$2
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15879 $as_echo_n "checking for $ac_word... " >&6; }
15880 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15881 $as_echo_n "(cached) " >&6
15883 case $SWTPM_IOCTL in
15885 ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15890 for as_dir in $as_dummy
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15908 if test -n "$SWTPM_IOCTL"; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15910 $as_echo "$SWTPM_IOCTL" >&6; }
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15913 $as_echo "no" >&6; }
15917 # Extract the first word of "tssstartup", so it can be a program name with args.
15918 set dummy tssstartup; ac_word=$2
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15920 $as_echo_n "checking for $ac_word... " >&6; }
15921 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15922 $as_echo_n "(cached) " >&6
15924 case $TSSSTARTUP in
15926 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15930 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15931 for as_dir in $as_dummy
15934 test -z "$as_dir" && as_dir=.
15935 for ac_exec_ext in '' $ac_executable_extensions; do
15936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937 ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15948 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15949 if test -n "$TSSSTARTUP"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15951 $as_echo "$TSSSTARTUP" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15960 if test "$have_libtss" = no; then
15965 if test "$have_libtss" != no; then
15967 HAVE_LIBTSS_FALSE='#'
15969 HAVE_LIBTSS_TRUE='#'
15973 if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15975 TEST_LIBTSS_FALSE='#'
15977 TEST_LIBTSS_TRUE='#'
15984 # Setup gcc specific options
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15988 $as_echo "$as_me: checking for cc features" >&6;}
15989 if test "$GCC" = yes; then
15991 mycflags_save=$CFLAGS
15993 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15994 # options. This is the case for gcc >= 4.6
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15996 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
16000 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
16011 if ac_fn_c_try_compile "$LINENO"; then :
16012 _gcc_silent_wno=yes
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
16018 $as_echo "$_gcc_silent_wno" >&6; }
16020 # Note that it is okay to use CFLAGS here because these are just
16021 # warning options and the user should have a chance of overriding
16023 if test "$USE_MAINTAINER_MODE" = "yes"; then
16024 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
16025 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
16026 if test x"$_gcc_silent_wno" = xyes ; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
16030 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
16031 CFLAGS="-Wno-missing-field-initializers"
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16043 if ac_fn_c_try_compile "$LINENO"; then :
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16050 $as_echo "$_gcc_wopt" >&6; }
16052 if test x"$_gcc_wopt" = xyes ; then
16053 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
16054 mycflags="$mycflags -Wno-missing-field-initializers"
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
16058 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
16059 CFLAGS="-Wdeclaration-after-statement"
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16071 if ac_fn_c_try_compile "$LINENO"; then :
16076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16078 $as_echo "$_gcc_wopt" >&6; }
16079 if test x"$_gcc_wopt" = xyes ; then
16080 mycflags="$mycflags -Wdeclaration-after-statement"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
16084 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
16085 CFLAGS="-Wlogical-op -Werror"
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16097 if ac_fn_c_try_compile "$LINENO"; then :
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16104 $as_echo "$_gcc_wopt" >&6; }
16105 if test x"$_gcc_wopt" = xyes ; then
16106 mycflags="$mycflags -Wlogical-op"
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16110 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16123 if ac_fn_c_try_compile "$LINENO"; then :
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16130 $as_echo "$_gcc_wopt" >&6; }
16131 if test x"$_gcc_wopt" = xyes ; then
16132 mycflags="$mycflags -Wvla"
16136 mycflags="$mycflags -Wall"
16137 if test x"$_gcc_silent_wno" = xyes ; then
16138 mycflags="$mycflags -Wno-format-zero-length"
16142 if test x"$_gcc_silent_wno" = xyes ; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16146 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16147 CFLAGS="-Wno-pointer-sign"
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16159 if ac_fn_c_try_compile "$LINENO"; then :
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16166 $as_echo "$_gcc_psign" >&6; }
16168 if test x"$_gcc_psign" = xyes ; then
16169 mycflags="$mycflags -Wno-pointer-sign"
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16173 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16174 CFLAGS="-Wpointer-arith"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16186 if ac_fn_c_try_compile "$LINENO"; then :
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16193 $as_echo "$_gcc_psign" >&6; }
16194 if test x"$_gcc_psign" = xyes ; then
16195 mycflags="$mycflags -Wpointer-arith"
16198 CFLAGS="$mycflags $mycflags_save"
16199 if test "$use_libdns" = yes; then
16200 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
16201 USE_C99_CFLAGS="-std=gnu99"
16209 # This is handy for debugging so the compiler doesn't rearrange
16210 # things and eliminate variables.
16212 # Check whether --enable-optimization was given.
16213 if test "${enable_optimization+set}" = set; then :
16214 enableval=$enable_optimization; if test $enableval = no ; then
16215 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16221 # log_debug has certain requirements which might hamper portability.
16222 # Thus we use an option to enable it.
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16225 $as_echo_n "checking whether to enable log_clock... " >&6; }
16226 # Check whether --enable-log_clock was given.
16227 if test "${enable_log_clock+set}" = set; then :
16228 enableval=$enable_log_clock; enable_log_clock=$enableval
16230 enable_log_clock=no
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16234 $as_echo "$enable_log_clock" >&6; }
16235 if test "$enable_log_clock" = yes ; then
16237 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16241 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
16242 # misbehaving autoconf tests in case the user supplied -Werror.
16244 # Check whether --enable-werror was given.
16245 if test "${enable_werror+set}" = set; then :
16246 enableval=$enable_werror; if test $enableval = yes ; then
16247 CFLAGS="$CFLAGS -Werror"
16253 # Configure option --enable-all-tests
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16256 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16257 # Check whether --enable-all-tests was given.
16258 if test "${enable_all_tests+set}" = set; then :
16259 enableval=$enable_all_tests; run_all_tests=$enableval
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16265 $as_echo "$run_all_tests" >&6; }
16266 if test "$run_all_tests" = "yes"; then
16268 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16273 # Configure option --disable-tests
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16276 $as_echo_n "checking whether tests should be run... " >&6; }
16277 # Check whether --enable-tests was given.
16278 if test "${enable_tests+set}" = set; then :
16279 enableval=$enable_tests; run_tests=$enableval
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16285 $as_echo "$run_tests" >&6; }
16288 # We do not want support for the GNUPG_BUILDDIR environment variable
16289 # in a released version. However, our regression tests suite requires
16290 # this and thus we build with support for it during "make distcheck".
16291 # This configure option implements this along with the top Makefile's
16292 # AM_DISTCHECK_CONFIGURE_FLAGS.
16294 gnupg_builddir_envvar=no
16295 # Check whether --enable-gnupg-builddir-envvar was given.
16296 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16297 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16300 if test x"$gnupg_builddir_envvar" = x"yes"; then
16302 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16308 # To avoid problems with systemd cleaning up the /run/user directory,
16309 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16312 # Check whether --enable-run-gnupg-user-socket was given.
16313 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16314 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16317 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16319 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16325 # Decide what to build
16328 build_scdaemon_extra=""
16329 if test "$build_scdaemon" = "yes"; then
16330 if test $have_libusb = no; then
16331 build_scdaemon_extra="without internal CCID driver"
16333 if test -n "$build_scdaemon_extra"; then
16334 build_scdaemon_extra="(${build_scdaemon_extra})"
16340 # Set variables for use by automake makefiles.
16342 if test "$build_gpg" = "yes"; then
16344 BUILD_GPG_FALSE='#'
16350 if test "$build_gpgsm" = "yes"; then
16352 BUILD_GPGSM_FALSE='#'
16354 BUILD_GPGSM_TRUE='#'
16358 if test "$build_agent" = "yes"; then
16360 BUILD_AGENT_FALSE='#'
16362 BUILD_AGENT_TRUE='#'
16366 if test "$build_scdaemon" = "yes"; then
16367 BUILD_SCDAEMON_TRUE=
16368 BUILD_SCDAEMON_FALSE='#'
16370 BUILD_SCDAEMON_TRUE='#'
16371 BUILD_SCDAEMON_FALSE=
16374 if test "$build_g13" = "yes"; then
16376 BUILD_G13_FALSE='#'
16382 if test "$build_dirmngr" = "yes"; then
16383 BUILD_DIRMNGR_TRUE=
16384 BUILD_DIRMNGR_FALSE='#'
16386 BUILD_DIRMNGR_TRUE='#'
16387 BUILD_DIRMNGR_FALSE=
16390 if test "$build_keyboxd" = "yes"; then
16391 BUILD_KEYBOXD_TRUE=
16392 BUILD_KEYBOXD_FALSE='#'
16394 BUILD_KEYBOXD_TRUE='#'
16395 BUILD_KEYBOXD_FALSE=
16398 if test "$build_tpm2d" = "yes"; then
16400 BUILD_TPM2D_FALSE='#'
16402 BUILD_TPM2D_TRUE='#'
16406 if test "$build_doc" = "yes"; then
16408 BUILD_DOC_FALSE='#'
16414 if test "$build_gpgtar" = "yes"; then
16416 BUILD_GPGTAR_FALSE='#'
16418 BUILD_GPGTAR_TRUE='#'
16419 BUILD_GPGTAR_FALSE=
16422 if test "$build_wks_tools" = "yes"; then
16423 BUILD_WKS_TOOLS_TRUE=
16424 BUILD_WKS_TOOLS_FALSE='#'
16426 BUILD_WKS_TOOLS_TRUE='#'
16427 BUILD_WKS_TOOLS_FALSE=
16431 if test "$run_tests" != yes; then
16432 DISABLE_TESTS_TRUE=
16433 DISABLE_TESTS_FALSE='#'
16435 DISABLE_TESTS_TRUE='#'
16436 DISABLE_TESTS_FALSE=
16439 if test "$card_support" = yes; then
16440 ENABLE_CARD_SUPPORT_TRUE=
16441 ENABLE_CARD_SUPPORT_FALSE='#'
16443 ENABLE_CARD_SUPPORT_TRUE='#'
16444 ENABLE_CARD_SUPPORT_FALSE=
16447 if test "$use_trust_models" = no; then
16448 NO_TRUST_MODELS_TRUE=
16449 NO_TRUST_MODELS_FALSE='#'
16451 NO_TRUST_MODELS_TRUE='#'
16452 NO_TRUST_MODELS_FALSE=
16455 if test "$use_tofu" = yes; then
16465 # Set some defines for use gpgconf.
16467 if test "$build_gpg" = yes ; then
16469 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16472 if test "$build_gpgsm" = yes ; then
16474 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16477 if test "$build_agent" = yes ; then
16479 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16482 if test "$build_scdaemon" = yes ; then
16484 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16487 if test "$build_dirmngr" = yes ; then
16489 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16492 if test "$build_keyboxd" = yes ; then
16494 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16497 if test "$build_tpm2d" = yes ; then
16499 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16502 if test "$build_g13" = yes ; then
16504 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16510 # Define Name strings
16513 cat >>confdefs.h <<_ACEOF
16514 #define GNUPG_NAME "GnuPG"
16519 cat >>confdefs.h <<_ACEOF
16520 #define GPG_NAME "gpg"
16524 cat >>confdefs.h <<_ACEOF
16525 #define GPG_DISP_NAME "GnuPG"
16530 cat >>confdefs.h <<_ACEOF
16531 #define GPGSM_NAME "gpgsm"
16535 cat >>confdefs.h <<_ACEOF
16536 #define GPGSM_DISP_NAME "GPGSM"
16541 cat >>confdefs.h <<_ACEOF
16542 #define GPG_AGENT_NAME "gpg-agent"
16546 cat >>confdefs.h <<_ACEOF
16547 #define GPG_AGENT_DISP_NAME "GPG Agent"
16552 cat >>confdefs.h <<_ACEOF
16553 #define TPM2DAEMON_NAME "tpm2daemon"
16557 cat >>confdefs.h <<_ACEOF
16558 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16563 cat >>confdefs.h <<_ACEOF
16564 #define SCDAEMON_NAME "scdaemon"
16568 cat >>confdefs.h <<_ACEOF
16569 #define SCDAEMON_DISP_NAME "SCDaemon"
16574 cat >>confdefs.h <<_ACEOF
16575 #define DIRMNGR_NAME "dirmngr"
16579 cat >>confdefs.h <<_ACEOF
16580 #define DIRMNGR_DISP_NAME "DirMngr"
16585 cat >>confdefs.h <<_ACEOF
16586 #define KEYBOXD_NAME "keyboxd"
16590 cat >>confdefs.h <<_ACEOF
16591 #define KEYBOXD_DISP_NAME "Keyboxd"
16596 cat >>confdefs.h <<_ACEOF
16597 #define G13_NAME "g13"
16601 cat >>confdefs.h <<_ACEOF
16602 #define G13_DISP_NAME "G13"
16607 cat >>confdefs.h <<_ACEOF
16608 #define GPGCONF_NAME "gpgconf"
16612 cat >>confdefs.h <<_ACEOF
16613 #define GPGCONF_DISP_NAME "GPGConf"
16618 cat >>confdefs.h <<_ACEOF
16619 #define GPGTAR_NAME "gpgtar"
16624 cat >>confdefs.h <<_ACEOF
16625 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16629 cat >>confdefs.h <<_ACEOF
16630 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16634 cat >>confdefs.h <<_ACEOF
16635 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16639 cat >>confdefs.h <<_ACEOF
16640 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16644 cat >>confdefs.h <<_ACEOF
16645 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16649 cat >>confdefs.h <<_ACEOF
16650 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16654 cat >>confdefs.h <<_ACEOF
16655 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16659 cat >>confdefs.h <<_ACEOF
16660 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16664 cat >>confdefs.h <<_ACEOF
16665 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16669 cat >>confdefs.h <<_ACEOF
16670 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16675 cat >>confdefs.h <<_ACEOF
16676 #define GPGEXT_GPG "gpg"
16680 if test "$have_w32_system" = yes; then
16682 cat >>confdefs.h <<_ACEOF
16683 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16690 # Provide information about the build.
16692 BUILD_REVISION="3bf8d7e1b"
16695 cat >>confdefs.h <<_ACEOF
16696 #define BUILD_REVISION "$BUILD_REVISION"
16700 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16701 BUILD_VERSION="${BUILD_VERSION}15352"
16702 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16706 # Check whether --enable-build-timestamp was given.
16707 if test "${enable_build_timestamp+set}" = set; then :
16708 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16709 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16711 BUILD_TIMESTAMP="$enableval"
16713 BUILD_HOSTNAME="$ac_hostname"
16715 BUILD_TIMESTAMP="<none>"
16716 BUILD_HOSTNAME="<anon>"
16721 cat >>confdefs.h <<_ACEOF
16722 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16729 # Print errors here so that they are visible all
16730 # together and the user can acquire them all together.
16733 if test "$have_gpg_error" = "no"; then
16735 { $as_echo "$as_me:${as_lineno-$LINENO}:
16737 *** You need libgpg-error to build this program.
16738 ** This library is for example available at
16739 *** https://gnupg.org/ftp/gcrypt/gpgrt
16740 *** (at least version $NEED_GPGRT_VERSION is required.)
16744 *** You need libgpg-error to build this program.
16745 ** This library is for example available at
16746 *** https://gnupg.org/ftp/gcrypt/gpgrt
16747 *** (at least version $NEED_GPGRT_VERSION is required.)
16750 if test "$have_libgcrypt" = "no"; then
16752 { $as_echo "$as_me:${as_lineno-$LINENO}:
16754 *** You need libgcrypt to build this program.
16755 ** This library is for example available at
16756 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16757 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16761 *** You need libgcrypt to build this program.
16762 ** This library is for example available at
16763 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16764 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16767 if test "$have_libassuan" = "no"; then
16769 { $as_echo "$as_me:${as_lineno-$LINENO}:
16771 *** You need libassuan to build this program.
16772 *** This library is for example available at
16773 *** https://gnupg.org/ftp/gcrypt/libassuan/
16774 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16778 *** You need libassuan to build this program.
16779 *** This library is for example available at
16780 *** https://gnupg.org/ftp/gcrypt/libassuan/
16781 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16784 if test "$have_ksba" = "no"; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}:
16788 *** You need libksba to build this program.
16789 *** This library is for example available at
16790 *** https://gnupg.org/ftp/gcrypt/libksba/
16791 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16795 *** You need libksba to build this program.
16796 *** This library is for example available at
16797 *** https://gnupg.org/ftp/gcrypt/libksba/
16798 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16801 if test "$gnupg_have_ldap" = yes; then
16802 if test "$have_w32ce_system" = yes; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}:
16804 *** Note that CeGCC might be broken, a package fixing this is:
16805 *** http://files.kolab.org/local/windows-ce/
16806 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16807 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16810 *** Note that CeGCC might be broken, a package fixing this is:
16811 *** http://files.kolab.org/local/windows-ce/
16812 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16813 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16817 if test "$have_npth" = "no"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}:
16821 *** It is now required to build with support for the
16822 *** New Portable Threads Library (nPth). Please install this
16823 *** library first. The library is for example available at
16824 *** https://gnupg.org/ftp/gcrypt/npth/
16825 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16829 *** It is now required to build with support for the
16830 *** New Portable Threads Library (nPth). Please install this
16831 *** library first. The library is for example available at
16832 *** https://gnupg.org/ftp/gcrypt/npth/
16833 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16837 if test "$require_iconv" = yes; then
16838 if test "$am_func_iconv" != yes; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}:
16842 *** The system does not provide a working iconv function. Please
16843 *** install a suitable library; for example GNU Libiconv which is
16845 *** https://ftp.gnu.org/gnu/libiconv/
16849 *** The system does not provide a working iconv function. Please
16850 *** install a suitable library; for example GNU Libiconv which is
16852 *** https://ftp.gnu.org/gnu/libiconv/
16857 if test "$use_ccid_driver" = yes; then
16858 if test "$have_libusb" != yes; then
16860 { $as_echo "$as_me:${as_lineno-$LINENO}:
16862 *** You need libusb to build the internal ccid driver. Please
16863 *** install a libusb suitable for your system.
16867 *** You need libusb to build the internal ccid driver. Please
16868 *** install a libusb suitable for your system.
16873 if test "$die" = "yes"; then
16876 *** Required libraries not found. Please consult the above messages
16877 *** and install them before running configure again.
16883 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16887 cat >confcache <<\_ACEOF
16888 # This file is a shell script that caches the results of configure
16889 # tests run on this system so they can be shared between configure
16890 # scripts and configure runs, see configure's option --config-cache.
16891 # It is not useful on other systems. If it contains results you don't
16892 # want to keep, you may remove or edit it.
16894 # config.status only pays attention to the cache file if you give it
16895 # the --recheck option to rerun configure.
16897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16899 # following values.
16903 # The following way of writing the cache mishandles newlines in values,
16904 # but we know of no workaround that is simple, portable, and efficient.
16905 # So, we kill variables containing newlines.
16906 # Ultrix sh set writes to stderr and can't be redirected directly,
16907 # and sets the high bit in the cache file unless we assign to the vars.
16909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16910 eval ac_val=\$$ac_var
16914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16918 _ | IFS | as_nl) ;; #(
16919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16920 *) { eval $ac_var=; unset $ac_var;} ;;
16926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16927 *${as_nl}ac_space=\ *)
16928 # `set' does not quote correctly, so add quotes: double-quote
16929 # substitution turns \\\\ into \\, and sed turns \\ into \.
16932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16935 # `set' quotes correctly as required by POSIX, so do not add quotes.
16936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16950 if test -w "$cache_file"; then
16951 if test "x$cache_file" != "x/dev/null"; then
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16953 $as_echo "$as_me: updating cache $cache_file" >&6;}
16954 if test ! -f "$cache_file" || test -h "$cache_file"; then
16955 cat confcache >"$cache_file"
16957 case $cache_file in #(
16959 mv -f confcache "$cache_file"$$ &&
16960 mv -f "$cache_file"$$ "$cache_file" ;; #(
16962 mv -f confcache "$cache_file" ;;
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16968 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16973 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16974 # Let make expand exec_prefix.
16975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16977 DEFS=-DHAVE_CONFIG_H
16982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16983 # 1. Remove the extension, and $U if already installed.
16984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16987 # will be set to the directory where LIBOBJS objects are built.
16988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16991 LIBOBJS=$ac_libobjs
16993 LTLIBOBJS=$ac_ltlibobjs
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16997 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16998 if test -n "$am_sleep_pid"; then
16999 # Hide warnings about reused PIDs.
17000 wait $am_sleep_pid 2>/dev/null
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17003 $as_echo "done" >&6; }
17004 if test -n "$EXEEXT"; then
17006 am__EXEEXT_FALSE='#'
17008 am__EXEEXT_TRUE='#'
17012 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17013 as_fn_error $? "conditional \"AMDEP\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17017 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
17021 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
17025 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
17029 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
17030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17032 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
17033 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
17034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
17037 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
17041 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
17042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
17045 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
17046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
17049 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
17053 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
17057 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17061 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17065 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17066 if test -n "$am_sleep_pid"; then
17067 # Hide warnings about reused PIDs.
17068 wait $am_sleep_pid 2>/dev/null
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17071 $as_echo "done" >&6; }
17072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
17077 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
17078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
17081 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
17082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17084 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
17085 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
17086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17088 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
17089 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
17090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17092 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
17093 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
17094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17096 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
17097 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
17098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17100 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17101 as_fn_error $? "conditional \"SQLITE3\" was never defined.
17102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17104 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17105 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17108 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17109 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17112 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17113 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17116 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17117 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17120 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17121 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17125 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17128 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17129 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17132 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17133 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17136 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17137 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17140 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17141 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17145 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17149 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17153 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17157 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17160 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17161 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17164 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17165 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17168 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17169 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17172 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17173 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17176 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17177 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17180 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17181 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 : "${CONFIG_STATUS=./config.status}"
17187 ac_clean_files_save=$ac_clean_files
17188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17190 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17192 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17194 # Generated by $as_me.
17195 # Run this file to recreate the current configuration.
17196 # Compiler output produced by configure, useful for debugging
17197 # configure, is in config.log if it exists.
17200 ac_cs_recheck=false
17203 SHELL=\${CONFIG_SHELL-$SHELL}
17206 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17207 ## -------------------- ##
17208 ## M4sh Initialization. ##
17209 ## -------------------- ##
17211 # Be more Bourne compatible
17212 DUALCASE=1; export DUALCASE # for MKS sh
17213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17216 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17217 # is contrary to our usage. Disable this feature.
17218 alias -g '${1+"$@"}'='"$@"'
17219 setopt NO_GLOB_SUBST
17221 case `(set -o) 2>/dev/null` in #(
17233 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17234 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17235 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17237 # Prefer a ksh shell builtin over an external printf program on Solaris,
17238 # but without wasting forks for bash or zsh.
17239 if test -z "$BASH_VERSION$ZSH_VERSION" \
17240 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17241 as_echo='print -r --'
17242 as_echo_n='print -rn --'
17243 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17244 as_echo='printf %s\n'
17245 as_echo_n='printf %s'
17247 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17248 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17249 as_echo_n='/usr/ucb/echo -n'
17251 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17252 as_echo_n_body='eval
17256 expr "X$arg" : "X\\(.*\\)$as_nl";
17257 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17259 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17261 export as_echo_n_body
17262 as_echo_n='sh -c $as_echo_n_body as_echo'
17264 export as_echo_body
17265 as_echo='sh -c $as_echo_body as_echo'
17268 # The user is always right.
17269 if test "${PATH_SEPARATOR+set}" != set; then
17271 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17272 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17279 # We need space, tab and new line, in precisely that order. Quoting is
17280 # there to prevent editors from complaining about space-tab.
17281 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17282 # splitting by setting IFS to empty value.)
17285 # Find who we are. Look in the path if we contain no directory separator.
17288 *[\\/]* ) as_myself=$0 ;;
17289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17290 for as_dir in $PATH
17293 test -z "$as_dir" && as_dir=.
17294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17300 # We did not find ourselves, most probably we were run as `sh COMMAND'
17301 # in which case we are not to be found in the path.
17302 if test "x$as_myself" = x; then
17305 if test ! -f "$as_myself"; then
17306 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17310 # Unset variables that we do not need and which cause bugs (e.g. in
17311 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17312 # suppresses any "Segmentation fault" message there. '((' could
17313 # trigger a bug in pdksh 5.2.14.
17314 for as_var in BASH_ENV ENV MAIL MAILPATH
17315 do eval test x\${$as_var+set} = xset \
17316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17329 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17332 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17333 # ----------------------------------------
17334 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17335 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17336 # script with STATUS, using 1 if that was 0.
17339 as_status=$1; test $as_status -eq 0 && as_status=1
17341 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17342 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17344 $as_echo "$as_me: error: $2" >&2
17345 as_fn_exit $as_status
17349 # as_fn_set_status STATUS
17350 # -----------------------
17351 # Set $? to STATUS, without forking.
17352 as_fn_set_status ()
17355 } # as_fn_set_status
17357 # as_fn_exit STATUS
17358 # -----------------
17359 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17363 as_fn_set_status $1
17369 # Portably unset VAR.
17372 { eval $1=; unset $1;}
17374 as_unset=as_fn_unset
17375 # as_fn_append VAR VALUE
17376 # ----------------------
17377 # Append the text in VALUE to the end of the definition contained in VAR. Take
17378 # advantage of any shell optimizations that allow amortized linear growth over
17379 # repeated appends, instead of the typical quadratic growth present in naive
17381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17382 eval 'as_fn_append ()
17393 # as_fn_arith ARG...
17394 # ------------------
17395 # Perform arithmetic evaluation on the ARGs, and store the result in the
17396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17397 # must be portable across $(()) and expr.
17398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17399 eval 'as_fn_arith ()
17406 as_val=`expr "$@" || test $? -eq 1`
17411 if expr a : '\(a\)' >/dev/null 2>&1 &&
17412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17418 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17419 as_basename=basename
17424 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17430 as_me=`$as_basename -- "$0" ||
17431 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17432 X"$0" : 'X\(//\)$' \| \
17433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17435 sed '/^.*\/\([^/][^/]*\)\/*$/{
17449 # Avoid depending upon Character Ranges.
17450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17453 as_cr_digits='0123456789'
17454 as_cr_alnum=$as_cr_Letters$as_cr_digits
17456 ECHO_C= ECHO_N= ECHO_T=
17457 case `echo -n x` in #(((((
17459 case `echo 'xy\c'` in
17460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17469 rm -f conf$$ conf$$.exe conf$$.file
17470 if test -d conf$$.dir; then
17471 rm -f conf$$.dir/conf$$.file
17474 mkdir conf$$.dir 2>/dev/null
17476 if (echo >conf$$.file) 2>/dev/null; then
17477 if ln -s conf$$.file conf$$ 2>/dev/null; then
17479 # ... but there are two gotchas:
17480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17482 # In both cases, we have to default to `cp -pR'.
17483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17485 elif ln conf$$.file conf$$ 2>/dev/null; then
17493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17494 rmdir conf$$.dir 2>/dev/null
17499 # Create "$as_dir" as a directory, including parents if necessary.
17504 -*) as_dir=./$as_dir;;
17506 test -d "$as_dir" || eval $as_mkdir_p || {
17510 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17511 *) as_qdir=$as_dir;;
17513 as_dirs="'$as_qdir' $as_dirs"
17514 as_dir=`$as_dirname -- "$as_dir" ||
17515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17516 X"$as_dir" : 'X\(//\)[^/]' \| \
17517 X"$as_dir" : 'X\(//\)$' \| \
17518 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17519 $as_echo X"$as_dir" |
17520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17524 /^X\(\/\/\)[^/].*/{
17537 test -d "$as_dir" && break
17539 test -z "$as_dirs" || eval "mkdir $as_dirs"
17540 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17544 if mkdir -p . 2>/dev/null; then
17545 as_mkdir_p='mkdir -p "$as_dir"'
17547 test -d ./-p && rmdir ./-p
17552 # as_fn_executable_p FILE
17553 # -----------------------
17554 # Test if FILE is an executable regular file.
17555 as_fn_executable_p ()
17557 test -f "$1" && test -x "$1"
17558 } # as_fn_executable_p
17559 as_test_x='test -x'
17560 as_executable_p=as_fn_executable_p
17562 # Sed expression to map a string onto a valid CPP name.
17563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17565 # Sed expression to map a string onto a valid variable name.
17566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17570 ## ----------------------------------- ##
17571 ## Main body of $CONFIG_STATUS script. ##
17572 ## ----------------------------------- ##
17574 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17577 # Save the log message, to keep $0 and so on meaningful, and to
17578 # report actual input values of CONFIG_FILES etc. instead of their
17579 # values after options handling.
17581 This file was extended by gnupg $as_me 2.3.2, which was
17582 generated by GNU Autoconf 2.69. Invocation command line was
17584 CONFIG_FILES = $CONFIG_FILES
17585 CONFIG_HEADERS = $CONFIG_HEADERS
17586 CONFIG_LINKS = $CONFIG_LINKS
17587 CONFIG_COMMANDS = $CONFIG_COMMANDS
17590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17595 case $ac_config_files in *"
17596 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17599 case $ac_config_headers in *"
17600 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17605 # Files that config.status was made for.
17606 config_files="$ac_config_files"
17607 config_headers="$ac_config_headers"
17608 config_commands="$ac_config_commands"
17612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17614 \`$as_me' instantiates files and other configuration actions
17615 from templates according to the current configuration. Unless the files
17616 and actions are specified as TAGs, all are instantiated by default.
17618 Usage: $0 [OPTION]... [TAG]...
17620 -h, --help print this help, then exit
17621 -V, --version print version number and configuration settings, then exit
17622 --config print configuration, then exit
17623 -q, --quiet, --silent
17624 do not print progress messages
17625 -d, --debug don't remove temporary files
17626 --recheck update $as_me by reconfiguring in the same conditions
17627 --file=FILE[:TEMPLATE]
17628 instantiate the configuration file FILE
17629 --header=FILE[:TEMPLATE]
17630 instantiate the configuration header FILE
17632 Configuration files:
17635 Configuration headers:
17638 Configuration commands:
17641 Report bugs to <https://bugs.gnupg.org>."
17644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17645 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17647 gnupg config.status 2.3.2
17648 configured by $0, generated by GNU Autoconf 2.69,
17649 with options \\"\$ac_cs_config\\"
17651 Copyright (C) 2012 Free Software Foundation, Inc.
17652 This config.status script is free software; the Free Software Foundation
17653 gives unlimited permission to copy, distribute and modify it."
17660 test -n "\$AWK" || AWK=awk
17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664 # The default lists apply if the user does not specify any file.
17670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17687 # Handling of the options.
17688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17691 $as_echo "$ac_cs_version"; exit ;;
17692 --config | --confi | --conf | --con | --co | --c )
17693 $as_echo "$ac_cs_config"; exit ;;
17694 --debug | --debu | --deb | --de | --d | -d )
17696 --file | --fil | --fi | --f )
17699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17700 '') as_fn_error $? "missing file argument" ;;
17702 as_fn_append CONFIG_FILES " '$ac_optarg'"
17703 ac_need_defaults=false;;
17704 --header | --heade | --head | --hea )
17707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17709 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17710 ac_need_defaults=false;;
17712 # Conflict between --help and --header
17713 as_fn_error $? "ambiguous option: \`$1'
17714 Try \`$0 --help' for more information.";;
17715 --help | --hel | -h )
17716 $as_echo "$ac_cs_usage"; exit ;;
17717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17721 # This is an error.
17722 -*) as_fn_error $? "unrecognized option: \`$1'
17723 Try \`$0 --help' for more information." ;;
17725 *) as_fn_append ac_config_targets " $1"
17726 ac_need_defaults=false ;;
17732 ac_configure_extra_args=
17734 if $ac_cs_silent; then
17736 ac_configure_extra_args="$ac_configure_extra_args --silent"
17740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741 if \$ac_cs_recheck; then
17742 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17745 CONFIG_SHELL='$SHELL'
17746 export CONFIG_SHELL
17751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17756 ## Running $as_me. ##
17762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17766 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17767 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17768 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17769 # from automake < 1.5.
17770 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17771 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17772 LINGUAS="${LINGUAS-%UNSET%}"
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17779 # Handling of arguments.
17780 for ac_config_target in $ac_config_targets
17782 case $ac_config_target in
17783 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17784 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17785 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17786 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17788 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17789 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17790 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17791 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17792 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17793 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17794 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17795 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17796 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17797 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17798 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17799 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17800 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17801 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17802 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17803 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17804 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17805 "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17806 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17807 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17808 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17809 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17810 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17811 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17812 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17813 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17814 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17815 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17816 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17823 # If the user did not use the arguments to specify the items to instantiate,
17824 # then the envvar interface is used. Set only those that are not.
17825 # We use the long form for the default assignment because of an extremely
17826 # bizarre bug on SunOS 4.1.3.
17827 if $ac_need_defaults; then
17828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17833 # Have a temporary directory for convenience. Make it in the build tree
17834 # simply because there is no reason against having it here, and in addition,
17835 # creating and moving files from /tmp can sometimes cause problems.
17836 # Hook for its removal unless debugging.
17837 # Note that there is a small window in which the directory will not be cleaned:
17838 # after its creation but before its name has been assigned to `$tmp'.
17842 trap 'exit_status=$?
17843 : "${ac_tmp:=$tmp}"
17844 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17846 trap 'as_fn_exit 1' 1 2 13 15
17848 # Create a (secure) tmp directory for tmp files.
17851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17855 tmp=./conf$$-$RANDOM
17856 (umask 077 && mkdir "$tmp")
17857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17860 # Set up the scripts for CONFIG_FILES section.
17861 # No need to generate them if there are no CONFIG_FILES.
17862 # This happens for instance with `./config.status config.h'.
17863 if test -n "$CONFIG_FILES"; then
17866 ac_cr=`echo X | tr X '\015'`
17867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17868 # But we know of no other shell where ac_cr would be empty at this
17869 # point, so we can use a bashism as a fallback.
17870 if test "x$ac_cr" = x; then
17871 eval ac_cr=\$\'\\r\'
17873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17877 ac_cs_awk_cr=$ac_cr
17880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17885 echo "cat >conf$$subs.awk <<_ACEOF" &&
17886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17888 } >conf$$subs.sh ||
17889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17892 for ac_last_try in false false false false false :; do
17893 . ./conf$$subs.sh ||
17894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17897 if test $ac_delim_n = $ac_delim_num; then
17899 elif $ac_last_try; then
17900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17905 rm -f conf$$subs.sh
17907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17912 s/^/S["/; s/!.*/"]=/
17922 s/\(.\{148\}\)..*/\1/
17924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17936 s/\(.\{148\}\)..*/\1/
17938 s/["\\]/\\&/g; s/^/"/; s/$/"/
17942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17947 ' <conf$$subs.awk | sed '
17952 ' >>$CONFIG_STATUS || ac_write_fail=1
17953 rm -f conf$$subs.awk
17954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17957 for (key in S) S_is_set[key] = 1
17963 nfields = split(line, field, "@")
17965 len = length(field[1])
17966 for (i = 2; i < nfields; i++) {
17968 keylen = length(key)
17969 if (S_is_set[key]) {
17971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17972 len += length(value) + length(field[++i])
17983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17989 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17994 # trailing colons and then remove the whole line if VPATH becomes empty
17995 # (actually we leave an empty line to preserve line numbers).
17996 if test "x$srcdir" = x.; then
17997 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016 fi # test -n "$CONFIG_FILES"
18018 # Set up the scripts for CONFIG_HEADERS section.
18019 # No need to generate them if there are no CONFIG_HEADERS.
18020 # This happens for instance with `./config.status Makefile'.
18021 if test -n "$CONFIG_HEADERS"; then
18022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18026 # Transform confdefs.h into an awk script `defines.awk', embedded as
18027 # here-document in config.status, that substitutes the proper values into
18028 # config.h.in to produce config.h.
18030 # Create a delimiter string that does not exist in confdefs.h, to ease
18031 # handling of long lines.
18033 for ac_last_try in false false :; do
18034 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18035 if test -z "$ac_tt"; then
18037 elif $ac_last_try; then
18038 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18044 # For the awk script, D is an array of macro values keyed by name,
18045 # likewise P contains macro parameters if any. Preserve backslash
18046 # newline sequences.
18048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18050 s/.\{148\}/&'"$ac_delim"'/g
18053 s/^[ ]*#[ ]*define[ ][ ]*/ /
18060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18062 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18067 D["\1"]=" \3\\\\\\n"\\/p
18069 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18074 s/.\{148\}/&'"$ac_delim"'/g
18079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18084 ' <confdefs.h | sed '
18085 s/'"$ac_delim"'/"\\\
18086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18089 for (key in D) D_is_set[key] = 1
18092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18094 split(line, arg, " ")
18095 if (arg[1] == "#") {
18099 defundef = substr(arg[1], 2)
18102 split(mac1, mac2, "(") #)
18104 prefix = substr(line, 1, index(line, defundef) - 1)
18105 if (D_is_set[macro]) {
18106 # Preserve the white space surrounding the "#".
18107 print prefix "define", macro P[macro] D[macro]
18110 # Replace #undef with comments. This is necessary, for example,
18111 # in the case of _POSIX_SOURCE, which is predefined and required
18112 # on some systems where configure will not decide to define it.
18113 if (defundef == "undef") {
18114 print "/*", prefix defundef, macro, "*/"
18122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18124 fi # test -n "$CONFIG_HEADERS"
18127 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18132 :[FHLC]) ac_mode=$ac_tag; continue;;
18134 case $ac_mode$ac_tag in
18136 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18137 :[FH]-) ac_tag=-:-;;
18138 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18155 -) ac_f="$ac_tmp/stdin";;
18156 *) # Look for the file first in the build tree, then in the source tree
18157 # (if the path is not absolute). The absolute path cannot be DOS-style,
18158 # because $ac_f cannot contain `:'.
18162 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18164 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18166 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18167 as_fn_append ac_file_inputs " '$ac_f'"
18170 # Let's still pretend it is `configure' which instantiates (i.e., don't
18171 # use $as_me), people would be surprised to read:
18172 # /* config.h. Generated by config.status. */
18173 configure_input='Generated from '`
18174 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18176 if test x"$ac_file" != x-; then
18177 configure_input="$ac_file. $configure_input"
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18179 $as_echo "$as_me: creating $ac_file" >&6;}
18181 # Neutralize special characters interpreted by sed in replacement strings.
18182 case $configure_input in #(
18183 *\&* | *\|* | *\\* )
18184 ac_sed_conf_input=`$as_echo "$configure_input" |
18185 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18186 *) ac_sed_conf_input=$configure_input;;
18190 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18196 ac_dir=`$as_dirname -- "$ac_file" ||
18197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18198 X"$ac_file" : 'X\(//\)[^/]' \| \
18199 X"$ac_file" : 'X\(//\)$' \| \
18200 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18201 $as_echo X"$ac_file" |
18202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18206 /^X\(\/\/\)[^/].*/{
18219 as_dir="$ac_dir"; as_fn_mkdir_p
18223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18225 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18226 # A ".." for each directory in $ac_dir_suffix.
18227 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18228 case $ac_top_builddir_sub in
18229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18233 ac_abs_top_builddir=$ac_pwd
18234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18235 # for backward compatibility:
18236 ac_top_builddir=$ac_top_build_prefix
18239 .) # We are building in place.
18241 ac_top_srcdir=$ac_top_builddir_sub
18242 ac_abs_top_srcdir=$ac_pwd ;;
18243 [\\/]* | ?:[\\/]* ) # Absolute name.
18244 ac_srcdir=$srcdir$ac_dir_suffix;
18245 ac_top_srcdir=$srcdir
18246 ac_abs_top_srcdir=$srcdir ;;
18247 *) # Relative name.
18248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18249 ac_top_srcdir=$ac_top_build_prefix$srcdir
18250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18262 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18263 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18265 ac_MKDIR_P=$MKDIR_P
18267 [\\/$]* | ?:[\\/]* ) ;;
18268 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18273 # If the template does not know about datarootdir, expand it.
18274 # FIXME: This hack should be removed a few years after 2.60.
18275 ac_datarootdir_hack=; ac_datarootdir_seen=
18286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18287 *datarootdir*) ac_datarootdir_seen=yes;;
18288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18293 ac_datarootdir_hack='
18294 s&@datadir@&$datadir&g
18295 s&@docdir@&$docdir&g
18296 s&@infodir@&$infodir&g
18297 s&@localedir@&$localedir&g
18298 s&@mandir@&$mandir&g
18299 s&\\\${datarootdir}&$datarootdir&g' ;;
18303 # Neutralize VPATH when `$srcdir' = `.'.
18304 # Shell code in configure.ac might set extrasub.
18305 # FIXME: do we really want to maintain this feature?
18306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307 ac_sed_extra="$ac_vpsub
18310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18313 s|@configure_input@|$ac_sed_conf_input|;t t
18314 s&@top_builddir@&$ac_top_builddir_sub&;t t
18315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18316 s&@srcdir@&$ac_srcdir&;t t
18317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18318 s&@top_srcdir@&$ac_top_srcdir&;t t
18319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18320 s&@builddir@&$ac_builddir&;t t
18321 s&@abs_builddir@&$ac_abs_builddir&;t t
18322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18323 s&@INSTALL@&$ac_INSTALL&;t t
18324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18325 $ac_datarootdir_hack
18327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18328 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18331 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18332 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18333 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18335 which seems to be undefined. Please make sure it is defined" >&5
18336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18337 which seems to be undefined. Please make sure it is defined" >&2;}
18339 rm -f "$ac_tmp/stdin"
18341 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18342 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18350 if test x"$ac_file" != x-; then
18352 $as_echo "/* $configure_input */" \
18353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18354 } >"$ac_tmp/config.h" \
18355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18356 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18361 mv "$ac_tmp/config.h" "$ac_file" \
18362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18365 $as_echo "/* $configure_input */" \
18366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18367 || as_fn_error $? "could not create -" "$LINENO" 5
18369 # Compute "$ac_file"'s index in $config_headers.
18372 for _am_header in $config_headers :; do
18373 case $_am_header in
18374 $_am_arg | $_am_arg:* )
18377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18382 X"$_am_arg" : 'X\(//\)[^/]' \| \
18383 X"$_am_arg" : 'X\(//\)$' \| \
18384 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18385 $as_echo X"$_am_arg" |
18386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18390 /^X\(\/\/\)[^/].*/{
18402 s/.*/./; q'`/stamp-h$_am_stamp_count
18405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18406 $as_echo "$as_me: executing $ac_file commands" >&6;}
18411 case $ac_file$ac_mode in
18412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18413 # Older Autoconf quotes --file arguments for eval, but not when files
18414 # are listed without --file. Let's play safe and only enable the eval
18415 # if we detect the quoting.
18416 # TODO: see whether this extra hack can be removed once we start
18417 # requiring Autoconf 2.70 or later.
18418 case $CONFIG_FILES in #(
18420 eval set x "$CONFIG_FILES" ;; #(
18422 set x $CONFIG_FILES ;; #(
18427 # Used to flag and report bootstrapping failures.
18431 # Strip MF so we end up with the name of the file.
18432 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18433 # Check whether this is an Automake generated Makefile which includes
18434 # dependency-tracking related rules and includes.
18435 # Grep'ing the whole file directly is not great: AIX grep has a line
18436 # limit of 2048, but all sed's we know have understand at least 4000.
18437 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18439 am_dirpart=`$as_dirname -- "$am_mf" ||
18440 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18441 X"$am_mf" : 'X\(//\)[^/]' \| \
18442 X"$am_mf" : 'X\(//\)$' \| \
18443 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18444 $as_echo X"$am_mf" |
18445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18449 /^X\(\/\/\)[^/].*/{
18462 am_filepart=`$as_basename -- "$am_mf" ||
18463 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18464 X"$am_mf" : 'X\(//\)$' \| \
18465 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18466 $as_echo X/"$am_mf" |
18467 sed '/^.*\/\([^/][^/]*\)\/*$/{
18480 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18481 && sed -e '/# am--include-marker/d' "$am_filepart" \
18482 | $MAKE -f - am--depfiles" >&5
18483 (cd "$am_dirpart" \
18484 && sed -e '/# am--include-marker/d' "$am_filepart" \
18485 | $MAKE -f - am--depfiles) >&5 2>&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } || am_rc=$?
18490 if test $am_rc -ne 0; then
18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18493 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18494 for automatic dependency tracking. If GNU make was not used, consider
18495 re-running the configure script with MAKE=\"gmake\" (or whatever is
18496 necessary). You can also try re-running configure with the
18497 '--disable-dependency-tracking' option to at least be able to build
18498 the package (albeit without support for automatic dependency tracking).
18499 See \`config.log' for more details" "$LINENO" 5; }
18501 { am_dirpart=; unset am_dirpart;}
18502 { am_filepart=; unset am_filepart;}
18503 { am_mf=; unset am_mf;}
18504 { am_rc=; unset am_rc;}
18505 rm -f conftest-deps.mk
18508 "po-directories":C)
18509 for ac_file in $CONFIG_FILES; do
18510 # Support "outfile[:infile[:infile...]]"
18512 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18514 # PO directories have a Makefile.in generated from Makefile.in.in.
18515 case "$ac_file" in */Makefile.in)
18516 # Adjust a relative srcdir.
18517 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18518 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18519 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18520 # In autoconf-2.13 it is called $ac_given_srcdir.
18521 # In autoconf-2.50 it is called $srcdir.
18522 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18523 case "$ac_given_srcdir" in
18524 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18525 /*) top_srcdir="$ac_given_srcdir" ;;
18526 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18528 # Treat a directory as a PO directory if and only if it has a
18529 # POTFILES.in file. This allows packages to have multiple PO
18530 # directories under different names or in different locations.
18531 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18532 rm -f "$ac_dir/POTFILES"
18533 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18534 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18535 POMAKEFILEDEPS="POTFILES.in"
18536 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18537 # on $ac_dir but don't depend on user-specified configuration
18539 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18540 # The LINGUAS file contains the set of available languages.
18541 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18542 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18544 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18545 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18546 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18547 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18549 # The set of available languages was given in configure.in.
18550 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18551 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18554 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18555 # Compute UPDATEPOFILES
18556 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18557 # Compute DUMMYPOFILES
18558 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18560 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18561 case "$ac_given_srcdir" in
18563 *) srcdirpre='$(srcdir)/' ;;
18569 for lang in $ALL_LINGUAS; do
18570 POFILES="$POFILES $srcdirpre$lang.po"
18571 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18572 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18573 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18575 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18576 # environment variable.
18578 if test -n "$ALL_LINGUAS"; then
18579 for presentlang in $ALL_LINGUAS; do
18581 if test "%UNSET%" != "$LINGUAS"; then
18582 desiredlanguages="$LINGUAS"
18584 desiredlanguages="$ALL_LINGUAS"
18586 for desiredlang in $desiredlanguages; do
18587 # Use the presentlang catalog if desiredlang is
18588 # a. equal to presentlang, or
18589 # b. a variant of presentlang (because in this case,
18590 # presentlang can be used as a fallback for messages
18591 # which are not translated in the desiredlang catalog).
18592 case "$desiredlang" in
18593 "$presentlang"*) useit=yes;;
18596 if test $useit = yes; then
18597 INST_LINGUAS="$INST_LINGUAS $presentlang"
18602 if test -n "$INST_LINGUAS"; then
18603 for lang in $INST_LINGUAS; do
18604 CATALOGS="$CATALOGS $lang.gmo"
18607 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18608 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"
18609 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18610 if test -f "$f"; then
18612 *.orig | *.bak | *~) ;;
18613 *) cat "$f" >> "$ac_dir/Makefile" ;;
18628 ac_clean_files=$ac_clean_files_save
18630 test $ac_write_fail = 0 ||
18631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18634 # configure is writing to config.log, and then calls config.status.
18635 # config.status does its own redirection, appending to config.log.
18636 # Unfortunately, on DOS this fails, as config.log is still kept open
18637 # by configure, so config.status won't be able to write to it; its
18638 # output is simply discarded. So we exec the FD to /dev/null,
18639 # effectively closing config.log, so it can be properly (re)opened and
18640 # appended to by config.status. When coming back to configure, we
18641 # need to make the FD available again.
18642 if test "$no_create" != yes; then
18644 ac_config_status_args=
18645 test "$silent" = yes &&
18646 ac_config_status_args="$ac_config_status_args --quiet"
18648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18651 # would make configure fail if this is the last instruction.
18652 $ac_cs_success || as_fn_exit 1
18654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18661 if test "$build_tpm2d" = "yes"; then
18662 show_tss_type="($have_libtss)"
18666 GnuPG v${VERSION} has been configured as follows:
18668 Revision: 3bf8d7e1b (15352)
18669 Platform: $PRINTABLE_OS_NAME ($host)
18671 OpenPGP: $build_gpg
18672 S/MIME: $build_gpgsm
18673 Agent: $build_agent
18674 Smartcard: $build_scdaemon $build_scdaemon_extra
18675 TPM: $build_tpm2d $show_tss_type
18677 Dirmngr: $build_dirmngr
18678 Keyboxd: $build_keyboxd
18679 Gpgtar: $build_gpgtar
18680 WKS tools: $build_wks_tools
18682 Protect tool: $show_gnupg_protect_tool_pgm
18683 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18684 Default agent: $show_gnupg_agent_pgm
18685 Default pinentry: $show_gnupg_pinentry_pgm
18686 Default scdaemon: $show_gnupg_scdaemon_pgm
18687 Default keyboxd: $show_gnupg_keyboxd_pgm
18688 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18689 Default dirmngr: $show_gnupg_dirmngr_pgm
18691 Dirmngr auto start: $dirmngr_auto_start
18692 Readline support: $gnupg_cv_have_readline
18693 LDAP support: $gnupg_have_ldap
18694 TLS support: $use_tls_library
18695 TOFU support: $use_tofu
18696 Tor support: $show_tor_support
18698 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18700 Warning: TPM support is compiled in but no software TPM
18701 for testing was discovered. TPM tests are disabled
18705 if test "x${gpg_config_script_warn}" != x; then
18707 Warning: Mismatches between the target platform and the
18708 to be used libraries have been detected for:
18709 ${gpg_config_script_warn}
18710 Please check above for more warning messages.
18714 if test "${build_gpg}" != "yes"; then
18716 Warning: The component "gpg" is used by other components as
18717 well as for the test suite. You have disabled
18718 this component and thus other things won't work.
18722 if test "${run_tests}" != "yes"; then
18724 Warning: The use of the test suite has been disabled!
18725 This is in almost all cases a bad idea. Take care.