2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.17.0.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
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
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: unbound-bugs@nlnetlabs.nl or
279 $0: https://github.com/NLnetLabs/unbound/issues about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='unbound'
593 PACKAGE_TARNAME='unbound'
594 PACKAGE_VERSION='1.17.0'
595 PACKAGE_STRING='unbound 1.17.0'
596 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
651 ENABLE_DNSCRYPT_XCHACHA20
654 DNSTAP_SOCKET_TESTBIN
656 opt_dnstap_socket_path
661 COMMON_OBJ_ALL_SYMBOLS
663 LIBOBJ_WITHOUT_CTIMEARC4
664 WIN_CHECKCONF_OBJ_LINK
666 WIN_UBANCHOR_OBJ_LINK
675 PC_LIBEVENT_DEPENDENCY
676 UNBOUND_EVENT_UNINSTALL
677 UNBOUND_EVENT_INSTALL
717 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
718 SLDNS_ALLOCCHECK_EXTRA_OBJ
722 SYSTEMD_DAEMON_CFLAGS
770 UNBOUND_ROOTCERT_FILE
778 UNBOUND_LOCALSTATE_DIR
794 UNBOUND_VERSION_MICRO
795 UNBOUND_VERSION_MINOR
796 UNBOUND_VERSION_MAJOR
825 program_transform_name
838 enable_option_checking
865 enable_alloc_nonregional
872 enable_swig_version_check
883 with_deprecate_rsa_1024
898 with_dnstap_socket_path
906 enable_explicit_port_randomisation
907 enable_linux_ip_local_port_range
910 ac_precious_vars='build_alias
927 SYSTEMD_DAEMON_CFLAGS
932 # Initialize some variables set by options.
934 ac_init_version=false
935 ac_unrecognized_opts=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
946 program_transform_name=s,x,x,
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 runstatedir='${localstatedir}/run'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
993 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -runstatedir | --runstatedir | --runstatedi | --runstated \
1222 | --runstate | --runstat | --runsta | --runst | --runs \
1223 | --run | --ru | --r)
1224 ac_prev=runstatedir ;;
1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1227 | --run=* | --ru=* | --r=*)
1228 runstatedir=$ac_optarg ;;
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $? "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir runstatedir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $? "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $? "pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures unbound 1.17.0 to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 if test -n "$ac_init_help"; then
1545 case $ac_init_help in
1546 short | recursive ) echo "Configuration of unbound 1.17.0:";;
1551 --disable-option-checking ignore unrecognized --enable/--with options
1552 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1553 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1554 --enable-checking Enable warnings, asserts, makefile-dependencies
1555 --enable-debug same as enable-checking
1556 --disable-flto Disable link-time optimization (gcc specific option)
1557 --enable-pie Enable Position-Independent Executable (eg. to fully
1558 benefit from ASLR, small performance penalty)
1559 --enable-relro-now Enable full relocation binding at load-time (RELRO
1560 NOW, to protect GOT and .dtor areas)
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --disable-rpath disable hardcoded rpath (default=enabled)
1567 --disable-largefile omit support for large files
1568 --enable-systemd compile with systemd support
1569 --enable-alloc-checks enable to memory allocation statistics, for debug
1571 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1573 --enable-alloc-nonregional
1574 enable nonregional allocs, slow but exposes regional
1575 allocations to other memory purifiers, for debug
1577 --disable-swig-version-check
1578 Disable swig version check to build python modules
1579 with older swig even though that is unreliable
1580 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1582 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1583 --enable-subnet Enable client subnet
1584 --disable-gost Disable GOST support
1585 --disable-ecdsa Disable ECDSA support
1586 --disable-dsa Disable DSA support
1587 --disable-ed25519 Disable ED25519 support
1588 --disable-ed448 Disable ED448 support
1589 --enable-event-api Enable (experimental) pluggable event base
1590 libunbound API installed to unbound-event.h
1591 --enable-tfo-client Enable TCP Fast Open for client mode
1592 --enable-tfo-server Enable TCP Fast Open for server mode
1593 --enable-static-exe enable to compile executables statically against
1594 (event) uninstalled libs, for debug purposes
1595 --enable-fully-static enable to compile fully static
1596 --enable-lock-checks enable to check lock and unlock calls, for debug
1598 --enable-allsymbols export all symbols from libunbound and link binaries
1599 to it, smaller install size but libunbound export
1600 table is polluted by internal symbols
1601 --enable-dnstap Enable dnstap support (requires protobuf-c)
1602 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1603 --enable-cachedb enable cachedb module that can use external cache
1605 --enable-ipsecmod Enable ipsecmod module that facilitates
1607 --enable-ipset enable ipset module
1608 --disable-explicit-port-randomisation
1609 disable explicit source port randomisation and rely
1610 on the kernel to provide random source ports
1611 --enable-linux-ip-local-port-range
1612 Define this to enable use of
1613 /proc/sys/net/ipv4/ip_local_port_range as a default
1614 outgoing port range. This is only for the libunbound
1615 on Linux and does not affect unbound resolving
1616 daemon itself. This may severely limit the number of
1617 available outgoing ports and thus decrease
1618 randomness. Define this only when the target system
1619 restricts (e.g. some of SELinux enabled
1620 distributions) the use of non-ephemeral ports.
1623 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1624 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1625 --with-conf-file=path Pathname to the Unbound configuration file
1626 --with-run-dir=path set default directory to chdir to (by default dir
1628 --with-chroot-dir=path set default directory to chroot to (by default same
1630 --with-share-dir=path set default directory with shared data (by default
1631 same as share/unbound)
1632 --with-pidfile=filename set default pathname to unbound pidfile (default
1633 run-dir/unbound.pid)
1634 --with-rootkey-file=filename
1635 set default pathname to root key file (default
1636 run-dir/root.key). This file is read and written.
1637 --with-rootcert-file=filename
1638 set default pathname to root update certificate file
1639 (default run-dir/icannbundle.pem). This file need
1640 not exist if you are content with the builtin.
1641 --with-username=user set default user that unbound changes to (default
1643 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1645 --with-aix-soname=aix|svr4|both
1646 shared library versioning (aka "SONAME") variant to
1647 provide on AIX, [default=aix].
1648 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1649 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1650 compiler's sysroot if not specified).
1651 --with-pthreads use pthreads library, or --without-pthreads to
1652 disable threading support.
1653 --with-solaris-threads use solaris native thread library.
1654 --with-syslog-facility=LOCAL0 - LOCAL7
1655 set SYSLOG_FACILITY, default DAEMON
1656 --with-dynlibmodule build dynamic library module, or
1657 --without-dynlibmodule to disable it. (default=no)
1658 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1660 --with-pythonmodule build Python module, or --without-pythonmodule to
1661 disable script engine. (default=no)
1662 --with-nss=path use libnss instead of openssl, installed at path.
1663 --with-nettle=path use libnettle as crypto library, installed at path.
1664 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1665 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1666 /usr or specify like /usr/include/openssl11)
1667 --with-libbsd Use portable libbsd functions
1668 --with-deprecate-rsa-1024
1669 Deprecate RSA 1024 bit length, makes that an
1670 unsupported key, for use when OpenSSL FIPS refuses
1671 1024 bit verification
1672 --with-libevent=pathname
1673 use libevent (will check /usr/local /opt/local
1674 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1675 an explicit path). Slower, but allows use of large
1676 outgoing port ranges.
1677 --with-libexpat=path specify explicit path for libexpat.
1678 --with-libhiredis=path specify explicit path for libhiredis.
1679 --with-libnghttp2=path specify explicit path for libnghttp2.
1680 --with-dnstap-socket-path=pathname
1681 set default dnstap socket path
1682 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1683 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1684 --with-libmnl=path specify explicit path for libmnl.
1685 --with-libunbound-only do not build daemon and tool programs
1687 Some influential environment variables:
1688 CC C compiler command
1689 CFLAGS C compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1696 YACC The `Yet Another Compiler Compiler' implementation to use.
1697 Defaults to the first program found out of: `bison -y', `byacc',
1699 YFLAGS The list of arguments that will be passed by default to $YACC.
1700 This script will default YFLAGS to the empty string to avoid a
1701 default value of `-d' given by some make applications.
1703 User-defined run-time library search path.
1704 PKG_CONFIG path to pkg-config utility
1706 directories to add to pkg-config's search path
1708 path overriding pkg-config's built-in search path
1710 C compiler flags for SYSTEMD, overriding pkg-config
1712 linker flags for SYSTEMD, overriding pkg-config
1713 SYSTEMD_DAEMON_CFLAGS
1714 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1716 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1718 The installed Python version to use, for example '2.3'. This
1719 string will be appended to the Python interpreter canonical
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1755 .) # We are building in place.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1788 unbound configure 1.17.0
1789 generated by GNU Autoconf 2.69
1791 Copyright (C) 2012 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } > conftest.i && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880 # the include files in INCLUDES and setting the cache variable VAR
1882 ac_fn_c_check_header_mongrel ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if eval \${$3+:} false; then :
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1895 # Is the header compilable?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897 $as_echo_n "checking $2 usability... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_header_compiler=yes
1906 ac_header_compiler=no
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910 $as_echo "$ac_header_compiler" >&6; }
1912 # Is the header present?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914 $as_echo_n "checking $2 presence... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 if ac_fn_c_try_cpp "$LINENO"; then :
1920 ac_header_preproc=yes
1922 ac_header_preproc=no
1924 rm -f conftest.err conftest.i conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926 $as_echo "$ac_header_preproc" >&6; }
1928 # So? What about this header?
1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1940 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1944 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1948 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1949 ## --------------------------------------------------------------------------------------- ##"
1950 ) | sed "s/^/$as_me: WARNING: /" >&2
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1958 eval "$3=\$ac_header_compiler"
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_mongrel
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>&5
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986 { { case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_try") 2>&5
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; }; }; then :
1998 $as_echo "$as_me: program exited with status $ac_status" >&5
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=$ac_status
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 as_fn_set_status $ac_retval
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_header_compile
2041 # ac_fn_c_try_link LINENO
2042 # -----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 rm -f conftest.$ac_objext conftest$ac_exeext
2048 if { { ac_try="$ac_link"
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_link") 2>conftest.err
2057 if test -s conftest.err; then
2058 grep -v '^ *+' conftest.err >conftest.er1
2059 cat conftest.er1 >&5
2060 mv -f conftest.er1 conftest.err
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && {
2064 test -z "$ac_c_werror_flag" ||
2065 test ! -s conftest.err
2066 } && test -s conftest$ac_exeext && {
2067 test "$cross_compiling" = yes ||
2068 test -x conftest$ac_exeext
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079 # interfere with the next link command; also delete a directory that is
2080 # left behind by Apple's compiler. We do this before executing the actions.
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_c_try_link
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2110 # include <limits.h>
2112 # include <assert.h>
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2139 if ac_fn_c_try_link "$LINENO"; then :
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_func
2154 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2155 # -------------------------------------------
2156 # Tests whether TYPE exists after having included INCLUDES, setting cache
2157 # variable VAR accordingly.
2158 ac_fn_c_check_type ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2192 if ac_fn_c_try_compile "$LINENO"; then :
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_type
2208 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209 # --------------------------------------------
2210 # Tries to find the compile-time value of EXPR in a program that includes
2211 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2213 ac_fn_c_compute_int ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if test "$cross_compiling" = yes; then
2217 # Depending upon the size, compute the lo and hi bounds.
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= 0)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid; break
2252 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253 if test $ac_lo -le $ac_mid; then
2257 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2268 static int test_array [1 - 2 * !(($2) < 0)];
2270 return test_array [0];
2276 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2287 return test_array [0];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_lo=$ac_mid; break
2296 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2297 if test $ac_mid -le $ac_hi; then
2301 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 # Binary search between lo and hi bounds.
2312 while test "x$ac_lo" != "x$ac_hi"; do
2313 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 return test_array [0];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2343 static long int longval () { return $2; }
2344 static unsigned long int ulongval () { return $2; }
2351 FILE *f = fopen ("conftest.val", "w");
2356 long int i = longval ();
2359 fprintf (f, "%ld", i);
2363 unsigned long int i = ulongval ();
2366 fprintf (f, "%lu", i);
2368 /* Do not output a trailing newline, as this causes \r\n confusion
2369 on some platforms. */
2370 return ferror (f) || fclose (f) != 0;
2376 if ac_fn_c_try_run "$LINENO"; then :
2377 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382 conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 as_fn_set_status $ac_retval
2389 } # ac_fn_c_compute_int
2391 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2392 # ---------------------------------------------
2393 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2395 ac_fn_c_check_decl ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 as_decl_name=`echo $2|sed 's/ *(.*//'`
2399 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2411 #ifndef $as_decl_name
2413 (void) $as_decl_use;
2415 (void) $as_decl_name;
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 } # ac_fn_c_check_decl
2437 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2438 # ----------------------------------------------------
2439 # Tries to find if the field MEMBER exists in type AGGR, after including
2440 # INCLUDES, setting cache variable VAR accordingly.
2441 ac_fn_c_check_member ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2445 $as_echo_n "checking for $2.$3... " >&6; }
2446 if eval \${$4+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2462 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2472 if (sizeof ac_aggr.$3)
2478 if ac_fn_c_try_compile "$LINENO"; then :
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_member
2493 cat >config.log <<_ACEOF
2494 This file contains any messages produced by compilers while
2495 running configure, to aid debugging if configure makes a mistake.
2497 It was created by unbound $as_me 1.17.0, which was
2498 generated by GNU Autoconf 2.69. Invocation command line was
2510 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2511 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2512 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2513 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2514 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2516 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2517 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2519 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2520 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2521 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2522 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2523 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2524 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2525 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 $as_echo "PATH: $as_dir"
2550 # Keep a trace of the command line.
2551 # Strip out --no-create and --no-recursion so they do not pile up.
2552 # Strip out --silent because we don't want to record it for future runs.
2553 # Also quote any args containing shell meta-characters.
2554 # Make two passes to allow for proper duplicate-argument suppression.
2558 ac_must_keep_next=false
2564 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2566 | -silent | --silent | --silen | --sile | --sil)
2569 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2572 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2574 as_fn_append ac_configure_args1 " '$ac_arg'"
2575 if test $ac_must_keep_next = true; then
2576 ac_must_keep_next=false # Got value, back to normal.
2579 *=* | --config-cache | -C | -disable-* | --disable-* \
2580 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2581 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2582 | -with-* | --with-* | -without-* | --without-* | --x)
2583 case "$ac_configure_args0 " in
2584 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2587 -* ) ac_must_keep_next=true ;;
2590 as_fn_append ac_configure_args " '$ac_arg'"
2595 { ac_configure_args0=; unset ac_configure_args0;}
2596 { ac_configure_args1=; unset ac_configure_args1;}
2598 # When interrupted or exit'd, cleanup temporary files, and complete
2599 # config.log. We remove comments because anyway the quotes in there
2600 # would cause problems or look ugly.
2601 # WARNING: Use '\'' to represent an apostrophe within the trap.
2602 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2603 trap 'exit_status=$?
2604 # Save into config.log some information that might help in debugging.
2608 $as_echo "## ---------------- ##
2609 ## Cache variables. ##
2610 ## ---------------- ##"
2612 # The following way of writing the cache mishandles newlines in values,
2614 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2615 eval ac_val=\$$ac_var
2619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2623 _ | IFS | as_nl) ;; #(
2624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2625 *) { eval $ac_var=; unset $ac_var;} ;;
2630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2631 *${as_nl}ac_space=\ *)
2633 "s/'\''/'\''\\\\'\'''\''/g;
2634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2644 $as_echo "## ----------------- ##
2645 ## Output variables. ##
2646 ## ----------------- ##"
2648 for ac_var in $ac_subst_vars
2650 eval ac_val=\$$ac_var
2652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2654 $as_echo "$ac_var='\''$ac_val'\''"
2658 if test -n "$ac_subst_files"; then
2659 $as_echo "## ------------------- ##
2660 ## File substitutions. ##
2661 ## ------------------- ##"
2663 for ac_var in $ac_subst_files
2665 eval ac_val=\$$ac_var
2667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2669 $as_echo "$ac_var='\''$ac_val'\''"
2674 if test -s confdefs.h; then
2675 $as_echo "## ----------- ##
2682 test "$ac_signal" != 0 &&
2683 $as_echo "$as_me: caught signal $ac_signal"
2684 $as_echo "$as_me: exit $exit_status"
2686 rm -f core *.core core.conftest.* &&
2687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2690 for ac_signal in 1 2 13 15; do
2691 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2696 rm -f -r conftest* confdefs.h
2698 $as_echo "/* confdefs.h */" > confdefs.h
2700 # Predefined preprocessor variables.
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_NAME "$PACKAGE_NAME"
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2714 cat >>confdefs.h <<_ACEOF
2715 #define PACKAGE_STRING "$PACKAGE_STRING"
2718 cat >>confdefs.h <<_ACEOF
2719 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE_URL "$PACKAGE_URL"
2727 # Let the site file select an alternate cache file if it wants to.
2728 # Prefer an explicitly selected file to automatically selected ones.
2731 if test -n "$CONFIG_SITE"; then
2732 # We do not want a PATH search for config.site.
2733 case $CONFIG_SITE in #((
2734 -*) ac_site_file1=./$CONFIG_SITE;;
2735 */*) ac_site_file1=$CONFIG_SITE;;
2736 *) ac_site_file1=./$CONFIG_SITE;;
2738 elif test "x$prefix" != xNONE; then
2739 ac_site_file1=$prefix/share/config.site
2740 ac_site_file2=$prefix/etc/config.site
2742 ac_site_file1=$ac_default_prefix/share/config.site
2743 ac_site_file2=$ac_default_prefix/etc/config.site
2745 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2747 test "x$ac_site_file" = xNONE && continue
2748 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2750 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2751 sed 's/^/| /' "$ac_site_file" >&5
2753 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 as_fn_error $? "failed to load site script $ac_site_file
2756 See \`config.log' for more details" "$LINENO" 5; }
2760 if test -r "$cache_file"; then
2761 # Some versions of bash will fail to source /dev/null (special files
2762 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2763 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2765 $as_echo "$as_me: loading cache $cache_file" >&6;}
2767 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2768 *) . "./$cache_file";;
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2773 $as_echo "$as_me: creating cache $cache_file" >&6;}
2777 # Check that the precious variables saved in the cache have kept the same
2779 ac_cache_corrupted=false
2780 for ac_var in $ac_precious_vars; do
2781 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2782 eval ac_new_set=\$ac_env_${ac_var}_set
2783 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2784 eval ac_new_val=\$ac_env_${ac_var}_value
2785 case $ac_old_set,$ac_new_set in
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2789 ac_cache_corrupted=: ;;
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2793 ac_cache_corrupted=: ;;
2796 if test "x$ac_old_val" != "x$ac_new_val"; then
2797 # differences in whitespace do not lead to failure.
2798 ac_old_val_w=`echo x $ac_old_val`
2799 ac_new_val_w=`echo x $ac_new_val`
2800 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2803 ac_cache_corrupted=:
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2807 eval $ac_var=\$ac_old_val
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2810 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2812 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2815 # Pass precious variables to config.status.
2816 if test "$ac_new_set" = set; then
2818 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 *) ac_arg=$ac_var=$ac_new_val ;;
2821 case " $ac_configure_args " in
2822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2823 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2827 if $ac_cache_corrupted; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2832 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2834 ## -------------------- ##
2835 ## Main body of script. ##
2836 ## -------------------- ##
2839 ac_cpp='$CPP $CPPFLAGS'
2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 UNBOUND_VERSION_MAJOR=1
2847 UNBOUND_VERSION_MINOR=17
2849 UNBOUND_VERSION_MICRO=0
2852 LIBUNBOUND_CURRENT=9
2853 LIBUNBOUND_REVISION=20
2862 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2867 # 1.4.0-snapshots had 1:5:0
2868 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2882 # and 1.4.13p1 and 1.4.13.p2
2884 # 1.4.15 had 3:0:1 # adds ub_version()
2889 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2892 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2900 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2904 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2916 # 1.8.0 had 8:0:0 # changes the event callback function signature
2920 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2942 # Current -- the number of the binary API that we're implementing
2943 # Revision -- which iteration of the implementation of the binary
2944 # API are we supplying?
2945 # Age -- How many previous binary API versions do we also
2948 # If we release a new version that does not change the binary API,
2949 # increment Revision.
2951 # If we release a new version that changes the binary API, but does
2952 # not break programs compiled against the old binary API, increment
2953 # Current and Age. Set Revision to 0, since this is the first
2954 # implementation of the new API.
2956 # Otherwise, we're changing the binary API and breaking backward
2957 # compatibility with old binaries. Increment Current. Set Age to 0,
2958 # since we're backward compatible with no previous APIs. Set Revision
2965 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2967 cat >>confdefs.h <<_ACEOF
2968 #define CONFCMDLINE "$cmdln"
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3017 if test -z "$ac_cv_prog_CC"; then
3019 # Extract the first word of "gcc", so it can be a program name with args.
3020 set dummy gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_CC="gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3055 if test "x$ac_ct_CC" = x; then
3058 case $cross_compiling:$ac_tool_warned in
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_CC="${ac_tool_prefix}cc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3111 if test -z "$CC"; then
3112 # Extract the first word of "cc", so it can be a program name with args.
3113 set dummy cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3131 ac_prog_rejected=yes
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test $ac_prog_rejected = yes; then
3143 # We found a bogon in the path, so make sure we never use it.
3144 set dummy $ac_cv_prog_CC
3146 if test $# != 0; then
3147 # We chose a different compiler from the bogus one.
3148 # However, it has the same basename, so the bogon will be chosen
3149 # first if we set CC to just the basename; use the full file name.
3151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3167 if test -z "$CC"; then
3168 if test -n "$ac_tool_prefix"; then
3169 for ac_prog in cl.exe
3171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3208 test -n "$CC" && break
3211 if test -z "$CC"; then
3213 for ac_prog in cl.exe
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216 set dummy $ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_CC="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243 if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245 $as_echo "$ac_ct_CC" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$ac_ct_CC" && break
3255 if test "x$ac_ct_CC" = x; then
3258 case $cross_compiling:$ac_tool_warned in
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3271 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "no acceptable C compiler found in \$PATH
3274 See \`config.log' for more details" "$LINENO" 5; }
3276 # Provide some information about the compiler.
3277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280 for ac_option in --version -v -V -qversion; do
3281 { { ac_try="$ac_compiler $ac_option >&5"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3290 if test -s conftest.err; then
3292 ... rest of stderr output deleted ...
3293 10q' conftest.err >conftest.er1
3294 cat conftest.er1 >&5
3296 rm -f conftest.er1 conftest.err
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3312 ac_clean_files_save=$ac_clean_files
3313 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3314 # Try to create an executable without -o first, disregard a.out.
3315 # It will help us diagnose broken compilers, and finding out an intuition
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3318 $as_echo_n "checking whether the C compiler works... " >&6; }
3319 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3321 # The possible output files:
3322 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3325 for ac_file in $ac_files
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334 if { { ac_try="$ac_link_default"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link_default") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3346 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3347 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3348 # so that the user can short-circuit this test for compilers unknown to
3350 for ac_file in $ac_files ''
3352 test -f "$ac_file" || continue
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3357 # We found the default executable, but exeext='' is most
3361 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 # We set ac_cv_exeext here because the later test for it is not
3366 # safe: cross compilers may not add the suffix if given an `-o'
3367 # argument, so we may need to know it at that point already.
3368 # Even if this section looks crufty: it has the advantage of
3375 test "$ac_cv_exeext" = no && ac_cv_exeext=
3380 if test -z "$ac_file"; then :
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 $as_echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error 77 "C compiler cannot create executables
3389 See \`config.log' for more details" "$LINENO" 5; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3397 $as_echo "$ac_file" >&6; }
3398 ac_exeext=$ac_cv_exeext
3400 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3401 ac_clean_files=$ac_clean_files_save
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3403 $as_echo_n "checking for suffix of executables... " >&6; }
3404 if { { ac_try="$ac_link"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link") 2>&5
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }; then :
3415 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3417 # work properly (i.e., refer to `conftest.exe'), while it won't with
3419 for ac_file in conftest.exe conftest conftest.*; do
3420 test -f "$ac_file" || continue
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 rm -f conftest conftest$ac_cv_exeext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436 $as_echo "$ac_cv_exeext" >&6; }
3438 rm -f conftest.$ac_ext
3439 EXEEXT=$ac_cv_exeext
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3447 FILE *f = fopen ("conftest.out", "w");
3448 return ferror (f) || fclose (f) != 0;
3454 ac_clean_files="$ac_clean_files conftest.out"
3455 # Check that the compiler produces executables we can run. If not, either
3456 # the compiler is broken, or we cross compile.
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3458 $as_echo_n "checking whether we are cross compiling... " >&6; }
3459 if test "$cross_compiling" != yes; then
3460 { { ac_try="$ac_link"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_link") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3471 if { ac_try='./conftest$ac_cv_exeext'
3472 { { case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_try") 2>&5
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; }; then
3484 if test "$cross_compiling" = maybe; then
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details" "$LINENO" 5; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3496 $as_echo "$cross_compiling" >&6; }
3498 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3499 ac_clean_files=$ac_clean_files_save
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501 $as_echo_n "checking for suffix of object files... " >&6; }
3502 if ${ac_cv_objext+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3516 rm -f conftest.o conftest.obj
3517 if { { ac_try="$ac_compile"
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_compile") 2>&5
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }; then :
3528 for ac_file in conftest.o conftest.obj conftest.*; do
3529 test -f "$ac_file" || continue;
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3532 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot compute suffix of object files: cannot compile
3543 See \`config.log' for more details" "$LINENO" 5; }
3545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3548 $as_echo "$ac_cv_objext" >&6; }
3549 OBJEXT=$ac_cv_objext
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3552 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3553 if ${ac_cv_c_compiler_gnu+:} false; then :
3554 $as_echo_n "(cached) " >&6
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3570 if ac_fn_c_try_compile "$LINENO"; then :
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3580 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3581 if test $ac_compiler_gnu = yes; then
3586 ac_test_CFLAGS=${CFLAGS+set}
3587 ac_save_CFLAGS=$CFLAGS
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3589 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3590 if ${ac_cv_prog_cc_g+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 ac_save_c_werror_flag=$ac_c_werror_flag
3594 ac_c_werror_flag=yes
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 if ac_fn_c_try_compile "$LINENO"; then :
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"; then :
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 if ac_fn_c_try_compile "$LINENO"; then :
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3650 $as_echo "$ac_cv_prog_cc_g" >&6; }
3651 if test "$ac_test_CFLAGS" = set; then
3652 CFLAGS=$ac_save_CFLAGS
3653 elif test $ac_cv_prog_cc_g = yes; then
3654 if test "$GCC" = yes; then
3660 if test "$GCC" = yes; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3667 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3668 if ${ac_cv_prog_cc_c89+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 ac_cv_prog_cc_c89=no
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3692 s = g (p, va_arg (v,int));
3697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3698 function prototypes and stuff, but not '\xHH' hex character constants.
3699 These don't provoke an error unfortunately, instead are silently treated
3700 as 'x'. The following induces an error, until -std is added to get
3701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3702 array size at least. It's necessary to write '\x00'==0 to get something
3703 that's true only with -std. */
3704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3707 inside strings and character constants. */
3709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711 int test (int i, double x);
3712 struct s1 {int (*f) (int a);};
3713 struct s2 {int (*f) (double a);};
3714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 CC="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_c89=$ac_arg
3732 rm -f core conftest.err conftest.$ac_objext
3733 test "x$ac_cv_prog_cc_c89" != "xno" && break
3735 rm -f conftest.$ac_ext
3740 case "x$ac_cv_prog_cc_c89" in
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;;
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3746 $as_echo "unsupported" >&6; } ;;
3748 CC="$CC $ac_cv_prog_cc_c89"
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3752 if test "x$ac_cv_prog_cc_c89" != xno; then :
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3774 if test -z "$CPP"; then
3775 if ${ac_cv_prog_CPP+:} false; then :
3776 $as_echo_n "(cached) " >&6
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3793 # include <limits.h>
3795 # include <assert.h>
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3802 # Broken: fails on valid input.
3805 rm -f conftest.err conftest.i conftest.$ac_ext
3807 # OK, works on sane cases. Now check whether nonexistent headers
3808 # can be detected and how.
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <ac_nonexistent.h>
3813 if ac_fn_c_try_cpp "$LINENO"; then :
3814 # Broken: success on invalid input.
3817 # Passes both tests.
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3825 rm -f conftest.i conftest.err conftest.$ac_ext
3826 if $ac_preproc_ok; then :
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3839 $as_echo "$CPP" >&6; }
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3852 # include <limits.h>
3854 # include <assert.h>
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3861 # Broken: fails on valid input.
3864 rm -f conftest.err conftest.i conftest.$ac_ext
3866 # OK, works on sane cases. Now check whether nonexistent headers
3867 # can be detected and how.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3872 if ac_fn_c_try_cpp "$LINENO"; then :
3873 # Broken: success on invalid input.
3876 # Passes both tests.
3880 rm -f conftest.err conftest.i conftest.$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.i conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then :
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details" "$LINENO" 5; }
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3902 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3903 if ${ac_cv_path_GREP+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -z "$GREP"; then
3907 ac_path_GREP_found=false
3908 # Loop through the user's path and test for each of PROGNAME-LIST
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in grep ggrep; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3917 as_fn_executable_p "$ac_path_GREP" || continue
3918 # Check for GNU ac_path_GREP and select it if it is found.
3919 # Check for GNU $ac_path_GREP
3920 case `"$ac_path_GREP" --version 2>&1` in
3922 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3925 $as_echo_n 0123456789 >"conftest.in"
3928 cat "conftest.in" "conftest.in" >"conftest.tmp"
3929 mv "conftest.tmp" "conftest.in"
3930 cp "conftest.in" "conftest.nl"
3931 $as_echo 'GREP' >> "conftest.nl"
3932 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934 as_fn_arith $ac_count + 1 && ac_count=$as_val
3935 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3936 # Best one so far, save it but keep looking for a better one
3937 ac_cv_path_GREP="$ac_path_GREP"
3938 ac_path_GREP_max=$ac_count
3940 # 10*(2^10) chars as input seems more than enough
3941 test $ac_count -gt 10 && break
3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 $ac_path_GREP_found && break 3
3951 if test -z "$ac_cv_path_GREP"; then
3952 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955 ac_cv_path_GREP=$GREP
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3960 $as_echo "$ac_cv_path_GREP" >&6; }
3961 GREP="$ac_cv_path_GREP"
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3965 $as_echo_n "checking for egrep... " >&6; }
3966 if ${ac_cv_path_EGREP+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3970 then ac_cv_path_EGREP="$GREP -E"
3972 if test -z "$EGREP"; then
3973 ac_path_EGREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in egrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983 as_fn_executable_p "$ac_path_EGREP" || continue
3984 # Check for GNU ac_path_EGREP and select it if it is found.
3985 # Check for GNU $ac_path_EGREP
3986 case `"$ac_path_EGREP" --version 2>&1` in
3988 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991 $as_echo_n 0123456789 >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 $as_echo 'EGREP' >> "conftest.nl"
3998 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 as_fn_arith $ac_count + 1 && ac_count=$as_val
4001 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_EGREP="$ac_path_EGREP"
4004 ac_path_EGREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_EGREP_found && break 3
4017 if test -z "$ac_cv_path_EGREP"; then
4018 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4021 ac_cv_path_EGREP=$EGREP
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4027 $as_echo "$ac_cv_path_EGREP" >&6; }
4028 EGREP="$ac_cv_path_EGREP"
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4032 $as_echo_n "checking for ANSI C header files... " >&6; }
4033 if ${ac_cv_header_stdc+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_header_stdc=yes
4054 ac_cv_header_stdc=no
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 if test $ac_cv_header_stdc = yes; then
4059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4066 $EGREP "memchr" >/dev/null 2>&1; then :
4069 ac_cv_header_stdc=no
4075 if test $ac_cv_header_stdc = yes; then
4076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083 $EGREP "free" >/dev/null 2>&1; then :
4086 ac_cv_header_stdc=no
4092 if test $ac_cv_header_stdc = yes; then
4093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4094 if test "$cross_compiling" = yes; then :
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4101 #if ((' ' & 0x0FF) == 0x020)
4102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4105 # define ISLOWER(c) \
4106 (('a' <= (c) && (c) <= 'i') \
4107 || ('j' <= (c) && (c) <= 'r') \
4108 || ('s' <= (c) && (c) <= 'z'))
4109 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4117 for (i = 0; i < 256; i++)
4118 if (XOR (islower (i), ISLOWER (i))
4119 || toupper (i) != TOUPPER (i))
4124 if ac_fn_c_try_run "$LINENO"; then :
4127 ac_cv_header_stdc=no
4129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4130 conftest.$ac_objext conftest.beam conftest.$ac_ext
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4136 $as_echo "$ac_cv_header_stdc" >&6; }
4137 if test $ac_cv_header_stdc = yes; then
4139 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4144 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4145 inttypes.h stdint.h unistd.h
4147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4148 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4151 cat >>confdefs.h <<_ACEOF
4152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4161 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4162 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4169 if test "$MINIX" = yes; then
4171 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4174 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4177 $as_echo "#define _MINIX 1" >>confdefs.h
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4183 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4184 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4190 # define __EXTENSIONS__ 1
4191 $ac_includes_default
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_safe_to_define___extensions__=yes
4203 ac_cv_safe_to_define___extensions__=no
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4208 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4209 test $ac_cv_safe_to_define___extensions__ = yes &&
4210 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4212 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4214 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4216 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4218 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4221 if test "$ac_cv_header_minix_config_h" = "yes"; then
4223 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4232 case "$exec_prefix" in
4234 exec_prefix="$prefix"
4239 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
4241 if echo $host | grep mingw >/dev/null; then on_mingw="yes"
4242 else on_mingw="no"; fi
4246 # Determine configuration file
4247 # the eval is to evaluate shell expansion twice
4248 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4250 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4252 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4254 if test $on_mingw = "no"; then
4255 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4257 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4260 # Check whether --with-conf_file was given.
4261 if test "${with_conf_file+set}" = set; then :
4262 withval=$with_conf_file; ub_conf_file="$withval"
4266 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4269 cat >>confdefs.h <<_ACEOF
4270 #define CONFIGFILE "$hdr_config"
4273 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4274 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4275 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4276 X"$ub_conf_file" : 'X\(//\)$' \| \
4277 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4278 $as_echo X"$ub_conf_file" |
4279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4298 # Determine run, chroot directory and pidfile locations
4300 # Check whether --with-run-dir was given.
4301 if test "${with_run_dir+set}" = set; then :
4302 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4304 if test $on_mingw = no; then
4305 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4313 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4316 cat >>confdefs.h <<_ACEOF
4317 #define RUN_DIR "$hdr_run"
4322 # Check whether --with-chroot-dir was given.
4323 if test "${with_chroot_dir+set}" = set; then :
4324 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4326 if test $on_mingw = no; then
4327 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4329 UNBOUND_CHROOT_DIR=""
4335 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4338 cat >>confdefs.h <<_ACEOF
4339 #define CHROOT_DIR "$hdr_chroot"
4344 # Check whether --with-share-dir was given.
4345 if test "${with_share_dir+set}" = set; then :
4346 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4348 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4353 cat >>confdefs.h <<_ACEOF
4354 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4359 # Check whether --with-pidfile was given.
4360 if test "${with_pidfile+set}" = set; then :
4361 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4363 if test $on_mingw = no; then
4364 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4372 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4375 cat >>confdefs.h <<_ACEOF
4376 #define PIDFILE "$hdr_pid"
4381 # Check whether --with-rootkey-file was given.
4382 if test "${with_rootkey_file+set}" = set; then :
4383 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4385 if test $on_mingw = no; then
4386 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4388 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4394 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4397 cat >>confdefs.h <<_ACEOF
4398 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4403 # Check whether --with-rootcert-file was given.
4404 if test "${with_rootcert_file+set}" = set; then :
4405 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4407 if test $on_mingw = no; then
4408 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4410 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4416 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4419 cat >>confdefs.h <<_ACEOF
4420 #define ROOT_CERT_FILE "$hdr_rpem"
4425 # Check whether --with-username was given.
4426 if test "${with_username+set}" = set; then :
4427 withval=$with_username; UNBOUND_USERNAME="$withval"
4429 UNBOUND_USERNAME="unbound"
4434 cat >>confdefs.h <<_ACEOF
4435 #define UB_USERNAME "$UNBOUND_USERNAME"
4440 $as_echo "#define WINVER 0x0502" >>confdefs.h
4442 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\).*$/\1,\2,\3,\4/' -e 's/^[^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9][^0-9]*\([0-9][0-9]*\)[^0-9]*$/\1,\2,\3,0/' `
4445 cat >>confdefs.h <<_ACEOF
4446 #define RSRC_PACKAGE_VERSION $wnvs
4450 # Checks for typedefs, structures, and compiler characteristics.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4452 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4453 if ${ac_cv_c_const+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4464 /* Ultrix mips cc rejects this sort of thing. */
4465 typedef int charset[2];
4466 const charset cs = { 0, 0 };
4467 /* SunOS 4.1.1 cc rejects this. */
4468 char const *const *pcpcc;
4470 /* NEC SVR4.0.2 mips cc rejects this. */
4471 struct point {int x, y;};
4472 static struct point const zero = {0,0};
4473 /* AIX XL C 1.02.0.0 rejects this.
4474 It does not let you subtract one const X* pointer from another in
4475 an arm of an if-expression whose if-part is not a constant
4477 const char *g = "string";
4478 pcpcc = &g + (g ? g-g : 0);
4479 /* HPUX 7.0 cc rejects these. */
4481 ppc = (char**) pcpcc;
4482 pcpcc = (char const *const *) ppc;
4483 { /* SCO 3.2v4 cc rejects this sort of thing. */
4486 char const *s = 0 ? (char *) 0 : (char const *) 0;
4491 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4493 const int *foo = &x[0];
4496 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4497 typedef const int *iptr;
4501 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4502 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4503 struct s { int j; const int *ap[3]; } bx;
4504 struct s *b = &bx; b->j = 5;
4506 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4510 return !cs[0] && !zero.x;
4517 if ac_fn_c_try_compile "$LINENO"; then :
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4525 $as_echo "$ac_cv_c_const" >&6; }
4526 if test $ac_cv_c_const = no; then
4528 $as_echo "#define const /**/" >>confdefs.h
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 # allow user to override the -g -O2 flags.
4540 if test "x$CFLAGS" = "x" ; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4544 $as_echo_n "checking whether $CC supports -g... " >&6; }
4545 cache=`echo g | sed 'y%.=/+-%___p_%'`
4546 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4547 $as_echo_n "(cached) " >&6
4550 echo 'void f(void){}' >conftest.c
4551 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4552 eval "cv_prog_cc_flag_$cache=yes"
4554 eval "cv_prog_cc_flag_$cache=no"
4556 rm -f conftest conftest.o conftest.c
4560 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4575 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4576 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4577 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4578 $as_echo_n "(cached) " >&6
4581 echo 'void f(void){}' >conftest.c
4582 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4583 eval "cv_prog_cc_flag_$cache=yes"
4585 eval "cv_prog_cc_flag_$cache=no"
4587 rm -f conftest conftest.o conftest.c
4591 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4595 CFLAGS="$CFLAGS -O2"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_CC+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -n "$CC"; then
4619 ac_cv_prog_CC="$CC" # Let the user override the test.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 if test -n "$CC"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4641 $as_echo "$CC" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4649 if test -z "$ac_cv_prog_CC"; then
4651 # Extract the first word of "gcc", so it can be a program name with args.
4652 set dummy gcc; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4656 $as_echo_n "(cached) " >&6
4658 if test -n "$ac_ct_CC"; then
4659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_ac_ct_CC="gcc"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4679 if test -n "$ac_ct_CC"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4681 $as_echo "$ac_ct_CC" >&6; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4687 if test "x$ac_ct_CC" = x; then
4690 case $cross_compiling:$ac_tool_warned in
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4702 if test -z "$CC"; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}cc; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_prog_CC+:} false; then :
4709 $as_echo_n "(cached) " >&6
4711 if test -n "$CC"; then
4712 ac_cv_prog_CC="$CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_CC="${ac_tool_prefix}cc"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 if test -n "$CC"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4734 $as_echo "$CC" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4743 if test -z "$CC"; then
4744 # Extract the first word of "cc", so it can be a program name with args.
4745 set dummy cc; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if ${ac_cv_prog_CC+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 if test -n "$CC"; then
4752 ac_cv_prog_CC="$CC" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4763 ac_prog_rejected=yes
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 if test $ac_prog_rejected = yes; then
4775 # We found a bogon in the path, so make sure we never use it.
4776 set dummy $ac_cv_prog_CC
4778 if test $# != 0; then
4779 # We chose a different compiler from the bogus one.
4780 # However, it has the same basename, so the bogon will be chosen
4781 # first if we set CC to just the basename; use the full file name.
4783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4789 if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 $as_echo "$CC" >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4799 if test -z "$CC"; then
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in cl.exe
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if ${ac_cv_prog_CC+:} false; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 if test -n "$CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4833 $as_echo "$CC" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4840 test -n "$CC" && break
4843 if test -z "$CC"; then
4845 for ac_prog in cl.exe
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -n "$ac_ct_CC"; then
4855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_ac_ct_CC="$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4875 if test -n "$ac_ct_CC"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4877 $as_echo "$ac_ct_CC" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4884 test -n "$ac_ct_CC" && break
4887 if test "x$ac_ct_CC" = x; then
4890 case $cross_compiling:$ac_tool_warned in
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4905 as_fn_error $? "no acceptable C compiler found in \$PATH
4906 See \`config.log' for more details" "$LINENO" 5; }
4908 # Provide some information about the compiler.
4909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4912 for ac_option in --version -v -V -qversion; do
4913 { { ac_try="$ac_compiler $ac_option >&5"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4919 $as_echo "$ac_try_echo"; } >&5
4920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 if test -s conftest.err; then
4924 ... rest of stderr output deleted ...
4925 10q' conftest.err >conftest.er1
4926 cat conftest.er1 >&5
4928 rm -f conftest.er1 conftest.err
4929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4930 test $ac_status = 0; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4935 if ${ac_cv_c_compiler_gnu+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4952 if ac_fn_c_try_compile "$LINENO"; then :
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4962 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4963 if test $ac_compiler_gnu = yes; then
4968 ac_test_CFLAGS=${CFLAGS+set}
4969 ac_save_CFLAGS=$CFLAGS
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4971 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4972 if ${ac_cv_prog_cc_g+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 ac_save_c_werror_flag=$ac_c_werror_flag
4976 ac_c_werror_flag=yes
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4990 if ac_fn_c_try_compile "$LINENO"; then :
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
5005 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_c_werror_flag=$ac_save_c_werror_flag
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5021 if ac_fn_c_try_compile "$LINENO"; then :
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5032 $as_echo "$ac_cv_prog_cc_g" >&6; }
5033 if test "$ac_test_CFLAGS" = set; then
5034 CFLAGS=$ac_save_CFLAGS
5035 elif test $ac_cv_prog_cc_g = yes; then
5036 if test "$GCC" = yes; then
5042 if test "$GCC" = yes; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5050 if ${ac_cv_prog_cc_c89+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 ac_cv_prog_cc_c89=no
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5061 struct buf { int x; };
5062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5063 static char *e (p, i)
5069 static char *f (char * (*g) (char **, int), char **p, ...)
5074 s = g (p, va_arg (v,int));
5079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5080 function prototypes and stuff, but not '\xHH' hex character constants.
5081 These don't provoke an error unfortunately, instead are silently treated
5082 as 'x'. The following induces an error, until -std is added to get
5083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5084 array size at least. It's necessary to write '\x00'==0 to get something
5085 that's true only with -std. */
5086 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5089 inside strings and character constants. */
5091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5093 int test (int i, double x);
5094 struct s1 {int (*f) (int a);};
5095 struct s2 {int (*f) (double a);};
5096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5110 CC="$ac_save_CC $ac_arg"
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_c89=$ac_arg
5114 rm -f core conftest.err conftest.$ac_objext
5115 test "x$ac_cv_prog_cc_c89" != "xno" && break
5117 rm -f conftest.$ac_ext
5122 case "x$ac_cv_prog_cc_c89" in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125 $as_echo "none needed" >&6; } ;;
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128 $as_echo "unsupported" >&6; } ;;
5130 CC="$CC $ac_cv_prog_cc_c89"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5134 if test "x$ac_cv_prog_cc_c89" != xno; then :
5139 ac_cpp='$CPP $CPPFLAGS'
5140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5146 $as_echo_n "checking $CC dependency flag... " >&6; }
5147 echo 'void f(){}' >conftest.c
5148 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5151 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5154 DEPFLAG="-MM" # dunno do something
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5158 $as_echo "$DEPFLAG" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5166 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5167 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5168 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5169 $as_echo_n "(cached) " >&6
5172 echo 'void f(void){}' >conftest.c
5173 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5174 eval "cv_prog_cc_flag_$cache=yes"
5176 eval "cv_prog_cc_flag_$cache=no"
5178 rm -f conftest conftest.o conftest.c
5182 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184 $as_echo "yes" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5197 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5198 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5199 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5200 $as_echo_n "(cached) " >&6
5203 echo 'void f(void){}' >conftest.c
5204 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5205 eval "cv_prog_cc_flag_$cache=yes"
5207 eval "cv_prog_cc_flag_$cache=no"
5209 rm -f conftest conftest.o conftest.c
5213 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5217 ERRFLAG="$ERRFLAG -Wall"
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5222 ERRFLAG="$ERRFLAG -errfmt"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5230 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5231 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5232 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5233 $as_echo_n "(cached) " >&6
5236 echo 'void f(void){}' >conftest.c
5237 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5238 eval "cv_prog_cc_flag_$cache=yes"
5240 eval "cv_prog_cc_flag_$cache=no"
5242 rm -f conftest conftest.o conftest.c
5246 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248 $as_echo "yes" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5261 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5262 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5263 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5264 $as_echo_n "(cached) " >&6
5267 echo 'void f(void){}' >conftest.c
5268 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5269 eval "cv_prog_cc_flag_$cache=yes"
5271 eval "cv_prog_cc_flag_$cache=no"
5273 rm -f conftest conftest.o conftest.c
5277 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5290 for ac_header in getopt.h time.h
5292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5296 cat >>confdefs.h <<_ACEOF
5297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5309 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5310 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5311 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5312 $as_echo_n "(cached) " >&6
5316 #include "confdefs.h"
5319 #include <sys/time.h>
5325 #ifdef HAVE_GETOPT_H
5336 const char* str = NULL;
5338 msg.msg_control = 0;
5339 t = ctime_r(&time, buf);
5342 a = getopt(2, opts, "a");
5344 str = gai_strerror(0);
5345 if(str && t && tv.tv_usec && msg.msg_control)
5350 echo 'void f(){}' >>conftest.c
5351 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5352 eval "cv_prog_cc_flag_needed_$cache=no"
5355 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5356 eval "cv_prog_cc_flag_needed_$cache=yes"
5358 eval "cv_prog_cc_flag_needed_$cache=fail"
5359 #echo 'Test with flag fails too!'
5361 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5362 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5367 rm -f conftest conftest.c conftest.o
5371 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5373 $as_echo "yes" >&6; }
5375 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5377 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 #echo 'Test with flag is no!'
5382 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5383 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5389 $as_echo "failed" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5400 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5401 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5402 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5403 $as_echo_n "(cached) " >&6
5407 #include "confdefs.h"
5410 #include <sys/time.h>
5416 #ifdef HAVE_GETOPT_H
5427 const char* str = NULL;
5429 msg.msg_control = 0;
5430 t = ctime_r(&time, buf);
5433 a = getopt(2, opts, "a");
5435 str = gai_strerror(0);
5436 if(str && t && tv.tv_usec && msg.msg_control)
5441 echo 'void f(){}' >>conftest.c
5442 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5443 eval "cv_prog_cc_flag_needed_$cache=no"
5446 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5447 eval "cv_prog_cc_flag_needed_$cache=yes"
5449 eval "cv_prog_cc_flag_needed_$cache=fail"
5450 #echo 'Test with flag fails too!'
5452 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5453 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5458 rm -f conftest conftest.c conftest.o
5462 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }
5466 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5468 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 #echo 'Test with flag is no!'
5473 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5474 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5480 $as_echo "failed" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5491 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5492 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5493 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5494 $as_echo_n "(cached) " >&6
5498 #include <stdbool.h>
5505 echo 'void f(){}' >>conftest.c
5506 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5507 eval "cv_prog_cc_flag_needed_$cache=no"
5510 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5511 eval "cv_prog_cc_flag_needed_$cache=yes"
5513 eval "cv_prog_cc_flag_needed_$cache=fail"
5514 #echo 'Test with flag fails too!'
5516 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5517 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5522 rm -f conftest conftest.c conftest.o
5526 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5530 CFLAGS="$CFLAGS $C99FLAG"
5532 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 #echo 'Test with flag is no!'
5537 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5538 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5544 $as_echo "failed" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5555 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5556 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5557 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5558 $as_echo_n "(cached) " >&6
5570 echo 'void f(){}' >>conftest.c
5571 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5572 eval "cv_prog_cc_flag_needed_$cache=no"
5575 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5576 eval "cv_prog_cc_flag_needed_$cache=yes"
5578 eval "cv_prog_cc_flag_needed_$cache=fail"
5579 #echo 'Test with flag fails too!'
5581 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5582 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5587 rm -f conftest conftest.c conftest.o
5591 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593 $as_echo "yes" >&6; }
5595 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5597 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 #echo 'Test with flag is no!'
5602 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5603 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5609 $as_echo "failed" >&6; }
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5620 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5622 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5623 $as_echo_n "(cached) " >&6
5627 #include <netinet/in.h>
5630 struct in6_pktinfo inf;
5631 int a = (int)sizeof(inf);
5635 echo 'void f(){}' >>conftest.c
5636 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5637 eval "cv_prog_cc_flag_needed_$cache=no"
5640 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5641 eval "cv_prog_cc_flag_needed_$cache=yes"
5643 eval "cv_prog_cc_flag_needed_$cache=fail"
5644 #echo 'Test with flag fails too!'
5646 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5647 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5652 rm -f conftest conftest.c conftest.o
5656 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5660 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5662 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 #echo 'Test with flag is no!'
5667 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5668 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5674 $as_echo "failed" >&6; }
5681 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5682 # is not available at all. -D_FRSRESGID is to make this check unique.
5683 # otherwise we would get the previous cached result.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5688 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5689 cache=_D_GNU_SOURCE__D_FRSRESGID
5690 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5691 $as_echo_n "(cached) " >&6
5698 int a = setresgid(0,0,0);
5699 a = setresuid(0,0,0);
5703 echo 'void f(){}' >>conftest.c
5704 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5705 eval "cv_prog_cc_flag_needed_$cache=no"
5708 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5709 eval "cv_prog_cc_flag_needed_$cache=yes"
5711 eval "cv_prog_cc_flag_needed_$cache=fail"
5712 #echo 'Test with flag fails too!'
5714 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5715 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5720 rm -f conftest conftest.c conftest.o
5724 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5726 $as_echo "yes" >&6; }
5728 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5730 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 #echo 'Test with flag is no!'
5735 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5736 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5742 $as_echo "failed" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5753 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5754 cache=_D_POSIX_C_SOURCE_200112
5755 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5756 $as_echo_n "(cached) " >&6
5760 #include "confdefs.h"
5771 const char* str = NULL;
5772 t = ctime_r(&time, buf);
5773 str = gai_strerror(0);
5779 echo 'void f(){}' >>conftest.c
5780 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5781 eval "cv_prog_cc_flag_needed_$cache=no"
5784 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5785 eval "cv_prog_cc_flag_needed_$cache=yes"
5787 eval "cv_prog_cc_flag_needed_$cache=fail"
5788 #echo 'Test with flag fails too!'
5790 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5791 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5796 rm -f conftest conftest.c conftest.o
5800 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5804 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5806 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5809 #echo 'Test with flag is no!'
5811 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5812 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5818 $as_echo "failed" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5829 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5830 cache=_D__EXTENSIONS__
5831 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5832 $as_echo_n "(cached) " >&6
5836 #include "confdefs.h"
5839 #include <sys/time.h>
5844 #ifdef HAVE_GETOPT_H
5854 a = getopt(2, opts, "a");
5861 echo 'void f(){}' >>conftest.c
5862 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5863 eval "cv_prog_cc_flag_needed_$cache=no"
5866 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5867 eval "cv_prog_cc_flag_needed_$cache=yes"
5869 eval "cv_prog_cc_flag_needed_$cache=fail"
5870 #echo 'Test with flag fails too!'
5872 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5873 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5878 rm -f conftest conftest.c conftest.o
5882 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5884 $as_echo "yes" >&6; }
5886 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5888 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 #echo 'Test with flag is no!'
5893 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5894 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5900 $as_echo "failed" >&6; }
5909 # debug mode flags warnings
5910 # Check whether --enable-checking was given.
5911 if test "${enable_checking+set}" = set; then :
5912 enableval=$enable_checking;
5915 # Check whether --enable-debug was given.
5916 if test "${enable_debug+set}" = set; then :
5917 enableval=$enable_debug;
5920 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5921 else debug_enabled="$enable_checking"; fi
5923 case "$debug_enabled" in
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5928 $as_echo_n "checking whether $CC supports -W... " >&6; }
5929 cache=`echo W | sed 'y%.=/+-%___p_%'`
5930 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5931 $as_echo_n "(cached) " >&6
5934 echo 'void f(void){}' >conftest.c
5935 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5936 eval "cv_prog_cc_flag_$cache=yes"
5938 eval "cv_prog_cc_flag_$cache=no"
5940 rm -f conftest conftest.o conftest.c
5944 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5946 $as_echo "yes" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5959 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5960 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5961 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5962 $as_echo_n "(cached) " >&6
5965 echo 'void f(void){}' >conftest.c
5966 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5967 eval "cv_prog_cc_flag_$cache=yes"
5969 eval "cv_prog_cc_flag_$cache=no"
5971 rm -f conftest conftest.o conftest.c
5975 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5979 CFLAGS="$CFLAGS -Wall"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5990 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5991 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5992 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5993 $as_echo_n "(cached) " >&6
5996 echo 'void f(void){}' >conftest.c
5997 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5998 eval "cv_prog_cc_flag_$cache=yes"
6000 eval "cv_prog_cc_flag_$cache=no"
6002 rm -f conftest conftest.o conftest.c
6006 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6008 $as_echo "yes" >&6; }
6010 CFLAGS="$CFLAGS -Wextra"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
6021 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
6022 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
6023 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6024 $as_echo_n "(cached) " >&6
6027 echo 'void f(void){}' >conftest.c
6028 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
6029 eval "cv_prog_cc_flag_$cache=yes"
6031 eval "cv_prog_cc_flag_$cache=no"
6033 rm -f conftest conftest.o conftest.c
6037 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6039 $as_echo "yes" >&6; }
6041 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6050 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6057 if test "$default_cflags" = "yes"; then
6058 # only when CFLAGS was "" at the start, if the users wants to
6059 # override we shouldn't add default cflags, because they wouldn't
6060 # be able to turn off these options and set the CFLAGS wanted.
6062 # Check whether --enable-flto was given.
6063 if test "${enable_flto+set}" = set; then :
6064 enableval=$enable_flto;
6067 if test "x$enable_flto" != "xno"; then :
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6070 $as_echo_n "checking if $CC supports -flto... " >&6; }
6072 CFLAGS="$CFLAGS -flto"
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6084 if ac_fn_c_try_link "$LINENO"; then :
6086 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6092 $as_echo "yes" >&6; }
6094 rm -f conftest conftest.c conftest.o
6097 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6100 rm -f core conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6106 # Check whether --enable-pie was given.
6107 if test "${enable_pie+set}" = set; then :
6108 enableval=$enable_pie;
6111 if test "x$enable_pie" = "xyes"; then :
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6114 $as_echo_n "checking if $CC supports PIE... " >&6; }
6115 BAKLDFLAGS="$LDFLAGS"
6117 LDFLAGS="$LDFLAGS -pie"
6118 CFLAGS="$CFLAGS -fPIE"
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6130 if ac_fn_c_try_link "$LINENO"; then :
6132 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6133 LDFLAGS="$BAKLDFLAGS"
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138 $as_echo "yes" >&6; }
6140 rm -f conftest conftest.c conftest.o
6143 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6146 rm -f core conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6152 # Check whether --enable-relro_now was given.
6153 if test "${enable_relro_now+set}" = set; then :
6154 enableval=$enable_relro_now;
6157 if test "x$enable_relro_now" = "xyes"; then :
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6160 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6161 BAKLDFLAGS="$LDFLAGS"
6162 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6174 if ac_fn_c_try_link "$LINENO"; then :
6176 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6177 LDFLAGS="$BAKLDFLAGS"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6182 $as_echo "yes" >&6; }
6184 rm -f conftest conftest.c conftest.o
6187 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6190 rm -f core conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6198 $as_echo_n "checking for inline... " >&6; }
6199 if ${ac_cv_c_inline+:} false; then :
6200 $as_echo_n "(cached) " >&6
6203 for ac_kw in inline __inline__ __inline; do
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6208 static $ac_kw foo_t static_foo () {return 0; }
6209 $ac_kw foo_t foo () {return 0; }
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 ac_cv_c_inline=$ac_kw
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 test "$ac_cv_c_inline" != no && break
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6222 $as_echo "$ac_cv_c_inline" >&6; }
6224 case $ac_cv_c_inline in
6227 case $ac_cv_c_inline in
6229 *) ac_val=$ac_cv_c_inline;;
6231 cat >>confdefs.h <<_ACEOF
6233 #define inline $ac_val
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6241 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6242 if ${ac_cv_c_format_attribute+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 ac_cv_c_format_attribute=no
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6250 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263 ac_cv_c_format_attribute="yes"
6265 ac_cv_c_format_attribute="no"
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6273 $as_echo "$ac_cv_c_format_attribute" >&6; }
6274 if test $ac_cv_c_format_attribute = yes; then
6276 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6282 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6283 if ${ac_cv_c_unused_attribute+:} false; then :
6284 $as_echo_n "(cached) " >&6
6286 ac_cv_c_unused_attribute=no
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 void f (char *u __attribute__((unused)));
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 ac_cv_c_unused_attribute="yes"
6305 ac_cv_c_unused_attribute="no"
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6315 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6316 if test $ac_cv_c_unused_attribute = yes; then
6318 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6326 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6327 if ${ac_cv_c_weak_attribute+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 ac_cv_c_weak_attribute=no
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6334 __attribute__((weak)) void f(int x) { printf("%d", x); }
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 ac_cv_c_weak_attribute="yes"
6349 ac_cv_c_weak_attribute="no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6357 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6358 if test $ac_cv_c_weak_attribute = yes; then
6360 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6363 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6371 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6372 if ${ac_cv_c_noreturn_attribute+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 ac_cv_c_noreturn_attribute=no
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6379 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 ac_cv_c_noreturn_attribute="yes"
6394 ac_cv_c_noreturn_attribute="no"
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6402 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6403 if test $ac_cv_c_noreturn_attribute = yes; then
6405 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6408 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6413 if test "$srcdir" != "."; then
6414 CPPFLAGS="$CPPFLAGS -I$srcdir"
6421 for ac_prog in flex lex
6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
6424 set dummy $ac_prog; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if ${ac_cv_prog_LEX+:} false; then :
6428 $as_echo_n "(cached) " >&6
6430 if test -n "$LEX"; then
6431 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_LEX="$ac_prog"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 if test -n "$LEX"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6453 $as_echo "$LEX" >&6; }
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6460 test -n "$LEX" && break
6462 test -n "$LEX" || LEX=":"
6464 if test "x$LEX" != "x:"; then
6465 cat >conftest.l <<_ACEOF
6471 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6472 yyless ((input () != 0)); }
6473 f { unput (yytext[0]); }
6474 . { BEGIN INITIAL; }
6476 #ifdef YYTEXT_POINTER
6477 extern char *yytext;
6482 return ! yylex () + ! yywrap ();
6485 { { ac_try="$LEX conftest.l"
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6491 $as_echo "$ac_try_echo"; } >&5
6492 (eval "$LEX conftest.l") 2>&5
6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495 test $ac_status = 0; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6497 $as_echo_n "checking lex output file root... " >&6; }
6498 if ${ac_cv_prog_lex_root+:} false; then :
6499 $as_echo_n "(cached) " >&6
6502 if test -f lex.yy.c; then
6503 ac_cv_prog_lex_root=lex.yy
6504 elif test -f lexyy.c; then
6505 ac_cv_prog_lex_root=lexyy
6507 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6511 $as_echo "$ac_cv_prog_lex_root" >&6; }
6512 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6514 if test -z "${LEXLIB+set}"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6516 $as_echo_n "checking lex library... " >&6; }
6517 if ${ac_cv_lib_lex+:} false; then :
6518 $as_echo_n "(cached) " >&6
6522 ac_cv_lib_lex='none needed'
6523 for ac_lib in '' -lfl -ll; do
6524 LIBS="$ac_lib $ac_save_LIBS"
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 `cat $LEX_OUTPUT_ROOT.c`
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 ac_cv_lib_lex=$ac_lib
6532 rm -f core conftest.err conftest.$ac_objext \
6533 conftest$ac_exeext conftest.$ac_ext
6534 test "$ac_cv_lib_lex" != 'none needed' && break
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6540 $as_echo "$ac_cv_lib_lex" >&6; }
6541 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6546 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6547 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 # POSIX says lex can declare yytext either as a pointer or an array; the
6551 # default is implementation-dependent. Figure out which it is, since
6552 # not all implementations provide the %pointer and %array declarations.
6553 ac_cv_prog_lex_yytext_pointer=no
6555 LIBS="$LEXLIB $ac_save_LIBS"
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 #define YYTEXT_POINTER 1
6560 `cat $LEX_OUTPUT_ROOT.c`
6562 if ac_fn_c_try_link "$LINENO"; then :
6563 ac_cv_prog_lex_yytext_pointer=yes
6565 rm -f core conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6571 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6572 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6574 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6577 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6580 if test "$LEX" != "" -a "$LEX" != ":"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6583 $as_echo_n "checking for yylex_destroy... " >&6; }
6584 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6586 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6589 $as_echo "yes" >&6; }
6590 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; };
6596 if test "$LEX" != "" -a "$LEX" != ":"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6599 $as_echo_n "checking for lex %option... " >&6; }
6600 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }
6606 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; };
6612 for ac_prog in 'bison -y' byacc
6614 # Extract the first word of "$ac_prog", so it can be a program name with args.
6615 set dummy $ac_prog; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_YACC+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$YACC"; then
6622 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_YACC="$ac_prog"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 YACC=$ac_cv_prog_YACC
6642 if test -n "$YACC"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6644 $as_echo "$YACC" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6651 test -n "$YACC" && break
6653 test -n "$YACC" || YACC="yacc"
6655 # Extract the first word of "doxygen", so it can be a program name with args.
6656 set dummy doxygen; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if ${ac_cv_prog_doxygen+:} false; then :
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$doxygen"; then
6663 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672 ac_cv_prog_doxygen="doxygen"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 doxygen=$ac_cv_prog_doxygen
6683 if test -n "$doxygen"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6685 $as_echo "$doxygen" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}strip; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_STRIP+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$STRIP"; then
6701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 STRIP=$ac_cv_prog_STRIP
6721 if test -n "$STRIP"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6723 $as_echo "$STRIP" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_STRIP"; then
6733 # Extract the first word of "strip", so it can be a program name with args.
6734 set dummy strip; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$ac_ct_STRIP"; then
6741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_STRIP="strip"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6761 if test -n "$ac_ct_STRIP"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6763 $as_echo "$ac_ct_STRIP" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_STRIP" = x; then
6772 case $cross_compiling:$ac_tool_warned in
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6781 STRIP="$ac_cv_prog_STRIP"
6785 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6786 if test -f "$ac_dir/install-sh"; then
6788 ac_install_sh="$ac_aux_dir/install-sh -c"
6790 elif test -f "$ac_dir/install.sh"; then
6792 ac_install_sh="$ac_aux_dir/install.sh -c"
6794 elif test -f "$ac_dir/shtool"; then
6796 ac_install_sh="$ac_aux_dir/shtool install -c"
6800 if test -z "$ac_aux_dir"; then
6801 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6804 # These three variables are undocumented and unsupported,
6805 # and are intended to be withdrawn in a future Autoconf release.
6806 # They can cause serious problems if a builder's source tree is in a directory
6807 # whose full name contains unusual characters.
6808 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6809 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6810 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6813 # Make sure we can run config.sub.
6814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6818 $as_echo_n "checking build system type... " >&6; }
6819 if ${ac_cv_build+:} false; then :
6820 $as_echo_n "(cached) " >&6
6822 ac_build_alias=$build_alias
6823 test "x$ac_build_alias" = x &&
6824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6825 test "x$ac_build_alias" = x &&
6826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6827 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6832 $as_echo "$ac_cv_build" >&6; }
6833 case $ac_cv_build in
6835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6838 ac_save_IFS=$IFS; IFS='-'
6844 # Remember, the first character of IFS is used to create $*,
6845 # except with old shells:
6848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6852 $as_echo_n "checking host system type... " >&6; }
6853 if ${ac_cv_host+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 if test "x$host_alias" = x; then
6857 ac_cv_host=$ac_cv_build
6859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6865 $as_echo "$ac_cv_host" >&6; }
6868 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6871 ac_save_IFS=$IFS; IFS='-'
6877 # Remember, the first character of IFS is used to create $*,
6878 # except with old shells:
6881 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6885 # skip these tests, we do not need them.
6894 # always use ./libtool unless override from commandline (libtool=mylibtool)
6895 if test -z "$libtool"; then
6899 # avoid libtool max commandline length test on systems that fork slowly.
6901 if echo "$host_os" | grep "sunos4" >/dev/null; then
6902 lt_cv_sys_max_cmd_len=32750;
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}ar; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_path_AR+:} false; then :
6910 $as_echo_n "(cached) " >&6
6914 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 if test -n "$AR"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6938 $as_echo "$AR" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6946 if test -z "$ac_cv_path_AR"; then
6948 # Extract the first word of "ar", so it can be a program name with args.
6949 set dummy ar; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_path_ac_pt_AR+:} false; then :
6953 $as_echo_n "(cached) " >&6
6957 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 ac_pt_AR=$ac_cv_path_ac_pt_AR
6979 if test -n "$ac_pt_AR"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6981 $as_echo "$ac_pt_AR" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6987 if test "x$ac_pt_AR" = x; then
6990 case $cross_compiling:$ac_tool_warned in
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
7002 if test $AR = false; then
7003 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7009 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7014 macro_version='2.4.6'
7015 macro_revision='2.4.6'
7029 ltmain=$ac_aux_dir/ltmain.sh
7031 # Backslashify metacharacters that are still active within
7032 # double-quoted strings.
7033 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7035 # Same as above, but do not quote variable references.
7036 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7038 # Sed substitution to delay expansion of an escaped shell variable in a
7039 # double_quote_subst'ed string.
7040 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7042 # Sed substitution to delay expansion of an escaped single quote.
7043 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7045 # Sed substitution to avoid accidental globbing in evaled expressions
7046 no_glob_subst='s/\*/\\\*/g'
7048 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7049 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7050 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7053 $as_echo_n "checking how to print strings... " >&6; }
7054 # Test print first, because it will be a builtin if present.
7055 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7056 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7058 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7061 # Use this function as a fallback that always works.
7062 func_fallback_echo ()
7064 eval 'cat <<_LTECHO_EOF
7068 ECHO='func_fallback_echo'
7071 # func_echo_all arg...
7072 # Invoke $ECHO with all args, space-separated.
7079 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7080 $as_echo "printf" >&6; } ;;
7081 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7082 $as_echo "print -r" >&6; } ;;
7083 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7084 $as_echo "cat" >&6; } ;;
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7101 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7102 if ${ac_cv_path_SED+:} false; then :
7103 $as_echo_n "(cached) " >&6
7105 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7106 for ac_i in 1 2 3 4 5 6 7; do
7107 ac_script="$ac_script$as_nl$ac_script"
7109 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7110 { ac_script=; unset ac_script;}
7111 if test -z "$SED"; then
7112 ac_path_SED_found=false
7113 # Loop through the user's path and test for each of PROGNAME-LIST
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_prog in sed gsed; do
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7122 as_fn_executable_p "$ac_path_SED" || continue
7123 # Check for GNU ac_path_SED and select it if it is found.
7124 # Check for GNU $ac_path_SED
7125 case `"$ac_path_SED" --version 2>&1` in
7127 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7130 $as_echo_n 0123456789 >"conftest.in"
7133 cat "conftest.in" "conftest.in" >"conftest.tmp"
7134 mv "conftest.tmp" "conftest.in"
7135 cp "conftest.in" "conftest.nl"
7136 $as_echo '' >> "conftest.nl"
7137 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139 as_fn_arith $ac_count + 1 && ac_count=$as_val
7140 if test $ac_count -gt ${ac_path_SED_max-0}; then
7141 # Best one so far, save it but keep looking for a better one
7142 ac_cv_path_SED="$ac_path_SED"
7143 ac_path_SED_max=$ac_count
7145 # 10*(2^10) chars as input seems more than enough
7146 test $ac_count -gt 10 && break
7148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7151 $ac_path_SED_found && break 3
7156 if test -z "$ac_cv_path_SED"; then
7157 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7165 $as_echo "$ac_cv_path_SED" >&6; }
7166 SED="$ac_cv_path_SED"
7169 test -z "$SED" && SED=sed
7170 Xsed="$SED -e 1s/^X//"
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7183 $as_echo_n "checking for fgrep... " >&6; }
7184 if ${ac_cv_path_FGREP+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7188 then ac_cv_path_FGREP="$GREP -F"
7190 if test -z "$FGREP"; then
7191 ac_path_FGREP_found=false
7192 # Loop through the user's path and test for each of PROGNAME-LIST
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7197 test -z "$as_dir" && as_dir=.
7198 for ac_prog in fgrep; do
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7201 as_fn_executable_p "$ac_path_FGREP" || continue
7202 # Check for GNU ac_path_FGREP and select it if it is found.
7203 # Check for GNU $ac_path_FGREP
7204 case `"$ac_path_FGREP" --version 2>&1` in
7206 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7209 $as_echo_n 0123456789 >"conftest.in"
7212 cat "conftest.in" "conftest.in" >"conftest.tmp"
7213 mv "conftest.tmp" "conftest.in"
7214 cp "conftest.in" "conftest.nl"
7215 $as_echo 'FGREP' >> "conftest.nl"
7216 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7218 as_fn_arith $ac_count + 1 && ac_count=$as_val
7219 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7220 # Best one so far, save it but keep looking for a better one
7221 ac_cv_path_FGREP="$ac_path_FGREP"
7222 ac_path_FGREP_max=$ac_count
7224 # 10*(2^10) chars as input seems more than enough
7225 test $ac_count -gt 10 && break
7227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7230 $ac_path_FGREP_found && break 3
7235 if test -z "$ac_cv_path_FGREP"; then
7236 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7239 ac_cv_path_FGREP=$FGREP
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7245 $as_echo "$ac_cv_path_FGREP" >&6; }
7246 FGREP="$ac_cv_path_FGREP"
7249 test -z "$GREP" && GREP=grep
7269 # Check whether --with-gnu-ld was given.
7270 if test "${with_gnu_ld+set}" = set; then :
7271 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7277 if test yes = "$GCC"; then
7278 # Check if gcc -print-prog-name=ld gives a path.
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7280 $as_echo_n "checking for ld used by $CC... " >&6; }
7283 # gcc leaves a trailing carriage return, which upsets mingw
7284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7289 # Accept absolute paths.
7291 re_direlt='/[^/][^/]*/\.\./'
7292 # Canonicalize the pathname of ld
7293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7297 test -z "$LD" && LD=$ac_prog
7300 # If it fails, then pretend we aren't using GCC.
7304 # If it is relative, then search for the first ld in PATH.
7308 elif test yes = "$with_gnu_ld"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7310 $as_echo_n "checking for GNU ld... " >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7313 $as_echo_n "checking for non-GNU ld... " >&6; }
7315 if ${lt_cv_path_LD+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -z "$LD"; then
7319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7320 for ac_dir in $PATH; do
7322 test -z "$ac_dir" && ac_dir=.
7323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7324 lt_cv_path_LD=$ac_dir/$ac_prog
7325 # Check to see if the program is GNU ld. I'd rather use --version,
7326 # but apparently some variants of GNU ld only accept -v.
7327 # Break only if it was the GNU/non-GNU ld that we prefer.
7328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7329 *GNU* | *'with BFD'*)
7330 test no != "$with_gnu_ld" && break
7333 test yes != "$with_gnu_ld" && break
7340 lt_cv_path_LD=$LD # Let the user override the test with a path.
7345 if test -n "$LD"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7347 $as_echo "$LD" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7352 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7354 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7355 if ${lt_cv_prog_gnu_ld+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7359 case `$LD -v 2>&1 </dev/null` in
7360 *GNU* | *'with BFD'*)
7361 lt_cv_prog_gnu_ld=yes
7364 lt_cv_prog_gnu_ld=no
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7369 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7370 with_gnu_ld=$lt_cv_prog_gnu_ld
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7381 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7382 if ${lt_cv_path_NM+:} false; then :
7383 $as_echo_n "(cached) " >&6
7385 if test -n "$NM"; then
7386 # Let the user override the test.
7389 lt_nm_to_check=${ac_tool_prefix}nm
7390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7391 lt_nm_to_check="$lt_nm_to_check nm"
7393 for lt_tmp_nm in $lt_nm_to_check; do
7394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7397 test -z "$ac_dir" && ac_dir=.
7398 tmp_nm=$ac_dir/$lt_tmp_nm
7399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7400 # Check to see if the nm accepts a BSD-compat flag.
7401 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7402 # nm: unknown option "B" ignored
7403 # Tru64's nm complains that /dev/null is an invalid object file
7404 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7406 mingw*) lt_bad_file=conftest.nm/nofile ;;
7407 *) lt_bad_file=/dev/null ;;
7409 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7410 *$lt_bad_file* | *'Invalid file or object type'*)
7411 lt_cv_path_NM="$tmp_nm -B"
7415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7417 lt_cv_path_NM="$tmp_nm -p"
7421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7422 continue # so that we can try to find one that supports BSD flags
7431 : ${lt_cv_path_NM=no}
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7435 $as_echo "$lt_cv_path_NM" >&6; }
7436 if test no != "$lt_cv_path_NM"; then
7439 # Didn't find any BSD compatible name lister, look for dumpbin.
7440 if test -n "$DUMPBIN"; then :
7441 # Let the user override the test.
7443 if test -n "$ac_tool_prefix"; then
7444 for ac_prog in dumpbin "link -dump"
7446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_DUMPBIN+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$DUMPBIN"; then
7454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 DUMPBIN=$ac_cv_prog_DUMPBIN
7474 if test -n "$DUMPBIN"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7476 $as_echo "$DUMPBIN" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7483 test -n "$DUMPBIN" && break
7486 if test -z "$DUMPBIN"; then
7487 ac_ct_DUMPBIN=$DUMPBIN
7488 for ac_prog in dumpbin "link -dump"
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$ac_ct_DUMPBIN"; then
7498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7518 if test -n "$ac_ct_DUMPBIN"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7520 $as_echo "$ac_ct_DUMPBIN" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7527 test -n "$ac_ct_DUMPBIN" && break
7530 if test "x$ac_ct_DUMPBIN" = x; then
7533 case $cross_compiling:$ac_tool_warned in
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7539 DUMPBIN=$ac_ct_DUMPBIN
7543 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7545 DUMPBIN="$DUMPBIN -symbols -headers"
7553 if test : != "$DUMPBIN"; then
7557 test -z "$NM" && NM=nm
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7565 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7566 if ${lt_cv_nm_interface+:} false; then :
7567 $as_echo_n "(cached) " >&6
7569 lt_cv_nm_interface="BSD nm"
7570 echo "int some_variable = 0;" > conftest.$ac_ext
7571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7572 (eval "$ac_compile" 2>conftest.err)
7573 cat conftest.err >&5
7574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7576 cat conftest.err >&5
7577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7578 cat conftest.out >&5
7579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7580 lt_cv_nm_interface="MS dumpbin"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7585 $as_echo "$lt_cv_nm_interface" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7588 $as_echo_n "checking whether ln -s works... " >&6; }
7590 if test "$LN_S" = "ln -s"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592 $as_echo "yes" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7595 $as_echo "no, using $LN_S" >&6; }
7598 # find the maximum length of command line arguments
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7600 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7601 if ${lt_cv_sys_max_cmd_len+:} false; then :
7602 $as_echo_n "(cached) " >&6
7609 # On DJGPP, this test can blow up pretty badly due to problems in libc
7610 # (any single argument exceeding 2000 bytes causes a buffer overrun
7611 # during glob expansion). Even if it were fixed, the result of this
7612 # check would be larger than it should be.
7613 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7617 # Under GNU Hurd, this test is not required because there is
7618 # no limit to the length of command line arguments.
7619 # Libtool will interpret -1 as no limit whatsoever
7620 lt_cv_sys_max_cmd_len=-1;
7623 cygwin* | mingw* | cegcc*)
7624 # On Win9x/ME, this test blows up -- it succeeds, but takes
7625 # about 5 minutes as the teststring grows exponentially.
7626 # Worse, since 9x/ME are not pre-emptively multitasking,
7627 # you end up with a "frozen" computer, even though with patience
7628 # the test eventually succeeds (with a max line length of 256k).
7629 # Instead, let's just punt: use the minimum linelength reported by
7630 # all of the supported platforms: 8192 (on NT/2K/XP).
7631 lt_cv_sys_max_cmd_len=8192;
7635 # On MiNT this can take a long time and run out of memory.
7636 lt_cv_sys_max_cmd_len=8192;
7640 # On AmigaOS with pdksh, this test takes hours, literally.
7641 # So we just punt and use a minimum line length of 8192.
7642 lt_cv_sys_max_cmd_len=8192;
7645 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7646 # This has been around since 386BSD, at least. Likely further.
7647 if test -x /sbin/sysctl; then
7648 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7649 elif test -x /usr/sbin/sysctl; then
7650 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7652 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7654 # And add a safety zone
7655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7660 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7661 lt_cv_sys_max_cmd_len=196608
7665 # The test takes a long time on OS/2.
7666 lt_cv_sys_max_cmd_len=8192
7670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7672 # nice to cause kernel panics so lets avoid the loop below.
7673 # First set a reasonable default.
7674 lt_cv_sys_max_cmd_len=16384
7676 if test -x /sbin/sysconfig; then
7677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7683 lt_cv_sys_max_cmd_len=102400
7685 sysv5* | sco5v6* | sysv4.2uw2*)
7686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7687 if test -n "$kargmax"; then
7688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7690 lt_cv_sys_max_cmd_len=32768
7694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7695 if test -n "$lt_cv_sys_max_cmd_len" && \
7696 test undefined != "$lt_cv_sys_max_cmd_len"; then
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7700 # Make teststring a little bigger before we do anything with it.
7701 # a 1K string should be a reasonable start.
7702 for i in 1 2 3 4 5 6 7 8; do
7703 teststring=$teststring$teststring
7705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7706 # If test is not a shell built-in, we'll probably end up computing a
7707 # maximum length that is only half of the actual maximum length, but
7709 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7711 test 17 != "$i" # 1/2 MB should be enough
7714 teststring=$teststring$teststring
7716 # Only check the string length outside the loop.
7717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7719 # Add a significant safety factor because C++ compilers can tack on
7720 # massive amounts of additional arguments before passing them to the
7721 # linker. It appears as though 1/2 is a usable value.
7722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7729 if test -n "$lt_cv_sys_max_cmd_len"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7734 $as_echo "none" >&6; }
7736 max_cmd_len=$lt_cv_sys_max_cmd_len
7747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7757 # test EBCDIC or ASCII
7758 case `echo X|tr X '\101'` in
7759 A) # ASCII based system
7760 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7761 lt_SP2NL='tr \040 \012'
7762 lt_NL2SP='tr \015\012 \040\040'
7764 *) # EBCDIC based system
7765 lt_SP2NL='tr \100 \n'
7766 lt_NL2SP='tr \r\n \100\100'
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7779 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7780 if ${lt_cv_to_host_file_cmd+:} false; then :
7781 $as_echo_n "(cached) " >&6
7786 *-*-mingw* ) # actually msys
7787 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7790 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7792 * ) # otherwise, assume *nix
7793 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7799 *-*-mingw* ) # actually msys
7800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7803 lt_cv_to_host_file_cmd=func_convert_file_noop
7805 * ) # otherwise, assume *nix
7806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7810 * ) # unhandled hosts (and "normal" native builds)
7811 lt_cv_to_host_file_cmd=func_convert_file_noop
7817 to_host_file_cmd=$lt_cv_to_host_file_cmd
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7819 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7826 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7827 if ${lt_cv_to_tool_file_cmd+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 #assume ordinary cross tools, or native build.
7831 lt_cv_to_tool_file_cmd=func_convert_file_noop
7835 *-*-mingw* ) # actually msys
7836 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7844 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7846 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7853 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7854 if ${lt_cv_ld_reload_flag+:} false; then :
7855 $as_echo_n "(cached) " >&6
7857 lt_cv_ld_reload_flag='-r'
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7860 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7861 reload_flag=$lt_cv_ld_reload_flag
7862 case $reload_flag in
7864 *) reload_flag=" $reload_flag" ;;
7866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7868 cygwin* | mingw* | pw32* | cegcc*)
7869 if test yes != "$GCC"; then
7874 if test yes = "$GCC"; then
7875 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7890 if test -n "$ac_tool_prefix"; then
7891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7892 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_OBJDUMP+:} false; then :
7896 $as_echo_n "(cached) " >&6
7898 if test -n "$OBJDUMP"; then
7899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 OBJDUMP=$ac_cv_prog_OBJDUMP
7919 if test -n "$OBJDUMP"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7921 $as_echo "$OBJDUMP" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7929 if test -z "$ac_cv_prog_OBJDUMP"; then
7930 ac_ct_OBJDUMP=$OBJDUMP
7931 # Extract the first word of "objdump", so it can be a program name with args.
7932 set dummy objdump; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$ac_ct_OBJDUMP"; then
7939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7959 if test -n "$ac_ct_OBJDUMP"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7961 $as_echo "$ac_ct_OBJDUMP" >&6; }
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7967 if test "x$ac_ct_OBJDUMP" = x; then
7970 case $cross_compiling:$ac_tool_warned in
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7974 ac_tool_warned=yes ;;
7976 OBJDUMP=$ac_ct_OBJDUMP
7979 OBJDUMP="$ac_cv_prog_OBJDUMP"
7982 test -z "$OBJDUMP" && OBJDUMP=objdump
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7993 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7994 if ${lt_cv_deplibs_check_method+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 lt_cv_file_magic_cmd='$MAGIC_CMD'
7998 lt_cv_file_magic_test_file=
7999 lt_cv_deplibs_check_method='unknown'
8000 # Need to set the preceding variable on all platforms that support
8001 # interlibrary dependencies.
8002 # 'none' -- dependencies not supported.
8003 # 'unknown' -- same as none, but documents that we really don't know.
8004 # 'pass_all' -- all dependencies passed with no checks.
8005 # 'test_compile' -- check by making test program.
8006 # 'file_magic [[regex]]' -- check by looking for files in library path
8007 # that responds to the $file_magic_cmd with a given extended regex.
8008 # If you have 'file' or equivalent on your system and you're not sure
8009 # whether 'pass_all' will *always* work, you probably want this one.
8013 lt_cv_deplibs_check_method=pass_all
8017 lt_cv_deplibs_check_method=pass_all
8021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8022 lt_cv_file_magic_cmd='/usr/bin/file -L'
8023 lt_cv_file_magic_test_file=/shlib/libc.so
8027 # func_win32_libid is a shell function defined in ltmain.sh
8028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8029 lt_cv_file_magic_cmd='func_win32_libid'
8033 # Base MSYS/MinGW do not provide the 'file' command needed by
8034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8035 # unless we find 'file', for example because we are cross-compiling.
8036 if ( file / ) >/dev/null 2>&1; then
8037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8038 lt_cv_file_magic_cmd='func_win32_libid'
8040 # Keep this pattern in sync with the one in func_win32_libid.
8041 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8042 lt_cv_file_magic_cmd='$OBJDUMP -f'
8047 # use the weaker test based on 'objdump'. See mingw*.
8048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8049 lt_cv_file_magic_cmd='$OBJDUMP -f'
8052 darwin* | rhapsody*)
8053 lt_cv_deplibs_check_method=pass_all
8056 freebsd* | dragonfly*)
8057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8060 # Not sure whether the presence of OpenBSD here was a mistake.
8061 # Let's accept both of them until this is cleared up.
8062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8063 lt_cv_file_magic_cmd=/usr/bin/file
8064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8068 lt_cv_deplibs_check_method=pass_all
8073 lt_cv_deplibs_check_method=pass_all
8076 hpux10.20* | hpux11*)
8077 lt_cv_file_magic_cmd=/usr/bin/file
8080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8081 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8085 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8089 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8095 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8099 irix5* | irix6* | nonstopux*)
8101 *-32|*"-32 ") libmagic=32-bit;;
8102 *-n32|*"-n32 ") libmagic=N32;;
8103 *-64|*"-64 ") libmagic=64-bit;;
8104 *) libmagic=never-match;;
8106 lt_cv_deplibs_check_method=pass_all
8109 # This must be glibc/ELF.
8110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8111 lt_cv_deplibs_check_method=pass_all
8115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8124 lt_cv_file_magic_cmd=/usr/bin/file
8125 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8129 lt_cv_deplibs_check_method=pass_all
8133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8140 osf3* | osf4* | osf5*)
8141 lt_cv_deplibs_check_method=pass_all
8145 lt_cv_deplibs_check_method=pass_all
8149 lt_cv_deplibs_check_method=pass_all
8152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8153 lt_cv_deplibs_check_method=pass_all
8157 case $host_vendor in
8159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8163 lt_cv_deplibs_check_method=pass_all
8166 lt_cv_file_magic_cmd='/bin/file'
8167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8170 lt_cv_file_magic_cmd='/bin/file'
8171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8172 lt_cv_file_magic_test_file=/lib/libc.so
8175 lt_cv_deplibs_check_method=pass_all
8178 lt_cv_deplibs_check_method=pass_all
8184 lt_cv_deplibs_check_method=pass_all
8187 lt_cv_deplibs_check_method=pass_all
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8193 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8197 if test "$build" = "$host"; then
8200 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8203 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8209 file_magic_cmd=$lt_cv_file_magic_cmd
8210 deplibs_check_method=$lt_cv_deplibs_check_method
8211 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8234 if test -n "$ac_tool_prefix"; then
8235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_DLLTOOL+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 if test -n "$DLLTOOL"; then
8243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 DLLTOOL=$ac_cv_prog_DLLTOOL
8263 if test -n "$DLLTOOL"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8265 $as_echo "$DLLTOOL" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8273 if test -z "$ac_cv_prog_DLLTOOL"; then
8274 ac_ct_DLLTOOL=$DLLTOOL
8275 # Extract the first word of "dlltool", so it can be a program name with args.
8276 set dummy dlltool; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 if test -n "$ac_ct_DLLTOOL"; then
8283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8303 if test -n "$ac_ct_DLLTOOL"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8305 $as_echo "$ac_ct_DLLTOOL" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8311 if test "x$ac_ct_DLLTOOL" = x; then
8314 case $cross_compiling:$ac_tool_warned in
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318 ac_tool_warned=yes ;;
8320 DLLTOOL=$ac_ct_DLLTOOL
8323 DLLTOOL="$ac_cv_prog_DLLTOOL"
8326 test -z "$DLLTOOL" && DLLTOOL=dlltool
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8338 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8339 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 lt_cv_sharedlib_from_linklib_cmd='unknown'
8345 cygwin* | mingw* | pw32* | cegcc*)
8346 # two different shell functions defined in ltmain.sh;
8347 # decide which one to use based on capabilities of $DLLTOOL
8348 case `$DLLTOOL --help 2>&1` in
8349 *--identify-strict*)
8350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8358 # fallback: assume linklib IS sharedlib
8359 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8365 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8366 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8367 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8375 if test -n "$ac_tool_prefix"; then
8378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_prog_AR+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 if test -n "$AR"; then
8386 ac_cv_prog_AR="$AR" # Let the user override the test.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 if test -n "$AR"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8408 $as_echo "$AR" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8415 test -n "$AR" && break
8418 if test -z "$AR"; then
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8427 $as_echo_n "(cached) " >&6
8429 if test -n "$ac_ct_AR"; then
8430 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_ac_ct_AR="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8450 if test -n "$ac_ct_AR"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8452 $as_echo "$ac_ct_AR" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8459 test -n "$ac_ct_AR" && break
8462 if test "x$ac_ct_AR" = x; then
8465 case $cross_compiling:$ac_tool_warned in
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8489 $as_echo_n "checking for archiver @FILE support... " >&6; }
8490 if ${lt_cv_ar_at_file+:} false; then :
8491 $as_echo_n "(cached) " >&6
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 echo conftest.$ac_objext > conftest.lst
8507 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8509 (eval $lt_ar_try) 2>&5
8511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 test $ac_status = 0; }
8513 if test 0 -eq "$ac_status"; then
8514 # Ensure the archiver fails upon bogus file names.
8515 rm -f conftest.$ac_objext libconftest.a
8516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8517 (eval $lt_ar_try) 2>&5
8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8520 test $ac_status = 0; }
8521 if test 0 -ne "$ac_status"; then
8525 rm -f conftest.* libconftest.a
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8532 $as_echo "$lt_cv_ar_at_file" >&6; }
8534 if test no = "$lt_cv_ar_at_file"; then
8537 archiver_list_spec=$lt_cv_ar_at_file
8546 if test -n "$ac_tool_prefix"; then
8547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8548 set dummy ${ac_tool_prefix}strip; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_prog_STRIP+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 if test -n "$STRIP"; then
8555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 STRIP=$ac_cv_prog_STRIP
8575 if test -n "$STRIP"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8577 $as_echo "$STRIP" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8585 if test -z "$ac_cv_prog_STRIP"; then
8587 # Extract the first word of "strip", so it can be a program name with args.
8588 set dummy strip; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8592 $as_echo_n "(cached) " >&6
8594 if test -n "$ac_ct_STRIP"; then
8595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_ac_ct_STRIP="strip"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8615 if test -n "$ac_ct_STRIP"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8617 $as_echo "$ac_ct_STRIP" >&6; }
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8623 if test "x$ac_ct_STRIP" = x; then
8626 case $cross_compiling:$ac_tool_warned in
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8630 ac_tool_warned=yes ;;
8635 STRIP="$ac_cv_prog_STRIP"
8638 test -z "$STRIP" && STRIP=:
8645 if test -n "$ac_tool_prefix"; then
8646 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if ${ac_cv_prog_RANLIB+:} false; then :
8651 $as_echo_n "(cached) " >&6
8653 if test -n "$RANLIB"; then
8654 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8663 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 RANLIB=$ac_cv_prog_RANLIB
8674 if test -n "$RANLIB"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8676 $as_echo "$RANLIB" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8684 if test -z "$ac_cv_prog_RANLIB"; then
8685 ac_ct_RANLIB=$RANLIB
8686 # Extract the first word of "ranlib", so it can be a program name with args.
8687 set dummy ranlib; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8691 $as_echo_n "(cached) " >&6
8693 if test -n "$ac_ct_RANLIB"; then
8694 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_prog_ac_ct_RANLIB="ranlib"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8714 if test -n "$ac_ct_RANLIB"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8716 $as_echo "$ac_ct_RANLIB" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8722 if test "x$ac_ct_RANLIB" = x; then
8725 case $cross_compiling:$ac_tool_warned in
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8729 ac_tool_warned=yes ;;
8731 RANLIB=$ac_ct_RANLIB
8734 RANLIB="$ac_cv_prog_RANLIB"
8737 test -z "$RANLIB" && RANLIB=:
8744 # Determine commands to create old-style static archives.
8745 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8746 old_postinstall_cmds='chmod 644 $oldlib'
8747 old_postuninstall_cmds=
8749 if test -n "$RANLIB"; then
8752 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8758 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8763 lock_old_archive_extraction=yes ;;
8765 lock_old_archive_extraction=no ;;
8788 for ac_prog in gawk mawk nawk awk
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_prog_AWK+:} false; then :
8795 $as_echo_n "(cached) " >&6
8797 if test -n "$AWK"; then
8798 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8807 ac_cv_prog_AWK="$ac_prog"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 if test -n "$AWK"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8820 $as_echo "$AWK" >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8827 test -n "$AWK" && break
8848 # If no C compiler was specified, use CC.
8851 # If no C compiler flags were specified, use CFLAGS.
8852 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8854 # Allow CC to be a program name with arguments.
8858 # Check for command to grab the raw symbol name followed by C symbol from nm.
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8860 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8861 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8862 $as_echo_n "(cached) " >&6
8865 # These are sane defaults that work on at least a few old systems.
8866 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8868 # Character class describing NM global symbol codes.
8869 symcode='[BCDEGRST]'
8871 # Regexp to match symbols that can be accessed directly from C.
8872 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8874 # Define system-specific variables.
8879 cygwin* | mingw* | pw32* | cegcc*)
8880 symcode='[ABCDGISTW]'
8883 if test ia64 = "$host_cpu"; then
8884 symcode='[ABCDEGRST]'
8888 symcode='[BCDEGRST]'
8891 symcode='[BCDEGQRST]'
8902 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8910 # If we're using GNU nm, then use its standard symbol codes.
8911 case `$NM -V 2>&1` in
8912 *GNU* | *'with BFD'*)
8913 symcode='[ABCDGIRSTW]' ;;
8916 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8917 # Gets list of data symbols to import.
8918 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8919 # Adjust the below global symbol transforms to fixup imported variables.
8920 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8921 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8922 lt_c_name_lib_hook="\
8923 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8924 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8926 # Disable hooks by default.
8927 lt_cv_sys_global_symbol_to_import=
8933 # Transform an extracted symbol line into a proper C declaration.
8934 # Some systems (esp. on ia64) link data and code symbols differently,
8935 # so use this general approach.
8936 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8938 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8939 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8941 # Transform an extracted symbol line into symbol name and symbol address
8942 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8944 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8945 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8947 # Transform an extracted symbol line into symbol name with lib prefix and
8949 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8950 $lt_c_name_lib_hook\
8951 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8952 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8953 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8955 # Handle CRLF in mingw tool chain
8959 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8963 # Try without a prefix underscore, then with it.
8964 for ac_symprfx in "" "_"; do
8966 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8967 symxfrm="\\1 $ac_symprfx\\2 \\2"
8969 # Write the raw and C identifiers.
8970 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8971 # Fake it for dumpbin and say T for any non-static function,
8972 # D for any global variable and I for any imported variable.
8973 # Also find C++ and __fastcall symbols from MSVC++,
8974 # which start with @ or ?.
8975 lt_cv_sys_global_symbol_pipe="$AWK '"\
8976 " {last_section=section; section=\$ 3};"\
8977 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8978 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8979 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8980 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8981 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8982 " \$ 0!~/External *\|/{next};"\
8983 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8984 " {if(hide[section]) next};"\
8985 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8986 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8987 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8988 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8989 " ' prfx=^$ac_symprfx"
8991 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8993 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8995 # Check to see that the pipe works correctly.
8999 cat > conftest.$ac_ext <<_LT_EOF
9004 void nm_test_func(void);
9005 void nm_test_func(void){}
9009 int main(){nm_test_var='a';nm_test_func();return(0);}
9012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9013 (eval $ac_compile) 2>&5
9015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9016 test $ac_status = 0; }; then
9017 # Now try to grab the symbols.
9019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9020 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023 test $ac_status = 0; } && test -s "$nlist"; then
9024 # Try sorting and uniquifying the output.
9025 if sort "$nlist" | uniq > "$nlist"T; then
9026 mv -f "$nlist"T "$nlist"
9031 # Make sure that we snagged all the symbols we need.
9032 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9033 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9034 cat <<_LT_EOF > conftest.$ac_ext
9035 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9036 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9037 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9038 relocations are performed -- see ld's documentation on pseudo-relocs. */
9039 # define LT_DLSYM_CONST
9040 #elif defined __osf__
9041 /* This system does not cope well with relocations in const data. */
9042 # define LT_DLSYM_CONST
9044 # define LT_DLSYM_CONST const
9052 # Now generate the symbol file.
9053 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9055 cat <<_LT_EOF >> conftest.$ac_ext
9057 /* The mapping between symbol names and symbols. */
9058 LT_DLSYM_CONST struct {
9062 lt__PROGRAM__LTX_preloaded_symbols[] =
9064 { "@PROGRAM@", (void *) 0 },
9066 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9067 cat <<\_LT_EOF >> conftest.$ac_ext
9071 /* This works around a problem in FreeBSD linker */
9072 #ifdef FREEBSD_WORKAROUND
9073 static const void *lt_preloaded_setup() {
9074 return lt__PROGRAM__LTX_preloaded_symbols;
9082 # Now try linking the two files.
9083 mv conftest.$ac_objext conftstm.$ac_objext
9084 lt_globsym_save_LIBS=$LIBS
9085 lt_globsym_save_CFLAGS=$CFLAGS
9086 LIBS=conftstm.$ac_objext
9087 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9089 (eval $ac_link) 2>&5
9091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9092 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9095 LIBS=$lt_globsym_save_LIBS
9096 CFLAGS=$lt_globsym_save_CFLAGS
9098 echo "cannot find nm_test_func in $nlist" >&5
9101 echo "cannot find nm_test_var in $nlist" >&5
9104 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9107 echo "$progname: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9110 rm -rf conftest* conftst*
9112 # Do not use the global_symbol_pipe unless it works.
9113 if test yes = "$pipe_works"; then
9116 lt_cv_sys_global_symbol_pipe=
9122 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9123 lt_cv_sys_global_symbol_to_cdecl=
9125 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9127 $as_echo "failed" >&6; }
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9130 $as_echo "ok" >&6; }
9133 # Response file support.
9134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9135 nm_file_list_spec='@'
9136 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9137 nm_file_list_spec='@'
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9177 $as_echo_n "checking for sysroot... " >&6; }
9179 # Check whether --with-sysroot was given.
9180 if test "${with_sysroot+set}" = set; then :
9181 withval=$with_sysroot;
9188 case $with_sysroot in #(
9190 if test yes = "$GCC"; then
9191 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9195 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9201 $as_echo "$with_sysroot" >&6; }
9202 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9207 $as_echo "${lt_sysroot:-no}" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9214 $as_echo_n "checking for a working dd... " >&6; }
9215 if ${ac_cv_path_lt_DD+:} false; then :
9216 $as_echo_n "(cached) " >&6
9218 printf 0123456789abcdef0123456789abcdef >conftest.i
9219 cat conftest.i conftest.i >conftest2.i
9221 if test -z "$lt_DD"; then
9222 ac_path_lt_DD_found=false
9223 # Loop through the user's path and test for each of PROGNAME-LIST
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 test -z "$as_dir" && as_dir=.
9229 for ac_prog in dd; do
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9232 as_fn_executable_p "$ac_path_lt_DD" || continue
9233 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9234 cmp -s conftest.i conftest.out \
9235 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9237 $ac_path_lt_DD_found && break 3
9242 if test -z "$ac_cv_path_lt_DD"; then
9246 ac_cv_path_lt_DD=$lt_DD
9249 rm -f conftest.i conftest2.i conftest.out
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9252 $as_echo "$ac_cv_path_lt_DD" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9256 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9257 if ${lt_cv_truncate_bin+:} false; then :
9258 $as_echo_n "(cached) " >&6
9260 printf 0123456789abcdef0123456789abcdef >conftest.i
9261 cat conftest.i conftest.i >conftest2.i
9263 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9264 cmp -s conftest.i conftest.out \
9265 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9267 rm -f conftest.i conftest2.i conftest.out
9268 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9271 $as_echo "$lt_cv_truncate_bin" >&6; }
9279 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9282 for cc_temp in $*""; do
9284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9290 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9293 # Check whether --enable-libtool-lock was given.
9294 if test "${enable_libtool_lock+set}" = set; then :
9295 enableval=$enable_libtool_lock;
9298 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9300 # Some flags need to be propagated to the compiler or linker for good
9304 # Find out what ABI is being produced by ac_compile, and set mode
9305 # options accordingly.
9306 echo 'int i;' > conftest.$ac_ext
9307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9308 (eval $ac_compile) 2>&5
9310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9311 test $ac_status = 0; }; then
9312 case `/usr/bin/file conftest.$ac_objext` in
9324 # Find out what ABI is being produced by ac_compile, and set linker
9325 # options accordingly.
9326 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9328 (eval $ac_compile) 2>&5
9330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9331 test $ac_status = 0; }; then
9332 if test yes = "$lt_cv_prog_gnu_ld"; then
9333 case `/usr/bin/file conftest.$ac_objext` in
9335 LD="${LD-ld} -melf32bsmip"
9338 LD="${LD-ld} -melf32bmipn32"
9341 LD="${LD-ld} -melf64bmip"
9345 case `/usr/bin/file conftest.$ac_objext` in
9362 # Find out what ABI is being produced by ac_compile, and set linker
9363 # options accordingly.
9364 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9366 (eval $ac_compile) 2>&5
9368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9369 test $ac_status = 0; }; then
9371 case `/usr/bin/file conftest.$ac_objext` in
9379 case `/usr/bin/file conftest.$ac_objext` in
9381 emul="${emul}btsmip"
9384 emul="${emul}ltsmip"
9387 case `/usr/bin/file conftest.$ac_objext` in
9392 LD="${LD-ld} -m $emul"
9397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9399 # Find out what ABI is being produced by ac_compile, and set linker
9400 # options accordingly. Note that the listed cases only cover the
9401 # situations where additional linker options are needed (such as when
9402 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9403 # vice versa); the common cases where no linker options are needed do
9404 # not appear in the list.
9405 echo 'int i;' > conftest.$ac_ext
9406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9407 (eval $ac_compile) 2>&5
9409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9410 test $ac_status = 0; }; then
9411 case `/usr/bin/file conftest.o` in
9414 x86_64-*kfreebsd*-gnu)
9415 LD="${LD-ld} -m elf_i386_fbsd"
9418 case `/usr/bin/file conftest.o` in
9420 LD="${LD-ld} -m elf32_x86_64"
9423 LD="${LD-ld} -m elf_i386"
9427 powerpc64le-*linux*)
9428 LD="${LD-ld} -m elf32lppclinux"
9431 LD="${LD-ld} -m elf32ppclinux"
9434 LD="${LD-ld} -m elf_s390"
9437 LD="${LD-ld} -m elf32_sparc"
9443 x86_64-*kfreebsd*-gnu)
9444 LD="${LD-ld} -m elf_x86_64_fbsd"
9447 LD="${LD-ld} -m elf_x86_64"
9450 LD="${LD-ld} -m elf64lppc"
9453 LD="${LD-ld} -m elf64ppc"
9455 s390*-*linux*|s390*-*tpf*)
9456 LD="${LD-ld} -m elf64_s390"
9459 LD="${LD-ld} -m elf64_sparc"
9469 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9471 CFLAGS="$CFLAGS -belf"
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9473 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9474 if ${lt_cv_cc_needs_belf+:} false; then :
9475 $as_echo_n "(cached) " >&6
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 lt_cv_cc_needs_belf=yes
9497 lt_cv_cc_needs_belf=no
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9502 ac_cpp='$CPP $CPPFLAGS'
9503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9509 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9510 if test yes != "$lt_cv_cc_needs_belf"; then
9511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9516 # Find out what ABI is being produced by ac_compile, and set linker
9517 # options accordingly.
9518 echo 'int i;' > conftest.$ac_ext
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520 (eval $ac_compile) 2>&5
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }; then
9524 case `/usr/bin/file conftest.o` in
9526 case $lt_cv_prog_gnu_ld in
9529 i?86-*-solaris*|x86_64-*-solaris*)
9530 LD="${LD-ld} -m elf_x86_64"
9533 LD="${LD-ld} -m elf64_sparc"
9536 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9537 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9542 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9554 need_locks=$enable_libtool_lock
9556 if test -n "$ac_tool_prefix"; then
9557 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9558 set dummy ${ac_tool_prefix}mt; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9562 $as_echo_n "(cached) " >&6
9564 if test -n "$MANIFEST_TOOL"; then
9565 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9585 if test -n "$MANIFEST_TOOL"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9587 $as_echo "$MANIFEST_TOOL" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9595 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9596 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9597 # Extract the first word of "mt", so it can be a program name with args.
9598 set dummy mt; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9602 $as_echo_n "(cached) " >&6
9604 if test -n "$ac_ct_MANIFEST_TOOL"; then
9605 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9614 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9625 if test -n "$ac_ct_MANIFEST_TOOL"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9627 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9633 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9636 case $cross_compiling:$ac_tool_warned in
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9640 ac_tool_warned=yes ;;
9642 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9645 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9648 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9650 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9651 if ${lt_cv_path_mainfest_tool+:} false; then :
9652 $as_echo_n "(cached) " >&6
9654 lt_cv_path_mainfest_tool=no
9655 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9656 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9657 cat conftest.err >&5
9658 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9659 lt_cv_path_mainfest_tool=yes
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9664 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9665 if test yes != "$lt_cv_path_mainfest_tool"; then
9675 rhapsody* | darwin*)
9676 if test -n "$ac_tool_prefix"; then
9677 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9678 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 if test -n "$DSYMUTIL"; then
9685 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9705 if test -n "$DSYMUTIL"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9707 $as_echo "$DSYMUTIL" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test -z "$ac_cv_prog_DSYMUTIL"; then
9716 ac_ct_DSYMUTIL=$DSYMUTIL
9717 # Extract the first word of "dsymutil", so it can be a program name with args.
9718 set dummy dsymutil; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 if test -n "$ac_ct_DSYMUTIL"; then
9725 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9734 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9745 if test -n "$ac_ct_DSYMUTIL"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9747 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9753 if test "x$ac_ct_DSYMUTIL" = x; then
9756 case $cross_compiling:$ac_tool_warned in
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9760 ac_tool_warned=yes ;;
9762 DSYMUTIL=$ac_ct_DSYMUTIL
9765 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9768 if test -n "$ac_tool_prefix"; then
9769 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9770 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_prog_NMEDIT+:} false; then :
9774 $as_echo_n "(cached) " >&6
9776 if test -n "$NMEDIT"; then
9777 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 NMEDIT=$ac_cv_prog_NMEDIT
9797 if test -n "$NMEDIT"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9799 $as_echo "$NMEDIT" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9807 if test -z "$ac_cv_prog_NMEDIT"; then
9808 ac_ct_NMEDIT=$NMEDIT
9809 # Extract the first word of "nmedit", so it can be a program name with args.
9810 set dummy nmedit; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 if test -n "$ac_ct_NMEDIT"; then
9817 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9826 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9837 if test -n "$ac_ct_NMEDIT"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9839 $as_echo "$ac_ct_NMEDIT" >&6; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9845 if test "x$ac_ct_NMEDIT" = x; then
9848 case $cross_compiling:$ac_tool_warned in
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9852 ac_tool_warned=yes ;;
9854 NMEDIT=$ac_ct_NMEDIT
9857 NMEDIT="$ac_cv_prog_NMEDIT"
9860 if test -n "$ac_tool_prefix"; then
9861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9862 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if ${ac_cv_prog_LIPO+:} false; then :
9866 $as_echo_n "(cached) " >&6
9868 if test -n "$LIPO"; then
9869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 LIPO=$ac_cv_prog_LIPO
9889 if test -n "$LIPO"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9891 $as_echo "$LIPO" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9899 if test -z "$ac_cv_prog_LIPO"; then
9901 # Extract the first word of "lipo", so it can be a program name with args.
9902 set dummy lipo; ac_word=$2
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904 $as_echo_n "checking for $ac_word... " >&6; }
9905 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9906 $as_echo_n "(cached) " >&6
9908 if test -n "$ac_ct_LIPO"; then
9909 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_ac_ct_LIPO="lipo"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9929 if test -n "$ac_ct_LIPO"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9931 $as_echo "$ac_ct_LIPO" >&6; }
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9937 if test "x$ac_ct_LIPO" = x; then
9940 case $cross_compiling:$ac_tool_warned in
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9944 ac_tool_warned=yes ;;
9949 LIPO="$ac_cv_prog_LIPO"
9952 if test -n "$ac_tool_prefix"; then
9953 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9954 set dummy ${ac_tool_prefix}otool; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_prog_OTOOL+:} false; then :
9958 $as_echo_n "(cached) " >&6
9960 if test -n "$OTOOL"; then
9961 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 OTOOL=$ac_cv_prog_OTOOL
9981 if test -n "$OTOOL"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9983 $as_echo "$OTOOL" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9991 if test -z "$ac_cv_prog_OTOOL"; then
9993 # Extract the first word of "otool", so it can be a program name with args.
9994 set dummy otool; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9998 $as_echo_n "(cached) " >&6
10000 if test -n "$ac_ct_OTOOL"; then
10001 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_ac_ct_OTOOL="otool"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10021 if test -n "$ac_ct_OTOOL"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10023 $as_echo "$ac_ct_OTOOL" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10029 if test "x$ac_ct_OTOOL" = x; then
10032 case $cross_compiling:$ac_tool_warned in
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036 ac_tool_warned=yes ;;
10041 OTOOL="$ac_cv_prog_OTOOL"
10044 if test -n "$ac_tool_prefix"; then
10045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10046 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_prog_OTOOL64+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 if test -n "$OTOOL64"; then
10053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 OTOOL64=$ac_cv_prog_OTOOL64
10073 if test -n "$OTOOL64"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10075 $as_echo "$OTOOL64" >&6; }
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10083 if test -z "$ac_cv_prog_OTOOL64"; then
10084 ac_ct_OTOOL64=$OTOOL64
10085 # Extract the first word of "otool64", so it can be a program name with args.
10086 set dummy otool64; ac_word=$2
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088 $as_echo_n "checking for $ac_word... " >&6; }
10089 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 if test -n "$ac_ct_OTOOL64"; then
10093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_ac_ct_OTOOL64="otool64"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10113 if test -n "$ac_ct_OTOOL64"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10115 $as_echo "$ac_ct_OTOOL64" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10121 if test "x$ac_ct_OTOOL64" = x; then
10124 case $cross_compiling:$ac_tool_warned in
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10128 ac_tool_warned=yes ;;
10130 OTOOL64=$ac_ct_OTOOL64
10133 OTOOL64="$ac_cv_prog_OTOOL64"
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10163 $as_echo_n "checking for -single_module linker flag... " >&6; }
10164 if ${lt_cv_apple_cc_single_mod+:} false; then :
10165 $as_echo_n "(cached) " >&6
10167 lt_cv_apple_cc_single_mod=no
10168 if test -z "$LT_MULTI_MODULE"; then
10169 # By default we will add the -single_module flag. You can override
10170 # by either setting the environment variable LT_MULTI_MODULE
10171 # non-empty at configure time, or by adding -multi_module to the
10173 rm -rf libconftest.dylib*
10174 echo "int foo(void){return 1;}" > conftest.c
10175 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10176 -dynamiclib -Wl,-single_module conftest.c" >&5
10177 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10178 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10180 # If there is a non-empty error log, and "single_module"
10181 # appears in it, assume the flag caused a linker warning
10182 if test -s conftest.err && $GREP single_module conftest.err; then
10183 cat conftest.err >&5
10184 # Otherwise, if the output was created with a 0 exit code from
10185 # the compiler, it worked.
10186 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10187 lt_cv_apple_cc_single_mod=yes
10189 cat conftest.err >&5
10191 rm -rf libconftest.dylib*
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10196 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10199 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10200 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10201 $as_echo_n "(cached) " >&6
10203 lt_cv_ld_exported_symbols_list=no
10204 save_LDFLAGS=$LDFLAGS
10205 echo "_main" > conftest.sym
10206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 lt_cv_ld_exported_symbols_list=yes
10221 lt_cv_ld_exported_symbols_list=no
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LDFLAGS=$save_LDFLAGS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10229 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10232 $as_echo_n "checking for -force_load linker flag... " >&6; }
10233 if ${lt_cv_ld_force_load+:} false; then :
10234 $as_echo_n "(cached) " >&6
10236 lt_cv_ld_force_load=no
10237 cat > conftest.c << _LT_EOF
10238 int forced_loaded() { return 2;}
10240 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10241 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10242 echo "$AR cru libconftest.a conftest.o" >&5
10243 $AR cru libconftest.a conftest.o 2>&5
10244 echo "$RANLIB libconftest.a" >&5
10245 $RANLIB libconftest.a 2>&5
10246 cat > conftest.c << _LT_EOF
10247 int main() { return 0;}
10249 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10250 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10252 if test -s conftest.err && $GREP force_load conftest.err; then
10253 cat conftest.err >&5
10254 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10255 lt_cv_ld_force_load=yes
10257 cat conftest.err >&5
10259 rm -f conftest.err libconftest.a conftest conftest.c
10260 rm -rf conftest.dSYM
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10264 $as_echo "$lt_cv_ld_force_load" >&6; }
10266 rhapsody* | darwin1.[012])
10267 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10269 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10270 darwin*) # darwin 5.x on
10271 # if running on 10.5 or later, the deployment target defaults
10272 # to the OS version, if on x86, and 10.4, the deployment
10273 # target defaults to 10.4. Don't you love it?
10274 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10275 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10276 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10278 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10280 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10284 if test yes = "$lt_cv_apple_cc_single_mod"; then
10285 _lt_dar_single_mod='$single_module'
10287 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10288 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10290 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10292 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10293 _lt_dsymutil='~$DSYMUTIL $lib || :'
10300 # func_munge_path_list VARIABLE PATH
10301 # -----------------------------------
10302 # VARIABLE is name of variable containing _space_ separated list of
10303 # directories to be munged by the contents of PATH, which is string
10306 # string "DIR[ DIR]" will be prepended to VARIABLE
10308 # string "DIR[ DIR]" will be appended to VARIABLE
10309 # "DIRP[:DIRP]::[DIRA:]DIRA"
10310 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10311 # "DIRA[ DIRA]" will be appended to VARIABLE
10313 # VARIABLE will be replaced by "DIR[ DIR]"
10314 func_munge_path_list ()
10320 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10323 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10326 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10327 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10330 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10335 for ac_header in dlfcn.h
10337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10339 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10340 cat >>confdefs.h <<_ACEOF
10341 #define HAVE_DLFCN_H 1
10361 enable_win32_dll=no
10364 # Check whether --enable-shared was given.
10365 if test "${enable_shared+set}" = set; then :
10366 enableval=$enable_shared; p=${PACKAGE-default}
10368 yes) enable_shared=yes ;;
10369 no) enable_shared=no ;;
10372 # Look at the argument we got. We use all the common list separators.
10373 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10374 for pkg in $enableval; do
10376 if test "X$pkg" = "X$p"; then
10395 # Check whether --enable-static was given.
10396 if test "${enable_static+set}" = set; then :
10397 enableval=$enable_static; p=${PACKAGE-default}
10399 yes) enable_static=yes ;;
10400 no) enable_static=no ;;
10403 # Look at the argument we got. We use all the common list separators.
10404 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10405 for pkg in $enableval; do
10407 if test "X$pkg" = "X$p"; then
10427 # Check whether --with-pic was given.
10428 if test "${with_pic+set}" = set; then :
10429 withval=$with_pic; lt_p=${PACKAGE-default}
10431 yes|no) pic_mode=$withval ;;
10434 # Look at the argument we got. We use all the common list separators.
10435 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10436 for lt_pkg in $withval; do
10438 if test "X$lt_pkg" = "X$lt_p"; then
10456 # Check whether --enable-fast-install was given.
10457 if test "${enable_fast_install+set}" = set; then :
10458 enableval=$enable_fast_install; p=${PACKAGE-default}
10460 yes) enable_fast_install=yes ;;
10461 no) enable_fast_install=no ;;
10463 enable_fast_install=no
10464 # Look at the argument we got. We use all the common list separators.
10465 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10466 for pkg in $enableval; do
10468 if test "X$pkg" = "X$p"; then
10469 enable_fast_install=yes
10476 enable_fast_install=yes
10486 shared_archive_member_spec=
10487 case $host,$enable_shared in
10488 power*-*-aix[5-9]*,yes)
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10490 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10492 # Check whether --with-aix-soname was given.
10493 if test "${with_aix_soname+set}" = set; then :
10494 withval=$with_aix_soname; case $withval in
10498 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10501 lt_cv_with_aix_soname=$with_aix_soname
10503 if ${lt_cv_with_aix_soname+:} false; then :
10504 $as_echo_n "(cached) " >&6
10506 lt_cv_with_aix_soname=aix
10509 with_aix_soname=$lt_cv_with_aix_soname
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10513 $as_echo "$with_aix_soname" >&6; }
10514 if test aix != "$with_aix_soname"; then
10515 # For the AIX way of multilib, we name the shared archive member
10516 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10517 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10518 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10519 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10520 if test 64 = "${OBJECT_MODE-32}"; then
10521 shared_archive_member_spec=shr_64
10523 shared_archive_member_spec=shr
10528 with_aix_soname=aix
10541 # This can be used to rebuild libtool when needed
10542 LIBTOOL_DEPS=$ltmain
10544 # Always use our own libtool.
10545 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10576 test -z "$LN_S" && LN_S="ln -s"
10591 if test -n "${ZSH_VERSION+set}"; then
10592 setopt NO_GLOB_SUBST
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10596 $as_echo_n "checking for objdir... " >&6; }
10597 if ${lt_cv_objdir+:} false; then :
10598 $as_echo_n "(cached) " >&6
10600 rm -f .libs 2>/dev/null
10601 mkdir .libs 2>/dev/null
10602 if test -d .libs; then
10605 # MS-DOS does not allow filenames that begin with a dot.
10608 rmdir .libs 2>/dev/null
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10611 $as_echo "$lt_cv_objdir" >&6; }
10612 objdir=$lt_cv_objdir
10618 cat >>confdefs.h <<_ACEOF
10619 #define LT_OBJDIR "$lt_cv_objdir/"
10627 # AIX sometimes has problems with the GCC collect2 program. For some
10628 # reason, if we set the COLLECT_NAMES environment variable, the problems
10629 # vanish in a puff of smoke.
10630 if test set != "${COLLECT_NAMES+set}"; then
10632 export COLLECT_NAMES
10637 # Global variables:
10639 can_build_shared=yes
10641 # All known linkers require a '.a' archive for static linking (except MSVC,
10642 # which needs '.lib').
10645 with_gnu_ld=$lt_cv_prog_gnu_ld
10650 # Set sane defaults for various variables
10651 test -z "$CC" && CC=cc
10652 test -z "$LTCC" && LTCC=$CC
10653 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10654 test -z "$LD" && LD=ld
10655 test -z "$ac_objext" && ac_objext=o
10657 func_cc_basename $compiler
10658 cc_basename=$func_cc_basename_result
10661 # Only perform the check for file, if the check method requires it
10662 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10663 case $deplibs_check_method in
10665 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10667 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10668 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10669 $as_echo_n "(cached) " >&6
10673 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10676 lt_save_MAGIC_CMD=$MAGIC_CMD
10677 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10678 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10679 for ac_dir in $ac_dummy; do
10681 test -z "$ac_dir" && ac_dir=.
10682 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10683 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10684 if test -n "$file_magic_test_file"; then
10685 case $deplibs_check_method in
10687 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10688 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10689 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10690 $EGREP "$file_magic_regex" > /dev/null; then
10695 *** Warning: the command libtool uses to detect shared libraries,
10696 *** $file_magic_cmd, produces output that libtool cannot recognize.
10697 *** The result is that libtool may fail to recognize shared libraries
10698 *** as such. This will affect the creation of libtool libraries that
10699 *** depend on shared libraries, but programs linked with such libtool
10700 *** libraries will work regardless of this problem. Nevertheless, you
10701 *** may want to report the problem to your system manager and/or to
10702 *** bug-libtool@gnu.org
10712 MAGIC_CMD=$lt_save_MAGIC_CMD
10717 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10718 if test -n "$MAGIC_CMD"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10720 $as_echo "$MAGIC_CMD" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10730 if test -z "$lt_cv_path_MAGIC_CMD"; then
10731 if test -n "$ac_tool_prefix"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10733 $as_echo_n "checking for file... " >&6; }
10734 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10735 $as_echo_n "(cached) " >&6
10739 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10742 lt_save_MAGIC_CMD=$MAGIC_CMD
10743 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10744 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10745 for ac_dir in $ac_dummy; do
10747 test -z "$ac_dir" && ac_dir=.
10748 if test -f "$ac_dir/file"; then
10749 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10750 if test -n "$file_magic_test_file"; then
10751 case $deplibs_check_method in
10753 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10754 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10755 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10756 $EGREP "$file_magic_regex" > /dev/null; then
10761 *** Warning: the command libtool uses to detect shared libraries,
10762 *** $file_magic_cmd, produces output that libtool cannot recognize.
10763 *** The result is that libtool may fail to recognize shared libraries
10764 *** as such. This will affect the creation of libtool libraries that
10765 *** depend on shared libraries, but programs linked with such libtool
10766 *** libraries will work regardless of this problem. Nevertheless, you
10767 *** may want to report the problem to your system manager and/or to
10768 *** bug-libtool@gnu.org
10778 MAGIC_CMD=$lt_save_MAGIC_CMD
10783 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10784 if test -n "$MAGIC_CMD"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10786 $as_echo "$MAGIC_CMD" >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10802 # Use C for the default configuration in the libtool script
10806 ac_cpp='$CPP $CPPFLAGS'
10807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812 # Source file extension for C test sources.
10815 # Object file extension for compiled C test sources.
10819 # Code to be used in simple compile tests
10820 lt_simple_compile_test_code="int some_variable = 0;"
10822 # Code to be used in simple link tests
10823 lt_simple_link_test_code='int main(){return(0);}'
10831 # If no C compiler was specified, use CC.
10834 # If no C compiler flags were specified, use CFLAGS.
10835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10837 # Allow CC to be a program name with arguments.
10840 # Save the default compiler, since it gets overwritten when the other
10841 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10842 compiler_DEFAULT=$CC
10844 # save warnings/boilerplate of simple test code
10845 ac_outfile=conftest.$ac_objext
10846 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10847 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10848 _lt_compiler_boilerplate=`cat conftest.err`
10851 ac_outfile=conftest.$ac_objext
10852 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10853 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10854 _lt_linker_boilerplate=`cat conftest.err`
10858 if test -n "$compiler"; then
10860 lt_prog_compiler_no_builtin_flag=
10862 if test yes = "$GCC"; then
10863 case $cc_basename in
10865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10872 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10873 $as_echo_n "(cached) " >&6
10875 lt_cv_prog_compiler_rtti_exceptions=no
10876 ac_outfile=conftest.$ac_objext
10877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10878 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10879 # Insert the option either (1) after the last *FLAGS variable, or
10880 # (2) before a word containing "conftest.", or (3) at the end.
10881 # Note that $ac_compile itself does not contain backslashes and begins
10882 # with a dollar sign (not a hyphen), so the echo should work correctly.
10883 # The option is referenced via a variable to avoid confusing sed.
10884 lt_compile=`echo "$ac_compile" | $SED \
10885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10887 -e 's:$: $lt_compiler_flag:'`
10888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10889 (eval "$lt_compile" 2>conftest.err)
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 if (exit $ac_status) && test -s "$ac_outfile"; then
10894 # The compiler can only warn and ignore the option if not recognized
10895 # So say no if there are warnings other than the usual output.
10896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10899 lt_cv_prog_compiler_rtti_exceptions=yes
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10908 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10921 lt_prog_compiler_wl=
10922 lt_prog_compiler_pic=
10923 lt_prog_compiler_static=
10926 if test yes = "$GCC"; then
10927 lt_prog_compiler_wl='-Wl,'
10928 lt_prog_compiler_static='-static'
10932 # All AIX code is PIC.
10933 if test ia64 = "$host_cpu"; then
10934 # AIX 5 now supports IA64 processor
10935 lt_prog_compiler_static='-Bstatic'
10937 lt_prog_compiler_pic='-fPIC'
10943 # see comment about AmigaOS4 .so support
10944 lt_prog_compiler_pic='-fPIC'
10947 # FIXME: we need at least 68020 code to build shared libraries, but
10948 # adding the '-m68020' flag to GCC prevents building anything better,
10950 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10955 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10956 # PIC is the default for these OSes.
10959 mingw* | cygwin* | pw32* | os2* | cegcc*)
10960 # This hack is so that the source file can tell whether it is being
10961 # built for inclusion in a dll (and should export symbols for example).
10962 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10963 # (--disable-auto-import) libraries
10964 lt_prog_compiler_pic='-DDLL_EXPORT'
10967 lt_prog_compiler_static='$wl-static'
10972 darwin* | rhapsody*)
10973 # PIC is the default on this platform
10974 # Common symbols not allowed in MH_DYLIB files
10975 lt_prog_compiler_pic='-fno-common'
10979 # PIC is the default for Haiku.
10980 # The "-static" flag exists, but is broken.
10981 lt_prog_compiler_static=
10985 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10986 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10987 # sets the default TLS model and affects inlining.
10993 lt_prog_compiler_pic='-fPIC'
10999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11000 # Instead, we relocate shared libraries at runtime.
11004 # Just because we use GCC doesn't mean we suddenly get shared libraries
11005 # on systems that don't support them.
11006 lt_prog_compiler_can_build_shared=no
11011 # QNX uses GNU C++, but need to define -shared option too, otherwise
11012 # it will coredump.
11013 lt_prog_compiler_pic='-fPIC -shared'
11017 if test -d /usr/nec; then
11018 lt_prog_compiler_pic=-Kconform_pic
11023 lt_prog_compiler_pic='-fPIC'
11027 case $cc_basename in
11028 nvcc*) # Cuda Compiler Driver 2.2
11029 lt_prog_compiler_wl='-Xlinker '
11030 if test -n "$lt_prog_compiler_pic"; then
11031 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11036 # PORTME Check for flag to pass linker flags through the system compiler.
11039 lt_prog_compiler_wl='-Wl,'
11040 if test ia64 = "$host_cpu"; then
11041 # AIX 5 now supports IA64 processor
11042 lt_prog_compiler_static='-Bstatic'
11044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11048 darwin* | rhapsody*)
11049 # PIC is the default on this platform
11050 # Common symbols not allowed in MH_DYLIB files
11051 lt_prog_compiler_pic='-fno-common'
11052 case $cc_basename in
11054 # NAG Fortran compiler
11055 lt_prog_compiler_wl='-Wl,-Wl,,'
11056 lt_prog_compiler_pic='-PIC'
11057 lt_prog_compiler_static='-Bstatic'
11062 mingw* | cygwin* | pw32* | os2* | cegcc*)
11063 # This hack is so that the source file can tell whether it is being
11064 # built for inclusion in a dll (and should export symbols for example).
11065 lt_prog_compiler_pic='-DDLL_EXPORT'
11068 lt_prog_compiler_static='$wl-static'
11073 hpux9* | hpux10* | hpux11*)
11074 lt_prog_compiler_wl='-Wl,'
11075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11076 # not for PA HP-UX.
11082 lt_prog_compiler_pic='+Z'
11085 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11086 lt_prog_compiler_static='$wl-a ${wl}archive'
11089 irix5* | irix6* | nonstopux*)
11090 lt_prog_compiler_wl='-Wl,'
11091 # PIC (with -KPIC) is the default.
11092 lt_prog_compiler_static='-non_shared'
11095 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11096 case $cc_basename in
11097 # old Intel for x86_64, which still supported -KPIC.
11099 lt_prog_compiler_wl='-Wl,'
11100 lt_prog_compiler_pic='-KPIC'
11101 lt_prog_compiler_static='-static'
11103 # icc used to be incompatible with GCC.
11104 # ICC 10 doesn't accept -KPIC any more.
11106 lt_prog_compiler_wl='-Wl,'
11107 lt_prog_compiler_pic='-fPIC'
11108 lt_prog_compiler_static='-static'
11110 # Lahey Fortran 8.1.
11112 lt_prog_compiler_wl='-Wl,'
11113 lt_prog_compiler_pic='--shared'
11114 lt_prog_compiler_static='--static'
11117 # NAG Fortran compiler
11118 lt_prog_compiler_wl='-Wl,-Wl,,'
11119 lt_prog_compiler_pic='-PIC'
11120 lt_prog_compiler_static='-Bstatic'
11123 # Fabrice Bellard et al's Tiny C Compiler
11124 lt_prog_compiler_wl='-Wl,'
11125 lt_prog_compiler_pic='-fPIC'
11126 lt_prog_compiler_static='-static'
11128 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11129 # Portland Group compilers (*not* the Pentium gcc compiler,
11130 # which looks to be a dead project)
11131 lt_prog_compiler_wl='-Wl,'
11132 lt_prog_compiler_pic='-fpic'
11133 lt_prog_compiler_static='-Bstatic'
11136 lt_prog_compiler_wl='-Wl,'
11137 # All Alpha code is PIC.
11138 lt_prog_compiler_static='-non_shared'
11140 xl* | bgxl* | bgf* | mpixl*)
11141 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11142 lt_prog_compiler_wl='-Wl,'
11143 lt_prog_compiler_pic='-qpic'
11144 lt_prog_compiler_static='-qstaticlink'
11147 case `$CC -V 2>&1 | sed 5q` in
11148 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11149 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11150 lt_prog_compiler_pic='-KPIC'
11151 lt_prog_compiler_static='-Bstatic'
11152 lt_prog_compiler_wl=''
11154 *Sun\ F* | *Sun*Fortran*)
11155 lt_prog_compiler_pic='-KPIC'
11156 lt_prog_compiler_static='-Bstatic'
11157 lt_prog_compiler_wl='-Qoption ld '
11161 lt_prog_compiler_pic='-KPIC'
11162 lt_prog_compiler_static='-Bstatic'
11163 lt_prog_compiler_wl='-Wl,'
11165 *Intel*\ [CF]*Compiler*)
11166 lt_prog_compiler_wl='-Wl,'
11167 lt_prog_compiler_pic='-fPIC'
11168 lt_prog_compiler_static='-static'
11171 lt_prog_compiler_wl='-Wl,'
11172 lt_prog_compiler_pic='-fpic'
11173 lt_prog_compiler_static='-Bstatic'
11181 lt_prog_compiler_pic='-KPIC'
11182 lt_prog_compiler_static='-Bstatic'
11186 # QNX uses GNU C++, but need to define -shared option too, otherwise
11187 # it will coredump.
11188 lt_prog_compiler_pic='-fPIC -shared'
11191 osf3* | osf4* | osf5*)
11192 lt_prog_compiler_wl='-Wl,'
11193 # All OSF/1 code is PIC.
11194 lt_prog_compiler_static='-non_shared'
11198 lt_prog_compiler_static='-non_shared'
11202 lt_prog_compiler_pic='-KPIC'
11203 lt_prog_compiler_static='-Bstatic'
11204 case $cc_basename in
11205 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11206 lt_prog_compiler_wl='-Qoption ld ';;
11208 lt_prog_compiler_wl='-Wl,';;
11213 lt_prog_compiler_wl='-Qoption ld '
11214 lt_prog_compiler_pic='-PIC'
11215 lt_prog_compiler_static='-Bstatic'
11218 sysv4 | sysv4.2uw2* | sysv4.3*)
11219 lt_prog_compiler_wl='-Wl,'
11220 lt_prog_compiler_pic='-KPIC'
11221 lt_prog_compiler_static='-Bstatic'
11225 if test -d /usr/nec; then
11226 lt_prog_compiler_pic='-Kconform_pic'
11227 lt_prog_compiler_static='-Bstatic'
11231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11232 lt_prog_compiler_wl='-Wl,'
11233 lt_prog_compiler_pic='-KPIC'
11234 lt_prog_compiler_static='-Bstatic'
11238 lt_prog_compiler_wl='-Wl,'
11239 lt_prog_compiler_can_build_shared=no
11243 lt_prog_compiler_pic='-pic'
11244 lt_prog_compiler_static='-Bstatic'
11248 lt_prog_compiler_can_build_shared=no
11254 # For platforms that do not support PIC, -DPIC is meaningless:
11256 lt_prog_compiler_pic=
11259 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11264 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11265 if ${lt_cv_prog_compiler_pic+:} false; then :
11266 $as_echo_n "(cached) " >&6
11268 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11271 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11272 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11275 # Check to make sure the PIC flag actually works.
11277 if test -n "$lt_prog_compiler_pic"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11279 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11280 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11281 $as_echo_n "(cached) " >&6
11283 lt_cv_prog_compiler_pic_works=no
11284 ac_outfile=conftest.$ac_objext
11285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11286 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11287 # Insert the option either (1) after the last *FLAGS variable, or
11288 # (2) before a word containing "conftest.", or (3) at the end.
11289 # Note that $ac_compile itself does not contain backslashes and begins
11290 # with a dollar sign (not a hyphen), so the echo should work correctly.
11291 # The option is referenced via a variable to avoid confusing sed.
11292 lt_compile=`echo "$ac_compile" | $SED \
11293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11295 -e 's:$: $lt_compiler_flag:'`
11296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11297 (eval "$lt_compile" 2>conftest.err)
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 if (exit $ac_status) && test -s "$ac_outfile"; then
11302 # The compiler can only warn and ignore the option if not recognized
11303 # So say no if there are warnings other than the usual output.
11304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11307 lt_cv_prog_compiler_pic_works=yes
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11314 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11316 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11317 case $lt_prog_compiler_pic in
11319 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11322 lt_prog_compiler_pic=
11323 lt_prog_compiler_can_build_shared=no
11339 # Check to make sure the static flag actually works.
11341 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11343 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11344 if ${lt_cv_prog_compiler_static_works+:} false; then :
11345 $as_echo_n "(cached) " >&6
11347 lt_cv_prog_compiler_static_works=no
11348 save_LDFLAGS=$LDFLAGS
11349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11352 # The linker can only warn and ignore the option if not recognized
11353 # So say no if there are warnings
11354 if test -s conftest.err; then
11355 # Append any errors to the config.log.
11356 cat conftest.err 1>&5
11357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11359 if diff conftest.exp conftest.er2 >/dev/null; then
11360 lt_cv_prog_compiler_static_works=yes
11363 lt_cv_prog_compiler_static_works=yes
11367 LDFLAGS=$save_LDFLAGS
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11371 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11373 if test yes = "$lt_cv_prog_compiler_static_works"; then
11376 lt_prog_compiler_static=
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11386 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11387 if ${lt_cv_prog_compiler_c_o+:} false; then :
11388 $as_echo_n "(cached) " >&6
11390 lt_cv_prog_compiler_c_o=no
11391 $RM -r conftest 2>/dev/null
11395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11397 lt_compiler_flag="-o out/conftest2.$ac_objext"
11398 # Insert the option either (1) after the last *FLAGS variable, or
11399 # (2) before a word containing "conftest.", or (3) at the end.
11400 # Note that $ac_compile itself does not contain backslashes and begins
11401 # with a dollar sign (not a hyphen), so the echo should work correctly.
11402 lt_compile=`echo "$ac_compile" | $SED \
11403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11405 -e 's:$: $lt_compiler_flag:'`
11406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11407 (eval "$lt_compile" 2>out/conftest.err)
11409 cat out/conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11413 # The compiler can only warn and ignore the option if not recognized
11414 # So say no if there are warnings
11415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11418 lt_cv_prog_compiler_c_o=yes
11423 # SGI C++ compiler will create directory out/ii_files/ for
11424 # template instantiation
11425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11426 $RM out/* && rmdir out
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11433 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11442 if ${lt_cv_prog_compiler_c_o+:} false; then :
11443 $as_echo_n "(cached) " >&6
11445 lt_cv_prog_compiler_c_o=no
11446 $RM -r conftest 2>/dev/null
11450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11452 lt_compiler_flag="-o out/conftest2.$ac_objext"
11453 # Insert the option either (1) after the last *FLAGS variable, or
11454 # (2) before a word containing "conftest.", or (3) at the end.
11455 # Note that $ac_compile itself does not contain backslashes and begins
11456 # with a dollar sign (not a hyphen), so the echo should work correctly.
11457 lt_compile=`echo "$ac_compile" | $SED \
11458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11460 -e 's:$: $lt_compiler_flag:'`
11461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11462 (eval "$lt_compile" 2>out/conftest.err)
11464 cat out/conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11468 # The compiler can only warn and ignore the option if not recognized
11469 # So say no if there are warnings
11470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11473 lt_cv_prog_compiler_c_o=yes
11478 # SGI C++ compiler will create directory out/ii_files/ for
11479 # template instantiation
11480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11481 $RM out/* && rmdir out
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11488 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11493 hard_links=nottested
11494 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11495 # do not overwrite the value of need_locks provided by the user
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11497 $as_echo_n "checking if we can lock with hard links... " >&6; }
11500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11502 ln conftest.a conftest.b 2>&5 || hard_links=no
11503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11505 $as_echo "$hard_links" >&6; }
11506 if test no = "$hard_links"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11508 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11521 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11524 allow_undefined_flag=
11525 always_export_symbols=no
11527 archive_expsym_cmds=
11528 compiler_needs_object=no
11529 enable_shared_with_static_runtimes=no
11530 export_dynamic_flag_spec=
11531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11532 hardcode_automatic=no
11534 hardcode_direct_absolute=no
11535 hardcode_libdir_flag_spec=
11536 hardcode_libdir_separator=
11537 hardcode_minus_L=no
11538 hardcode_shlibpath_var=unsupported
11540 link_all_deplibs=unknown
11542 module_expsym_cmds=
11543 old_archive_from_new_cmds=
11544 old_archive_from_expsyms_cmds=
11545 thread_safe_flag_spec=
11546 whole_archive_flag_spec=
11547 # include_expsyms should be a list of space-separated symbols to be *always*
11548 # included in the symbol list
11550 # exclude_expsyms can be an extended regexp of symbols to exclude
11551 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11552 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11553 # as well as any symbol that contains 'd'.
11554 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11556 # platforms (ab)use it in PIC code, but their linkers get confused if
11557 # the symbol is explicitly referenced. Since portable code cannot
11558 # rely on this symbol name, it's probably fine to never include it in
11559 # preloaded symbol tables.
11560 # Exclude shared library initialization/finalization symbols.
11561 extract_expsyms_cmds=
11564 cygwin* | mingw* | pw32* | cegcc*)
11565 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11566 # When not using gcc, we currently assume that we are using
11567 # Microsoft Visual C++.
11568 if test yes != "$GCC"; then
11573 # we just hope/assume this is gcc and not c89 (= MSVC++)
11576 openbsd* | bitrig*)
11583 # On some targets, GNU ld is compatible enough with the native linker
11584 # that we're better off using the native interface for both.
11585 lt_use_gnu_ld_interface=no
11586 if test yes = "$with_gnu_ld"; then
11589 # The AIX port of GNU ld has always aspired to compatibility
11590 # with the native linker. However, as the warning in the GNU ld
11591 # block says, versions before 2.19.5* couldn't really create working
11592 # shared libraries, regardless of the interface used.
11593 case `$LD -v 2>&1` in
11594 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11595 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11596 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11598 lt_use_gnu_ld_interface=yes
11603 lt_use_gnu_ld_interface=yes
11608 if test yes = "$lt_use_gnu_ld_interface"; then
11609 # If archive_cmds runs LD, not CC, wlarc should be empty
11612 # Set some defaults for GNU ld with shared library support. These
11613 # are reset later if shared libraries are not supported. Putting them
11614 # here allows them to be overridden if necessary.
11615 runpath_var=LD_RUN_PATH
11616 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11617 export_dynamic_flag_spec='$wl--export-dynamic'
11618 # ancient GNU ld didn't support --whole-archive et. al.
11619 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11620 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11622 whole_archive_flag_spec=
11624 supports_anon_versioning=no
11625 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11626 *GNU\ gold*) supports_anon_versioning=yes ;;
11627 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11630 *\ 2.11.*) ;; # other 2.11 versions
11631 *) supports_anon_versioning=yes ;;
11634 # See if GNU ld supports shared libraries.
11637 # On AIX/PPC, the GNU linker is very broken
11638 if test ia64 != "$host_cpu"; then
11642 *** Warning: the GNU linker, at least up to release 2.19, is reported
11643 *** to be unable to reliably create shared libraries on AIX.
11644 *** Therefore, libtool is disabling shared libraries support. If you
11645 *** really care for shared libraries, you may want to install binutils
11646 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11647 *** You will then need to restart the configuration process.
11656 # see comment about AmigaOS4 .so support
11657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11658 archive_expsym_cmds=''
11661 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11662 hardcode_libdir_flag_spec='-L$libdir'
11663 hardcode_minus_L=yes
11669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11670 allow_undefined_flag=unsupported
11671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11672 # support --undefined. This deserves some investigation. FIXME
11673 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11679 cygwin* | mingw* | pw32* | cegcc*)
11680 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11681 # as there is no search path for DLLs.
11682 hardcode_libdir_flag_spec='-L$libdir'
11683 export_dynamic_flag_spec='$wl--export-all-symbols'
11684 allow_undefined_flag=unsupported
11685 always_export_symbols=no
11686 enable_shared_with_static_runtimes=yes
11687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11688 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11692 # If the export-symbols file already is a .def file, use it as
11693 # is; otherwise, prepend EXPORTS...
11694 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11695 cp $export_symbols $output_objdir/$soname.def;
11697 echo EXPORTS > $output_objdir/$soname.def;
11698 cat $export_symbols >> $output_objdir/$soname.def;
11700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11708 link_all_deplibs=yes
11712 hardcode_libdir_flag_spec='-L$libdir'
11713 hardcode_minus_L=yes
11714 allow_undefined_flag=unsupported
11716 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11719 $ECHO EXPORTS >> $output_objdir/$libname.def~
11720 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11721 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11722 emximp -o $lib $output_objdir/$libname.def'
11723 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11724 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11725 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11726 $ECHO EXPORTS >> $output_objdir/$libname.def~
11727 prefix_cmds="$SED"~
11728 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11729 prefix_cmds="$prefix_cmds -e 1d";
11731 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11732 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11733 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11734 emximp -o $lib $output_objdir/$libname.def'
11735 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11736 enable_shared_with_static_runtimes=yes
11741 hardcode_shlibpath_var=no
11742 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11743 export_dynamic_flag_spec='$wl-E'
11744 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11745 # Instead, shared libraries are loaded at an image base (0x10000000 by
11746 # default) and relocated if they conflict, which is a slow very memory
11747 # consuming and fragmenting process. To avoid this, we pick a random,
11748 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11749 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11751 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11754 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11756 if test linux-dietlibc = "$host_os"; then
11757 case $cc_basename in
11758 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11761 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11762 && test no = "$tmp_diet"
11764 tmp_addflag=' $pic_flag'
11765 tmp_sharedflag='-shared'
11766 case $cc_basename,$host_cpu in
11767 pgcc*) # Portland Group C compiler
11768 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11769 tmp_addflag=' $pic_flag'
11771 pgf77* | pgf90* | pgf95* | pgfortran*)
11772 # Portland Group f77 and f90 compilers
11773 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11774 tmp_addflag=' $pic_flag -Mnomain' ;;
11775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11776 tmp_addflag=' -i_dynamic' ;;
11777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11778 tmp_addflag=' -i_dynamic -nofor_main' ;;
11779 ifc* | ifort*) # Intel Fortran compiler
11780 tmp_addflag=' -nofor_main' ;;
11781 lf95*) # Lahey Fortran 8.1
11782 whole_archive_flag_spec=
11783 tmp_sharedflag='--shared' ;;
11784 nagfor*) # NAGFOR 5.3
11785 tmp_sharedflag='-Wl,-shared' ;;
11786 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11787 tmp_sharedflag='-qmkshrobj'
11789 nvcc*) # Cuda Compiler Driver 2.2
11790 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11791 compiler_needs_object=yes
11794 case `$CC -V 2>&1 | sed 5q` in
11795 *Sun\ C*) # Sun C 5.9
11796 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11797 compiler_needs_object=yes
11798 tmp_sharedflag='-G' ;;
11799 *Sun\ F*) # Sun Fortran 8.3
11800 tmp_sharedflag='-G' ;;
11802 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11804 if test yes = "$supports_anon_versioning"; then
11805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11807 echo "local: *; };" >> $output_objdir/$libname.ver~
11808 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11811 case $cc_basename in
11813 export_dynamic_flag_spec='-rdynamic'
11815 xlf* | bgf* | bgxlf* | mpixlf*)
11816 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11817 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11819 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11820 if test yes = "$supports_anon_versioning"; then
11821 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11823 echo "local: *; };" >> $output_objdir/$libname.ver~
11824 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11835 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11839 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11844 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11848 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11849 *** create shared libraries on Solaris systems. Therefore, libtool
11850 *** is disabling shared libraries support. We urge you to upgrade GNU
11851 *** binutils to release 2.9.1 or newer. Another option is to modify
11852 *** your PATH or compiler configuration so that the native linker is
11853 *** used, and then restart.
11856 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11858 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11865 case `$LD -v 2>&1` in
11866 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11870 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11871 *** reliably create shared libraries on SCO systems. Therefore, libtool
11872 *** is disabling shared libraries support. We urge you to upgrade GNU
11873 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11874 *** your PATH or compiler configuration so that the native linker is
11875 *** used, and then restart.
11880 # For security reasons, it is highly recommended that you always
11881 # use absolute paths for naming shared libraries, and exclude the
11882 # DT_RUNPATH tag from executables and libraries. But doing so
11883 # requires that you compile everything twice, which is a pain.
11884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11885 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11898 hardcode_direct=yes
11899 hardcode_shlibpath_var=no
11903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11912 if test no = "$ld_shlibs"; then
11914 hardcode_libdir_flag_spec=
11915 export_dynamic_flag_spec=
11916 whole_archive_flag_spec=
11919 # PORTME fill in a description of your system's linker (not GNU ld)
11922 allow_undefined_flag=unsupported
11923 always_export_symbols=yes
11924 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11925 # Note: this linker hardcodes the directories in LIBPATH if there
11926 # are no directories specified by -L.
11927 hardcode_minus_L=yes
11928 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11929 # Neither direct hardcoding nor static linking is supported with a
11931 hardcode_direct=unsupported
11936 if test ia64 = "$host_cpu"; then
11937 # On IA64, the linker does run time linking by default, so we don't
11938 # have to do anything special.
11939 aix_use_runtimelinking=no
11940 exp_sym_flag='-Bexport'
11943 # If we're using GNU nm, then we don't want the "-C" option.
11944 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11945 # Without the "-l" option, or with the "-B" option, AIX nm treats
11946 # weak defined symbols like other global defined symbols, whereas
11947 # GNU nm marks them as "W".
11948 # While the 'weak' keyword is ignored in the Export File, we need
11949 # it in the Import File for the 'aix-soname' feature, so we have
11950 # to replace the "-B" option with "-P" for AIX nm.
11951 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11952 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11954 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11956 aix_use_runtimelinking=no
11958 # Test if we are trying to use run time linking or normal
11959 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11960 # have runtime linking enabled, and use it for executables.
11961 # For shared libraries, we enable/disable runtime linking
11962 # depending on the kind of the shared library created -
11963 # when "with_aix_soname,aix_use_runtimelinking" is:
11964 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11965 # "aix,yes" lib.so shared, rtl:yes, for executables
11966 # lib.a static archive
11967 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11968 # lib.a(lib.so.V) shared, rtl:no, for executables
11969 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11970 # lib.a(lib.so.V) shared, rtl:no
11971 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11972 # lib.a static archive
11973 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11974 for ld_flag in $LDFLAGS; do
11975 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11976 aix_use_runtimelinking=yes
11980 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11981 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11982 # so we don't have lib.a shared libs to link our executables.
11983 # We have to force runtime linking in this case.
11984 aix_use_runtimelinking=yes
11985 LDFLAGS="$LDFLAGS -Wl,-brtl"
11990 exp_sym_flag='-bexport'
11991 no_entry_flag='-bnoentry'
11994 # When large executables or shared objects are built, AIX ld can
11995 # have problems creating the table of contents. If linking a library
11996 # or program results in "error TOC overflow" add -mminimal-toc to
11997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12001 hardcode_direct=yes
12002 hardcode_direct_absolute=yes
12003 hardcode_libdir_separator=':'
12004 link_all_deplibs=yes
12005 file_list_spec='$wl-f,'
12006 case $with_aix_soname,$aix_use_runtimelinking in
12007 aix,*) ;; # traditional, no import file
12008 svr4,* | *,yes) # use import file
12009 # The Import File defines what to hardcode.
12011 hardcode_direct_absolute=no
12015 if test yes = "$GCC"; then
12016 case $host_os in aix4.[012]|aix4.[012].*)
12017 # We only want to do this on AIX 4.2 and lower, the check
12018 # below for broken collect2 doesn't work under 4.3+
12019 collect2name=`$CC -print-prog-name=collect2`
12020 if test -f "$collect2name" &&
12021 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12023 # We have reworked collect2
12026 # We have old collect2
12027 hardcode_direct=unsupported
12028 # It fails to find uninstalled libraries when the uninstalled
12029 # path is not listed in the libpath. Setting hardcode_minus_L
12030 # to unsupported forces relinking
12031 hardcode_minus_L=yes
12032 hardcode_libdir_flag_spec='-L$libdir'
12033 hardcode_libdir_separator=
12037 shared_flag='-shared'
12038 if test yes = "$aix_use_runtimelinking"; then
12039 shared_flag="$shared_flag "'$wl-G'
12041 # Need to ensure runtime linking is disabled for the traditional
12042 # shared library, or the linker may eventually find shared libraries
12043 # /with/ Import File - we do not want to mix them.
12044 shared_flag_aix='-shared'
12045 shared_flag_svr4='-shared $wl-G'
12048 if test ia64 = "$host_cpu"; then
12049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12050 # chokes on -Wl,-G. The following line is correct:
12053 if test yes = "$aix_use_runtimelinking"; then
12054 shared_flag='$wl-G'
12056 shared_flag='$wl-bM:SRE'
12058 shared_flag_aix='$wl-bM:SRE'
12059 shared_flag_svr4='$wl-G'
12063 export_dynamic_flag_spec='$wl-bexpall'
12064 # It seems that -bexpall does not export symbols beginning with
12065 # underscore (_), so it is better to generate a list of symbols to export.
12066 always_export_symbols=yes
12067 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12068 # Warning - without using the other runtime loading flags (-brtl),
12069 # -berok will link without error, but may produce a broken library.
12070 allow_undefined_flag='-berok'
12071 # Determine the default libpath from the value encoded in an
12072 # empty executable.
12073 if test set = "${lt_cv_aix_libpath+set}"; then
12074 aix_libpath=$lt_cv_aix_libpath
12076 if ${lt_cv_aix_libpath_+:} false; then :
12077 $as_echo_n "(cached) " >&6
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12090 if ac_fn_c_try_link "$LINENO"; then :
12092 lt_aix_libpath_sed='
12093 /Import File Strings/,/^$/ {
12095 s/^0 *\([^ ]*\) *$/\1/
12099 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12100 # Check for a 64-bit object if we didn't find anything.
12101 if test -z "$lt_cv_aix_libpath_"; then
12102 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12105 rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12107 if test -z "$lt_cv_aix_libpath_"; then
12108 lt_cv_aix_libpath_=/usr/lib:/lib
12113 aix_libpath=$lt_cv_aix_libpath_
12116 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12117 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12119 if test ia64 = "$host_cpu"; then
12120 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12121 allow_undefined_flag="-z nodefs"
12122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12124 # Determine the default libpath from the value encoded in an
12125 # empty executable.
12126 if test set = "${lt_cv_aix_libpath+set}"; then
12127 aix_libpath=$lt_cv_aix_libpath
12129 if ${lt_cv_aix_libpath_+:} false; then :
12130 $as_echo_n "(cached) " >&6
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12143 if ac_fn_c_try_link "$LINENO"; then :
12145 lt_aix_libpath_sed='
12146 /Import File Strings/,/^$/ {
12148 s/^0 *\([^ ]*\) *$/\1/
12152 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12153 # Check for a 64-bit object if we didn't find anything.
12154 if test -z "$lt_cv_aix_libpath_"; then
12155 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 if test -z "$lt_cv_aix_libpath_"; then
12161 lt_cv_aix_libpath_=/usr/lib:/lib
12166 aix_libpath=$lt_cv_aix_libpath_
12169 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12170 # Warning - without using the other run time loading flags,
12171 # -berok will link without error, but may produce a broken library.
12172 no_undefined_flag=' $wl-bernotok'
12173 allow_undefined_flag=' $wl-berok'
12174 if test yes = "$with_gnu_ld"; then
12175 # We only use this code for GNU lds that support --whole-archive.
12176 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12178 # Exported symbols can be pulled into shared objects from archives
12179 whole_archive_flag_spec='$convenience'
12181 archive_cmds_need_lc=yes
12182 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12183 # -brtl affects multiple linker settings, -berok does not and is overridden later
12184 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12185 if test svr4 != "$with_aix_soname"; then
12186 # This is similar to how AIX traditionally builds its shared libraries.
12187 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12189 if test aix != "$with_aix_soname"; then
12190 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12192 # used by -dlpreopen to get the symbols
12193 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12195 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12203 # see comment about AmigaOS4 .so support
12204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12205 archive_expsym_cmds=''
12208 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12209 hardcode_libdir_flag_spec='-L$libdir'
12210 hardcode_minus_L=yes
12216 export_dynamic_flag_spec=-rdynamic
12219 cygwin* | mingw* | pw32* | cegcc*)
12220 # When not using gcc, we currently assume that we are using
12221 # Microsoft Visual C++.
12222 # hardcode_libdir_flag_spec is actually meaningless, as there is
12223 # no search path for DLLs.
12224 case $cc_basename in
12227 hardcode_libdir_flag_spec=' '
12228 allow_undefined_flag=unsupported
12229 always_export_symbols=yes
12231 # Tell ltmain to make .lib files, not .a files.
12233 # Tell ltmain to make .dll files, not .so files.
12235 # FIXME: Setting linknames here is a bad hack.
12236 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12237 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12238 cp "$export_symbols" "$output_objdir/$soname.def";
12239 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12241 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12243 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12245 # The linker will not automatically build a static lib if we build a DLL.
12246 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12247 enable_shared_with_static_runtimes=yes
12248 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12251 old_postinstall_cmds='chmod 644 $oldlib'
12252 postlink_cmds='lt_outputfile="@OUTPUT@"~
12253 lt_tool_outputfile="@TOOL_OUTPUT@"~
12254 case $lt_outputfile in
12257 lt_outputfile=$lt_outputfile.exe
12258 lt_tool_outputfile=$lt_tool_outputfile.exe
12261 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12263 $RM "$lt_outputfile.manifest";
12267 # Assume MSVC wrapper
12268 hardcode_libdir_flag_spec=' '
12269 allow_undefined_flag=unsupported
12270 # Tell ltmain to make .lib files, not .a files.
12272 # Tell ltmain to make .dll files, not .so files.
12274 # FIXME: Setting linknames here is a bad hack.
12275 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12276 # The linker will automatically build a .lib file if we build a DLL.
12277 old_archive_from_new_cmds='true'
12278 # FIXME: Should let the user specify the lib program.
12279 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12280 enable_shared_with_static_runtimes=yes
12285 darwin* | rhapsody*)
12288 archive_cmds_need_lc=no
12290 hardcode_automatic=yes
12291 hardcode_shlibpath_var=unsupported
12292 if test yes = "$lt_cv_ld_force_load"; then
12293 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12296 whole_archive_flag_spec=''
12298 link_all_deplibs=yes
12299 allow_undefined_flag=$_lt_dar_allow_undefined
12300 case $cc_basename in
12301 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12302 *) _lt_dar_can_shared=$GCC ;;
12304 if test yes = "$_lt_dar_can_shared"; then
12305 output_verbose_link_cmd=func_echo_all
12306 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12307 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12308 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12309 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12319 hardcode_libdir_flag_spec='-L$libdir'
12320 hardcode_shlibpath_var=no
12323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12324 # support. Future versions do this automatically, but an explicit c++rt0.o
12325 # does not break anything, and helps significantly (at the cost of a little
12328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12329 hardcode_libdir_flag_spec='-R$libdir'
12330 hardcode_direct=yes
12331 hardcode_shlibpath_var=no
12334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12337 hardcode_direct=yes
12338 hardcode_minus_L=yes
12339 hardcode_shlibpath_var=no
12342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12343 freebsd* | dragonfly*)
12344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12345 hardcode_libdir_flag_spec='-R$libdir'
12346 hardcode_direct=yes
12347 hardcode_shlibpath_var=no
12351 if test yes = "$GCC"; then
12352 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12354 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12356 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12357 hardcode_libdir_separator=:
12358 hardcode_direct=yes
12360 # hardcode_minus_L: Not really in the search PATH,
12361 # but as the default location of the library.
12362 hardcode_minus_L=yes
12363 export_dynamic_flag_spec='$wl-E'
12367 if test yes,no = "$GCC,$with_gnu_ld"; then
12368 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12372 if test no = "$with_gnu_ld"; then
12373 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12374 hardcode_libdir_separator=:
12375 hardcode_direct=yes
12376 hardcode_direct_absolute=yes
12377 export_dynamic_flag_spec='$wl-E'
12378 # hardcode_minus_L: Not really in the search PATH,
12379 # but as the default location of the library.
12380 hardcode_minus_L=yes
12385 if test yes,no = "$GCC,$with_gnu_ld"; then
12388 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12391 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12394 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12407 # Older versions of the 11.00 compiler do not understand -b yet
12408 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12410 $as_echo_n "checking if $CC understands -b... " >&6; }
12411 if ${lt_cv_prog_compiler__b+:} false; then :
12412 $as_echo_n "(cached) " >&6
12414 lt_cv_prog_compiler__b=no
12415 save_LDFLAGS=$LDFLAGS
12416 LDFLAGS="$LDFLAGS -b"
12417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12419 # The linker can only warn and ignore the option if not recognized
12420 # So say no if there are warnings
12421 if test -s conftest.err; then
12422 # Append any errors to the config.log.
12423 cat conftest.err 1>&5
12424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12426 if diff conftest.exp conftest.er2 >/dev/null; then
12427 lt_cv_prog_compiler__b=yes
12430 lt_cv_prog_compiler__b=yes
12434 LDFLAGS=$save_LDFLAGS
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12438 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12440 if test yes = "$lt_cv_prog_compiler__b"; then
12441 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12449 if test no = "$with_gnu_ld"; then
12450 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12451 hardcode_libdir_separator=:
12456 hardcode_shlibpath_var=no
12459 hardcode_direct=yes
12460 hardcode_direct_absolute=yes
12461 export_dynamic_flag_spec='$wl-E'
12463 # hardcode_minus_L: Not really in the search PATH,
12464 # but as the default location of the library.
12465 hardcode_minus_L=yes
12471 irix5* | irix6* | nonstopux*)
12472 if test yes = "$GCC"; then
12473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12474 # Try to use the -exported_symbol ld option, if it does not
12475 # work, assume that -exports_file does not work either and
12476 # implicitly export all symbols.
12477 # This should be the same for all languages, so no per-tag cache variable.
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12479 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12480 if ${lt_cv_irix_exported_symbol+:} false; then :
12481 $as_echo_n "(cached) " >&6
12483 save_LDFLAGS=$LDFLAGS
12484 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 int foo (void) { return 0; }
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 lt_cv_irix_exported_symbol=yes
12492 lt_cv_irix_exported_symbol=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LDFLAGS=$save_LDFLAGS
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12499 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12500 if test yes = "$lt_cv_irix_exported_symbol"; then
12501 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12507 archive_cmds_need_lc='no'
12508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12509 hardcode_libdir_separator=:
12511 link_all_deplibs=yes
12515 case $cc_basename in
12517 # Fabrice Bellard et al's Tiny C Compiler
12519 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12530 hardcode_libdir_flag_spec='-R$libdir'
12531 hardcode_direct=yes
12532 hardcode_shlibpath_var=no
12536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12537 hardcode_direct=yes
12538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12539 hardcode_libdir_separator=:
12540 hardcode_shlibpath_var=no
12546 openbsd* | bitrig*)
12547 if test -f /usr/libexec/ld.so; then
12548 hardcode_direct=yes
12549 hardcode_shlibpath_var=no
12550 hardcode_direct_absolute=yes
12551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12554 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12555 export_dynamic_flag_spec='$wl-E'
12557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12558 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12566 hardcode_libdir_flag_spec='-L$libdir'
12567 hardcode_minus_L=yes
12568 allow_undefined_flag=unsupported
12570 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12571 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12572 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12573 $ECHO EXPORTS >> $output_objdir/$libname.def~
12574 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12575 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12576 emximp -o $lib $output_objdir/$libname.def'
12577 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12578 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12579 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12580 $ECHO EXPORTS >> $output_objdir/$libname.def~
12581 prefix_cmds="$SED"~
12582 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12583 prefix_cmds="$prefix_cmds -e 1d";
12585 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12586 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12587 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12588 emximp -o $lib $output_objdir/$libname.def'
12589 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12590 enable_shared_with_static_runtimes=yes
12594 if test yes = "$GCC"; then
12595 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12596 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12598 allow_undefined_flag=' -expect_unresolved \*'
12599 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12601 archive_cmds_need_lc='no'
12602 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12603 hardcode_libdir_separator=:
12606 osf4* | osf5*) # as osf3* with the addition of -msym flag
12607 if test yes = "$GCC"; then
12608 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12609 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12612 allow_undefined_flag=' -expect_unresolved \*'
12613 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12614 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12615 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12617 # Both c and cxx compiler support -rpath directly
12618 hardcode_libdir_flag_spec='-rpath $libdir'
12620 archive_cmds_need_lc='no'
12621 hardcode_libdir_separator=:
12625 no_undefined_flag=' -z defs'
12626 if test yes = "$GCC"; then
12628 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12630 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12632 case `$CC -V 2>&1` in
12635 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12637 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12641 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12643 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12647 hardcode_libdir_flag_spec='-R$libdir'
12648 hardcode_shlibpath_var=no
12650 solaris2.[0-5] | solaris2.[0-5].*) ;;
12652 # The compiler driver will combine and reorder linker options,
12653 # but understands '-z linker_flag'. GCC discards it without '$wl',
12654 # but is careful enough not to reorder.
12655 # Supported since Solaris 2.6 (maybe 2.5.1?)
12656 if test yes = "$GCC"; then
12657 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12663 link_all_deplibs=yes
12667 if test sequent = "$host_vendor"; then
12668 # Use $CC to link under sequent, because it throws in some extra .o
12669 # files that make .init and .fini sections work.
12670 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12672 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12674 hardcode_libdir_flag_spec='-L$libdir'
12675 hardcode_direct=yes
12676 hardcode_minus_L=yes
12677 hardcode_shlibpath_var=no
12681 case $host_vendor in
12683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12684 hardcode_direct=yes # is this really true???
12687 ## LD is ld it makes a PLAMLIB
12688 ## CC just makes a GrossModule.
12689 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12690 reload_cmds='$CC -r -o $output$reload_objs'
12694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12695 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12698 runpath_var='LD_RUN_PATH'
12699 hardcode_shlibpath_var=no
12703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12704 hardcode_shlibpath_var=no
12705 export_dynamic_flag_spec='-Bexport'
12709 if test -d /usr/nec; then
12710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711 hardcode_shlibpath_var=no
12712 runpath_var=LD_RUN_PATH
12713 hardcode_runpath_var=yes
12718 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12719 no_undefined_flag='$wl-z,text'
12720 archive_cmds_need_lc=no
12721 hardcode_shlibpath_var=no
12722 runpath_var='LD_RUN_PATH'
12724 if test yes = "$GCC"; then
12725 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12726 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12733 sysv5* | sco3.2v5* | sco5v6*)
12734 # Note: We CANNOT use -z defs as we might desire, because we do not
12735 # link with -lc, and that would cause any symbols used from libc to
12736 # always be unresolved, which means just about no library would
12737 # ever link correctly. If we're not using GNU ld we use -z text
12738 # though, which does catch some bad symbols but isn't as heavy-handed
12740 no_undefined_flag='$wl-z,text'
12741 allow_undefined_flag='$wl-z,nodefs'
12742 archive_cmds_need_lc=no
12743 hardcode_shlibpath_var=no
12744 hardcode_libdir_flag_spec='$wl-R,$libdir'
12745 hardcode_libdir_separator=':'
12746 link_all_deplibs=yes
12747 export_dynamic_flag_spec='$wl-Bexport'
12748 runpath_var='LD_RUN_PATH'
12750 if test yes = "$GCC"; then
12751 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12754 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12755 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12761 hardcode_libdir_flag_spec='-L$libdir'
12762 hardcode_shlibpath_var=no
12770 if test sni = "$host_vendor"; then
12772 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12773 export_dynamic_flag_spec='$wl-Blargedynsym'
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12780 $as_echo "$ld_shlibs" >&6; }
12781 test no = "$ld_shlibs" && can_build_shared=no
12783 with_gnu_ld=$with_gnu_ld
12800 # Do we need to explicitly link libc?
12802 case "x$archive_cmds_need_lc" in
12804 # Assume -lc should be added
12805 archive_cmds_need_lc=yes
12807 if test yes,yes = "$GCC,$enable_shared"; then
12808 case $archive_cmds in
12810 # FIXME: we may have to deal with multi-command sequences.
12813 # Test whether the compiler implicitly links with -lc since on some
12814 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12815 # to ld, don't add -lc before -lgcc.
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12817 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12818 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12819 $as_echo_n "(cached) " >&6
12822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12825 (eval $ac_compile) 2>&5
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; } 2>conftest.err; then
12831 libobjs=conftest.$ac_objext
12833 wl=$lt_prog_compiler_wl
12834 pic_flag=$lt_prog_compiler_pic
12840 lt_save_allow_undefined_flag=$allow_undefined_flag
12841 allow_undefined_flag=
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12843 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; }
12848 lt_cv_archive_cmds_need_lc=no
12850 lt_cv_archive_cmds_need_lc=yes
12852 allow_undefined_flag=$lt_save_allow_undefined_flag
12854 cat conftest.err 1>&5
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12860 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12861 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13022 if test yes = "$GCC"; then
13024 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13025 *) lt_awk_arg='/^libraries:/' ;;
13028 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13029 *) lt_sed_strip_eq='s|=/|/|g' ;;
13031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13032 case $lt_search_path_spec in
13034 # if the path contains ";" then we assume it to be the separator
13035 # otherwise default to the standard path separator (i.e. ":") - it is
13036 # assumed that no part of a normal pathname contains ";" but that should
13037 # okay in the real world where ";" in dirpaths is itself problematic.
13038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13044 # Ok, now we have the path, separated by spaces, we can step through it
13045 # and add multilib dir if necessary...
13046 lt_tmp_lt_search_path_spec=
13047 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13048 # ...but if some path component already ends with the multilib dir we assume
13049 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13050 case "$lt_multi_os_dir; $lt_search_path_spec " in
13051 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13055 for lt_sys_path in $lt_search_path_spec; do
13056 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13058 elif test -n "$lt_multi_os_dir"; then
13059 test -d "$lt_sys_path" && \
13060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13063 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13064 BEGIN {RS = " "; FS = "/|\n";} {
13067 for (lt_i = NF; lt_i > 0; lt_i--) {
13068 if ($lt_i != "" && $lt_i != ".") {
13069 if ($lt_i == "..") {
13072 if (lt_count == 0) {
13073 lt_foo = "/" $lt_i lt_foo;
13080 if (lt_foo != "") { lt_freq[lt_foo]++; }
13081 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13083 # AWK program above erroneously prepends '/' to C:/dos/paths
13086 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13087 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13089 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13093 library_names_spec=
13094 libname_spec='lib$name'
13098 postuninstall_cmds=
13102 shlibpath_overrides_runpath=unknown
13104 dynamic_linker="$host_os ld.so"
13105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13106 need_lib_prefix=unknown
13107 hardcode_into_libs=no
13109 # when you set need_version to no, make sure it does not cause -set_version
13110 # flags to be left without arguments
13111 need_version=unknown
13117 version_type=linux # correct to gnu/linux during the next big refactor
13118 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13119 shlibpath_var=LIBPATH
13121 # AIX 3 has no versioning support, so we append a major version to the name.
13122 soname_spec='$libname$release$shared_ext$major'
13126 version_type=linux # correct to gnu/linux during the next big refactor
13129 hardcode_into_libs=yes
13130 if test ia64 = "$host_cpu"; then
13131 # AIX 5 supports IA64
13132 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13133 shlibpath_var=LD_LIBRARY_PATH
13135 # With GCC up to 2.95.x, collect2 would create an import file
13136 # for dependence libraries. The import file would start with
13137 # the line '#! .'. This would cause the generated library to
13138 # depend on '.', always an invalid library. This was fixed in
13139 # development snapshots of GCC prior to 3.0.
13141 aix4 | aix4.[01] | aix4.[01].*)
13142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13144 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13147 can_build_shared=no
13151 # Using Import Files as archive members, it is possible to support
13152 # filename-based versioning of shared library archives on AIX. While
13153 # this would work for both with and without runtime linking, it will
13154 # prevent static linking of such archives. So we do filename-based
13155 # shared library versioning with .so extension only, which is used
13156 # when both runtime linking and shared linking is enabled.
13157 # Unfortunately, runtime linking may impact performance, so we do
13158 # not want this to be the default eventually. Also, we use the
13159 # versioned .so libs for executables only if there is the -brtl
13160 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13161 # To allow for filename-based versioning support, we need to create
13162 # libNAME.so.V as an archive file, containing:
13163 # *) an Import File, referring to the versioned filename of the
13164 # archive as well as the shared archive member, telling the
13165 # bitwidth (32 or 64) of that shared object, and providing the
13166 # list of exported symbols of that shared object, eventually
13167 # decorated with the 'weak' keyword
13168 # *) the shared object with the F_LOADONLY flag set, to really avoid
13169 # it being seen by the linker.
13170 # At run time we better use the real file rather than another symlink,
13171 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13173 case $with_aix_soname,$aix_use_runtimelinking in
13174 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13175 # soname into executable. Probably we can add versioning support to
13176 # collect2, so additional links can be useful in future.
13177 aix,yes) # traditional libtool
13178 dynamic_linker='AIX unversionable lib.so'
13179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13180 # instead of lib<name>.a to let people know that these are not
13181 # typical AIX shared libraries.
13182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13184 aix,no) # traditional AIX only
13185 dynamic_linker='AIX lib.a(lib.so.V)'
13186 # We preserve .a as extension for shared libraries through AIX4.2
13187 # and later when we are not doing run time linking.
13188 library_names_spec='$libname$release.a $libname.a'
13189 soname_spec='$libname$release$shared_ext$major'
13191 svr4,*) # full svr4 only
13192 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13193 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13194 # We do not specify a path in Import Files, so LIBPATH fires.
13195 shlibpath_overrides_runpath=yes
13197 *,yes) # both, prefer svr4
13198 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13199 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13200 # unpreferred sharedlib libNAME.a needs extra handling
13201 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13202 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13203 # We do not specify a path in Import Files, so LIBPATH fires.
13204 shlibpath_overrides_runpath=yes
13206 *,no) # both, prefer aix
13207 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13208 library_names_spec='$libname$release.a $libname.a'
13209 soname_spec='$libname$release$shared_ext$major'
13210 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13211 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13212 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13215 shlibpath_var=LIBPATH
13222 # Since July 2007 AmigaOS4 officially supports .so libraries.
13223 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13227 library_names_spec='$libname.ixlibrary $libname.a'
13228 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13229 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13235 library_names_spec='$libname$shared_ext'
13236 dynamic_linker="$host_os ld.so"
13237 shlibpath_var=LIBRARY_PATH
13241 version_type=linux # correct to gnu/linux during the next big refactor
13243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13244 soname_spec='$libname$release$shared_ext$major'
13245 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13248 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13249 # the default ld.so.conf also contains /usr/contrib/lib and
13250 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13251 # libtool to hard-code these into programs
13254 cygwin* | mingw* | pw32* | cegcc*)
13255 version_type=windows
13260 case $GCC,$cc_basename in
13263 library_names_spec='$libname.dll.a'
13264 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13265 postinstall_cmds='base_file=`basename \$file`~
13266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13267 dldir=$destdir/`dirname \$dlpath`~
13268 test -d \$dldir || mkdir -p \$dldir~
13269 $install_prog $dir/$dlname \$dldir/$dlname~
13270 chmod a+x \$dldir/$dlname~
13271 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13272 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13275 dlpath=$dir/\$dldll~
13277 shlibpath_overrides_runpath=yes
13281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13282 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13284 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13287 # MinGW DLLs use traditional 'lib' prefix
13288 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13291 # pw32 DLLs use 'pw' prefix rather than 'lib'
13292 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13295 dynamic_linker='Win32 ld.exe'
13300 libname_spec='$name'
13301 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13302 library_names_spec='$libname.dll.lib'
13306 sys_lib_search_path_spec=
13309 for lt_path in $LIB
13312 # Let DOS variable expansion print the short 8.3 style file name.
13313 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13314 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13317 # Convert to MSYS style.
13318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13321 # Convert to unix form, then to dos form, then back to unix form
13322 # but this time dos style (no spaces!) so that the unix form looks
13323 # like /cygdrive/c/PROGRA~1:/cygdr...
13324 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13325 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13326 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13329 sys_lib_search_path_spec=$LIB
13330 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13331 # It is most probably a Windows format PATH.
13332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13334 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13336 # FIXME: find the short name or the path components, as spaces are
13337 # common. (e.g. "Program Files" -> "PROGRA~1")
13341 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13342 postinstall_cmds='base_file=`basename \$file`~
13343 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13344 dldir=$destdir/`dirname \$dlpath`~
13345 test -d \$dldir || mkdir -p \$dldir~
13346 $install_prog $dir/$dlname \$dldir/$dlname'
13347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13348 dlpath=$dir/\$dldll~
13350 shlibpath_overrides_runpath=yes
13351 dynamic_linker='Win32 link.exe'
13355 # Assume MSVC wrapper
13356 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13357 dynamic_linker='Win32 ld.exe'
13360 # FIXME: first we should search . and the directory the executable is in
13364 darwin* | rhapsody*)
13365 dynamic_linker="$host_os dyld"
13366 version_type=darwin
13369 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13370 soname_spec='$libname$release$major$shared_ext'
13371 shlibpath_overrides_runpath=yes
13372 shlibpath_var=DYLD_LIBRARY_PATH
13373 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13375 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13376 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13380 version_type=linux # correct to gnu/linux during the next big refactor
13383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13384 soname_spec='$libname$release$shared_ext$major'
13385 shlibpath_var=LD_LIBRARY_PATH
13388 freebsd* | dragonfly*)
13389 # DragonFly does not have aout. When/if they implement a new
13390 # versioning mechanism, adjust this.
13391 if test -x /usr/bin/objformat; then
13392 objformat=`/usr/bin/objformat`
13395 freebsd[23].*) objformat=aout ;;
13396 *) objformat=elf ;;
13399 version_type=freebsd-$objformat
13400 case $version_type in
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 soname_spec='$libname$release$shared_ext$major'
13408 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13412 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13417 freebsd3.[01]* | freebsdelf3.[01]*)
13418 shlibpath_overrides_runpath=yes
13419 hardcode_into_libs=yes
13421 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13422 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13423 shlibpath_overrides_runpath=no
13424 hardcode_into_libs=yes
13426 *) # from 4.6 on, and DragonFly
13427 shlibpath_overrides_runpath=yes
13428 hardcode_into_libs=yes
13434 version_type=linux # correct to gnu/linux during the next big refactor
13437 dynamic_linker="$host_os runtime_loader"
13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13439 soname_spec='$libname$release$shared_ext$major'
13440 shlibpath_var=LIBRARY_PATH
13441 shlibpath_overrides_runpath=no
13442 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13443 hardcode_into_libs=yes
13446 hpux9* | hpux10* | hpux11*)
13447 # Give a soname corresponding to the major version so that dld.sl refuses to
13448 # link against other versions.
13455 hardcode_into_libs=yes
13456 dynamic_linker="$host_os dld.so"
13457 shlibpath_var=LD_LIBRARY_PATH
13458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
13461 if test 32 = "$HPUX_IA64_MODE"; then
13462 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13463 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13466 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13471 hardcode_into_libs=yes
13472 dynamic_linker="$host_os dld.sl"
13473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13476 soname_spec='$libname$release$shared_ext$major'
13477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13482 dynamic_linker="$host_os dld.sl"
13483 shlibpath_var=SHLIB_PATH
13484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13486 soname_spec='$libname$release$shared_ext$major'
13489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13490 postinstall_cmds='chmod 555 $lib'
13491 # or fails outright, so override atomically:
13492 install_override_mode=555
13496 version_type=linux # correct to gnu/linux during the next big refactor
13499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13500 soname_spec='$libname$release$shared_ext$major'
13501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 shlibpath_overrides_runpath=no
13504 hardcode_into_libs=yes
13507 irix5* | irix6* | nonstopux*)
13509 nonstopux*) version_type=nonstopux ;;
13511 if test yes = "$lt_cv_prog_gnu_ld"; then
13512 version_type=linux # correct to gnu/linux during the next big refactor
13519 soname_spec='$libname$release$shared_ext$major'
13520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13522 irix5* | nonstopux*)
13523 libsuff= shlibsuff=
13526 case $LD in # libtool.m4 will add one of these switches to LD
13527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13528 libsuff= shlibsuff= libmagic=32-bit;;
13529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13530 libsuff=32 shlibsuff=N32 libmagic=N32;;
13531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13533 *) libsuff= shlibsuff= libmagic=never-match;;
13537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13538 shlibpath_overrides_runpath=no
13539 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13540 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13541 hardcode_into_libs=yes
13544 # No shared lib support for Linux oldld, aout, or coff.
13545 linux*oldld* | linux*aout* | linux*coff*)
13550 version_type=none # Android doesn't support versioned libraries.
13553 library_names_spec='$libname$release$shared_ext'
13554 soname_spec='$libname$release$shared_ext'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=yes
13559 # This implies no fast_install, which is unacceptable.
13560 # Some rework will be needed to allow for fast_install
13561 # before this can be enabled.
13562 hardcode_into_libs=yes
13564 dynamic_linker='Android linker'
13565 # Don't embed -rpath directories since the linker doesn't support them.
13566 hardcode_libdir_flag_spec='-L$libdir'
13569 # This must be glibc/ELF.
13570 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13571 version_type=linux # correct to gnu/linux during the next big refactor
13574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13575 soname_spec='$libname$release$shared_ext$major'
13576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 shlibpath_overrides_runpath=no
13580 # Some binutils ld are patched to set DT_RUNPATH
13581 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13582 $as_echo_n "(cached) " >&6
13584 lt_cv_shlibpath_overrides_runpath=no
13585 save_LDFLAGS=$LDFLAGS
13586 save_libdir=$libdir
13587 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13588 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13602 lt_cv_shlibpath_overrides_runpath=yes
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 LDFLAGS=$save_LDFLAGS
13608 libdir=$save_libdir
13612 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13614 # This implies no fast_install, which is unacceptable.
13615 # Some rework will be needed to allow for fast_install
13616 # before this can be enabled.
13617 hardcode_into_libs=yes
13619 # Add ABI-specific directories to the system library path.
13620 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13622 # Ideally, we could use ldconfig to report *all* directores which are
13623 # searched for libraries, however this is still not possible. Aside from not
13624 # being certain /sbin/ldconfig is available, command
13625 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13626 # even though it is searched at run-time. Try to do the best guess by
13627 # appending ld.so.conf contents (and includes) to the search path.
13628 if test -f /etc/ld.so.conf; then
13629 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13630 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13633 # We used to test for /lib/ld.so.1 and disable shared libraries on
13634 # powerpc, because MkLinux only supported shared libraries with the
13635 # GNU dynamic linker. Since this was broken with cross compilers,
13636 # most powerpc-linux boxes support dynamic linking these days and
13637 # people can always --disable-shared, the test was removed, and we
13638 # assume the GNU/Linux dynamic linker is in use.
13639 dynamic_linker='GNU/Linux ld.so'
13646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13649 dynamic_linker='NetBSD (a.out) ld.so'
13651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13652 soname_spec='$libname$release$shared_ext$major'
13653 dynamic_linker='NetBSD ld.elf_so'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=yes
13657 hardcode_into_libs=yes
13661 version_type=linux # correct to gnu/linux during the next big refactor
13662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13663 shlibpath_var=LD_LIBRARY_PATH
13664 shlibpath_overrides_runpath=yes
13671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13672 soname_spec='$libname$release$shared_ext$major'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=no
13675 hardcode_into_libs=yes
13676 dynamic_linker='ldqnx.so'
13679 openbsd* | bitrig*)
13681 sys_lib_dlsearch_path_spec=/usr/lib
13683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13690 shlibpath_var=LD_LIBRARY_PATH
13691 shlibpath_overrides_runpath=yes
13695 libname_spec='$name'
13696 version_type=windows
13700 # OS/2 can only load a DLL with a base name of 8 characters or less.
13701 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13702 v=$($ECHO $release$versuffix | tr -d .-);
13703 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13704 $ECHO $n$v`$shared_ext'
13705 library_names_spec='${libname}_dll.$libext'
13706 dynamic_linker='OS/2 ld.exe'
13707 shlibpath_var=BEGINLIBPATH
13708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13710 postinstall_cmds='base_file=`basename \$file`~
13711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13712 dldir=$destdir/`dirname \$dlpath`~
13713 test -d \$dldir || mkdir -p \$dldir~
13714 $install_prog $dir/$dlname \$dldir/$dlname~
13715 chmod a+x \$dldir/$dlname~
13716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13720 dlpath=$dir/\$dldll~
13724 osf3* | osf4* | osf5*)
13728 soname_spec='$libname$release$shared_ext$major'
13729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13730 shlibpath_var=LD_LIBRARY_PATH
13731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13740 version_type=linux # correct to gnu/linux during the next big refactor
13743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13744 soname_spec='$libname$release$shared_ext$major'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 shlibpath_overrides_runpath=yes
13747 hardcode_into_libs=yes
13748 # ldd complains unless libraries are executable
13749 postinstall_cmds='chmod +x $lib'
13754 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=yes
13758 if test yes = "$with_gnu_ld"; then
13765 version_type=linux # correct to gnu/linux during the next big refactor
13766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13767 soname_spec='$libname$release$shared_ext$major'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 case $host_vendor in
13771 shlibpath_overrides_runpath=no
13773 runpath_var=LD_RUN_PATH
13781 shlibpath_overrides_runpath=no
13782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13788 if test -d /usr/nec; then
13789 version_type=linux # correct to gnu/linux during the next big refactor
13790 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13791 soname_spec='$libname$shared_ext.$major'
13792 shlibpath_var=LD_LIBRARY_PATH
13796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13801 soname_spec='$libname$release$shared_ext$major'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 shlibpath_overrides_runpath=yes
13804 hardcode_into_libs=yes
13805 if test yes = "$with_gnu_ld"; then
13806 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13815 sys_lib_dlsearch_path_spec='/usr/lib'
13819 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13820 version_type=linux # correct to gnu/linux during the next big refactor
13823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 shlibpath_overrides_runpath=no
13826 hardcode_into_libs=yes
13830 version_type=linux # correct to gnu/linux during the next big refactor
13831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13832 soname_spec='$libname$release$shared_ext$major'
13833 shlibpath_var=LD_LIBRARY_PATH
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13841 $as_echo "$dynamic_linker" >&6; }
13842 test no = "$dynamic_linker" && can_build_shared=no
13844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13845 if test yes = "$GCC"; then
13846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13849 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13850 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13853 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13854 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13857 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13858 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13861 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13863 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13864 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13963 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13965 if test -n "$hardcode_libdir_flag_spec" ||
13966 test -n "$runpath_var" ||
13967 test yes = "$hardcode_automatic"; then
13969 # We can hardcode non-existent directories.
13970 if test no != "$hardcode_direct" &&
13971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13972 # have to relink, otherwise we might link with an installed library
13973 # when we should be linking with a yet-to-be-installed one
13974 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13975 test no != "$hardcode_minus_L"; then
13976 # Linking always hardcodes the temporary library directory.
13977 hardcode_action=relink
13979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13980 hardcode_action=immediate
13983 # We cannot hardcode anything, or else we can only hardcode existing
13985 hardcode_action=unsupported
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13988 $as_echo "$hardcode_action" >&6; }
13990 if test relink = "$hardcode_action" ||
13991 test yes = "$inherit_rpath"; then
13992 # Fast installation is not supported
13993 enable_fast_install=no
13994 elif test yes = "$shlibpath_overrides_runpath" ||
13995 test no = "$enable_shared"; then
13996 # Fast installation is not necessary
13997 enable_fast_install=needless
14005 if test yes != "$enable_dlopen"; then
14006 enable_dlopen=unknown
14007 enable_dlopen_self=unknown
14008 enable_dlopen_self_static=unknown
14015 lt_cv_dlopen=load_add_on
14017 lt_cv_dlopen_self=yes
14020 mingw* | pw32* | cegcc*)
14021 lt_cv_dlopen=LoadLibrary
14026 lt_cv_dlopen=dlopen
14031 # if libdl is installed we need to link against it
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14034 if ${ac_cv_lib_dl_dlopen+:} false; then :
14035 $as_echo_n "(cached) " >&6
14037 ac_check_lib_save_LIBS=$LIBS
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 ac_cv_lib_dl_dlopen=yes
14060 ac_cv_lib_dl_dlopen=no
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14069 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14074 lt_cv_dlopen_self=yes
14081 # Don't try to run any link tests for TPF. We know it's impossible
14082 # because TPF is a cross-compiler, and we know how we open DSOs.
14083 lt_cv_dlopen=dlopen
14085 lt_cv_dlopen_self=no
14089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14090 if test "x$ac_cv_func_shl_load" = xyes; then :
14091 lt_cv_dlopen=shl_load
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14095 if ${ac_cv_lib_dld_shl_load+:} false; then :
14096 $as_echo_n "(cached) " >&6
14098 ac_check_lib_save_LIBS=$LIBS
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14103 /* Override any GCC internal prototype to avoid an error.
14104 Use char because int might match the return type of a GCC
14105 builtin and then its argument prototype would still apply. */
14113 return shl_load ();
14118 if ac_fn_c_try_link "$LINENO"; then :
14119 ac_cv_lib_dld_shl_load=yes
14121 ac_cv_lib_dld_shl_load=no
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14129 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14130 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14132 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14133 if test "x$ac_cv_func_dlopen" = xyes; then :
14134 lt_cv_dlopen=dlopen
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14138 if ${ac_cv_lib_dl_dlopen+:} false; then :
14139 $as_echo_n "(cached) " >&6
14141 ac_check_lib_save_LIBS=$LIBS
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14161 if ac_fn_c_try_link "$LINENO"; then :
14162 ac_cv_lib_dl_dlopen=yes
14164 ac_cv_lib_dl_dlopen=no
14166 rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14173 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14177 if ${ac_cv_lib_svld_dlopen+:} false; then :
14178 $as_echo_n "(cached) " >&6
14180 ac_check_lib_save_LIBS=$LIBS
14181 LIBS="-lsvld $LIBS"
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14185 /* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14200 if ac_fn_c_try_link "$LINENO"; then :
14201 ac_cv_lib_svld_dlopen=yes
14203 ac_cv_lib_svld_dlopen=no
14205 rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14211 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14212 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14216 if ${ac_cv_lib_dld_dld_link+:} false; then :
14217 $as_echo_n "(cached) " >&6
14219 ac_check_lib_save_LIBS=$LIBS
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14234 return dld_link ();
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 ac_cv_lib_dld_dld_link=yes
14242 ac_cv_lib_dld_dld_link=no
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14250 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14251 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14272 if test no = "$lt_cv_dlopen"; then
14278 case $lt_cv_dlopen in
14280 save_CPPFLAGS=$CPPFLAGS
14281 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14283 save_LDFLAGS=$LDFLAGS
14284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14287 LIBS="$lt_cv_dlopen_libs $LIBS"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14291 if ${lt_cv_dlopen_self+:} false; then :
14292 $as_echo_n "(cached) " >&6
14294 if test yes = "$cross_compiling"; then :
14295 lt_cv_dlopen_self=cross
14297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14298 lt_status=$lt_dlunknown
14299 cat > conftest.$ac_ext <<_LT_EOF
14300 #line $LINENO "configure"
14301 #include "confdefs.h"
14310 # define LT_DLGLOBAL RTLD_GLOBAL
14313 # define LT_DLGLOBAL DL_GLOBAL
14315 # define LT_DLGLOBAL 0
14319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14320 find out it does not work in some platform. */
14321 #ifndef LT_DLLAZY_OR_NOW
14323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14326 # define LT_DLLAZY_OR_NOW DL_LAZY
14329 # define LT_DLLAZY_OR_NOW RTLD_NOW
14332 # define LT_DLLAZY_OR_NOW DL_NOW
14334 # define LT_DLLAZY_OR_NOW 0
14341 /* When -fvisibility=hidden is used, assume the code has been annotated
14342 correspondingly for the symbols needed. */
14343 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14344 int fnord () __attribute__((visibility("default")));
14347 int fnord () { return 42; }
14350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14351 int status = $lt_dlunknown;
14355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14359 else puts (dlerror ());
14361 /* dlclose (self); */
14369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14370 (eval $ac_link) 2>&5
14372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14373 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14374 (./conftest; exit; ) >&5 2>/dev/null
14376 case x$lt_status in
14377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14382 # compilation failed
14383 lt_cv_dlopen_self=no
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14391 $as_echo "$lt_cv_dlopen_self" >&6; }
14393 if test yes = "$lt_cv_dlopen_self"; then
14394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14396 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14397 if ${lt_cv_dlopen_self_static+:} false; then :
14398 $as_echo_n "(cached) " >&6
14400 if test yes = "$cross_compiling"; then :
14401 lt_cv_dlopen_self_static=cross
14403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14404 lt_status=$lt_dlunknown
14405 cat > conftest.$ac_ext <<_LT_EOF
14406 #line $LINENO "configure"
14407 #include "confdefs.h"
14416 # define LT_DLGLOBAL RTLD_GLOBAL
14419 # define LT_DLGLOBAL DL_GLOBAL
14421 # define LT_DLGLOBAL 0
14425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14426 find out it does not work in some platform. */
14427 #ifndef LT_DLLAZY_OR_NOW
14429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14432 # define LT_DLLAZY_OR_NOW DL_LAZY
14435 # define LT_DLLAZY_OR_NOW RTLD_NOW
14438 # define LT_DLLAZY_OR_NOW DL_NOW
14440 # define LT_DLLAZY_OR_NOW 0
14447 /* When -fvisibility=hidden is used, assume the code has been annotated
14448 correspondingly for the symbols needed. */
14449 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14450 int fnord () __attribute__((visibility("default")));
14453 int fnord () { return 42; }
14456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14457 int status = $lt_dlunknown;
14461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14465 else puts (dlerror ());
14467 /* dlclose (self); */
14475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14476 (eval $ac_link) 2>&5
14478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14479 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14480 (./conftest; exit; ) >&5 2>/dev/null
14482 case x$lt_status in
14483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14488 # compilation failed
14489 lt_cv_dlopen_self_static=no
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14500 CPPFLAGS=$save_CPPFLAGS
14501 LDFLAGS=$save_LDFLAGS
14506 case $lt_cv_dlopen_self in
14507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14508 *) enable_dlopen_self=unknown ;;
14511 case $lt_cv_dlopen_self_static in
14512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14513 *) enable_dlopen_self_static=unknown ;;
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14541 $as_echo "yes" >&6; }
14543 # FIXME - insert some real tests, host_os isn't really good enough
14546 if test -n "$STRIP"; then
14547 striplib="$STRIP -x"
14548 old_striplib="$STRIP -S"
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550 $as_echo "yes" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558 $as_echo "no" >&6; }
14574 # Report what library types will actually be built
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14578 $as_echo "$can_build_shared" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14581 $as_echo_n "checking whether to build shared libraries... " >&6; }
14582 test no = "$can_build_shared" && enable_shared=no
14584 # On AIX, shared libraries and static libraries use the same namespace, and
14585 # are all built from PIC.
14588 test yes = "$enable_shared" && enable_static=no
14589 if test -n "$RANLIB"; then
14590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14591 postinstall_cmds='$RANLIB $lib'
14596 if test ia64 != "$host_cpu"; then
14597 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14598 yes,aix,yes) ;; # shared object as lib.so file only
14599 yes,svr4,*) ;; # shared object as lib.so archive member only
14600 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14606 $as_echo "$enable_shared" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14609 $as_echo_n "checking whether to build static libraries... " >&6; }
14610 # Make sure either enable_shared or enable_static is yes.
14611 test yes = "$enable_shared" || enable_static=yes
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14613 $as_echo "$enable_static" >&6; }
14620 ac_cpp='$CPP $CPPFLAGS'
14621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14641 ac_config_commands="$ac_config_commands libtool"
14646 # Only expand once:
14651 # pkg-config is only needed for these options, do not require it otherwise
14652 if test "$enable_systemd" = "yes" -o "$with_pyunbound" = "yes" -o "$with_pythonmod" = "yes"; then
14660 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14661 if test -n "$ac_tool_prefix"; then
14662 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14663 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14665 $as_echo_n "checking for $ac_word... " >&6; }
14666 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14667 $as_echo_n "(cached) " >&6
14669 case $PKG_CONFIG in
14671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14692 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14693 if test -n "$PKG_CONFIG"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14695 $as_echo "$PKG_CONFIG" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14703 if test -z "$ac_cv_path_PKG_CONFIG"; then
14704 ac_pt_PKG_CONFIG=$PKG_CONFIG
14705 # Extract the first word of "pkg-config", so it can be a program name with args.
14706 set dummy pkg-config; ac_word=$2
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14708 $as_echo_n "checking for $ac_word... " >&6; }
14709 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14710 $as_echo_n "(cached) " >&6
14712 case $ac_pt_PKG_CONFIG in
14714 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14736 if test -n "$ac_pt_PKG_CONFIG"; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14738 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741 $as_echo "no" >&6; }
14744 if test "x$ac_pt_PKG_CONFIG" = x; then
14747 case $cross_compiling:$ac_tool_warned in
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14751 ac_tool_warned=yes ;;
14753 PKG_CONFIG=$ac_pt_PKG_CONFIG
14756 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14760 if test -n "$PKG_CONFIG"; then
14761 _pkg_min_version=0.9.0
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14763 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14766 $as_echo "yes" >&6; }
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14775 # Checks for header files.
14776 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/select.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h sys/endian.h libkern/OSByteOrder.h sys/ipc.h sys/shm.h ifaddrs.h poll.h
14778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14779 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14781 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14782 cat >>confdefs.h <<_ACEOF
14783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14790 # net/if.h portability for Darwin see:
14791 # https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Header-Portability.html
14792 for ac_header in net/if.h
14794 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
14796 #ifdef STDC_HEADERS
14797 # include <stdlib.h>
14798 # include <stddef.h>
14800 # ifdef HAVE_STDLIB_H
14801 # include <stdlib.h>
14804 #ifdef HAVE_SYS_SOCKET_H
14805 # include <sys/socket.h>
14809 if test "x$ac_cv_header_net_if_h" = xyes; then :
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_NET_IF_H 1
14819 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
14820 for ac_header in TargetConditionals.h
14822 ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
14824 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_TARGETCONDITIONALS_H 1
14833 for ac_header in netioapi.h
14835 ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" "$ac_includes_default
14836 #if HAVE_SYS_PARAM_H
14837 #include <sys/param.h>
14840 #ifdef HAVE_SYS_SOCKET_H
14841 #include <sys/socket.h>
14844 #ifdef HAVE_SYS_UIO_H
14845 #include <sys/uio.h>
14848 #ifdef HAVE_NETINET_IN_H
14849 #include <netinet/in.h>
14852 #ifdef HAVE_NETINET_TCP_H
14853 #include <netinet/tcp.h>
14856 #ifdef HAVE_ARPA_INET_H
14857 #include <arpa/inet.h>
14860 #ifdef HAVE_WINSOCK2_H
14861 #include <winsock2.h>
14864 #ifdef HAVE_WS2TCPIP_H
14865 #include <ws2tcpip.h>
14869 if test "x$ac_cv_header_netioapi_h" = xyes; then :
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_NETIOAPI_H 1
14880 # Using own tests for int64* because autoconf builtin only give 32bit.
14881 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14882 if test "x$ac_cv_type_int8_t" = xyes; then :
14886 cat >>confdefs.h <<_ACEOF
14887 #define int8_t signed char
14892 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14893 if test "x$ac_cv_type_int16_t" = xyes; then :
14897 cat >>confdefs.h <<_ACEOF
14898 #define int16_t short
14903 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14904 if test "x$ac_cv_type_int32_t" = xyes; then :
14908 cat >>confdefs.h <<_ACEOF
14909 #define int32_t int
14914 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14915 if test "x$ac_cv_type_int64_t" = xyes; then :
14919 cat >>confdefs.h <<_ACEOF
14920 #define int64_t long long
14925 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14926 if test "x$ac_cv_type_uint8_t" = xyes; then :
14930 cat >>confdefs.h <<_ACEOF
14931 #define uint8_t unsigned char
14936 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14937 if test "x$ac_cv_type_uint16_t" = xyes; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define uint16_t unsigned short
14947 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14948 if test "x$ac_cv_type_uint32_t" = xyes; then :
14952 cat >>confdefs.h <<_ACEOF
14953 #define uint32_t unsigned int
14958 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14959 if test "x$ac_cv_type_uint64_t" = xyes; then :
14963 cat >>confdefs.h <<_ACEOF
14964 #define uint64_t unsigned long long
14969 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14970 if test "x$ac_cv_type_size_t" = xyes; then :
14974 cat >>confdefs.h <<_ACEOF
14975 #define size_t unsigned int
14980 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14981 if test "x$ac_cv_type_ssize_t" = xyes; then :
14985 cat >>confdefs.h <<_ACEOF
14986 #define ssize_t int
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14992 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14993 if ${ac_cv_type_uid_t+:} false; then :
14994 $as_echo_n "(cached) " >&6
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
15001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15002 $EGREP "uid_t" >/dev/null 2>&1; then :
15003 ac_cv_type_uid_t=yes
15005 ac_cv_type_uid_t=no
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15011 $as_echo "$ac_cv_type_uid_t" >&6; }
15012 if test $ac_cv_type_uid_t = no; then
15014 $as_echo "#define uid_t int" >>confdefs.h
15017 $as_echo "#define gid_t int" >>confdefs.h
15021 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15022 if test "x$ac_cv_type_pid_t" = xyes; then :
15026 cat >>confdefs.h <<_ACEOF
15032 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15033 if test "x$ac_cv_type_off_t" = xyes; then :
15037 cat >>confdefs.h <<_ACEOF
15038 #define off_t long int
15043 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
15044 $ac_includes_default
15045 #ifdef HAVE_WINSOCK2_H
15046 # include <winsock2.h>
15050 if test "x$ac_cv_type_u_char" = xyes; then :
15054 $as_echo "#define u_char unsigned char" >>confdefs.h
15058 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
15059 $ac_includes_default
15060 #ifdef HAVE_SYS_RESOURCE_H
15061 # include <sys/resource.h>
15065 if test "x$ac_cv_type_rlim_t" = xyes; then :
15069 $as_echo "#define rlim_t unsigned long" >>confdefs.h
15074 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15075 $ac_includes_default
15076 #ifdef HAVE_SYS_SOCKET_H
15077 # include <sys/socket.h>
15079 #ifdef HAVE_WS2TCPIP_H
15080 # include <ws2tcpip.h>
15084 if test "x$ac_cv_type_socklen_t" = xyes; then :
15088 $as_echo "#define socklen_t int" >>confdefs.h
15092 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15093 $ac_includes_default
15094 #ifdef HAVE_SYS_TYPES_H
15095 # include <sys/types.h>
15097 #ifdef HAVE_NETINET_IN_H
15098 # include <netinet/in.h>
15102 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15106 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15110 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15111 $ac_includes_default
15112 #ifdef HAVE_SYS_TYPES_H
15113 # include <sys/types.h>
15115 #ifdef HAVE_NETINET_IN_H
15116 # include <netinet/in.h>
15120 if test "x$ac_cv_type_in_port_t" = xyes; then :
15124 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15129 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
15130 if test "$cross_compiling" = yes; then :
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15132 $as_echo "cross-compile no" >&6; }
15134 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15136 case " $LIBOBJS " in
15137 *" memcmp.$ac_objext "* ) ;;
15138 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15148 #include <stdlib.h>
15149 #include <string.h>
15152 char a = 255, b = 0;
15153 if(memcmp(&a, &b, 1) < 0)
15159 if ac_fn_c_try_run "$LINENO"; then :
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 $as_echo "yes" >&6; }
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15166 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15168 case " $LIBOBJS " in
15169 *" memcmp.$ac_objext "* ) ;;
15170 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15177 conftest.$ac_objext conftest.beam conftest.$ac_ext
15181 # The cast to long int works around a bug in the HP C Compiler
15182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15184 # This bug is HP SR number 8606223364.
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15186 $as_echo_n "checking size of time_t... " >&6; }
15187 if ${ac_cv_sizeof_time_t+:} false; then :
15188 $as_echo_n "(cached) " >&6
15190 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15191 $ac_includes_default
15192 #ifdef TIME_WITH_SYS_TIME
15193 # include <sys/time.h>
15196 # ifdef HAVE_SYS_TIME_H
15197 # include <sys/time.h>
15206 if test "$ac_cv_type_time_t" = yes; then
15207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15209 as_fn_error 77 "cannot compute sizeof (time_t)
15210 See \`config.log' for more details" "$LINENO" 5; }
15212 ac_cv_sizeof_time_t=0
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15218 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15222 cat >>confdefs.h <<_ACEOF
15223 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15227 # The cast to long int works around a bug in the HP C Compiler
15228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15230 # This bug is HP SR number 8606223364.
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15232 $as_echo_n "checking size of size_t... " >&6; }
15233 if ${ac_cv_sizeof_size_t+:} false; then :
15234 $as_echo_n "(cached) " >&6
15236 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15239 if test "$ac_cv_type_size_t" = yes; then
15240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15242 as_fn_error 77 "cannot compute sizeof (size_t)
15243 See \`config.log' for more details" "$LINENO" 5; }
15245 ac_cv_sizeof_size_t=0
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15251 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15255 cat >>confdefs.h <<_ACEOF
15256 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15261 # add option to disable the evil rpath
15263 # Check whether --enable-rpath was given.
15264 if test "${enable_rpath+set}" = set; then :
15265 enableval=$enable_rpath; enable_rpath=$enableval
15270 if test "x$enable_rpath" = xno; then
15271 ac_config_commands="$ac_config_commands disable-rpath"
15277 # check to see if libraries are needed for these functions.
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15279 $as_echo_n "checking for library containing inet_pton... " >&6; }
15280 if ${ac_cv_search_inet_pton+:} false; then :
15281 $as_echo_n "(cached) " >&6
15283 ac_func_search_save_LIBS=$LIBS
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15287 /* Override any GCC internal prototype to avoid an error.
15288 Use char because int might match the return type of a GCC
15289 builtin and then its argument prototype would still apply. */
15297 return inet_pton ();
15302 for ac_lib in '' nsl; do
15303 if test -z "$ac_lib"; then
15304 ac_res="none required"
15307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15309 if ac_fn_c_try_link "$LINENO"; then :
15310 ac_cv_search_inet_pton=$ac_res
15312 rm -f core conftest.err conftest.$ac_objext \
15314 if ${ac_cv_search_inet_pton+:} false; then :
15318 if ${ac_cv_search_inet_pton+:} false; then :
15321 ac_cv_search_inet_pton=no
15323 rm conftest.$ac_ext
15324 LIBS=$ac_func_search_save_LIBS
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15327 $as_echo "$ac_cv_search_inet_pton" >&6; }
15328 ac_res=$ac_cv_search_inet_pton
15329 if test "$ac_res" != no; then :
15330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15335 $as_echo_n "checking for library containing socket... " >&6; }
15336 if ${ac_cv_search_socket+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 ac_func_search_save_LIBS=$LIBS
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15343 /* Override any GCC internal prototype to avoid an error.
15344 Use char because int might match the return type of a GCC
15345 builtin and then its argument prototype would still apply. */
15358 for ac_lib in '' socket; do
15359 if test -z "$ac_lib"; then
15360 ac_res="none required"
15363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15365 if ac_fn_c_try_link "$LINENO"; then :
15366 ac_cv_search_socket=$ac_res
15368 rm -f core conftest.err conftest.$ac_objext \
15370 if ${ac_cv_search_socket+:} false; then :
15374 if ${ac_cv_search_socket+:} false; then :
15377 ac_cv_search_socket=no
15379 rm conftest.$ac_ext
15380 LIBS=$ac_func_search_save_LIBS
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15383 $as_echo "$ac_cv_search_socket" >&6; }
15384 ac_res=$ac_cv_search_socket
15385 if test "$ac_res" != no; then :
15386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15391 # check whether strptime also works
15393 # check some functions of the OS before linking libs (while still runnable).
15394 for ac_header in unistd.h
15396 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15397 if test "x$ac_cv_header_unistd_h" = xyes; then :
15398 cat >>confdefs.h <<_ACEOF
15399 #define HAVE_UNISTD_H 1
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15407 $as_echo_n "checking for working chown... " >&6; }
15408 if ${ac_cv_func_chown_works+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 if test "$cross_compiling" = yes; then :
15412 ac_cv_func_chown_works=no
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416 $ac_includes_default
15422 char *f = "conftest.chown";
15423 struct stat before, after;
15425 if (creat (f, 0600) < 0)
15427 if (stat (f, &before) < 0)
15429 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15431 if (stat (f, &after) < 0)
15433 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15439 if ac_fn_c_try_run "$LINENO"; then :
15440 ac_cv_func_chown_works=yes
15442 ac_cv_func_chown_works=no
15444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15445 conftest.$ac_objext conftest.beam conftest.$ac_ext
15448 rm -f conftest.chown
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15452 $as_echo "$ac_cv_func_chown_works" >&6; }
15453 if test $ac_cv_func_chown_works = yes; then
15455 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15459 for ac_header in vfork.h
15461 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15462 if test "x$ac_cv_header_vfork_h" = xyes; then :
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_VFORK_H 1
15471 for ac_func in fork vfork
15473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15475 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15476 cat >>confdefs.h <<_ACEOF
15477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15483 if test "x$ac_cv_func_fork" = xyes; then
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15485 $as_echo_n "checking for working fork... " >&6; }
15486 if ${ac_cv_func_fork_works+:} false; then :
15487 $as_echo_n "(cached) " >&6
15489 if test "$cross_compiling" = yes; then :
15490 ac_cv_func_fork_works=cross
15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15494 $ac_includes_default
15499 /* By Ruediger Kuhlmann. */
15500 return fork () < 0;
15506 if ac_fn_c_try_run "$LINENO"; then :
15507 ac_cv_func_fork_works=yes
15509 ac_cv_func_fork_works=no
15511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15512 conftest.$ac_objext conftest.beam conftest.$ac_ext
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15517 $as_echo "$ac_cv_func_fork_works" >&6; }
15520 ac_cv_func_fork_works=$ac_cv_func_fork
15522 if test "x$ac_cv_func_fork_works" = xcross; then
15524 *-*-amigaos* | *-*-msdosdjgpp*)
15525 # Override, as these systems have only a dummy fork() stub
15526 ac_cv_func_fork_works=no
15529 ac_cv_func_fork_works=yes
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15533 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15535 ac_cv_func_vfork_works=$ac_cv_func_vfork
15536 if test "x$ac_cv_func_vfork" = xyes; then
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15538 $as_echo_n "checking for working vfork... " >&6; }
15539 if ${ac_cv_func_vfork_works+:} false; then :
15540 $as_echo_n "(cached) " >&6
15542 if test "$cross_compiling" = yes; then :
15543 ac_cv_func_vfork_works=cross
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 /* Thanks to Paul Eggert for this test. */
15548 $ac_includes_default
15549 #include <sys/wait.h>
15550 #ifdef HAVE_VFORK_H
15551 # include <vfork.h>
15553 /* On some sparc systems, changes by the child to local and incoming
15554 argument registers are propagated back to the parent. The compiler
15555 is told about this with #include <vfork.h>, but some compilers
15556 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15557 static variable whose address is put into a register that is
15558 clobbered by the vfork. */
15561 sparc_address_test (int arg)
15563 sparc_address_test (arg) int arg;
15566 static pid_t child;
15584 pid_t parent = getpid ();
15587 sparc_address_test (0);
15592 /* Here is another test for sparc vfork register problems. This
15593 test uses lots of local variables, at least as many local
15594 variables as main has allocated so far including compiler
15595 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15596 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15597 reuse the register of parent for one of the local variables,
15598 since it will think that parent can't possibly be used any more
15599 in this routine. Assigning to the local variable will thus
15600 munge parent in the parent process. */
15602 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15603 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15604 /* Convince the compiler that p..p7 are live; otherwise, it might
15605 use the same hardware register for all 8 local variables. */
15606 if (p != p1 || p != p2 || p != p3 || p != p4
15607 || p != p5 || p != p6 || p != p7)
15610 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15611 from child file descriptors. If the child closes a descriptor
15612 before it execs or exits, this munges the parent's descriptor
15613 as well. Test for this by closing stdout in the child. */
15614 _exit(close(fileno(stdout)) != 0);
15619 while (wait(&status) != child)
15622 /* Was there some problem with vforking? */
15625 /* Did the child fail? (This shouldn't happen.) */
15628 /* Did the vfork/compiler bug occur? */
15629 || parent != getpid()
15631 /* Did the file descriptor bug occur? */
15632 || fstat(fileno(stdout), &st) != 0
15637 if ac_fn_c_try_run "$LINENO"; then :
15638 ac_cv_func_vfork_works=yes
15640 ac_cv_func_vfork_works=no
15642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15643 conftest.$ac_objext conftest.beam conftest.$ac_ext
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15648 $as_echo "$ac_cv_func_vfork_works" >&6; }
15651 if test "x$ac_cv_func_fork_works" = xcross; then
15652 ac_cv_func_vfork_works=$ac_cv_func_vfork
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15654 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15657 if test "x$ac_cv_func_vfork_works" = xyes; then
15659 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15663 $as_echo "#define vfork fork" >>confdefs.h
15666 if test "x$ac_cv_func_fork_works" = xyes; then
15668 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15673 $as_echo "#define RETSIGTYPE void" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15676 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15677 if ${ac_cv_sys_largefile_source+:} false; then :
15678 $as_echo_n "(cached) " >&6
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <sys/types.h> /* for off_t */
15688 int (*fp) (FILE *, off_t, int) = fseeko;
15689 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15694 if ac_fn_c_try_link "$LINENO"; then :
15695 ac_cv_sys_largefile_source=no; break
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15700 /* end confdefs.h. */
15701 #define _LARGEFILE_SOURCE 1
15702 #include <sys/types.h> /* for off_t */
15707 int (*fp) (FILE *, off_t, int) = fseeko;
15708 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15713 if ac_fn_c_try_link "$LINENO"; then :
15714 ac_cv_sys_largefile_source=1; break
15716 rm -f core conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15718 ac_cv_sys_largefile_source=unknown
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15723 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15724 case $ac_cv_sys_largefile_source in #(
15727 cat >>confdefs.h <<_ACEOF
15728 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15734 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15735 # in glibc 2.1.3, but that breaks too many other things.
15736 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15737 if test $ac_cv_sys_largefile_source != unknown; then
15739 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15744 # Check whether --enable-largefile was given.
15745 if test "${enable_largefile+set}" = set; then :
15746 enableval=$enable_largefile;
15749 if test "$enable_largefile" != no; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15752 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15753 if ${ac_cv_sys_largefile_CC+:} false; then :
15754 $as_echo_n "(cached) " >&6
15756 ac_cv_sys_largefile_CC=no
15757 if test "$GCC" != yes; then
15760 # IRIX 6.2 and later do not support large files by default,
15761 # so use the C compiler's -n32 option if that helps.
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 #include <sys/types.h>
15765 /* Check that off_t can represent 2**63 - 1 correctly.
15766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15767 since some C++ compilers masquerading as C compilers
15768 incorrectly reject 9223372036854775807. */
15769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15771 && LARGE_OFF_T % 2147483647 == 1)
15781 if ac_fn_c_try_compile "$LINENO"; then :
15784 rm -f core conftest.err conftest.$ac_objext
15786 if ac_fn_c_try_compile "$LINENO"; then :
15787 ac_cv_sys_largefile_CC=' -n32'; break
15789 rm -f core conftest.err conftest.$ac_objext
15793 rm -f conftest.$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15797 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15798 if test "$ac_cv_sys_largefile_CC" != no; then
15799 CC=$CC$ac_cv_sys_largefile_CC
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15803 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15804 if ${ac_cv_sys_file_offset_bits+:} false; then :
15805 $as_echo_n "(cached) " >&6
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15810 #include <sys/types.h>
15811 /* Check that off_t can represent 2**63 - 1 correctly.
15812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15813 since some C++ compilers masquerading as C compilers
15814 incorrectly reject 9223372036854775807. */
15815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15817 && LARGE_OFF_T % 2147483647 == 1)
15827 if ac_fn_c_try_compile "$LINENO"; then :
15828 ac_cv_sys_file_offset_bits=no; break
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 #define _FILE_OFFSET_BITS 64
15834 #include <sys/types.h>
15835 /* Check that off_t can represent 2**63 - 1 correctly.
15836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15837 since some C++ compilers masquerading as C compilers
15838 incorrectly reject 9223372036854775807. */
15839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15841 && LARGE_OFF_T % 2147483647 == 1)
15851 if ac_fn_c_try_compile "$LINENO"; then :
15852 ac_cv_sys_file_offset_bits=64; break
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855 ac_cv_sys_file_offset_bits=unknown
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15860 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15861 case $ac_cv_sys_file_offset_bits in #(
15864 cat >>confdefs.h <<_ACEOF
15865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15870 if test $ac_cv_sys_file_offset_bits = unknown; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15872 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15873 if ${ac_cv_sys_large_files+:} false; then :
15874 $as_echo_n "(cached) " >&6
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 #include <sys/types.h>
15880 /* Check that off_t can represent 2**63 - 1 correctly.
15881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15882 since some C++ compilers masquerading as C compilers
15883 incorrectly reject 9223372036854775807. */
15884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15886 && LARGE_OFF_T % 2147483647 == 1)
15896 if ac_fn_c_try_compile "$LINENO"; then :
15897 ac_cv_sys_large_files=no; break
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 #define _LARGE_FILES 1
15903 #include <sys/types.h>
15904 /* Check that off_t can represent 2**63 - 1 correctly.
15905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15906 since some C++ compilers masquerading as C compilers
15907 incorrectly reject 9223372036854775807. */
15908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15910 && LARGE_OFF_T % 2147483647 == 1)
15920 if ac_fn_c_try_compile "$LINENO"; then :
15921 ac_cv_sys_large_files=1; break
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 ac_cv_sys_large_files=unknown
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15929 $as_echo "$ac_cv_sys_large_files" >&6; }
15930 case $ac_cv_sys_large_files in #(
15933 cat >>confdefs.h <<_ACEOF
15934 #define _LARGE_FILES $ac_cv_sys_large_files
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15948 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15949 cache=_D_LARGEFILE_SOURCE_1
15950 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15951 $as_echo_n "(cached) " >&6
15957 int a = fseeko(stdin, 0, 0);
15961 echo 'void f(){}' >>conftest.c
15962 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15963 eval "cv_prog_cc_flag_needed_$cache=no"
15966 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15967 eval "cv_prog_cc_flag_needed_$cache=yes"
15969 eval "cv_prog_cc_flag_needed_$cache=fail"
15970 #echo 'Test with flag fails too!'
15972 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15973 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15978 rm -f conftest conftest.c conftest.o
15982 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15984 $as_echo "yes" >&6; }
15986 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15988 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990 $as_echo "no" >&6; }
15991 #echo 'Test with flag is no!'
15993 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15994 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16000 $as_echo "failed" >&6; }
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
16009 $as_echo_n "checking if nonblocking sockets work... " >&6; }
16010 if echo $host | grep mingw >/dev/null; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
16012 $as_echo "no (windows)" >&6; }
16014 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16017 if test "$cross_compiling" = yes; then :
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
16020 $as_echo "crosscompile(yes)" >&6; }
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16028 #include <string.h>
16029 #include <stdlib.h>
16032 #ifdef HAVE_SYS_TYPES_H
16033 #include <sys/types.h>
16035 #ifdef HAVE_SYS_SELECT_H
16036 #include <sys/select.h>
16038 #ifdef HAVE_SYS_SOCKET_H
16039 #include <sys/socket.h>
16041 #ifdef HAVE_NETINET_IN_H
16042 #include <netinet/in.h>
16044 #ifdef HAVE_ARPA_INET_H
16045 #include <arpa/inet.h>
16047 #ifdef HAVE_UNISTD_H
16048 #include <unistd.h>
16060 struct sockaddr_in a;
16061 /* test if select and nonblocking reads work well together */
16063 fork child to send 10 messages.
16065 then try to nonblocking read the 10 messages
16066 then, nonblocking read must give EAGAIN
16069 port = 12345 + (time(0)%32);
16070 sfd = socket(PF_INET, SOCK_DGRAM, 0);
16075 memset(&a, 0, sizeof(a));
16076 a.sin_family = AF_INET;
16077 a.sin_port = htons(port);
16078 a.sin_addr.s_addr = inet_addr("127.0.0.1");
16079 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16083 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
16088 cfd = socket(PF_INET, SOCK_DGRAM, 0);
16090 perror("client socket");
16094 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
16095 perror("client bind");
16098 a.sin_port = htons(port);
16100 /* no handler, causes exit in 10 seconds */
16103 /* send and receive on the socket */
16104 if((p=fork()) == 0) {
16105 for(i=0; i<num; i++) {
16106 if(sendto(cfd, &i, sizeof(i), 0,
16107 (struct sockaddr*)&a, sizeof(a)) < 0) {
16121 FD_SET(sfd, &rset);
16122 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16128 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16129 if(errno == EAGAIN)
16136 /* now we want to get EAGAIN: nonblocking goodness */
16138 recv(sfd, &x, sizeof(x), 0);
16139 if(errno != EAGAIN) {
16140 perror("trying to recv again");
16143 /* EAGAIN encountered */
16152 if ac_fn_c_try_run "$LINENO"; then :
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16162 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16167 conftest.$ac_objext conftest.beam conftest.$ac_ext
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16174 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16179 #include <unistd.h>
16180 #ifdef HAVE_WINSOCK2_H
16181 #include <winsock2.h>
16183 #ifdef HAVE_SYS_STAT_H
16184 #include <sys/stat.h>
16191 (void)mkdir("directory");
16197 if ac_fn_c_try_compile "$LINENO"; then :
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16199 $as_echo "yes" >&6; }
16201 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 for ac_func in strptime
16213 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16214 if test "x$ac_cv_func_strptime" = xyes; then :
16215 cat >>confdefs.h <<_ACEOF
16216 #define HAVE_STRPTIME 1
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16220 $as_echo_n "checking whether strptime works... " >&6; }
16221 if test c${cross_compiling} = cno; then
16222 if test "$cross_compiling" = yes; then :
16223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16225 as_fn_error $? "cannot run test program while cross compiling
16226 See \`config.log' for more details" "$LINENO" 5; }
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16231 #define _XOPEN_SOURCE 600
16233 int main(void) { struct tm tm; char *res;
16234 res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
16235 if (!res) return 2;
16236 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16237 if (!res) return 1; return 0; }
16240 if ac_fn_c_try_run "$LINENO"; then :
16241 eval "ac_cv_c_strptime_works=yes"
16243 eval "ac_cv_c_strptime_works=no"
16245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16246 conftest.$ac_objext conftest.beam conftest.$ac_ext
16250 eval "ac_cv_c_strptime_works=maybe"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16253 $as_echo "$ac_cv_c_strptime_works" >&6; }
16254 if test $ac_cv_c_strptime_works = no; then
16255 case " $LIBOBJS " in
16256 *" strptime.$ac_objext "* ) ;;
16257 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16263 cat >>confdefs.h <<_ACEOF
16264 #define STRPTIME_WORKS 1
16270 case " $LIBOBJS " in
16271 *" strptime.$ac_objext "* ) ;;
16272 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16280 # check if we can use SO_REUSEPORT
16281 reuseport_default=0
16282 if echo "$host" | $GREP -i -e linux >/dev/null; then reuseport_default=1; fi
16283 if echo "$host" | $GREP -i -e dragonfly >/dev/null; then reuseport_default=1; fi
16284 if test "$reuseport_default" = 1; then
16286 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16290 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16294 # Include systemd.m4 - begin
16295 # macros for configuring systemd
16296 # Copyright 2015, Sami Kerola, CloudFlare.
16298 # Check whether --enable-systemd was given.
16299 if test "${enable_systemd+set}" = set; then :
16300 enableval=$enable_systemd;
16306 if test "x$enable_systemd" != xno; then :
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16312 $as_echo_n "checking for SYSTEMD... " >&6; }
16314 if test -n "$SYSTEMD_CFLAGS"; then
16315 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16316 elif test -n "$PKG_CONFIG"; then
16317 if test -n "$PKG_CONFIG" && \
16318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16319 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16322 test $ac_status = 0; }; then
16323 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16324 test "x$?" != "x0" && pkg_failed=yes
16331 if test -n "$SYSTEMD_LIBS"; then
16332 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16333 elif test -n "$PKG_CONFIG"; then
16334 if test -n "$PKG_CONFIG" && \
16335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16336 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16339 test $ac_status = 0; }; then
16340 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16341 test "x$?" != "x0" && pkg_failed=yes
16351 if test $pkg_failed = yes; then
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16353 $as_echo "no" >&6; }
16355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16356 _pkg_short_errors_supported=yes
16358 _pkg_short_errors_supported=no
16360 if test $_pkg_short_errors_supported = yes; then
16361 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16363 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16365 # Put the nasty error message in config.log where it belongs
16366 echo "$SYSTEMD_PKG_ERRORS" >&5
16369 elif test $pkg_failed = untried; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371 $as_echo "no" >&6; }
16374 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16375 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16377 $as_echo "yes" >&6; }
16380 if test "x$have_systemd" != "xyes"; then :
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16385 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16387 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16388 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16389 elif test -n "$PKG_CONFIG"; then
16390 if test -n "$PKG_CONFIG" && \
16391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16392 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16395 test $ac_status = 0; }; then
16396 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16397 test "x$?" != "x0" && pkg_failed=yes
16404 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16405 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16406 elif test -n "$PKG_CONFIG"; then
16407 if test -n "$PKG_CONFIG" && \
16408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16409 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16412 test $ac_status = 0; }; then
16413 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16414 test "x$?" != "x0" && pkg_failed=yes
16424 if test $pkg_failed = yes; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16428 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16429 _pkg_short_errors_supported=yes
16431 _pkg_short_errors_supported=no
16433 if test $_pkg_short_errors_supported = yes; then
16434 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16436 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16438 # Put the nasty error message in config.log where it belongs
16439 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16441 have_systemd_daemon=no
16442 elif test $pkg_failed = untried; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16445 have_systemd_daemon=no
16447 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16448 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 $as_echo "yes" >&6; }
16451 have_systemd_daemon=yes
16453 if test "x$have_systemd_daemon" = "xyes"; then :
16458 case $enable_systemd:$have_systemd in #(
16460 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16463 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16465 LIBS="$LIBS $SYSTEMD_LIBS"
16474 if test "x$have_systemd" = xyes; then
16476 USE_SYSTEMD_FALSE='#'
16478 USE_SYSTEMD_TRUE='#'
16483 # Include systemd.m4 - end
16485 # set memory allocation checking if requested
16486 # Check whether --enable-alloc-checks was given.
16487 if test "${enable_alloc_checks+set}" = set; then :
16488 enableval=$enable_alloc_checks;
16491 # Check whether --enable-alloc-lite was given.
16492 if test "${enable_alloc_lite+set}" = set; then :
16493 enableval=$enable_alloc_lite;
16496 # Check whether --enable-alloc-nonregional was given.
16497 if test "${enable_alloc_nonregional+set}" = set; then :
16498 enableval=$enable_alloc_nonregional;
16501 if test x_$enable_alloc_nonregional = x_yes; then
16503 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16506 if test x_$enable_alloc_checks = x_yes; then
16508 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16510 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16512 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16515 if test x_$enable_alloc_lite = x_yes; then
16517 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16522 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16523 if test "$cross_compiling" = yes; then :
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16525 $as_echo "no (crosscompile)" >&6; }
16526 case " $LIBOBJS " in
16527 *" malloc.$ac_objext "* ) ;;
16528 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16533 cat >>confdefs.h <<_ACEOF
16534 #define malloc rpl_malloc_unbound
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h. */
16540 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16541 #include <stdlib.h>
16549 if(malloc(0) != 0) return 1;
16555 if ac_fn_c_try_run "$LINENO"; then :
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16557 $as_echo "no" >&6; }
16558 case " $LIBOBJS " in
16559 *" malloc.$ac_objext "* ) ;;
16560 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16565 cat >>confdefs.h <<_ACEOF
16566 #define malloc rpl_malloc_unbound
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16571 $as_echo "yes" >&6; }
16573 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16577 conftest.$ac_objext conftest.beam conftest.$ac_ext
16584 # check windows threads (we use them, not pthreads, on windows).
16585 if test "$on_mingw" = "yes"; then
16586 # check windows threads
16587 for ac_header in windows.h
16589 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16591 if test "x$ac_cv_header_windows_h" = xyes; then :
16592 cat >>confdefs.h <<_ACEOF
16593 #define HAVE_WINDOWS_H 1
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16601 $as_echo_n "checking for CreateThread... " >&6; }
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16605 #ifdef HAVE_WINDOWS_H
16606 #include <windows.h>
16613 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16619 if ac_fn_c_try_compile "$LINENO"; then :
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16621 $as_echo "yes" >&6; }
16623 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 $as_echo "no" >&6; }
16631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 # not on mingw, check thread libraries.
16636 # check for thread library.
16637 # check this first, so that the pthread lib does not get linked in via
16638 # libssl or libpython, and thus distorts the tests, and we end up using
16639 # the non-threadsafe C libraries.
16641 # Check whether --with-pthreads was given.
16642 if test "${with_pthreads+set}" = set; then :
16643 withval=$with_pthreads;
16648 ub_have_pthreads=no
16649 if test x_$withval != x_no; then
16653 ac_cpp='$CPP $CPPFLAGS'
16654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16660 # We used to check for pthread.h first, but this fails if pthread.h
16661 # requires special compiler flags (e.g. on True64 or Sequent).
16662 # It gets checked for in the link test anyway.
16664 # First of all, check if the user has set any of the PTHREAD_LIBS,
16665 # etcetera environment variables, and if threads linking works using
16667 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16668 save_CFLAGS="$CFLAGS"
16669 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16671 LIBS="$PTHREAD_LIBS $LIBS"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16673 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16677 /* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16683 char pthread_join ();
16687 return pthread_join ();
16692 if ac_fn_c_try_link "$LINENO"; then :
16695 rm -f core conftest.err conftest.$ac_objext \
16696 conftest$ac_exeext conftest.$ac_ext
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16698 $as_echo "$ax_pthread_ok" >&6; }
16699 if test x"$ax_pthread_ok" = xno; then
16704 CFLAGS="$save_CFLAGS"
16707 # We must check for the threads library under a number of different
16708 # names; the ordering is very important because some systems
16709 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16710 # libraries is broken (non-POSIX).
16712 # Create a list of thread flags to try. Items starting with a "-" are
16713 # C compiler flags, and other items are library names, except for "none"
16714 # which indicates that we try without any flags at all, and "pthread-config"
16715 # which is a program returning the flags for the Pth emulation library.
16717 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16719 # The ordering *is* (sometimes) important. Some notes on the
16720 # individual items follow:
16722 # pthreads: AIX (must check this before -lpthread)
16723 # none: in case threads are in libc; should be tried before -Kthread and
16724 # other compiler flags to prevent continual compiler warnings
16725 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16726 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16727 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16728 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16729 # -pthreads: Solaris/gcc
16730 # -mthreads: Mingw32/gcc, Lynx/gcc
16731 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16732 # doesn't hurt to check since this sometimes defines pthreads too;
16733 # also defines -D_REENTRANT)
16734 # ... -mt is also the pthreads flag for HP/aCC
16735 # pthread: Linux, etcetera
16736 # --thread-safe: KAI C++
16737 # pthread-config: use pthread-config program (for GNU Pth library)
16742 # On Solaris (at least, for some versions), libc contains stubbed
16743 # (non-functional) versions of the pthreads routines, so link-based
16744 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16745 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16746 # a function called by this macro, so we could check for that, but
16747 # who knows whether they'll stub that too in a future libc.) So,
16748 # we'll just look for -pthreads and -lpthread first:
16750 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16754 ax_pthread_flags="-pthread $ax_pthread_flags"
16758 # Clang doesn't consider unrecognized options an error unless we specify
16759 # -Werror. We throw in some extra Clang-specific options to ensure that
16760 # this doesn't happen for GCC, which also accepts -Werror.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16763 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16764 save_CFLAGS="$CFLAGS"
16765 ax_pthread_extra_flags="-Werror"
16766 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16778 if ac_fn_c_try_compile "$LINENO"; then :
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16780 $as_echo "yes" >&6; }
16782 ax_pthread_extra_flags=
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 CFLAGS="$save_CFLAGS"
16789 if test x"$ax_pthread_ok" = xno; then
16790 for flag in $ax_pthread_flags; do
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16795 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16800 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16801 PTHREAD_CFLAGS="$flag"
16805 # Extract the first word of "pthread-config", so it can be a program name with args.
16806 set dummy pthread-config; ac_word=$2
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16808 $as_echo_n "checking for $ac_word... " >&6; }
16809 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16810 $as_echo_n "(cached) " >&6
16812 if test -n "$ax_pthread_config"; then
16813 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816 for as_dir in $PATH
16819 test -z "$as_dir" && as_dir=.
16820 for ac_exec_ext in '' $ac_executable_extensions; do
16821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16822 ac_cv_prog_ax_pthread_config="yes"
16823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16830 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16833 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16834 if test -n "$ax_pthread_config"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16836 $as_echo "$ax_pthread_config" >&6; }
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16839 $as_echo "no" >&6; }
16843 if test x"$ax_pthread_config" = xno; then continue; fi
16844 PTHREAD_CFLAGS="`pthread-config --cflags`"
16845 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16850 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16851 PTHREAD_LIBS="-l$flag"
16856 save_CFLAGS="$CFLAGS"
16857 LIBS="$PTHREAD_LIBS $LIBS"
16858 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16860 # Check for various functions. We must include pthread.h,
16861 # since some functions may be macros. (On the Sequent, we
16862 # need a special flag -Kthread to make this header compile.)
16863 # We check for pthread_join because it is in -lpthread on IRIX
16864 # while pthread_create is in libc. We check for pthread_attr_init
16865 # due to DEC craziness with -lpthreads. We check for
16866 # pthread_cleanup_push because it is one of the few pthread
16867 # functions on Solaris that doesn't have a non-functional libc stub.
16868 # We try pthread_create on general principles.
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <pthread.h>
16872 static void routine(void *a) { *((int*)a) = 0; }
16873 static void *start_routine(void *a) { return a; }
16877 pthread_t th; pthread_attr_t attr;
16878 pthread_create(&th, 0, start_routine, 0);
16879 pthread_join(th, 0);
16880 pthread_attr_init(&attr);
16881 pthread_cleanup_push(routine, 0);
16882 pthread_cleanup_pop(0) /* ; */
16887 if ac_fn_c_try_link "$LINENO"; then :
16890 rm -f core conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16894 CFLAGS="$save_CFLAGS"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16897 $as_echo "$ax_pthread_ok" >&6; }
16898 if test "x$ax_pthread_ok" = xyes; then
16907 # Various other checks:
16908 if test "x$ax_pthread_ok" = xyes; then
16910 LIBS="$PTHREAD_LIBS $LIBS"
16911 save_CFLAGS="$CFLAGS"
16912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16914 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16916 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16918 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 #include <pthread.h>
16925 int attr = $attr; return attr /* ; */
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 attr_name=$attr; break
16933 rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16937 $as_echo "$attr_name" >&6; }
16938 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define PTHREAD_CREATE_JOINABLE $attr_name
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16947 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16950 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16951 osf* | hpux*) flag="-D_REENTRANT";;
16953 if test "$GCC" = "yes"; then
16954 flag="-D_REENTRANT"
16956 # TODO: What about Clang on Solaris?
16957 flag="-mt -D_REENTRANT"
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16962 $as_echo "$flag" >&6; }
16963 if test "x$flag" != xno; then
16964 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16968 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16969 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16970 $as_echo_n "(cached) " >&6
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #include <pthread.h>
16979 int i = PTHREAD_PRIO_INHERIT;
16984 if ac_fn_c_try_link "$LINENO"; then :
16985 ax_cv_PTHREAD_PRIO_INHERIT=yes
16987 ax_cv_PTHREAD_PRIO_INHERIT=no
16989 rm -f core conftest.err conftest.$ac_objext \
16990 conftest$ac_exeext conftest.$ac_ext
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16994 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16995 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16997 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
17002 CFLAGS="$save_CFLAGS"
17004 # More AIX lossage: compile with *_r variant
17005 if test "x$GCC" != xyes; then
17009 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
17010 #handle absolute path differently from PATH based program lookup
17013 if as_fn_executable_p ${CC}_r; then :
17014 PTHREAD_CC="${CC}_r"
17017 for ac_prog in ${CC}_r
17019 # Extract the first word of "$ac_prog", so it can be a program name with args.
17020 set dummy $ac_prog; ac_word=$2
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022 $as_echo_n "checking for $ac_word... " >&6; }
17023 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17024 $as_echo_n "(cached) " >&6
17026 if test -n "$PTHREAD_CC"; then
17027 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 for as_dir in $PATH
17033 test -z "$as_dir" && as_dir=.
17034 for ac_exec_ext in '' $ac_executable_extensions; do
17035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17036 ac_cv_prog_PTHREAD_CC="$ac_prog"
17037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17046 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17047 if test -n "$PTHREAD_CC"; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17049 $as_echo "$PTHREAD_CC" >&6; }
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17056 test -n "$PTHREAD_CC" && break
17058 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17069 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
17075 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17076 if test x"$ax_pthread_ok" = xyes; then
17079 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17081 if test -n "$PTHREAD_LIBS"; then
17082 LIBS="$PTHREAD_LIBS $LIBS"
17084 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17086 ub_have_pthreads=yes
17087 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
17089 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_PTHREAD_SPINLOCK_T 1
17097 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17099 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17101 cat >>confdefs.h <<_ACEOF
17102 #define HAVE_PTHREAD_RWLOCK_T 1
17108 # The cast to long int works around a bug in the HP C Compiler
17109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17111 # This bug is HP SR number 8606223364.
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
17113 $as_echo_n "checking size of unsigned long... " >&6; }
17114 if ${ac_cv_sizeof_unsigned_long+:} false; then :
17115 $as_echo_n "(cached) " >&6
17117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
17120 if test "$ac_cv_type_unsigned_long" = yes; then
17121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17123 as_fn_error 77 "cannot compute sizeof (unsigned long)
17124 See \`config.log' for more details" "$LINENO" 5; }
17126 ac_cv_sizeof_unsigned_long=0
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
17132 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17136 cat >>confdefs.h <<_ACEOF
17137 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17141 # The cast to long int works around a bug in the HP C Compiler
17142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17144 # This bug is HP SR number 8606223364.
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
17146 $as_echo_n "checking size of pthread_t... " >&6; }
17147 if ${ac_cv_sizeof_pthread_t+:} false; then :
17148 $as_echo_n "(cached) " >&6
17150 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default"; then :
17153 if test "$ac_cv_type_pthread_t" = yes; then
17154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17156 as_fn_error 77 "cannot compute sizeof (pthread_t)
17157 See \`config.log' for more details" "$LINENO" 5; }
17159 ac_cv_sizeof_pthread_t=0
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
17165 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
17169 cat >>confdefs.h <<_ACEOF
17170 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
17175 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17177 $as_echo_n "checking if -pthread unused during linking... " >&6; }
17178 # catch clang warning 'argument unused during compilation'
17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h. */
17181 $ac_includes_default
17183 int main(void) {return 0;}
17186 pthread_unused="yes"
17188 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17189 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17190 if test $? = 0; then
17192 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17193 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17194 if test $? -ne 0; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17196 $as_echo "yes" >&6; }
17197 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17198 PTHREAD_CFLAGS_ONLY="-pthread"
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17207 fi # endif cc successful
17208 rm -f conftest conftest.c conftest.o
17209 fi # endif -pthread in CFLAGS
17218 ac_cpp='$CPP $CPPFLAGS'
17219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17226 # check solaris thread library
17228 # Check whether --with-solaris-threads was given.
17229 if test "${with_solaris_threads+set}" = set; then :
17230 withval=$with_solaris_threads;
17235 ub_have_sol_threads=no
17236 if test x_$withval != x_no; then
17237 if test x_$ub_have_pthreads != x_no; then
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17239 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17242 $as_echo_n "checking for library containing thr_create... " >&6; }
17243 if ${ac_cv_search_thr_create+:} false; then :
17244 $as_echo_n "(cached) " >&6
17246 ac_func_search_save_LIBS=$LIBS
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17256 char thr_create ();
17260 return thr_create ();
17265 for ac_lib in '' thread; do
17266 if test -z "$ac_lib"; then
17267 ac_res="none required"
17270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17272 if ac_fn_c_try_link "$LINENO"; then :
17273 ac_cv_search_thr_create=$ac_res
17275 rm -f core conftest.err conftest.$ac_objext \
17277 if ${ac_cv_search_thr_create+:} false; then :
17281 if ${ac_cv_search_thr_create+:} false; then :
17284 ac_cv_search_thr_create=no
17286 rm conftest.$ac_ext
17287 LIBS=$ac_func_search_save_LIBS
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17290 $as_echo "$ac_cv_search_thr_create" >&6; }
17291 ac_res=$ac_cv_search_thr_create
17292 if test "$ac_res" != no; then :
17293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17296 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17302 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17303 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17304 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17305 $as_echo_n "(cached) " >&6
17308 echo 'void f(void){}' >conftest.c
17309 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17310 eval "cv_prog_cc_flag_$cache=yes"
17312 eval "cv_prog_cc_flag_$cache=no"
17314 rm -f conftest conftest.o conftest.c
17318 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17322 CFLAGS="$CFLAGS -mt"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17327 CFLAGS="$CFLAGS -D_REENTRANT"
17330 ub_have_sol_threads=yes
17334 as_fn_error $? "no solaris threads found." "$LINENO" 5
17341 fi # end of non-mingw check of thread libraries
17343 # Check for SYSLOG_FACILITY
17345 # Check whether --with-syslog-facility was given.
17346 if test "${with_syslog_facility+set}" = set; then :
17347 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17350 case "${UNBOUND_SYSLOG_FACILITY}" in
17352 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17354 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17358 cat >>confdefs.h <<_ACEOF
17359 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17363 # Check for dynamic library module
17365 # Check whether --with-dynlibmodule was given.
17366 if test "${with_dynlibmodule+set}" = set; then :
17367 withval=$with_dynlibmodule;
17373 if test x_$withval != x_no; then
17375 $as_echo "#define WITH_DYNLIBMODULE 1" >>confdefs.h
17377 WITH_DYNLIBMODULE=yes
17379 DYNLIBMOD_OBJ="dynlibmod.lo"
17381 DYNLIBMOD_HEADER='$(srcdir)/dynlibmod/dynlibmod.h'
17383 if test $on_mingw = "no"; then
17384 # link with -ldl if not already there, for all executables because
17385 # dlopen call is in the dynlib module. For unbound executable, also
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17388 $as_echo_n "checking for library containing dlopen... " >&6; }
17389 if ${ac_cv_search_dlopen+:} false; then :
17390 $as_echo_n "(cached) " >&6
17392 ac_func_search_save_LIBS=$LIBS
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17411 for ac_lib in '' dl; do
17412 if test -z "$ac_lib"; then
17413 ac_res="none required"
17416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17418 if ac_fn_c_try_link "$LINENO"; then :
17419 ac_cv_search_dlopen=$ac_res
17421 rm -f core conftest.err conftest.$ac_objext \
17423 if ${ac_cv_search_dlopen+:} false; then :
17427 if ${ac_cv_search_dlopen+:} false; then :
17430 ac_cv_search_dlopen=no
17432 rm conftest.$ac_ext
17433 LIBS=$ac_func_search_save_LIBS
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17436 $as_echo "$ac_cv_search_dlopen" >&6; }
17437 ac_res=$ac_cv_search_dlopen
17438 if test "$ac_res" != no; then :
17439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17443 DYNLIBMOD_EXTRALIBS="-export-dynamic"
17445 DYNLIBMOD_EXTRALIBS="-Wl,--export-all-symbols,--out-implib,libunbound.dll.a"
17450 # Check for PyUnbound
17452 # Check whether --with-pyunbound was given.
17453 if test "${with_pyunbound+set}" = set; then :
17454 withval=$with_pyunbound;
17461 ub_with_pyunbound=no
17462 if test x_$withval != x_no; then
17463 ub_with_pyunbound=yes
17467 # Check for Python module
17469 # Check whether --with-pythonmodule was given.
17470 if test "${with_pythonmodule+set}" = set; then :
17471 withval=$with_pythonmodule;
17477 ub_with_pythonmod=no
17478 if test x_$withval != x_no; then
17479 ub_with_pythonmod=yes
17483 # Check for Python & SWIG only on PyUnbound or PyModule
17484 if test x_$ub_test_python != x_no; then
17488 ac_save_LIBS="$LIBS"
17490 # Allow the use of a (user set) custom python version
17494 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17495 set dummy python$PYTHON_VERSION; ac_word=$2
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17497 $as_echo_n "checking for $ac_word... " >&6; }
17498 if ${ac_cv_path_PYTHON+:} false; then :
17499 $as_echo_n "(cached) " >&6
17503 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507 for as_dir in $PATH
17510 test -z "$as_dir" && as_dir=.
17511 for ac_exec_ext in '' $ac_executable_extensions; do
17512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17513 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17524 PYTHON=$ac_cv_path_PYTHON
17525 if test -n "$PYTHON"; then
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17527 $as_echo "$PYTHON" >&6; }
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17530 $as_echo "no" >&6; }
17534 if test -z "$PYTHON"; then
17535 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17539 if test -z "$PYTHON_VERSION"; then
17540 PYTHON_VERSION=`$PYTHON -c "import sys; \
17541 print(sys.version.split()[0])"`
17544 # Check if you have sysconfig
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the sysconfig Python module" >&5
17546 $as_echo_n "checking for the sysconfig Python module... " >&6; }
17547 if ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1`; then
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17549 $as_echo "yes" >&6; }
17550 sysconfig_module="sysconfig"
17551 # if yes, use sysconfig, because distutils is deprecated.
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555 # if no, try to use distutils
17558 # Check if you have distutils, else fail
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17561 $as_echo_n "checking for the distutils Python package... " >&6; }
17562 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17564 $as_echo "yes" >&6; }
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17568 as_fn_error $? "cannot import Python module \"distutils\".
17569 Please check your Python installation. The error was:
17570 $ac_distutils_result" "$LINENO" 5
17574 sysconfig_module="distutils.sysconfig"
17578 # Check for Python include path
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17581 $as_echo_n "checking for Python include path... " >&6; }
17582 if test -z "$PYTHON_CPPFLAGS"; then
17583 if test "$sysconfig_module" = "sysconfig"; then
17584 python_path=`$PYTHON -c 'import sysconfig; \
17585 print(sysconfig.get_path("include"));'`
17587 python_path=`$PYTHON -c "import distutils.sysconfig; \
17588 print(distutils.sysconfig.get_python_inc());"`
17590 if test -n "${python_path}"; then
17591 python_path="-I$python_path"
17593 PYTHON_CPPFLAGS=$python_path
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17596 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17600 # Check for Python library path
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17603 $as_echo_n "checking for Python library path... " >&6; }
17604 if test -z "$PYTHON_LDFLAGS"; then
17605 PYTHON_LDFLAGS=`$PYTHON -c "from $sysconfig_module import *; \
17606 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17609 $as_echo "$PYTHON_LDFLAGS" >&6; }
17612 if test -z "$PYTHON_LIBDIR"; then
17613 PYTHON_LIBDIR=`$PYTHON -c "from $sysconfig_module import *; \
17614 print(get_config_var('LIBDIR'));"`
17618 # Check for site packages
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17621 $as_echo_n "checking for Python site-packages path... " >&6; }
17622 if test -z "$PYTHON_SITE_PKG"; then
17623 if test "$sysconfig_module" = "sysconfig"; then
17624 PYTHON_SITE_PKG=`$PYTHON -c 'import sysconfig; \
17625 print(sysconfig.get_path("platlib"));'`
17627 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17628 print(distutils.sysconfig.get_python_lib(1,0));"`
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17632 $as_echo "$PYTHON_SITE_PKG" >&6; }
17636 # final check to see if everything compiles alright
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17639 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17641 ac_cpp='$CPP $CPPFLAGS'
17642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17646 # save current global flags
17647 ac_save_LIBS="$LIBS"
17648 ac_save_CPPFLAGS="$CPPFLAGS"
17650 LIBS="$LIBS $PYTHON_LDFLAGS"
17651 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17655 #include <Python.h>
17667 if ac_fn_c_try_link "$LINENO"; then :
17672 rm -f core conftest.err conftest.$ac_objext \
17673 conftest$ac_exeext conftest.$ac_ext
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17676 $as_echo "$pythonexists" >&6; }
17678 if test ! "$pythonexists" = "yes"; then
17680 Could not link test program to Python. Maybe the main Python library has been
17681 installed in some non-standard library path. If so, pass it to configure,
17682 via the LDFLAGS environment variable.
17683 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17684 ============================================================================
17686 You probably have to install the development version of the Python package
17687 for your distribution. The exact name of this package varies among them.
17688 ============================================================================
17693 ac_cpp='$CPP $CPPFLAGS'
17694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17698 # turn back to default flags
17699 CPPFLAGS="$ac_save_CPPFLAGS"
17700 LIBS="$ac_save_LIBS"
17706 if test ! -z "$PYTHON_VERSION"; then
17707 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17708 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17711 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17715 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17717 if test x_$ub_with_pythonmod != x_no; then
17718 if test -n "$LIBS"; then
17719 LIBS="$PYTHON_LDFLAGS $LIBS"
17721 LIBS="$PYTHON_LDFLAGS"
17724 PYTHON_LIBS="$PYTHON_LDFLAGS"
17726 if test -n "$CPPFLAGS"; then
17727 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17729 CPPFLAGS="$PYTHON_CPPFLAGS"
17731 if test "$PYTHON_LIBDIR" != "/usr/lib" -a "$PYTHON_LIBDIR" != "" -a "$PYTHON_LIBDIR" != "/usr/lib64"; then
17733 if test "x$enable_rpath" = xyes; then
17734 if echo "$PYTHON_LIBDIR" | grep "^/" >/dev/null; then
17735 RUNTIME_PATH="$RUNTIME_PATH -R$PYTHON_LIBDIR"
17741 if test -n "$PKG_CONFIG" && \
17742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17743 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17746 test $ac_status = 0; }; then
17747 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17749 PC_PY_DEPENDENCY="python"
17755 # Check whether --enable-swig-version-check was given.
17756 if test "${enable_swig_version_check+set}" = set; then :
17757 enableval=$enable_swig_version_check;
17760 if test "$enable_swig_version_check" = "yes"; then
17762 # Extract the first word of "swig", so it can be a program name with args.
17763 set dummy swig; ac_word=$2
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17765 $as_echo_n "checking for $ac_word... " >&6; }
17766 if ${ac_cv_path_SWIG+:} false; then :
17767 $as_echo_n "(cached) " >&6
17771 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17775 for as_dir in $PATH
17778 test -z "$as_dir" && as_dir=.
17779 for ac_exec_ext in '' $ac_executable_extensions; do
17780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17781 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17792 SWIG=$ac_cv_path_SWIG
17793 if test -n "$SWIG"; then
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17795 $as_echo "$SWIG" >&6; }
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17798 $as_echo "no" >&6; }
17802 if test -z "$SWIG" ; then
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17804 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17805 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17806 elif test -n "2.0.1" ; then
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17808 $as_echo_n "checking for SWIG version... " >&6; }
17809 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17811 $as_echo "$swig_version" >&6; }
17812 if test -n "$swig_version" ; then
17813 # Calculate the required version number components
17815 required_major=`echo $required | sed 's/[^0-9].*//'`
17816 if test -z "$required_major" ; then
17819 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17820 required_minor=`echo $required | sed 's/[^0-9].*//'`
17821 if test -z "$required_minor" ; then
17824 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17825 required_patch=`echo $required | sed 's/[^0-9].*//'`
17826 if test -z "$required_patch" ; then
17829 # Calculate the available version number components
17830 available=$swig_version
17831 available_major=`echo $available | sed 's/[^0-9].*//'`
17832 if test -z "$available_major" ; then
17835 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17836 available_minor=`echo $available | sed 's/[^0-9].*//'`
17837 if test -z "$available_minor" ; then
17840 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17841 available_patch=`echo $available | sed 's/[^0-9].*//'`
17842 if test -z "$available_patch" ; then
17846 if test $available_major -lt $required_major ; then
17849 if test $available_major -eq $required_major \
17850 -a $available_minor -lt $required_minor ; then
17853 if test $available_major -eq $required_major \
17854 -a $available_minor -eq $required_minor \
17855 -a $available_patch -lt $required_patch ; then
17858 if test $badversion -eq 1 ; then
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&5
17860 $as_echo "$as_me: WARNING: SWIG version >= 2.0.1 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17861 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17864 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17865 SWIG_LIB=`$SWIG -swiglib`
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17867 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17871 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17872 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17879 # Extract the first word of "swig", so it can be a program name with args.
17880 set dummy swig; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if ${ac_cv_path_SWIG+:} false; then :
17884 $as_echo_n "(cached) " >&6
17888 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17895 test -z "$as_dir" && as_dir=.
17896 for ac_exec_ext in '' $ac_executable_extensions; do
17897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17898 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17909 SWIG=$ac_cv_path_SWIG
17910 if test -n "$SWIG"; then
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17912 $as_echo "$SWIG" >&6; }
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17919 if test -z "$SWIG" ; then
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17921 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17922 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17923 elif test -n "" ; then
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17925 $as_echo_n "checking for SWIG version... " >&6; }
17926 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17928 $as_echo "$swig_version" >&6; }
17929 if test -n "$swig_version" ; then
17930 # Calculate the required version number components
17932 required_major=`echo $required | sed 's/[^0-9].*//'`
17933 if test -z "$required_major" ; then
17936 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17937 required_minor=`echo $required | sed 's/[^0-9].*//'`
17938 if test -z "$required_minor" ; then
17941 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17942 required_patch=`echo $required | sed 's/[^0-9].*//'`
17943 if test -z "$required_patch" ; then
17946 # Calculate the available version number components
17947 available=$swig_version
17948 available_major=`echo $available | sed 's/[^0-9].*//'`
17949 if test -z "$available_major" ; then
17952 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17953 available_minor=`echo $available | sed 's/[^0-9].*//'`
17954 if test -z "$available_minor" ; then
17957 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17958 available_patch=`echo $available | sed 's/[^0-9].*//'`
17959 if test -z "$available_patch" ; then
17963 if test $available_major -lt $required_major ; then
17966 if test $available_major -eq $required_major \
17967 -a $available_minor -lt $required_minor ; then
17970 if test $available_major -eq $required_major \
17971 -a $available_minor -eq $required_minor \
17972 -a $available_patch -lt $required_patch ; then
17975 if test $badversion -eq 1 ; then
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
17977 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17978 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17981 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17982 SWIG_LIB=`$SWIG -swiglib`
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17984 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17988 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17989 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17996 $as_echo_n "checking SWIG... " >&6; }
17997 if test ! -x "$SWIG"; then
17998 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
18001 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
18006 $as_echo "present" >&6; }
18008 # If have Python & SWIG
18009 # Declare PythonMod
18010 if test x_$ub_with_pythonmod != x_no; then
18012 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
18014 WITH_PYTHONMODULE=yes
18016 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
18018 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
18020 PYTHONMOD_INSTALL=pythonmod-install
18022 PYTHONMOD_UNINSTALL=pythonmod-uninstall
18026 # Declare PyUnbound
18027 if test x_$ub_with_pyunbound != x_no; then
18029 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
18033 PYUNBOUND_OBJ="libunbound_wrap.lo"
18035 PYUNBOUND_TARGET="_unbound.la"
18037 PYUNBOUND_INSTALL=pyunbound-install
18039 PYUNBOUND_UNINSTALL=pyunbound-uninstall
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
18045 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
18046 ub_with_pyunbound=no
18047 ub_with_pythonmod=no
18051 if test "`uname`" = "NetBSD"; then
18052 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
18056 if test "`uname`" = "Linux"; then
18057 # splint cannot parse modern c99 header files
18058 GCC_DOCKER_LINTFLAGS='-syntax'
18061 CONFIG_DATE=`date +%Y%m%d`
18064 # Checks for libraries.
18069 # Check whether --with-nss was given.
18070 if test "${with_nss+set}" = set; then :
18074 $as_echo "#define HAVE_NSS 1" >>confdefs.h
18076 if test "$withval" != "" -a "$withval" != "yes"; then
18077 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
18078 LDFLAGS="$LDFLAGS -L$withval/lib"
18080 if test "x$enable_rpath" = xyes; then
18081 if echo "$withval/lib" | grep "^/" >/dev/null; then
18082 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18086 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
18088 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
18089 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
18091 LIBS="$LIBS -lnss3 -lnspr4"
18093 PC_CRYPTO_DEPENDENCY="nss nspr"
18103 # Check whether --with-nettle was given.
18104 if test "${with_nettle+set}" = set; then :
18105 withval=$with_nettle;
18108 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
18110 for ac_header in nettle/dsa-compat.h
18112 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
18114 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_NETTLE_DSA_COMPAT_H 1
18123 if test "$withval" != "" -a "$withval" != "yes"; then
18124 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
18125 LDFLAGS="$LDFLAGS -L$withval/lib"
18127 if test "x$enable_rpath" = xyes; then
18128 if echo "$withval/lib" | grep "^/" >/dev/null; then
18129 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
18134 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
18136 LIBS="$LIBS -lhogweed -lnettle -lgmp"
18138 PC_CRYPTO_DEPENDENCY="hogweed nettle"
18146 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18149 # Check whether --with-ssl was given.
18150 if test "${with_ssl+set}" = set; then :
18159 if test x_$withval = x_no; then
18160 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
18164 if test x_$withval != x_no; then
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
18166 $as_echo_n "checking for SSL... " >&6; }
18167 if test -n "$withval"; then
18168 if test ! -f "$withval/include/openssl/ssl.h" -a -f "$withval/openssl/ssl.h"; then
18172 ssldir_include="$ssldir"
18173 ssldir_lib=`echo $ssldir | sed -e 's/include/lib/'`
18174 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18177 ssldir_lib=`echo $ssldir | sed -e 's/include/lib64/'`
18178 if test -f "$ssldir_lib/libssl.a" -o -f "$ssldir_lib/libssl.so"; then
18181 as_fn_error $? "Could not find openssl lib file, $ssldir_lib/libssl.so,a, pass like \"/usr/local\" or \"/usr/include/openssl11\"" "$LINENO" 5
18186 if test x_$withval = x_ -o x_$withval = x_yes; then
18187 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
18189 for dir in $withval; do
18191 if test -f "$dir/include/openssl/ssl.h"; then
18193 ssldir_include="$ssldir/include"
18194 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
18195 ssldir_lib="$ssldir/lib64"
18197 ssldir_lib="$ssldir/lib"
18202 if test x_$found_ssl != x_yes; then
18203 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
18206 $as_echo "found in $ssldir" >&6; }
18208 cat >>confdefs.h <<_ACEOF
18209 #define HAVE_SSL /**/
18213 if test "$ssldir" != "/usr"; then
18214 CPPFLAGS="$CPPFLAGS -I$ssldir_include"
18215 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir_include"
18216 LDFLAGS="$LDFLAGS -L$ssldir_lib"
18217 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir_lib"
18219 if test "x$enable_rpath" = xyes; then
18220 if echo "$ssldir_lib" | grep "^/" >/dev/null; then
18221 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir_lib"
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sha256 in -lcrypto" >&5
18228 $as_echo_n "checking for EVP_sha256 in -lcrypto... " >&6; }
18229 LIBS="$LIBS -lcrypto"
18230 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18238 int EVP_sha256(void);
18239 (void)EVP_sha256();
18245 if ac_fn_c_try_link "$LINENO"; then :
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18248 $as_echo "yes" >&6; }
18250 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 $as_echo "no" >&6; }
18257 # check if -lwsock32 or -lgdi32 are needed.
18259 BAKSSLLIBS="$LIBSSL_LIBS"
18260 LIBS="$LIBS -lgdi32 -lws2_32"
18261 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
18263 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18271 int EVP_sha256(void);
18272 (void)EVP_sha256();
18278 if ac_fn_c_try_link "$LINENO"; then :
18281 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18284 $as_echo "yes" >&6; }
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18291 LIBSSL_LIBS="$BAKSSLLIBS"
18293 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
18295 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18303 int EVP_sha256(void);
18304 (void)EVP_sha256();
18310 if ac_fn_c_try_link "$LINENO"; then :
18313 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321 $as_echo "no" >&6; }
18323 LIBSSL_LIBS="$BAKSSLLIBS"
18324 LIBS="$LIBS -ldl -pthread"
18325 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
18327 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18329 /* end confdefs.h. */
18335 int EVP_sha256(void);
18336 (void)EVP_sha256();
18342 if ac_fn_c_try_link "$LINENO"; then :
18345 $as_echo "#define HAVE_EVP_SHA256 1" >>confdefs.h
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18348 $as_echo "yes" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18353 $as_echo "no" >&6; }
18354 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18375 for ac_header in openssl/ssl.h
18377 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18379 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18380 cat >>confdefs.h <<_ACEOF
18381 #define HAVE_OPENSSL_SSL_H 1
18388 for ac_header in openssl/err.h
18390 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18392 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_OPENSSL_ERR_H 1
18401 for ac_header in openssl/rand.h
18403 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18405 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18406 cat >>confdefs.h <<_ACEOF
18407 #define HAVE_OPENSSL_RAND_H 1
18417 # check if libssl needs libdl
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18421 $as_echo_n "checking if libssl needs libdl... " >&6; }
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18431 char SSL_CTX_new ();
18435 return SSL_CTX_new ();
18440 if ac_fn_c_try_link "$LINENO"; then :
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443 $as_echo "no" >&6; }
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18449 $as_echo "yes" >&6; }
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18452 $as_echo_n "checking for library containing dlopen... " >&6; }
18453 if ${ac_cv_search_dlopen+:} false; then :
18454 $as_echo_n "(cached) " >&6
18456 ac_func_search_save_LIBS=$LIBS
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18475 for ac_lib in '' dl; do
18476 if test -z "$ac_lib"; then
18477 ac_res="none required"
18480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 ac_cv_search_dlopen=$ac_res
18485 rm -f core conftest.err conftest.$ac_objext \
18487 if ${ac_cv_search_dlopen+:} false; then :
18491 if ${ac_cv_search_dlopen+:} false; then :
18494 ac_cv_search_dlopen=no
18496 rm conftest.$ac_ext
18497 LIBS=$ac_func_search_save_LIBS
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18500 $as_echo "$ac_cv_search_dlopen" >&6; }
18501 ac_res=$ac_cv_search_dlopen
18502 if test "$ac_res" != no; then :
18503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18509 rm -f core conftest.err conftest.$ac_objext \
18510 conftest$ac_exeext conftest.$ac_ext
18513 PC_CRYPTO_DEPENDENCY=""
18516 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18520 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18528 int EVP_sha256(void);
18529 (void)EVP_sha256();
18535 if ac_fn_c_try_link "$LINENO"; then :
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18544 $as_echo "yes" >&6; }
18546 LIBS="$LIBS -lcrypt32"
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18553 $as_echo_n "checking for LibreSSL... " >&6; }
18554 if grep VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18556 $as_echo "yes" >&6; }
18558 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18560 # libressl provides these compat functions, but they may also be
18561 # declared by the OS in libc. See if they have been declared.
18562 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18563 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_DECL_STRLCPY $ac_have_decl
18572 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18573 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18579 cat >>confdefs.h <<_ACEOF
18580 #define HAVE_DECL_STRLCAT $ac_have_decl
18582 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18583 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18589 cat >>confdefs.h <<_ACEOF
18590 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18592 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18593 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18599 cat >>confdefs.h <<_ACEOF
18600 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18607 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h openssl/core_names.h openssl/param_build.h
18609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18610 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18612 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18613 cat >>confdefs.h <<_ACEOF
18614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18621 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_default_properties_is_fips_enabled EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ENGINE_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback EVP_MAC_CTX_set_params OSSL_PARAM_BLD_new BIO_set_callback_ex
18623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18626 cat >>confdefs.h <<_ACEOF
18627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18634 # these check_funcs need -lssl
18637 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level SSL_set1_host SSL_get0_peername X509_VERIFY_PARAM_set1_host SSL_CTX_set_ciphersuites SSL_CTX_set_tlsext_ticket_key_evp_cb SSL_CTX_set_alpn_select_cb SSL_get0_alpn_selected SSL_CTX_set_alpn_protos SSL_get1_peer_certificate
18639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18642 cat >>confdefs.h <<_ACEOF
18643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18651 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18652 $ac_includes_default
18653 #ifdef HAVE_OPENSSL_ERR_H
18654 #include <openssl/err.h>
18657 #ifdef HAVE_OPENSSL_RAND_H
18658 #include <openssl/rand.h>
18661 #ifdef HAVE_OPENSSL_CONF_H
18662 #include <openssl/conf.h>
18665 #ifdef HAVE_OPENSSL_ENGINE_H
18666 #include <openssl/engine.h>
18668 #include <openssl/ssl.h>
18669 #include <openssl/evp.h>
18672 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18678 cat >>confdefs.h <<_ACEOF
18679 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18681 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18682 $ac_includes_default
18683 #ifdef HAVE_OPENSSL_ERR_H
18684 #include <openssl/err.h>
18687 #ifdef HAVE_OPENSSL_RAND_H
18688 #include <openssl/rand.h>
18691 #ifdef HAVE_OPENSSL_CONF_H
18692 #include <openssl/conf.h>
18695 #ifdef HAVE_OPENSSL_ENGINE_H
18696 #include <openssl/engine.h>
18698 #include <openssl/ssl.h>
18699 #include <openssl/evp.h>
18702 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18711 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18712 $ac_includes_default
18713 #ifdef HAVE_OPENSSL_ERR_H
18714 #include <openssl/err.h>
18717 #ifdef HAVE_OPENSSL_RAND_H
18718 #include <openssl/rand.h>
18721 #ifdef HAVE_OPENSSL_CONF_H
18722 #include <openssl/conf.h>
18725 #ifdef HAVE_OPENSSL_ENGINE_H
18726 #include <openssl/engine.h>
18728 #include <openssl/ssl.h>
18729 #include <openssl/evp.h>
18732 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18738 cat >>confdefs.h <<_ACEOF
18739 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18743 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18744 # check function return type.
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18746 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18750 #ifdef HAVE_OPENSSL_ERR_H
18751 #include <openssl/err.h>
18754 #ifdef HAVE_OPENSSL_RAND_H
18755 #include <openssl/rand.h>
18758 #ifdef HAVE_OPENSSL_CONF_H
18759 #include <openssl/conf.h>
18762 #ifdef HAVE_OPENSSL_ENGINE_H
18763 #include <openssl/engine.h>
18765 #include <openssl/ssl.h>
18766 #include <openssl/evp.h>
18772 HMAC_CTX* hmac_ctx = NULL;
18773 void* hmac_key = NULL;
18774 const EVP_MD* digest = NULL;
18775 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18782 if ac_fn_c_try_compile "$LINENO"; then :
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18785 $as_echo "int" >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18790 $as_echo "void" >&6; }
18792 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18804 # Check whether --with-libbsd was given.
18805 if test "${with_libbsd+set}" = set; then :
18806 withval=$with_libbsd;
18807 for ac_header in bsd/string.h bsd/stdlib.h
18809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18810 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18813 cat >>confdefs.h <<_ACEOF
18814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18821 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18822 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18823 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18825 $as_echo_n "checking for library containing $func... " >&6; }
18826 if eval \${$as_ac_Search+:} false; then :
18827 $as_echo_n "(cached) " >&6
18829 ac_func_search_save_LIBS=$LIBS
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18848 for ac_lib in '' bsd; do
18849 if test -z "$ac_lib"; then
18850 ac_res="none required"
18853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18855 if ac_fn_c_try_link "$LINENO"; then :
18856 eval "$as_ac_Search=\$ac_res"
18858 rm -f core conftest.err conftest.$ac_objext \
18860 if eval \${$as_ac_Search+:} false; then :
18864 if eval \${$as_ac_Search+:} false; then :
18867 eval "$as_ac_Search=no"
18869 rm conftest.$ac_ext
18870 LIBS=$ac_func_search_save_LIBS
18872 eval ac_res=\$$as_ac_Search
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18874 $as_echo "$ac_res" >&6; }
18875 eval ac_res=\$$as_ac_Search
18876 if test "$ac_res" != no; then :
18877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18880 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18882 PC_LIBBSD_DEPENDENCY=libbsd
18893 # Check whether --enable-sha1 was given.
18894 if test "${enable_sha1+set}" = set; then :
18895 enableval=$enable_sha1;
18898 case "$enable_sha1" in
18903 $as_echo "#define USE_SHA1 1" >>confdefs.h
18909 # Check whether --enable-sha2 was given.
18910 if test "${enable_sha2+set}" = set; then :
18911 enableval=$enable_sha2;
18914 case "$enable_sha2" in
18919 $as_echo "#define USE_SHA2 1" >>confdefs.h
18924 # Check whether --enable-subnet was given.
18925 if test "${enable_subnet+set}" = set; then :
18926 enableval=$enable_subnet;
18929 case "$enable_subnet" in
18932 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18934 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18936 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18943 # check whether gost also works
18945 # Check whether --enable-gost was given.
18946 if test "${enable_gost+set}" = set; then :
18947 enableval=$enable_gost;
18951 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18952 case "$enable_gost" in
18956 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18957 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18960 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18963 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18964 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18967 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18972 $as_echo_n "checking if GOST works... " >&6; }
18973 if test c${cross_compiling} = cno; then
18974 BAKCFLAGS="$CFLAGS"
18975 if test -n "$ssldir"; then
18976 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir_lib"
18978 if test "$cross_compiling" = yes; then :
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18981 as_fn_error $? "cannot run test program while cross compiling
18982 See \`config.log' for more details" "$LINENO" 5; }
18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* end confdefs.h. */
18987 #include <string.h>
18988 #include <openssl/ssl.h>
18989 #include <openssl/evp.h>
18990 #include <openssl/engine.h>
18991 #include <openssl/conf.h>
18992 /* routine to load gost (from sldns) */
18993 int load_gost_id(void)
18995 static int gost_id = 0;
18996 const EVP_PKEY_ASN1_METHOD* meth;
18999 if(gost_id) return gost_id;
19001 /* see if configuration loaded gost implementation from other engine*/
19002 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
19004 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19008 /* see if engine can be loaded already */
19009 e = ENGINE_by_id("gost");
19011 /* load it ourself, in case statically linked */
19012 ENGINE_load_builtin_engines();
19013 ENGINE_load_dynamic();
19014 e = ENGINE_by_id("gost");
19017 /* no gost engine in openssl */
19020 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
19026 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
19028 /* algo not found */
19033 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
19039 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
19040 const char* str = "Hello world";
19041 const unsigned char check[] = {
19042 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
19043 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
19044 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
19045 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
19047 OPENSSL_config(NULL);
19048 (void)load_gost_id();
19049 md = EVP_get_digestbyname("md_gost94");
19051 memset(digest, 0, sizeof(digest));
19052 ctx = EVP_MD_CTX_create();
19054 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
19055 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
19056 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
19057 /* uncomment to see the hash calculated.
19059 for(i=0; i<32; i++)
19060 printf(" %2.2x", (int)digest[i]);
19063 if(memcmp(digest, check, sizeof(check)) != 0)
19069 if ac_fn_c_try_run "$LINENO"; then :
19070 eval "ac_cv_c_gost_works=yes"
19072 eval "ac_cv_c_gost_works=no"
19074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19075 conftest.$ac_objext conftest.beam conftest.$ac_ext
19078 CFLAGS="$BAKCFLAGS"
19080 eval "ac_cv_c_gost_works=maybe"
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
19083 $as_echo "$ac_cv_c_gost_works" >&6; }
19085 if test "$ac_cv_c_gost_works" != no; then
19088 $as_echo "#define USE_GOST 1" >>confdefs.h
19094 # Check whether --enable-ecdsa was given.
19095 if test "${enable_ecdsa+set}" = set; then :
19096 enableval=$enable_ecdsa;
19100 case "$enable_ecdsa" in
19104 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19105 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
19106 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
19109 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19112 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
19113 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
19116 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19119 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
19120 #include <openssl/evp.h>
19123 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
19129 cat >>confdefs.h <<_ACEOF
19130 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
19132 if test $ac_have_decl = 1; then :
19135 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19137 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
19138 #include <openssl/evp.h>
19141 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
19147 cat >>confdefs.h <<_ACEOF
19148 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
19150 if test $ac_have_decl = 1; then :
19153 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
19156 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
19158 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
19159 if grep OPENSSL_VERSION_TEXT $ssldir_include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
19160 if grep OPENSSL_VERSION_NUMBER $ssldir_include/openssl/opensslv.h | grep 0x0 >/dev/null; then
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162 $as_echo "no" >&6; }
19164 cat >>confdefs.h <<_ACEOF
19165 #define USE_ECDSA_EVP_WORKAROUND 1
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19170 $as_echo "yes" >&6; }
19173 # not OpenSSL, thus likely LibreSSL, which supports it
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19175 $as_echo "yes" >&6; }
19178 # we now know we have ECDSA and the required curves.
19180 cat >>confdefs.h <<_ACEOF
19181 #define USE_ECDSA 1
19188 # Check whether --enable-dsa was given.
19189 if test "${enable_dsa+set}" = set; then :
19190 enableval=$enable_dsa;
19194 case "$enable_dsa" in
19196 # detect if DSA is supported, and turn it off if not.
19197 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19198 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
19199 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
19201 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
19202 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
19203 $ac_includes_default
19204 #ifdef HAVE_OPENSSL_ERR_H
19205 #include <openssl/err.h>
19208 #ifdef HAVE_OPENSSL_RAND_H
19209 #include <openssl/rand.h>
19212 #ifdef HAVE_OPENSSL_CONF_H
19213 #include <openssl/conf.h>
19216 #ifdef HAVE_OPENSSL_ENGINE_H
19217 #include <openssl/engine.h>
19221 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
19224 cat >>confdefs.h <<_ACEOF
19230 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19236 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
19242 cat >>confdefs.h <<_ACEOF
19249 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
19250 # support DSA for DNSSEC Validation.
19255 # Check whether --with-deprecate-rsa-1024 was given.
19256 if test "${with_deprecate_rsa_1024+set}" = set; then :
19257 withval=$with_deprecate_rsa_1024;
19260 if test "$with_deprecate_rsa_1024" = "yes"; then
19262 $as_echo "#define DEPRECATE_RSA_1024 1" >>confdefs.h
19266 # Check whether --enable-ed25519 was given.
19267 if test "${enable_ed25519+set}" = set; then :
19268 enableval=$enable_ed25519;
19272 case "$enable_ed25519" in
19276 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19277 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
19278 #include <openssl/evp.h>
19281 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
19287 cat >>confdefs.h <<_ACEOF
19288 #define HAVE_DECL_NID_ED25519 $ac_have_decl
19290 if test $ac_have_decl = 1; then :
19295 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
19300 if test $USE_NETTLE = "yes"; then
19301 for ac_header in nettle/eddsa.h
19303 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
19305 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
19306 cat >>confdefs.h <<_ACEOF
19307 #define HAVE_NETTLE_EDDSA_H 1
19315 if test $use_ed25519 = "yes"; then
19317 cat >>confdefs.h <<_ACEOF
19318 #define USE_ED25519 1
19325 # Check whether --enable-ed448 was given.
19326 if test "${enable_ed448+set}" = set; then :
19327 enableval=$enable_ed448;
19331 case "$enable_ed448" in
19335 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
19336 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
19337 #include <openssl/evp.h>
19340 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
19346 cat >>confdefs.h <<_ACEOF
19347 #define HAVE_DECL_NID_ED448 $ac_have_decl
19349 if test $ac_have_decl = 1; then :
19354 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19359 if test $use_ed448 = "yes"; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define USE_ED448 1
19369 # Check whether --enable-event-api was given.
19370 if test "${enable_event_api+set}" = set; then :
19371 enableval=$enable_event_api;
19374 case "$enable_event_api" in
19376 UNBOUND_EVENT_INSTALL=unbound-event-install
19378 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19385 # Check whether --enable-tfo-client was given.
19386 if test "${enable_tfo_client+set}" = set; then :
19387 enableval=$enable_tfo_client;
19390 case "$enable_tfo_client" in
19393 linux*) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19394 #include <netinet/tcp.h>
19397 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19399 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19401 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19405 cat >>confdefs.h <<_ACEOF
19406 #define USE_MSG_FASTOPEN 1
19410 darwin*) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19411 #include <sys/socket.h>
19414 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19416 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19418 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19422 cat >>confdefs.h <<_ACEOF
19423 #define USE_OSX_MSG_FASTOPEN 1
19433 # Check whether --enable-tfo-server was given.
19434 if test "${enable_tfo_server+set}" = set; then :
19435 enableval=$enable_tfo_server;
19438 case "$enable_tfo_server" in
19440 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19441 #include <netinet/tcp.h>
19444 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19446 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19448 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19452 cat >>confdefs.h <<_ACEOF
19453 #define USE_TCP_FASTOPEN 1
19461 # check for libevent
19463 # Check whether --with-libevent was given.
19464 if test "${with_libevent+set}" = set; then :
19465 withval=$with_libevent;
19470 if test "x_$with_libevent" != x_no; then
19472 $as_echo "#define USE_LIBEVENT 1" >>confdefs.h
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19475 $as_echo_n "checking for libevent... " >&6; }
19476 if test "x_$with_libevent" = x_ -o "x_$with_libevent" = x_yes; then
19477 with_libevent="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19479 for dir in $with_libevent; do
19481 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19482 found_libevent="yes"
19483 if test "$thedir" != "/usr"; then
19484 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19489 if test x_$found_libevent != x_yes; then
19490 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19491 # libevent source directory
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19493 $as_echo "found in $thedir" >&6; }
19494 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19495 BAK_LDFLAGS_SET="1"
19496 BAK_LDFLAGS="$LDFLAGS"
19497 # remove evdns from linking
19498 mkdir build >/dev/null 2>&1
19499 mkdir build/libevent >/dev/null 2>&1
19500 mkdir build/libevent/.libs >/dev/null 2>&1
19501 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19502 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19503 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19504 cp $ev_files_o build/libevent
19505 cp $ev_files_lo build/libevent
19506 cp $ev_files_libso build/libevent/.libs
19507 LATE_LDFLAGS="build/libevent/*.lo -lm"
19508 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19510 as_fn_error $? "Cannot find the libevent library in $with_libevent
19511 You can restart ./configure --with-libevent=no to use a builtin alternative.
19512 Please note that this alternative is not as capable as libevent when using
19513 large outgoing port ranges. " "$LINENO" 5
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19517 $as_echo "found in $thedir" >&6; }
19518 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19519 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19521 if test "x$enable_rpath" = xyes; then
19522 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19523 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19528 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19529 LDFLAGS="$LDFLAGS -L$thedir/lib"
19531 if test "x$enable_rpath" = xyes; then
19532 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19533 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19540 # check for library used by libevent after 1.3c
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19542 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19543 if ${ac_cv_search_clock_gettime+:} false; then :
19544 $as_echo_n "(cached) " >&6
19546 ac_func_search_save_LIBS=$LIBS
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19556 char clock_gettime ();
19560 return clock_gettime ();
19565 for ac_lib in '' rt; do
19566 if test -z "$ac_lib"; then
19567 ac_res="none required"
19570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19572 if ac_fn_c_try_link "$LINENO"; then :
19573 ac_cv_search_clock_gettime=$ac_res
19575 rm -f core conftest.err conftest.$ac_objext \
19577 if ${ac_cv_search_clock_gettime+:} false; then :
19581 if ${ac_cv_search_clock_gettime+:} false; then :
19584 ac_cv_search_clock_gettime=no
19586 rm conftest.$ac_ext
19587 LIBS=$ac_func_search_save_LIBS
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19590 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19591 ac_res=$ac_cv_search_clock_gettime
19592 if test "$ac_res" != no; then :
19593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19598 # is the event.h header libev or libevent?
19599 for ac_header in event.h
19601 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19603 if test "x$ac_cv_header_event_h" = xyes; then :
19604 cat >>confdefs.h <<_ACEOF
19605 #define HAVE_EVENT_H 1
19612 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19616 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19619 $as_echo_n "checking for library containing event_set... " >&6; }
19620 if ${ac_cv_search_event_set+:} false; then :
19621 $as_echo_n "(cached) " >&6
19623 ac_func_search_save_LIBS=$LIBS
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19637 return event_set ();
19642 for ac_lib in '' ev; do
19643 if test -z "$ac_lib"; then
19644 ac_res="none required"
19647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19649 if ac_fn_c_try_link "$LINENO"; then :
19650 ac_cv_search_event_set=$ac_res
19652 rm -f core conftest.err conftest.$ac_objext \
19654 if ${ac_cv_search_event_set+:} false; then :
19658 if ${ac_cv_search_event_set+:} false; then :
19661 ac_cv_search_event_set=no
19663 rm conftest.$ac_ext
19664 LIBS=$ac_func_search_save_LIBS
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19667 $as_echo "$ac_cv_search_event_set" >&6; }
19668 ac_res=$ac_cv_search_event_set
19669 if test "$ac_res" != no; then :
19670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19678 $as_echo_n "checking for library containing event_set... " >&6; }
19679 if ${ac_cv_search_event_set+:} false; then :
19680 $as_echo_n "(cached) " >&6
19682 ac_func_search_save_LIBS=$LIBS
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19686 /* Override any GCC internal prototype to avoid an error.
19687 Use char because int might match the return type of a GCC
19688 builtin and then its argument prototype would still apply. */
19696 return event_set ();
19701 for ac_lib in '' event; do
19702 if test -z "$ac_lib"; then
19703 ac_res="none required"
19706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19708 if ac_fn_c_try_link "$LINENO"; then :
19709 ac_cv_search_event_set=$ac_res
19711 rm -f core conftest.err conftest.$ac_objext \
19713 if ${ac_cv_search_event_set+:} false; then :
19717 if ${ac_cv_search_event_set+:} false; then :
19720 ac_cv_search_event_set=no
19722 rm conftest.$ac_ext
19723 LIBS=$ac_func_search_save_LIBS
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19726 $as_echo "$ac_cv_search_event_set" >&6; }
19727 ac_res=$ac_cv_search_event_set
19728 if test "$ac_res" != no; then :
19729 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19736 for ac_func in event_base_free
19738 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19739 if test "x$ac_cv_func_event_base_free" = xyes; then :
19740 cat >>confdefs.h <<_ACEOF
19741 #define HAVE_EVENT_BASE_FREE 1
19746 # only in libevent 1.2 and later
19747 for ac_func in event_base_once
19749 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19750 if test "x$ac_cv_func_event_base_once" = xyes; then :
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_EVENT_BASE_ONCE 1
19757 # only in libevent 1.4.1 and later
19758 for ac_func in event_base_new
19760 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19761 if test "x$ac_cv_func_event_base_new" = xyes; then :
19762 cat >>confdefs.h <<_ACEOF
19763 #define HAVE_EVENT_BASE_NEW 1
19768 # only in libevent 1.4.1 and later
19769 for ac_func in event_base_get_method
19771 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19772 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19773 cat >>confdefs.h <<_ACEOF
19774 #define HAVE_EVENT_BASE_GET_METHOD 1
19779 # only in libevent 1.4.3 and later
19780 for ac_func in ev_loop
19782 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19783 if test "x$ac_cv_func_ev_loop" = xyes; then :
19784 cat >>confdefs.h <<_ACEOF
19785 #define HAVE_EV_LOOP 1
19790 # only in libev. (tested on 3.51)
19791 for ac_func in ev_default_loop
19793 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19794 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19795 cat >>confdefs.h <<_ACEOF
19796 #define HAVE_EV_DEFAULT_LOOP 1
19801 # only in libev. (tested on 4.00)
19802 for ac_func in event_assign
19804 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19805 if test "x$ac_cv_func_event_assign" = xyes; then :
19806 cat >>confdefs.h <<_ACEOF
19807 #define HAVE_EVENT_ASSIGN 1
19812 # in libevent, for thread-safety
19813 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19814 #ifdef HAVE_EVENT_H
19815 # include <event.h>
19817 # include \"event2/event.h\"
19821 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19831 PC_LIBEVENT_DEPENDENCY="libevent"
19833 if test -n "$BAK_LDFLAGS_SET"; then
19834 LDFLAGS="$BAK_LDFLAGS"
19838 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19842 # check for libexpat
19844 # Check whether --with-libexpat was given.
19845 if test "${with_libexpat+set}" = set; then :
19846 withval=$with_libexpat;
19848 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19852 $as_echo_n "checking for libexpat... " >&6; }
19853 found_libexpat="no"
19854 for dir in $withval ; do
19855 if test -f "$dir/include/expat.h"; then
19856 found_libexpat="yes"
19857 if test "$dir" != "/usr"; then
19858 CPPFLAGS="$CPPFLAGS -I$dir/include"
19859 LDFLAGS="$LDFLAGS -L$dir/lib"
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19862 $as_echo "found in $dir" >&6; }
19866 if test x_$found_libexpat != x_yes; then
19867 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19869 for ac_header in expat.h
19871 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19873 if test "x$ac_cv_header_expat_h" = xyes; then :
19874 cat >>confdefs.h <<_ACEOF
19875 #define HAVE_EXPAT_H 1
19882 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19886 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19892 cat >>confdefs.h <<_ACEOF
19893 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19897 # hiredis (redis C client for cachedb)
19899 # Check whether --with-libhiredis was given.
19900 if test "${with_libhiredis+set}" = set; then :
19901 withval=$with_libhiredis;
19906 found_libhiredis="no"
19907 if test x_$withval = x_yes -o x_$withval != x_no; then
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19909 $as_echo_n "checking for libhiredis... " >&6; }
19910 if test x_$withval = x_ -o x_$withval = x_yes; then
19911 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19913 for dir in $withval ; do
19914 if test -f "$dir/include/hiredis/hiredis.h"; then
19915 found_libhiredis="yes"
19916 if test "$dir" != "/usr"; then
19917 CPPFLAGS="$CPPFLAGS -I$dir/include"
19918 LDFLAGS="$LDFLAGS -L$dir/lib"
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19921 $as_echo "found in $dir" >&6; }
19923 $as_echo "#define USE_REDIS 1" >>confdefs.h
19925 LIBS="$LIBS -lhiredis"
19929 if test x_$found_libhiredis != x_yes; then
19930 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19932 for ac_header in hiredis/hiredis.h
19934 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19936 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19937 cat >>confdefs.h <<_ACEOF
19938 #define HAVE_HIREDIS_HIREDIS_H 1
19945 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19946 #include <hiredis/hiredis.h>
19949 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19963 # Check whether --with-libnghttp2 was given.
19964 if test "${with_libnghttp2+set}" = set; then :
19965 withval=$with_libnghttp2;
19970 found_libnghttp2="no"
19971 if test x_$withval = x_yes -o x_$withval != x_no; then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2" >&5
19973 $as_echo_n "checking for libnghttp2... " >&6; }
19974 if test x_$withval = x_ -o x_$withval = x_yes; then
19975 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19977 for dir in $withval ; do
19978 if test -f "$dir/include/nghttp2/nghttp2.h"; then
19979 found_libnghttp2="yes"
19980 if test "$dir" != "/usr"; then
19981 CPPFLAGS="$CPPFLAGS -I$dir/include"
19982 LDFLAGS="$LDFLAGS -L$dir/lib"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19985 $as_echo "found in $dir" >&6; }
19987 $as_echo "#define HAVE_NGHTTP2 1" >>confdefs.h
19989 LIBS="$LIBS -lnghttp2"
19993 if test x_$found_libnghttp2 != x_yes; then
19994 as_fn_error $? "Could not find libnghttp2, nghttp2.h" "$LINENO" 5
19996 for ac_header in nghttp2/nghttp2.h
19998 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default
20000 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_NGHTTP2_NGHTTP2_H 1
20009 ac_fn_c_check_decl "$LINENO" "nghttp2_session_server_new" "ac_cv_have_decl_nghttp2_session_server_new" "$ac_includes_default
20010 #include <nghttp2/nghttp2.h>
20013 if test "x$ac_cv_have_decl_nghttp2_session_server_new" = xyes; then :
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_DECL_NGHTTP2_SESSION_SERVER_NEW $ac_have_decl
20025 # set static linking for uninstalled libraries if requested
20028 # Check whether --enable-static-exe was given.
20029 if test "${enable_static_exe+set}" = set; then :
20030 enableval=$enable_static_exe;
20033 if test x_$enable_static_exe = x_yes; then
20034 staticexe="-static"
20035 if test "$on_mingw" = yes; then
20036 staticexe="-all-static"
20037 # for static compile, include gdi32 and zlib here.
20038 if echo $LIBS | grep 'lgdi32' >/dev/null; then
20041 LIBS="$LIBS -lgdi32"
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20044 $as_echo_n "checking for compress in -lz... " >&6; }
20045 if ${ac_cv_lib_z_compress+:} false; then :
20046 $as_echo_n "(cached) " >&6
20048 ac_check_lib_save_LIBS=$LIBS
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 /* Override any GCC internal prototype to avoid an error.
20054 Use char because int might match the return type of a GCC
20055 builtin and then its argument prototype would still apply. */
20063 return compress ();
20068 if ac_fn_c_try_link "$LINENO"; then :
20069 ac_cv_lib_z_compress=yes
20071 ac_cv_lib_z_compress=no
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20075 LIBS=$ac_check_lib_save_LIBS
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20078 $as_echo "$ac_cv_lib_z_compress" >&6; }
20079 if test "x$ac_cv_lib_z_compress" = xyes; then :
20083 LIBS="$LIBS -l:libssp.a"
20087 # set full static linking if requested
20088 # Check whether --enable-fully-static was given.
20089 if test "${enable_fully_static+set}" = set; then :
20090 enableval=$enable_fully_static;
20093 if test x_$enable_fully_static = x_yes; then
20094 staticexe="-all-static"
20095 if test "$on_mingw" = yes; then
20096 # for static compile, include gdi32 and zlib here.
20097 if echo $LIBS | grep 'lgdi32' >/dev/null; then
20100 LIBS="$LIBS -lgdi32"
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
20103 $as_echo_n "checking for compress in -lz... " >&6; }
20104 if ${ac_cv_lib_z_compress+:} false; then :
20105 $as_echo_n "(cached) " >&6
20107 ac_check_lib_save_LIBS=$LIBS
20109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20122 return compress ();
20127 if ac_fn_c_try_link "$LINENO"; then :
20128 ac_cv_lib_z_compress=yes
20130 ac_cv_lib_z_compress=no
20132 rm -f core conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20134 LIBS=$ac_check_lib_save_LIBS
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
20137 $as_echo "$ac_cv_lib_z_compress" >&6; }
20138 if test "x$ac_cv_lib_z_compress" = xyes; then :
20142 LIBS="$LIBS -l:libssp.a"
20146 # set lock checking if requested
20147 # Check whether --enable-lock_checks was given.
20148 if test "${enable_lock_checks+set}" = set; then :
20149 enableval=$enable_lock_checks;
20152 if test x_$enable_lock_checks = x_yes; then
20154 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
20156 CHECKLOCK_OBJ="checklocks.lo"
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
20162 $as_echo_n "checking for getaddrinfo... " >&6; }
20163 ac_cv_func_getaddrinfo=no
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20171 char* getaddrinfo();
20172 char* (*f) () = getaddrinfo;
20182 if ac_fn_c_try_link "$LINENO"; then :
20183 ac_cv_func_getaddrinfo="yes"
20184 if test "$ac_cv_header_windows_h" = "yes"; then
20186 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20189 if echo $LIBS | grep 'lws2_32' >/dev/null; then
20192 LIBS="$LIBS -lws2_32"
20198 LIBS="$LIBS -lws2_32"
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h. */
20202 #ifdef HAVE_WS2TCPIP_H
20203 #include <ws2tcpip.h>
20210 (void)getaddrinfo(NULL, NULL, NULL, NULL);
20217 if ac_fn_c_try_link "$LINENO"; then :
20219 ac_cv_func_getaddrinfo="yes"
20221 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
20227 ac_cv_func_getaddrinfo="no"
20231 rm -f core conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
20239 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
20240 if test $ac_cv_func_getaddrinfo = yes; then
20242 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
20246 if test "$USE_WINSOCK" = 1; then
20248 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
20250 for ac_header in iphlpapi.h
20252 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
20253 #include <windows.h>
20256 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
20257 cat >>confdefs.h <<_ACEOF
20258 #define HAVE_IPHLPAPI_H 1
20265 if test -n "$ac_tool_prefix"; then
20266 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20267 set dummy ${ac_tool_prefix}windres; ac_word=$2
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20269 $as_echo_n "checking for $ac_word... " >&6; }
20270 if ${ac_cv_prog_WINDRES+:} false; then :
20271 $as_echo_n "(cached) " >&6
20273 if test -n "$WINDRES"; then
20274 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20277 for as_dir in $PATH
20280 test -z "$as_dir" && as_dir=.
20281 for ac_exec_ext in '' $ac_executable_extensions; do
20282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20283 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20293 WINDRES=$ac_cv_prog_WINDRES
20294 if test -n "$WINDRES"; then
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
20296 $as_echo "$WINDRES" >&6; }
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20299 $as_echo "no" >&6; }
20304 if test -z "$ac_cv_prog_WINDRES"; then
20305 ac_ct_WINDRES=$WINDRES
20306 # Extract the first word of "windres", so it can be a program name with args.
20307 set dummy windres; ac_word=$2
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20309 $as_echo_n "checking for $ac_word... " >&6; }
20310 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
20311 $as_echo_n "(cached) " >&6
20313 if test -n "$ac_ct_WINDRES"; then
20314 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20317 for as_dir in $PATH
20320 test -z "$as_dir" && as_dir=.
20321 for ac_exec_ext in '' $ac_executable_extensions; do
20322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20323 ac_cv_prog_ac_ct_WINDRES="windres"
20324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20333 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20334 if test -n "$ac_ct_WINDRES"; then
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
20336 $as_echo "$ac_ct_WINDRES" >&6; }
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20339 $as_echo "no" >&6; }
20342 if test "x$ac_ct_WINDRES" = x; then
20345 case $cross_compiling:$ac_tool_warned in
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20349 ac_tool_warned=yes ;;
20351 WINDRES=$ac_ct_WINDRES
20354 WINDRES="$ac_cv_prog_WINDRES"
20357 LIBS="$LIBS -liphlpapi -lcrypt32"
20358 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
20360 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
20362 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
20364 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
20366 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
20368 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
20370 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
20372 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
20375 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
20378 if test $ac_cv_func_getaddrinfo = no; then
20379 case " $LIBOBJS " in
20380 *" fake-rfc2553.$ac_objext "* ) ;;
20381 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
20386 # check after getaddrinfo for its libraries
20388 # check ioctlsocket
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
20390 $as_echo_n "checking for ioctlsocket... " >&6; }
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20394 #ifdef HAVE_WINSOCK2_H
20395 #include <winsock2.h>
20402 (void)ioctlsocket(0, 0, NULL);
20408 if ac_fn_c_try_link "$LINENO"; then :
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20411 $as_echo "yes" >&6; }
20413 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20418 $as_echo "no" >&6; }
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20424 # see if daemon(3) exists, and if it is deprecated.
20425 for ac_func in daemon
20427 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
20428 if test "x$ac_cv_func_daemon" = xyes; then :
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_DAEMON 1
20436 if test $ac_cv_func_daemon = yes; then
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
20440 $as_echo_n "checking if daemon is deprecated... " >&6; }
20441 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
20442 if eval \${cv_cc_deprecated_$cache+:} false; then :
20443 $as_echo_n "(cached) " >&6
20447 #include <stdlib.h>
20448 #include <unistd.h>
20450 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
20451 if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then
20452 eval "cv_cc_deprecated_$cache=no"
20454 eval "cv_cc_deprecated_$cache=yes"
20456 rm -f conftest conftest.o conftest.c
20460 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20462 $as_echo "yes" >&6; }
20464 cat >>confdefs.h <<_ACEOF
20465 #define DEPRECATED_DAEMON 1
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472 $as_echo "no" >&6; }
20479 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
20480 $ac_includes_default
20481 #ifdef HAVE_SYS_UN_H
20482 #include <sys/un.h>
20486 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
20488 cat >>confdefs.h <<_ACEOF
20489 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
20495 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
20496 $ac_includes_default
20497 #if HAVE_SYS_PARAM_H
20498 #include <sys/param.h>
20501 #ifdef HAVE_SYS_SOCKET_H
20502 #include <sys/socket.h>
20505 #ifdef HAVE_SYS_UIO_H
20506 #include <sys/uio.h>
20509 #ifdef HAVE_NETINET_IN_H
20510 #include <netinet/in.h>
20513 #ifdef HAVE_NETINET_TCP_H
20514 #include <netinet/tcp.h>
20517 #ifdef HAVE_ARPA_INET_H
20518 #include <arpa/inet.h>
20521 #ifdef HAVE_WINSOCK2_H
20522 #include <winsock2.h>
20525 #ifdef HAVE_WS2TCPIP_H
20526 #include <ws2tcpip.h>
20530 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20541 $as_echo_n "checking for htobe64... " >&6; }
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20546 #ifdef HAVE_ENDIAN_H
20547 # include <endian.h>
20549 #ifdef HAVE_SYS_ENDIAN_H
20550 # include <sys/endian.h>
20556 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20561 if ac_fn_c_try_link "$LINENO"; then :
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20563 $as_echo "yes" >&6; }
20565 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20569 $as_echo "no" >&6; }
20571 rm -f core conftest.err conftest.$ac_objext \
20572 conftest$ac_exeext conftest.$ac_ext
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20575 $as_echo_n "checking for be64toh... " >&6; }
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20580 #ifdef HAVE_ENDIAN_H
20581 # include <endian.h>
20583 #ifdef HAVE_SYS_ENDIAN_H
20584 # include <sys/endian.h>
20590 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20595 if ac_fn_c_try_link "$LINENO"; then :
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20597 $as_echo "yes" >&6; }
20599 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603 $as_echo "no" >&6; }
20605 rm -f core conftest.err conftest.$ac_objext \
20606 conftest$ac_exeext conftest.$ac_ext
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20609 $as_echo_n "checking for library containing setusercontext... " >&6; }
20610 if ${ac_cv_search_setusercontext+:} false; then :
20611 $as_echo_n "(cached) " >&6
20613 ac_func_search_save_LIBS=$LIBS
20614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615 /* end confdefs.h. */
20617 /* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
20623 char setusercontext ();
20627 return setusercontext ();
20632 for ac_lib in '' util; do
20633 if test -z "$ac_lib"; then
20634 ac_res="none required"
20637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20639 if ac_fn_c_try_link "$LINENO"; then :
20640 ac_cv_search_setusercontext=$ac_res
20642 rm -f core conftest.err conftest.$ac_objext \
20644 if ${ac_cv_search_setusercontext+:} false; then :
20648 if ${ac_cv_search_setusercontext+:} false; then :
20651 ac_cv_search_setusercontext=no
20653 rm conftest.$ac_ext
20654 LIBS=$ac_func_search_save_LIBS
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20657 $as_echo "$ac_cv_search_setusercontext" >&6; }
20658 ac_res=$ac_cv_search_setusercontext
20659 if test "$ac_res" != no; then :
20660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20664 for ac_func in tzset sigprocmask fcntl getpwnam endpwent getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync shmget accept4 getifaddrs if_nametoindex poll gettid
20666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20669 cat >>confdefs.h <<_ACEOF
20670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20676 for ac_func in setresuid
20678 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20679 if test "x$ac_cv_func_setresuid" = xyes; then :
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_SETRESUID 1
20685 for ac_func in setreuid
20687 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20688 if test "x$ac_cv_func_setreuid" = xyes; then :
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_SETREUID 1
20699 for ac_func in setresgid
20701 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20702 if test "x$ac_cv_func_setresgid" = xyes; then :
20703 cat >>confdefs.h <<_ACEOF
20704 #define HAVE_SETRESGID 1
20708 for ac_func in setregid
20710 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20711 if test "x$ac_cv_func_setregid" = xyes; then :
20712 cat >>confdefs.h <<_ACEOF
20713 #define HAVE_SETREGID 1
20723 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20724 if echo $host_os | grep darwin8 > /dev/null; then
20726 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20729 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20730 $ac_includes_default
20731 #ifdef HAVE_NETINET_IN_H
20732 #include <netinet/in.h>
20735 #ifdef HAVE_NETINET_TCP_H
20736 #include <netinet/tcp.h>
20739 #ifdef HAVE_ARPA_INET_H
20740 #include <arpa/inet.h>
20743 #ifdef HAVE_WINSOCK2_H
20744 #include <winsock2.h>
20747 #ifdef HAVE_WS2TCPIP_H
20748 #include <ws2tcpip.h>
20752 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20758 cat >>confdefs.h <<_ACEOF
20759 #define HAVE_DECL_INET_PTON $ac_have_decl
20761 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20762 $ac_includes_default
20763 #ifdef HAVE_NETINET_IN_H
20764 #include <netinet/in.h>
20767 #ifdef HAVE_NETINET_TCP_H
20768 #include <netinet/tcp.h>
20771 #ifdef HAVE_ARPA_INET_H
20772 #include <arpa/inet.h>
20775 #ifdef HAVE_WINSOCK2_H
20776 #include <winsock2.h>
20779 #ifdef HAVE_WS2TCPIP_H
20780 #include <ws2tcpip.h>
20784 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20790 cat >>confdefs.h <<_ACEOF
20791 #define HAVE_DECL_INET_NTOP $ac_have_decl
20794 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20795 if test "x$ac_cv_func_inet_aton" = xyes; then :
20796 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20799 case " $LIBOBJS " in
20800 *" inet_aton.$ac_objext "* ) ;;
20801 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20808 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20809 if test "x$ac_cv_func_inet_pton" = xyes; then :
20810 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20813 case " $LIBOBJS " in
20814 *" inet_pton.$ac_objext "* ) ;;
20815 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20822 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20823 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20824 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20827 case " $LIBOBJS " in
20828 *" inet_ntop.$ac_objext "* ) ;;
20829 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20836 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20837 if test "x$ac_cv_func_snprintf" = xyes; then :
20838 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20841 case " $LIBOBJS " in
20842 *" snprintf.$ac_objext "* ) ;;
20843 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20850 # test if snprintf return the proper length
20851 if test "x$ac_cv_func_snprintf" = xyes; then
20852 if test c${cross_compiling} = cno; then
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20854 $as_echo_n "checking for correct snprintf return value... " >&6; }
20855 if test "$cross_compiling" = yes; then :
20856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20858 as_fn_error $? "cannot run test program while cross compiling
20859 See \`config.log' for more details" "$LINENO" 5; }
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h. */
20863 $ac_includes_default
20865 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20868 if ac_fn_c_try_run "$LINENO"; then :
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20870 $as_echo "yes" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874 $as_echo "no" >&6; }
20876 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20878 case " $LIBOBJS " in
20879 *" snprintf.$ac_objext "* ) ;;
20880 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20887 conftest.$ac_objext conftest.beam conftest.$ac_ext
20892 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20893 if test "x$ac_cv_func_strlcat" = xyes; then :
20894 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20897 case " $LIBOBJS " in
20898 *" strlcat.$ac_objext "* ) ;;
20899 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20906 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20907 if test "x$ac_cv_func_strlcpy" = xyes; then :
20908 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20911 case " $LIBOBJS " in
20912 *" strlcpy.$ac_objext "* ) ;;
20913 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20920 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20921 if test "x$ac_cv_func_memmove" = xyes; then :
20922 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20925 case " $LIBOBJS " in
20926 *" memmove.$ac_objext "* ) ;;
20927 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20934 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20935 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20936 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20939 case " $LIBOBJS " in
20940 *" gmtime_r.$ac_objext "* ) ;;
20941 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20948 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20949 if test "x$ac_cv_func_isblank" = xyes; then :
20950 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20953 case " $LIBOBJS " in
20954 *" isblank.$ac_objext "* ) ;;
20955 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20962 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20963 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20964 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20967 case " $LIBOBJS " in
20968 *" explicit_bzero.$ac_objext "* ) ;;
20969 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20976 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20979 $as_echo_n "checking for reallocarray... " >&6; }
20980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h. */
20982 $ac_includes_default
20984 #ifndef _OPENBSD_SOURCE
20985 #define _OPENBSD_SOURCE 1
20987 #include <stdlib.h>
20989 void* p = reallocarray(NULL, 10, 100);
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20997 $as_echo "yes" >&6; }
20999 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21006 case " $LIBOBJS " in
21007 *" reallocarray.$ac_objext "* ) ;;
21008 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21014 rm -f core conftest.err conftest.$ac_objext \
21015 conftest$ac_exeext conftest.$ac_ext
21016 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
21017 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
21027 if test "$USE_NSS" = "no"; then
21028 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
21029 if test "x$ac_cv_func_arc4random" = xyes; then :
21030 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
21033 case " $LIBOBJS " in
21034 *" arc4random.$ac_objext "* ) ;;
21035 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
21042 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
21043 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
21044 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
21047 case " $LIBOBJS " in
21048 *" arc4random_uniform.$ac_objext "* ) ;;
21049 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
21056 if test "$ac_cv_func_arc4random" = "no"; then
21057 case " $LIBOBJS " in
21058 *" arc4_lock.$ac_objext "* ) ;;
21059 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
21063 for ac_func in getentropy
21065 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
21066 if test "x$ac_cv_func_getentropy" = xyes; then :
21067 cat >>confdefs.h <<_ACEOF
21068 #define HAVE_GETENTROPY 1
21073 if test "$USE_WINSOCK" = 1; then
21074 case " $LIBOBJS " in
21075 *" getentropy_win.$ac_objext "* ) ;;
21076 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
21083 case " $LIBOBJS " in
21084 *" getentropy_osx.$ac_objext "* ) ;;
21085 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
21090 *solaris*|*sunos*|SunOS)
21091 case " $LIBOBJS " in
21092 *" getentropy_solaris.$ac_objext "* ) ;;
21093 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
21097 for ac_header in sys/sha2.h
21099 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
21101 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
21102 cat >>confdefs.h <<_ACEOF
21103 #define HAVE_SYS_SHA2_H 1
21108 for ac_func in SHA512_Update
21110 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21111 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE_SHA512_UPDATE 1
21118 case " $LIBOBJS " in
21119 *" sha512.$ac_objext "* ) ;;
21120 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21133 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
21134 # this lib needed for sha2 on solaris
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21138 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21139 if ${ac_cv_search_clock_gettime+:} false; then :
21140 $as_echo_n "(cached) " >&6
21142 ac_func_search_save_LIBS=$LIBS
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21152 char clock_gettime ();
21156 return clock_gettime ();
21161 for ac_lib in '' rt; do
21162 if test -z "$ac_lib"; then
21163 ac_res="none required"
21166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21168 if ac_fn_c_try_link "$LINENO"; then :
21169 ac_cv_search_clock_gettime=$ac_res
21171 rm -f core conftest.err conftest.$ac_objext \
21173 if ${ac_cv_search_clock_gettime+:} false; then :
21177 if ${ac_cv_search_clock_gettime+:} false; then :
21180 ac_cv_search_clock_gettime=no
21182 rm conftest.$ac_ext
21183 LIBS=$ac_func_search_save_LIBS
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21186 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21187 ac_res=$ac_cv_search_clock_gettime
21188 if test "$ac_res" != no; then :
21189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21194 *freebsd*|*FreeBSD)
21195 case " $LIBOBJS " in
21196 *" getentropy_freebsd.$ac_objext "* ) ;;
21197 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
21203 case " $LIBOBJS " in
21204 *" getentropy_linux.$ac_objext "* ) ;;
21205 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
21209 for ac_func in SHA512_Update
21211 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
21212 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
21213 cat >>confdefs.h <<_ACEOF
21214 #define HAVE_SHA512_UPDATE 1
21220 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
21222 case " $LIBOBJS " in
21223 *" sha512.$ac_objext "* ) ;;
21224 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
21232 for ac_header in sys/sysctl.h
21234 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
21236 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
21237 cat >>confdefs.h <<_ACEOF
21238 #define HAVE_SYS_SYSCTL_H 1
21245 for ac_func in getauxval
21247 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
21248 if test "x$ac_cv_func_getauxval" = xyes; then :
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_GETAUXVAL 1
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21257 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21258 if ${ac_cv_search_clock_gettime+:} false; then :
21259 $as_echo_n "(cached) " >&6
21261 ac_func_search_save_LIBS=$LIBS
21262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21263 /* end confdefs.h. */
21265 /* Override any GCC internal prototype to avoid an error.
21266 Use char because int might match the return type of a GCC
21267 builtin and then its argument prototype would still apply. */
21271 char clock_gettime ();
21275 return clock_gettime ();
21280 for ac_lib in '' rt; do
21281 if test -z "$ac_lib"; then
21282 ac_res="none required"
21285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21287 if ac_fn_c_try_link "$LINENO"; then :
21288 ac_cv_search_clock_gettime=$ac_res
21290 rm -f core conftest.err conftest.$ac_objext \
21292 if ${ac_cv_search_clock_gettime+:} false; then :
21296 if ${ac_cv_search_clock_gettime+:} false; then :
21299 ac_cv_search_clock_gettime=no
21301 rm conftest.$ac_ext
21302 LIBS=$ac_func_search_save_LIBS
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21305 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21306 ac_res=$ac_cv_search_clock_gettime
21307 if test "$ac_res" != no; then :
21308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21321 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
21323 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
21324 if test "x$ac_cv_func_ctime_r" = xyes; then :
21325 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
21328 case " $LIBOBJS " in
21329 *" ctime_r.$ac_objext "* ) ;;
21330 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
21337 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
21338 if test "x$ac_cv_func_strsep" = xyes; then :
21339 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
21342 case " $LIBOBJS " in
21343 *" strsep.$ac_objext "* ) ;;
21344 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
21352 # Check whether --enable-allsymbols was given.
21353 if test "${enable_allsymbols+set}" = set; then :
21354 enableval=$enable_allsymbols;
21357 case "$enable_allsymbols" in
21359 COMMON_OBJ_ALL_SYMBOLS=""
21361 EXTRALINK="libunbound.la"
21363 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
21367 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
21368 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
21375 if test x_$enable_lock_checks = x_yes; then
21376 UBSYMS="-export-symbols clubsyms.def"
21377 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
21378 echo lock_protect >> clubsyms.def
21379 echo lock_unprotect >> clubsyms.def
21380 echo lock_get_mem >> clubsyms.def
21381 echo checklock_start >> clubsyms.def
21382 echo checklock_stop >> clubsyms.def
21383 echo checklock_lock >> clubsyms.def
21384 echo checklock_unlock >> clubsyms.def
21385 echo checklock_init >> clubsyms.def
21386 echo checklock_thrcreate >> clubsyms.def
21387 echo checklock_thrjoin >> clubsyms.def
21390 # check for dnstap if requested
21392 # Check whether --enable-dnstap was given.
21393 if test "${enable_dnstap+set}" = set; then :
21394 enableval=$enable_dnstap; opt_dnstap=$enableval
21401 # Check whether --with-dnstap-socket-path was given.
21402 if test "${with_dnstap_socket_path+set}" = set; then :
21403 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
21405 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
21409 if test "x$opt_dnstap" != "xno"; then
21410 # Extract the first word of "protoc-c", so it can be a program name with args.
21411 set dummy protoc-c; ac_word=$2
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21413 $as_echo_n "checking for $ac_word... " >&6; }
21414 if ${ac_cv_path_PROTOC_C+:} false; then :
21415 $as_echo_n "(cached) " >&6
21419 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
21422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21423 for as_dir in $PATH
21426 test -z "$as_dir" && as_dir=.
21427 for ac_exec_ext in '' $ac_executable_extensions; do
21428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21429 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
21430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21440 PROTOC_C=$ac_cv_path_PROTOC_C
21441 if test -n "$PROTOC_C"; then
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
21443 $as_echo "$PROTOC_C" >&6; }
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21446 $as_echo "no" >&6; }
21450 if test -z "$PROTOC_C"; then
21451 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
21454 # Check whether --with-protobuf-c was given.
21455 if test "${with_protobuf_c+set}" = set; then :
21456 withval=$with_protobuf_c;
21457 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21458 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
21459 CFLAGS="$CFLAGS -I$withval/include/google"
21461 CFLAGS="$CFLAGS -I$withval/include"
21463 LDFLAGS="$LDFLAGS -L$withval/lib"
21467 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
21468 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
21469 CFLAGS="$CFLAGS -I/usr/include/google"
21471 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
21472 CFLAGS="$CFLAGS -I/usr/local/include/google"
21473 LDFLAGS="$LDFLAGS -L/usr/local/lib"
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21480 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21481 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21482 $as_echo_n "(cached) " >&6
21484 ac_func_search_save_LIBS=$LIBS
21485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21486 /* end confdefs.h. */
21488 /* Override any GCC internal prototype to avoid an error.
21489 Use char because int might match the return type of a GCC
21490 builtin and then its argument prototype would still apply. */
21494 char protobuf_c_message_pack ();
21498 return protobuf_c_message_pack ();
21503 for ac_lib in '' protobuf-c; do
21504 if test -z "$ac_lib"; then
21505 ac_res="none required"
21508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21510 if ac_fn_c_try_link "$LINENO"; then :
21511 ac_cv_search_protobuf_c_message_pack=$ac_res
21513 rm -f core conftest.err conftest.$ac_objext \
21515 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21519 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21522 ac_cv_search_protobuf_c_message_pack=no
21524 rm conftest.$ac_ext
21525 LIBS=$ac_func_search_save_LIBS
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21528 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21529 ac_res=$ac_cv_search_protobuf_c_message_pack
21530 if test "$ac_res" != no; then :
21531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21534 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21539 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21545 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21548 cat >>confdefs.h <<_ACEOF
21549 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21552 DNSTAP_SOCKET_PATH="$hdr_dnstap_socket_path"
21554 DNSTAP_SOCKET_TESTBIN='unbound-dnstap-socket$(EXEEXT)'
21556 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c dnstap/dnstap_fstrm.c dnstap/dtstream.c"
21558 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo dnstap_fstrm.lo dtstream.lo"
21570 # check for dnscrypt if requested
21572 # Check whether --enable-dnscrypt was given.
21573 if test "${enable_dnscrypt+set}" = set; then :
21574 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21580 if test "x$opt_dnscrypt" != "xno"; then
21582 # Check whether --with-libsodium was given.
21583 if test "${with_libsodium+set}" = set; then :
21584 withval=$with_libsodium;
21585 CFLAGS="$CFLAGS -I$withval/include"
21586 LDFLAGS="$LDFLAGS -L$withval/lib"
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21591 $as_echo_n "checking for library containing sodium_init... " >&6; }
21592 if ${ac_cv_search_sodium_init+:} false; then :
21593 $as_echo_n "(cached) " >&6
21595 ac_func_search_save_LIBS=$LIBS
21596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21597 /* end confdefs.h. */
21599 /* Override any GCC internal prototype to avoid an error.
21600 Use char because int might match the return type of a GCC
21601 builtin and then its argument prototype would still apply. */
21605 char sodium_init ();
21609 return sodium_init ();
21614 for ac_lib in '' sodium; do
21615 if test -z "$ac_lib"; then
21616 ac_res="none required"
21619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21621 if ac_fn_c_try_link "$LINENO"; then :
21622 ac_cv_search_sodium_init=$ac_res
21624 rm -f core conftest.err conftest.$ac_objext \
21626 if ${ac_cv_search_sodium_init+:} false; then :
21630 if ${ac_cv_search_sodium_init+:} false; then :
21633 ac_cv_search_sodium_init=no
21635 rm conftest.$ac_ext
21636 LIBS=$ac_func_search_save_LIBS
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21639 $as_echo "$ac_cv_search_sodium_init" >&6; }
21640 ac_res=$ac_cv_search_sodium_init
21641 if test "$ac_res" != no; then :
21642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21645 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21649 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21650 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21651 $as_echo_n "(cached) " >&6
21653 ac_func_search_save_LIBS=$LIBS
21654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21655 /* end confdefs.h. */
21657 /* Override any GCC internal prototype to avoid an error.
21658 Use char because int might match the return type of a GCC
21659 builtin and then its argument prototype would still apply. */
21663 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21667 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21672 for ac_lib in '' sodium; do
21673 if test -z "$ac_lib"; then
21674 ac_res="none required"
21677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21679 if ac_fn_c_try_link "$LINENO"; then :
21680 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21682 rm -f core conftest.err conftest.$ac_objext \
21684 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21688 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21691 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21693 rm conftest.$ac_ext
21694 LIBS=$ac_func_search_save_LIBS
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21697 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21698 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21699 if test "$ac_res" != no; then :
21700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21702 ENABLE_DNSCRYPT_XCHACHA20=1
21705 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21710 ENABLE_DNSCRYPT_XCHACHA20=0
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21716 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21717 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21718 $as_echo_n "(cached) " >&6
21720 ac_func_search_save_LIBS=$LIBS
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h. */
21724 /* Override any GCC internal prototype to avoid an error.
21725 Use char because int might match the return type of a GCC
21726 builtin and then its argument prototype would still apply. */
21730 char sodium_set_misuse_handler ();
21734 return sodium_set_misuse_handler ();
21739 for ac_lib in '' sodium; do
21740 if test -z "$ac_lib"; then
21741 ac_res="none required"
21744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21746 if ac_fn_c_try_link "$LINENO"; then :
21747 ac_cv_search_sodium_set_misuse_handler=$ac_res
21749 rm -f core conftest.err conftest.$ac_objext \
21751 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21755 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21758 ac_cv_search_sodium_set_misuse_handler=no
21760 rm conftest.$ac_ext
21761 LIBS=$ac_func_search_save_LIBS
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21764 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21765 ac_res=$ac_cv_search_sodium_set_misuse_handler
21766 if test "$ac_res" != no; then :
21767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21770 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21777 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21782 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21784 DNSCRYPT_OBJ="dnscrypt.lo"
21788 ENABLE_DNSCRYPT_XCHACHA20=0
21798 # check for cachedb if requested
21799 # Check whether --enable-cachedb was given.
21800 if test "${enable_cachedb+set}" = set; then :
21801 enableval=$enable_cachedb;
21804 # turn on cachedb when hiredis support is enabled.
21805 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21806 case "$enable_cachedb" in
21809 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21811 CACHEDB_SRC="cachedb/cachedb.c cachedb/redis.c"
21813 CACHEDB_OBJ="cachedb.lo redis.lo"
21821 # check for ipsecmod if requested
21822 # Check whether --enable-ipsecmod was given.
21823 if test "${enable_ipsecmod+set}" = set; then :
21824 enableval=$enable_ipsecmod;
21827 case "$enable_ipsecmod" in
21830 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21832 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21834 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21842 # check for ipset if requested
21843 # Check whether --enable-ipset was given.
21844 if test "${enable_ipset+set}" = set; then :
21845 enableval=$enable_ipset;
21848 case "$enable_ipset" in
21851 $as_echo "#define USE_IPSET 1" >>confdefs.h
21853 IPSET_SRC="ipset/ipset.c"
21855 IPSET_OBJ="ipset.lo"
21860 # Check whether --with-libmnl was given.
21861 if test "${with_libmnl+set}" = set; then :
21862 withval=$with_libmnl;
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21869 $as_echo_n "checking for libmnl... " >&6; }
21870 if test x_$withval = x_ -o x_$withval = x_yes; then
21871 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21873 for dir in $withval ; do
21874 if test -f "$dir/include/libmnl/libmnl.h" -o -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21877 if test -f "$dir/include/libmnl/libmnl/libmnl.h"; then
21878 extralibmnl="/libmnl"
21880 if test "$dir" != "/usr" -o -n "$extralibmnl"; then
21881 CPPFLAGS="$CPPFLAGS -I$dir/include$extralibmnl"
21883 if test "$dir" != "/usr"; then
21884 LDFLAGS="$LDFLAGS -L$dir/lib"
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21887 $as_echo "found in $dir" >&6; }
21892 if test x_$found_libmnl != x_yes; then
21893 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21900 # Check whether --enable-explicit-port-randomisation was given.
21901 if test "${enable_explicit_port_randomisation+set}" = set; then :
21902 enableval=$enable_explicit_port_randomisation;
21905 case "$enable_explicit_port_randomisation" in
21908 $as_echo "#define DISABLE_EXPLICIT_PORT_RANDOMISATION 1" >>confdefs.h
21915 if echo "$host" | $GREP -i -e linux >/dev/null; then
21916 # Check whether --enable-linux-ip-local-port-range was given.
21917 if test "${enable_linux_ip_local_port_range+set}" = set; then :
21918 enableval=$enable_linux_ip_local_port_range;
21921 case "$enable_linux_ip_local_port_range" in
21924 $as_echo "#define USE_LINUX_IP_LOCAL_PORT_RANGE 1" >>confdefs.h
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21934 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21935 # on openBSD, the implicit rule make $< work.
21936 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21938 cat >conftest.make <<EOF
21941 conftest.lo foo.lo bla.lo:
21942 if test -f "\$<"; then touch \$@; fi
21946 if test -f "\$<"; then touch \$@; fi
21948 conftest.lo: conftest.dir/conftest.c
21951 touch conftest.dir/conftest.c
21952 rm -f conftest.lo conftest.c
21953 ${MAKE:-make} -f conftest.make >/dev/null
21954 rm -f conftest.make conftest.c conftest.dir/conftest.c
21955 rm -rf conftest.dir
21956 if test ! -f conftest.lo; then
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21958 $as_echo "no" >&6; }
21959 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21960 SOURCEFILE='`cat .source`'
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21963 $as_echo "yes" >&6; }
21964 SOURCEDETERMINE=':'
21971 # see if we want to build the library or everything
21972 ALLTARGET="alltargets"
21973 INSTALLTARGET="install-all"
21975 # Check whether --with-libunbound-only was given.
21976 if test "${with_libunbound_only+set}" = set; then :
21977 withval=$with_libunbound_only;
21978 if test "$withval" = "yes"; then
21980 INSTALLTARGET="install-lib"
21985 if test $ALLTARGET = "alltargets"; then
21986 if test $USE_NSS = "yes"; then
21987 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21989 if test $USE_NETTLE = "yes"; then
21990 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21999 $as_echo "$as_me: Stripping extension flags..." >&6;}
22001 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
22002 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
22004 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
22009 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
22010 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
22012 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
22017 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
22018 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
22020 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
22025 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
22026 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
22028 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
22033 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
22034 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
22036 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
22041 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
22042 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
22044 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
22049 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
22050 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
22052 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
22057 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
22058 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
22060 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
22065 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
22066 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
22068 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
22073 if test -n "$LATE_LDFLAGS"; then
22074 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
22076 # remove start spaces
22077 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
22078 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
22081 cat >>confdefs.h <<_ACEOF
22082 #define MAXSYSLOGMSGLEN 10240
22090 date=`date +'%b %e, %Y'`
22093 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
22095 ac_config_headers="$ac_config_headers config.h"
22097 cat >confcache <<\_ACEOF
22098 # This file is a shell script that caches the results of configure
22099 # tests run on this system so they can be shared between configure
22100 # scripts and configure runs, see configure's option --config-cache.
22101 # It is not useful on other systems. If it contains results you don't
22102 # want to keep, you may remove or edit it.
22104 # config.status only pays attention to the cache file if you give it
22105 # the --recheck option to rerun configure.
22107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22109 # following values.
22113 # The following way of writing the cache mishandles newlines in values,
22114 # but we know of no workaround that is simple, portable, and efficient.
22115 # So, we kill variables containing newlines.
22116 # Ultrix sh set writes to stderr and can't be redirected directly,
22117 # and sets the high bit in the cache file unless we assign to the vars.
22119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22120 eval ac_val=\$$ac_var
22124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22128 _ | IFS | as_nl) ;; #(
22129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22130 *) { eval $ac_var=; unset $ac_var;} ;;
22136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22137 *${as_nl}ac_space=\ *)
22138 # `set' does not quote correctly, so add quotes: double-quote
22139 # substitution turns \\\\ into \\, and sed turns \\ into \.
22142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22145 # `set' quotes correctly as required by POSIX, so do not add quotes.
22146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22160 if test -w "$cache_file"; then
22161 if test "x$cache_file" != "x/dev/null"; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22163 $as_echo "$as_me: updating cache $cache_file" >&6;}
22164 if test ! -f "$cache_file" || test -h "$cache_file"; then
22165 cat confcache >"$cache_file"
22167 case $cache_file in #(
22169 mv -f confcache "$cache_file"$$ &&
22170 mv -f "$cache_file"$$ "$cache_file" ;; #(
22172 mv -f confcache "$cache_file" ;;
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22178 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22184 # Let make expand exec_prefix.
22185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22187 DEFS=-DHAVE_CONFIG_H
22192 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22193 # 1. Remove the extension, and $U if already installed.
22194 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22195 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22196 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22197 # will be set to the directory where LIBOBJS objects are built.
22198 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22199 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22201 LIBOBJS=$ac_libobjs
22203 LTLIBOBJS=$ac_ltlibobjs
22206 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
22207 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
22208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22211 : "${CONFIG_STATUS=./config.status}"
22213 ac_clean_files_save=$ac_clean_files
22214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22216 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22218 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22220 # Generated by $as_me.
22221 # Run this file to recreate the current configuration.
22222 # Compiler output produced by configure, useful for debugging
22223 # configure, is in config.log if it exists.
22226 ac_cs_recheck=false
22229 SHELL=\${CONFIG_SHELL-$SHELL}
22232 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22233 ## -------------------- ##
22234 ## M4sh Initialization. ##
22235 ## -------------------- ##
22237 # Be more Bourne compatible
22238 DUALCASE=1; export DUALCASE # for MKS sh
22239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22243 # is contrary to our usage. Disable this feature.
22244 alias -g '${1+"$@"}'='"$@"'
22245 setopt NO_GLOB_SUBST
22247 case `(set -o) 2>/dev/null` in #(
22259 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22260 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22261 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22263 # Prefer a ksh shell builtin over an external printf program on Solaris,
22264 # but without wasting forks for bash or zsh.
22265 if test -z "$BASH_VERSION$ZSH_VERSION" \
22266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22267 as_echo='print -r --'
22268 as_echo_n='print -rn --'
22269 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22270 as_echo='printf %s\n'
22271 as_echo_n='printf %s'
22273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22275 as_echo_n='/usr/ucb/echo -n'
22277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22278 as_echo_n_body='eval
22282 expr "X$arg" : "X\\(.*\\)$as_nl";
22283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22287 export as_echo_n_body
22288 as_echo_n='sh -c $as_echo_n_body as_echo'
22290 export as_echo_body
22291 as_echo='sh -c $as_echo_body as_echo'
22294 # The user is always right.
22295 if test "${PATH_SEPARATOR+set}" != set; then
22297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22305 # We need space, tab and new line, in precisely that order. Quoting is
22306 # there to prevent editors from complaining about space-tab.
22307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22308 # splitting by setting IFS to empty value.)
22311 # Find who we are. Look in the path if we contain no directory separator.
22314 *[\\/]* ) as_myself=$0 ;;
22315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $PATH
22319 test -z "$as_dir" && as_dir=.
22320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22326 # We did not find ourselves, most probably we were run as `sh COMMAND'
22327 # in which case we are not to be found in the path.
22328 if test "x$as_myself" = x; then
22331 if test ! -f "$as_myself"; then
22332 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22336 # Unset variables that we do not need and which cause bugs (e.g. in
22337 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22338 # suppresses any "Segmentation fault" message there. '((' could
22339 # trigger a bug in pdksh 5.2.14.
22340 for as_var in BASH_ENV ENV MAIL MAILPATH
22341 do eval test x\${$as_var+set} = xset \
22342 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22355 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22358 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22359 # ----------------------------------------
22360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22362 # script with STATUS, using 1 if that was 0.
22365 as_status=$1; test $as_status -eq 0 && as_status=1
22367 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22370 $as_echo "$as_me: error: $2" >&2
22371 as_fn_exit $as_status
22375 # as_fn_set_status STATUS
22376 # -----------------------
22377 # Set $? to STATUS, without forking.
22378 as_fn_set_status ()
22381 } # as_fn_set_status
22383 # as_fn_exit STATUS
22384 # -----------------
22385 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22389 as_fn_set_status $1
22395 # Portably unset VAR.
22398 { eval $1=; unset $1;}
22400 as_unset=as_fn_unset
22401 # as_fn_append VAR VALUE
22402 # ----------------------
22403 # Append the text in VALUE to the end of the definition contained in VAR. Take
22404 # advantage of any shell optimizations that allow amortized linear growth over
22405 # repeated appends, instead of the typical quadratic growth present in naive
22407 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22408 eval 'as_fn_append ()
22419 # as_fn_arith ARG...
22420 # ------------------
22421 # Perform arithmetic evaluation on the ARGs, and store the result in the
22422 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22423 # must be portable across $(()) and expr.
22424 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22425 eval 'as_fn_arith ()
22432 as_val=`expr "$@" || test $? -eq 1`
22437 if expr a : '\(a\)' >/dev/null 2>&1 &&
22438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22445 as_basename=basename
22450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22456 as_me=`$as_basename -- "$0" ||
22457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22458 X"$0" : 'X\(//\)$' \| \
22459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22461 sed '/^.*\/\([^/][^/]*\)\/*$/{
22475 # Avoid depending upon Character Ranges.
22476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22479 as_cr_digits='0123456789'
22480 as_cr_alnum=$as_cr_Letters$as_cr_digits
22482 ECHO_C= ECHO_N= ECHO_T=
22483 case `echo -n x` in #(((((
22485 case `echo 'xy\c'` in
22486 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22488 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22495 rm -f conf$$ conf$$.exe conf$$.file
22496 if test -d conf$$.dir; then
22497 rm -f conf$$.dir/conf$$.file
22500 mkdir conf$$.dir 2>/dev/null
22502 if (echo >conf$$.file) 2>/dev/null; then
22503 if ln -s conf$$.file conf$$ 2>/dev/null; then
22505 # ... but there are two gotchas:
22506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22508 # In both cases, we have to default to `cp -pR'.
22509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22511 elif ln conf$$.file conf$$ 2>/dev/null; then
22519 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22520 rmdir conf$$.dir 2>/dev/null
22525 # Create "$as_dir" as a directory, including parents if necessary.
22530 -*) as_dir=./$as_dir;;
22532 test -d "$as_dir" || eval $as_mkdir_p || {
22536 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22537 *) as_qdir=$as_dir;;
22539 as_dirs="'$as_qdir' $as_dirs"
22540 as_dir=`$as_dirname -- "$as_dir" ||
22541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22542 X"$as_dir" : 'X\(//\)[^/]' \| \
22543 X"$as_dir" : 'X\(//\)$' \| \
22544 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22545 $as_echo X"$as_dir" |
22546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22550 /^X\(\/\/\)[^/].*/{
22563 test -d "$as_dir" && break
22565 test -z "$as_dirs" || eval "mkdir $as_dirs"
22566 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22570 if mkdir -p . 2>/dev/null; then
22571 as_mkdir_p='mkdir -p "$as_dir"'
22573 test -d ./-p && rmdir ./-p
22578 # as_fn_executable_p FILE
22579 # -----------------------
22580 # Test if FILE is an executable regular file.
22581 as_fn_executable_p ()
22583 test -f "$1" && test -x "$1"
22584 } # as_fn_executable_p
22585 as_test_x='test -x'
22586 as_executable_p=as_fn_executable_p
22588 # Sed expression to map a string onto a valid CPP name.
22589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22591 # Sed expression to map a string onto a valid variable name.
22592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22596 ## ----------------------------------- ##
22597 ## Main body of $CONFIG_STATUS script. ##
22598 ## ----------------------------------- ##
22600 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22603 # Save the log message, to keep $0 and so on meaningful, and to
22604 # report actual input values of CONFIG_FILES etc. instead of their
22605 # values after options handling.
22607 This file was extended by unbound $as_me 1.17.0, which was
22608 generated by GNU Autoconf 2.69. Invocation command line was
22610 CONFIG_FILES = $CONFIG_FILES
22611 CONFIG_HEADERS = $CONFIG_HEADERS
22612 CONFIG_LINKS = $CONFIG_LINKS
22613 CONFIG_COMMANDS = $CONFIG_COMMANDS
22616 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22621 case $ac_config_files in *"
22622 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22625 case $ac_config_headers in *"
22626 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22631 # Files that config.status was made for.
22632 config_files="$ac_config_files"
22633 config_headers="$ac_config_headers"
22634 config_commands="$ac_config_commands"
22638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22640 \`$as_me' instantiates files and other configuration actions
22641 from templates according to the current configuration. Unless the files
22642 and actions are specified as TAGs, all are instantiated by default.
22644 Usage: $0 [OPTION]... [TAG]...
22646 -h, --help print this help, then exit
22647 -V, --version print version number and configuration settings, then exit
22648 --config print configuration, then exit
22649 -q, --quiet, --silent
22650 do not print progress messages
22651 -d, --debug don't remove temporary files
22652 --recheck update $as_me by reconfiguring in the same conditions
22653 --file=FILE[:TEMPLATE]
22654 instantiate the configuration file FILE
22655 --header=FILE[:TEMPLATE]
22656 instantiate the configuration header FILE
22658 Configuration files:
22661 Configuration headers:
22664 Configuration commands:
22667 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22671 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22673 unbound config.status 1.17.0
22674 configured by $0, generated by GNU Autoconf 2.69,
22675 with options \\"\$ac_cs_config\\"
22677 Copyright (C) 2012 Free Software Foundation, Inc.
22678 This config.status script is free software; the Free Software Foundation
22679 gives unlimited permission to copy, distribute and modify it."
22684 test -n "\$AWK" || AWK=awk
22687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22688 # The default lists apply if the user does not specify any file.
22694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22699 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22711 # Handling of the options.
22712 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22714 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22715 $as_echo "$ac_cs_version"; exit ;;
22716 --config | --confi | --conf | --con | --co | --c )
22717 $as_echo "$ac_cs_config"; exit ;;
22718 --debug | --debu | --deb | --de | --d | -d )
22720 --file | --fil | --fi | --f )
22723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22724 '') as_fn_error $? "missing file argument" ;;
22726 as_fn_append CONFIG_FILES " '$ac_optarg'"
22727 ac_need_defaults=false;;
22728 --header | --heade | --head | --hea )
22731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22733 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22734 ac_need_defaults=false;;
22736 # Conflict between --help and --header
22737 as_fn_error $? "ambiguous option: \`$1'
22738 Try \`$0 --help' for more information.";;
22739 --help | --hel | -h )
22740 $as_echo "$ac_cs_usage"; exit ;;
22741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22742 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22745 # This is an error.
22746 -*) as_fn_error $? "unrecognized option: \`$1'
22747 Try \`$0 --help' for more information." ;;
22749 *) as_fn_append ac_config_targets " $1"
22750 ac_need_defaults=false ;;
22756 ac_configure_extra_args=
22758 if $ac_cs_silent; then
22760 ac_configure_extra_args="$ac_configure_extra_args --silent"
22764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22765 if \$ac_cs_recheck; then
22766 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22768 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22769 CONFIG_SHELL='$SHELL'
22770 export CONFIG_SHELL
22775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22779 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22780 ## Running $as_me. ##
22786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22792 # The HP-UX ksh and POSIX shell print the target directory to stdout
22793 # if CDPATH is set.
22794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22796 sed_quote_subst='$sed_quote_subst'
22797 double_quote_subst='$double_quote_subst'
22798 delay_variable_subst='$delay_variable_subst'
22799 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22800 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22801 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22802 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22803 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22804 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22805 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22806 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22807 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22808 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22809 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22810 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22811 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22812 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22813 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22814 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22815 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22816 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22817 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22818 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22819 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22820 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22821 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22822 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22823 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22824 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22825 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22826 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22827 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22828 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22829 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22830 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22831 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22832 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22833 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22834 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22835 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22836 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22837 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22838 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22839 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22840 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22841 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22842 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22843 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22844 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22845 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22846 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22847 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22848 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22849 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22850 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22851 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22852 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22853 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22854 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22855 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22856 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22857 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22858 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22859 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22860 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22861 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22862 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22863 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22864 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22865 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22866 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22867 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22868 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22869 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22870 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22871 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22872 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22873 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22874 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22875 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22876 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22877 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22878 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22879 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22880 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22881 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22882 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22883 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22884 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22885 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22886 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22887 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22888 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22889 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22890 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22891 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22892 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22893 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22894 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22895 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22896 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22897 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22898 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22899 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22900 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22901 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22902 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22903 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22904 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22905 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22906 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22907 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22908 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22909 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22910 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22911 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22912 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22913 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22914 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22915 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22916 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22917 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22918 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22919 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22920 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22921 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22922 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22923 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22924 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22925 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22926 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22927 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22928 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22929 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22930 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22931 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22932 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22933 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22936 LTCFLAGS='$LTCFLAGS'
22937 compiler='$compiler_DEFAULT'
22939 # A function that is used when there is no print builtin or printf.
22940 func_fallback_echo ()
22942 eval 'cat <<_LTECHO_EOF
22947 # Quote evaled strings.
22962 deplibs_check_method \
22967 sharedlib_from_linklib_cmd \
22970 archiver_list_spec \
22976 lt_cv_sys_global_symbol_pipe \
22977 lt_cv_sys_global_symbol_to_cdecl \
22978 lt_cv_sys_global_symbol_to_import \
22979 lt_cv_sys_global_symbol_to_c_name_address \
22980 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22981 lt_cv_nm_interface \
22982 nm_file_list_spec \
22983 lt_cv_truncate_bin \
22984 lt_prog_compiler_no_builtin_flag \
22985 lt_prog_compiler_pic \
22986 lt_prog_compiler_wl \
22987 lt_prog_compiler_static \
22988 lt_cv_prog_compiler_c_o \
22997 export_dynamic_flag_spec \
22998 whole_archive_flag_spec \
22999 compiler_needs_object \
23001 allow_undefined_flag \
23002 no_undefined_flag \
23003 hardcode_libdir_flag_spec \
23004 hardcode_libdir_separator \
23008 variables_saved_for_relink \
23010 library_names_spec \
23012 install_override_mode \
23016 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23017 *[\\\\\\\`\\"\\\$]*)
23018 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23021 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23026 # Double-quote double-evaled strings.
23027 for var in reload_cmds \
23028 old_postinstall_cmds \
23029 old_postuninstall_cmds \
23031 extract_expsyms_cmds \
23032 old_archive_from_new_cmds \
23033 old_archive_from_expsyms_cmds \
23035 archive_expsym_cmds \
23037 module_expsym_cmds \
23038 export_symbols_cmds \
23042 postuninstall_cmds \
23044 sys_lib_search_path_spec \
23045 configure_time_dlsearch_path \
23046 configure_time_lt_sys_library_path; do
23047 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23048 *[\\\\\\\`\\"\\\$]*)
23049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23057 ac_aux_dir='$ac_aux_dir'
23059 # See if we are running on zsh, and set the options that allow our
23060 # commands through without removal of \ escapes INIT.
23061 if test -n "\${ZSH_VERSION+set}"; then
23062 setopt NO_GLOB_SUBST
23076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23078 # Handling of arguments.
23079 for ac_config_target in $ac_config_targets
23081 case $ac_config_target in
23082 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23083 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
23084 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23085 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
23086 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
23087 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
23088 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
23089 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
23090 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
23091 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
23092 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
23093 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
23094 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
23095 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
23096 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
23097 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
23098 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
23099 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
23100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23102 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23107 # If the user did not use the arguments to specify the items to instantiate,
23108 # then the envvar interface is used. Set only those that are not.
23109 # We use the long form for the default assignment because of an extremely
23110 # bizarre bug on SunOS 4.1.3.
23111 if $ac_need_defaults; then
23112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23117 # Have a temporary directory for convenience. Make it in the build tree
23118 # simply because there is no reason against having it here, and in addition,
23119 # creating and moving files from /tmp can sometimes cause problems.
23120 # Hook for its removal unless debugging.
23121 # Note that there is a small window in which the directory will not be cleaned:
23122 # after its creation but before its name has been assigned to `$tmp'.
23126 trap 'exit_status=$?
23127 : "${ac_tmp:=$tmp}"
23128 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23130 trap 'as_fn_exit 1' 1 2 13 15
23132 # Create a (secure) tmp directory for tmp files.
23135 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23139 tmp=./conf$$-$RANDOM
23140 (umask 077 && mkdir "$tmp")
23141 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23144 # Set up the scripts for CONFIG_FILES section.
23145 # No need to generate them if there are no CONFIG_FILES.
23146 # This happens for instance with `./config.status config.h'.
23147 if test -n "$CONFIG_FILES"; then
23150 ac_cr=`echo X | tr X '\015'`
23151 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23152 # But we know of no other shell where ac_cr would be empty at this
23153 # point, so we can use a bashism as a fallback.
23154 if test "x$ac_cr" = x; then
23155 eval ac_cr=\$\'\\r\'
23157 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23158 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23161 ac_cs_awk_cr=$ac_cr
23164 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23169 echo "cat >conf$$subs.awk <<_ACEOF" &&
23170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23172 } >conf$$subs.sh ||
23173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23176 for ac_last_try in false false false false false :; do
23177 . ./conf$$subs.sh ||
23178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23181 if test $ac_delim_n = $ac_delim_num; then
23183 elif $ac_last_try; then
23184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23189 rm -f conf$$subs.sh
23191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23192 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23196 s/^/S["/; s/!.*/"]=/
23206 s/\(.\{148\}\)..*/\1/
23208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23220 s/\(.\{148\}\)..*/\1/
23222 s/["\\]/\\&/g; s/^/"/; s/$/"/
23226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23231 ' <conf$$subs.awk | sed '
23236 ' >>$CONFIG_STATUS || ac_write_fail=1
23237 rm -f conf$$subs.awk
23238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23240 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23241 for (key in S) S_is_set[key] = 1
23247 nfields = split(line, field, "@")
23249 len = length(field[1])
23250 for (i = 2; i < nfields; i++) {
23252 keylen = length(key)
23253 if (S_is_set[key]) {
23255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23256 len += length(value) + length(field[++i])
23267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23268 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23269 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23272 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23273 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23276 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23277 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23278 # trailing colons and then remove the whole line if VPATH becomes empty
23279 # (actually we leave an empty line to preserve line numbers).
23280 if test "x$srcdir" = x.; then
23281 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23300 fi # test -n "$CONFIG_FILES"
23302 # Set up the scripts for CONFIG_HEADERS section.
23303 # No need to generate them if there are no CONFIG_HEADERS.
23304 # This happens for instance with `./config.status Makefile'.
23305 if test -n "$CONFIG_HEADERS"; then
23306 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23310 # Transform confdefs.h into an awk script `defines.awk', embedded as
23311 # here-document in config.status, that substitutes the proper values into
23312 # config.h.in to produce config.h.
23314 # Create a delimiter string that does not exist in confdefs.h, to ease
23315 # handling of long lines.
23317 for ac_last_try in false false :; do
23318 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23319 if test -z "$ac_tt"; then
23321 elif $ac_last_try; then
23322 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23328 # For the awk script, D is an array of macro values keyed by name,
23329 # likewise P contains macro parameters if any. Preserve backslash
23330 # newline sequences.
23332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23334 s/.\{148\}/&'"$ac_delim"'/g
23337 s/^[ ]*#[ ]*define[ ][ ]*/ /
23344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23351 D["\1"]=" \3\\\\\\n"\\/p
23353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23358 s/.\{148\}/&'"$ac_delim"'/g
23363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23368 ' <confdefs.h | sed '
23369 s/'"$ac_delim"'/"\\\
23370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23373 for (key in D) D_is_set[key] = 1
23376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23378 split(line, arg, " ")
23379 if (arg[1] == "#") {
23383 defundef = substr(arg[1], 2)
23386 split(mac1, mac2, "(") #)
23388 prefix = substr(line, 1, index(line, defundef) - 1)
23389 if (D_is_set[macro]) {
23390 # Preserve the white space surrounding the "#".
23391 print prefix "define", macro P[macro] D[macro]
23394 # Replace #undef with comments. This is necessary, for example,
23395 # in the case of _POSIX_SOURCE, which is predefined and required
23396 # on some systems where configure will not decide to define it.
23397 if (defundef == "undef") {
23398 print "/*", prefix defundef, macro, "*/"
23406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23407 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23408 fi # test -n "$CONFIG_HEADERS"
23411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23416 :[FHLC]) ac_mode=$ac_tag; continue;;
23418 case $ac_mode$ac_tag in
23420 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23421 :[FH]-) ac_tag=-:-;;
23422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23439 -) ac_f="$ac_tmp/stdin";;
23440 *) # Look for the file first in the build tree, then in the source tree
23441 # (if the path is not absolute). The absolute path cannot be DOS-style,
23442 # because $ac_f cannot contain `:'.
23446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23448 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23451 as_fn_append ac_file_inputs " '$ac_f'"
23454 # Let's still pretend it is `configure' which instantiates (i.e., don't
23455 # use $as_me), people would be surprised to read:
23456 # /* config.h. Generated by config.status. */
23457 configure_input='Generated from '`
23458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23460 if test x"$ac_file" != x-; then
23461 configure_input="$ac_file. $configure_input"
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23463 $as_echo "$as_me: creating $ac_file" >&6;}
23465 # Neutralize special characters interpreted by sed in replacement strings.
23466 case $configure_input in #(
23467 *\&* | *\|* | *\\* )
23468 ac_sed_conf_input=`$as_echo "$configure_input" |
23469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23470 *) ac_sed_conf_input=$configure_input;;
23474 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23480 ac_dir=`$as_dirname -- "$ac_file" ||
23481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23482 X"$ac_file" : 'X\(//\)[^/]' \| \
23483 X"$ac_file" : 'X\(//\)$' \| \
23484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23485 $as_echo X"$ac_file" |
23486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23490 /^X\(\/\/\)[^/].*/{
23503 as_dir="$ac_dir"; as_fn_mkdir_p
23507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23510 # A ".." for each directory in $ac_dir_suffix.
23511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23512 case $ac_top_builddir_sub in
23513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23517 ac_abs_top_builddir=$ac_pwd
23518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23519 # for backward compatibility:
23520 ac_top_builddir=$ac_top_build_prefix
23523 .) # We are building in place.
23525 ac_top_srcdir=$ac_top_builddir_sub
23526 ac_abs_top_srcdir=$ac_pwd ;;
23527 [\\/]* | ?:[\\/]* ) # Absolute name.
23528 ac_srcdir=$srcdir$ac_dir_suffix;
23529 ac_top_srcdir=$srcdir
23530 ac_abs_top_srcdir=$srcdir ;;
23531 *) # Relative name.
23532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23533 ac_top_srcdir=$ac_top_build_prefix$srcdir
23534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23548 # If the template does not know about datarootdir, expand it.
23549 # FIXME: This hack should be removed a few years after 2.60.
23550 ac_datarootdir_hack=; ac_datarootdir_seen=
23561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23562 *datarootdir*) ac_datarootdir_seen=yes;;
23563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23568 ac_datarootdir_hack='
23569 s&@datadir@&$datadir&g
23570 s&@docdir@&$docdir&g
23571 s&@infodir@&$infodir&g
23572 s&@localedir@&$localedir&g
23573 s&@mandir@&$mandir&g
23574 s&\\\${datarootdir}&$datarootdir&g' ;;
23578 # Neutralize VPATH when `$srcdir' = `.'.
23579 # Shell code in configure.ac might set extrasub.
23580 # FIXME: do we really want to maintain this feature?
23581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23582 ac_sed_extra="$ac_vpsub
23585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23588 s|@configure_input@|$ac_sed_conf_input|;t t
23589 s&@top_builddir@&$ac_top_builddir_sub&;t t
23590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23591 s&@srcdir@&$ac_srcdir&;t t
23592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23593 s&@top_srcdir@&$ac_top_srcdir&;t t
23594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23595 s&@builddir@&$ac_builddir&;t t
23596 s&@abs_builddir@&$ac_abs_builddir&;t t
23597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23598 $ac_datarootdir_hack
23600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23601 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23604 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23606 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23608 which seems to be undefined. Please make sure it is defined" >&5
23609 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23610 which seems to be undefined. Please make sure it is defined" >&2;}
23612 rm -f "$ac_tmp/stdin"
23614 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23615 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23623 if test x"$ac_file" != x-; then
23625 $as_echo "/* $configure_input */" \
23626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23627 } >"$ac_tmp/config.h" \
23628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23629 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23631 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23634 mv "$ac_tmp/config.h" "$ac_file" \
23635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23638 $as_echo "/* $configure_input */" \
23639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23640 || as_fn_error $? "could not create -" "$LINENO" 5
23644 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23645 $as_echo "$as_me: executing $ac_file commands" >&6;}
23650 case $ac_file$ac_mode in
23653 # See if we are running on zsh, and set the options that allow our
23654 # commands through without removal of \ escapes.
23655 if test -n "${ZSH_VERSION+set}"; then
23656 setopt NO_GLOB_SUBST
23660 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23663 cat <<_LT_EOF >> "$cfgfile"
23665 # Generated automatically by $as_me ($PACKAGE) $VERSION
23666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23667 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23669 # Provide generalized library-building support services.
23670 # Written by Gordon Matzigkeit, 1996
23672 # Copyright (C) 2014 Free Software Foundation, Inc.
23673 # This is free software; see the source for copying conditions. There is NO
23674 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23676 # GNU Libtool is free software; you can redistribute it and/or modify
23677 # it under the terms of the GNU General Public License as published by
23678 # the Free Software Foundation; either version 2 of of the License, or
23679 # (at your option) any later version.
23681 # As a special exception to the GNU General Public License, if you
23682 # distribute this file as part of a program or library that is built
23683 # using GNU Libtool, you may include this file under the same
23684 # distribution terms that you use for the rest of that program.
23686 # GNU Libtool is distributed in the hope that it will be useful, but
23687 # WITHOUT ANY WARRANTY; without even the implied warranty of
23688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23689 # GNU General Public License for more details.
23691 # You should have received a copy of the GNU General Public License
23692 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23695 # The names of the tagged configurations supported by this script.
23698 # Configured defaults for sys_lib_dlsearch_path munging.
23699 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23701 # ### BEGIN LIBTOOL CONFIG
23703 # Which release of libtool.m4 was used?
23704 macro_version=$macro_version
23705 macro_revision=$macro_revision
23707 # Whether or not to build shared libraries.
23708 build_libtool_libs=$enable_shared
23710 # Whether or not to build static libraries.
23711 build_old_libs=$enable_static
23713 # What type of objects to build.
23716 # Whether or not to optimize for fast installation.
23717 fast_install=$enable_fast_install
23719 # Shared archive member basename,for filename based shared library versioning on AIX.
23720 shared_archive_member_spec=$shared_archive_member_spec
23722 # Shell to use when invoking shell scripts.
23725 # An echo program that protects backslashes.
23728 # The PATH separator for the build system.
23729 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23732 host_alias=$host_alias
23736 # The build system.
23737 build_alias=$build_alias
23741 # A sed program that does not truncate output.
23744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23745 Xsed="\$SED -e 1s/^X//"
23747 # A grep program that handles long lines.
23753 # A literal string matcher.
23756 # A BSD- or MS-compatible name lister.
23759 # Whether we need soft or hard links.
23762 # What is the maximum length of a command?
23763 max_cmd_len=$max_cmd_len
23765 # Object file suffix (normally "o").
23768 # Executable file suffix (normally "").
23771 # whether the shell understands "unset".
23774 # turn spaces into newlines.
23777 # turn newlines into spaces.
23780 # convert \$build file names to \$host format.
23781 to_host_file_cmd=$lt_cv_to_host_file_cmd
23783 # convert \$build files to toolchain format.
23784 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23786 # An object symbol dumper.
23787 OBJDUMP=$lt_OBJDUMP
23789 # Method to check whether dependent libraries are shared objects.
23790 deplibs_check_method=$lt_deplibs_check_method
23792 # Command to use when deplibs_check_method = "file_magic".
23793 file_magic_cmd=$lt_file_magic_cmd
23795 # How to find potential files when deplibs_check_method = "file_magic".
23796 file_magic_glob=$lt_file_magic_glob
23798 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23799 want_nocaseglob=$lt_want_nocaseglob
23801 # DLL creation program.
23802 DLLTOOL=$lt_DLLTOOL
23804 # Command to associate shared and link libraries.
23805 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23810 # Flags to create an archive.
23811 AR_FLAGS=$lt_AR_FLAGS
23813 # How to feed a file listing to the archiver.
23814 archiver_list_spec=$lt_archiver_list_spec
23816 # A symbol stripping program.
23819 # Commands used to install an old-style archive.
23821 old_postinstall_cmds=$lt_old_postinstall_cmds
23822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23824 # Whether to use a lock for old archive extraction.
23825 lock_old_archive_extraction=$lock_old_archive_extraction
23830 # LTCC compiler flags.
23831 LTCFLAGS=$lt_CFLAGS
23833 # Take the output of nm and produce a listing of raw symbols and C names.
23834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23836 # Transform the output of nm in a proper C declaration.
23837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23839 # Transform the output of nm into a list of symbols to manually relocate.
23840 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23842 # Transform the output of nm in a C name address pair.
23843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23845 # Transform the output of nm in a C name address pair when lib prefix is needed.
23846 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23848 # The name lister interface.
23849 nm_interface=$lt_lt_cv_nm_interface
23851 # Specify filename containing input files for \$NM.
23852 nm_file_list_spec=$lt_nm_file_list_spec
23854 # The root where to search for dependent libraries,and where our libraries should be installed.
23855 lt_sysroot=$lt_sysroot
23857 # Command to truncate a binary pipe.
23858 lt_truncate_bin=$lt_lt_cv_truncate_bin
23860 # The name of the directory that contains temporary libtool files.
23863 # Used to examine libraries when file_magic_cmd begins with "file".
23864 MAGIC_CMD=$MAGIC_CMD
23866 # Must we lock files when doing compilation?
23867 need_locks=$lt_need_locks
23870 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23872 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23873 DSYMUTIL=$lt_DSYMUTIL
23875 # Tool to change global to local symbols on Mac OS X.
23878 # Tool to manipulate fat objects and archives on Mac OS X.
23881 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23884 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23885 OTOOL64=$lt_OTOOL64
23887 # Old archive suffix (normally "a").
23890 # Shared library suffix (normally ".so").
23891 shrext_cmds=$lt_shrext_cmds
23893 # The commands to extract the exported symbol list from a shared archive.
23894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23896 # Variables whose values should be saved in libtool wrapper scripts and
23897 # restored at link time.
23898 variables_saved_for_relink=$lt_variables_saved_for_relink
23900 # Do we need the "lib" prefix for modules?
23901 need_lib_prefix=$need_lib_prefix
23903 # Do we need a version for libraries?
23904 need_version=$need_version
23906 # Library versioning type.
23907 version_type=$version_type
23909 # Shared library runtime path variable.
23910 runpath_var=$runpath_var
23912 # Shared library path variable.
23913 shlibpath_var=$shlibpath_var
23915 # Is shlibpath searched before the hard-coded library search path?
23916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23918 # Format of library name prefix.
23919 libname_spec=$lt_libname_spec
23921 # List of archive names. First name is the real one, the rest are links.
23922 # The last name is the one that the linker finds with -lNAME
23923 library_names_spec=$lt_library_names_spec
23925 # The coded name of the library, if different from the real name.
23926 soname_spec=$lt_soname_spec
23928 # Permission mode override for installation of shared libraries.
23929 install_override_mode=$lt_install_override_mode
23931 # Command to use after installation of a shared archive.
23932 postinstall_cmds=$lt_postinstall_cmds
23934 # Command to use after uninstallation of a shared archive.
23935 postuninstall_cmds=$lt_postuninstall_cmds
23937 # Commands used to finish a libtool library installation in a directory.
23938 finish_cmds=$lt_finish_cmds
23940 # As "finish_cmds", except a single script fragment to be evaled but
23942 finish_eval=$lt_finish_eval
23944 # Whether we should hardcode library paths into libraries.
23945 hardcode_into_libs=$hardcode_into_libs
23947 # Compile-time system search path for libraries.
23948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23950 # Detected run-time system search path for libraries.
23951 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23953 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23954 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23956 # Whether dlopen is supported.
23957 dlopen_support=$enable_dlopen
23959 # Whether dlopen of programs is supported.
23960 dlopen_self=$enable_dlopen_self
23962 # Whether dlopen of statically linked programs is supported.
23963 dlopen_self_static=$enable_dlopen_self_static
23965 # Commands to strip libraries.
23966 old_striplib=$lt_old_striplib
23967 striplib=$lt_striplib
23970 # The linker used to build libraries.
23973 # How to create reloadable object files.
23974 reload_flag=$lt_reload_flag
23975 reload_cmds=$lt_reload_cmds
23977 # Commands used to build an old-style archive.
23978 old_archive_cmds=$lt_old_archive_cmds
23980 # A language specific compiler.
23983 # Is the compiler the GNU compiler?
23986 # Compiler flag to turn off builtin functions.
23987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23989 # Additional compiler flags for building library objects.
23990 pic_flag=$lt_lt_prog_compiler_pic
23992 # How to pass a linker flag through the compiler.
23993 wl=$lt_lt_prog_compiler_wl
23995 # Compiler flag to prevent dynamic linking.
23996 link_static_flag=$lt_lt_prog_compiler_static
23998 # Does compiler simultaneously support -c and -o options?
23999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24001 # Whether or not to add -lc for building shared libraries.
24002 build_libtool_need_lc=$archive_cmds_need_lc
24004 # Whether or not to disallow shared libs when runtime libs are static.
24005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24007 # Compiler flag to allow reflexive dlopens.
24008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24010 # Compiler flag to generate shared objects directly from archives.
24011 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24013 # Whether the compiler copes with passing no objects directly.
24014 compiler_needs_object=$lt_compiler_needs_object
24016 # Create an old-style archive from a shared archive.
24017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24019 # Create a temporary old-style archive to link instead of a shared archive.
24020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24022 # Commands used to build a shared archive.
24023 archive_cmds=$lt_archive_cmds
24024 archive_expsym_cmds=$lt_archive_expsym_cmds
24026 # Commands used to build a loadable module if different from building
24027 # a shared archive.
24028 module_cmds=$lt_module_cmds
24029 module_expsym_cmds=$lt_module_expsym_cmds
24031 # Whether we are building with GNU ld or not.
24032 with_gnu_ld=$lt_with_gnu_ld
24034 # Flag that allows shared libraries with undefined symbols to be built.
24035 allow_undefined_flag=$lt_allow_undefined_flag
24037 # Flag that enforces no undefined symbols.
24038 no_undefined_flag=$lt_no_undefined_flag
24040 # Flag to hardcode \$libdir into a binary during linking.
24041 # This must work even if \$libdir does not exist
24042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24044 # Whether we need a single "-rpath" flag with a separated argument.
24045 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24047 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24048 # DIR into the resulting binary.
24049 hardcode_direct=$hardcode_direct
24051 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24052 # DIR into the resulting binary and the resulting library dependency is
24053 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24054 # library is relocated.
24055 hardcode_direct_absolute=$hardcode_direct_absolute
24057 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24058 # into the resulting binary.
24059 hardcode_minus_L=$hardcode_minus_L
24061 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24062 # into the resulting binary.
24063 hardcode_shlibpath_var=$hardcode_shlibpath_var
24065 # Set to "yes" if building a shared library automatically hardcodes DIR
24066 # into the library and all subsequent libraries and executables linked
24068 hardcode_automatic=$hardcode_automatic
24070 # Set to yes if linker adds runtime paths of dependent libraries
24071 # to runtime path list.
24072 inherit_rpath=$inherit_rpath
24074 # Whether libtool must link a program against all its dependency libraries.
24075 link_all_deplibs=$link_all_deplibs
24077 # Set to "yes" if exported symbols are required.
24078 always_export_symbols=$always_export_symbols
24080 # The commands to list exported symbols.
24081 export_symbols_cmds=$lt_export_symbols_cmds
24083 # Symbols that should not be listed in the preloaded symbols.
24084 exclude_expsyms=$lt_exclude_expsyms
24086 # Symbols that must always be exported.
24087 include_expsyms=$lt_include_expsyms
24089 # Commands necessary for linking programs (against libraries) with templates.
24090 prelink_cmds=$lt_prelink_cmds
24092 # Commands necessary for finishing linking programs.
24093 postlink_cmds=$lt_postlink_cmds
24095 # Specify filename containing input files.
24096 file_list_spec=$lt_file_list_spec
24098 # How to hardcode a shared library path into an executable.
24099 hardcode_action=$hardcode_action
24101 # ### END LIBTOOL CONFIG
24105 cat <<'_LT_EOF' >> "$cfgfile"
24107 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24109 # func_munge_path_list VARIABLE PATH
24110 # -----------------------------------
24111 # VARIABLE is name of variable containing _space_ separated list of
24112 # directories to be munged by the contents of PATH, which is string
24115 # string "DIR[ DIR]" will be prepended to VARIABLE
24117 # string "DIR[ DIR]" will be appended to VARIABLE
24118 # "DIRP[:DIRP]::[DIRA:]DIRA"
24119 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24120 # "DIRA[ DIRA]" will be appended to VARIABLE
24122 # VARIABLE will be replaced by "DIR[ DIR]"
24123 func_munge_path_list ()
24129 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24132 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24135 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24136 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24139 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24145 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24146 func_cc_basename ()
24148 for cc_temp in $*""; do
24150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24156 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24160 # ### END FUNCTIONS SHARED WITH CONFIGURE
24166 cat <<\_LT_EOF >> "$cfgfile"
24167 # AIX sometimes has problems with the GCC collect2 program. For some
24168 # reason, if we set the COLLECT_NAMES environment variable, the problems
24169 # vanish in a puff of smoke.
24170 if test set != "${COLLECT_NAMES+set}"; then
24172 export COLLECT_NAMES
24179 ltmain=$ac_aux_dir/ltmain.sh
24182 # We use sed instead of cat because bash on DJGPP gets confused if
24183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24184 # text mode, it properly converts lines to CR/LF. This bash problem
24185 # is reportedly fixed, but why not run on old versions too?
24186 sed '$q' "$ltmain" >> "$cfgfile" \
24187 || (rm -f "$cfgfile"; exit 1)
24189 mv -f "$cfgfile" "$ofile" ||
24190 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24195 sed < libtool > libtool-2 \
24196 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
24197 mv libtool-2 libtool
24199 libtool="./libtool"
24208 ac_clean_files=$ac_clean_files_save
24210 test $ac_write_fail = 0 ||
24211 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24214 # configure is writing to config.log, and then calls config.status.
24215 # config.status does its own redirection, appending to config.log.
24216 # Unfortunately, on DOS this fails, as config.log is still kept open
24217 # by configure, so config.status won't be able to write to it; its
24218 # output is simply discarded. So we exec the FD to /dev/null,
24219 # effectively closing config.log, so it can be properly (re)opened and
24220 # appended to by config.status. When coming back to configure, we
24221 # need to make the FD available again.
24222 if test "$no_create" != yes; then
24224 ac_config_status_args=
24225 test "$silent" = yes &&
24226 ac_config_status_args="$ac_config_status_args --quiet"
24228 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24230 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24231 # would make configure fail if this is the last instruction.
24232 $ac_cs_success || as_fn_exit 1
24234 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24236 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}