2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.9.6.
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.9.6'
595 PACKAGE_STRING='unbound 1.9.6'
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
649 ENABLE_DNSCRYPT_XCHACHA20
652 opt_dnstap_socket_path
657 COMMON_OBJ_ALL_SYMBOLS
659 LIBOBJ_WITHOUT_CTIMEARC4
660 WIN_CHECKCONF_OBJ_LINK
662 WIN_UBANCHOR_OBJ_LINK
671 PC_LIBEVENT_DEPENDENCY
672 UNBOUND_EVENT_UNINSTALL
673 UNBOUND_EVENT_INSTALL
705 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
706 SLDNS_ALLOCCHECK_EXTRA_OBJ
710 SYSTEMD_DAEMON_CFLAGS
758 UNBOUND_ROOTCERT_FILE
766 UNBOUND_LOCALSTATE_DIR
782 UNBOUND_VERSION_MICRO
783 UNBOUND_VERSION_MINOR
784 UNBOUND_VERSION_MAJOR
813 program_transform_name
826 enable_option_checking
853 enable_alloc_nonregional
859 enable_swig_version_check
882 with_dnstap_socket_path
893 ac_precious_vars='build_alias
910 SYSTEMD_DAEMON_CFLAGS
915 # Initialize some variables set by options.
917 ac_init_version=false
918 ac_unrecognized_opts=
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name=s,x,x,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 runstatedir='${localstatedir}/run'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
1007 -datadir | --datadir | --datadi | --datad)
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=\$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 htmldir=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1204 -runstatedir | --runstatedir | --runstatedi | --runstated \
1205 | --runstate | --runstat | --runsta | --runst | --runs \
1206 | --run | --ru | --r)
1207 ac_prev=runstatedir ;;
1208 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1209 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1210 | --run=* | --ru=* | --r=*)
1211 runstatedir=$ac_optarg ;;
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217 sbindir=$ac_optarg ;;
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228 sharedstatedir=$ac_optarg ;;
1230 -site | --site | --sit)
1232 -site=* | --site=* | --sit=*)
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1272 eval with_$ac_useropt=\$ac_optarg ;;
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1288 eval with_$ac_useropt=no ;;
1291 # Obsolete; use --with-x.
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' | [0-9]* | *[!_$as_cr_alnum]* )
1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $? "missing argument to $ac_option"
1338 if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 # Check all directory arguments for consistency.
1347 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir runstatedir
1352 eval ac_val=\$$ac_var
1353 # Remove trailing slashes.
1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\$ac_val;;
1359 # Be sure to have absolute directory names.
1361 [\\/$]* | ?:[\\/]* ) continue;;
1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1372 target=$target_alias
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
1378 elif test "x$build_alias" != "x$host_alias"; then
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386 test "$silent" = yes && exec 6>/dev/null
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 as_fn_error $? "pwd does not report name of working directory"
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures unbound 1.9.6 to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 if test -n "$ac_init_help"; then
1528 case $ac_init_help in
1529 short | recursive ) echo "Configuration of unbound 1.9.6:";;
1534 --disable-option-checking ignore unrecognized --enable/--with options
1535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1537 --enable-checking Enable warnings, asserts, makefile-dependencies
1538 --enable-debug same as enable-checking
1539 --disable-flto Disable link-time optimization (gcc specific option)
1540 --enable-pie Enable Position-Independent Executable (eg. to fully
1541 benefit from ASLR, small performance penalty)
1542 --enable-relro-now Enable full relocation binding at load-time (RELRO
1543 NOW, to protect GOT and .dtor areas)
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-static[=PKGS] build static libraries [default=yes]
1546 --enable-fast-install[=PKGS]
1547 optimize for fast installation [default=yes]
1548 --disable-libtool-lock avoid locking (might break parallel builds)
1549 --disable-rpath disable hardcoded rpath (default=enabled)
1550 --disable-largefile omit support for large files
1551 --enable-systemd compile with systemd support
1552 --enable-alloc-checks enable to memory allocation statistics, for debug
1554 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1556 --enable-alloc-nonregional
1557 enable nonregional allocs, slow but exposes regional
1558 allocations to other memory purifiers, for debug
1560 --disable-swig-version-check
1561 Disable swig version check to build python modules
1562 with older swig even though that is unreliable
1563 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1565 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1566 --enable-subnet Enable client subnet
1567 --disable-gost Disable GOST support
1568 --disable-ecdsa Disable ECDSA support
1569 --disable-dsa Disable DSA support
1570 --disable-ed25519 Disable ED25519 support
1571 --disable-ed448 Disable ED448 support
1572 --enable-event-api Enable (experimental) pluggable event base
1573 libunbound API installed to unbound-event.h
1574 --enable-tfo-client Enable TCP Fast Open for client mode
1575 --enable-tfo-server Enable TCP Fast Open for server mode
1576 --enable-static-exe enable to compile executables statically against
1577 (event) uninstalled libs, for debug purposes
1578 --enable-fully-static enable to compile fully static
1579 --enable-lock-checks enable to check lock and unlock calls, for debug
1581 --enable-allsymbols export all symbols from libunbound and link binaries
1582 to it, smaller install size but libunbound export
1583 table is polluted by internal symbols
1584 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1585 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1586 --enable-cachedb enable cachedb module that can use external cache
1588 --enable-ipsecmod Enable ipsecmod module that facilitates
1590 --enable-ipset enable ipset module
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-conf-file=path Pathname to the Unbound configuration file
1596 --with-run-dir=path set default directory to chdir to (by default dir
1598 --with-chroot-dir=path set default directory to chroot to (by default same
1600 --with-share-dir=path set default directory with shared data (by default
1601 same as share/unbound)
1602 --with-pidfile=filename set default pathname to unbound pidfile (default
1603 run-dir/unbound.pid)
1604 --with-rootkey-file=filename
1605 set default pathname to root key file (default
1606 run-dir/root.key). This file is read and written.
1607 --with-rootcert-file=filename
1608 set default pathname to root update certificate file
1609 (default run-dir/icannbundle.pem). This file need
1610 not exist if you are content with the builtin.
1611 --with-username=user set default user that unbound changes to (default
1613 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1615 --with-aix-soname=aix|svr4|both
1616 shared library versioning (aka "SONAME") variant to
1617 provide on AIX, [default=aix].
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1620 compiler's sysroot if not specified).
1621 --with-pthreads use pthreads library, or --without-pthreads to
1622 disable threading support.
1623 --with-solaris-threads use solaris native thread library.
1624 --with-syslog-facility=LOCAL0 - LOCAL7
1625 set SYSLOG_FACILITY, default DAEMON
1626 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1628 --with-pythonmodule build Python module, or --without-pythonmodule to
1629 disable script engine. (default=no)
1630 --with-nss=path use libnss instead of openssl, installed at path.
1631 --with-nettle=path use libnettle as crypto library, installed at path.
1632 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1633 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1635 --with-libevent=pathname
1636 use libevent (will check /usr/local /opt/local
1637 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1638 an explicit path). Slower, but allows use of large
1639 outgoing port ranges.
1640 --with-libexpat=path specify explicit path for libexpat.
1641 --with-libhiredis=path specify explicit path for libhiredis.
1642 --with-dnstap-socket-path=pathname
1643 set default dnstap socket path
1644 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1645 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1646 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1647 --with-libmnl=path specify explicit path for libmnl.
1648 --with-libunbound-only do not build daemon and tool programs
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1659 YACC The `Yet Another Compiler Compiler' implementation to use.
1660 Defaults to the first program found out of: `bison -y', `byacc',
1662 YFLAGS The list of arguments that will be passed by default to $YACC.
1663 This script will default YFLAGS to the empty string to avoid a
1664 default value of `-d' given by some make applications.
1666 User-defined run-time library search path.
1667 PKG_CONFIG path to pkg-config utility
1669 directories to add to pkg-config's search path
1671 path overriding pkg-config's built-in search path
1673 C compiler flags for SYSTEMD, overriding pkg-config
1675 linker flags for SYSTEMD, overriding pkg-config
1676 SYSTEMD_DAEMON_CFLAGS
1677 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1679 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1681 The installed Python version to use, for example '2.3'. This
1682 string will be appended to the Python interpreter canonical
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1688 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1718 .) # We are building in place.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1751 unbound configure 1.9.6
1752 generated by GNU Autoconf 2.69
1754 Copyright (C) 2012 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_compile
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
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
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1845 ac_fn_c_check_header_mongrel ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval \${$3+:} false; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_header_compiler=yes
1869 ac_header_compiler=no
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883 ac_header_preproc=yes
1885 ac_header_preproc=no
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1891 # So? What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1911 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1912 ## --------------------------------------------------------------------------------------- ##"
1913 ) | sed "s/^/$as_me: WARNING: /" >&2
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_try_run LINENO
1932 # ----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934 # that executables *can* be run.
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>&5
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949 { { case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_try") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; }; }; then :
1961 $as_echo "$as_me: program exited with status $ac_status" >&5
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=$ac_status
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1973 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists and can be compiled using the include files in
1976 # INCLUDES, setting the cache variable VAR accordingly.
1977 ac_fn_c_check_header_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_c_try_compile "$LINENO"; then :
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_compile
2004 # ac_fn_c_try_link LINENO
2005 # -----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_c_try_link
2050 # ac_fn_c_check_func LINENO FUNC VAR
2051 # ----------------------------------
2052 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2053 ac_fn_c_check_func ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2065 #define $2 innocuous_$2
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $2 (); below.
2069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2070 <limits.h> exists even on freestanding compilers. */
2073 # include <limits.h>
2075 # include <assert.h>
2080 /* Override any GCC internal prototype to avoid an error.
2081 Use char because int might match the return type of a GCC
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined __stub_$2 || defined __stub___$2
2102 if ac_fn_c_try_link "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext \
2108 conftest$ac_exeext conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 } # ac_fn_c_check_func
2117 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2118 # -------------------------------------------
2119 # Tests whether TYPE exists after having included INCLUDES, setting cache
2120 # variable VAR accordingly.
2121 ac_fn_c_check_type ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_type
2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172 # --------------------------------------------
2173 # Tries to find the compile-time value of EXPR in a program that includes
2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 ac_fn_c_compute_int ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) >= 0)];
2189 return test_array [0];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 return test_array [0];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) < 0)];
2233 return test_array [0];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250 return test_array [0];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 return test_array [0];
2291 if ac_fn_c_try_compile "$LINENO"; then :
2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2306 static long int longval () { return $2; }
2307 static unsigned long int ulongval () { return $2; }
2314 FILE *f = fopen ("conftest.val", "w");
2319 long int i = longval ();
2322 fprintf (f, "%ld", i);
2326 unsigned long int i = ulongval ();
2329 fprintf (f, "%lu", i);
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2339 if ac_fn_c_try_run "$LINENO"; then :
2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2345 conftest.$ac_objext conftest.beam conftest.$ac_ext
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 as_fn_set_status $ac_retval
2352 } # ac_fn_c_compute_int
2354 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2355 # ---------------------------------------------
2356 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2358 ac_fn_c_check_decl ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 as_decl_name=`echo $2|sed 's/ *(.*//'`
2362 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2364 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2365 if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2374 #ifndef $as_decl_name
2376 (void) $as_decl_use;
2378 (void) $as_decl_name;
2386 if ac_fn_c_try_compile "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 } # ac_fn_c_check_decl
2400 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2401 # ----------------------------------------------------
2402 # Tries to find if the field MEMBER exists in type AGGR, after including
2403 # INCLUDES, setting cache variable VAR accordingly.
2404 ac_fn_c_check_member ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2408 $as_echo_n "checking for $2.$3... " >&6; }
2409 if eval \${$4+:} false; then :
2410 $as_echo_n "(cached) " >&6
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2425 if ac_fn_c_try_compile "$LINENO"; then :
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2435 if (sizeof ac_aggr.$3)
2441 if ac_fn_c_try_compile "$LINENO"; then :
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_member
2456 cat >config.log <<_ACEOF
2457 This file contains any messages produced by compilers while
2458 running configure, to aid debugging if configure makes a mistake.
2460 It was created by unbound $as_me 1.9.6, which was
2461 generated by GNU Autoconf 2.69. Invocation command line was
2473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 $as_echo "PATH: $as_dir"
2513 # Keep a trace of the command line.
2514 # Strip out --no-create and --no-recursion so they do not pile up.
2515 # Strip out --silent because we don't want to record it for future runs.
2516 # Also quote any args containing shell meta-characters.
2517 # Make two passes to allow for proper duplicate-argument suppression.
2521 ac_must_keep_next=false
2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2529 | -silent | --silent | --silen | --sile | --sil)
2532 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2537 as_fn_append ac_configure_args1 " '$ac_arg'"
2538 if test $ac_must_keep_next = true; then
2539 ac_must_keep_next=false # Got value, back to normal.
2542 *=* | --config-cache | -C | -disable-* | --disable-* \
2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2545 | -with-* | --with-* | -without-* | --without-* | --x)
2546 case "$ac_configure_args0 " in
2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550 -* ) ac_must_keep_next=true ;;
2553 as_fn_append ac_configure_args " '$ac_arg'"
2558 { ac_configure_args0=; unset ac_configure_args0;}
2559 { ac_configure_args1=; unset ac_configure_args1;}
2561 # When interrupted or exit'd, cleanup temporary files, and complete
2562 # config.log. We remove comments because anyway the quotes in there
2563 # would cause problems or look ugly.
2564 # WARNING: Use '\'' to represent an apostrophe within the trap.
2565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2566 trap 'exit_status=$?
2567 # Save into config.log some information that might help in debugging.
2571 $as_echo "## ---------------- ##
2572 ## Cache variables. ##
2573 ## ---------------- ##"
2575 # The following way of writing the cache mishandles newlines in values,
2577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2578 eval ac_val=\$$ac_var
2582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2586 _ | IFS | as_nl) ;; #(
2587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2588 *) { eval $ac_var=; unset $ac_var;} ;;
2593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2594 *${as_nl}ac_space=\ *)
2596 "s/'\''/'\''\\\\'\'''\''/g;
2597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2607 $as_echo "## ----------------- ##
2608 ## Output variables. ##
2609 ## ----------------- ##"
2611 for ac_var in $ac_subst_vars
2613 eval ac_val=\$$ac_var
2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 $as_echo "$ac_var='\''$ac_val'\''"
2621 if test -n "$ac_subst_files"; then
2622 $as_echo "## ------------------- ##
2623 ## File substitutions. ##
2624 ## ------------------- ##"
2626 for ac_var in $ac_subst_files
2628 eval ac_val=\$$ac_var
2630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 $as_echo "$ac_var='\''$ac_val'\''"
2637 if test -s confdefs.h; then
2638 $as_echo "## ----------- ##
2645 test "$ac_signal" != 0 &&
2646 $as_echo "$as_me: caught signal $ac_signal"
2647 $as_echo "$as_me: exit $exit_status"
2649 rm -f core *.core core.conftest.* &&
2650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2653 for ac_signal in 1 2 13 15; do
2654 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2659 rm -f -r conftest* confdefs.h
2661 $as_echo "/* confdefs.h */" > confdefs.h
2663 # Predefined preprocessor variables.
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_NAME "$PACKAGE_NAME"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_STRING "$PACKAGE_STRING"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_URL "$PACKAGE_URL"
2690 # Let the site file select an alternate cache file if it wants to.
2691 # Prefer an explicitly selected file to automatically selected ones.
2694 if test -n "$CONFIG_SITE"; then
2695 # We do not want a PATH search for config.site.
2696 case $CONFIG_SITE in #((
2697 -*) ac_site_file1=./$CONFIG_SITE;;
2698 */*) ac_site_file1=$CONFIG_SITE;;
2699 *) ac_site_file1=./$CONFIG_SITE;;
2701 elif test "x$prefix" != xNONE; then
2702 ac_site_file1=$prefix/share/config.site
2703 ac_site_file2=$prefix/etc/config.site
2705 ac_site_file1=$ac_default_prefix/share/config.site
2706 ac_site_file2=$ac_default_prefix/etc/config.site
2708 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2710 test "x$ac_site_file" = xNONE && continue
2711 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2713 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2714 sed 's/^/| /' "$ac_site_file" >&5
2716 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 as_fn_error $? "failed to load site script $ac_site_file
2719 See \`config.log' for more details" "$LINENO" 5; }
2723 if test -r "$cache_file"; then
2724 # Some versions of bash will fail to source /dev/null (special files
2725 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2726 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2728 $as_echo "$as_me: loading cache $cache_file" >&6;}
2730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2731 *) . "./$cache_file";;
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2736 $as_echo "$as_me: creating cache $cache_file" >&6;}
2740 # Check that the precious variables saved in the cache have kept the same
2742 ac_cache_corrupted=false
2743 for ac_var in $ac_precious_vars; do
2744 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2745 eval ac_new_set=\$ac_env_${ac_var}_set
2746 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2747 eval ac_new_val=\$ac_env_${ac_var}_value
2748 case $ac_old_set,$ac_new_set in
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2751 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2752 ac_cache_corrupted=: ;;
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2756 ac_cache_corrupted=: ;;
2759 if test "x$ac_old_val" != "x$ac_new_val"; then
2760 # differences in whitespace do not lead to failure.
2761 ac_old_val_w=`echo x $ac_old_val`
2762 ac_new_val_w=`echo x $ac_new_val`
2763 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2765 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2766 ac_cache_corrupted=:
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2769 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2770 eval $ac_var=\$ac_old_val
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2773 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2775 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2778 # Pass precious variables to config.status.
2779 if test "$ac_new_set" = set; then
2781 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 *) ac_arg=$ac_var=$ac_new_val ;;
2784 case " $ac_configure_args " in
2785 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2786 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2790 if $ac_cache_corrupted; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2794 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2795 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2797 ## -------------------- ##
2798 ## Main body of script. ##
2799 ## -------------------- ##
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 UNBOUND_VERSION_MAJOR=1
2810 UNBOUND_VERSION_MINOR=9
2812 UNBOUND_VERSION_MICRO=6
2815 LIBUNBOUND_CURRENT=9
2816 LIBUNBOUND_REVISION=6
2825 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2830 # 1.4.0-snapshots had 1:5:0
2831 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2845 # and 1.4.13p1 and 1.4.13.p2
2847 # 1.4.15 had 3:0:1 # adds ub_version()
2852 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2855 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2863 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2867 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2879 # 1.8.0 had 8:0:0 # changes the event callback function signature
2883 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2891 # Current -- the number of the binary API that we're implementing
2892 # Revision -- which iteration of the implementation of the binary
2893 # API are we supplying?
2894 # Age -- How many previous binary API versions do we also
2897 # If we release a new version that does not change the binary API,
2898 # increment Revision.
2900 # If we release a new version that changes the binary API, but does
2901 # not break programs compiled against the old binary API, increment
2902 # Current and Age. Set Revision to 0, since this is the first
2903 # implementation of the new API.
2905 # Otherwise, we're changing the binary API and breaking backward
2906 # compatibility with old binaries. Increment Current. Set Age to 0,
2907 # since we're backward compatible with no previous APIs. Set Revision
2914 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2916 cat >>confdefs.h <<_ACEOF
2917 #define CONFCMDLINE "$cmdln"
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2966 if test -z "$ac_cv_prog_CC"; then
2968 # Extract the first word of "gcc", so it can be a program name with args.
2969 set dummy gcc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CC="gcc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3004 if test "x$ac_ct_CC" = x; then
3007 case $cross_compiling:$ac_tool_warned in
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3060 if test -z "$CC"; then
3061 # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080 ac_prog_rejected=yes
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test $ac_prog_rejected = yes; then
3092 # We found a bogon in the path, so make sure we never use it.
3093 set dummy $ac_cv_prog_CC
3095 if test $# != 0; then
3096 # We chose a different compiler from the bogus one.
3097 # However, it has the same basename, so the bogon will be chosen
3098 # first if we set CC to just the basename; use the full file name.
3100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$CC" && break
3160 if test -z "$CC"; then
3162 for ac_prog in cl.exe
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CC="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$ac_ct_CC" && break
3204 if test "x$ac_ct_CC" = x; then
3207 case $cross_compiling:$ac_tool_warned in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3220 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error $? "no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details" "$LINENO" 5; }
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3229 for ac_option in --version -v -V -qversion; do
3230 { { ac_try="$ac_compiler $ac_option >&5"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239 if test -s conftest.err; then
3241 ... rest of stderr output deleted ...
3242 10q' conftest.err >conftest.er1
3243 cat conftest.er1 >&5
3245 rm -f conftest.er1 conftest.err
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3267 $as_echo_n "checking whether the C compiler works... " >&6; }
3268 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270 # The possible output files:
3271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3274 for ac_file in $ac_files
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3283 if { { ac_try="$ac_link_default"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link_default") 2>&5
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3299 for ac_file in $ac_files ''
3301 test -f "$ac_file" || continue
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306 # We found the default executable, but exeext='' is most
3310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 # We set ac_cv_exeext here because the later test for it is not
3315 # safe: cross compilers may not add the suffix if given an `-o'
3316 # argument, so we may need to know it at that point already.
3317 # Even if this section looks crufty: it has the advantage of
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329 if test -z "$ac_file"; then :
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error 77 "C compiler cannot create executables
3338 See \`config.log' for more details" "$LINENO" 5; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3344 $as_echo_n "checking for C compiler default output file name... " >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3346 $as_echo "$ac_file" >&6; }
3347 ac_exeext=$ac_cv_exeext
3349 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3352 $as_echo_n "checking for suffix of executables... " >&6; }
3353 if { { ac_try="$ac_link"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3366 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 for ac_file in conftest.exe conftest conftest.*; do
3369 test -f "$ac_file" || continue
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 rm -f conftest conftest$ac_cv_exeext
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3385 $as_echo "$ac_cv_exeext" >&6; }
3387 rm -f conftest.$ac_ext
3388 EXEEXT=$ac_cv_exeext
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3396 FILE *f = fopen ("conftest.out", "w");
3397 return ferror (f) || fclose (f) != 0;
3403 ac_clean_files="$ac_clean_files conftest.out"
3404 # Check that the compiler produces executables we can run. If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 if test "$cross_compiling" != yes; then
3409 { { ac_try="$ac_link"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420 if { ac_try='./conftest$ac_cv_exeext'
3421 { { case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_try") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; }; then
3433 if test "$cross_compiling" = maybe; then
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot run C compiled programs.
3439 If you meant to cross compile, use \`--host'.
3440 See \`config.log' for more details" "$LINENO" 5; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3445 $as_echo "$cross_compiling" >&6; }
3447 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3450 $as_echo_n "checking for suffix of object files... " >&6; }
3451 if ${ac_cv_objext+:} false; then :
3452 $as_echo_n "(cached) " >&6
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3465 rm -f conftest.o conftest.obj
3466 if { { ac_try="$ac_compile"
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compile") 2>&5
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details" "$LINENO" 5; }
3494 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3497 $as_echo "$ac_cv_objext" >&6; }
3498 OBJEXT=$ac_cv_objext
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3502 if ${ac_cv_c_compiler_gnu+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3530 if test $ac_compiler_gnu = yes; then
3535 ac_test_CFLAGS=${CFLAGS+set}
3536 ac_save_CFLAGS=$CFLAGS
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3539 if ${ac_cv_prog_cc_g+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 ac_save_c_werror_flag=$ac_c_werror_flag
3543 ac_c_werror_flag=yes
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3572 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile "$LINENO"; then :
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3599 $as_echo "$ac_cv_prog_cc_g" >&6; }
3600 if test "$ac_test_CFLAGS" = set; then
3601 CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603 if test "$GCC" = yes; then
3609 if test "$GCC" = yes; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3617 if ${ac_cv_prog_cc_c89+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 ac_cv_prog_cc_c89=no
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3628 struct buf { int x; };
3629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630 static char *e (p, i)
3636 static char *f (char * (*g) (char **, int), char **p, ...)
3641 s = g (p, va_arg (v,int));
3646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3647 function prototypes and stuff, but not '\xHH' hex character constants.
3648 These don't provoke an error unfortunately, instead are silently treated
3649 as 'x'. The following induces an error, until -std is added to get
3650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3651 array size at least. It's necessary to write '\x00'==0 to get something
3652 that's true only with -std. */
3653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656 inside strings and character constants. */
3658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3677 CC="$ac_save_CC $ac_arg"
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_cv_prog_cc_c89=$ac_arg
3681 rm -f core conftest.err conftest.$ac_objext
3682 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 rm -f conftest.$ac_ext
3689 case "x$ac_cv_prog_cc_c89" in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3692 $as_echo "none needed" >&6; } ;;
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3695 $as_echo "unsupported" >&6; } ;;
3697 CC="$CC $ac_cv_prog_cc_c89"
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3701 if test "x$ac_cv_prog_cc_c89" != xno; then :
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3718 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3719 # On Suns, sometimes $CPP names a directory.
3720 if test -n "$CPP" && test -d "$CPP"; then
3723 if test -z "$CPP"; then
3724 if ${ac_cv_prog_CPP+:} false; then :
3725 $as_echo_n "(cached) " >&6
3727 # Double quotes because CPP needs to be expanded
3728 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3731 for ac_c_preproc_warn_flag in '' yes
3733 # Use a header file that comes with gcc, so configuring glibc
3734 # with a fresh cross-compiler works.
3735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736 # <limits.h> exists even on freestanding compilers.
3737 # On the NeXT, cc -E runs the code through the compiler's parser,
3738 # not just through cpp. "Syntax error" is here to catch this case.
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3742 # include <limits.h>
3744 # include <assert.h>
3748 if ac_fn_c_try_cpp "$LINENO"; then :
3751 # Broken: fails on valid input.
3754 rm -f conftest.err conftest.i conftest.$ac_ext
3756 # OK, works on sane cases. Now check whether nonexistent headers
3757 # can be detected and how.
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <ac_nonexistent.h>
3762 if ac_fn_c_try_cpp "$LINENO"; then :
3763 # Broken: success on invalid input.
3766 # Passes both tests.
3770 rm -f conftest.err conftest.i conftest.$ac_ext
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.i conftest.err conftest.$ac_ext
3775 if $ac_preproc_ok; then :
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3788 $as_echo "$CPP" >&6; }
3790 for ac_c_preproc_warn_flag in '' yes
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3801 # include <limits.h>
3803 # include <assert.h>
3807 if ac_fn_c_try_cpp "$LINENO"; then :
3810 # Broken: fails on valid input.
3813 rm -f conftest.err conftest.i conftest.$ac_ext
3815 # OK, works on sane cases. Now check whether nonexistent headers
3816 # can be detected and how.
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3821 if ac_fn_c_try_cpp "$LINENO"; then :
3822 # Broken: success on invalid input.
3825 # Passes both tests.
3829 rm -f conftest.err conftest.i conftest.$ac_ext
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.i conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then :
3837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3840 See \`config.log' for more details" "$LINENO" 5; }
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3851 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3852 if ${ac_cv_path_GREP+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -z "$GREP"; then
3856 ac_path_GREP_found=false
3857 # Loop through the user's path and test for each of PROGNAME-LIST
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3862 test -z "$as_dir" && as_dir=.
3863 for ac_prog in grep ggrep; do
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3866 as_fn_executable_p "$ac_path_GREP" || continue
3867 # Check for GNU ac_path_GREP and select it if it is found.
3868 # Check for GNU $ac_path_GREP
3869 case `"$ac_path_GREP" --version 2>&1` in
3871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3874 $as_echo_n 0123456789 >"conftest.in"
3877 cat "conftest.in" "conftest.in" >"conftest.tmp"
3878 mv "conftest.tmp" "conftest.in"
3879 cp "conftest.in" "conftest.nl"
3880 $as_echo 'GREP' >> "conftest.nl"
3881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3883 as_fn_arith $ac_count + 1 && ac_count=$as_val
3884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3885 # Best one so far, save it but keep looking for a better one
3886 ac_cv_path_GREP="$ac_path_GREP"
3887 ac_path_GREP_max=$ac_count
3889 # 10*(2^10) chars as input seems more than enough
3890 test $ac_count -gt 10 && break
3892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3895 $ac_path_GREP_found && break 3
3900 if test -z "$ac_cv_path_GREP"; then
3901 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3904 ac_cv_path_GREP=$GREP
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3909 $as_echo "$ac_cv_path_GREP" >&6; }
3910 GREP="$ac_cv_path_GREP"
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3914 $as_echo_n "checking for egrep... " >&6; }
3915 if ${ac_cv_path_EGREP+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3919 then ac_cv_path_EGREP="$GREP -E"
3921 if test -z "$EGREP"; then
3922 ac_path_EGREP_found=false
3923 # Loop through the user's path and test for each of PROGNAME-LIST
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3928 test -z "$as_dir" && as_dir=.
3929 for ac_prog in egrep; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3932 as_fn_executable_p "$ac_path_EGREP" || continue
3933 # Check for GNU ac_path_EGREP and select it if it is found.
3934 # Check for GNU $ac_path_EGREP
3935 case `"$ac_path_EGREP" --version 2>&1` in
3937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3940 $as_echo_n 0123456789 >"conftest.in"
3943 cat "conftest.in" "conftest.in" >"conftest.tmp"
3944 mv "conftest.tmp" "conftest.in"
3945 cp "conftest.in" "conftest.nl"
3946 $as_echo 'EGREP' >> "conftest.nl"
3947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3949 as_fn_arith $ac_count + 1 && ac_count=$as_val
3950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3951 # Best one so far, save it but keep looking for a better one
3952 ac_cv_path_EGREP="$ac_path_EGREP"
3953 ac_path_EGREP_max=$ac_count
3955 # 10*(2^10) chars as input seems more than enough
3956 test $ac_count -gt 10 && break
3958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961 $ac_path_EGREP_found && break 3
3966 if test -z "$ac_cv_path_EGREP"; then
3967 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3970 ac_cv_path_EGREP=$EGREP
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3976 $as_echo "$ac_cv_path_EGREP" >&6; }
3977 EGREP="$ac_cv_path_EGREP"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3981 $as_echo_n "checking for ANSI C header files... " >&6; }
3982 if ${ac_cv_header_stdc+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001 ac_cv_header_stdc=yes
4003 ac_cv_header_stdc=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4015 $EGREP "memchr" >/dev/null 2>&1; then :
4018 ac_cv_header_stdc=no
4024 if test $ac_cv_header_stdc = yes; then
4025 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "free" >/dev/null 2>&1; then :
4035 ac_cv_header_stdc=no
4041 if test $ac_cv_header_stdc = yes; then
4042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4043 if test "$cross_compiling" = yes; then :
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 #if ((' ' & 0x0FF) == 0x020)
4051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4054 # define ISLOWER(c) \
4055 (('a' <= (c) && (c) <= 'i') \
4056 || ('j' <= (c) && (c) <= 'r') \
4057 || ('s' <= (c) && (c) <= 'z'))
4058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4066 for (i = 0; i < 256; i++)
4067 if (XOR (islower (i), ISLOWER (i))
4068 || toupper (i) != TOUPPER (i))
4073 if ac_fn_c_try_run "$LINENO"; then :
4076 ac_cv_header_stdc=no
4078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4079 conftest.$ac_objext conftest.beam conftest.$ac_ext
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4085 $as_echo "$ac_cv_header_stdc" >&6; }
4086 if test $ac_cv_header_stdc = yes; then
4088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4094 inttypes.h stdint.h unistd.h
4096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4100 cat >>confdefs.h <<_ACEOF
4101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4111 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4118 if test "$MINIX" = yes; then
4120 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4123 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4126 $as_echo "#define _MINIX 1" >>confdefs.h
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4132 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4133 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4139 # define __EXTENSIONS__ 1
4140 $ac_includes_default
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_safe_to_define___extensions__=yes
4152 ac_cv_safe_to_define___extensions__=no
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4157 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4158 test $ac_cv_safe_to_define___extensions__ = yes &&
4159 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4161 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4163 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4165 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4167 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4171 if test "$ac_cv_header_minix_config_h" = "yes"; then
4173 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4182 case "$exec_prefix" in
4184 exec_prefix="$prefix"
4189 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4191 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4192 else on_mingw="no"; fi
4196 # Determine configuration file
4197 # the eval is to evaluate shell expansion twice
4198 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4200 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4202 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4204 if test $on_mingw = "no"; then
4205 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4207 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4210 # Check whether --with-conf_file was given.
4211 if test "${with_conf_file+set}" = set; then :
4212 withval=$with_conf_file; ub_conf_file="$withval"
4216 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4219 cat >>confdefs.h <<_ACEOF
4220 #define CONFIGFILE "$hdr_config"
4223 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4224 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4225 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4226 X"$ub_conf_file" : 'X\(//\)$' \| \
4227 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4228 $as_echo X"$ub_conf_file" |
4229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4248 # Determine run, chroot directory and pidfile locations
4250 # Check whether --with-run-dir was given.
4251 if test "${with_run_dir+set}" = set; then :
4252 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4254 if test $on_mingw = no; then
4255 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4263 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4266 cat >>confdefs.h <<_ACEOF
4267 #define RUN_DIR "$hdr_run"
4272 # Check whether --with-chroot-dir was given.
4273 if test "${with_chroot_dir+set}" = set; then :
4274 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4276 if test $on_mingw = no; then
4277 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4279 UNBOUND_CHROOT_DIR=""
4285 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4288 cat >>confdefs.h <<_ACEOF
4289 #define CHROOT_DIR "$hdr_chroot"
4294 # Check whether --with-share-dir was given.
4295 if test "${with_share_dir+set}" = set; then :
4296 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4298 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4303 cat >>confdefs.h <<_ACEOF
4304 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4309 # Check whether --with-pidfile was given.
4310 if test "${with_pidfile+set}" = set; then :
4311 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4313 if test $on_mingw = no; then
4314 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4322 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4325 cat >>confdefs.h <<_ACEOF
4326 #define PIDFILE "$hdr_pid"
4331 # Check whether --with-rootkey-file was given.
4332 if test "${with_rootkey_file+set}" = set; then :
4333 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4335 if test $on_mingw = no; then
4336 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4338 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4344 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4347 cat >>confdefs.h <<_ACEOF
4348 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4353 # Check whether --with-rootcert-file was given.
4354 if test "${with_rootcert_file+set}" = set; then :
4355 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4357 if test $on_mingw = no; then
4358 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4360 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4366 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4369 cat >>confdefs.h <<_ACEOF
4370 #define ROOT_CERT_FILE "$hdr_rpem"
4375 # Check whether --with-username was given.
4376 if test "${with_username+set}" = set; then :
4377 withval=$with_username; UNBOUND_USERNAME="$withval"
4379 UNBOUND_USERNAME="unbound"
4384 cat >>confdefs.h <<_ACEOF
4385 #define UB_USERNAME "$UNBOUND_USERNAME"
4390 $as_echo "#define WINVER 0x0502" >>confdefs.h
4392 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/' `
4395 cat >>confdefs.h <<_ACEOF
4396 #define RSRC_PACKAGE_VERSION $wnvs
4400 # Checks for typedefs, structures, and compiler characteristics.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4402 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4403 if ${ac_cv_c_const+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4414 /* Ultrix mips cc rejects this sort of thing. */
4415 typedef int charset[2];
4416 const charset cs = { 0, 0 };
4417 /* SunOS 4.1.1 cc rejects this. */
4418 char const *const *pcpcc;
4420 /* NEC SVR4.0.2 mips cc rejects this. */
4421 struct point {int x, y;};
4422 static struct point const zero = {0,0};
4423 /* AIX XL C 1.02.0.0 rejects this.
4424 It does not let you subtract one const X* pointer from another in
4425 an arm of an if-expression whose if-part is not a constant
4427 const char *g = "string";
4428 pcpcc = &g + (g ? g-g : 0);
4429 /* HPUX 7.0 cc rejects these. */
4431 ppc = (char**) pcpcc;
4432 pcpcc = (char const *const *) ppc;
4433 { /* SCO 3.2v4 cc rejects this sort of thing. */
4436 char const *s = 0 ? (char *) 0 : (char const *) 0;
4441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4443 const int *foo = &x[0];
4446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4447 typedef const int *iptr;
4451 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4453 struct s { int j; const int *ap[3]; } bx;
4454 struct s *b = &bx; b->j = 5;
4456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4460 return !cs[0] && !zero.x;
4467 if ac_fn_c_try_compile "$LINENO"; then :
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4475 $as_echo "$ac_cv_c_const" >&6; }
4476 if test $ac_cv_c_const = no; then
4478 $as_echo "#define const /**/" >>confdefs.h
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 # allow user to override the -g -O2 flags.
4490 if test "x$CFLAGS" = "x" ; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4494 $as_echo_n "checking whether $CC supports -g... " >&6; }
4495 cache=`echo g | sed 'y%.=/+-%___p_%'`
4496 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4497 $as_echo_n "(cached) " >&6
4500 echo 'void f(void){}' >conftest.c
4501 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4502 eval "cv_prog_cc_flag_$cache=yes"
4504 eval "cv_prog_cc_flag_$cache=no"
4506 rm -f conftest conftest.o conftest.c
4510 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512 $as_echo "yes" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4525 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4526 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4527 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4528 $as_echo_n "(cached) " >&6
4531 echo 'void f(void){}' >conftest.c
4532 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4533 eval "cv_prog_cc_flag_$cache=yes"
4535 eval "cv_prog_cc_flag_$cache=no"
4537 rm -f conftest conftest.o conftest.c
4541 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543 $as_echo "yes" >&6; }
4545 CFLAGS="$CFLAGS -O2"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if ${ac_cv_prog_CC+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4599 if test -z "$ac_cv_prog_CC"; then
4601 # Extract the first word of "gcc", so it can be a program name with args.
4602 set dummy gcc; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$ac_ct_CC"; then
4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_ac_ct_CC="gcc"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629 if test -n "$ac_ct_CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631 $as_echo "$ac_ct_CC" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4637 if test "x$ac_ct_CC" = x; then
4640 case $cross_compiling:$ac_tool_warned in
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4652 if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}cc; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_prog_CC+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_CC="${ac_tool_prefix}cc"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 if test -n "$CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684 $as_echo "$CC" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4693 if test -z "$CC"; then
4694 # Extract the first word of "cc", so it can be a program name with args.
4695 set dummy cc; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if ${ac_cv_prog_CC+:} false; then :
4699 $as_echo_n "(cached) " >&6
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713 ac_prog_rejected=yes
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 if test $ac_prog_rejected = yes; then
4725 # We found a bogon in the path, so make sure we never use it.
4726 set dummy $ac_cv_prog_CC
4728 if test $# != 0; then
4729 # We chose a different compiler from the bogus one.
4730 # However, it has the same basename, so the bogon will be chosen
4731 # first if we set CC to just the basename; use the full file name.
4733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4749 if test -z "$CC"; then
4750 if test -n "$ac_tool_prefix"; then
4751 for ac_prog in cl.exe
4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_CC+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4790 test -n "$CC" && break
4793 if test -z "$CC"; then
4795 for ac_prog in cl.exe
4797 # Extract the first word of "$ac_prog", so it can be a program name with args.
4798 set dummy $ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$ac_ct_CC"; then
4805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_ac_ct_CC="$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4825 if test -n "$ac_ct_CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827 $as_echo "$ac_ct_CC" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$ac_ct_CC" && break
4837 if test "x$ac_ct_CC" = x; then
4840 case $cross_compiling:$ac_tool_warned in
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844 ac_tool_warned=yes ;;
4853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error $? "no acceptable C compiler found in \$PATH
4856 See \`config.log' for more details" "$LINENO" 5; }
4858 # Provide some information about the compiler.
4859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4862 for ac_option in --version -v -V -qversion; do
4863 { { ac_try="$ac_compiler $ac_option >&5"
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4872 if test -s conftest.err; then
4874 ... rest of stderr output deleted ...
4875 10q' conftest.err >conftest.er1
4876 cat conftest.er1 >&5
4878 rm -f conftest.er1 conftest.err
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880 test $ac_status = 0; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885 if ${ac_cv_c_compiler_gnu+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4902 if ac_fn_c_try_compile "$LINENO"; then :
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913 if test $ac_compiler_gnu = yes; then
4918 ac_test_CFLAGS=${CFLAGS+set}
4919 ac_save_CFLAGS=$CFLAGS
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4922 if ${ac_cv_prog_cc_g+:} false; then :
4923 $as_echo_n "(cached) " >&6
4925 ac_save_c_werror_flag=$ac_c_werror_flag
4926 ac_c_werror_flag=yes
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4940 if ac_fn_c_try_compile "$LINENO"; then :
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4955 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_c_werror_flag=$ac_save_c_werror_flag
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4971 if ac_fn_c_try_compile "$LINENO"; then :
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_c_werror_flag=$ac_save_c_werror_flag
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982 $as_echo "$ac_cv_prog_cc_g" >&6; }
4983 if test "$ac_test_CFLAGS" = set; then
4984 CFLAGS=$ac_save_CFLAGS
4985 elif test $ac_cv_prog_cc_g = yes; then
4986 if test "$GCC" = yes; then
4992 if test "$GCC" = yes; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000 if ${ac_cv_prog_cc_c89+:} false; then :
5001 $as_echo_n "(cached) " >&6
5003 ac_cv_prog_cc_c89=no
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5011 struct buf { int x; };
5012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5013 static char *e (p, i)
5019 static char *f (char * (*g) (char **, int), char **p, ...)
5024 s = g (p, va_arg (v,int));
5029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5030 function prototypes and stuff, but not '\xHH' hex character constants.
5031 These don't provoke an error unfortunately, instead are silently treated
5032 as 'x'. The following induces an error, until -std is added to get
5033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5034 array size at least. It's necessary to write '\x00'==0 to get something
5035 that's true only with -std. */
5036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5039 inside strings and character constants. */
5041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5043 int test (int i, double x);
5044 struct s1 {int (*f) (int a);};
5045 struct s2 {int (*f) (double a);};
5046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5060 CC="$ac_save_CC $ac_arg"
5061 if ac_fn_c_try_compile "$LINENO"; then :
5062 ac_cv_prog_cc_c89=$ac_arg
5064 rm -f core conftest.err conftest.$ac_objext
5065 test "x$ac_cv_prog_cc_c89" != "xno" && break
5067 rm -f conftest.$ac_ext
5072 case "x$ac_cv_prog_cc_c89" in
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5075 $as_echo "none needed" >&6; } ;;
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5078 $as_echo "unsupported" >&6; } ;;
5080 CC="$CC $ac_cv_prog_cc_c89"
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5084 if test "x$ac_cv_prog_cc_c89" != xno; then :
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5096 $as_echo_n "checking $CC dependency flag... " >&6; }
5097 echo 'void f(){}' >conftest.c
5098 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5101 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5104 DEPFLAG="-MM" # dunno do something
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5108 $as_echo "$DEPFLAG" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5116 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5117 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5118 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5119 $as_echo_n "(cached) " >&6
5122 echo 'void f(void){}' >conftest.c
5123 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5124 eval "cv_prog_cc_flag_$cache=yes"
5126 eval "cv_prog_cc_flag_$cache=no"
5128 rm -f conftest conftest.o conftest.c
5132 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134 $as_echo "yes" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5147 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5148 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5149 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5150 $as_echo_n "(cached) " >&6
5153 echo 'void f(void){}' >conftest.c
5154 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5155 eval "cv_prog_cc_flag_$cache=yes"
5157 eval "cv_prog_cc_flag_$cache=no"
5159 rm -f conftest conftest.o conftest.c
5163 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5165 $as_echo "yes" >&6; }
5167 ERRFLAG="$ERRFLAG -Wall"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5172 ERRFLAG="$ERRFLAG -errfmt"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5180 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5181 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5182 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5183 $as_echo_n "(cached) " >&6
5186 echo 'void f(void){}' >conftest.c
5187 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5188 eval "cv_prog_cc_flag_$cache=yes"
5190 eval "cv_prog_cc_flag_$cache=no"
5192 rm -f conftest conftest.o conftest.c
5196 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5198 $as_echo "yes" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5211 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5212 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5213 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5214 $as_echo_n "(cached) " >&6
5217 echo 'void f(void){}' >conftest.c
5218 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5219 eval "cv_prog_cc_flag_$cache=yes"
5221 eval "cv_prog_cc_flag_$cache=no"
5223 rm -f conftest conftest.o conftest.c
5227 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5240 for ac_header in getopt.h time.h
5242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5246 cat >>confdefs.h <<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5258 { $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
5259 $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; }
5260 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`
5261 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5262 $as_echo_n "(cached) " >&6
5266 #include "confdefs.h"
5269 #include <sys/time.h>
5275 #ifdef HAVE_GETOPT_H
5286 const char* str = NULL;
5288 msg.msg_control = 0;
5289 t = ctime_r(&time, buf);
5292 a = getopt(2, opts, "a");
5294 str = gai_strerror(0);
5295 if(str && t && tv.tv_usec && msg.msg_control)
5300 echo 'void f(){}' >>conftest.c
5301 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5302 eval "cv_prog_cc_flag_needed_$cache=no"
5305 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
5306 eval "cv_prog_cc_flag_needed_$cache=yes"
5308 eval "cv_prog_cc_flag_needed_$cache=fail"
5309 #echo 'Test with flag fails too!'
5311 #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"
5312 #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`
5317 rm -f conftest conftest.c conftest.o
5321 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5325 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"
5327 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 #echo 'Test with flag is no!'
5332 #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"
5333 #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`
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5339 $as_echo "failed" >&6; }
5349 { $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
5350 $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; }
5351 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`
5352 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5353 $as_echo_n "(cached) " >&6
5357 #include "confdefs.h"
5360 #include <sys/time.h>
5366 #ifdef HAVE_GETOPT_H
5377 const char* str = NULL;
5379 msg.msg_control = 0;
5380 t = ctime_r(&time, buf);
5383 a = getopt(2, opts, "a");
5385 str = gai_strerror(0);
5386 if(str && t && tv.tv_usec && msg.msg_control)
5391 echo 'void f(){}' >>conftest.c
5392 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5393 eval "cv_prog_cc_flag_needed_$cache=no"
5396 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
5397 eval "cv_prog_cc_flag_needed_$cache=yes"
5399 eval "cv_prog_cc_flag_needed_$cache=fail"
5400 #echo 'Test with flag fails too!'
5402 #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"
5403 #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`
5408 rm -f conftest conftest.c conftest.o
5412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5414 $as_echo "yes" >&6; }
5416 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5418 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 #echo 'Test with flag is no!'
5423 #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"
5424 #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`
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5430 $as_echo "failed" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5441 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5442 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5443 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5444 $as_echo_n "(cached) " >&6
5448 #include <stdbool.h>
5455 echo 'void f(){}' >>conftest.c
5456 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5457 eval "cv_prog_cc_flag_needed_$cache=no"
5460 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5461 eval "cv_prog_cc_flag_needed_$cache=yes"
5463 eval "cv_prog_cc_flag_needed_$cache=fail"
5464 #echo 'Test with flag fails too!'
5466 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5467 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5472 rm -f conftest conftest.c conftest.o
5476 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5478 $as_echo "yes" >&6; }
5480 CFLAGS="$CFLAGS $C99FLAG"
5482 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 #echo 'Test with flag is no!'
5487 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5488 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5494 $as_echo "failed" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5505 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5506 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5507 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5508 $as_echo_n "(cached) " >&6
5520 echo 'void f(){}' >>conftest.c
5521 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5522 eval "cv_prog_cc_flag_needed_$cache=no"
5525 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5526 eval "cv_prog_cc_flag_needed_$cache=yes"
5528 eval "cv_prog_cc_flag_needed_$cache=fail"
5529 #echo 'Test with flag fails too!'
5531 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5532 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5537 rm -f conftest conftest.c conftest.o
5541 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5545 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5547 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 #echo 'Test with flag is no!'
5552 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5553 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5559 $as_echo "failed" >&6; }
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5570 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5572 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5573 $as_echo_n "(cached) " >&6
5577 #include <netinet/in.h>
5580 struct in6_pktinfo inf;
5581 int a = (int)sizeof(inf);
5585 echo 'void f(){}' >>conftest.c
5586 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5587 eval "cv_prog_cc_flag_needed_$cache=no"
5590 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5591 eval "cv_prog_cc_flag_needed_$cache=yes"
5593 eval "cv_prog_cc_flag_needed_$cache=fail"
5594 #echo 'Test with flag fails too!'
5596 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5597 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5602 rm -f conftest conftest.c conftest.o
5606 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5610 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5612 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 #echo 'Test with flag is no!'
5617 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5618 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5624 $as_echo "failed" >&6; }
5631 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5632 # is not available at all. -D_FRSRESGID is to make this check unique.
5633 # otherwise we would get the previous cached result.
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5638 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5639 cache=_D_GNU_SOURCE__D_FRSRESGID
5640 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5641 $as_echo_n "(cached) " >&6
5648 int a = setresgid(0,0,0);
5649 a = setresuid(0,0,0);
5653 echo 'void f(){}' >>conftest.c
5654 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5655 eval "cv_prog_cc_flag_needed_$cache=no"
5658 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5659 eval "cv_prog_cc_flag_needed_$cache=yes"
5661 eval "cv_prog_cc_flag_needed_$cache=fail"
5662 #echo 'Test with flag fails too!'
5664 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5665 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5670 rm -f conftest conftest.c conftest.o
5674 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5678 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5680 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 #echo 'Test with flag is no!'
5685 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5686 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5692 $as_echo "failed" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5703 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5704 cache=_D_POSIX_C_SOURCE_200112
5705 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5706 $as_echo_n "(cached) " >&6
5710 #include "confdefs.h"
5721 const char* str = NULL;
5722 t = ctime_r(&time, buf);
5723 str = gai_strerror(0);
5729 echo 'void f(){}' >>conftest.c
5730 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5731 eval "cv_prog_cc_flag_needed_$cache=no"
5734 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5735 eval "cv_prog_cc_flag_needed_$cache=yes"
5737 eval "cv_prog_cc_flag_needed_$cache=fail"
5738 #echo 'Test with flag fails too!'
5740 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5741 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5746 rm -f conftest conftest.c conftest.o
5750 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5752 $as_echo "yes" >&6; }
5754 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5756 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 #echo 'Test with flag is no!'
5761 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5762 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5768 $as_echo "failed" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5779 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5780 cache=_D__EXTENSIONS__
5781 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5782 $as_echo_n "(cached) " >&6
5786 #include "confdefs.h"
5789 #include <sys/time.h>
5794 #ifdef HAVE_GETOPT_H
5804 a = getopt(2, opts, "a");
5811 echo 'void f(){}' >>conftest.c
5812 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5813 eval "cv_prog_cc_flag_needed_$cache=no"
5816 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5817 eval "cv_prog_cc_flag_needed_$cache=yes"
5819 eval "cv_prog_cc_flag_needed_$cache=fail"
5820 #echo 'Test with flag fails too!'
5822 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5823 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5828 rm -f conftest conftest.c conftest.o
5832 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834 $as_echo "yes" >&6; }
5836 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5838 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 #echo 'Test with flag is no!'
5843 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5844 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5850 $as_echo "failed" >&6; }
5859 # debug mode flags warnings
5860 # Check whether --enable-checking was given.
5861 if test "${enable_checking+set}" = set; then :
5862 enableval=$enable_checking;
5865 # Check whether --enable-debug was given.
5866 if test "${enable_debug+set}" = set; then :
5867 enableval=$enable_debug;
5870 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5871 else debug_enabled="$enable_checking"; fi
5873 case "$debug_enabled" in
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5878 $as_echo_n "checking whether $CC supports -W... " >&6; }
5879 cache=`echo W | sed 'y%.=/+-%___p_%'`
5880 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5881 $as_echo_n "(cached) " >&6
5884 echo 'void f(void){}' >conftest.c
5885 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5886 eval "cv_prog_cc_flag_$cache=yes"
5888 eval "cv_prog_cc_flag_$cache=no"
5890 rm -f conftest conftest.o conftest.c
5894 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5896 $as_echo "yes" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5909 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5910 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5911 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5912 $as_echo_n "(cached) " >&6
5915 echo 'void f(void){}' >conftest.c
5916 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5917 eval "cv_prog_cc_flag_$cache=yes"
5919 eval "cv_prog_cc_flag_$cache=no"
5921 rm -f conftest conftest.o conftest.c
5925 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5927 $as_echo "yes" >&6; }
5929 CFLAGS="$CFLAGS -Wall"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5940 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5941 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5942 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5943 $as_echo_n "(cached) " >&6
5946 echo 'void f(void){}' >conftest.c
5947 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5948 eval "cv_prog_cc_flag_$cache=yes"
5950 eval "cv_prog_cc_flag_$cache=no"
5952 rm -f conftest conftest.o conftest.c
5956 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5958 $as_echo "yes" >&6; }
5960 CFLAGS="$CFLAGS -Wextra"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5971 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5972 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5973 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5974 $as_echo_n "(cached) " >&6
5977 echo 'void f(void){}' >conftest.c
5978 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5979 eval "cv_prog_cc_flag_$cache=yes"
5981 eval "cv_prog_cc_flag_$cache=no"
5983 rm -f conftest conftest.o conftest.c
5987 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5989 $as_echo "yes" >&6; }
5991 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
6000 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6007 if test "$default_cflags" = "yes"; then
6008 # only when CFLAGS was "" at the start, if the users wants to
6009 # override we shouldn't add default cflags, because they wouldn't
6010 # be able to turn off these options and set the CFLAGS wanted.
6012 # Check whether --enable-flto was given.
6013 if test "${enable_flto+set}" = set; then :
6014 enableval=$enable_flto;
6017 if test "x$enable_flto" != "xno"; then :
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6020 $as_echo_n "checking if $CC supports -flto... " >&6; }
6022 CFLAGS="$CFLAGS -flto"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6034 if ac_fn_c_try_link "$LINENO"; then :
6036 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6042 $as_echo "yes" >&6; }
6044 rm -f conftest conftest.c conftest.o
6047 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6056 # Check whether --enable-pie was given.
6057 if test "${enable_pie+set}" = set; then :
6058 enableval=$enable_pie;
6061 if test "x$enable_pie" = "xyes"; then :
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6064 $as_echo_n "checking if $CC supports PIE... " >&6; }
6065 BAKLDFLAGS="$LDFLAGS"
6067 LDFLAGS="$LDFLAGS -pie"
6068 CFLAGS="$CFLAGS -fPIE"
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6080 if ac_fn_c_try_link "$LINENO"; then :
6082 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6083 LDFLAGS="$BAKLDFLAGS"
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088 $as_echo "yes" >&6; }
6090 rm -f conftest conftest.c conftest.o
6093 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6096 rm -f core conftest.err conftest.$ac_objext \
6097 conftest$ac_exeext conftest.$ac_ext
6102 # Check whether --enable-relro_now was given.
6103 if test "${enable_relro_now+set}" = set; then :
6104 enableval=$enable_relro_now;
6107 if test "x$enable_relro_now" = "xyes"; then :
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6110 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6111 BAKLDFLAGS="$LDFLAGS"
6112 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6124 if ac_fn_c_try_link "$LINENO"; then :
6126 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6127 LDFLAGS="$BAKLDFLAGS"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6132 $as_echo "yes" >&6; }
6134 rm -f conftest conftest.c conftest.o
6137 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6140 rm -f core conftest.err conftest.$ac_objext \
6141 conftest$ac_exeext conftest.$ac_ext
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6148 $as_echo_n "checking for inline... " >&6; }
6149 if ${ac_cv_c_inline+:} false; then :
6150 $as_echo_n "(cached) " >&6
6153 for ac_kw in inline __inline__ __inline; do
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6158 static $ac_kw foo_t static_foo () {return 0; }
6159 $ac_kw foo_t foo () {return 0; }
6163 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_c_inline=$ac_kw
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 test "$ac_cv_c_inline" != no && break
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6172 $as_echo "$ac_cv_c_inline" >&6; }
6174 case $ac_cv_c_inline in
6177 case $ac_cv_c_inline in
6179 *) ac_val=$ac_cv_c_inline;;
6181 cat >>confdefs.h <<_ACEOF
6183 #define inline $ac_val
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6191 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6192 if ${ac_cv_c_format_attribute+:} false; then :
6193 $as_echo_n "(cached) " >&6
6195 ac_cv_c_format_attribute=no
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6199 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6200 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213 ac_cv_c_format_attribute="yes"
6215 ac_cv_c_format_attribute="no"
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6223 $as_echo "$ac_cv_c_format_attribute" >&6; }
6224 if test $ac_cv_c_format_attribute = yes; then
6226 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6232 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6233 if ${ac_cv_c_unused_attribute+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 ac_cv_c_unused_attribute=no
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6240 void f (char *u __attribute__((unused)));
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_c_unused_attribute="yes"
6255 ac_cv_c_unused_attribute="no"
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6265 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6266 if test $ac_cv_c_unused_attribute = yes; then
6268 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6276 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6277 if ${ac_cv_c_weak_attribute+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_cv_c_weak_attribute=no
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 __attribute__((weak)) void f(int x) { printf("%d", x); }
6296 if ac_fn_c_try_compile "$LINENO"; then :
6297 ac_cv_c_weak_attribute="yes"
6299 ac_cv_c_weak_attribute="no"
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6307 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6308 if test $ac_cv_c_weak_attribute = yes; then
6310 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6313 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6321 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6322 if ${ac_cv_c_noreturn_attribute+:} false; then :
6323 $as_echo_n "(cached) " >&6
6325 ac_cv_c_noreturn_attribute=no
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6329 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 ac_cv_c_noreturn_attribute="yes"
6344 ac_cv_c_noreturn_attribute="no"
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6352 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6353 if test $ac_cv_c_noreturn_attribute = yes; then
6355 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6358 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6363 if test "$srcdir" != "."; then
6364 CPPFLAGS="$CPPFLAGS -I$srcdir"
6371 for ac_prog in flex lex
6373 # Extract the first word of "$ac_prog", so it can be a program name with args.
6374 set dummy $ac_prog; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_LEX+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$LEX"; then
6381 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_LEX="$ac_prog"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 if test -n "$LEX"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6403 $as_echo "$LEX" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6410 test -n "$LEX" && break
6412 test -n "$LEX" || LEX=":"
6414 if test "x$LEX" != "x:"; then
6415 cat >conftest.l <<_ACEOF
6421 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6422 yyless ((input () != 0)); }
6423 f { unput (yytext[0]); }
6424 . { BEGIN INITIAL; }
6426 #ifdef YYTEXT_POINTER
6427 extern char *yytext;
6432 return ! yylex () + ! yywrap ();
6435 { { ac_try="$LEX conftest.l"
6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438 *) ac_try_echo=$ac_try;;
6440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6441 $as_echo "$ac_try_echo"; } >&5
6442 (eval "$LEX conftest.l") 2>&5
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6447 $as_echo_n "checking lex output file root... " >&6; }
6448 if ${ac_cv_prog_lex_root+:} false; then :
6449 $as_echo_n "(cached) " >&6
6452 if test -f lex.yy.c; then
6453 ac_cv_prog_lex_root=lex.yy
6454 elif test -f lexyy.c; then
6455 ac_cv_prog_lex_root=lexyy
6457 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6461 $as_echo "$ac_cv_prog_lex_root" >&6; }
6462 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6464 if test -z "${LEXLIB+set}"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6466 $as_echo_n "checking lex library... " >&6; }
6467 if ${ac_cv_lib_lex+:} false; then :
6468 $as_echo_n "(cached) " >&6
6472 ac_cv_lib_lex='none needed'
6473 for ac_lib in '' -lfl -ll; do
6474 LIBS="$ac_lib $ac_save_LIBS"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 `cat $LEX_OUTPUT_ROOT.c`
6479 if ac_fn_c_try_link "$LINENO"; then :
6480 ac_cv_lib_lex=$ac_lib
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 test "$ac_cv_lib_lex" != 'none needed' && break
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6490 $as_echo "$ac_cv_lib_lex" >&6; }
6491 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6496 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6497 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 # POSIX says lex can declare yytext either as a pointer or an array; the
6501 # default is implementation-dependent. Figure out which it is, since
6502 # not all implementations provide the %pointer and %array declarations.
6503 ac_cv_prog_lex_yytext_pointer=no
6505 LIBS="$LEXLIB $ac_save_LIBS"
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6509 #define YYTEXT_POINTER 1
6510 `cat $LEX_OUTPUT_ROOT.c`
6512 if ac_fn_c_try_link "$LINENO"; then :
6513 ac_cv_prog_lex_yytext_pointer=yes
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6521 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6522 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6524 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6527 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6530 if test "$LEX" != "" -a "$LEX" != ":"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6533 $as_echo_n "checking for yylex_destroy... " >&6; }
6534 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6536 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6539 $as_echo "yes" >&6; }
6540 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; };
6546 if test "$LEX" != "" -a "$LEX" != ":"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6549 $as_echo_n "checking for lex %option... " >&6; }
6550 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6555 $as_echo "yes" >&6; }
6556 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; };
6562 for ac_prog in 'bison -y' byacc
6564 # Extract the first word of "$ac_prog", so it can be a program name with args.
6565 set dummy $ac_prog; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_YACC+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$YACC"; then
6572 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_YACC="$ac_prog"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 YACC=$ac_cv_prog_YACC
6592 if test -n "$YACC"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6594 $as_echo "$YACC" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6601 test -n "$YACC" && break
6603 test -n "$YACC" || YACC="yacc"
6605 # Extract the first word of "doxygen", so it can be a program name with args.
6606 set dummy doxygen; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_doxygen+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 if test -n "$doxygen"; then
6613 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_doxygen="doxygen"
6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 doxygen=$ac_cv_prog_doxygen
6633 if test -n "$doxygen"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6635 $as_echo "$doxygen" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}strip; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_STRIP+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$STRIP"; then
6651 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 STRIP=$ac_cv_prog_STRIP
6671 if test -n "$STRIP"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6673 $as_echo "$STRIP" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6681 if test -z "$ac_cv_prog_STRIP"; then
6683 # Extract the first word of "strip", so it can be a program name with args.
6684 set dummy strip; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6688 $as_echo_n "(cached) " >&6
6690 if test -n "$ac_ct_STRIP"; then
6691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700 ac_cv_prog_ac_ct_STRIP="strip"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6711 if test -n "$ac_ct_STRIP"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6713 $as_echo "$ac_ct_STRIP" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6719 if test "x$ac_ct_STRIP" = x; then
6722 case $cross_compiling:$ac_tool_warned in
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6731 STRIP="$ac_cv_prog_STRIP"
6735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6736 if test -f "$ac_dir/install-sh"; then
6738 ac_install_sh="$ac_aux_dir/install-sh -c"
6740 elif test -f "$ac_dir/install.sh"; then
6742 ac_install_sh="$ac_aux_dir/install.sh -c"
6744 elif test -f "$ac_dir/shtool"; then
6746 ac_install_sh="$ac_aux_dir/shtool install -c"
6750 if test -z "$ac_aux_dir"; then
6751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6754 # These three variables are undocumented and unsupported,
6755 # and are intended to be withdrawn in a future Autoconf release.
6756 # They can cause serious problems if a builder's source tree is in a directory
6757 # whose full name contains unusual characters.
6758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6763 # Make sure we can run config.sub.
6764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6768 $as_echo_n "checking build system type... " >&6; }
6769 if ${ac_cv_build+:} false; then :
6770 $as_echo_n "(cached) " >&6
6772 ac_build_alias=$build_alias
6773 test "x$ac_build_alias" = x &&
6774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6775 test "x$ac_build_alias" = x &&
6776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6782 $as_echo "$ac_cv_build" >&6; }
6783 case $ac_cv_build in
6785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6788 ac_save_IFS=$IFS; IFS='-'
6794 # Remember, the first character of IFS is used to create $*,
6795 # except with old shells:
6798 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6802 $as_echo_n "checking host system type... " >&6; }
6803 if ${ac_cv_host+:} false; then :
6804 $as_echo_n "(cached) " >&6
6806 if test "x$host_alias" = x; then
6807 ac_cv_host=$ac_cv_build
6809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6815 $as_echo "$ac_cv_host" >&6; }
6818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6821 ac_save_IFS=$IFS; IFS='-'
6827 # Remember, the first character of IFS is used to create $*,
6828 # except with old shells:
6831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6835 # skip these tests, we do not need them.
6844 # always use ./libtool unless override from commandline (libtool=mylibtool)
6845 if test -z "$libtool"; then
6849 # avoid libtool max commandline length test on systems that fork slowly.
6851 if echo "$host_os" | grep "sunos4" >/dev/null; then
6852 lt_cv_sys_max_cmd_len=32750;
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ar; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_path_AR+:} false; then :
6860 $as_echo_n "(cached) " >&6
6864 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 if test -n "$AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6888 $as_echo "$AR" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6896 if test -z "$ac_cv_path_AR"; then
6898 # Extract the first word of "ar", so it can be a program name with args.
6899 set dummy ar; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_path_ac_pt_AR+:} false; then :
6903 $as_echo_n "(cached) " >&6
6907 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_pt_AR=$ac_cv_path_ac_pt_AR
6929 if test -n "$ac_pt_AR"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6931 $as_echo "$ac_pt_AR" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6937 if test "x$ac_pt_AR" = x; then
6940 case $cross_compiling:$ac_tool_warned in
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6952 if test $AR = false; then
6953 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6959 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6964 macro_version='2.4.6'
6965 macro_revision='2.4.6'
6979 ltmain=$ac_aux_dir/ltmain.sh
6981 # Backslashify metacharacters that are still active within
6982 # double-quoted strings.
6983 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6985 # Same as above, but do not quote variable references.
6986 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6988 # Sed substitution to delay expansion of an escaped shell variable in a
6989 # double_quote_subst'ed string.
6990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6992 # Sed substitution to delay expansion of an escaped single quote.
6993 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6995 # Sed substitution to avoid accidental globbing in evaled expressions
6996 no_glob_subst='s/\*/\\\*/g'
6998 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7003 $as_echo_n "checking how to print strings... " >&6; }
7004 # Test print first, because it will be a builtin if present.
7005 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7006 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7008 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7011 # Use this function as a fallback that always works.
7012 func_fallback_echo ()
7014 eval 'cat <<_LTECHO_EOF
7018 ECHO='func_fallback_echo'
7021 # func_echo_all arg...
7022 # Invoke $ECHO with all args, space-separated.
7029 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7030 $as_echo "printf" >&6; } ;;
7031 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7032 $as_echo "print -r" >&6; } ;;
7033 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7034 $as_echo "cat" >&6; } ;;
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7052 if ${ac_cv_path_SED+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7056 for ac_i in 1 2 3 4 5 6 7; do
7057 ac_script="$ac_script$as_nl$ac_script"
7059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7060 { ac_script=; unset ac_script;}
7061 if test -z "$SED"; then
7062 ac_path_SED_found=false
7063 # Loop through the user's path and test for each of PROGNAME-LIST
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_prog in sed gsed; do
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7072 as_fn_executable_p "$ac_path_SED" || continue
7073 # Check for GNU ac_path_SED and select it if it is found.
7074 # Check for GNU $ac_path_SED
7075 case `"$ac_path_SED" --version 2>&1` in
7077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7080 $as_echo_n 0123456789 >"conftest.in"
7083 cat "conftest.in" "conftest.in" >"conftest.tmp"
7084 mv "conftest.tmp" "conftest.in"
7085 cp "conftest.in" "conftest.nl"
7086 $as_echo '' >> "conftest.nl"
7087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7089 as_fn_arith $ac_count + 1 && ac_count=$as_val
7090 if test $ac_count -gt ${ac_path_SED_max-0}; then
7091 # Best one so far, save it but keep looking for a better one
7092 ac_cv_path_SED="$ac_path_SED"
7093 ac_path_SED_max=$ac_count
7095 # 10*(2^10) chars as input seems more than enough
7096 test $ac_count -gt 10 && break
7098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7101 $ac_path_SED_found && break 3
7106 if test -z "$ac_cv_path_SED"; then
7107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7115 $as_echo "$ac_cv_path_SED" >&6; }
7116 SED="$ac_cv_path_SED"
7119 test -z "$SED" && SED=sed
7120 Xsed="$SED -e 1s/^X//"
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7133 $as_echo_n "checking for fgrep... " >&6; }
7134 if ${ac_cv_path_FGREP+:} false; then :
7135 $as_echo_n "(cached) " >&6
7137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7138 then ac_cv_path_FGREP="$GREP -F"
7140 if test -z "$FGREP"; then
7141 ac_path_FGREP_found=false
7142 # Loop through the user's path and test for each of PROGNAME-LIST
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7147 test -z "$as_dir" && as_dir=.
7148 for ac_prog in fgrep; do
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7151 as_fn_executable_p "$ac_path_FGREP" || continue
7152 # Check for GNU ac_path_FGREP and select it if it is found.
7153 # Check for GNU $ac_path_FGREP
7154 case `"$ac_path_FGREP" --version 2>&1` in
7156 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7159 $as_echo_n 0123456789 >"conftest.in"
7162 cat "conftest.in" "conftest.in" >"conftest.tmp"
7163 mv "conftest.tmp" "conftest.in"
7164 cp "conftest.in" "conftest.nl"
7165 $as_echo 'FGREP' >> "conftest.nl"
7166 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7168 as_fn_arith $ac_count + 1 && ac_count=$as_val
7169 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7170 # Best one so far, save it but keep looking for a better one
7171 ac_cv_path_FGREP="$ac_path_FGREP"
7172 ac_path_FGREP_max=$ac_count
7174 # 10*(2^10) chars as input seems more than enough
7175 test $ac_count -gt 10 && break
7177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7180 $ac_path_FGREP_found && break 3
7185 if test -z "$ac_cv_path_FGREP"; then
7186 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7189 ac_cv_path_FGREP=$FGREP
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7195 $as_echo "$ac_cv_path_FGREP" >&6; }
7196 FGREP="$ac_cv_path_FGREP"
7199 test -z "$GREP" && GREP=grep
7219 # Check whether --with-gnu-ld was given.
7220 if test "${with_gnu_ld+set}" = set; then :
7221 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7227 if test yes = "$GCC"; then
7228 # Check if gcc -print-prog-name=ld gives a path.
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7230 $as_echo_n "checking for ld used by $CC... " >&6; }
7233 # gcc leaves a trailing carriage return, which upsets mingw
7234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7239 # Accept absolute paths.
7241 re_direlt='/[^/][^/]*/\.\./'
7242 # Canonicalize the pathname of ld
7243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7247 test -z "$LD" && LD=$ac_prog
7250 # If it fails, then pretend we aren't using GCC.
7254 # If it is relative, then search for the first ld in PATH.
7258 elif test yes = "$with_gnu_ld"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7260 $as_echo_n "checking for GNU ld... " >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7263 $as_echo_n "checking for non-GNU ld... " >&6; }
7265 if ${lt_cv_path_LD+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -z "$LD"; then
7269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7270 for ac_dir in $PATH; do
7272 test -z "$ac_dir" && ac_dir=.
7273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7274 lt_cv_path_LD=$ac_dir/$ac_prog
7275 # Check to see if the program is GNU ld. I'd rather use --version,
7276 # but apparently some variants of GNU ld only accept -v.
7277 # Break only if it was the GNU/non-GNU ld that we prefer.
7278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7279 *GNU* | *'with BFD'*)
7280 test no != "$with_gnu_ld" && break
7283 test yes != "$with_gnu_ld" && break
7290 lt_cv_path_LD=$LD # Let the user override the test with a path.
7295 if test -n "$LD"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7297 $as_echo "$LD" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7302 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7304 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7305 if ${lt_cv_prog_gnu_ld+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7309 case `$LD -v 2>&1 </dev/null` in
7310 *GNU* | *'with BFD'*)
7311 lt_cv_prog_gnu_ld=yes
7314 lt_cv_prog_gnu_ld=no
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7319 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7320 with_gnu_ld=$lt_cv_prog_gnu_ld
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7331 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7332 if ${lt_cv_path_NM+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$NM"; then
7336 # Let the user override the test.
7339 lt_nm_to_check=${ac_tool_prefix}nm
7340 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7341 lt_nm_to_check="$lt_nm_to_check nm"
7343 for lt_tmp_nm in $lt_nm_to_check; do
7344 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7345 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7347 test -z "$ac_dir" && ac_dir=.
7348 tmp_nm=$ac_dir/$lt_tmp_nm
7349 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7350 # Check to see if the nm accepts a BSD-compat flag.
7351 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7352 # nm: unknown option "B" ignored
7353 # Tru64's nm complains that /dev/null is an invalid object file
7354 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7356 mingw*) lt_bad_file=conftest.nm/nofile ;;
7357 *) lt_bad_file=/dev/null ;;
7359 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7360 *$lt_bad_file* | *'Invalid file or object type'*)
7361 lt_cv_path_NM="$tmp_nm -B"
7365 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7367 lt_cv_path_NM="$tmp_nm -p"
7371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7372 continue # so that we can try to find one that supports BSD flags
7381 : ${lt_cv_path_NM=no}
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7385 $as_echo "$lt_cv_path_NM" >&6; }
7386 if test no != "$lt_cv_path_NM"; then
7389 # Didn't find any BSD compatible name lister, look for dumpbin.
7390 if test -n "$DUMPBIN"; then :
7391 # Let the user override the test.
7393 if test -n "$ac_tool_prefix"; then
7394 for ac_prog in dumpbin "link -dump"
7396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_DUMPBIN+:} false; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$DUMPBIN"; then
7404 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 DUMPBIN=$ac_cv_prog_DUMPBIN
7424 if test -n "$DUMPBIN"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7426 $as_echo "$DUMPBIN" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7433 test -n "$DUMPBIN" && break
7436 if test -z "$DUMPBIN"; then
7437 ac_ct_DUMPBIN=$DUMPBIN
7438 for ac_prog in dumpbin "link -dump"
7440 # Extract the first word of "$ac_prog", so it can be a program name with args.
7441 set dummy $ac_prog; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$ac_ct_DUMPBIN"; then
7448 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7468 if test -n "$ac_ct_DUMPBIN"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7470 $as_echo "$ac_ct_DUMPBIN" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7477 test -n "$ac_ct_DUMPBIN" && break
7480 if test "x$ac_ct_DUMPBIN" = x; then
7483 case $cross_compiling:$ac_tool_warned in
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487 ac_tool_warned=yes ;;
7489 DUMPBIN=$ac_ct_DUMPBIN
7493 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7495 DUMPBIN="$DUMPBIN -symbols -headers"
7503 if test : != "$DUMPBIN"; then
7507 test -z "$NM" && NM=nm
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7515 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7516 if ${lt_cv_nm_interface+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 lt_cv_nm_interface="BSD nm"
7520 echo "int some_variable = 0;" > conftest.$ac_ext
7521 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7522 (eval "$ac_compile" 2>conftest.err)
7523 cat conftest.err >&5
7524 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7525 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7526 cat conftest.err >&5
7527 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7528 cat conftest.out >&5
7529 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7530 lt_cv_nm_interface="MS dumpbin"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7535 $as_echo "$lt_cv_nm_interface" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7538 $as_echo_n "checking whether ln -s works... " >&6; }
7540 if test "$LN_S" = "ln -s"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7545 $as_echo "no, using $LN_S" >&6; }
7548 # find the maximum length of command line arguments
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7551 if ${lt_cv_sys_max_cmd_len+:} false; then :
7552 $as_echo_n "(cached) " >&6
7559 # On DJGPP, this test can blow up pretty badly due to problems in libc
7560 # (any single argument exceeding 2000 bytes causes a buffer overrun
7561 # during glob expansion). Even if it were fixed, the result of this
7562 # check would be larger than it should be.
7563 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7567 # Under GNU Hurd, this test is not required because there is
7568 # no limit to the length of command line arguments.
7569 # Libtool will interpret -1 as no limit whatsoever
7570 lt_cv_sys_max_cmd_len=-1;
7573 cygwin* | mingw* | cegcc*)
7574 # On Win9x/ME, this test blows up -- it succeeds, but takes
7575 # about 5 minutes as the teststring grows exponentially.
7576 # Worse, since 9x/ME are not pre-emptively multitasking,
7577 # you end up with a "frozen" computer, even though with patience
7578 # the test eventually succeeds (with a max line length of 256k).
7579 # Instead, let's just punt: use the minimum linelength reported by
7580 # all of the supported platforms: 8192 (on NT/2K/XP).
7581 lt_cv_sys_max_cmd_len=8192;
7585 # On MiNT this can take a long time and run out of memory.
7586 lt_cv_sys_max_cmd_len=8192;
7590 # On AmigaOS with pdksh, this test takes hours, literally.
7591 # So we just punt and use a minimum line length of 8192.
7592 lt_cv_sys_max_cmd_len=8192;
7595 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7596 # This has been around since 386BSD, at least. Likely further.
7597 if test -x /sbin/sysctl; then
7598 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7599 elif test -x /usr/sbin/sysctl; then
7600 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7602 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7604 # And add a safety zone
7605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7610 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7611 lt_cv_sys_max_cmd_len=196608
7615 # The test takes a long time on OS/2.
7616 lt_cv_sys_max_cmd_len=8192
7620 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7621 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7622 # nice to cause kernel panics so lets avoid the loop below.
7623 # First set a reasonable default.
7624 lt_cv_sys_max_cmd_len=16384
7626 if test -x /sbin/sysconfig; then
7627 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7628 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7633 lt_cv_sys_max_cmd_len=102400
7635 sysv5* | sco5v6* | sysv4.2uw2*)
7636 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7637 if test -n "$kargmax"; then
7638 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7640 lt_cv_sys_max_cmd_len=32768
7644 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7645 if test -n "$lt_cv_sys_max_cmd_len" && \
7646 test undefined != "$lt_cv_sys_max_cmd_len"; then
7647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7650 # Make teststring a little bigger before we do anything with it.
7651 # a 1K string should be a reasonable start.
7652 for i in 1 2 3 4 5 6 7 8; do
7653 teststring=$teststring$teststring
7655 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7656 # If test is not a shell built-in, we'll probably end up computing a
7657 # maximum length that is only half of the actual maximum length, but
7659 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7660 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7661 test 17 != "$i" # 1/2 MB should be enough
7664 teststring=$teststring$teststring
7666 # Only check the string length outside the loop.
7667 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7669 # Add a significant safety factor because C++ compilers can tack on
7670 # massive amounts of additional arguments before passing them to the
7671 # linker. It appears as though 1/2 is a usable value.
7672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7679 if test -n "$lt_cv_sys_max_cmd_len"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7681 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7684 $as_echo "none" >&6; }
7686 max_cmd_len=$lt_cv_sys_max_cmd_len
7697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7707 # test EBCDIC or ASCII
7708 case `echo X|tr X '\101'` in
7709 A) # ASCII based system
7710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7711 lt_SP2NL='tr \040 \012'
7712 lt_NL2SP='tr \015\012 \040\040'
7714 *) # EBCDIC based system
7715 lt_SP2NL='tr \100 \n'
7716 lt_NL2SP='tr \r\n \100\100'
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7729 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7730 if ${lt_cv_to_host_file_cmd+:} false; then :
7731 $as_echo_n "(cached) " >&6
7736 *-*-mingw* ) # actually msys
7737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7740 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7742 * ) # otherwise, assume *nix
7743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7749 *-*-mingw* ) # actually msys
7750 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7753 lt_cv_to_host_file_cmd=func_convert_file_noop
7755 * ) # otherwise, assume *nix
7756 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7760 * ) # unhandled hosts (and "normal" native builds)
7761 lt_cv_to_host_file_cmd=func_convert_file_noop
7767 to_host_file_cmd=$lt_cv_to_host_file_cmd
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7769 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7776 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7777 if ${lt_cv_to_tool_file_cmd+:} false; then :
7778 $as_echo_n "(cached) " >&6
7780 #assume ordinary cross tools, or native build.
7781 lt_cv_to_tool_file_cmd=func_convert_file_noop
7785 *-*-mingw* ) # actually msys
7786 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7796 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7804 if ${lt_cv_ld_reload_flag+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 lt_cv_ld_reload_flag='-r'
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7811 reload_flag=$lt_cv_ld_reload_flag
7812 case $reload_flag in
7814 *) reload_flag=" $reload_flag" ;;
7816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7818 cygwin* | mingw* | pw32* | cegcc*)
7819 if test yes != "$GCC"; then
7824 if test yes = "$GCC"; then
7825 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_OBJDUMP+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 if test -n "$OBJDUMP"; then
7849 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 OBJDUMP=$ac_cv_prog_OBJDUMP
7869 if test -n "$OBJDUMP"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7871 $as_echo "$OBJDUMP" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 if test -z "$ac_cv_prog_OBJDUMP"; then
7880 ac_ct_OBJDUMP=$OBJDUMP
7881 # Extract the first word of "objdump", so it can be a program name with args.
7882 set dummy objdump; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 if test -n "$ac_ct_OBJDUMP"; then
7889 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7909 if test -n "$ac_ct_OBJDUMP"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7911 $as_echo "$ac_ct_OBJDUMP" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7917 if test "x$ac_ct_OBJDUMP" = x; then
7920 case $cross_compiling:$ac_tool_warned in
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7926 OBJDUMP=$ac_ct_OBJDUMP
7929 OBJDUMP="$ac_cv_prog_OBJDUMP"
7932 test -z "$OBJDUMP" && OBJDUMP=objdump
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7944 if ${lt_cv_deplibs_check_method+:} false; then :
7945 $as_echo_n "(cached) " >&6
7947 lt_cv_file_magic_cmd='$MAGIC_CMD'
7948 lt_cv_file_magic_test_file=
7949 lt_cv_deplibs_check_method='unknown'
7950 # Need to set the preceding variable on all platforms that support
7951 # interlibrary dependencies.
7952 # 'none' -- dependencies not supported.
7953 # 'unknown' -- same as none, but documents that we really don't know.
7954 # 'pass_all' -- all dependencies passed with no checks.
7955 # 'test_compile' -- check by making test program.
7956 # 'file_magic [[regex]]' -- check by looking for files in library path
7957 # that responds to the $file_magic_cmd with a given extended regex.
7958 # If you have 'file' or equivalent on your system and you're not sure
7959 # whether 'pass_all' will *always* work, you probably want this one.
7963 lt_cv_deplibs_check_method=pass_all
7967 lt_cv_deplibs_check_method=pass_all
7971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7972 lt_cv_file_magic_cmd='/usr/bin/file -L'
7973 lt_cv_file_magic_test_file=/shlib/libc.so
7977 # func_win32_libid is a shell function defined in ltmain.sh
7978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7979 lt_cv_file_magic_cmd='func_win32_libid'
7983 # Base MSYS/MinGW do not provide the 'file' command needed by
7984 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7985 # unless we find 'file', for example because we are cross-compiling.
7986 if ( file / ) >/dev/null 2>&1; then
7987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7988 lt_cv_file_magic_cmd='func_win32_libid'
7990 # Keep this pattern in sync with the one in func_win32_libid.
7991 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7992 lt_cv_file_magic_cmd='$OBJDUMP -f'
7997 # use the weaker test based on 'objdump'. See mingw*.
7998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7999 lt_cv_file_magic_cmd='$OBJDUMP -f'
8002 darwin* | rhapsody*)
8003 lt_cv_deplibs_check_method=pass_all
8006 freebsd* | dragonfly*)
8007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8010 # Not sure whether the presence of OpenBSD here was a mistake.
8011 # Let's accept both of them until this is cleared up.
8012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8013 lt_cv_file_magic_cmd=/usr/bin/file
8014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8018 lt_cv_deplibs_check_method=pass_all
8023 lt_cv_deplibs_check_method=pass_all
8026 hpux10.20* | hpux11*)
8027 lt_cv_file_magic_cmd=/usr/bin/file
8030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8034 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]'
8035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8049 irix5* | irix6* | nonstopux*)
8051 *-32|*"-32 ") libmagic=32-bit;;
8052 *-n32|*"-n32 ") libmagic=N32;;
8053 *-64|*"-64 ") libmagic=64-bit;;
8054 *) libmagic=never-match;;
8056 lt_cv_deplibs_check_method=pass_all
8059 # This must be glibc/ELF.
8060 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8061 lt_cv_deplibs_check_method=pass_all
8064 netbsd* | netbsdelf*-gnu)
8065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8074 lt_cv_file_magic_cmd=/usr/bin/file
8075 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8079 lt_cv_deplibs_check_method=pass_all
8083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8090 osf3* | osf4* | osf5*)
8091 lt_cv_deplibs_check_method=pass_all
8095 lt_cv_deplibs_check_method=pass_all
8099 lt_cv_deplibs_check_method=pass_all
8102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8103 lt_cv_deplibs_check_method=pass_all
8107 case $host_vendor in
8109 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]'
8110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8113 lt_cv_deplibs_check_method=pass_all
8116 lt_cv_file_magic_cmd='/bin/file'
8117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8120 lt_cv_file_magic_cmd='/bin/file'
8121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8122 lt_cv_file_magic_test_file=/lib/libc.so
8125 lt_cv_deplibs_check_method=pass_all
8128 lt_cv_deplibs_check_method=pass_all
8134 lt_cv_deplibs_check_method=pass_all
8137 lt_cv_deplibs_check_method=pass_all
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8143 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8147 if test "$build" = "$host"; then
8150 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8153 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8159 file_magic_cmd=$lt_cv_file_magic_cmd
8160 deplibs_check_method=$lt_cv_deplibs_check_method
8161 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8184 if test -n "$ac_tool_prefix"; then
8185 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8186 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188 $as_echo_n "checking for $ac_word... " >&6; }
8189 if ${ac_cv_prog_DLLTOOL+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 if test -n "$DLLTOOL"; then
8193 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir=.
8200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 DLLTOOL=$ac_cv_prog_DLLTOOL
8213 if test -n "$DLLTOOL"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8215 $as_echo "$DLLTOOL" >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8223 if test -z "$ac_cv_prog_DLLTOOL"; then
8224 ac_ct_DLLTOOL=$DLLTOOL
8225 # Extract the first word of "dlltool", so it can be a program name with args.
8226 set dummy dlltool; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$ac_ct_DLLTOOL"; then
8233 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8253 if test -n "$ac_ct_DLLTOOL"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8255 $as_echo "$ac_ct_DLLTOOL" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8261 if test "x$ac_ct_DLLTOOL" = x; then
8264 case $cross_compiling:$ac_tool_warned in
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8268 ac_tool_warned=yes ;;
8270 DLLTOOL=$ac_ct_DLLTOOL
8273 DLLTOOL="$ac_cv_prog_DLLTOOL"
8276 test -z "$DLLTOOL" && DLLTOOL=dlltool
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8288 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8289 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8290 $as_echo_n "(cached) " >&6
8292 lt_cv_sharedlib_from_linklib_cmd='unknown'
8295 cygwin* | mingw* | pw32* | cegcc*)
8296 # two different shell functions defined in ltmain.sh;
8297 # decide which one to use based on capabilities of $DLLTOOL
8298 case `$DLLTOOL --help 2>&1` in
8299 *--identify-strict*)
8300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8308 # fallback: assume linklib IS sharedlib
8309 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8315 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8316 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8317 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8325 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_AR+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$AR"; then
8336 ac_cv_prog_AR="$AR" # Let the user override the test.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 if test -n "$AR"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8358 $as_echo "$AR" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 test -n "$AR" && break
8368 if test -z "$AR"; then
8372 # Extract the first word of "$ac_prog", so it can be a program name with args.
8373 set dummy $ac_prog; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8377 $as_echo_n "(cached) " >&6
8379 if test -n "$ac_ct_AR"; then
8380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_ac_ct_AR="$ac_prog"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8400 if test -n "$ac_ct_AR"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8402 $as_echo "$ac_ct_AR" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8409 test -n "$ac_ct_AR" && break
8412 if test "x$ac_ct_AR" = x; then
8415 case $cross_compiling:$ac_tool_warned in
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8419 ac_tool_warned=yes ;;
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8439 $as_echo_n "checking for archiver @FILE support... " >&6; }
8440 if ${lt_cv_ar_at_file+:} false; then :
8441 $as_echo_n "(cached) " >&6
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 echo conftest.$ac_objext > conftest.lst
8457 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8459 (eval $lt_ar_try) 2>&5
8461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8462 test $ac_status = 0; }
8463 if test 0 -eq "$ac_status"; then
8464 # Ensure the archiver fails upon bogus file names.
8465 rm -f conftest.$ac_objext libconftest.a
8466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8467 (eval $lt_ar_try) 2>&5
8469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8470 test $ac_status = 0; }
8471 if test 0 -ne "$ac_status"; then
8475 rm -f conftest.* libconftest.a
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8482 $as_echo "$lt_cv_ar_at_file" >&6; }
8484 if test no = "$lt_cv_ar_at_file"; then
8487 archiver_list_spec=$lt_cv_ar_at_file
8496 if test -n "$ac_tool_prefix"; then
8497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8498 set dummy ${ac_tool_prefix}strip; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_STRIP+:} false; then :
8502 $as_echo_n "(cached) " >&6
8504 if test -n "$STRIP"; then
8505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 STRIP=$ac_cv_prog_STRIP
8525 if test -n "$STRIP"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8527 $as_echo "$STRIP" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8535 if test -z "$ac_cv_prog_STRIP"; then
8537 # Extract the first word of "strip", so it can be a program name with args.
8538 set dummy strip; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 if test -n "$ac_ct_STRIP"; then
8545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_prog_ac_ct_STRIP="strip"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8565 if test -n "$ac_ct_STRIP"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8567 $as_echo "$ac_ct_STRIP" >&6; }
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8573 if test "x$ac_ct_STRIP" = x; then
8576 case $cross_compiling:$ac_tool_warned in
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8580 ac_tool_warned=yes ;;
8585 STRIP="$ac_cv_prog_STRIP"
8588 test -z "$STRIP" && STRIP=:
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_RANLIB+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 if test -n "$RANLIB"; then
8604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 RANLIB=$ac_cv_prog_RANLIB
8624 if test -n "$RANLIB"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8626 $as_echo "$RANLIB" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8634 if test -z "$ac_cv_prog_RANLIB"; then
8635 ac_ct_RANLIB=$RANLIB
8636 # Extract the first word of "ranlib", so it can be a program name with args.
8637 set dummy ranlib; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8641 $as_echo_n "(cached) " >&6
8643 if test -n "$ac_ct_RANLIB"; then
8644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_ac_ct_RANLIB="ranlib"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8664 if test -n "$ac_ct_RANLIB"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8666 $as_echo "$ac_ct_RANLIB" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8672 if test "x$ac_ct_RANLIB" = x; then
8675 case $cross_compiling:$ac_tool_warned in
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned=yes ;;
8681 RANLIB=$ac_ct_RANLIB
8684 RANLIB="$ac_cv_prog_RANLIB"
8687 test -z "$RANLIB" && RANLIB=:
8694 # Determine commands to create old-style static archives.
8695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8696 old_postinstall_cmds='chmod 644 $oldlib'
8697 old_postuninstall_cmds=
8699 if test -n "$RANLIB"; then
8702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8713 lock_old_archive_extraction=yes ;;
8715 lock_old_archive_extraction=no ;;
8738 for ac_prog in gawk mawk nawk awk
8740 # Extract the first word of "$ac_prog", so it can be a program name with args.
8741 set dummy $ac_prog; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_AWK+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$AWK"; then
8748 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_AWK="$ac_prog"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 if test -n "$AWK"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8770 $as_echo "$AWK" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8777 test -n "$AWK" && break
8798 # If no C compiler was specified, use CC.
8801 # If no C compiler flags were specified, use CFLAGS.
8802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8804 # Allow CC to be a program name with arguments.
8808 # Check for command to grab the raw symbol name followed by C symbol from nm.
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8810 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8811 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8812 $as_echo_n "(cached) " >&6
8815 # These are sane defaults that work on at least a few old systems.
8816 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8818 # Character class describing NM global symbol codes.
8819 symcode='[BCDEGRST]'
8821 # Regexp to match symbols that can be accessed directly from C.
8822 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8824 # Define system-specific variables.
8829 cygwin* | mingw* | pw32* | cegcc*)
8830 symcode='[ABCDGISTW]'
8833 if test ia64 = "$host_cpu"; then
8834 symcode='[ABCDEGRST]'
8838 symcode='[BCDEGRST]'
8841 symcode='[BCDEGQRST]'
8852 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8860 # If we're using GNU nm, then use its standard symbol codes.
8861 case `$NM -V 2>&1` in
8862 *GNU* | *'with BFD'*)
8863 symcode='[ABCDGIRSTW]' ;;
8866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8867 # Gets list of data symbols to import.
8868 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8869 # Adjust the below global symbol transforms to fixup imported variables.
8870 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8871 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8872 lt_c_name_lib_hook="\
8873 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8874 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8876 # Disable hooks by default.
8877 lt_cv_sys_global_symbol_to_import=
8883 # Transform an extracted symbol line into a proper C declaration.
8884 # Some systems (esp. on ia64) link data and code symbols differently,
8885 # so use this general approach.
8886 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8888 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8889 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8891 # Transform an extracted symbol line into symbol name and symbol address
8892 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8894 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8895 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8897 # Transform an extracted symbol line into symbol name with lib prefix and
8899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8900 $lt_c_name_lib_hook\
8901 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8902 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8903 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8905 # Handle CRLF in mingw tool chain
8909 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8913 # Try without a prefix underscore, then with it.
8914 for ac_symprfx in "" "_"; do
8916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8917 symxfrm="\\1 $ac_symprfx\\2 \\2"
8919 # Write the raw and C identifiers.
8920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8921 # Fake it for dumpbin and say T for any non-static function,
8922 # D for any global variable and I for any imported variable.
8923 # Also find C++ and __fastcall symbols from MSVC++,
8924 # which start with @ or ?.
8925 lt_cv_sys_global_symbol_pipe="$AWK '"\
8926 " {last_section=section; section=\$ 3};"\
8927 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8928 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8929 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8930 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8931 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8932 " \$ 0!~/External *\|/{next};"\
8933 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8934 " {if(hide[section]) next};"\
8935 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8936 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8937 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8938 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8939 " ' prfx=^$ac_symprfx"
8941 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8943 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8945 # Check to see that the pipe works correctly.
8949 cat > conftest.$ac_ext <<_LT_EOF
8954 void nm_test_func(void);
8955 void nm_test_func(void){}
8959 int main(){nm_test_var='a';nm_test_func();return(0);}
8962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8963 (eval $ac_compile) 2>&5
8965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8966 test $ac_status = 0; }; then
8967 # Now try to grab the symbols.
8969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8970 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8973 test $ac_status = 0; } && test -s "$nlist"; then
8974 # Try sorting and uniquifying the output.
8975 if sort "$nlist" | uniq > "$nlist"T; then
8976 mv -f "$nlist"T "$nlist"
8981 # Make sure that we snagged all the symbols we need.
8982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8984 cat <<_LT_EOF > conftest.$ac_ext
8985 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8986 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8987 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8988 relocations are performed -- see ld's documentation on pseudo-relocs. */
8989 # define LT_DLSYM_CONST
8990 #elif defined __osf__
8991 /* This system does not cope well with relocations in const data. */
8992 # define LT_DLSYM_CONST
8994 # define LT_DLSYM_CONST const
9002 # Now generate the symbol file.
9003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9005 cat <<_LT_EOF >> conftest.$ac_ext
9007 /* The mapping between symbol names and symbols. */
9008 LT_DLSYM_CONST struct {
9012 lt__PROGRAM__LTX_preloaded_symbols[] =
9014 { "@PROGRAM@", (void *) 0 },
9016 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9017 cat <<\_LT_EOF >> conftest.$ac_ext
9021 /* This works around a problem in FreeBSD linker */
9022 #ifdef FREEBSD_WORKAROUND
9023 static const void *lt_preloaded_setup() {
9024 return lt__PROGRAM__LTX_preloaded_symbols;
9032 # Now try linking the two files.
9033 mv conftest.$ac_objext conftstm.$ac_objext
9034 lt_globsym_save_LIBS=$LIBS
9035 lt_globsym_save_CFLAGS=$CFLAGS
9036 LIBS=conftstm.$ac_objext
9037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9039 (eval $ac_link) 2>&5
9041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9042 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9045 LIBS=$lt_globsym_save_LIBS
9046 CFLAGS=$lt_globsym_save_CFLAGS
9048 echo "cannot find nm_test_func in $nlist" >&5
9051 echo "cannot find nm_test_var in $nlist" >&5
9054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9057 echo "$progname: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9060 rm -rf conftest* conftst*
9062 # Do not use the global_symbol_pipe unless it works.
9063 if test yes = "$pipe_works"; then
9066 lt_cv_sys_global_symbol_pipe=
9072 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9073 lt_cv_sys_global_symbol_to_cdecl=
9075 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9077 $as_echo "failed" >&6; }
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9080 $as_echo "ok" >&6; }
9083 # Response file support.
9084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9085 nm_file_list_spec='@'
9086 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9087 nm_file_list_spec='@'
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9127 $as_echo_n "checking for sysroot... " >&6; }
9129 # Check whether --with-sysroot was given.
9130 if test "${with_sysroot+set}" = set; then :
9131 withval=$with_sysroot;
9138 case $with_sysroot in #(
9140 if test yes = "$GCC"; then
9141 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9145 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9151 $as_echo "$with_sysroot" >&6; }
9152 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9157 $as_echo "${lt_sysroot:-no}" >&6; }
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9164 $as_echo_n "checking for a working dd... " >&6; }
9165 if ${ac_cv_path_lt_DD+:} false; then :
9166 $as_echo_n "(cached) " >&6
9168 printf 0123456789abcdef0123456789abcdef >conftest.i
9169 cat conftest.i conftest.i >conftest2.i
9171 if test -z "$lt_DD"; then
9172 ac_path_lt_DD_found=false
9173 # Loop through the user's path and test for each of PROGNAME-LIST
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 test -z "$as_dir" && as_dir=.
9179 for ac_prog in dd; do
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9182 as_fn_executable_p "$ac_path_lt_DD" || continue
9183 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9184 cmp -s conftest.i conftest.out \
9185 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9187 $ac_path_lt_DD_found && break 3
9192 if test -z "$ac_cv_path_lt_DD"; then
9196 ac_cv_path_lt_DD=$lt_DD
9199 rm -f conftest.i conftest2.i conftest.out
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9202 $as_echo "$ac_cv_path_lt_DD" >&6; }
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9206 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9207 if ${lt_cv_truncate_bin+:} false; then :
9208 $as_echo_n "(cached) " >&6
9210 printf 0123456789abcdef0123456789abcdef >conftest.i
9211 cat conftest.i conftest.i >conftest2.i
9213 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9214 cmp -s conftest.i conftest.out \
9215 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9217 rm -f conftest.i conftest2.i conftest.out
9218 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9221 $as_echo "$lt_cv_truncate_bin" >&6; }
9229 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9232 for cc_temp in $*""; do
9234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9240 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9243 # Check whether --enable-libtool-lock was given.
9244 if test "${enable_libtool_lock+set}" = set; then :
9245 enableval=$enable_libtool_lock;
9248 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9250 # Some flags need to be propagated to the compiler or linker for good
9254 # Find out what ABI is being produced by ac_compile, and set mode
9255 # options accordingly.
9256 echo 'int i;' > conftest.$ac_ext
9257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9258 (eval $ac_compile) 2>&5
9260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261 test $ac_status = 0; }; then
9262 case `/usr/bin/file conftest.$ac_objext` in
9274 # Find out what ABI is being produced by ac_compile, and set linker
9275 # options accordingly.
9276 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9278 (eval $ac_compile) 2>&5
9280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9281 test $ac_status = 0; }; then
9282 if test yes = "$lt_cv_prog_gnu_ld"; then
9283 case `/usr/bin/file conftest.$ac_objext` in
9285 LD="${LD-ld} -melf32bsmip"
9288 LD="${LD-ld} -melf32bmipn32"
9291 LD="${LD-ld} -melf64bmip"
9295 case `/usr/bin/file conftest.$ac_objext` in
9312 # Find out what ABI is being produced by ac_compile, and set linker
9313 # options accordingly.
9314 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9316 (eval $ac_compile) 2>&5
9318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9319 test $ac_status = 0; }; then
9321 case `/usr/bin/file conftest.$ac_objext` in
9329 case `/usr/bin/file conftest.$ac_objext` in
9331 emul="${emul}btsmip"
9334 emul="${emul}ltsmip"
9337 case `/usr/bin/file conftest.$ac_objext` in
9342 LD="${LD-ld} -m $emul"
9347 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9348 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9349 # Find out what ABI is being produced by ac_compile, and set linker
9350 # options accordingly. Note that the listed cases only cover the
9351 # situations where additional linker options are needed (such as when
9352 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9353 # vice versa); the common cases where no linker options are needed do
9354 # not appear in the list.
9355 echo 'int i;' > conftest.$ac_ext
9356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9357 (eval $ac_compile) 2>&5
9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9360 test $ac_status = 0; }; then
9361 case `/usr/bin/file conftest.o` in
9364 x86_64-*kfreebsd*-gnu)
9365 LD="${LD-ld} -m elf_i386_fbsd"
9368 case `/usr/bin/file conftest.o` in
9370 LD="${LD-ld} -m elf32_x86_64"
9373 LD="${LD-ld} -m elf_i386"
9377 powerpc64le-*linux*)
9378 LD="${LD-ld} -m elf32lppclinux"
9381 LD="${LD-ld} -m elf32ppclinux"
9384 LD="${LD-ld} -m elf_s390"
9387 LD="${LD-ld} -m elf32_sparc"
9393 x86_64-*kfreebsd*-gnu)
9394 LD="${LD-ld} -m elf_x86_64_fbsd"
9397 LD="${LD-ld} -m elf_x86_64"
9400 LD="${LD-ld} -m elf64lppc"
9403 LD="${LD-ld} -m elf64ppc"
9405 s390*-*linux*|s390*-*tpf*)
9406 LD="${LD-ld} -m elf64_s390"
9409 LD="${LD-ld} -m elf64_sparc"
9419 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9421 CFLAGS="$CFLAGS -belf"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9423 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9424 if ${lt_cv_cc_needs_belf+:} false; then :
9425 $as_echo_n "(cached) " >&6
9428 ac_cpp='$CPP $CPPFLAGS'
9429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 lt_cv_cc_needs_belf=yes
9447 lt_cv_cc_needs_belf=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9452 ac_cpp='$CPP $CPPFLAGS'
9453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9459 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9460 if test yes != "$lt_cv_cc_needs_belf"; then
9461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9466 # Find out what ABI is being produced by ac_compile, and set linker
9467 # options accordingly.
9468 echo 'int i;' > conftest.$ac_ext
9469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9470 (eval $ac_compile) 2>&5
9472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473 test $ac_status = 0; }; then
9474 case `/usr/bin/file conftest.o` in
9476 case $lt_cv_prog_gnu_ld in
9479 i?86-*-solaris*|x86_64-*-solaris*)
9480 LD="${LD-ld} -m elf_x86_64"
9483 LD="${LD-ld} -m elf64_sparc"
9486 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9487 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9492 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9504 need_locks=$enable_libtool_lock
9506 if test -n "$ac_tool_prefix"; then
9507 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9508 set dummy ${ac_tool_prefix}mt; ac_word=$2
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9510 $as_echo_n "checking for $ac_word... " >&6; }
9511 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9512 $as_echo_n "(cached) " >&6
9514 if test -n "$MANIFEST_TOOL"; then
9515 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9535 if test -n "$MANIFEST_TOOL"; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9537 $as_echo "$MANIFEST_TOOL" >&6; }
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9545 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9546 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9547 # Extract the first word of "mt", so it can be a program name with args.
9548 set dummy mt; ac_word=$2
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550 $as_echo_n "checking for $ac_word... " >&6; }
9551 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9552 $as_echo_n "(cached) " >&6
9554 if test -n "$ac_ct_MANIFEST_TOOL"; then
9555 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 test -z "$as_dir" && as_dir=.
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9564 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9575 if test -n "$ac_ct_MANIFEST_TOOL"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9577 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9583 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9586 case $cross_compiling:$ac_tool_warned in
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9590 ac_tool_warned=yes ;;
9592 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9595 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9598 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9600 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9601 if ${lt_cv_path_mainfest_tool+:} false; then :
9602 $as_echo_n "(cached) " >&6
9604 lt_cv_path_mainfest_tool=no
9605 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9606 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9607 cat conftest.err >&5
9608 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9609 lt_cv_path_mainfest_tool=yes
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9614 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9615 if test yes != "$lt_cv_path_mainfest_tool"; then
9625 rhapsody* | darwin*)
9626 if test -n "$ac_tool_prefix"; then
9627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9628 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9632 $as_echo_n "(cached) " >&6
9634 if test -n "$DSYMUTIL"; then
9635 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9655 if test -n "$DSYMUTIL"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9657 $as_echo "$DSYMUTIL" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9665 if test -z "$ac_cv_prog_DSYMUTIL"; then
9666 ac_ct_DSYMUTIL=$DSYMUTIL
9667 # Extract the first word of "dsymutil", so it can be a program name with args.
9668 set dummy dsymutil; ac_word=$2
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670 $as_echo_n "checking for $ac_word... " >&6; }
9671 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 if test -n "$ac_ct_DSYMUTIL"; then
9675 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9695 if test -n "$ac_ct_DSYMUTIL"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9697 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9703 if test "x$ac_ct_DSYMUTIL" = x; then
9706 case $cross_compiling:$ac_tool_warned in
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9710 ac_tool_warned=yes ;;
9712 DSYMUTIL=$ac_ct_DSYMUTIL
9715 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9718 if test -n "$ac_tool_prefix"; then
9719 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9720 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_prog_NMEDIT+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 if test -n "$NMEDIT"; then
9727 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 NMEDIT=$ac_cv_prog_NMEDIT
9747 if test -n "$NMEDIT"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9749 $as_echo "$NMEDIT" >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9757 if test -z "$ac_cv_prog_NMEDIT"; then
9758 ac_ct_NMEDIT=$NMEDIT
9759 # Extract the first word of "nmedit", so it can be a program name with args.
9760 set dummy nmedit; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9764 $as_echo_n "(cached) " >&6
9766 if test -n "$ac_ct_NMEDIT"; then
9767 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9776 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9787 if test -n "$ac_ct_NMEDIT"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9789 $as_echo "$ac_ct_NMEDIT" >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9795 if test "x$ac_ct_NMEDIT" = x; then
9798 case $cross_compiling:$ac_tool_warned in
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9802 ac_tool_warned=yes ;;
9804 NMEDIT=$ac_ct_NMEDIT
9807 NMEDIT="$ac_cv_prog_NMEDIT"
9810 if test -n "$ac_tool_prefix"; then
9811 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if ${ac_cv_prog_LIPO+:} false; then :
9816 $as_echo_n "(cached) " >&6
9818 if test -n "$LIPO"; then
9819 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9828 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 LIPO=$ac_cv_prog_LIPO
9839 if test -n "$LIPO"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9841 $as_echo "$LIPO" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9849 if test -z "$ac_cv_prog_LIPO"; then
9851 # Extract the first word of "lipo", so it can be a program name with args.
9852 set dummy lipo; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9856 $as_echo_n "(cached) " >&6
9858 if test -n "$ac_ct_LIPO"; then
9859 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868 ac_cv_prog_ac_ct_LIPO="lipo"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9879 if test -n "$ac_ct_LIPO"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9881 $as_echo "$ac_ct_LIPO" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9887 if test "x$ac_ct_LIPO" = x; then
9890 case $cross_compiling:$ac_tool_warned in
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894 ac_tool_warned=yes ;;
9899 LIPO="$ac_cv_prog_LIPO"
9902 if test -n "$ac_tool_prefix"; then
9903 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9904 set dummy ${ac_tool_prefix}otool; ac_word=$2
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9906 $as_echo_n "checking for $ac_word... " >&6; }
9907 if ${ac_cv_prog_OTOOL+:} false; then :
9908 $as_echo_n "(cached) " >&6
9910 if test -n "$OTOOL"; then
9911 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 test -z "$as_dir" && as_dir=.
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9920 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 OTOOL=$ac_cv_prog_OTOOL
9931 if test -n "$OTOOL"; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9933 $as_echo "$OTOOL" >&6; }
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; }
9941 if test -z "$ac_cv_prog_OTOOL"; then
9943 # Extract the first word of "otool", so it can be a program name with args.
9944 set dummy otool; ac_word=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9948 $as_echo_n "(cached) " >&6
9950 if test -n "$ac_ct_OTOOL"; then
9951 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_prog_ac_ct_OTOOL="otool"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9971 if test -n "$ac_ct_OTOOL"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9973 $as_echo "$ac_ct_OTOOL" >&6; }
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9979 if test "x$ac_ct_OTOOL" = x; then
9982 case $cross_compiling:$ac_tool_warned in
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9986 ac_tool_warned=yes ;;
9991 OTOOL="$ac_cv_prog_OTOOL"
9994 if test -n "$ac_tool_prefix"; then
9995 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9996 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if ${ac_cv_prog_OTOOL64+:} false; then :
10000 $as_echo_n "(cached) " >&6
10002 if test -n "$OTOOL64"; then
10003 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 OTOOL64=$ac_cv_prog_OTOOL64
10023 if test -n "$OTOOL64"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10025 $as_echo "$OTOOL64" >&6; }
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10033 if test -z "$ac_cv_prog_OTOOL64"; then
10034 ac_ct_OTOOL64=$OTOOL64
10035 # Extract the first word of "otool64", so it can be a program name with args.
10036 set dummy otool64; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10040 $as_echo_n "(cached) " >&6
10042 if test -n "$ac_ct_OTOOL64"; then
10043 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052 ac_cv_prog_ac_ct_OTOOL64="otool64"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10063 if test -n "$ac_ct_OTOOL64"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10065 $as_echo "$ac_ct_OTOOL64" >&6; }
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 $as_echo "no" >&6; }
10071 if test "x$ac_ct_OTOOL64" = x; then
10074 case $cross_compiling:$ac_tool_warned in
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10078 ac_tool_warned=yes ;;
10080 OTOOL64=$ac_ct_OTOOL64
10083 OTOOL64="$ac_cv_prog_OTOOL64"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10113 $as_echo_n "checking for -single_module linker flag... " >&6; }
10114 if ${lt_cv_apple_cc_single_mod+:} false; then :
10115 $as_echo_n "(cached) " >&6
10117 lt_cv_apple_cc_single_mod=no
10118 if test -z "$LT_MULTI_MODULE"; then
10119 # By default we will add the -single_module flag. You can override
10120 # by either setting the environment variable LT_MULTI_MODULE
10121 # non-empty at configure time, or by adding -multi_module to the
10123 rm -rf libconftest.dylib*
10124 echo "int foo(void){return 1;}" > conftest.c
10125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10126 -dynamiclib -Wl,-single_module conftest.c" >&5
10127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10130 # If there is a non-empty error log, and "single_module"
10131 # appears in it, assume the flag caused a linker warning
10132 if test -s conftest.err && $GREP single_module conftest.err; then
10133 cat conftest.err >&5
10134 # Otherwise, if the output was created with a 0 exit code from
10135 # the compiler, it worked.
10136 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10137 lt_cv_apple_cc_single_mod=yes
10139 cat conftest.err >&5
10141 rm -rf libconftest.dylib*
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10146 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10149 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10150 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10151 $as_echo_n "(cached) " >&6
10153 lt_cv_ld_exported_symbols_list=no
10154 save_LDFLAGS=$LDFLAGS
10155 echo "_main" > conftest.sym
10156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10168 if ac_fn_c_try_link "$LINENO"; then :
10169 lt_cv_ld_exported_symbols_list=yes
10171 lt_cv_ld_exported_symbols_list=no
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LDFLAGS=$save_LDFLAGS
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10179 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10182 $as_echo_n "checking for -force_load linker flag... " >&6; }
10183 if ${lt_cv_ld_force_load+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 lt_cv_ld_force_load=no
10187 cat > conftest.c << _LT_EOF
10188 int forced_loaded() { return 2;}
10190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10192 echo "$AR cru libconftest.a conftest.o" >&5
10193 $AR cru libconftest.a conftest.o 2>&5
10194 echo "$RANLIB libconftest.a" >&5
10195 $RANLIB libconftest.a 2>&5
10196 cat > conftest.c << _LT_EOF
10197 int main() { return 0;}
10199 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10200 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10202 if test -s conftest.err && $GREP force_load conftest.err; then
10203 cat conftest.err >&5
10204 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10205 lt_cv_ld_force_load=yes
10207 cat conftest.err >&5
10209 rm -f conftest.err libconftest.a conftest conftest.c
10210 rm -rf conftest.dSYM
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10214 $as_echo "$lt_cv_ld_force_load" >&6; }
10216 rhapsody* | darwin1.[012])
10217 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10219 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10220 darwin*) # darwin 5.x on
10221 # if running on 10.5 or later, the deployment target defaults
10222 # to the OS version, if on x86, and 10.4, the deployment
10223 # target defaults to 10.4. Don't you love it?
10224 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10225 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10226 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10230 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10234 if test yes = "$lt_cv_apple_cc_single_mod"; then
10235 _lt_dar_single_mod='$single_module'
10237 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10238 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10240 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10242 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10243 _lt_dsymutil='~$DSYMUTIL $lib || :'
10250 # func_munge_path_list VARIABLE PATH
10251 # -----------------------------------
10252 # VARIABLE is name of variable containing _space_ separated list of
10253 # directories to be munged by the contents of PATH, which is string
10256 # string "DIR[ DIR]" will be prepended to VARIABLE
10258 # string "DIR[ DIR]" will be appended to VARIABLE
10259 # "DIRP[:DIRP]::[DIRA:]DIRA"
10260 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10261 # "DIRA[ DIRA]" will be appended to VARIABLE
10263 # VARIABLE will be replaced by "DIR[ DIR]"
10264 func_munge_path_list ()
10270 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10273 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10276 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10277 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10285 for ac_header in dlfcn.h
10287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10289 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10290 cat >>confdefs.h <<_ACEOF
10291 #define HAVE_DLFCN_H 1
10311 enable_win32_dll=no
10314 # Check whether --enable-shared was given.
10315 if test "${enable_shared+set}" = set; then :
10316 enableval=$enable_shared; p=${PACKAGE-default}
10318 yes) enable_shared=yes ;;
10319 no) enable_shared=no ;;
10322 # Look at the argument we got. We use all the common list separators.
10323 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10324 for pkg in $enableval; do
10326 if test "X$pkg" = "X$p"; then
10345 # Check whether --enable-static was given.
10346 if test "${enable_static+set}" = set; then :
10347 enableval=$enable_static; p=${PACKAGE-default}
10349 yes) enable_static=yes ;;
10350 no) enable_static=no ;;
10353 # Look at the argument we got. We use all the common list separators.
10354 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10355 for pkg in $enableval; do
10357 if test "X$pkg" = "X$p"; then
10377 # Check whether --with-pic was given.
10378 if test "${with_pic+set}" = set; then :
10379 withval=$with_pic; lt_p=${PACKAGE-default}
10381 yes|no) pic_mode=$withval ;;
10384 # Look at the argument we got. We use all the common list separators.
10385 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10386 for lt_pkg in $withval; do
10388 if test "X$lt_pkg" = "X$lt_p"; then
10406 # Check whether --enable-fast-install was given.
10407 if test "${enable_fast_install+set}" = set; then :
10408 enableval=$enable_fast_install; p=${PACKAGE-default}
10410 yes) enable_fast_install=yes ;;
10411 no) enable_fast_install=no ;;
10413 enable_fast_install=no
10414 # Look at the argument we got. We use all the common list separators.
10415 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10416 for pkg in $enableval; do
10418 if test "X$pkg" = "X$p"; then
10419 enable_fast_install=yes
10426 enable_fast_install=yes
10436 shared_archive_member_spec=
10437 case $host,$enable_shared in
10438 power*-*-aix[5-9]*,yes)
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10440 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10442 # Check whether --with-aix-soname was given.
10443 if test "${with_aix_soname+set}" = set; then :
10444 withval=$with_aix_soname; case $withval in
10448 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10451 lt_cv_with_aix_soname=$with_aix_soname
10453 if ${lt_cv_with_aix_soname+:} false; then :
10454 $as_echo_n "(cached) " >&6
10456 lt_cv_with_aix_soname=aix
10459 with_aix_soname=$lt_cv_with_aix_soname
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10463 $as_echo "$with_aix_soname" >&6; }
10464 if test aix != "$with_aix_soname"; then
10465 # For the AIX way of multilib, we name the shared archive member
10466 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10467 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10468 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10469 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10470 if test 64 = "${OBJECT_MODE-32}"; then
10471 shared_archive_member_spec=shr_64
10473 shared_archive_member_spec=shr
10478 with_aix_soname=aix
10491 # This can be used to rebuild libtool when needed
10492 LIBTOOL_DEPS=$ltmain
10494 # Always use our own libtool.
10495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10526 test -z "$LN_S" && LN_S="ln -s"
10541 if test -n "${ZSH_VERSION+set}"; then
10542 setopt NO_GLOB_SUBST
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10546 $as_echo_n "checking for objdir... " >&6; }
10547 if ${lt_cv_objdir+:} false; then :
10548 $as_echo_n "(cached) " >&6
10550 rm -f .libs 2>/dev/null
10551 mkdir .libs 2>/dev/null
10552 if test -d .libs; then
10555 # MS-DOS does not allow filenames that begin with a dot.
10558 rmdir .libs 2>/dev/null
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10561 $as_echo "$lt_cv_objdir" >&6; }
10562 objdir=$lt_cv_objdir
10568 cat >>confdefs.h <<_ACEOF
10569 #define LT_OBJDIR "$lt_cv_objdir/"
10577 # AIX sometimes has problems with the GCC collect2 program. For some
10578 # reason, if we set the COLLECT_NAMES environment variable, the problems
10579 # vanish in a puff of smoke.
10580 if test set != "${COLLECT_NAMES+set}"; then
10582 export COLLECT_NAMES
10587 # Global variables:
10589 can_build_shared=yes
10591 # All known linkers require a '.a' archive for static linking (except MSVC,
10592 # which needs '.lib').
10595 with_gnu_ld=$lt_cv_prog_gnu_ld
10600 # Set sane defaults for various variables
10601 test -z "$CC" && CC=cc
10602 test -z "$LTCC" && LTCC=$CC
10603 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10604 test -z "$LD" && LD=ld
10605 test -z "$ac_objext" && ac_objext=o
10607 func_cc_basename $compiler
10608 cc_basename=$func_cc_basename_result
10611 # Only perform the check for file, if the check method requires it
10612 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10613 case $deplibs_check_method in
10615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10617 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10618 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10619 $as_echo_n "(cached) " >&6
10623 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10626 lt_save_MAGIC_CMD=$MAGIC_CMD
10627 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10629 for ac_dir in $ac_dummy; do
10631 test -z "$ac_dir" && ac_dir=.
10632 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10633 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10634 if test -n "$file_magic_test_file"; then
10635 case $deplibs_check_method in
10637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10638 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10640 $EGREP "$file_magic_regex" > /dev/null; then
10645 *** Warning: the command libtool uses to detect shared libraries,
10646 *** $file_magic_cmd, produces output that libtool cannot recognize.
10647 *** The result is that libtool may fail to recognize shared libraries
10648 *** as such. This will affect the creation of libtool libraries that
10649 *** depend on shared libraries, but programs linked with such libtool
10650 *** libraries will work regardless of this problem. Nevertheless, you
10651 *** may want to report the problem to your system manager and/or to
10652 *** bug-libtool@gnu.org
10662 MAGIC_CMD=$lt_save_MAGIC_CMD
10667 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10668 if test -n "$MAGIC_CMD"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10670 $as_echo "$MAGIC_CMD" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10680 if test -z "$lt_cv_path_MAGIC_CMD"; then
10681 if test -n "$ac_tool_prefix"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10683 $as_echo_n "checking for file... " >&6; }
10684 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10685 $as_echo_n "(cached) " >&6
10689 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10692 lt_save_MAGIC_CMD=$MAGIC_CMD
10693 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10695 for ac_dir in $ac_dummy; do
10697 test -z "$ac_dir" && ac_dir=.
10698 if test -f "$ac_dir/file"; then
10699 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10700 if test -n "$file_magic_test_file"; then
10701 case $deplibs_check_method in
10703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10704 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10706 $EGREP "$file_magic_regex" > /dev/null; then
10711 *** Warning: the command libtool uses to detect shared libraries,
10712 *** $file_magic_cmd, produces output that libtool cannot recognize.
10713 *** The result is that libtool may fail to recognize shared libraries
10714 *** as such. This will affect the creation of libtool libraries that
10715 *** depend on shared libraries, but programs linked with such libtool
10716 *** libraries will work regardless of this problem. Nevertheless, you
10717 *** may want to report the problem to your system manager and/or to
10718 *** bug-libtool@gnu.org
10728 MAGIC_CMD=$lt_save_MAGIC_CMD
10733 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10734 if test -n "$MAGIC_CMD"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10736 $as_echo "$MAGIC_CMD" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10752 # Use C for the default configuration in the libtool script
10756 ac_cpp='$CPP $CPPFLAGS'
10757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10762 # Source file extension for C test sources.
10765 # Object file extension for compiled C test sources.
10769 # Code to be used in simple compile tests
10770 lt_simple_compile_test_code="int some_variable = 0;"
10772 # Code to be used in simple link tests
10773 lt_simple_link_test_code='int main(){return(0);}'
10781 # If no C compiler was specified, use CC.
10784 # If no C compiler flags were specified, use CFLAGS.
10785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10787 # Allow CC to be a program name with arguments.
10790 # Save the default compiler, since it gets overwritten when the other
10791 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10792 compiler_DEFAULT=$CC
10794 # save warnings/boilerplate of simple test code
10795 ac_outfile=conftest.$ac_objext
10796 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10797 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10798 _lt_compiler_boilerplate=`cat conftest.err`
10801 ac_outfile=conftest.$ac_objext
10802 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10803 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10804 _lt_linker_boilerplate=`cat conftest.err`
10808 if test -n "$compiler"; then
10810 lt_prog_compiler_no_builtin_flag=
10812 if test yes = "$GCC"; then
10813 case $cc_basename in
10815 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10817 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10821 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10822 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10823 $as_echo_n "(cached) " >&6
10825 lt_cv_prog_compiler_rtti_exceptions=no
10826 ac_outfile=conftest.$ac_objext
10827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10829 # Insert the option either (1) after the last *FLAGS variable, or
10830 # (2) before a word containing "conftest.", or (3) at the end.
10831 # Note that $ac_compile itself does not contain backslashes and begins
10832 # with a dollar sign (not a hyphen), so the echo should work correctly.
10833 # The option is referenced via a variable to avoid confusing sed.
10834 lt_compile=`echo "$ac_compile" | $SED \
10835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10837 -e 's:$: $lt_compiler_flag:'`
10838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10839 (eval "$lt_compile" 2>conftest.err)
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 if (exit $ac_status) && test -s "$ac_outfile"; then
10844 # The compiler can only warn and ignore the option if not recognized
10845 # So say no if there are warnings other than the usual output.
10846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10849 lt_cv_prog_compiler_rtti_exceptions=yes
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10856 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10858 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10871 lt_prog_compiler_wl=
10872 lt_prog_compiler_pic=
10873 lt_prog_compiler_static=
10876 if test yes = "$GCC"; then
10877 lt_prog_compiler_wl='-Wl,'
10878 lt_prog_compiler_static='-static'
10882 # All AIX code is PIC.
10883 if test ia64 = "$host_cpu"; then
10884 # AIX 5 now supports IA64 processor
10885 lt_prog_compiler_static='-Bstatic'
10887 lt_prog_compiler_pic='-fPIC'
10893 # see comment about AmigaOS4 .so support
10894 lt_prog_compiler_pic='-fPIC'
10897 # FIXME: we need at least 68020 code to build shared libraries, but
10898 # adding the '-m68020' flag to GCC prevents building anything better,
10900 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10905 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10906 # PIC is the default for these OSes.
10909 mingw* | cygwin* | pw32* | os2* | cegcc*)
10910 # This hack is so that the source file can tell whether it is being
10911 # built for inclusion in a dll (and should export symbols for example).
10912 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10913 # (--disable-auto-import) libraries
10914 lt_prog_compiler_pic='-DDLL_EXPORT'
10917 lt_prog_compiler_static='$wl-static'
10922 darwin* | rhapsody*)
10923 # PIC is the default on this platform
10924 # Common symbols not allowed in MH_DYLIB files
10925 lt_prog_compiler_pic='-fno-common'
10929 # PIC is the default for Haiku.
10930 # The "-static" flag exists, but is broken.
10931 lt_prog_compiler_static=
10935 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10936 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10937 # sets the default TLS model and affects inlining.
10943 lt_prog_compiler_pic='-fPIC'
10949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10950 # Instead, we relocate shared libraries at runtime.
10954 # Just because we use GCC doesn't mean we suddenly get shared libraries
10955 # on systems that don't support them.
10956 lt_prog_compiler_can_build_shared=no
10961 # QNX uses GNU C++, but need to define -shared option too, otherwise
10962 # it will coredump.
10963 lt_prog_compiler_pic='-fPIC -shared'
10967 if test -d /usr/nec; then
10968 lt_prog_compiler_pic=-Kconform_pic
10973 lt_prog_compiler_pic='-fPIC'
10977 case $cc_basename in
10978 nvcc*) # Cuda Compiler Driver 2.2
10979 lt_prog_compiler_wl='-Xlinker '
10980 if test -n "$lt_prog_compiler_pic"; then
10981 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10986 # PORTME Check for flag to pass linker flags through the system compiler.
10989 lt_prog_compiler_wl='-Wl,'
10990 if test ia64 = "$host_cpu"; then
10991 # AIX 5 now supports IA64 processor
10992 lt_prog_compiler_static='-Bstatic'
10994 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10998 darwin* | rhapsody*)
10999 # PIC is the default on this platform
11000 # Common symbols not allowed in MH_DYLIB files
11001 lt_prog_compiler_pic='-fno-common'
11002 case $cc_basename in
11004 # NAG Fortran compiler
11005 lt_prog_compiler_wl='-Wl,-Wl,,'
11006 lt_prog_compiler_pic='-PIC'
11007 lt_prog_compiler_static='-Bstatic'
11012 mingw* | cygwin* | pw32* | os2* | cegcc*)
11013 # This hack is so that the source file can tell whether it is being
11014 # built for inclusion in a dll (and should export symbols for example).
11015 lt_prog_compiler_pic='-DDLL_EXPORT'
11018 lt_prog_compiler_static='$wl-static'
11023 hpux9* | hpux10* | hpux11*)
11024 lt_prog_compiler_wl='-Wl,'
11025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11026 # not for PA HP-UX.
11032 lt_prog_compiler_pic='+Z'
11035 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11036 lt_prog_compiler_static='$wl-a ${wl}archive'
11039 irix5* | irix6* | nonstopux*)
11040 lt_prog_compiler_wl='-Wl,'
11041 # PIC (with -KPIC) is the default.
11042 lt_prog_compiler_static='-non_shared'
11045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11046 case $cc_basename in
11047 # old Intel for x86_64, which still supported -KPIC.
11049 lt_prog_compiler_wl='-Wl,'
11050 lt_prog_compiler_pic='-KPIC'
11051 lt_prog_compiler_static='-static'
11053 # icc used to be incompatible with GCC.
11054 # ICC 10 doesn't accept -KPIC any more.
11056 lt_prog_compiler_wl='-Wl,'
11057 lt_prog_compiler_pic='-fPIC'
11058 lt_prog_compiler_static='-static'
11060 # Lahey Fortran 8.1.
11062 lt_prog_compiler_wl='-Wl,'
11063 lt_prog_compiler_pic='--shared'
11064 lt_prog_compiler_static='--static'
11067 # NAG Fortran compiler
11068 lt_prog_compiler_wl='-Wl,-Wl,,'
11069 lt_prog_compiler_pic='-PIC'
11070 lt_prog_compiler_static='-Bstatic'
11073 # Fabrice Bellard et al's Tiny C Compiler
11074 lt_prog_compiler_wl='-Wl,'
11075 lt_prog_compiler_pic='-fPIC'
11076 lt_prog_compiler_static='-static'
11078 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11079 # Portland Group compilers (*not* the Pentium gcc compiler,
11080 # which looks to be a dead project)
11081 lt_prog_compiler_wl='-Wl,'
11082 lt_prog_compiler_pic='-fpic'
11083 lt_prog_compiler_static='-Bstatic'
11086 lt_prog_compiler_wl='-Wl,'
11087 # All Alpha code is PIC.
11088 lt_prog_compiler_static='-non_shared'
11090 xl* | bgxl* | bgf* | mpixl*)
11091 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11092 lt_prog_compiler_wl='-Wl,'
11093 lt_prog_compiler_pic='-qpic'
11094 lt_prog_compiler_static='-qstaticlink'
11097 case `$CC -V 2>&1 | sed 5q` in
11098 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11099 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11100 lt_prog_compiler_pic='-KPIC'
11101 lt_prog_compiler_static='-Bstatic'
11102 lt_prog_compiler_wl=''
11104 *Sun\ F* | *Sun*Fortran*)
11105 lt_prog_compiler_pic='-KPIC'
11106 lt_prog_compiler_static='-Bstatic'
11107 lt_prog_compiler_wl='-Qoption ld '
11111 lt_prog_compiler_pic='-KPIC'
11112 lt_prog_compiler_static='-Bstatic'
11113 lt_prog_compiler_wl='-Wl,'
11115 *Intel*\ [CF]*Compiler*)
11116 lt_prog_compiler_wl='-Wl,'
11117 lt_prog_compiler_pic='-fPIC'
11118 lt_prog_compiler_static='-static'
11121 lt_prog_compiler_wl='-Wl,'
11122 lt_prog_compiler_pic='-fpic'
11123 lt_prog_compiler_static='-Bstatic'
11131 lt_prog_compiler_pic='-KPIC'
11132 lt_prog_compiler_static='-Bstatic'
11136 # QNX uses GNU C++, but need to define -shared option too, otherwise
11137 # it will coredump.
11138 lt_prog_compiler_pic='-fPIC -shared'
11141 osf3* | osf4* | osf5*)
11142 lt_prog_compiler_wl='-Wl,'
11143 # All OSF/1 code is PIC.
11144 lt_prog_compiler_static='-non_shared'
11148 lt_prog_compiler_static='-non_shared'
11152 lt_prog_compiler_pic='-KPIC'
11153 lt_prog_compiler_static='-Bstatic'
11154 case $cc_basename in
11155 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11156 lt_prog_compiler_wl='-Qoption ld ';;
11158 lt_prog_compiler_wl='-Wl,';;
11163 lt_prog_compiler_wl='-Qoption ld '
11164 lt_prog_compiler_pic='-PIC'
11165 lt_prog_compiler_static='-Bstatic'
11168 sysv4 | sysv4.2uw2* | sysv4.3*)
11169 lt_prog_compiler_wl='-Wl,'
11170 lt_prog_compiler_pic='-KPIC'
11171 lt_prog_compiler_static='-Bstatic'
11175 if test -d /usr/nec; then
11176 lt_prog_compiler_pic='-Kconform_pic'
11177 lt_prog_compiler_static='-Bstatic'
11181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11182 lt_prog_compiler_wl='-Wl,'
11183 lt_prog_compiler_pic='-KPIC'
11184 lt_prog_compiler_static='-Bstatic'
11188 lt_prog_compiler_wl='-Wl,'
11189 lt_prog_compiler_can_build_shared=no
11193 lt_prog_compiler_pic='-pic'
11194 lt_prog_compiler_static='-Bstatic'
11198 lt_prog_compiler_can_build_shared=no
11204 # For platforms that do not support PIC, -DPIC is meaningless:
11206 lt_prog_compiler_pic=
11209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11214 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11215 if ${lt_cv_prog_compiler_pic+:} false; then :
11216 $as_echo_n "(cached) " >&6
11218 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11221 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11222 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11225 # Check to make sure the PIC flag actually works.
11227 if test -n "$lt_prog_compiler_pic"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11229 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11230 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11231 $as_echo_n "(cached) " >&6
11233 lt_cv_prog_compiler_pic_works=no
11234 ac_outfile=conftest.$ac_objext
11235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11236 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11237 # Insert the option either (1) after the last *FLAGS variable, or
11238 # (2) before a word containing "conftest.", or (3) at the end.
11239 # Note that $ac_compile itself does not contain backslashes and begins
11240 # with a dollar sign (not a hyphen), so the echo should work correctly.
11241 # The option is referenced via a variable to avoid confusing sed.
11242 lt_compile=`echo "$ac_compile" | $SED \
11243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11245 -e 's:$: $lt_compiler_flag:'`
11246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11247 (eval "$lt_compile" 2>conftest.err)
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 if (exit $ac_status) && test -s "$ac_outfile"; then
11252 # The compiler can only warn and ignore the option if not recognized
11253 # So say no if there are warnings other than the usual output.
11254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11257 lt_cv_prog_compiler_pic_works=yes
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11264 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11266 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11267 case $lt_prog_compiler_pic in
11269 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11272 lt_prog_compiler_pic=
11273 lt_prog_compiler_can_build_shared=no
11289 # Check to make sure the static flag actually works.
11291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11294 if ${lt_cv_prog_compiler_static_works+:} false; then :
11295 $as_echo_n "(cached) " >&6
11297 lt_cv_prog_compiler_static_works=no
11298 save_LDFLAGS=$LDFLAGS
11299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11302 # The linker can only warn and ignore the option if not recognized
11303 # So say no if there are warnings
11304 if test -s conftest.err; then
11305 # Append any errors to the config.log.
11306 cat conftest.err 1>&5
11307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11309 if diff conftest.exp conftest.er2 >/dev/null; then
11310 lt_cv_prog_compiler_static_works=yes
11313 lt_cv_prog_compiler_static_works=yes
11317 LDFLAGS=$save_LDFLAGS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11323 if test yes = "$lt_cv_prog_compiler_static_works"; then
11326 lt_prog_compiler_static=
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11337 if ${lt_cv_prog_compiler_c_o+:} false; then :
11338 $as_echo_n "(cached) " >&6
11340 lt_cv_prog_compiler_c_o=no
11341 $RM -r conftest 2>/dev/null
11345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11347 lt_compiler_flag="-o out/conftest2.$ac_objext"
11348 # Insert the option either (1) after the last *FLAGS variable, or
11349 # (2) before a word containing "conftest.", or (3) at the end.
11350 # Note that $ac_compile itself does not contain backslashes and begins
11351 # with a dollar sign (not a hyphen), so the echo should work correctly.
11352 lt_compile=`echo "$ac_compile" | $SED \
11353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11355 -e 's:$: $lt_compiler_flag:'`
11356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11357 (eval "$lt_compile" 2>out/conftest.err)
11359 cat out/conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11363 # The compiler can only warn and ignore the option if not recognized
11364 # So say no if there are warnings
11365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11368 lt_cv_prog_compiler_c_o=yes
11373 # SGI C++ compiler will create directory out/ii_files/ for
11374 # template instantiation
11375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11376 $RM out/* && rmdir out
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11392 if ${lt_cv_prog_compiler_c_o+:} false; then :
11393 $as_echo_n "(cached) " >&6
11395 lt_cv_prog_compiler_c_o=no
11396 $RM -r conftest 2>/dev/null
11400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11402 lt_compiler_flag="-o out/conftest2.$ac_objext"
11403 # Insert the option either (1) after the last *FLAGS variable, or
11404 # (2) before a word containing "conftest.", or (3) at the end.
11405 # Note that $ac_compile itself does not contain backslashes and begins
11406 # with a dollar sign (not a hyphen), so the echo should work correctly.
11407 lt_compile=`echo "$ac_compile" | $SED \
11408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11410 -e 's:$: $lt_compiler_flag:'`
11411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11412 (eval "$lt_compile" 2>out/conftest.err)
11414 cat out/conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11418 # The compiler can only warn and ignore the option if not recognized
11419 # So say no if there are warnings
11420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11423 lt_cv_prog_compiler_c_o=yes
11428 # SGI C++ compiler will create directory out/ii_files/ for
11429 # template instantiation
11430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11431 $RM out/* && rmdir out
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11443 hard_links=nottested
11444 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11445 # do not overwrite the value of need_locks provided by the user
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11447 $as_echo_n "checking if we can lock with hard links... " >&6; }
11450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11452 ln conftest.a conftest.b 2>&5 || hard_links=no
11453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11455 $as_echo "$hard_links" >&6; }
11456 if test no = "$hard_links"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11458 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11474 allow_undefined_flag=
11475 always_export_symbols=no
11477 archive_expsym_cmds=
11478 compiler_needs_object=no
11479 enable_shared_with_static_runtimes=no
11480 export_dynamic_flag_spec=
11481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11482 hardcode_automatic=no
11484 hardcode_direct_absolute=no
11485 hardcode_libdir_flag_spec=
11486 hardcode_libdir_separator=
11487 hardcode_minus_L=no
11488 hardcode_shlibpath_var=unsupported
11490 link_all_deplibs=unknown
11492 module_expsym_cmds=
11493 old_archive_from_new_cmds=
11494 old_archive_from_expsyms_cmds=
11495 thread_safe_flag_spec=
11496 whole_archive_flag_spec=
11497 # include_expsyms should be a list of space-separated symbols to be *always*
11498 # included in the symbol list
11500 # exclude_expsyms can be an extended regexp of symbols to exclude
11501 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11502 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11503 # as well as any symbol that contains 'd'.
11504 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11505 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11506 # platforms (ab)use it in PIC code, but their linkers get confused if
11507 # the symbol is explicitly referenced. Since portable code cannot
11508 # rely on this symbol name, it's probably fine to never include it in
11509 # preloaded symbol tables.
11510 # Exclude shared library initialization/finalization symbols.
11511 extract_expsyms_cmds=
11514 cygwin* | mingw* | pw32* | cegcc*)
11515 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11516 # When not using gcc, we currently assume that we are using
11517 # Microsoft Visual C++.
11518 if test yes != "$GCC"; then
11523 # we just hope/assume this is gcc and not c89 (= MSVC++)
11526 openbsd* | bitrig*)
11529 linux* | k*bsd*-gnu | gnu*)
11530 link_all_deplibs=no
11536 # On some targets, GNU ld is compatible enough with the native linker
11537 # that we're better off using the native interface for both.
11538 lt_use_gnu_ld_interface=no
11539 if test yes = "$with_gnu_ld"; then
11542 # The AIX port of GNU ld has always aspired to compatibility
11543 # with the native linker. However, as the warning in the GNU ld
11544 # block says, versions before 2.19.5* couldn't really create working
11545 # shared libraries, regardless of the interface used.
11546 case `$LD -v 2>&1` in
11547 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11548 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11549 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11551 lt_use_gnu_ld_interface=yes
11556 lt_use_gnu_ld_interface=yes
11561 if test yes = "$lt_use_gnu_ld_interface"; then
11562 # If archive_cmds runs LD, not CC, wlarc should be empty
11565 # Set some defaults for GNU ld with shared library support. These
11566 # are reset later if shared libraries are not supported. Putting them
11567 # here allows them to be overridden if necessary.
11568 runpath_var=LD_RUN_PATH
11569 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11570 export_dynamic_flag_spec='$wl--export-dynamic'
11571 # ancient GNU ld didn't support --whole-archive et. al.
11572 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11573 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11575 whole_archive_flag_spec=
11577 supports_anon_versioning=no
11578 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11579 *GNU\ gold*) supports_anon_versioning=yes ;;
11580 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11581 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11582 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11583 *\ 2.11.*) ;; # other 2.11 versions
11584 *) supports_anon_versioning=yes ;;
11587 # See if GNU ld supports shared libraries.
11590 # On AIX/PPC, the GNU linker is very broken
11591 if test ia64 != "$host_cpu"; then
11595 *** Warning: the GNU linker, at least up to release 2.19, is reported
11596 *** to be unable to reliably create shared libraries on AIX.
11597 *** Therefore, libtool is disabling shared libraries support. If you
11598 *** really care for shared libraries, you may want to install binutils
11599 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11600 *** You will then need to restart the configuration process.
11609 # see comment about AmigaOS4 .so support
11610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11611 archive_expsym_cmds=''
11614 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)'
11615 hardcode_libdir_flag_spec='-L$libdir'
11616 hardcode_minus_L=yes
11622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11623 allow_undefined_flag=unsupported
11624 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11625 # support --undefined. This deserves some investigation. FIXME
11626 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11632 cygwin* | mingw* | pw32* | cegcc*)
11633 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11634 # as there is no search path for DLLs.
11635 hardcode_libdir_flag_spec='-L$libdir'
11636 export_dynamic_flag_spec='$wl--export-all-symbols'
11637 allow_undefined_flag=unsupported
11638 always_export_symbols=no
11639 enable_shared_with_static_runtimes=yes
11640 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'
11641 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11643 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11645 # If the export-symbols file already is a .def file, use it as
11646 # is; otherwise, prepend EXPORTS...
11647 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11648 cp $export_symbols $output_objdir/$soname.def;
11650 echo EXPORTS > $output_objdir/$soname.def;
11651 cat $export_symbols >> $output_objdir/$soname.def;
11653 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11661 link_all_deplibs=yes
11665 hardcode_libdir_flag_spec='-L$libdir'
11666 hardcode_minus_L=yes
11667 allow_undefined_flag=unsupported
11669 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11670 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11671 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11672 $ECHO EXPORTS >> $output_objdir/$libname.def~
11673 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11675 emximp -o $lib $output_objdir/$libname.def'
11676 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11677 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11678 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11679 $ECHO EXPORTS >> $output_objdir/$libname.def~
11680 prefix_cmds="$SED"~
11681 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11682 prefix_cmds="$prefix_cmds -e 1d";
11684 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11685 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11686 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11687 emximp -o $lib $output_objdir/$libname.def'
11688 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11689 enable_shared_with_static_runtimes=yes
11694 hardcode_shlibpath_var=no
11695 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11696 export_dynamic_flag_spec='$wl-E'
11697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11698 # Instead, shared libraries are loaded at an image base (0x10000000 by
11699 # default) and relocated if they conflict, which is a slow very memory
11700 # consuming and fragmenting process. To avoid this, we pick a random,
11701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11702 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11704 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'
11707 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11709 if test linux-dietlibc = "$host_os"; then
11710 case $cc_basename in
11711 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11714 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11715 && test no = "$tmp_diet"
11717 tmp_addflag=' $pic_flag'
11718 tmp_sharedflag='-shared'
11719 case $cc_basename,$host_cpu in
11720 pgcc*) # Portland Group C compiler
11721 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'
11722 tmp_addflag=' $pic_flag'
11724 pgf77* | pgf90* | pgf95* | pgfortran*)
11725 # Portland Group f77 and f90 compilers
11726 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'
11727 tmp_addflag=' $pic_flag -Mnomain' ;;
11728 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11729 tmp_addflag=' -i_dynamic' ;;
11730 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11731 tmp_addflag=' -i_dynamic -nofor_main' ;;
11732 ifc* | ifort*) # Intel Fortran compiler
11733 tmp_addflag=' -nofor_main' ;;
11734 lf95*) # Lahey Fortran 8.1
11735 whole_archive_flag_spec=
11736 tmp_sharedflag='--shared' ;;
11737 nagfor*) # NAGFOR 5.3
11738 tmp_sharedflag='-Wl,-shared' ;;
11739 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11740 tmp_sharedflag='-qmkshrobj'
11742 nvcc*) # Cuda Compiler Driver 2.2
11743 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'
11744 compiler_needs_object=yes
11747 case `$CC -V 2>&1 | sed 5q` in
11748 *Sun\ C*) # Sun C 5.9
11749 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'
11750 compiler_needs_object=yes
11751 tmp_sharedflag='-G' ;;
11752 *Sun\ F*) # Sun Fortran 8.3
11753 tmp_sharedflag='-G' ;;
11755 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11757 if test yes = "$supports_anon_versioning"; then
11758 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11760 echo "local: *; };" >> $output_objdir/$libname.ver~
11761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11764 case $cc_basename in
11766 export_dynamic_flag_spec='-rdynamic'
11768 xlf* | bgf* | bgxlf* | mpixlf*)
11769 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11770 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11772 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11773 if test yes = "$supports_anon_versioning"; then
11774 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11775 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11776 echo "local: *; };" >> $output_objdir/$libname.ver~
11777 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11786 netbsd* | netbsdelf*-gnu)
11787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11788 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11792 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11797 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11801 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11802 *** create shared libraries on Solaris systems. Therefore, libtool
11803 *** is disabling shared libraries support. We urge you to upgrade GNU
11804 *** binutils to release 2.9.1 or newer. Another option is to modify
11805 *** your PATH or compiler configuration so that the native linker is
11806 *** used, and then restart.
11809 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11811 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11818 case `$LD -v 2>&1` in
11819 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11823 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11824 *** reliably create shared libraries on SCO systems. Therefore, libtool
11825 *** is disabling shared libraries support. We urge you to upgrade GNU
11826 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11827 *** your PATH or compiler configuration so that the native linker is
11828 *** used, and then restart.
11833 # For security reasons, it is highly recommended that you always
11834 # use absolute paths for naming shared libraries, and exclude the
11835 # DT_RUNPATH tag from executables and libraries. But doing so
11836 # requires that you compile everything twice, which is a pain.
11837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11838 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11840 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11849 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11851 hardcode_direct=yes
11852 hardcode_shlibpath_var=no
11856 if $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'
11865 if test no = "$ld_shlibs"; then
11867 hardcode_libdir_flag_spec=
11868 export_dynamic_flag_spec=
11869 whole_archive_flag_spec=
11872 # PORTME fill in a description of your system's linker (not GNU ld)
11875 allow_undefined_flag=unsupported
11876 always_export_symbols=yes
11877 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'
11878 # Note: this linker hardcodes the directories in LIBPATH if there
11879 # are no directories specified by -L.
11880 hardcode_minus_L=yes
11881 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11882 # Neither direct hardcoding nor static linking is supported with a
11884 hardcode_direct=unsupported
11889 if test ia64 = "$host_cpu"; then
11890 # On IA64, the linker does run time linking by default, so we don't
11891 # have to do anything special.
11892 aix_use_runtimelinking=no
11893 exp_sym_flag='-Bexport'
11896 # If we're using GNU nm, then we don't want the "-C" option.
11897 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11898 # Without the "-l" option, or with the "-B" option, AIX nm treats
11899 # weak defined symbols like other global defined symbols, whereas
11900 # GNU nm marks them as "W".
11901 # While the 'weak' keyword is ignored in the Export File, we need
11902 # it in the Import File for the 'aix-soname' feature, so we have
11903 # to replace the "-B" option with "-P" for AIX nm.
11904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11905 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'
11907 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'
11909 aix_use_runtimelinking=no
11911 # Test if we are trying to use run time linking or normal
11912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11913 # have runtime linking enabled, and use it for executables.
11914 # For shared libraries, we enable/disable runtime linking
11915 # depending on the kind of the shared library created -
11916 # when "with_aix_soname,aix_use_runtimelinking" is:
11917 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11918 # "aix,yes" lib.so shared, rtl:yes, for executables
11919 # lib.a static archive
11920 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11921 # lib.a(lib.so.V) shared, rtl:no, for executables
11922 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11923 # lib.a(lib.so.V) shared, rtl:no
11924 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11925 # lib.a static archive
11926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11927 for ld_flag in $LDFLAGS; do
11928 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11929 aix_use_runtimelinking=yes
11933 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11934 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11935 # so we don't have lib.a shared libs to link our executables.
11936 # We have to force runtime linking in this case.
11937 aix_use_runtimelinking=yes
11938 LDFLAGS="$LDFLAGS -Wl,-brtl"
11943 exp_sym_flag='-bexport'
11944 no_entry_flag='-bnoentry'
11947 # When large executables or shared objects are built, AIX ld can
11948 # have problems creating the table of contents. If linking a library
11949 # or program results in "error TOC overflow" add -mminimal-toc to
11950 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11951 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11954 hardcode_direct=yes
11955 hardcode_direct_absolute=yes
11956 hardcode_libdir_separator=':'
11957 link_all_deplibs=yes
11958 file_list_spec='$wl-f,'
11959 case $with_aix_soname,$aix_use_runtimelinking in
11960 aix,*) ;; # traditional, no import file
11961 svr4,* | *,yes) # use import file
11962 # The Import File defines what to hardcode.
11964 hardcode_direct_absolute=no
11968 if test yes = "$GCC"; then
11969 case $host_os in aix4.[012]|aix4.[012].*)
11970 # We only want to do this on AIX 4.2 and lower, the check
11971 # below for broken collect2 doesn't work under 4.3+
11972 collect2name=`$CC -print-prog-name=collect2`
11973 if test -f "$collect2name" &&
11974 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11976 # We have reworked collect2
11979 # We have old collect2
11980 hardcode_direct=unsupported
11981 # It fails to find uninstalled libraries when the uninstalled
11982 # path is not listed in the libpath. Setting hardcode_minus_L
11983 # to unsupported forces relinking
11984 hardcode_minus_L=yes
11985 hardcode_libdir_flag_spec='-L$libdir'
11986 hardcode_libdir_separator=
11990 shared_flag='-shared'
11991 if test yes = "$aix_use_runtimelinking"; then
11992 shared_flag="$shared_flag "'$wl-G'
11994 # Need to ensure runtime linking is disabled for the traditional
11995 # shared library, or the linker may eventually find shared libraries
11996 # /with/ Import File - we do not want to mix them.
11997 shared_flag_aix='-shared'
11998 shared_flag_svr4='-shared $wl-G'
12001 if test ia64 = "$host_cpu"; then
12002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12003 # chokes on -Wl,-G. The following line is correct:
12006 if test yes = "$aix_use_runtimelinking"; then
12007 shared_flag='$wl-G'
12009 shared_flag='$wl-bM:SRE'
12011 shared_flag_aix='$wl-bM:SRE'
12012 shared_flag_svr4='$wl-G'
12016 export_dynamic_flag_spec='$wl-bexpall'
12017 # It seems that -bexpall does not export symbols beginning with
12018 # underscore (_), so it is better to generate a list of symbols to export.
12019 always_export_symbols=yes
12020 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12021 # Warning - without using the other runtime loading flags (-brtl),
12022 # -berok will link without error, but may produce a broken library.
12023 allow_undefined_flag='-berok'
12024 # Determine the default libpath from the value encoded in an
12025 # empty executable.
12026 if test set = "${lt_cv_aix_libpath+set}"; then
12027 aix_libpath=$lt_cv_aix_libpath
12029 if ${lt_cv_aix_libpath_+:} false; then :
12030 $as_echo_n "(cached) " >&6
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12043 if ac_fn_c_try_link "$LINENO"; then :
12045 lt_aix_libpath_sed='
12046 /Import File Strings/,/^$/ {
12048 s/^0 *\([^ ]*\) *$/\1/
12052 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12053 # Check for a 64-bit object if we didn't find anything.
12054 if test -z "$lt_cv_aix_libpath_"; then
12055 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 if test -z "$lt_cv_aix_libpath_"; then
12061 lt_cv_aix_libpath_=/usr/lib:/lib
12066 aix_libpath=$lt_cv_aix_libpath_
12069 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12070 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
12072 if test ia64 = "$host_cpu"; then
12073 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12074 allow_undefined_flag="-z nodefs"
12075 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"
12077 # Determine the default libpath from the value encoded in an
12078 # empty executable.
12079 if test set = "${lt_cv_aix_libpath+set}"; then
12080 aix_libpath=$lt_cv_aix_libpath
12082 if ${lt_cv_aix_libpath_+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12096 if ac_fn_c_try_link "$LINENO"; then :
12098 lt_aix_libpath_sed='
12099 /Import File Strings/,/^$/ {
12101 s/^0 *\([^ ]*\) *$/\1/
12105 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12106 # Check for a 64-bit object if we didn't find anything.
12107 if test -z "$lt_cv_aix_libpath_"; then
12108 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 if test -z "$lt_cv_aix_libpath_"; then
12114 lt_cv_aix_libpath_=/usr/lib:/lib
12119 aix_libpath=$lt_cv_aix_libpath_
12122 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12123 # Warning - without using the other run time loading flags,
12124 # -berok will link without error, but may produce a broken library.
12125 no_undefined_flag=' $wl-bernotok'
12126 allow_undefined_flag=' $wl-berok'
12127 if test yes = "$with_gnu_ld"; then
12128 # We only use this code for GNU lds that support --whole-archive.
12129 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12131 # Exported symbols can be pulled into shared objects from archives
12132 whole_archive_flag_spec='$convenience'
12134 archive_cmds_need_lc=yes
12135 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12136 # -brtl affects multiple linker settings, -berok does not and is overridden later
12137 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12138 if test svr4 != "$with_aix_soname"; then
12139 # This is similar to how AIX traditionally builds its shared libraries.
12140 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'
12142 if test aix != "$with_aix_soname"; then
12143 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'
12145 # used by -dlpreopen to get the symbols
12146 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12148 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12156 # see comment about AmigaOS4 .so support
12157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12158 archive_expsym_cmds=''
12161 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)'
12162 hardcode_libdir_flag_spec='-L$libdir'
12163 hardcode_minus_L=yes
12169 export_dynamic_flag_spec=-rdynamic
12172 cygwin* | mingw* | pw32* | cegcc*)
12173 # When not using gcc, we currently assume that we are using
12174 # Microsoft Visual C++.
12175 # hardcode_libdir_flag_spec is actually meaningless, as there is
12176 # no search path for DLLs.
12177 case $cc_basename in
12180 hardcode_libdir_flag_spec=' '
12181 allow_undefined_flag=unsupported
12182 always_export_symbols=yes
12184 # Tell ltmain to make .lib files, not .a files.
12186 # Tell ltmain to make .dll files, not .so files.
12188 # FIXME: Setting linknames here is a bad hack.
12189 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12190 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12191 cp "$export_symbols" "$output_objdir/$soname.def";
12192 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12194 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12196 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12198 # The linker will not automatically build a static lib if we build a DLL.
12199 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12200 enable_shared_with_static_runtimes=yes
12201 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12204 old_postinstall_cmds='chmod 644 $oldlib'
12205 postlink_cmds='lt_outputfile="@OUTPUT@"~
12206 lt_tool_outputfile="@TOOL_OUTPUT@"~
12207 case $lt_outputfile in
12210 lt_outputfile=$lt_outputfile.exe
12211 lt_tool_outputfile=$lt_tool_outputfile.exe
12214 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12215 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12216 $RM "$lt_outputfile.manifest";
12220 # Assume MSVC wrapper
12221 hardcode_libdir_flag_spec=' '
12222 allow_undefined_flag=unsupported
12223 # Tell ltmain to make .lib files, not .a files.
12225 # Tell ltmain to make .dll files, not .so files.
12227 # FIXME: Setting linknames here is a bad hack.
12228 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12229 # The linker will automatically build a .lib file if we build a DLL.
12230 old_archive_from_new_cmds='true'
12231 # FIXME: Should let the user specify the lib program.
12232 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12233 enable_shared_with_static_runtimes=yes
12238 darwin* | rhapsody*)
12241 archive_cmds_need_lc=no
12243 hardcode_automatic=yes
12244 hardcode_shlibpath_var=unsupported
12245 if test yes = "$lt_cv_ld_force_load"; then
12246 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\"`'
12249 whole_archive_flag_spec=''
12251 link_all_deplibs=yes
12252 allow_undefined_flag=$_lt_dar_allow_undefined
12253 case $cc_basename in
12254 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12255 *) _lt_dar_can_shared=$GCC ;;
12257 if test yes = "$_lt_dar_can_shared"; then
12258 output_verbose_link_cmd=func_echo_all
12259 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12260 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12261 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"
12262 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"
12271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12272 hardcode_libdir_flag_spec='-L$libdir'
12273 hardcode_shlibpath_var=no
12276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12277 # support. Future versions do this automatically, but an explicit c++rt0.o
12278 # does not break anything, and helps significantly (at the cost of a little
12281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12282 hardcode_libdir_flag_spec='-R$libdir'
12283 hardcode_direct=yes
12284 hardcode_shlibpath_var=no
12287 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12290 hardcode_direct=yes
12291 hardcode_minus_L=yes
12292 hardcode_shlibpath_var=no
12295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12296 freebsd* | dragonfly*)
12297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12298 hardcode_libdir_flag_spec='-R$libdir'
12299 hardcode_direct=yes
12300 hardcode_shlibpath_var=no
12304 if test yes = "$GCC"; then
12305 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'
12307 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'
12309 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12310 hardcode_libdir_separator=:
12311 hardcode_direct=yes
12313 # hardcode_minus_L: Not really in the search PATH,
12314 # but as the default location of the library.
12315 hardcode_minus_L=yes
12316 export_dynamic_flag_spec='$wl-E'
12320 if test yes,no = "$GCC,$with_gnu_ld"; then
12321 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12325 if test no = "$with_gnu_ld"; then
12326 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12327 hardcode_libdir_separator=:
12328 hardcode_direct=yes
12329 hardcode_direct_absolute=yes
12330 export_dynamic_flag_spec='$wl-E'
12331 # hardcode_minus_L: Not really in the search PATH,
12332 # but as the default location of the library.
12333 hardcode_minus_L=yes
12338 if test yes,no = "$GCC,$with_gnu_ld"; then
12341 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12344 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12347 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12353 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12356 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12360 # Older versions of the 11.00 compiler do not understand -b yet
12361 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12363 $as_echo_n "checking if $CC understands -b... " >&6; }
12364 if ${lt_cv_prog_compiler__b+:} false; then :
12365 $as_echo_n "(cached) " >&6
12367 lt_cv_prog_compiler__b=no
12368 save_LDFLAGS=$LDFLAGS
12369 LDFLAGS="$LDFLAGS -b"
12370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12372 # The linker can only warn and ignore the option if not recognized
12373 # So say no if there are warnings
12374 if test -s conftest.err; then
12375 # Append any errors to the config.log.
12376 cat conftest.err 1>&5
12377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12379 if diff conftest.exp conftest.er2 >/dev/null; then
12380 lt_cv_prog_compiler__b=yes
12383 lt_cv_prog_compiler__b=yes
12387 LDFLAGS=$save_LDFLAGS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12391 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12393 if test yes = "$lt_cv_prog_compiler__b"; then
12394 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12402 if test no = "$with_gnu_ld"; then
12403 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12404 hardcode_libdir_separator=:
12409 hardcode_shlibpath_var=no
12412 hardcode_direct=yes
12413 hardcode_direct_absolute=yes
12414 export_dynamic_flag_spec='$wl-E'
12416 # hardcode_minus_L: Not really in the search PATH,
12417 # but as the default location of the library.
12418 hardcode_minus_L=yes
12424 irix5* | irix6* | nonstopux*)
12425 if test yes = "$GCC"; then
12426 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'
12427 # Try to use the -exported_symbol ld option, if it does not
12428 # work, assume that -exports_file does not work either and
12429 # implicitly export all symbols.
12430 # This should be the same for all languages, so no per-tag cache variable.
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12432 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12433 if ${lt_cv_irix_exported_symbol+:} false; then :
12434 $as_echo_n "(cached) " >&6
12436 save_LDFLAGS=$LDFLAGS
12437 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440 int foo (void) { return 0; }
12442 if ac_fn_c_try_link "$LINENO"; then :
12443 lt_cv_irix_exported_symbol=yes
12445 lt_cv_irix_exported_symbol=no
12447 rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LDFLAGS=$save_LDFLAGS
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12452 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12453 if test yes = "$lt_cv_irix_exported_symbol"; then
12454 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'
12456 link_all_deplibs=no
12458 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'
12459 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'
12461 archive_cmds_need_lc='no'
12462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12463 hardcode_libdir_separator=:
12465 link_all_deplibs=yes
12469 case $cc_basename in
12471 # Fabrice Bellard et al's Tiny C Compiler
12473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12478 netbsd* | netbsdelf*-gnu)
12479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12482 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12484 hardcode_libdir_flag_spec='-R$libdir'
12485 hardcode_direct=yes
12486 hardcode_shlibpath_var=no
12490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12491 hardcode_direct=yes
12492 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12493 hardcode_libdir_separator=:
12494 hardcode_shlibpath_var=no
12500 openbsd* | bitrig*)
12501 if test -f /usr/libexec/ld.so; then
12502 hardcode_direct=yes
12503 hardcode_shlibpath_var=no
12504 hardcode_direct_absolute=yes
12505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12508 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12509 export_dynamic_flag_spec='$wl-E'
12511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12512 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_minus_L=yes
12522 allow_undefined_flag=unsupported
12524 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12525 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12526 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12527 $ECHO EXPORTS >> $output_objdir/$libname.def~
12528 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12529 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12530 emximp -o $lib $output_objdir/$libname.def'
12531 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12532 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12533 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12534 $ECHO EXPORTS >> $output_objdir/$libname.def~
12535 prefix_cmds="$SED"~
12536 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12537 prefix_cmds="$prefix_cmds -e 1d";
12539 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12540 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12541 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12542 emximp -o $lib $output_objdir/$libname.def'
12543 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12544 enable_shared_with_static_runtimes=yes
12548 if test yes = "$GCC"; then
12549 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12550 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'
12552 allow_undefined_flag=' -expect_unresolved \*'
12553 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'
12555 archive_cmds_need_lc='no'
12556 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12557 hardcode_libdir_separator=:
12560 osf4* | osf5*) # as osf3* with the addition of -msym flag
12561 if test yes = "$GCC"; then
12562 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12563 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'
12564 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12566 allow_undefined_flag=' -expect_unresolved \*'
12567 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'
12568 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~
12569 $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'
12571 # Both c and cxx compiler support -rpath directly
12572 hardcode_libdir_flag_spec='-rpath $libdir'
12574 archive_cmds_need_lc='no'
12575 hardcode_libdir_separator=:
12579 no_undefined_flag=' -z defs'
12580 if test yes = "$GCC"; then
12582 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12584 $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'
12586 case `$CC -V 2>&1` in
12589 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12591 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12595 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12597 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12601 hardcode_libdir_flag_spec='-R$libdir'
12602 hardcode_shlibpath_var=no
12604 solaris2.[0-5] | solaris2.[0-5].*) ;;
12606 # The compiler driver will combine and reorder linker options,
12607 # but understands '-z linker_flag'. GCC discards it without '$wl',
12608 # but is careful enough not to reorder.
12609 # Supported since Solaris 2.6 (maybe 2.5.1?)
12610 if test yes = "$GCC"; then
12611 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12617 link_all_deplibs=yes
12621 if test sequent = "$host_vendor"; then
12622 # Use $CC to link under sequent, because it throws in some extra .o
12623 # files that make .init and .fini sections work.
12624 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_libdir_flag_spec='-L$libdir'
12629 hardcode_direct=yes
12630 hardcode_minus_L=yes
12631 hardcode_shlibpath_var=no
12635 case $host_vendor in
12637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12638 hardcode_direct=yes # is this really true???
12641 ## LD is ld it makes a PLAMLIB
12642 ## CC just makes a GrossModule.
12643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12644 reload_cmds='$CC -r -o $output$reload_objs'
12648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12652 runpath_var='LD_RUN_PATH'
12653 hardcode_shlibpath_var=no
12657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12658 hardcode_shlibpath_var=no
12659 export_dynamic_flag_spec='-Bexport'
12663 if test -d /usr/nec; then
12664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12665 hardcode_shlibpath_var=no
12666 runpath_var=LD_RUN_PATH
12667 hardcode_runpath_var=yes
12672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12673 no_undefined_flag='$wl-z,text'
12674 archive_cmds_need_lc=no
12675 hardcode_shlibpath_var=no
12676 runpath_var='LD_RUN_PATH'
12678 if test yes = "$GCC"; then
12679 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12680 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12682 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12683 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 sysv5* | sco3.2v5* | sco5v6*)
12688 # Note: We CANNOT use -z defs as we might desire, because we do not
12689 # link with -lc, and that would cause any symbols used from libc to
12690 # always be unresolved, which means just about no library would
12691 # ever link correctly. If we're not using GNU ld we use -z text
12692 # though, which does catch some bad symbols but isn't as heavy-handed
12694 no_undefined_flag='$wl-z,text'
12695 allow_undefined_flag='$wl-z,nodefs'
12696 archive_cmds_need_lc=no
12697 hardcode_shlibpath_var=no
12698 hardcode_libdir_flag_spec='$wl-R,$libdir'
12699 hardcode_libdir_separator=':'
12700 link_all_deplibs=yes
12701 export_dynamic_flag_spec='$wl-Bexport'
12702 runpath_var='LD_RUN_PATH'
12704 if test yes = "$GCC"; then
12705 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12708 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12709 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715 hardcode_libdir_flag_spec='-L$libdir'
12716 hardcode_shlibpath_var=no
12724 if test sni = "$host_vendor"; then
12726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12727 export_dynamic_flag_spec='$wl-Blargedynsym'
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12734 $as_echo "$ld_shlibs" >&6; }
12735 test no = "$ld_shlibs" && can_build_shared=no
12737 with_gnu_ld=$with_gnu_ld
12754 # Do we need to explicitly link libc?
12756 case "x$archive_cmds_need_lc" in
12758 # Assume -lc should be added
12759 archive_cmds_need_lc=yes
12761 if test yes,yes = "$GCC,$enable_shared"; then
12762 case $archive_cmds in
12764 # FIXME: we may have to deal with multi-command sequences.
12767 # Test whether the compiler implicitly links with -lc since on some
12768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12769 # to ld, don't add -lc before -lgcc.
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12772 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12773 $as_echo_n "(cached) " >&6
12776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12779 (eval $ac_compile) 2>&5
12781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782 test $ac_status = 0; } 2>conftest.err; then
12785 libobjs=conftest.$ac_objext
12787 wl=$lt_prog_compiler_wl
12788 pic_flag=$lt_prog_compiler_pic
12794 lt_save_allow_undefined_flag=$allow_undefined_flag
12795 allow_undefined_flag=
12796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12797 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12800 test $ac_status = 0; }
12802 lt_cv_archive_cmds_need_lc=no
12804 lt_cv_archive_cmds_need_lc=yes
12806 allow_undefined_flag=$lt_save_allow_undefined_flag
12808 cat conftest.err 1>&5
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12814 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12815 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12976 if test yes = "$GCC"; then
12978 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12979 *) lt_awk_arg='/^libraries:/' ;;
12982 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12983 *) lt_sed_strip_eq='s|=/|/|g' ;;
12985 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12986 case $lt_search_path_spec in
12988 # if the path contains ";" then we assume it to be the separator
12989 # otherwise default to the standard path separator (i.e. ":") - it is
12990 # assumed that no part of a normal pathname contains ";" but that should
12991 # okay in the real world where ";" in dirpaths is itself problematic.
12992 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12995 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12998 # Ok, now we have the path, separated by spaces, we can step through it
12999 # and add multilib dir if necessary...
13000 lt_tmp_lt_search_path_spec=
13001 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13002 # ...but if some path component already ends with the multilib dir we assume
13003 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13004 case "$lt_multi_os_dir; $lt_search_path_spec " in
13005 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13009 for lt_sys_path in $lt_search_path_spec; do
13010 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13012 elif test -n "$lt_multi_os_dir"; then
13013 test -d "$lt_sys_path" && \
13014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13018 BEGIN {RS = " "; FS = "/|\n";} {
13021 for (lt_i = NF; lt_i > 0; lt_i--) {
13022 if ($lt_i != "" && $lt_i != ".") {
13023 if ($lt_i == "..") {
13026 if (lt_count == 0) {
13027 lt_foo = "/" $lt_i lt_foo;
13034 if (lt_foo != "") { lt_freq[lt_foo]++; }
13035 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13037 # AWK program above erroneously prepends '/' to C:/dos/paths
13040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13041 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13047 library_names_spec=
13048 libname_spec='lib$name'
13052 postuninstall_cmds=
13056 shlibpath_overrides_runpath=unknown
13058 dynamic_linker="$host_os ld.so"
13059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13060 need_lib_prefix=unknown
13061 hardcode_into_libs=no
13063 # when you set need_version to no, make sure it does not cause -set_version
13064 # flags to be left without arguments
13065 need_version=unknown
13071 version_type=linux # correct to gnu/linux during the next big refactor
13072 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13073 shlibpath_var=LIBPATH
13075 # AIX 3 has no versioning support, so we append a major version to the name.
13076 soname_spec='$libname$release$shared_ext$major'
13080 version_type=linux # correct to gnu/linux during the next big refactor
13083 hardcode_into_libs=yes
13084 if test ia64 = "$host_cpu"; then
13085 # AIX 5 supports IA64
13086 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13087 shlibpath_var=LD_LIBRARY_PATH
13089 # With GCC up to 2.95.x, collect2 would create an import file
13090 # for dependence libraries. The import file would start with
13091 # the line '#! .'. This would cause the generated library to
13092 # depend on '.', always an invalid library. This was fixed in
13093 # development snapshots of GCC prior to 3.0.
13095 aix4 | aix4.[01] | aix4.[01].*)
13096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13098 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13101 can_build_shared=no
13105 # Using Import Files as archive members, it is possible to support
13106 # filename-based versioning of shared library archives on AIX. While
13107 # this would work for both with and without runtime linking, it will
13108 # prevent static linking of such archives. So we do filename-based
13109 # shared library versioning with .so extension only, which is used
13110 # when both runtime linking and shared linking is enabled.
13111 # Unfortunately, runtime linking may impact performance, so we do
13112 # not want this to be the default eventually. Also, we use the
13113 # versioned .so libs for executables only if there is the -brtl
13114 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13115 # To allow for filename-based versioning support, we need to create
13116 # libNAME.so.V as an archive file, containing:
13117 # *) an Import File, referring to the versioned filename of the
13118 # archive as well as the shared archive member, telling the
13119 # bitwidth (32 or 64) of that shared object, and providing the
13120 # list of exported symbols of that shared object, eventually
13121 # decorated with the 'weak' keyword
13122 # *) the shared object with the F_LOADONLY flag set, to really avoid
13123 # it being seen by the linker.
13124 # At run time we better use the real file rather than another symlink,
13125 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13127 case $with_aix_soname,$aix_use_runtimelinking in
13128 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13129 # soname into executable. Probably we can add versioning support to
13130 # collect2, so additional links can be useful in future.
13131 aix,yes) # traditional libtool
13132 dynamic_linker='AIX unversionable lib.so'
13133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13134 # instead of lib<name>.a to let people know that these are not
13135 # typical AIX shared libraries.
13136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13138 aix,no) # traditional AIX only
13139 dynamic_linker='AIX lib.a(lib.so.V)'
13140 # We preserve .a as extension for shared libraries through AIX4.2
13141 # and later when we are not doing run time linking.
13142 library_names_spec='$libname$release.a $libname.a'
13143 soname_spec='$libname$release$shared_ext$major'
13145 svr4,*) # full svr4 only
13146 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13147 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13148 # We do not specify a path in Import Files, so LIBPATH fires.
13149 shlibpath_overrides_runpath=yes
13151 *,yes) # both, prefer svr4
13152 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13153 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13154 # unpreferred sharedlib libNAME.a needs extra handling
13155 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"'
13156 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"'
13157 # We do not specify a path in Import Files, so LIBPATH fires.
13158 shlibpath_overrides_runpath=yes
13160 *,no) # both, prefer aix
13161 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13162 library_names_spec='$libname$release.a $libname.a'
13163 soname_spec='$libname$release$shared_ext$major'
13164 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13165 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)'
13166 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"'
13169 shlibpath_var=LIBPATH
13176 # Since July 2007 AmigaOS4 officially supports .so libraries.
13177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13181 library_names_spec='$libname.ixlibrary $libname.a'
13182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13183 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'
13189 library_names_spec='$libname$shared_ext'
13190 dynamic_linker="$host_os ld.so"
13191 shlibpath_var=LIBRARY_PATH
13195 version_type=linux # correct to gnu/linux during the next big refactor
13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198 soname_spec='$libname$release$shared_ext$major'
13199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13200 shlibpath_var=LD_LIBRARY_PATH
13201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13203 # the default ld.so.conf also contains /usr/contrib/lib and
13204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13205 # libtool to hard-code these into programs
13208 cygwin* | mingw* | pw32* | cegcc*)
13209 version_type=windows
13214 case $GCC,$cc_basename in
13217 library_names_spec='$libname.dll.a'
13218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13219 postinstall_cmds='base_file=`basename \$file`~
13220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13221 dldir=$destdir/`dirname \$dlpath`~
13222 test -d \$dldir || mkdir -p \$dldir~
13223 $install_prog $dir/$dlname \$dldir/$dlname~
13224 chmod a+x \$dldir/$dlname~
13225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13229 dlpath=$dir/\$dldll~
13231 shlibpath_overrides_runpath=yes
13235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13236 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13238 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13241 # MinGW DLLs use traditional 'lib' prefix
13242 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13245 # pw32 DLLs use 'pw' prefix rather than 'lib'
13246 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13249 dynamic_linker='Win32 ld.exe'
13254 libname_spec='$name'
13255 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13256 library_names_spec='$libname.dll.lib'
13260 sys_lib_search_path_spec=
13263 for lt_path in $LIB
13266 # Let DOS variable expansion print the short 8.3 style file name.
13267 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13268 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13271 # Convert to MSYS style.
13272 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13275 # Convert to unix form, then to dos form, then back to unix form
13276 # but this time dos style (no spaces!) so that the unix form looks
13277 # like /cygdrive/c/PROGRA~1:/cygdr...
13278 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13279 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13280 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13283 sys_lib_search_path_spec=$LIB
13284 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13285 # It is most probably a Windows format PATH.
13286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13290 # FIXME: find the short name or the path components, as spaces are
13291 # common. (e.g. "Program Files" -> "PROGRA~1")
13295 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13296 postinstall_cmds='base_file=`basename \$file`~
13297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13298 dldir=$destdir/`dirname \$dlpath`~
13299 test -d \$dldir || mkdir -p \$dldir~
13300 $install_prog $dir/$dlname \$dldir/$dlname'
13301 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13302 dlpath=$dir/\$dldll~
13304 shlibpath_overrides_runpath=yes
13305 dynamic_linker='Win32 link.exe'
13309 # Assume MSVC wrapper
13310 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13311 dynamic_linker='Win32 ld.exe'
13314 # FIXME: first we should search . and the directory the executable is in
13318 darwin* | rhapsody*)
13319 dynamic_linker="$host_os dyld"
13320 version_type=darwin
13323 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13324 soname_spec='$libname$release$major$shared_ext'
13325 shlibpath_overrides_runpath=yes
13326 shlibpath_var=DYLD_LIBRARY_PATH
13327 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13329 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13330 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13334 version_type=linux # correct to gnu/linux during the next big refactor
13337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13338 soname_spec='$libname$release$shared_ext$major'
13339 shlibpath_var=LD_LIBRARY_PATH
13342 freebsd* | dragonfly*)
13343 # DragonFly does not have aout. When/if they implement a new
13344 # versioning mechanism, adjust this.
13345 if test -x /usr/bin/objformat; then
13346 objformat=`/usr/bin/objformat`
13349 freebsd[23].*) objformat=aout ;;
13350 *) objformat=elf ;;
13353 version_type=freebsd-$objformat
13354 case $version_type in
13356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13357 soname_spec='$libname$release$shared_ext$major'
13362 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13366 shlibpath_var=LD_LIBRARY_PATH
13369 shlibpath_overrides_runpath=yes
13371 freebsd3.[01]* | freebsdelf3.[01]*)
13372 shlibpath_overrides_runpath=yes
13373 hardcode_into_libs=yes
13375 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13376 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13377 shlibpath_overrides_runpath=no
13378 hardcode_into_libs=yes
13380 *) # from 4.6 on, and DragonFly
13381 shlibpath_overrides_runpath=yes
13382 hardcode_into_libs=yes
13388 version_type=linux # correct to gnu/linux during the next big refactor
13391 dynamic_linker="$host_os runtime_loader"
13392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13393 soname_spec='$libname$release$shared_ext$major'
13394 shlibpath_var=LIBRARY_PATH
13395 shlibpath_overrides_runpath=no
13396 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13397 hardcode_into_libs=yes
13400 hpux9* | hpux10* | hpux11*)
13401 # Give a soname corresponding to the major version so that dld.sl refuses to
13402 # link against other versions.
13409 hardcode_into_libs=yes
13410 dynamic_linker="$host_os dld.so"
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13414 soname_spec='$libname$release$shared_ext$major'
13415 if test 32 = "$HPUX_IA64_MODE"; then
13416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13417 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13420 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13425 hardcode_into_libs=yes
13426 dynamic_linker="$host_os dld.sl"
13427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13430 soname_spec='$libname$release$shared_ext$major'
13431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13436 dynamic_linker="$host_os dld.sl"
13437 shlibpath_var=SHLIB_PATH
13438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13440 soname_spec='$libname$release$shared_ext$major'
13443 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13444 postinstall_cmds='chmod 555 $lib'
13445 # or fails outright, so override atomically:
13446 install_override_mode=555
13450 version_type=linux # correct to gnu/linux during the next big refactor
13453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13454 soname_spec='$libname$release$shared_ext$major'
13455 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13456 shlibpath_var=LD_LIBRARY_PATH
13457 shlibpath_overrides_runpath=no
13458 hardcode_into_libs=yes
13461 irix5* | irix6* | nonstopux*)
13463 nonstopux*) version_type=nonstopux ;;
13465 if test yes = "$lt_cv_prog_gnu_ld"; then
13466 version_type=linux # correct to gnu/linux during the next big refactor
13473 soname_spec='$libname$release$shared_ext$major'
13474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13476 irix5* | nonstopux*)
13477 libsuff= shlibsuff=
13480 case $LD in # libtool.m4 will add one of these switches to LD
13481 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13482 libsuff= shlibsuff= libmagic=32-bit;;
13483 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13484 libsuff=32 shlibsuff=N32 libmagic=N32;;
13485 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13486 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13487 *) libsuff= shlibsuff= libmagic=never-match;;
13491 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13492 shlibpath_overrides_runpath=no
13493 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13494 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13495 hardcode_into_libs=yes
13498 # No shared lib support for Linux oldld, aout, or coff.
13499 linux*oldld* | linux*aout* | linux*coff*)
13504 version_type=none # Android doesn't support versioned libraries.
13507 library_names_spec='$libname$release$shared_ext'
13508 soname_spec='$libname$release$shared_ext'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13513 # This implies no fast_install, which is unacceptable.
13514 # Some rework will be needed to allow for fast_install
13515 # before this can be enabled.
13516 hardcode_into_libs=yes
13518 dynamic_linker='Android linker'
13519 # Don't embed -rpath directories since the linker doesn't support them.
13520 hardcode_libdir_flag_spec='-L$libdir'
13523 # This must be glibc/ELF.
13524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13525 version_type=linux # correct to gnu/linux during the next big refactor
13528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13529 soname_spec='$libname$release$shared_ext$major'
13530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13531 shlibpath_var=LD_LIBRARY_PATH
13532 shlibpath_overrides_runpath=no
13534 # Some binutils ld are patched to set DT_RUNPATH
13535 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13536 $as_echo_n "(cached) " >&6
13538 lt_cv_shlibpath_overrides_runpath=no
13539 save_LDFLAGS=$LDFLAGS
13540 save_libdir=$libdir
13541 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13542 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13556 lt_cv_shlibpath_overrides_runpath=yes
13559 rm -f core conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LDFLAGS=$save_LDFLAGS
13562 libdir=$save_libdir
13566 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13568 # This implies no fast_install, which is unacceptable.
13569 # Some rework will be needed to allow for fast_install
13570 # before this can be enabled.
13571 hardcode_into_libs=yes
13573 # Ideally, we could use ldconfig to report *all* directores which are
13574 # searched for libraries, however this is still not possible. Aside from not
13575 # being certain /sbin/ldconfig is available, command
13576 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13577 # even though it is searched at run-time. Try to do the best guess by
13578 # appending ld.so.conf contents (and includes) to the search path.
13579 if test -f /etc/ld.so.conf; then
13580 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' ' '`
13581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13584 # We used to test for /lib/ld.so.1 and disable shared libraries on
13585 # powerpc, because MkLinux only supported shared libraries with the
13586 # GNU dynamic linker. Since this was broken with cross compilers,
13587 # most powerpc-linux boxes support dynamic linking these days and
13588 # people can always --disable-shared, the test was removed, and we
13589 # assume the GNU/Linux dynamic linker is in use.
13590 dynamic_linker='GNU/Linux ld.so'
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13598 soname_spec='${libname}${release}${shared_ext}$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=no
13601 hardcode_into_libs=yes
13602 dynamic_linker='NetBSD ld.elf_so'
13609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13610 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13612 dynamic_linker='NetBSD (a.out) ld.so'
13614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13615 soname_spec='$libname$release$shared_ext$major'
13616 dynamic_linker='NetBSD ld.elf_so'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 shlibpath_overrides_runpath=yes
13620 hardcode_into_libs=yes
13624 version_type=linux # correct to gnu/linux during the next big refactor
13625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 shlibpath_overrides_runpath=yes
13634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13635 soname_spec='$libname$release$shared_ext$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 shlibpath_overrides_runpath=no
13638 hardcode_into_libs=yes
13639 dynamic_linker='ldqnx.so'
13642 openbsd* | bitrig*)
13644 sys_lib_dlsearch_path_spec=/usr/lib
13646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13651 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 shlibpath_overrides_runpath=yes
13658 libname_spec='$name'
13659 version_type=windows
13663 # OS/2 can only load a DLL with a base name of 8 characters or less.
13664 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13665 v=$($ECHO $release$versuffix | tr -d .-);
13666 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13667 $ECHO $n$v`$shared_ext'
13668 library_names_spec='${libname}_dll.$libext'
13669 dynamic_linker='OS/2 ld.exe'
13670 shlibpath_var=BEGINLIBPATH
13671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13673 postinstall_cmds='base_file=`basename \$file`~
13674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13675 dldir=$destdir/`dirname \$dlpath`~
13676 test -d \$dldir || mkdir -p \$dldir~
13677 $install_prog $dir/$dlname \$dldir/$dlname~
13678 chmod a+x \$dldir/$dlname~
13679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13683 dlpath=$dir/\$dldll~
13687 osf3* | osf4* | osf5*)
13691 soname_spec='$libname$release$shared_ext$major'
13692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13703 version_type=linux # correct to gnu/linux during the next big refactor
13706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13707 soname_spec='$libname$release$shared_ext$major'
13708 shlibpath_var=LD_LIBRARY_PATH
13709 shlibpath_overrides_runpath=yes
13710 hardcode_into_libs=yes
13711 # ldd complains unless libraries are executable
13712 postinstall_cmds='chmod +x $lib'
13717 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 shlibpath_overrides_runpath=yes
13721 if test yes = "$with_gnu_ld"; then
13728 version_type=linux # correct to gnu/linux during the next big refactor
13729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13730 soname_spec='$libname$release$shared_ext$major'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 case $host_vendor in
13734 shlibpath_overrides_runpath=no
13736 runpath_var=LD_RUN_PATH
13744 shlibpath_overrides_runpath=no
13745 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13751 if test -d /usr/nec; then
13752 version_type=linux # correct to gnu/linux during the next big refactor
13753 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13754 soname_spec='$libname$shared_ext.$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13764 soname_spec='$libname$release$shared_ext$major'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=yes
13767 hardcode_into_libs=yes
13768 if test yes = "$with_gnu_ld"; then
13769 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13771 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13778 sys_lib_dlsearch_path_spec='/usr/lib'
13782 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13783 version_type=linux # correct to gnu/linux during the next big refactor
13786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 shlibpath_overrides_runpath=no
13789 hardcode_into_libs=yes
13793 version_type=linux # correct to gnu/linux during the next big refactor
13794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13795 soname_spec='$libname$release$shared_ext$major'
13796 shlibpath_var=LD_LIBRARY_PATH
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13804 $as_echo "$dynamic_linker" >&6; }
13805 test no = "$dynamic_linker" && can_build_shared=no
13807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13808 if test yes = "$GCC"; then
13809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13812 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13813 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13816 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13817 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13820 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13821 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13823 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13824 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13826 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13827 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13928 if test -n "$hardcode_libdir_flag_spec" ||
13929 test -n "$runpath_var" ||
13930 test yes = "$hardcode_automatic"; then
13932 # We can hardcode non-existent directories.
13933 if test no != "$hardcode_direct" &&
13934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13935 # have to relink, otherwise we might link with an installed library
13936 # when we should be linking with a yet-to-be-installed one
13937 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13938 test no != "$hardcode_minus_L"; then
13939 # Linking always hardcodes the temporary library directory.
13940 hardcode_action=relink
13942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13943 hardcode_action=immediate
13946 # We cannot hardcode anything, or else we can only hardcode existing
13948 hardcode_action=unsupported
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13951 $as_echo "$hardcode_action" >&6; }
13953 if test relink = "$hardcode_action" ||
13954 test yes = "$inherit_rpath"; then
13955 # Fast installation is not supported
13956 enable_fast_install=no
13957 elif test yes = "$shlibpath_overrides_runpath" ||
13958 test no = "$enable_shared"; then
13959 # Fast installation is not necessary
13960 enable_fast_install=needless
13968 if test yes != "$enable_dlopen"; then
13969 enable_dlopen=unknown
13970 enable_dlopen_self=unknown
13971 enable_dlopen_self_static=unknown
13978 lt_cv_dlopen=load_add_on
13980 lt_cv_dlopen_self=yes
13983 mingw* | pw32* | cegcc*)
13984 lt_cv_dlopen=LoadLibrary
13989 lt_cv_dlopen=dlopen
13994 # if libdl is installed we need to link against it
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13996 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13997 if ${ac_cv_lib_dl_dlopen+:} false; then :
13998 $as_echo_n "(cached) " >&6
14000 ac_check_lib_save_LIBS=$LIBS
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14020 if ac_fn_c_try_link "$LINENO"; then :
14021 ac_cv_lib_dl_dlopen=yes
14023 ac_cv_lib_dl_dlopen=no
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14030 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14031 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14032 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14037 lt_cv_dlopen_self=yes
14044 # Don't try to run any link tests for TPF. We know it's impossible
14045 # because TPF is a cross-compiler, and we know how we open DSOs.
14046 lt_cv_dlopen=dlopen
14048 lt_cv_dlopen_self=no
14052 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14053 if test "x$ac_cv_func_shl_load" = xyes; then :
14054 lt_cv_dlopen=shl_load
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14057 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14058 if ${ac_cv_lib_dld_shl_load+:} false; then :
14059 $as_echo_n "(cached) " >&6
14061 ac_check_lib_save_LIBS=$LIBS
14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14076 return shl_load ();
14081 if ac_fn_c_try_link "$LINENO"; then :
14082 ac_cv_lib_dld_shl_load=yes
14084 ac_cv_lib_dld_shl_load=no
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 LIBS=$ac_check_lib_save_LIBS
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14091 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14092 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14093 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14095 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14096 if test "x$ac_cv_func_dlopen" = xyes; then :
14097 lt_cv_dlopen=dlopen
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14100 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14101 if ${ac_cv_lib_dl_dlopen+:} false; then :
14102 $as_echo_n "(cached) " >&6
14104 ac_check_lib_save_LIBS=$LIBS
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14124 if ac_fn_c_try_link "$LINENO"; then :
14125 ac_cv_lib_dl_dlopen=yes
14127 ac_cv_lib_dl_dlopen=no
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14134 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14135 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14136 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14139 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14140 if ${ac_cv_lib_svld_dlopen+:} false; then :
14141 $as_echo_n "(cached) " >&6
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lsvld $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_svld_dlopen=yes
14166 ac_cv_lib_svld_dlopen=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14173 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14174 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14175 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14178 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14179 if ${ac_cv_lib_dld_dld_link+:} false; then :
14180 $as_echo_n "(cached) " >&6
14182 ac_check_lib_save_LIBS=$LIBS
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14197 return dld_link ();
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 ac_cv_lib_dld_dld_link=yes
14205 ac_cv_lib_dld_dld_link=no
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 LIBS=$ac_check_lib_save_LIBS
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14212 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14213 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14214 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14235 if test no = "$lt_cv_dlopen"; then
14241 case $lt_cv_dlopen in
14243 save_CPPFLAGS=$CPPFLAGS
14244 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14246 save_LDFLAGS=$LDFLAGS
14247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14250 LIBS="$lt_cv_dlopen_libs $LIBS"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14253 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14254 if ${lt_cv_dlopen_self+:} false; then :
14255 $as_echo_n "(cached) " >&6
14257 if test yes = "$cross_compiling"; then :
14258 lt_cv_dlopen_self=cross
14260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14261 lt_status=$lt_dlunknown
14262 cat > conftest.$ac_ext <<_LT_EOF
14263 #line $LINENO "configure"
14264 #include "confdefs.h"
14273 # define LT_DLGLOBAL RTLD_GLOBAL
14276 # define LT_DLGLOBAL DL_GLOBAL
14278 # define LT_DLGLOBAL 0
14282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14283 find out it does not work in some platform. */
14284 #ifndef LT_DLLAZY_OR_NOW
14286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14289 # define LT_DLLAZY_OR_NOW DL_LAZY
14292 # define LT_DLLAZY_OR_NOW RTLD_NOW
14295 # define LT_DLLAZY_OR_NOW DL_NOW
14297 # define LT_DLLAZY_OR_NOW 0
14304 /* When -fvisibility=hidden is used, assume the code has been annotated
14305 correspondingly for the symbols needed. */
14306 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14307 int fnord () __attribute__((visibility("default")));
14310 int fnord () { return 42; }
14313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14314 int status = $lt_dlunknown;
14318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14322 else puts (dlerror ());
14324 /* dlclose (self); */
14332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14333 (eval $ac_link) 2>&5
14335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14336 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14337 (./conftest; exit; ) >&5 2>/dev/null
14339 case x$lt_status in
14340 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14341 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14342 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14345 # compilation failed
14346 lt_cv_dlopen_self=no
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14354 $as_echo "$lt_cv_dlopen_self" >&6; }
14356 if test yes = "$lt_cv_dlopen_self"; then
14357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14359 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14360 if ${lt_cv_dlopen_self_static+:} false; then :
14361 $as_echo_n "(cached) " >&6
14363 if test yes = "$cross_compiling"; then :
14364 lt_cv_dlopen_self_static=cross
14366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14367 lt_status=$lt_dlunknown
14368 cat > conftest.$ac_ext <<_LT_EOF
14369 #line $LINENO "configure"
14370 #include "confdefs.h"
14379 # define LT_DLGLOBAL RTLD_GLOBAL
14382 # define LT_DLGLOBAL DL_GLOBAL
14384 # define LT_DLGLOBAL 0
14388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14389 find out it does not work in some platform. */
14390 #ifndef LT_DLLAZY_OR_NOW
14392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14395 # define LT_DLLAZY_OR_NOW DL_LAZY
14398 # define LT_DLLAZY_OR_NOW RTLD_NOW
14401 # define LT_DLLAZY_OR_NOW DL_NOW
14403 # define LT_DLLAZY_OR_NOW 0
14410 /* When -fvisibility=hidden is used, assume the code has been annotated
14411 correspondingly for the symbols needed. */
14412 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14413 int fnord () __attribute__((visibility("default")));
14416 int fnord () { return 42; }
14419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14420 int status = $lt_dlunknown;
14424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14428 else puts (dlerror ());
14430 /* dlclose (self); */
14438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14439 (eval $ac_link) 2>&5
14441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14443 (./conftest; exit; ) >&5 2>/dev/null
14445 case x$lt_status in
14446 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14447 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14448 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14451 # compilation failed
14452 lt_cv_dlopen_self_static=no
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14460 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14463 CPPFLAGS=$save_CPPFLAGS
14464 LDFLAGS=$save_LDFLAGS
14469 case $lt_cv_dlopen_self in
14470 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14471 *) enable_dlopen_self=unknown ;;
14474 case $lt_cv_dlopen_self_static in
14475 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14476 *) enable_dlopen_self_static=unknown ;;
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14499 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14500 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14506 # FIXME - insert some real tests, host_os isn't really good enough
14509 if test -n "$STRIP"; then
14510 striplib="$STRIP -x"
14511 old_striplib="$STRIP -S"
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14513 $as_echo "yes" >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516 $as_echo "no" >&6; }
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14537 # Report what library types will actually be built
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14539 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14541 $as_echo "$can_build_shared" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14544 $as_echo_n "checking whether to build shared libraries... " >&6; }
14545 test no = "$can_build_shared" && enable_shared=no
14547 # On AIX, shared libraries and static libraries use the same namespace, and
14548 # are all built from PIC.
14551 test yes = "$enable_shared" && enable_static=no
14552 if test -n "$RANLIB"; then
14553 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14554 postinstall_cmds='$RANLIB $lib'
14559 if test ia64 != "$host_cpu"; then
14560 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14561 yes,aix,yes) ;; # shared object as lib.so file only
14562 yes,svr4,*) ;; # shared object as lib.so archive member only
14563 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14569 $as_echo "$enable_shared" >&6; }
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14572 $as_echo_n "checking whether to build static libraries... " >&6; }
14573 # Make sure either enable_shared or enable_static is yes.
14574 test yes = "$enable_shared" || enable_static=yes
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14576 $as_echo "$enable_static" >&6; }
14583 ac_cpp='$CPP $CPPFLAGS'
14584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14604 ac_config_commands="$ac_config_commands libtool"
14609 # Only expand once:
14621 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14622 if test -n "$ac_tool_prefix"; then
14623 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14624 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626 $as_echo_n "checking for $ac_word... " >&6; }
14627 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14628 $as_echo_n "(cached) " >&6
14630 case $PKG_CONFIG in
14632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14636 for as_dir in $PATH
14639 test -z "$as_dir" && as_dir=.
14640 for ac_exec_ext in '' $ac_executable_extensions; do
14641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14654 if test -n "$PKG_CONFIG"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14656 $as_echo "$PKG_CONFIG" >&6; }
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659 $as_echo "no" >&6; }
14664 if test -z "$ac_cv_path_PKG_CONFIG"; then
14665 ac_pt_PKG_CONFIG=$PKG_CONFIG
14666 # Extract the first word of "pkg-config", so it can be a program name with args.
14667 set dummy pkg-config; ac_word=$2
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14669 $as_echo_n "checking for $ac_word... " >&6; }
14670 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14671 $as_echo_n "(cached) " >&6
14673 case $ac_pt_PKG_CONFIG in
14675 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14697 if test -n "$ac_pt_PKG_CONFIG"; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14699 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702 $as_echo "no" >&6; }
14705 if test "x$ac_pt_PKG_CONFIG" = x; then
14708 case $cross_compiling:$ac_tool_warned in
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14712 ac_tool_warned=yes ;;
14714 PKG_CONFIG=$ac_pt_PKG_CONFIG
14717 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14721 if test -n "$PKG_CONFIG"; then
14722 _pkg_min_version=0.9.0
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14724 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14725 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14735 # Checks for header files.
14736 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.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
14738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14739 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14741 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14742 cat >>confdefs.h <<_ACEOF
14743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14752 # Using own tests for int64* because autoconf builtin only give 32bit.
14753 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14754 if test "x$ac_cv_type_int8_t" = xyes; then :
14758 cat >>confdefs.h <<_ACEOF
14759 #define int8_t signed char
14764 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14765 if test "x$ac_cv_type_int16_t" = xyes; then :
14769 cat >>confdefs.h <<_ACEOF
14770 #define int16_t short
14775 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14776 if test "x$ac_cv_type_int32_t" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define int32_t int
14786 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14787 if test "x$ac_cv_type_int64_t" = xyes; then :
14791 cat >>confdefs.h <<_ACEOF
14792 #define int64_t long long
14797 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14798 if test "x$ac_cv_type_uint8_t" = xyes; then :
14802 cat >>confdefs.h <<_ACEOF
14803 #define uint8_t unsigned char
14808 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14809 if test "x$ac_cv_type_uint16_t" = xyes; then :
14813 cat >>confdefs.h <<_ACEOF
14814 #define uint16_t unsigned short
14819 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14820 if test "x$ac_cv_type_uint32_t" = xyes; then :
14824 cat >>confdefs.h <<_ACEOF
14825 #define uint32_t unsigned int
14830 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14831 if test "x$ac_cv_type_uint64_t" = xyes; then :
14835 cat >>confdefs.h <<_ACEOF
14836 #define uint64_t unsigned long long
14841 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14842 if test "x$ac_cv_type_size_t" = xyes; then :
14846 cat >>confdefs.h <<_ACEOF
14847 #define size_t unsigned int
14852 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14853 if test "x$ac_cv_type_ssize_t" = xyes; then :
14857 cat >>confdefs.h <<_ACEOF
14858 #define ssize_t int
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14864 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14865 if ${ac_cv_type_uid_t+:} false; then :
14866 $as_echo_n "(cached) " >&6
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <sys/types.h>
14873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14874 $EGREP "uid_t" >/dev/null 2>&1; then :
14875 ac_cv_type_uid_t=yes
14877 ac_cv_type_uid_t=no
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14883 $as_echo "$ac_cv_type_uid_t" >&6; }
14884 if test $ac_cv_type_uid_t = no; then
14886 $as_echo "#define uid_t int" >>confdefs.h
14889 $as_echo "#define gid_t int" >>confdefs.h
14893 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14894 if test "x$ac_cv_type_pid_t" = xyes; then :
14898 cat >>confdefs.h <<_ACEOF
14904 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14905 if test "x$ac_cv_type_off_t" = xyes; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define off_t long int
14915 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14916 $ac_includes_default
14917 #ifdef HAVE_WINSOCK2_H
14918 # include <winsock2.h>
14922 if test "x$ac_cv_type_u_char" = xyes; then :
14926 $as_echo "#define u_char unsigned char" >>confdefs.h
14930 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14931 $ac_includes_default
14932 #ifdef HAVE_SYS_RESOURCE_H
14933 # include <sys/resource.h>
14937 if test "x$ac_cv_type_rlim_t" = xyes; then :
14941 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14946 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14947 $ac_includes_default
14948 #ifdef HAVE_SYS_SOCKET_H
14949 # include <sys/socket.h>
14951 #ifdef HAVE_WS2TCPIP_H
14952 # include <ws2tcpip.h>
14956 if test "x$ac_cv_type_socklen_t" = xyes; then :
14960 $as_echo "#define socklen_t int" >>confdefs.h
14964 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14965 $ac_includes_default
14966 #ifdef HAVE_SYS_TYPES_H
14967 # include <sys/types.h>
14969 #ifdef HAVE_NETINET_IN_H
14970 # include <netinet/in.h>
14974 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14978 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14982 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14983 $ac_includes_default
14984 #ifdef HAVE_SYS_TYPES_H
14985 # include <sys/types.h>
14987 #ifdef HAVE_NETINET_IN_H
14988 # include <netinet/in.h>
14992 if test "x$ac_cv_type_in_port_t" = xyes; then :
14996 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
15001 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
15002 if test "$cross_compiling" = yes; then :
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
15004 $as_echo "cross-compile no" >&6; }
15006 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15008 case " $LIBOBJS " in
15009 *" memcmp.$ac_objext "* ) ;;
15010 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15020 #include <stdlib.h>
15021 #include <string.h>
15024 char a = 255, b = 0;
15025 if(memcmp(&a, &b, 1) < 0)
15031 if ac_fn_c_try_run "$LINENO"; then :
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15033 $as_echo "yes" >&6; }
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15038 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15040 case " $LIBOBJS " in
15041 *" memcmp.$ac_objext "* ) ;;
15042 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15049 conftest.$ac_objext conftest.beam conftest.$ac_ext
15053 # The cast to long int works around a bug in the HP C Compiler
15054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15056 # This bug is HP SR number 8606223364.
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15058 $as_echo_n "checking size of time_t... " >&6; }
15059 if ${ac_cv_sizeof_time_t+:} false; then :
15060 $as_echo_n "(cached) " >&6
15062 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15063 $ac_includes_default
15064 #ifdef TIME_WITH_SYS_TIME
15065 # include <sys/time.h>
15068 # ifdef HAVE_SYS_TIME_H
15069 # include <sys/time.h>
15078 if test "$ac_cv_type_time_t" = yes; then
15079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15081 as_fn_error 77 "cannot compute sizeof (time_t)
15082 See \`config.log' for more details" "$LINENO" 5; }
15084 ac_cv_sizeof_time_t=0
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15090 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15094 cat >>confdefs.h <<_ACEOF
15095 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15099 # The cast to long int works around a bug in the HP C Compiler
15100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15102 # This bug is HP SR number 8606223364.
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15104 $as_echo_n "checking size of size_t... " >&6; }
15105 if ${ac_cv_sizeof_size_t+:} false; then :
15106 $as_echo_n "(cached) " >&6
15108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15111 if test "$ac_cv_type_size_t" = yes; then
15112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15114 as_fn_error 77 "cannot compute sizeof (size_t)
15115 See \`config.log' for more details" "$LINENO" 5; }
15117 ac_cv_sizeof_size_t=0
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15123 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15127 cat >>confdefs.h <<_ACEOF
15128 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15133 # add option to disable the evil rpath
15135 # Check whether --enable-rpath was given.
15136 if test "${enable_rpath+set}" = set; then :
15137 enableval=$enable_rpath; enable_rpath=$enableval
15142 if test "x$enable_rpath" = xno; then
15143 ac_config_commands="$ac_config_commands disable-rpath"
15149 # check to see if libraries are needed for these functions.
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15151 $as_echo_n "checking for library containing inet_pton... " >&6; }
15152 if ${ac_cv_search_inet_pton+:} false; then :
15153 $as_echo_n "(cached) " >&6
15155 ac_func_search_save_LIBS=$LIBS
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15159 /* Override any GCC internal prototype to avoid an error.
15160 Use char because int might match the return type of a GCC
15161 builtin and then its argument prototype would still apply. */
15169 return inet_pton ();
15174 for ac_lib in '' nsl; do
15175 if test -z "$ac_lib"; then
15176 ac_res="none required"
15179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 ac_cv_search_inet_pton=$ac_res
15184 rm -f core conftest.err conftest.$ac_objext \
15186 if ${ac_cv_search_inet_pton+:} false; then :
15190 if ${ac_cv_search_inet_pton+:} false; then :
15193 ac_cv_search_inet_pton=no
15195 rm conftest.$ac_ext
15196 LIBS=$ac_func_search_save_LIBS
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15199 $as_echo "$ac_cv_search_inet_pton" >&6; }
15200 ac_res=$ac_cv_search_inet_pton
15201 if test "$ac_res" != no; then :
15202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15207 $as_echo_n "checking for library containing socket... " >&6; }
15208 if ${ac_cv_search_socket+:} false; then :
15209 $as_echo_n "(cached) " >&6
15211 ac_func_search_save_LIBS=$LIBS
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15230 for ac_lib in '' socket; do
15231 if test -z "$ac_lib"; then
15232 ac_res="none required"
15235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15237 if ac_fn_c_try_link "$LINENO"; then :
15238 ac_cv_search_socket=$ac_res
15240 rm -f core conftest.err conftest.$ac_objext \
15242 if ${ac_cv_search_socket+:} false; then :
15246 if ${ac_cv_search_socket+:} false; then :
15249 ac_cv_search_socket=no
15251 rm conftest.$ac_ext
15252 LIBS=$ac_func_search_save_LIBS
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15255 $as_echo "$ac_cv_search_socket" >&6; }
15256 ac_res=$ac_cv_search_socket
15257 if test "$ac_res" != no; then :
15258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15263 # check wether strptime also works
15265 # check some functions of the OS before linking libs (while still runnable).
15266 for ac_header in unistd.h
15268 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15269 if test "x$ac_cv_header_unistd_h" = xyes; then :
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_UNISTD_H 1
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15279 $as_echo_n "checking for working chown... " >&6; }
15280 if ${ac_cv_func_chown_works+:} false; then :
15281 $as_echo_n "(cached) " >&6
15283 if test "$cross_compiling" = yes; then :
15284 ac_cv_func_chown_works=no
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 $ac_includes_default
15294 char *f = "conftest.chown";
15295 struct stat before, after;
15297 if (creat (f, 0600) < 0)
15299 if (stat (f, &before) < 0)
15301 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15303 if (stat (f, &after) < 0)
15305 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15311 if ac_fn_c_try_run "$LINENO"; then :
15312 ac_cv_func_chown_works=yes
15314 ac_cv_func_chown_works=no
15316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15317 conftest.$ac_objext conftest.beam conftest.$ac_ext
15320 rm -f conftest.chown
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15324 $as_echo "$ac_cv_func_chown_works" >&6; }
15325 if test $ac_cv_func_chown_works = yes; then
15327 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15331 for ac_header in vfork.h
15333 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15334 if test "x$ac_cv_header_vfork_h" = xyes; then :
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_VFORK_H 1
15343 for ac_func in fork vfork
15345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15355 if test "x$ac_cv_func_fork" = xyes; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15357 $as_echo_n "checking for working fork... " >&6; }
15358 if ${ac_cv_func_fork_works+:} false; then :
15359 $as_echo_n "(cached) " >&6
15361 if test "$cross_compiling" = yes; then :
15362 ac_cv_func_fork_works=cross
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 $ac_includes_default
15371 /* By Ruediger Kuhlmann. */
15372 return fork () < 0;
15378 if ac_fn_c_try_run "$LINENO"; then :
15379 ac_cv_func_fork_works=yes
15381 ac_cv_func_fork_works=no
15383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15384 conftest.$ac_objext conftest.beam conftest.$ac_ext
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15389 $as_echo "$ac_cv_func_fork_works" >&6; }
15392 ac_cv_func_fork_works=$ac_cv_func_fork
15394 if test "x$ac_cv_func_fork_works" = xcross; then
15396 *-*-amigaos* | *-*-msdosdjgpp*)
15397 # Override, as these systems have only a dummy fork() stub
15398 ac_cv_func_fork_works=no
15401 ac_cv_func_fork_works=yes
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15405 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15407 ac_cv_func_vfork_works=$ac_cv_func_vfork
15408 if test "x$ac_cv_func_vfork" = xyes; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15410 $as_echo_n "checking for working vfork... " >&6; }
15411 if ${ac_cv_func_vfork_works+:} false; then :
15412 $as_echo_n "(cached) " >&6
15414 if test "$cross_compiling" = yes; then :
15415 ac_cv_func_vfork_works=cross
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15419 /* Thanks to Paul Eggert for this test. */
15420 $ac_includes_default
15421 #include <sys/wait.h>
15422 #ifdef HAVE_VFORK_H
15423 # include <vfork.h>
15425 /* On some sparc systems, changes by the child to local and incoming
15426 argument registers are propagated back to the parent. The compiler
15427 is told about this with #include <vfork.h>, but some compilers
15428 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15429 static variable whose address is put into a register that is
15430 clobbered by the vfork. */
15433 sparc_address_test (int arg)
15435 sparc_address_test (arg) int arg;
15438 static pid_t child;
15456 pid_t parent = getpid ();
15459 sparc_address_test (0);
15464 /* Here is another test for sparc vfork register problems. This
15465 test uses lots of local variables, at least as many local
15466 variables as main has allocated so far including compiler
15467 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15468 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15469 reuse the register of parent for one of the local variables,
15470 since it will think that parent can't possibly be used any more
15471 in this routine. Assigning to the local variable will thus
15472 munge parent in the parent process. */
15474 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15475 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15476 /* Convince the compiler that p..p7 are live; otherwise, it might
15477 use the same hardware register for all 8 local variables. */
15478 if (p != p1 || p != p2 || p != p3 || p != p4
15479 || p != p5 || p != p6 || p != p7)
15482 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15483 from child file descriptors. If the child closes a descriptor
15484 before it execs or exits, this munges the parent's descriptor
15485 as well. Test for this by closing stdout in the child. */
15486 _exit(close(fileno(stdout)) != 0);
15491 while (wait(&status) != child)
15494 /* Was there some problem with vforking? */
15497 /* Did the child fail? (This shouldn't happen.) */
15500 /* Did the vfork/compiler bug occur? */
15501 || parent != getpid()
15503 /* Did the file descriptor bug occur? */
15504 || fstat(fileno(stdout), &st) != 0
15509 if ac_fn_c_try_run "$LINENO"; then :
15510 ac_cv_func_vfork_works=yes
15512 ac_cv_func_vfork_works=no
15514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15515 conftest.$ac_objext conftest.beam conftest.$ac_ext
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15520 $as_echo "$ac_cv_func_vfork_works" >&6; }
15523 if test "x$ac_cv_func_fork_works" = xcross; then
15524 ac_cv_func_vfork_works=$ac_cv_func_vfork
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15526 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15529 if test "x$ac_cv_func_vfork_works" = xyes; then
15531 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15535 $as_echo "#define vfork fork" >>confdefs.h
15538 if test "x$ac_cv_func_fork_works" = xyes; then
15540 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15545 $as_echo_n "checking return type of signal handlers... " >&6; }
15546 if ${ac_cv_type_signal+:} false; then :
15547 $as_echo_n "(cached) " >&6
15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550 /* end confdefs.h. */
15551 #include <sys/types.h>
15552 #include <signal.h>
15557 return *(signal (0, 0)) (0) == 1;
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563 ac_cv_type_signal=int
15565 ac_cv_type_signal=void
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15570 $as_echo "$ac_cv_type_signal" >&6; }
15572 cat >>confdefs.h <<_ACEOF
15573 #define RETSIGTYPE $ac_cv_type_signal
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15578 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15579 if ${ac_cv_sys_largefile_source+:} false; then :
15580 $as_echo_n "(cached) " >&6
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 #include <sys/types.h> /* for off_t */
15590 int (*fp) (FILE *, off_t, int) = fseeko;
15591 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15596 if ac_fn_c_try_link "$LINENO"; then :
15597 ac_cv_sys_largefile_source=no; break
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #define _LARGEFILE_SOURCE 1
15604 #include <sys/types.h> /* for off_t */
15609 int (*fp) (FILE *, off_t, int) = fseeko;
15610 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15615 if ac_fn_c_try_link "$LINENO"; then :
15616 ac_cv_sys_largefile_source=1; break
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15620 ac_cv_sys_largefile_source=unknown
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15625 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15626 case $ac_cv_sys_largefile_source in #(
15629 cat >>confdefs.h <<_ACEOF
15630 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15636 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15637 # in glibc 2.1.3, but that breaks too many other things.
15638 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15639 if test $ac_cv_sys_largefile_source != unknown; then
15641 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15646 # Check whether --enable-largefile was given.
15647 if test "${enable_largefile+set}" = set; then :
15648 enableval=$enable_largefile;
15651 if test "$enable_largefile" != no; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15654 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15655 if ${ac_cv_sys_largefile_CC+:} false; then :
15656 $as_echo_n "(cached) " >&6
15658 ac_cv_sys_largefile_CC=no
15659 if test "$GCC" != yes; then
15662 # IRIX 6.2 and later do not support large files by default,
15663 # so use the C compiler's -n32 option if that helps.
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 #include <sys/types.h>
15667 /* Check that off_t can represent 2**63 - 1 correctly.
15668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15669 since some C++ compilers masquerading as C compilers
15670 incorrectly reject 9223372036854775807. */
15671 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15673 && LARGE_OFF_T % 2147483647 == 1)
15683 if ac_fn_c_try_compile "$LINENO"; then :
15686 rm -f core conftest.err conftest.$ac_objext
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689 ac_cv_sys_largefile_CC=' -n32'; break
15691 rm -f core conftest.err conftest.$ac_objext
15695 rm -f conftest.$ac_ext
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15699 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15700 if test "$ac_cv_sys_largefile_CC" != no; then
15701 CC=$CC$ac_cv_sys_largefile_CC
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15705 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15706 if ${ac_cv_sys_file_offset_bits+:} false; then :
15707 $as_echo_n "(cached) " >&6
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 #include <sys/types.h>
15713 /* Check that off_t can represent 2**63 - 1 correctly.
15714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15715 since some C++ compilers masquerading as C compilers
15716 incorrectly reject 9223372036854775807. */
15717 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15719 && LARGE_OFF_T % 2147483647 == 1)
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 ac_cv_sys_file_offset_bits=no; break
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 #define _FILE_OFFSET_BITS 64
15736 #include <sys/types.h>
15737 /* Check that off_t can represent 2**63 - 1 correctly.
15738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15739 since some C++ compilers masquerading as C compilers
15740 incorrectly reject 9223372036854775807. */
15741 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15743 && LARGE_OFF_T % 2147483647 == 1)
15753 if ac_fn_c_try_compile "$LINENO"; then :
15754 ac_cv_sys_file_offset_bits=64; break
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 ac_cv_sys_file_offset_bits=unknown
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15762 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15763 case $ac_cv_sys_file_offset_bits in #(
15766 cat >>confdefs.h <<_ACEOF
15767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15772 if test $ac_cv_sys_file_offset_bits = unknown; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15774 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15775 if ${ac_cv_sys_large_files+:} false; then :
15776 $as_echo_n "(cached) " >&6
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <sys/types.h>
15782 /* Check that off_t can represent 2**63 - 1 correctly.
15783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15784 since some C++ compilers masquerading as C compilers
15785 incorrectly reject 9223372036854775807. */
15786 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15788 && LARGE_OFF_T % 2147483647 == 1)
15798 if ac_fn_c_try_compile "$LINENO"; then :
15799 ac_cv_sys_large_files=no; break
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 #define _LARGE_FILES 1
15805 #include <sys/types.h>
15806 /* Check that off_t can represent 2**63 - 1 correctly.
15807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15808 since some C++ compilers masquerading as C compilers
15809 incorrectly reject 9223372036854775807. */
15810 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15812 && LARGE_OFF_T % 2147483647 == 1)
15822 if ac_fn_c_try_compile "$LINENO"; then :
15823 ac_cv_sys_large_files=1; break
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 ac_cv_sys_large_files=unknown
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15831 $as_echo "$ac_cv_sys_large_files" >&6; }
15832 case $ac_cv_sys_large_files in #(
15835 cat >>confdefs.h <<_ACEOF
15836 #define _LARGE_FILES $ac_cv_sys_large_files
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15850 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15851 cache=_D_LARGEFILE_SOURCE_1
15852 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15853 $as_echo_n "(cached) " >&6
15859 int a = fseeko(stdin, 0, 0);
15863 echo 'void f(){}' >>conftest.c
15864 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15865 eval "cv_prog_cc_flag_needed_$cache=no"
15868 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15869 eval "cv_prog_cc_flag_needed_$cache=yes"
15871 eval "cv_prog_cc_flag_needed_$cache=fail"
15872 #echo 'Test with flag fails too!'
15874 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15875 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15880 rm -f conftest conftest.c conftest.o
15884 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15888 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15890 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15892 $as_echo "no" >&6; }
15893 #echo 'Test with flag is no!'
15895 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15896 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15902 $as_echo "failed" >&6; }
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15911 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15912 if echo $target | grep mingw32 >/dev/null; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15914 $as_echo "no (windows)" >&6; }
15916 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15919 if test "$cross_compiling" = yes; then :
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15922 $as_echo "crosscompile(yes)" >&6; }
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15930 #include <string.h>
15931 #include <stdlib.h>
15934 #ifdef HAVE_SYS_TYPES_H
15935 #include <sys/types.h>
15937 #ifdef HAVE_SYS_SOCKET_H
15938 #include <sys/socket.h>
15940 #ifdef HAVE_NETINET_IN_H
15941 #include <netinet/in.h>
15943 #ifdef HAVE_ARPA_INET_H
15944 #include <arpa/inet.h>
15946 #ifdef HAVE_UNISTD_H
15947 #include <unistd.h>
15959 struct sockaddr_in a;
15960 /* test if select and nonblocking reads work well together */
15962 fork child to send 10 messages.
15964 then try to nonblocking read the 10 messages
15965 then, nonblocking read must give EAGAIN
15968 port = 12345 + (time(0)%32);
15969 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15974 memset(&a, 0, sizeof(a));
15975 a.sin_family = AF_INET;
15976 a.sin_port = htons(port);
15977 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15978 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15982 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15987 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15989 perror("client socket");
15993 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15994 perror("client bind");
15997 a.sin_port = htons(port);
15999 /* no handler, causes exit in 10 seconds */
16002 /* send and receive on the socket */
16003 if((p=fork()) == 0) {
16004 for(i=0; i<num; i++) {
16005 if(sendto(cfd, &i, sizeof(i), 0,
16006 (struct sockaddr*)&a, sizeof(a)) < 0) {
16020 FD_SET(sfd, &rset);
16021 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16027 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16028 if(errno == EAGAIN)
16035 /* now we want to get EAGAIN: nonblocking goodness */
16037 recv(sfd, &x, sizeof(x), 0);
16038 if(errno != EAGAIN) {
16039 perror("trying to recv again");
16042 /* EAGAIN encountered */
16051 if ac_fn_c_try_run "$LINENO"; then :
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16054 $as_echo "yes" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16061 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16066 conftest.$ac_objext conftest.beam conftest.$ac_ext
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16073 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16078 #include <unistd.h>
16079 #ifdef HAVE_WINSOCK2_H
16080 #include <winsock2.h>
16082 #ifdef HAVE_SYS_STAT_H
16083 #include <sys/stat.h>
16090 (void)mkdir("directory");
16096 if ac_fn_c_try_compile "$LINENO"; then :
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16098 $as_echo "yes" >&6; }
16100 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16105 $as_echo "no" >&6; }
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16110 for ac_func in strptime
16112 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16113 if test "x$ac_cv_func_strptime" = xyes; then :
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_STRPTIME 1
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16119 $as_echo_n "checking whether strptime works... " >&6; }
16120 if test c${cross_compiling} = cno; then
16121 if test "$cross_compiling" = yes; then :
16122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16124 as_fn_error $? "cannot run test program while cross compiling
16125 See \`config.log' for more details" "$LINENO" 5; }
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16130 #define _XOPEN_SOURCE 600
16132 int main(void) { struct tm tm; char *res;
16133 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);
16134 if (!res) return 2;
16135 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16136 if (!res) return 1; return 0; }
16139 if ac_fn_c_try_run "$LINENO"; then :
16140 eval "ac_cv_c_strptime_works=yes"
16142 eval "ac_cv_c_strptime_works=no"
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145 conftest.$ac_objext conftest.beam conftest.$ac_ext
16149 eval "ac_cv_c_strptime_works=maybe"
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16152 $as_echo "$ac_cv_c_strptime_works" >&6; }
16153 if test $ac_cv_c_strptime_works = no; then
16154 case " $LIBOBJS " in
16155 *" strptime.$ac_objext "* ) ;;
16156 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16162 cat >>confdefs.h <<_ACEOF
16163 #define STRPTIME_WORKS 1
16169 case " $LIBOBJS " in
16170 *" strptime.$ac_objext "* ) ;;
16171 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16179 # check if we can use SO_REUSEPORT
16180 if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then
16182 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16186 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16190 # Include systemd.m4 - begin
16191 # macros for configuring systemd
16192 # Copyright 2015, Sami Kerola, CloudFlare.
16194 # Check whether --enable-systemd was given.
16195 if test "${enable_systemd+set}" = set; then :
16196 enableval=$enable_systemd;
16202 if test "x$enable_systemd" != xno; then :
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16208 $as_echo_n "checking for SYSTEMD... " >&6; }
16210 if test -n "$SYSTEMD_CFLAGS"; then
16211 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16212 elif test -n "$PKG_CONFIG"; then
16213 if test -n "$PKG_CONFIG" && \
16214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16215 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16218 test $ac_status = 0; }; then
16219 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16220 test "x$?" != "x0" && pkg_failed=yes
16227 if test -n "$SYSTEMD_LIBS"; then
16228 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16229 elif test -n "$PKG_CONFIG"; then
16230 if test -n "$PKG_CONFIG" && \
16231 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16232 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235 test $ac_status = 0; }; then
16236 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16237 test "x$?" != "x0" && pkg_failed=yes
16247 if test $pkg_failed = yes; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16249 $as_echo "no" >&6; }
16251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16252 _pkg_short_errors_supported=yes
16254 _pkg_short_errors_supported=no
16256 if test $_pkg_short_errors_supported = yes; then
16257 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16259 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16261 # Put the nasty error message in config.log where it belongs
16262 echo "$SYSTEMD_PKG_ERRORS" >&5
16265 elif test $pkg_failed = untried; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16270 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16271 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16273 $as_echo "yes" >&6; }
16276 if test "x$have_systemd" != "xyes"; then :
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16281 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16283 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16284 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16285 elif test -n "$PKG_CONFIG"; then
16286 if test -n "$PKG_CONFIG" && \
16287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16288 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16291 test $ac_status = 0; }; then
16292 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16293 test "x$?" != "x0" && pkg_failed=yes
16300 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16301 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16302 elif test -n "$PKG_CONFIG"; then
16303 if test -n "$PKG_CONFIG" && \
16304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16305 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16308 test $ac_status = 0; }; then
16309 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16310 test "x$?" != "x0" && pkg_failed=yes
16320 if test $pkg_failed = yes; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16322 $as_echo "no" >&6; }
16324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16325 _pkg_short_errors_supported=yes
16327 _pkg_short_errors_supported=no
16329 if test $_pkg_short_errors_supported = yes; then
16330 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16332 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16334 # Put the nasty error message in config.log where it belongs
16335 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16337 have_systemd_daemon=no
16338 elif test $pkg_failed = untried; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340 $as_echo "no" >&6; }
16341 have_systemd_daemon=no
16343 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16344 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347 have_systemd_daemon=yes
16349 if test "x$have_systemd_daemon" = "xyes"; then :
16354 case $enable_systemd:$have_systemd in #(
16356 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16359 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16361 LIBS="$LIBS $SYSTEMD_LIBS"
16370 if test "x$have_systemd" = xyes; then
16372 USE_SYSTEMD_FALSE='#'
16374 USE_SYSTEMD_TRUE='#'
16379 # Include systemd.m4 - end
16381 # set memory allocation checking if requested
16382 # Check whether --enable-alloc-checks was given.
16383 if test "${enable_alloc_checks+set}" = set; then :
16384 enableval=$enable_alloc_checks;
16387 # Check whether --enable-alloc-lite was given.
16388 if test "${enable_alloc_lite+set}" = set; then :
16389 enableval=$enable_alloc_lite;
16392 # Check whether --enable-alloc-nonregional was given.
16393 if test "${enable_alloc_nonregional+set}" = set; then :
16394 enableval=$enable_alloc_nonregional;
16397 if test x_$enable_alloc_nonregional = x_yes; then
16399 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16402 if test x_$enable_alloc_checks = x_yes; then
16404 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16406 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16408 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16411 if test x_$enable_alloc_lite = x_yes; then
16413 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16418 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16419 if test "$cross_compiling" = yes; then :
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16421 $as_echo "no (crosscompile)" >&6; }
16422 case " $LIBOBJS " in
16423 *" malloc.$ac_objext "* ) ;;
16424 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16429 cat >>confdefs.h <<_ACEOF
16430 #define malloc rpl_malloc_unbound
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16437 #include <stdlib.h>
16445 if(malloc(0) != 0) return 1;
16451 if ac_fn_c_try_run "$LINENO"; then :
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16453 $as_echo "no" >&6; }
16454 case " $LIBOBJS " in
16455 *" malloc.$ac_objext "* ) ;;
16456 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16461 cat >>confdefs.h <<_ACEOF
16462 #define malloc rpl_malloc_unbound
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16467 $as_echo "yes" >&6; }
16469 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16473 conftest.$ac_objext conftest.beam conftest.$ac_ext
16480 # check windows threads (we use them, not pthreads, on windows).
16481 if test "$on_mingw" = "yes"; then
16482 # check windows threads
16483 for ac_header in windows.h
16485 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16487 if test "x$ac_cv_header_windows_h" = xyes; then :
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_WINDOWS_H 1
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16497 $as_echo_n "checking for CreateThread... " >&6; }
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16501 #ifdef HAVE_WINDOWS_H
16502 #include <windows.h>
16509 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16515 if ac_fn_c_try_compile "$LINENO"; then :
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16519 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 # not on mingw, check thread libraries.
16532 # check for thread library.
16533 # check this first, so that the pthread lib does not get linked in via
16534 # libssl or libpython, and thus distorts the tests, and we end up using
16535 # the non-threadsafe C libraries.
16537 # Check whether --with-pthreads was given.
16538 if test "${with_pthreads+set}" = set; then :
16539 withval=$with_pthreads;
16544 ub_have_pthreads=no
16545 if test x_$withval != x_no; then
16549 ac_cpp='$CPP $CPPFLAGS'
16550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16556 # We used to check for pthread.h first, but this fails if pthread.h
16557 # requires special compiler flags (e.g. on True64 or Sequent).
16558 # It gets checked for in the link test anyway.
16560 # First of all, check if the user has set any of the PTHREAD_LIBS,
16561 # etcetera environment variables, and if threads linking works using
16563 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16564 save_CFLAGS="$CFLAGS"
16565 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16567 LIBS="$PTHREAD_LIBS $LIBS"
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16569 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16579 char pthread_join ();
16583 return pthread_join ();
16588 if ac_fn_c_try_link "$LINENO"; then :
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16594 $as_echo "$ax_pthread_ok" >&6; }
16595 if test x"$ax_pthread_ok" = xno; then
16600 CFLAGS="$save_CFLAGS"
16603 # We must check for the threads library under a number of different
16604 # names; the ordering is very important because some systems
16605 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16606 # libraries is broken (non-POSIX).
16608 # Create a list of thread flags to try. Items starting with a "-" are
16609 # C compiler flags, and other items are library names, except for "none"
16610 # which indicates that we try without any flags at all, and "pthread-config"
16611 # which is a program returning the flags for the Pth emulation library.
16613 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16615 # The ordering *is* (sometimes) important. Some notes on the
16616 # individual items follow:
16618 # pthreads: AIX (must check this before -lpthread)
16619 # none: in case threads are in libc; should be tried before -Kthread and
16620 # other compiler flags to prevent continual compiler warnings
16621 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16622 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16623 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16624 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16625 # -pthreads: Solaris/gcc
16626 # -mthreads: Mingw32/gcc, Lynx/gcc
16627 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16628 # doesn't hurt to check since this sometimes defines pthreads too;
16629 # also defines -D_REENTRANT)
16630 # ... -mt is also the pthreads flag for HP/aCC
16631 # pthread: Linux, etcetera
16632 # --thread-safe: KAI C++
16633 # pthread-config: use pthread-config program (for GNU Pth library)
16638 # On Solaris (at least, for some versions), libc contains stubbed
16639 # (non-functional) versions of the pthreads routines, so link-based
16640 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16641 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16642 # a function called by this macro, so we could check for that, but
16643 # who knows whether they'll stub that too in a future libc.) So,
16644 # we'll just look for -pthreads and -lpthread first:
16646 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16650 ax_pthread_flags="-pthread $ax_pthread_flags"
16654 # Clang doesn't consider unrecognized options an error unless we specify
16655 # -Werror. We throw in some extra Clang-specific options to ensure that
16656 # this doesn't happen for GCC, which also accepts -Werror.
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16659 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16660 save_CFLAGS="$CFLAGS"
16661 ax_pthread_extra_flags="-Werror"
16662 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16676 $as_echo "yes" >&6; }
16678 ax_pthread_extra_flags=
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680 $as_echo "no" >&6; }
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 CFLAGS="$save_CFLAGS"
16685 if test x"$ax_pthread_ok" = xno; then
16686 for flag in $ax_pthread_flags; do
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16691 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16696 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16697 PTHREAD_CFLAGS="$flag"
16701 # Extract the first word of "pthread-config", so it can be a program name with args.
16702 set dummy pthread-config; ac_word=$2
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16704 $as_echo_n "checking for $ac_word... " >&6; }
16705 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16706 $as_echo_n "(cached) " >&6
16708 if test -n "$ax_pthread_config"; then
16709 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16715 test -z "$as_dir" && as_dir=.
16716 for ac_exec_ext in '' $ac_executable_extensions; do
16717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16718 ac_cv_prog_ax_pthread_config="yes"
16719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16726 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16729 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16730 if test -n "$ax_pthread_config"; then
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16732 $as_echo "$ax_pthread_config" >&6; }
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16735 $as_echo "no" >&6; }
16739 if test x"$ax_pthread_config" = xno; then continue; fi
16740 PTHREAD_CFLAGS="`pthread-config --cflags`"
16741 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16746 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16747 PTHREAD_LIBS="-l$flag"
16752 save_CFLAGS="$CFLAGS"
16753 LIBS="$PTHREAD_LIBS $LIBS"
16754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16756 # Check for various functions. We must include pthread.h,
16757 # since some functions may be macros. (On the Sequent, we
16758 # need a special flag -Kthread to make this header compile.)
16759 # We check for pthread_join because it is in -lpthread on IRIX
16760 # while pthread_create is in libc. We check for pthread_attr_init
16761 # due to DEC craziness with -lpthreads. We check for
16762 # pthread_cleanup_push because it is one of the few pthread
16763 # functions on Solaris that doesn't have a non-functional libc stub.
16764 # We try pthread_create on general principles.
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 #include <pthread.h>
16768 static void routine(void *a) { *((int*)a) = 0; }
16769 static void *start_routine(void *a) { return a; }
16773 pthread_t th; pthread_attr_t attr;
16774 pthread_create(&th, 0, start_routine, 0);
16775 pthread_join(th, 0);
16776 pthread_attr_init(&attr);
16777 pthread_cleanup_push(routine, 0);
16778 pthread_cleanup_pop(0) /* ; */
16783 if ac_fn_c_try_link "$LINENO"; then :
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16790 CFLAGS="$save_CFLAGS"
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16793 $as_echo "$ax_pthread_ok" >&6; }
16794 if test "x$ax_pthread_ok" = xyes; then
16803 # Various other checks:
16804 if test "x$ax_pthread_ok" = xyes; then
16806 LIBS="$PTHREAD_LIBS $LIBS"
16807 save_CFLAGS="$CFLAGS"
16808 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16810 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16812 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16814 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16817 #include <pthread.h>
16821 int attr = $attr; return attr /* ; */
16826 if ac_fn_c_try_link "$LINENO"; then :
16827 attr_name=$attr; break
16829 rm -f core conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16833 $as_echo "$attr_name" >&6; }
16834 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define PTHREAD_CREATE_JOINABLE $attr_name
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16843 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16846 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16847 osf* | hpux*) flag="-D_REENTRANT";;
16849 if test "$GCC" = "yes"; then
16850 flag="-D_REENTRANT"
16852 # TODO: What about Clang on Solaris?
16853 flag="-mt -D_REENTRANT"
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16858 $as_echo "$flag" >&6; }
16859 if test "x$flag" != xno; then
16860 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16864 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16865 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16866 $as_echo_n "(cached) " >&6
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <pthread.h>
16875 int i = PTHREAD_PRIO_INHERIT;
16880 if ac_fn_c_try_link "$LINENO"; then :
16881 ax_cv_PTHREAD_PRIO_INHERIT=yes
16883 ax_cv_PTHREAD_PRIO_INHERIT=no
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16890 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16891 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16893 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16898 CFLAGS="$save_CFLAGS"
16900 # More AIX lossage: compile with *_r variant
16901 if test "x$GCC" != xyes; then
16905 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16906 #handle absolute path differently from PATH based program lookup
16909 if as_fn_executable_p ${CC}_r; then :
16910 PTHREAD_CC="${CC}_r"
16913 for ac_prog in ${CC}_r
16915 # Extract the first word of "$ac_prog", so it can be a program name with args.
16916 set dummy $ac_prog; ac_word=$2
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16918 $as_echo_n "checking for $ac_word... " >&6; }
16919 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16920 $as_echo_n "(cached) " >&6
16922 if test -n "$PTHREAD_CC"; then
16923 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16926 for as_dir in $PATH
16929 test -z "$as_dir" && as_dir=.
16930 for ac_exec_ext in '' $ac_executable_extensions; do
16931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16932 ac_cv_prog_PTHREAD_CC="$ac_prog"
16933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16942 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16943 if test -n "$PTHREAD_CC"; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16945 $as_echo "$PTHREAD_CC" >&6; }
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16948 $as_echo "no" >&6; }
16952 test -n "$PTHREAD_CC" && break
16954 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16965 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16971 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16972 if test x"$ax_pthread_ok" = xyes; then
16975 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16977 if test -n "$PTHREAD_LIBS"; then
16978 LIBS="$PTHREAD_LIBS $LIBS"
16980 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16982 ub_have_pthreads=yes
16983 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16985 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16987 cat >>confdefs.h <<_ACEOF
16988 #define HAVE_PTHREAD_SPINLOCK_T 1
16993 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16995 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_PTHREAD_RWLOCK_T 1
17005 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
17007 $as_echo_n "checking if -pthread unused during linking... " >&6; }
17008 # catch clang warning 'argument unused during compilation'
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 $ac_includes_default
17013 int main(void) {return 0;}
17016 pthread_unused="yes"
17018 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17019 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17020 if test $? = 0; then
17022 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17023 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17024 if test $? -ne 0; then
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 $as_echo "yes" >&6; }
17027 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17028 PTHREAD_CFLAGS_ONLY="-pthread"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi # endif cc successful
17038 rm -f conftest conftest.c conftest.o
17039 fi # endif -pthread in CFLAGS
17048 ac_cpp='$CPP $CPPFLAGS'
17049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17056 # check solaris thread library
17058 # Check whether --with-solaris-threads was given.
17059 if test "${with_solaris_threads+set}" = set; then :
17060 withval=$with_solaris_threads;
17065 ub_have_sol_threads=no
17066 if test x_$withval != x_no; then
17067 if test x_$ub_have_pthreads != x_no; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17069 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17072 $as_echo_n "checking for library containing thr_create... " >&6; }
17073 if ${ac_cv_search_thr_create+:} false; then :
17074 $as_echo_n "(cached) " >&6
17076 ac_func_search_save_LIBS=$LIBS
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17086 char thr_create ();
17090 return thr_create ();
17095 for ac_lib in '' thread; do
17096 if test -z "$ac_lib"; then
17097 ac_res="none required"
17100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17102 if ac_fn_c_try_link "$LINENO"; then :
17103 ac_cv_search_thr_create=$ac_res
17105 rm -f core conftest.err conftest.$ac_objext \
17107 if ${ac_cv_search_thr_create+:} false; then :
17111 if ${ac_cv_search_thr_create+:} false; then :
17114 ac_cv_search_thr_create=no
17116 rm conftest.$ac_ext
17117 LIBS=$ac_func_search_save_LIBS
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17120 $as_echo "$ac_cv_search_thr_create" >&6; }
17121 ac_res=$ac_cv_search_thr_create
17122 if test "$ac_res" != no; then :
17123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17126 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17132 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17133 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17134 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17135 $as_echo_n "(cached) " >&6
17138 echo 'void f(void){}' >conftest.c
17139 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17140 eval "cv_prog_cc_flag_$cache=yes"
17142 eval "cv_prog_cc_flag_$cache=no"
17144 rm -f conftest conftest.o conftest.c
17148 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17150 $as_echo "yes" >&6; }
17152 CFLAGS="$CFLAGS -mt"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17157 CFLAGS="$CFLAGS -D_REENTRANT"
17160 ub_have_sol_threads=yes
17164 as_fn_error $? "no solaris threads found." "$LINENO" 5
17171 fi # end of non-mingw check of thread libraries
17173 # Check for SYSLOG_FACILITY
17175 # Check whether --with-syslog-facility was given.
17176 if test "${with_syslog_facility+set}" = set; then :
17177 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17180 case "${UNBOUND_SYSLOG_FACILITY}" in
17182 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17184 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17188 cat >>confdefs.h <<_ACEOF
17189 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17193 # Check for PyUnbound
17195 # Check whether --with-pyunbound was given.
17196 if test "${with_pyunbound+set}" = set; then :
17197 withval=$with_pyunbound;
17204 ub_with_pyunbound=no
17205 if test x_$withval != x_no; then
17206 ub_with_pyunbound=yes
17210 # Check for Python module
17212 # Check whether --with-pythonmodule was given.
17213 if test "${with_pythonmodule+set}" = set; then :
17214 withval=$with_pythonmodule;
17220 ub_with_pythonmod=no
17221 if test x_$withval != x_no; then
17222 ub_with_pythonmod=yes
17226 # Check for Python & SWIG only on PyUnbound or PyModule
17227 if test x_$ub_test_python != x_no; then
17231 ac_save_LIBS="$LIBS"
17233 # Allow the use of a (user set) custom python version
17237 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17238 set dummy python$PYTHON_VERSION; ac_word=$2
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17240 $as_echo_n "checking for $ac_word... " >&6; }
17241 if ${ac_cv_path_PYTHON+:} false; then :
17242 $as_echo_n "(cached) " >&6
17246 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17250 for as_dir in $PATH
17253 test -z "$as_dir" && as_dir=.
17254 for ac_exec_ext in '' $ac_executable_extensions; do
17255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17256 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17267 PYTHON=$ac_cv_path_PYTHON
17268 if test -n "$PYTHON"; then
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17270 $as_echo "$PYTHON" >&6; }
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17273 $as_echo "no" >&6; }
17277 if test -z "$PYTHON"; then
17278 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17282 if test -z "$PYTHON_VERSION"; then
17283 PYTHON_VERSION=`$PYTHON -c "import sys; \
17284 print(sys.version.split()[0])"`
17288 # Check if you have distutils, else fail
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17291 $as_echo_n "checking for the distutils Python package... " >&6; }
17292 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294 $as_echo "yes" >&6; }
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17297 $as_echo "no" >&6; }
17298 as_fn_error $? "cannot import Python module \"distutils\".
17299 Please check your Python installation. The error was:
17300 $ac_distutils_result" "$LINENO" 5
17305 # Check for Python include path
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17308 $as_echo_n "checking for Python include path... " >&6; }
17309 if test -z "$PYTHON_CPPFLAGS"; then
17310 python_path=`$PYTHON -c "import distutils.sysconfig; \
17311 print(distutils.sysconfig.get_python_inc());"`
17312 if test -n "${python_path}"; then
17313 python_path="-I$python_path"
17315 PYTHON_CPPFLAGS=$python_path
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17318 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17322 # Check for Python library path
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17325 $as_echo_n "checking for Python library path... " >&6; }
17326 if test -z "$PYTHON_LDFLAGS"; then
17327 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17328 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17331 $as_echo "$PYTHON_LDFLAGS" >&6; }
17335 # Check for site packages
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17338 $as_echo_n "checking for Python site-packages path... " >&6; }
17339 if test -z "$PYTHON_SITE_PKG"; then
17340 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17341 print(distutils.sysconfig.get_python_lib(1,0));"`
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17344 $as_echo "$PYTHON_SITE_PKG" >&6; }
17348 # final check to see if everything compiles alright
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17351 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17358 # save current global flags
17359 ac_save_LIBS="$LIBS"
17360 ac_save_CPPFLAGS="$CPPFLAGS"
17362 LIBS="$LIBS $PYTHON_LDFLAGS"
17363 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17367 #include <Python.h>
17379 if ac_fn_c_try_link "$LINENO"; then :
17384 rm -f core conftest.err conftest.$ac_objext \
17385 conftest$ac_exeext conftest.$ac_ext
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17388 $as_echo "$pythonexists" >&6; }
17390 if test ! "$pythonexists" = "yes"; then
17392 Could not link test program to Python. Maybe the main Python library has been
17393 installed in some non-standard library path. If so, pass it to configure,
17394 via the LDFLAGS environment variable.
17395 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17396 ============================================================================
17398 You probably have to install the development version of the Python package
17399 for your distribution. The exact name of this package varies among them.
17400 ============================================================================
17405 ac_cpp='$CPP $CPPFLAGS'
17406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17410 # turn back to default flags
17411 CPPFLAGS="$ac_save_CPPFLAGS"
17412 LIBS="$ac_save_LIBS"
17418 if test ! -z "$PYTHON_VERSION"; then
17419 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17420 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17423 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17427 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17429 if test -n "$LIBS"; then
17430 LIBS="$PYTHON_LDFLAGS $LIBS"
17432 LIBS="$PYTHON_LDFLAGS"
17434 if test -n "$CPPFLAGS"; then
17435 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17437 CPPFLAGS="$PYTHON_CPPFLAGS"
17440 if test -n "$PKG_CONFIG" && \
17441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17442 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17445 test $ac_status = 0; }; then
17446 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17448 PC_PY_DEPENDENCY="python"
17454 # Check whether --enable-swig-version-check was given.
17455 if test "${enable_swig_version_check+set}" = set; then :
17456 enableval=$enable_swig_version_check;
17459 if test "$enable_swig_version_check" = "yes"; then
17461 # Extract the first word of "swig", so it can be a program name with args.
17462 set dummy swig; ac_word=$2
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17464 $as_echo_n "checking for $ac_word... " >&6; }
17465 if ${ac_cv_path_SWIG+:} false; then :
17466 $as_echo_n "(cached) " >&6
17470 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474 for as_dir in $PATH
17477 test -z "$as_dir" && as_dir=.
17478 for ac_exec_ext in '' $ac_executable_extensions; do
17479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17480 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17491 SWIG=$ac_cv_path_SWIG
17492 if test -n "$SWIG"; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17494 $as_echo "$SWIG" >&6; }
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 $as_echo "no" >&6; }
17501 if test -z "$SWIG" ; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17503 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17504 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17505 elif test -n "2.0.1" ; then
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17507 $as_echo_n "checking for SWIG version... " >&6; }
17508 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'`
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17510 $as_echo "$swig_version" >&6; }
17511 if test -n "$swig_version" ; then
17512 # Calculate the required version number components
17514 required_major=`echo $required | sed 's/[^0-9].*//'`
17515 if test -z "$required_major" ; then
17518 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17519 required_minor=`echo $required | sed 's/[^0-9].*//'`
17520 if test -z "$required_minor" ; then
17523 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17524 required_patch=`echo $required | sed 's/[^0-9].*//'`
17525 if test -z "$required_patch" ; then
17528 # Calculate the available version number components
17529 available=$swig_version
17530 available_major=`echo $available | sed 's/[^0-9].*//'`
17531 if test -z "$available_major" ; then
17534 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17535 available_minor=`echo $available | sed 's/[^0-9].*//'`
17536 if test -z "$available_minor" ; then
17539 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17540 available_patch=`echo $available | sed 's/[^0-9].*//'`
17541 if test -z "$available_patch" ; then
17545 if test $available_major -lt $required_major ; then
17548 if test $available_major -eq $required_major \
17549 -a $available_minor -lt $required_minor ; then
17552 if test $available_major -eq $required_major \
17553 -a $available_minor -eq $required_minor \
17554 -a $available_patch -lt $required_patch ; then
17557 if test $badversion -eq 1 ; then
17558 { $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
17559 $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;}
17560 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17563 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17564 SWIG_LIB=`$SWIG -swiglib`
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17566 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17570 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17571 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17578 # Extract the first word of "swig", so it can be a program name with args.
17579 set dummy swig; ac_word=$2
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17581 $as_echo_n "checking for $ac_word... " >&6; }
17582 if ${ac_cv_path_SWIG+:} false; then :
17583 $as_echo_n "(cached) " >&6
17587 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17591 for as_dir in $PATH
17594 test -z "$as_dir" && as_dir=.
17595 for ac_exec_ext in '' $ac_executable_extensions; do
17596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17597 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17608 SWIG=$ac_cv_path_SWIG
17609 if test -n "$SWIG"; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17611 $as_echo "$SWIG" >&6; }
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17614 $as_echo "no" >&6; }
17618 if test -z "$SWIG" ; then
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17620 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17621 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17622 elif test -n "" ; then
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17624 $as_echo_n "checking for SWIG version... " >&6; }
17625 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'`
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17627 $as_echo "$swig_version" >&6; }
17628 if test -n "$swig_version" ; then
17629 # Calculate the required version number components
17631 required_major=`echo $required | sed 's/[^0-9].*//'`
17632 if test -z "$required_major" ; then
17635 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17636 required_minor=`echo $required | sed 's/[^0-9].*//'`
17637 if test -z "$required_minor" ; then
17640 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17641 required_patch=`echo $required | sed 's/[^0-9].*//'`
17642 if test -z "$required_patch" ; then
17645 # Calculate the available version number components
17646 available=$swig_version
17647 available_major=`echo $available | sed 's/[^0-9].*//'`
17648 if test -z "$available_major" ; then
17651 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17652 available_minor=`echo $available | sed 's/[^0-9].*//'`
17653 if test -z "$available_minor" ; then
17656 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17657 available_patch=`echo $available | sed 's/[^0-9].*//'`
17658 if test -z "$available_patch" ; then
17662 if test $available_major -lt $required_major ; then
17665 if test $available_major -eq $required_major \
17666 -a $available_minor -lt $required_minor ; then
17669 if test $available_major -eq $required_major \
17670 -a $available_minor -eq $required_minor \
17671 -a $available_patch -lt $required_patch ; then
17674 if test $badversion -eq 1 ; then
17675 { $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
17676 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17677 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17680 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17681 SWIG_LIB=`$SWIG -swiglib`
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17683 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17687 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17688 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17695 $as_echo_n "checking SWIG... " >&6; }
17696 if test ! -x "$SWIG"; then
17697 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17700 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17705 $as_echo "present" >&6; }
17707 # If have Python & SWIG
17708 # Declare PythonMod
17709 if test x_$ub_with_pythonmod != x_no; then
17711 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17713 WITH_PYTHONMODULE=yes
17715 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17717 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17719 PYTHONMOD_INSTALL=pythonmod-install
17721 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17725 # Declare PyUnbound
17726 if test x_$ub_with_pyunbound != x_no; then
17728 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17732 PYUNBOUND_OBJ="libunbound_wrap.lo"
17734 PYUNBOUND_TARGET="_unbound.la"
17736 PYUNBOUND_INSTALL=pyunbound-install
17738 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17744 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17745 ub_with_pyunbound=no
17746 ub_with_pythonmod=no
17750 if test "`uname`" = "NetBSD"; then
17751 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17754 CONFIG_DATE=`date +%Y%m%d`
17757 # Checks for libraries.
17762 # Check whether --with-nss was given.
17763 if test "${with_nss+set}" = set; then :
17767 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17769 if test "$withval" != "" -a "$withval" != "yes"; then
17770 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17771 LDFLAGS="$LDFLAGS -L$withval/lib"
17773 if test "x$enable_rpath" = xyes; then
17774 if echo "$withval/lib" | grep "^/" >/dev/null; then
17775 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17779 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17781 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17782 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17784 LIBS="$LIBS -lnss3 -lnspr4"
17794 # Check whether --with-nettle was given.
17795 if test "${with_nettle+set}" = set; then :
17796 withval=$with_nettle;
17799 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17801 for ac_header in nettle/dsa-compat.h
17803 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17805 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17806 cat >>confdefs.h <<_ACEOF
17807 #define HAVE_NETTLE_DSA_COMPAT_H 1
17814 if test "$withval" != "" -a "$withval" != "yes"; then
17815 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17816 LDFLAGS="$LDFLAGS -L$withval/lib"
17818 if test "x$enable_rpath" = xyes; then
17819 if echo "$withval/lib" | grep "^/" >/dev/null; then
17820 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17825 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17827 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17835 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17838 # Check whether --with-ssl was given.
17839 if test "${with_ssl+set}" = set; then :
17848 if test x_$withval = x_no; then
17849 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17853 if test x_$withval != x_no; then
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17855 $as_echo_n "checking for SSL... " >&6; }
17856 if test x_$withval = x_ -o x_$withval = x_yes; then
17857 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17859 for dir in $withval; do
17861 if test -f "$dir/include/openssl/ssl.h"; then
17864 cat >>confdefs.h <<_ACEOF
17865 #define HAVE_SSL /**/
17868 if test "$ssldir" != "/usr"; then
17869 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17870 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17875 if test x_$found_ssl != x_yes; then
17876 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17879 $as_echo "found in $ssldir" >&6; }
17881 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17882 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17883 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17885 if test "x$enable_rpath" = xyes; then
17886 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17887 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17894 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17895 LIBS="$LIBS -lcrypto"
17896 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17904 int HMAC_Update(void);
17905 (void)HMAC_Update();
17911 if ac_fn_c_try_link "$LINENO"; then :
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17914 $as_echo "yes" >&6; }
17916 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17922 $as_echo "no" >&6; }
17923 # check if -lwsock32 or -lgdi32 are needed.
17925 BAKSSLLIBS="$LIBSSL_LIBS"
17926 LIBS="$LIBS -lgdi32 -lws2_32"
17927 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17929 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17937 int HMAC_Update(void);
17938 (void)HMAC_Update();
17944 if ac_fn_c_try_link "$LINENO"; then :
17947 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17950 $as_echo "yes" >&6; }
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17955 $as_echo "no" >&6; }
17957 LIBSSL_LIBS="$BAKSSLLIBS"
17959 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17961 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17969 int HMAC_Update(void);
17970 (void)HMAC_Update();
17976 if ac_fn_c_try_link "$LINENO"; then :
17979 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17982 $as_echo "yes" >&6; }
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17987 $as_echo "no" >&6; }
17989 LIBSSL_LIBS="$BAKSSLLIBS"
17990 LIBS="$LIBS -ldl -pthread"
17991 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17993 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
18001 int HMAC_Update(void);
18002 (void)HMAC_Update();
18008 if ac_fn_c_try_link "$LINENO"; then :
18011 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18014 $as_echo "yes" >&6; }
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18019 $as_echo "no" >&6; }
18020 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18027 rm -f core conftest.err conftest.$ac_objext \
18028 conftest$ac_exeext conftest.$ac_ext
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18035 rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
18041 for ac_header in openssl/ssl.h
18043 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18045 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_OPENSSL_SSL_H 1
18054 for ac_header in openssl/err.h
18056 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18058 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_OPENSSL_ERR_H 1
18067 for ac_header in openssl/rand.h
18069 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18071 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18072 cat >>confdefs.h <<_ACEOF
18073 #define HAVE_OPENSSL_RAND_H 1
18083 # check if libssl needs libdl
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18087 $as_echo_n "checking if libssl needs libdl... " >&6; }
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18097 char SSL_CTX_new ();
18101 return SSL_CTX_new ();
18106 if ac_fn_c_try_link "$LINENO"; then :
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115 $as_echo "yes" >&6; }
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18118 $as_echo_n "checking for library containing dlopen... " >&6; }
18119 if ${ac_cv_search_dlopen+:} false; then :
18120 $as_echo_n "(cached) " >&6
18122 ac_func_search_save_LIBS=$LIBS
18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h. */
18126 /* Override any GCC internal prototype to avoid an error.
18127 Use char because int might match the return type of a GCC
18128 builtin and then its argument prototype would still apply. */
18141 for ac_lib in '' dl; do
18142 if test -z "$ac_lib"; then
18143 ac_res="none required"
18146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18148 if ac_fn_c_try_link "$LINENO"; then :
18149 ac_cv_search_dlopen=$ac_res
18151 rm -f core conftest.err conftest.$ac_objext \
18153 if ${ac_cv_search_dlopen+:} false; then :
18157 if ${ac_cv_search_dlopen+:} false; then :
18160 ac_cv_search_dlopen=no
18162 rm conftest.$ac_ext
18163 LIBS=$ac_func_search_save_LIBS
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18166 $as_echo "$ac_cv_search_dlopen" >&6; }
18167 ac_res=$ac_cv_search_dlopen
18168 if test "$ac_res" != no; then :
18169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18179 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18183 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18193 char HMAC_Update ();
18197 return HMAC_Update ();
18202 if ac_fn_c_try_link "$LINENO"; then :
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205 $as_echo "no" >&6; }
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
18213 LIBS="$LIBS -lcrypt32"
18216 rm -f core conftest.err conftest.$ac_objext \
18217 conftest$ac_exeext conftest.$ac_ext
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18220 $as_echo_n "checking for LibreSSL... " >&6; }
18221 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18223 $as_echo "yes" >&6; }
18225 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18227 # libressl provides these compat functions, but they may also be
18228 # declared by the OS in libc. See if they have been declared.
18229 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18230 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18236 cat >>confdefs.h <<_ACEOF
18237 #define HAVE_DECL_STRLCPY $ac_have_decl
18239 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18240 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18246 cat >>confdefs.h <<_ACEOF
18247 #define HAVE_DECL_STRLCAT $ac_have_decl
18249 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18250 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18256 cat >>confdefs.h <<_ACEOF
18257 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18259 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18260 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18266 cat >>confdefs.h <<_ACEOF
18267 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18272 $as_echo "no" >&6; }
18274 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
18276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18280 cat >>confdefs.h <<_ACEOF
18281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18288 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode EVP_MD_CTX_new OpenSSL_add_all_digests OPENSSL_init_crypto EVP_cleanup ERR_load_crypto_strings CRYPTO_cleanup_all_ex_data ERR_free_strings RAND_cleanup DSA_SIG_set0 EVP_dss1 EVP_DigestVerify SSL_CTX_set_tlsext_ticket_key_cb EVP_aes_256_cbc EVP_EncryptInit_ex HMAC_Init_ex CRYPTO_THREADID_set_callback
18290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18293 cat >>confdefs.h <<_ACEOF
18294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18301 # these check_funcs need -lssl
18304 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
18306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18309 cat >>confdefs.h <<_ACEOF
18310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18318 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18319 $ac_includes_default
18320 #ifdef HAVE_OPENSSL_ERR_H
18321 #include <openssl/err.h>
18324 #ifdef HAVE_OPENSSL_RAND_H
18325 #include <openssl/rand.h>
18328 #ifdef HAVE_OPENSSL_CONF_H
18329 #include <openssl/conf.h>
18332 #ifdef HAVE_OPENSSL_ENGINE_H
18333 #include <openssl/engine.h>
18335 #include <openssl/ssl.h>
18336 #include <openssl/evp.h>
18339 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18348 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18349 $ac_includes_default
18350 #ifdef HAVE_OPENSSL_ERR_H
18351 #include <openssl/err.h>
18354 #ifdef HAVE_OPENSSL_RAND_H
18355 #include <openssl/rand.h>
18358 #ifdef HAVE_OPENSSL_CONF_H
18359 #include <openssl/conf.h>
18362 #ifdef HAVE_OPENSSL_ENGINE_H
18363 #include <openssl/engine.h>
18365 #include <openssl/ssl.h>
18366 #include <openssl/evp.h>
18369 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18375 cat >>confdefs.h <<_ACEOF
18376 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18378 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18379 $ac_includes_default
18380 #ifdef HAVE_OPENSSL_ERR_H
18381 #include <openssl/err.h>
18384 #ifdef HAVE_OPENSSL_RAND_H
18385 #include <openssl/rand.h>
18388 #ifdef HAVE_OPENSSL_CONF_H
18389 #include <openssl/conf.h>
18392 #ifdef HAVE_OPENSSL_ENGINE_H
18393 #include <openssl/engine.h>
18395 #include <openssl/ssl.h>
18396 #include <openssl/evp.h>
18399 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18410 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18411 # check function return type.
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18413 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 #ifdef HAVE_OPENSSL_ERR_H
18418 #include <openssl/err.h>
18421 #ifdef HAVE_OPENSSL_RAND_H
18422 #include <openssl/rand.h>
18425 #ifdef HAVE_OPENSSL_CONF_H
18426 #include <openssl/conf.h>
18429 #ifdef HAVE_OPENSSL_ENGINE_H
18430 #include <openssl/engine.h>
18432 #include <openssl/ssl.h>
18433 #include <openssl/evp.h>
18439 HMAC_CTX* hmac_ctx = NULL;
18440 void* hmac_key = NULL;
18441 const EVP_MD* digest = NULL;
18442 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18449 if ac_fn_c_try_compile "$LINENO"; then :
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18452 $as_echo "int" >&6; }
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18457 $as_echo "void" >&6; }
18459 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 # Check whether --enable-sha1 was given.
18471 if test "${enable_sha1+set}" = set; then :
18472 enableval=$enable_sha1;
18475 case "$enable_sha1" in
18480 $as_echo "#define USE_SHA1 1" >>confdefs.h
18486 # Check whether --enable-sha2 was given.
18487 if test "${enable_sha2+set}" = set; then :
18488 enableval=$enable_sha2;
18491 case "$enable_sha2" in
18496 $as_echo "#define USE_SHA2 1" >>confdefs.h
18501 # Check whether --enable-subnet was given.
18502 if test "${enable_subnet+set}" = set; then :
18503 enableval=$enable_subnet;
18506 case "$enable_subnet" in
18509 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18511 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18513 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18520 # check wether gost also works
18522 # Check whether --enable-gost was given.
18523 if test "${enable_gost+set}" = set; then :
18524 enableval=$enable_gost;
18528 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18529 case "$enable_gost" in
18533 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18534 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18537 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18540 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18541 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18544 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18549 $as_echo_n "checking if GOST works... " >&6; }
18550 if test c${cross_compiling} = cno; then
18551 BAKCFLAGS="$CFLAGS"
18552 if test -n "$ssldir"; then
18553 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18555 if test "$cross_compiling" = yes; then :
18556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18558 as_fn_error $? "cannot run test program while cross compiling
18559 See \`config.log' for more details" "$LINENO" 5; }
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18564 #include <string.h>
18565 #include <openssl/ssl.h>
18566 #include <openssl/evp.h>
18567 #include <openssl/engine.h>
18568 #include <openssl/conf.h>
18569 /* routine to load gost (from sldns) */
18570 int load_gost_id(void)
18572 static int gost_id = 0;
18573 const EVP_PKEY_ASN1_METHOD* meth;
18576 if(gost_id) return gost_id;
18578 /* see if configuration loaded gost implementation from other engine*/
18579 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18581 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18585 /* see if engine can be loaded already */
18586 e = ENGINE_by_id("gost");
18588 /* load it ourself, in case statically linked */
18589 ENGINE_load_builtin_engines();
18590 ENGINE_load_dynamic();
18591 e = ENGINE_by_id("gost");
18594 /* no gost engine in openssl */
18597 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18603 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18605 /* algo not found */
18610 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18616 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18617 const char* str = "Hello world";
18618 const unsigned char check[] = {
18619 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18620 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18621 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18622 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18624 OPENSSL_config(NULL);
18625 (void)load_gost_id();
18626 md = EVP_get_digestbyname("md_gost94");
18628 memset(digest, 0, sizeof(digest));
18629 ctx = EVP_MD_CTX_create();
18631 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18632 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18633 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18634 /* uncomment to see the hash calculated.
18636 for(i=0; i<32; i++)
18637 printf(" %2.2x", (int)digest[i]);
18640 if(memcmp(digest, check, sizeof(check)) != 0)
18646 if ac_fn_c_try_run "$LINENO"; then :
18647 eval "ac_cv_c_gost_works=yes"
18649 eval "ac_cv_c_gost_works=no"
18651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18652 conftest.$ac_objext conftest.beam conftest.$ac_ext
18655 CFLAGS="$BAKCFLAGS"
18657 eval "ac_cv_c_gost_works=maybe"
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18660 $as_echo "$ac_cv_c_gost_works" >&6; }
18662 if test "$ac_cv_c_gost_works" != no; then
18665 $as_echo "#define USE_GOST 1" >>confdefs.h
18671 # Check whether --enable-ecdsa was given.
18672 if test "${enable_ecdsa+set}" = set; then :
18673 enableval=$enable_ecdsa;
18677 case "$enable_ecdsa" in
18681 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18682 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18683 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18686 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18689 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18690 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18693 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18696 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18697 #include <openssl/evp.h>
18700 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18706 cat >>confdefs.h <<_ACEOF
18707 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18709 if test $ac_have_decl = 1; then :
18712 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18714 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18715 #include <openssl/evp.h>
18718 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18727 if test $ac_have_decl = 1; then :
18730 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18733 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18735 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18736 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18737 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18741 cat >>confdefs.h <<_ACEOF
18742 #define USE_ECDSA_EVP_WORKAROUND 1
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747 $as_echo "yes" >&6; }
18750 # not OpenSSL, thus likely LibreSSL, which supports it
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18755 # we now know we have ECDSA and the required curves.
18757 cat >>confdefs.h <<_ACEOF
18758 #define USE_ECDSA 1
18765 # Check whether --enable-dsa was given.
18766 if test "${enable_dsa+set}" = set; then :
18767 enableval=$enable_dsa;
18771 case "$enable_dsa" in
18775 # detect if DSA is supported, and turn it off if not.
18776 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18777 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18778 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18780 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18781 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18782 $ac_includes_default
18783 #ifdef HAVE_OPENSSL_ERR_H
18784 #include <openssl/err.h>
18787 #ifdef HAVE_OPENSSL_RAND_H
18788 #include <openssl/rand.h>
18791 #ifdef HAVE_OPENSSL_CONF_H
18792 #include <openssl/conf.h>
18795 #ifdef HAVE_OPENSSL_ENGINE_H
18796 #include <openssl/engine.h>
18800 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18803 cat >>confdefs.h <<_ACEOF
18809 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18815 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18821 cat >>confdefs.h <<_ACEOF
18829 # Check whether --enable-ed25519 was given.
18830 if test "${enable_ed25519+set}" = set; then :
18831 enableval=$enable_ed25519;
18835 case "$enable_ed25519" in
18839 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18840 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18841 #include <openssl/evp.h>
18844 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18850 cat >>confdefs.h <<_ACEOF
18851 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18853 if test $ac_have_decl = 1; then :
18858 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18863 if test $USE_NETTLE = "yes"; then
18864 for ac_header in nettle/eddsa.h
18866 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18868 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18869 cat >>confdefs.h <<_ACEOF
18870 #define HAVE_NETTLE_EDDSA_H 1
18878 if test $use_ed25519 = "yes"; then
18880 cat >>confdefs.h <<_ACEOF
18881 #define USE_ED25519 1
18888 # Check whether --enable-ed448 was given.
18889 if test "${enable_ed448+set}" = set; then :
18890 enableval=$enable_ed448;
18894 case "$enable_ed448" in
18898 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18899 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
18900 #include <openssl/evp.h>
18903 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_DECL_NID_ED448 $ac_have_decl
18912 if test $ac_have_decl = 1; then :
18917 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
18922 if test $use_ed448 = "yes"; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define USE_ED448 1
18932 # Check whether --enable-event-api was given.
18933 if test "${enable_event_api+set}" = set; then :
18934 enableval=$enable_event_api;
18937 case "$enable_event_api" in
18939 UNBOUND_EVENT_INSTALL=unbound-event-install
18941 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18948 # Check whether --enable-tfo-client was given.
18949 if test "${enable_tfo_client+set}" = set; then :
18950 enableval=$enable_tfo_client;
18953 case "$enable_tfo_client" in
18956 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18957 #include <netinet/tcp.h>
18960 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18962 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18964 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18968 cat >>confdefs.h <<_ACEOF
18969 #define USE_MSG_FASTOPEN 1
18973 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18974 #include <sys/socket.h>
18977 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18979 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18981 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18985 cat >>confdefs.h <<_ACEOF
18986 #define USE_OSX_MSG_FASTOPEN 1
18996 # Check whether --enable-tfo-server was given.
18997 if test "${enable_tfo_server+set}" = set; then :
18998 enableval=$enable_tfo_server;
19001 case "$enable_tfo_server" in
19003 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19004 #include <netinet/tcp.h>
19007 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19009 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19011 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19015 cat >>confdefs.h <<_ACEOF
19016 #define USE_TCP_FASTOPEN 1
19024 # check for libevent
19026 # Check whether --with-libevent was given.
19027 if test "${with_libevent+set}" = set; then :
19028 withval=$with_libevent;
19033 if test x_$withval = x_yes -o x_$withval != x_no; then
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19035 $as_echo_n "checking for libevent... " >&6; }
19036 if test x_$withval = x_ -o x_$withval = x_yes; then
19037 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19039 for dir in $withval; do
19041 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19042 found_libevent="yes"
19043 if test "$thedir" != "/usr"; then
19044 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19049 if test x_$found_libevent != x_yes; then
19050 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19051 # libevent source directory
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19053 $as_echo "found in $thedir" >&6; }
19054 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19055 BAK_LDFLAGS_SET="1"
19056 BAK_LDFLAGS="$LDFLAGS"
19057 # remove evdns from linking
19058 mkdir build >/dev/null 2>&1
19059 mkdir build/libevent >/dev/null 2>&1
19060 mkdir build/libevent/.libs >/dev/null 2>&1
19061 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19062 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19063 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19064 cp $ev_files_o build/libevent
19065 cp $ev_files_lo build/libevent
19066 cp $ev_files_libso build/libevent/.libs
19067 LATE_LDFLAGS="build/libevent/*.lo -lm"
19068 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19070 as_fn_error $? "Cannot find the libevent library in $withval
19071 You can restart ./configure --with-libevent=no to use a builtin alternative.
19072 Please note that this alternative is not as capable as libevent when using
19073 large outgoing port ranges. " "$LINENO" 5
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19077 $as_echo "found in $thedir" >&6; }
19078 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19079 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19081 if test "x$enable_rpath" = xyes; then
19082 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19083 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19088 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19089 LDFLAGS="$LDFLAGS -L$thedir/lib"
19091 if test "x$enable_rpath" = xyes; then
19092 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19093 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19100 # check for library used by libevent after 1.3c
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19102 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19103 if ${ac_cv_search_clock_gettime+:} false; then :
19104 $as_echo_n "(cached) " >&6
19106 ac_func_search_save_LIBS=$LIBS
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19110 /* Override any GCC internal prototype to avoid an error.
19111 Use char because int might match the return type of a GCC
19112 builtin and then its argument prototype would still apply. */
19116 char clock_gettime ();
19120 return clock_gettime ();
19125 for ac_lib in '' rt; do
19126 if test -z "$ac_lib"; then
19127 ac_res="none required"
19130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19132 if ac_fn_c_try_link "$LINENO"; then :
19133 ac_cv_search_clock_gettime=$ac_res
19135 rm -f core conftest.err conftest.$ac_objext \
19137 if ${ac_cv_search_clock_gettime+:} false; then :
19141 if ${ac_cv_search_clock_gettime+:} false; then :
19144 ac_cv_search_clock_gettime=no
19146 rm conftest.$ac_ext
19147 LIBS=$ac_func_search_save_LIBS
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19150 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19151 ac_res=$ac_cv_search_clock_gettime
19152 if test "$ac_res" != no; then :
19153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19158 # is the event.h header libev or libevent?
19159 for ac_header in event.h
19161 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19163 if test "x$ac_cv_header_event_h" = xyes; then :
19164 cat >>confdefs.h <<_ACEOF
19165 #define HAVE_EVENT_H 1
19172 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19176 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19179 $as_echo_n "checking for library containing event_set... " >&6; }
19180 if ${ac_cv_search_event_set+:} false; then :
19181 $as_echo_n "(cached) " >&6
19183 ac_func_search_save_LIBS=$LIBS
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19197 return event_set ();
19202 for ac_lib in '' ev; do
19203 if test -z "$ac_lib"; then
19204 ac_res="none required"
19207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19209 if ac_fn_c_try_link "$LINENO"; then :
19210 ac_cv_search_event_set=$ac_res
19212 rm -f core conftest.err conftest.$ac_objext \
19214 if ${ac_cv_search_event_set+:} false; then :
19218 if ${ac_cv_search_event_set+:} false; then :
19221 ac_cv_search_event_set=no
19223 rm conftest.$ac_ext
19224 LIBS=$ac_func_search_save_LIBS
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19227 $as_echo "$ac_cv_search_event_set" >&6; }
19228 ac_res=$ac_cv_search_event_set
19229 if test "$ac_res" != no; then :
19230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19238 $as_echo_n "checking for library containing event_set... " >&6; }
19239 if ${ac_cv_search_event_set+:} false; then :
19240 $as_echo_n "(cached) " >&6
19242 ac_func_search_save_LIBS=$LIBS
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19246 /* Override any GCC internal prototype to avoid an error.
19247 Use char because int might match the return type of a GCC
19248 builtin and then its argument prototype would still apply. */
19256 return event_set ();
19261 for ac_lib in '' event; do
19262 if test -z "$ac_lib"; then
19263 ac_res="none required"
19266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19268 if ac_fn_c_try_link "$LINENO"; then :
19269 ac_cv_search_event_set=$ac_res
19271 rm -f core conftest.err conftest.$ac_objext \
19273 if ${ac_cv_search_event_set+:} false; then :
19277 if ${ac_cv_search_event_set+:} false; then :
19280 ac_cv_search_event_set=no
19282 rm conftest.$ac_ext
19283 LIBS=$ac_func_search_save_LIBS
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19286 $as_echo "$ac_cv_search_event_set" >&6; }
19287 ac_res=$ac_cv_search_event_set
19288 if test "$ac_res" != no; then :
19289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19296 for ac_func in event_base_free
19298 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19299 if test "x$ac_cv_func_event_base_free" = xyes; then :
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_EVENT_BASE_FREE 1
19306 # only in libevent 1.2 and later
19307 for ac_func in event_base_once
19309 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19310 if test "x$ac_cv_func_event_base_once" = xyes; then :
19311 cat >>confdefs.h <<_ACEOF
19312 #define HAVE_EVENT_BASE_ONCE 1
19317 # only in libevent 1.4.1 and later
19318 for ac_func in event_base_new
19320 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19321 if test "x$ac_cv_func_event_base_new" = xyes; then :
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_EVENT_BASE_NEW 1
19328 # only in libevent 1.4.1 and later
19329 for ac_func in event_base_get_method
19331 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19332 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19333 cat >>confdefs.h <<_ACEOF
19334 #define HAVE_EVENT_BASE_GET_METHOD 1
19339 # only in libevent 1.4.3 and later
19340 for ac_func in ev_loop
19342 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19343 if test "x$ac_cv_func_ev_loop" = xyes; then :
19344 cat >>confdefs.h <<_ACEOF
19345 #define HAVE_EV_LOOP 1
19350 # only in libev. (tested on 3.51)
19351 for ac_func in ev_default_loop
19353 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19354 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_EV_DEFAULT_LOOP 1
19361 # only in libev. (tested on 4.00)
19362 for ac_func in event_assign
19364 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19365 if test "x$ac_cv_func_event_assign" = xyes; then :
19366 cat >>confdefs.h <<_ACEOF
19367 #define HAVE_EVENT_ASSIGN 1
19372 # in libevent, for thread-safety
19373 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19374 #ifdef HAVE_EVENT_H
19375 # include <event.h>
19377 # include \"event2/event.h\"
19381 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19387 cat >>confdefs.h <<_ACEOF
19388 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19391 PC_LIBEVENT_DEPENDENCY="libevent"
19393 if test -n "$BAK_LDFLAGS_SET"; then
19394 LDFLAGS="$BAK_LDFLAGS"
19398 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19402 # check for libexpat
19404 # Check whether --with-libexpat was given.
19405 if test "${with_libexpat+set}" = set; then :
19406 withval=$with_libexpat;
19408 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19412 $as_echo_n "checking for libexpat... " >&6; }
19413 found_libexpat="no"
19414 for dir in $withval ; do
19415 if test -f "$dir/include/expat.h"; then
19416 found_libexpat="yes"
19417 if test "$dir" != "/usr"; then
19418 CPPFLAGS="$CPPFLAGS -I$dir/include"
19419 LDFLAGS="$LDFLAGS -L$dir/lib"
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19422 $as_echo "found in $dir" >&6; }
19426 if test x_$found_libexpat != x_yes; then
19427 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19429 for ac_header in expat.h
19431 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19433 if test "x$ac_cv_header_expat_h" = xyes; then :
19434 cat >>confdefs.h <<_ACEOF
19435 #define HAVE_EXPAT_H 1
19442 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19446 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19452 cat >>confdefs.h <<_ACEOF
19453 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19457 # hiredis (redis C client for cachedb)
19459 # Check whether --with-libhiredis was given.
19460 if test "${with_libhiredis+set}" = set; then :
19461 withval=$with_libhiredis;
19466 found_libhiredis="no"
19467 if test x_$withval = x_yes -o x_$withval != x_no; then
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19469 $as_echo_n "checking for libhiredis... " >&6; }
19470 if test x_$withval = x_ -o x_$withval = x_yes; then
19471 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19473 for dir in $withval ; do
19474 if test -f "$dir/include/hiredis/hiredis.h"; then
19475 found_libhiredis="yes"
19476 if test "$dir" != "/usr"; then
19477 CPPFLAGS="$CPPFLAGS -I$dir/include"
19478 LDFLAGS="$LDFLAGS -L$dir/lib"
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19481 $as_echo "found in $dir" >&6; }
19483 $as_echo "#define USE_REDIS 1" >>confdefs.h
19485 LIBS="$LIBS -lhiredis"
19489 if test x_$found_libhiredis != x_yes; then
19490 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19492 for ac_header in hiredis/hiredis.h
19494 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19496 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19497 cat >>confdefs.h <<_ACEOF
19498 #define HAVE_HIREDIS_HIREDIS_H 1
19505 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19506 #include <hiredis/hiredis.h>
19509 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19521 # set static linking for uninstalled libraries if requested
19524 # Check whether --enable-static-exe was given.
19525 if test "${enable_static_exe+set}" = set; then :
19526 enableval=$enable_static_exe;
19529 if test x_$enable_static_exe = x_yes; then
19530 staticexe="-static"
19531 if test "$on_mingw" = yes; then
19532 staticexe="-all-static"
19533 # for static compile, include gdi32 and zlib here.
19534 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19537 LIBS="$LIBS -lgdi32"
19543 # set full static linking if requested
19544 # Check whether --enable-fully-static was given.
19545 if test "${enable_fully_static+set}" = set; then :
19546 enableval=$enable_fully_static;
19549 if test x_$enable_fully_static = x_yes; then
19550 staticexe="-all-static"
19551 if test "$on_mingw" = yes; then
19552 # for static compile, include gdi32 and zlib here.
19553 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19556 LIBS="$LIBS -lgdi32"
19562 # set lock checking if requested
19563 # Check whether --enable-lock_checks was given.
19564 if test "${enable_lock_checks+set}" = set; then :
19565 enableval=$enable_lock_checks;
19568 if test x_$enable_lock_checks = x_yes; then
19570 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19572 CHECKLOCK_OBJ="checklocks.lo"
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19578 $as_echo_n "checking for getaddrinfo... " >&6; }
19579 ac_cv_func_getaddrinfo=no
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19587 char* getaddrinfo();
19588 char* (*f) () = getaddrinfo;
19598 if ac_fn_c_try_link "$LINENO"; then :
19599 ac_cv_func_getaddrinfo="yes"
19600 if test "$ac_cv_header_windows_h" = "yes"; then
19602 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19605 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19608 LIBS="$LIBS -lws2_32"
19614 LIBS="$LIBS -lws2_32"
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19618 #ifdef HAVE_WS2TCPIP_H
19619 #include <ws2tcpip.h>
19626 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19633 if ac_fn_c_try_link "$LINENO"; then :
19635 ac_cv_func_getaddrinfo="yes"
19637 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19643 ac_cv_func_getaddrinfo="no"
19647 rm -f core conftest.err conftest.$ac_objext \
19648 conftest$ac_exeext conftest.$ac_ext
19651 rm -f core conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19655 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19656 if test $ac_cv_func_getaddrinfo = yes; then
19658 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19662 if test "$USE_WINSOCK" = 1; then
19664 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19666 for ac_header in iphlpapi.h
19668 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19669 #include <windows.h>
19672 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19673 cat >>confdefs.h <<_ACEOF
19674 #define HAVE_IPHLPAPI_H 1
19681 if test -n "$ac_tool_prefix"; then
19682 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19683 set dummy ${ac_tool_prefix}windres; ac_word=$2
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19685 $as_echo_n "checking for $ac_word... " >&6; }
19686 if ${ac_cv_prog_WINDRES+:} false; then :
19687 $as_echo_n "(cached) " >&6
19689 if test -n "$WINDRES"; then
19690 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19693 for as_dir in $PATH
19696 test -z "$as_dir" && as_dir=.
19697 for ac_exec_ext in '' $ac_executable_extensions; do
19698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19699 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19709 WINDRES=$ac_cv_prog_WINDRES
19710 if test -n "$WINDRES"; then
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19712 $as_echo "$WINDRES" >&6; }
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19715 $as_echo "no" >&6; }
19720 if test -z "$ac_cv_prog_WINDRES"; then
19721 ac_ct_WINDRES=$WINDRES
19722 # Extract the first word of "windres", so it can be a program name with args.
19723 set dummy windres; ac_word=$2
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19725 $as_echo_n "checking for $ac_word... " >&6; }
19726 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19727 $as_echo_n "(cached) " >&6
19729 if test -n "$ac_ct_WINDRES"; then
19730 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19733 for as_dir in $PATH
19736 test -z "$as_dir" && as_dir=.
19737 for ac_exec_ext in '' $ac_executable_extensions; do
19738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19739 ac_cv_prog_ac_ct_WINDRES="windres"
19740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19749 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19750 if test -n "$ac_ct_WINDRES"; then
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19752 $as_echo "$ac_ct_WINDRES" >&6; }
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755 $as_echo "no" >&6; }
19758 if test "x$ac_ct_WINDRES" = x; then
19761 case $cross_compiling:$ac_tool_warned in
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19765 ac_tool_warned=yes ;;
19767 WINDRES=$ac_ct_WINDRES
19770 WINDRES="$ac_cv_prog_WINDRES"
19773 LIBS="$LIBS -liphlpapi -lcrypt32"
19774 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19776 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19778 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19780 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19782 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19784 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19786 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19788 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19791 if test $ac_cv_func_getaddrinfo = no; then
19792 case " $LIBOBJS " in
19793 *" fake-rfc2553.$ac_objext "* ) ;;
19794 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19799 # check after getaddrinfo for its libraries
19801 # check ioctlsocket
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19803 $as_echo_n "checking for ioctlsocket... " >&6; }
19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19807 #ifdef HAVE_WINSOCK2_H
19808 #include <winsock2.h>
19815 (void)ioctlsocket(0, 0, NULL);
19821 if ac_fn_c_try_link "$LINENO"; then :
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19824 $as_echo "yes" >&6; }
19826 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831 $as_echo "no" >&6; }
19833 rm -f core conftest.err conftest.$ac_objext \
19834 conftest$ac_exeext conftest.$ac_ext
19837 # see if daemon(3) exists, and if it is deprecated.
19838 for ac_func in daemon
19840 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19841 if test "x$ac_cv_func_daemon" = xyes; then :
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_DAEMON 1
19849 if test $ac_cv_func_daemon = yes; then
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19853 $as_echo_n "checking if daemon is deprecated... " >&6; }
19854 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19855 if eval \${cv_cc_deprecated_$cache+:} false; then :
19856 $as_echo_n "(cached) " >&6
19860 #include <stdlib.h>
19862 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19863 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19864 eval "cv_cc_deprecated_$cache=no"
19866 eval "cv_cc_deprecated_$cache=yes"
19868 rm -f conftest conftest.o conftest.c
19872 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19874 $as_echo "yes" >&6; }
19876 cat >>confdefs.h <<_ACEOF
19877 #define DEPRECATED_DAEMON 1
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19884 $as_echo "no" >&6; }
19891 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19892 $ac_includes_default
19893 #ifdef HAVE_SYS_UN_H
19894 #include <sys/un.h>
19898 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19900 cat >>confdefs.h <<_ACEOF
19901 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19907 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19908 $ac_includes_default
19909 #if HAVE_SYS_PARAM_H
19910 #include <sys/param.h>
19913 #ifdef HAVE_SYS_SOCKET_H
19914 #include <sys/socket.h>
19917 #ifdef HAVE_SYS_UIO_H
19918 #include <sys/uio.h>
19921 #ifdef HAVE_NETINET_IN_H
19922 #include <netinet/in.h>
19925 #ifdef HAVE_NETINET_TCP_H
19926 #include <netinet/tcp.h>
19929 #ifdef HAVE_ARPA_INET_H
19930 #include <arpa/inet.h>
19933 #ifdef HAVE_WINSOCK2_H
19934 #include <winsock2.h>
19937 #ifdef HAVE_WS2TCPIP_H
19938 #include <ws2tcpip.h>
19942 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19944 cat >>confdefs.h <<_ACEOF
19945 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19952 $as_echo_n "checking for library containing setusercontext... " >&6; }
19953 if ${ac_cv_search_setusercontext+:} false; then :
19954 $as_echo_n "(cached) " >&6
19956 ac_func_search_save_LIBS=$LIBS
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19966 char setusercontext ();
19970 return setusercontext ();
19975 for ac_lib in '' util; do
19976 if test -z "$ac_lib"; then
19977 ac_res="none required"
19980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19982 if ac_fn_c_try_link "$LINENO"; then :
19983 ac_cv_search_setusercontext=$ac_res
19985 rm -f core conftest.err conftest.$ac_objext \
19987 if ${ac_cv_search_setusercontext+:} false; then :
19991 if ${ac_cv_search_setusercontext+:} false; then :
19994 ac_cv_search_setusercontext=no
19996 rm conftest.$ac_ext
19997 LIBS=$ac_func_search_save_LIBS
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20000 $as_echo "$ac_cv_search_setusercontext" >&6; }
20001 ac_res=$ac_cv_search_setusercontext
20002 if test "$ac_res" != no; then :
20003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20007 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
20009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20012 cat >>confdefs.h <<_ACEOF
20013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20019 for ac_func in setresuid
20021 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20022 if test "x$ac_cv_func_setresuid" = xyes; then :
20023 cat >>confdefs.h <<_ACEOF
20024 #define HAVE_SETRESUID 1
20028 for ac_func in setreuid
20030 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20031 if test "x$ac_cv_func_setreuid" = xyes; then :
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_SETREUID 1
20042 for ac_func in setresgid
20044 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20045 if test "x$ac_cv_func_setresgid" = xyes; then :
20046 cat >>confdefs.h <<_ACEOF
20047 #define HAVE_SETRESGID 1
20051 for ac_func in setregid
20053 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20054 if test "x$ac_cv_func_setregid" = xyes; then :
20055 cat >>confdefs.h <<_ACEOF
20056 #define HAVE_SETREGID 1
20066 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20067 if echo $target_os | grep darwin8 > /dev/null; then
20069 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20072 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20073 $ac_includes_default
20074 #ifdef HAVE_NETINET_IN_H
20075 #include <netinet/in.h>
20078 #ifdef HAVE_NETINET_TCP_H
20079 #include <netinet/tcp.h>
20082 #ifdef HAVE_ARPA_INET_H
20083 #include <arpa/inet.h>
20086 #ifdef HAVE_WINSOCK2_H
20087 #include <winsock2.h>
20090 #ifdef HAVE_WS2TCPIP_H
20091 #include <ws2tcpip.h>
20095 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_DECL_INET_PTON $ac_have_decl
20104 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20105 $ac_includes_default
20106 #ifdef HAVE_NETINET_IN_H
20107 #include <netinet/in.h>
20110 #ifdef HAVE_NETINET_TCP_H
20111 #include <netinet/tcp.h>
20114 #ifdef HAVE_ARPA_INET_H
20115 #include <arpa/inet.h>
20118 #ifdef HAVE_WINSOCK2_H
20119 #include <winsock2.h>
20122 #ifdef HAVE_WS2TCPIP_H
20123 #include <ws2tcpip.h>
20127 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20133 cat >>confdefs.h <<_ACEOF
20134 #define HAVE_DECL_INET_NTOP $ac_have_decl
20137 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20138 if test "x$ac_cv_func_inet_aton" = xyes; then :
20139 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20142 case " $LIBOBJS " in
20143 *" inet_aton.$ac_objext "* ) ;;
20144 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20151 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20152 if test "x$ac_cv_func_inet_pton" = xyes; then :
20153 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20156 case " $LIBOBJS " in
20157 *" inet_pton.$ac_objext "* ) ;;
20158 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20165 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20166 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20167 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20170 case " $LIBOBJS " in
20171 *" inet_ntop.$ac_objext "* ) ;;
20172 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20179 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20180 if test "x$ac_cv_func_snprintf" = xyes; then :
20181 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20184 case " $LIBOBJS " in
20185 *" snprintf.$ac_objext "* ) ;;
20186 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20193 # test if snprintf return the proper length
20194 if test "x$ac_cv_func_snprintf" = xyes; then
20195 if test c${cross_compiling} = cno; then
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20197 $as_echo_n "checking for correct snprintf return value... " >&6; }
20198 if test "$cross_compiling" = yes; then :
20199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20201 as_fn_error $? "cannot run test program while cross compiling
20202 See \`config.log' for more details" "$LINENO" 5; }
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20206 $ac_includes_default
20208 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20211 if ac_fn_c_try_run "$LINENO"; then :
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20213 $as_echo "yes" >&6; }
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20217 $as_echo "no" >&6; }
20219 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20221 case " $LIBOBJS " in
20222 *" snprintf.$ac_objext "* ) ;;
20223 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20230 conftest.$ac_objext conftest.beam conftest.$ac_ext
20235 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20236 if test "x$ac_cv_func_strlcat" = xyes; then :
20237 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20240 case " $LIBOBJS " in
20241 *" strlcat.$ac_objext "* ) ;;
20242 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20249 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20250 if test "x$ac_cv_func_strlcpy" = xyes; then :
20251 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20254 case " $LIBOBJS " in
20255 *" strlcpy.$ac_objext "* ) ;;
20256 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20263 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20264 if test "x$ac_cv_func_memmove" = xyes; then :
20265 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20268 case " $LIBOBJS " in
20269 *" memmove.$ac_objext "* ) ;;
20270 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20277 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20278 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20279 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20282 case " $LIBOBJS " in
20283 *" gmtime_r.$ac_objext "* ) ;;
20284 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20291 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20292 if test "x$ac_cv_func_isblank" = xyes; then :
20293 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20296 case " $LIBOBJS " in
20297 *" isblank.$ac_objext "* ) ;;
20298 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20305 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20306 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20307 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20310 case " $LIBOBJS " in
20311 *" explicit_bzero.$ac_objext "* ) ;;
20312 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20319 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20322 $as_echo_n "checking for reallocarray... " >&6; }
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20324 /* end confdefs.h. */
20325 $ac_includes_default
20327 #ifndef _OPENBSD_SOURCE
20328 #define _OPENBSD_SOURCE 1
20330 #include <stdlib.h>
20332 void* p = reallocarray(NULL, 10, 100);
20338 if ac_fn_c_try_link "$LINENO"; then :
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20340 $as_echo "yes" >&6; }
20342 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20348 $as_echo "no" >&6; }
20349 case " $LIBOBJS " in
20350 *" reallocarray.$ac_objext "* ) ;;
20351 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20357 rm -f core conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20360 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20366 cat >>confdefs.h <<_ACEOF
20367 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
20370 if test "$USE_NSS" = "no"; then
20371 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20372 if test "x$ac_cv_func_arc4random" = xyes; then :
20373 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20376 case " $LIBOBJS " in
20377 *" arc4random.$ac_objext "* ) ;;
20378 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20385 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20386 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20387 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20390 case " $LIBOBJS " in
20391 *" arc4random_uniform.$ac_objext "* ) ;;
20392 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20399 if test "$ac_cv_func_arc4random" = "no"; then
20400 case " $LIBOBJS " in
20401 *" arc4_lock.$ac_objext "* ) ;;
20402 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20406 for ac_func in getentropy
20408 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20409 if test "x$ac_cv_func_getentropy" = xyes; then :
20410 cat >>confdefs.h <<_ACEOF
20411 #define HAVE_GETENTROPY 1
20416 if test "$USE_WINSOCK" = 1; then
20417 case " $LIBOBJS " in
20418 *" getentropy_win.$ac_objext "* ) ;;
20419 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20426 case " $LIBOBJS " in
20427 *" getentropy_osx.$ac_objext "* ) ;;
20428 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20433 *solaris*|*sunos*|SunOS)
20434 case " $LIBOBJS " in
20435 *" getentropy_solaris.$ac_objext "* ) ;;
20436 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20440 for ac_header in sys/sha2.h
20442 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20444 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_SYS_SHA2_H 1
20451 for ac_func in SHA512_Update
20453 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20454 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20455 cat >>confdefs.h <<_ACEOF
20456 #define HAVE_SHA512_UPDATE 1
20461 case " $LIBOBJS " in
20462 *" sha512.$ac_objext "* ) ;;
20463 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20476 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20477 # this lib needed for sha2 on solaris
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20481 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20482 if ${ac_cv_search_clock_gettime+:} false; then :
20483 $as_echo_n "(cached) " >&6
20485 ac_func_search_save_LIBS=$LIBS
20486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20487 /* end confdefs.h. */
20489 /* Override any GCC internal prototype to avoid an error.
20490 Use char because int might match the return type of a GCC
20491 builtin and then its argument prototype would still apply. */
20495 char clock_gettime ();
20499 return clock_gettime ();
20504 for ac_lib in '' rt; do
20505 if test -z "$ac_lib"; then
20506 ac_res="none required"
20509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20511 if ac_fn_c_try_link "$LINENO"; then :
20512 ac_cv_search_clock_gettime=$ac_res
20514 rm -f core conftest.err conftest.$ac_objext \
20516 if ${ac_cv_search_clock_gettime+:} false; then :
20520 if ${ac_cv_search_clock_gettime+:} false; then :
20523 ac_cv_search_clock_gettime=no
20525 rm conftest.$ac_ext
20526 LIBS=$ac_func_search_save_LIBS
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20529 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20530 ac_res=$ac_cv_search_clock_gettime
20531 if test "$ac_res" != no; then :
20532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20537 *freebsd*|*FreeBSD)
20538 case " $LIBOBJS " in
20539 *" getentropy_freebsd.$ac_objext "* ) ;;
20540 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
20546 case " $LIBOBJS " in
20547 *" getentropy_linux.$ac_objext "* ) ;;
20548 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20552 for ac_func in SHA512_Update
20554 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20555 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20556 cat >>confdefs.h <<_ACEOF
20557 #define HAVE_SHA512_UPDATE 1
20563 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20565 case " $LIBOBJS " in
20566 *" sha512.$ac_objext "* ) ;;
20567 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20575 for ac_header in sys/sysctl.h
20577 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20579 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_SYS_SYSCTL_H 1
20588 for ac_func in getauxval
20590 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20591 if test "x$ac_cv_func_getauxval" = xyes; then :
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_GETAUXVAL 1
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20600 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20601 if ${ac_cv_search_clock_gettime+:} false; then :
20602 $as_echo_n "(cached) " >&6
20604 ac_func_search_save_LIBS=$LIBS
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20608 /* Override any GCC internal prototype to avoid an error.
20609 Use char because int might match the return type of a GCC
20610 builtin and then its argument prototype would still apply. */
20614 char clock_gettime ();
20618 return clock_gettime ();
20623 for ac_lib in '' rt; do
20624 if test -z "$ac_lib"; then
20625 ac_res="none required"
20628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20630 if ac_fn_c_try_link "$LINENO"; then :
20631 ac_cv_search_clock_gettime=$ac_res
20633 rm -f core conftest.err conftest.$ac_objext \
20635 if ${ac_cv_search_clock_gettime+:} false; then :
20639 if ${ac_cv_search_clock_gettime+:} false; then :
20642 ac_cv_search_clock_gettime=no
20644 rm conftest.$ac_ext
20645 LIBS=$ac_func_search_save_LIBS
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20648 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20649 ac_res=$ac_cv_search_clock_gettime
20650 if test "$ac_res" != no; then :
20651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20664 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20666 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20667 if test "x$ac_cv_func_ctime_r" = xyes; then :
20668 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20671 case " $LIBOBJS " in
20672 *" ctime_r.$ac_objext "* ) ;;
20673 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20680 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20681 if test "x$ac_cv_func_strsep" = xyes; then :
20682 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20685 case " $LIBOBJS " in
20686 *" strsep.$ac_objext "* ) ;;
20687 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20695 # Check whether --enable-allsymbols was given.
20696 if test "${enable_allsymbols+set}" = set; then :
20697 enableval=$enable_allsymbols;
20700 case "$enable_allsymbols" in
20702 COMMON_OBJ_ALL_SYMBOLS=""
20704 EXTRALINK="-L. -L.libs -lunbound"
20706 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20710 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20711 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20718 if test x_$enable_lock_checks = x_yes; then
20719 UBSYMS="-export-symbols clubsyms.def"
20720 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20721 echo lock_protect >> clubsyms.def
20722 echo lock_unprotect >> clubsyms.def
20723 echo lock_get_mem >> clubsyms.def
20724 echo checklock_start >> clubsyms.def
20725 echo checklock_stop >> clubsyms.def
20726 echo checklock_lock >> clubsyms.def
20727 echo checklock_unlock >> clubsyms.def
20728 echo checklock_init >> clubsyms.def
20729 echo checklock_thrcreate >> clubsyms.def
20730 echo checklock_thrjoin >> clubsyms.def
20733 # check for dnstap if requested
20735 # Check whether --enable-dnstap was given.
20736 if test "${enable_dnstap+set}" = set; then :
20737 enableval=$enable_dnstap; opt_dnstap=$enableval
20744 # Check whether --with-dnstap-socket-path was given.
20745 if test "${with_dnstap_socket_path+set}" = set; then :
20746 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20748 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20752 if test "x$opt_dnstap" != "xno"; then
20753 # Extract the first word of "protoc-c", so it can be a program name with args.
20754 set dummy protoc-c; ac_word=$2
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20756 $as_echo_n "checking for $ac_word... " >&6; }
20757 if ${ac_cv_path_PROTOC_C+:} false; then :
20758 $as_echo_n "(cached) " >&6
20762 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20766 for as_dir in $PATH
20769 test -z "$as_dir" && as_dir=.
20770 for ac_exec_ext in '' $ac_executable_extensions; do
20771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20772 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20783 PROTOC_C=$ac_cv_path_PROTOC_C
20784 if test -n "$PROTOC_C"; then
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20786 $as_echo "$PROTOC_C" >&6; }
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20789 $as_echo "no" >&6; }
20793 if test -z "$PROTOC_C"; then
20794 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20797 # Check whether --with-protobuf-c was given.
20798 if test "${with_protobuf_c+set}" = set; then :
20799 withval=$with_protobuf_c;
20800 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20801 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20802 CFLAGS="$CFLAGS -I$withval/include/google"
20804 CFLAGS="$CFLAGS -I$withval/include"
20806 LDFLAGS="$LDFLAGS -L$withval/lib"
20810 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20811 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20812 CFLAGS="$CFLAGS -I/usr/include/google"
20814 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20815 CFLAGS="$CFLAGS -I/usr/local/include/google"
20816 LDFLAGS="$LDFLAGS -L/usr/local/lib"
20823 # Check whether --with-libfstrm was given.
20824 if test "${with_libfstrm+set}" = set; then :
20825 withval=$with_libfstrm;
20826 CFLAGS="$CFLAGS -I$withval/include"
20827 LDFLAGS="$LDFLAGS -L$withval/lib"
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20832 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20833 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20834 $as_echo_n "(cached) " >&6
20836 ac_func_search_save_LIBS=$LIBS
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20840 /* Override any GCC internal prototype to avoid an error.
20841 Use char because int might match the return type of a GCC
20842 builtin and then its argument prototype would still apply. */
20846 char fstrm_iothr_init ();
20850 return fstrm_iothr_init ();
20855 for ac_lib in '' fstrm; do
20856 if test -z "$ac_lib"; then
20857 ac_res="none required"
20860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20862 if ac_fn_c_try_link "$LINENO"; then :
20863 ac_cv_search_fstrm_iothr_init=$ac_res
20865 rm -f core conftest.err conftest.$ac_objext \
20867 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20871 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20874 ac_cv_search_fstrm_iothr_init=no
20876 rm conftest.$ac_ext
20877 LIBS=$ac_func_search_save_LIBS
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20880 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20881 ac_res=$ac_cv_search_fstrm_iothr_init
20882 if test "$ac_res" != no; then :
20883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20886 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20890 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20891 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20892 $as_echo_n "(cached) " >&6
20894 ac_func_search_save_LIBS=$LIBS
20895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20896 /* end confdefs.h. */
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20904 char protobuf_c_message_pack ();
20908 return protobuf_c_message_pack ();
20913 for ac_lib in '' protobuf-c; do
20914 if test -z "$ac_lib"; then
20915 ac_res="none required"
20918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20920 if ac_fn_c_try_link "$LINENO"; then :
20921 ac_cv_search_protobuf_c_message_pack=$ac_res
20923 rm -f core conftest.err conftest.$ac_objext \
20925 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20929 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20932 ac_cv_search_protobuf_c_message_pack=no
20934 rm conftest.$ac_ext
20935 LIBS=$ac_func_search_save_LIBS
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20938 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20939 ac_res=$ac_cv_search_protobuf_c_message_pack
20940 if test "$ac_res" != no; then :
20941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20944 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20949 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20955 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20958 cat >>confdefs.h <<_ACEOF
20959 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20963 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20965 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20977 # check for dnscrypt if requested
20979 # Check whether --enable-dnscrypt was given.
20980 if test "${enable_dnscrypt+set}" = set; then :
20981 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20987 if test "x$opt_dnscrypt" != "xno"; then
20989 # Check whether --with-libsodium was given.
20990 if test "${with_libsodium+set}" = set; then :
20991 withval=$with_libsodium;
20992 CFLAGS="$CFLAGS -I$withval/include"
20993 LDFLAGS="$LDFLAGS -L$withval/lib"
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20998 $as_echo_n "checking for library containing sodium_init... " >&6; }
20999 if ${ac_cv_search_sodium_init+:} false; then :
21000 $as_echo_n "(cached) " >&6
21002 ac_func_search_save_LIBS=$LIBS
21003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21006 /* Override any GCC internal prototype to avoid an error.
21007 Use char because int might match the return type of a GCC
21008 builtin and then its argument prototype would still apply. */
21012 char sodium_init ();
21016 return sodium_init ();
21021 for ac_lib in '' sodium; do
21022 if test -z "$ac_lib"; then
21023 ac_res="none required"
21026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21028 if ac_fn_c_try_link "$LINENO"; then :
21029 ac_cv_search_sodium_init=$ac_res
21031 rm -f core conftest.err conftest.$ac_objext \
21033 if ${ac_cv_search_sodium_init+:} false; then :
21037 if ${ac_cv_search_sodium_init+:} false; then :
21040 ac_cv_search_sodium_init=no
21042 rm conftest.$ac_ext
21043 LIBS=$ac_func_search_save_LIBS
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21046 $as_echo "$ac_cv_search_sodium_init" >&6; }
21047 ac_res=$ac_cv_search_sodium_init
21048 if test "$ac_res" != no; then :
21049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21052 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21056 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21057 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21058 $as_echo_n "(cached) " >&6
21060 ac_func_search_save_LIBS=$LIBS
21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21062 /* end confdefs.h. */
21064 /* Override any GCC internal prototype to avoid an error.
21065 Use char because int might match the return type of a GCC
21066 builtin and then its argument prototype would still apply. */
21070 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21074 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21079 for ac_lib in '' sodium; do
21080 if test -z "$ac_lib"; then
21081 ac_res="none required"
21084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21086 if ac_fn_c_try_link "$LINENO"; then :
21087 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21089 rm -f core conftest.err conftest.$ac_objext \
21091 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21095 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21098 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21100 rm conftest.$ac_ext
21101 LIBS=$ac_func_search_save_LIBS
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21104 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21105 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21106 if test "$ac_res" != no; then :
21107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21109 ENABLE_DNSCRYPT_XCHACHA20=1
21112 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21117 ENABLE_DNSCRYPT_XCHACHA20=0
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21123 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21124 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21125 $as_echo_n "(cached) " >&6
21127 ac_func_search_save_LIBS=$LIBS
21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21129 /* end confdefs.h. */
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21137 char sodium_set_misuse_handler ();
21141 return sodium_set_misuse_handler ();
21146 for ac_lib in '' sodium; do
21147 if test -z "$ac_lib"; then
21148 ac_res="none required"
21151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21153 if ac_fn_c_try_link "$LINENO"; then :
21154 ac_cv_search_sodium_set_misuse_handler=$ac_res
21156 rm -f core conftest.err conftest.$ac_objext \
21158 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21162 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21165 ac_cv_search_sodium_set_misuse_handler=no
21167 rm conftest.$ac_ext
21168 LIBS=$ac_func_search_save_LIBS
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21171 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21172 ac_res=$ac_cv_search_sodium_set_misuse_handler
21173 if test "$ac_res" != no; then :
21174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21177 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21184 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21189 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21191 DNSCRYPT_OBJ="dnscrypt.lo"
21195 ENABLE_DNSCRYPT_XCHACHA20=0
21205 # check for cachedb if requested
21206 # Check whether --enable-cachedb was given.
21207 if test "${enable_cachedb+set}" = set; then :
21208 enableval=$enable_cachedb;
21211 # turn on cachedb when hiredis support is enabled.
21212 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21213 case "$enable_cachedb" in
21216 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21224 # check for ipsecmod if requested
21225 # Check whether --enable-ipsecmod was given.
21226 if test "${enable_ipsecmod+set}" = set; then :
21227 enableval=$enable_ipsecmod;
21230 case "$enable_ipsecmod" in
21233 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21235 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21237 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21245 # check for ipset if requested
21246 # Check whether --enable-ipset was given.
21247 if test "${enable_ipset+set}" = set; then :
21248 enableval=$enable_ipset;
21251 case "$enable_ipset" in
21254 $as_echo "#define USE_IPSET 1" >>confdefs.h
21256 IPSET_SRC="ipset/ipset.c"
21258 IPSET_OBJ="ipset.lo"
21263 # Check whether --with-libmnl was given.
21264 if test "${with_libmnl+set}" = set; then :
21265 withval=$with_libmnl;
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21272 $as_echo_n "checking for libmnl... " >&6; }
21273 if test x_$withval = x_ -o x_$withval = x_yes; then
21274 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21276 for dir in $withval ; do
21277 if test -f "$dir/include/libmnl/libmnl.h"; then
21279 if test "$dir" != "/usr"; then
21280 CPPFLAGS="$CPPFLAGS -I$dir/include"
21281 LDFLAGS="$LDFLAGS -L$dir/lib"
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21284 $as_echo "found in $dir" >&6; }
21289 if test x_$found_libmnl != x_yes; then
21290 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21299 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21300 # on openBSD, the implicit rule make $< work.
21301 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21303 cat >conftest.make <<EOF
21306 conftest.lo foo.lo bla.lo:
21307 if test -f "\$<"; then touch \$@; fi
21311 if test -f "\$<"; then touch \$@; fi
21313 conftest.lo: conftest.dir/conftest.c
21316 touch conftest.dir/conftest.c
21317 rm -f conftest.lo conftest.c
21318 ${MAKE:-make} -f conftest.make >/dev/null
21319 rm -f conftest.make conftest.c conftest.dir/conftest.c
21320 rm -rf conftest.dir
21321 if test ! -f conftest.lo; then
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21323 $as_echo "no" >&6; }
21324 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21325 SOURCEFILE='`cat .source`'
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21328 $as_echo "yes" >&6; }
21329 SOURCEDETERMINE=':'
21336 # see if we want to build the library or everything
21337 ALLTARGET="alltargets"
21338 INSTALLTARGET="install-all"
21340 # Check whether --with-libunbound-only was given.
21341 if test "${with_libunbound_only+set}" = set; then :
21342 withval=$with_libunbound_only;
21343 if test "$withval" = "yes"; then
21345 INSTALLTARGET="install-lib"
21350 if test $ALLTARGET = "alltargets"; then
21351 if test $USE_NSS = "yes"; then
21352 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21354 if test $USE_NETTLE = "yes"; then
21355 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21364 $as_echo "$as_me: Stripping extension flags..." >&6;}
21366 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21367 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21369 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21374 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21375 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21377 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21382 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21383 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21385 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21390 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21391 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21393 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21398 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21399 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21401 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21406 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21407 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21409 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21414 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21415 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21417 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21422 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21423 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21425 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21430 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21431 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21433 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21438 if test -n "$LATE_LDFLAGS"; then
21439 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21441 # remove start spaces
21442 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21443 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21446 cat >>confdefs.h <<_ACEOF
21447 #define MAXSYSLOGMSGLEN 10240
21455 date=`date +'%b %e, %Y'`
21458 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"
21460 ac_config_headers="$ac_config_headers config.h"
21462 cat >confcache <<\_ACEOF
21463 # This file is a shell script that caches the results of configure
21464 # tests run on this system so they can be shared between configure
21465 # scripts and configure runs, see configure's option --config-cache.
21466 # It is not useful on other systems. If it contains results you don't
21467 # want to keep, you may remove or edit it.
21469 # config.status only pays attention to the cache file if you give it
21470 # the --recheck option to rerun configure.
21472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21474 # following values.
21478 # The following way of writing the cache mishandles newlines in values,
21479 # but we know of no workaround that is simple, portable, and efficient.
21480 # So, we kill variables containing newlines.
21481 # Ultrix sh set writes to stderr and can't be redirected directly,
21482 # and sets the high bit in the cache file unless we assign to the vars.
21484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21485 eval ac_val=\$$ac_var
21489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21493 _ | IFS | as_nl) ;; #(
21494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21495 *) { eval $ac_var=; unset $ac_var;} ;;
21501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21502 *${as_nl}ac_space=\ *)
21503 # `set' does not quote correctly, so add quotes: double-quote
21504 # substitution turns \\\\ into \\, and sed turns \\ into \.
21507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21510 # `set' quotes correctly as required by POSIX, so do not add quotes.
21511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21525 if test -w "$cache_file"; then
21526 if test "x$cache_file" != "x/dev/null"; then
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21528 $as_echo "$as_me: updating cache $cache_file" >&6;}
21529 if test ! -f "$cache_file" || test -h "$cache_file"; then
21530 cat confcache >"$cache_file"
21532 case $cache_file in #(
21534 mv -f confcache "$cache_file"$$ &&
21535 mv -f "$cache_file"$$ "$cache_file" ;; #(
21537 mv -f confcache "$cache_file" ;;
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21549 # Let make expand exec_prefix.
21550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21552 DEFS=-DHAVE_CONFIG_H
21557 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21558 # 1. Remove the extension, and $U if already installed.
21559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21562 # will be set to the directory where LIBOBJS objects are built.
21563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21566 LIBOBJS=$ac_libobjs
21568 LTLIBOBJS=$ac_ltlibobjs
21571 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21572 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21576 : "${CONFIG_STATUS=./config.status}"
21578 ac_clean_files_save=$ac_clean_files
21579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21581 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21583 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21585 # Generated by $as_me.
21586 # Run this file to recreate the current configuration.
21587 # Compiler output produced by configure, useful for debugging
21588 # configure, is in config.log if it exists.
21591 ac_cs_recheck=false
21594 SHELL=\${CONFIG_SHELL-$SHELL}
21597 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21598 ## -------------------- ##
21599 ## M4sh Initialization. ##
21600 ## -------------------- ##
21602 # Be more Bourne compatible
21603 DUALCASE=1; export DUALCASE # for MKS sh
21604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21608 # is contrary to our usage. Disable this feature.
21609 alias -g '${1+"$@"}'='"$@"'
21610 setopt NO_GLOB_SUBST
21612 case `(set -o) 2>/dev/null` in #(
21624 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21625 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21628 # Prefer a ksh shell builtin over an external printf program on Solaris,
21629 # but without wasting forks for bash or zsh.
21630 if test -z "$BASH_VERSION$ZSH_VERSION" \
21631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21632 as_echo='print -r --'
21633 as_echo_n='print -rn --'
21634 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21635 as_echo='printf %s\n'
21636 as_echo_n='printf %s'
21638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21640 as_echo_n='/usr/ucb/echo -n'
21642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21643 as_echo_n_body='eval
21647 expr "X$arg" : "X\\(.*\\)$as_nl";
21648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21652 export as_echo_n_body
21653 as_echo_n='sh -c $as_echo_n_body as_echo'
21655 export as_echo_body
21656 as_echo='sh -c $as_echo_body as_echo'
21659 # The user is always right.
21660 if test "${PATH_SEPARATOR+set}" != set; then
21662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21670 # We need space, tab and new line, in precisely that order. Quoting is
21671 # there to prevent editors from complaining about space-tab.
21672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21673 # splitting by setting IFS to empty value.)
21676 # Find who we are. Look in the path if we contain no directory separator.
21679 *[\\/]* ) as_myself=$0 ;;
21680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21681 for as_dir in $PATH
21684 test -z "$as_dir" && as_dir=.
21685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21691 # We did not find ourselves, most probably we were run as `sh COMMAND'
21692 # in which case we are not to be found in the path.
21693 if test "x$as_myself" = x; then
21696 if test ! -f "$as_myself"; then
21697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21701 # Unset variables that we do not need and which cause bugs (e.g. in
21702 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21703 # suppresses any "Segmentation fault" message there. '((' could
21704 # trigger a bug in pdksh 5.2.14.
21705 for as_var in BASH_ENV ENV MAIL MAILPATH
21706 do eval test x\${$as_var+set} = xset \
21707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21720 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21723 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21724 # ----------------------------------------
21725 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21726 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21727 # script with STATUS, using 1 if that was 0.
21730 as_status=$1; test $as_status -eq 0 && as_status=1
21732 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21735 $as_echo "$as_me: error: $2" >&2
21736 as_fn_exit $as_status
21740 # as_fn_set_status STATUS
21741 # -----------------------
21742 # Set $? to STATUS, without forking.
21743 as_fn_set_status ()
21746 } # as_fn_set_status
21748 # as_fn_exit STATUS
21749 # -----------------
21750 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21754 as_fn_set_status $1
21760 # Portably unset VAR.
21763 { eval $1=; unset $1;}
21765 as_unset=as_fn_unset
21766 # as_fn_append VAR VALUE
21767 # ----------------------
21768 # Append the text in VALUE to the end of the definition contained in VAR. Take
21769 # advantage of any shell optimizations that allow amortized linear growth over
21770 # repeated appends, instead of the typical quadratic growth present in naive
21772 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21773 eval 'as_fn_append ()
21784 # as_fn_arith ARG...
21785 # ------------------
21786 # Perform arithmetic evaluation on the ARGs, and store the result in the
21787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21788 # must be portable across $(()) and expr.
21789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21790 eval 'as_fn_arith ()
21797 as_val=`expr "$@" || test $? -eq 1`
21802 if expr a : '\(a\)' >/dev/null 2>&1 &&
21803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21809 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21810 as_basename=basename
21815 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21821 as_me=`$as_basename -- "$0" ||
21822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21823 X"$0" : 'X\(//\)$' \| \
21824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21826 sed '/^.*\/\([^/][^/]*\)\/*$/{
21840 # Avoid depending upon Character Ranges.
21841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21844 as_cr_digits='0123456789'
21845 as_cr_alnum=$as_cr_Letters$as_cr_digits
21847 ECHO_C= ECHO_N= ECHO_T=
21848 case `echo -n x` in #(((((
21850 case `echo 'xy\c'` in
21851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21860 rm -f conf$$ conf$$.exe conf$$.file
21861 if test -d conf$$.dir; then
21862 rm -f conf$$.dir/conf$$.file
21865 mkdir conf$$.dir 2>/dev/null
21867 if (echo >conf$$.file) 2>/dev/null; then
21868 if ln -s conf$$.file conf$$ 2>/dev/null; then
21870 # ... but there are two gotchas:
21871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21873 # In both cases, we have to default to `cp -pR'.
21874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21876 elif ln conf$$.file conf$$ 2>/dev/null; then
21884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21885 rmdir conf$$.dir 2>/dev/null
21890 # Create "$as_dir" as a directory, including parents if necessary.
21895 -*) as_dir=./$as_dir;;
21897 test -d "$as_dir" || eval $as_mkdir_p || {
21901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21902 *) as_qdir=$as_dir;;
21904 as_dirs="'$as_qdir' $as_dirs"
21905 as_dir=`$as_dirname -- "$as_dir" ||
21906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21907 X"$as_dir" : 'X\(//\)[^/]' \| \
21908 X"$as_dir" : 'X\(//\)$' \| \
21909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21910 $as_echo X"$as_dir" |
21911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21915 /^X\(\/\/\)[^/].*/{
21928 test -d "$as_dir" && break
21930 test -z "$as_dirs" || eval "mkdir $as_dirs"
21931 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21935 if mkdir -p . 2>/dev/null; then
21936 as_mkdir_p='mkdir -p "$as_dir"'
21938 test -d ./-p && rmdir ./-p
21943 # as_fn_executable_p FILE
21944 # -----------------------
21945 # Test if FILE is an executable regular file.
21946 as_fn_executable_p ()
21948 test -f "$1" && test -x "$1"
21949 } # as_fn_executable_p
21950 as_test_x='test -x'
21951 as_executable_p=as_fn_executable_p
21953 # Sed expression to map a string onto a valid CPP name.
21954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21956 # Sed expression to map a string onto a valid variable name.
21957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21961 ## ----------------------------------- ##
21962 ## Main body of $CONFIG_STATUS script. ##
21963 ## ----------------------------------- ##
21965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21968 # Save the log message, to keep $0 and so on meaningful, and to
21969 # report actual input values of CONFIG_FILES etc. instead of their
21970 # values after options handling.
21972 This file was extended by unbound $as_me 1.9.6, which was
21973 generated by GNU Autoconf 2.69. Invocation command line was
21975 CONFIG_FILES = $CONFIG_FILES
21976 CONFIG_HEADERS = $CONFIG_HEADERS
21977 CONFIG_LINKS = $CONFIG_LINKS
21978 CONFIG_COMMANDS = $CONFIG_COMMANDS
21981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21986 case $ac_config_files in *"
21987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21990 case $ac_config_headers in *"
21991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21996 # Files that config.status was made for.
21997 config_files="$ac_config_files"
21998 config_headers="$ac_config_headers"
21999 config_commands="$ac_config_commands"
22003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22005 \`$as_me' instantiates files and other configuration actions
22006 from templates according to the current configuration. Unless the files
22007 and actions are specified as TAGs, all are instantiated by default.
22009 Usage: $0 [OPTION]... [TAG]...
22011 -h, --help print this help, then exit
22012 -V, --version print version number and configuration settings, then exit
22013 --config print configuration, then exit
22014 -q, --quiet, --silent
22015 do not print progress messages
22016 -d, --debug don't remove temporary files
22017 --recheck update $as_me by reconfiguring in the same conditions
22018 --file=FILE[:TEMPLATE]
22019 instantiate the configuration file FILE
22020 --header=FILE[:TEMPLATE]
22021 instantiate the configuration header FILE
22023 Configuration files:
22026 Configuration headers:
22029 Configuration commands:
22032 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22036 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22038 unbound config.status 1.9.6
22039 configured by $0, generated by GNU Autoconf 2.69,
22040 with options \\"\$ac_cs_config\\"
22042 Copyright (C) 2012 Free Software Foundation, Inc.
22043 This config.status script is free software; the Free Software Foundation
22044 gives unlimited permission to copy, distribute and modify it."
22049 test -n "\$AWK" || AWK=awk
22052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22053 # The default lists apply if the user does not specify any file.
22059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22064 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22076 # Handling of the options.
22077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22079 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22080 $as_echo "$ac_cs_version"; exit ;;
22081 --config | --confi | --conf | --con | --co | --c )
22082 $as_echo "$ac_cs_config"; exit ;;
22083 --debug | --debu | --deb | --de | --d | -d )
22085 --file | --fil | --fi | --f )
22088 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22089 '') as_fn_error $? "missing file argument" ;;
22091 as_fn_append CONFIG_FILES " '$ac_optarg'"
22092 ac_need_defaults=false;;
22093 --header | --heade | --head | --hea )
22096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22098 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22099 ac_need_defaults=false;;
22101 # Conflict between --help and --header
22102 as_fn_error $? "ambiguous option: \`$1'
22103 Try \`$0 --help' for more information.";;
22104 --help | --hel | -h )
22105 $as_echo "$ac_cs_usage"; exit ;;
22106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22110 # This is an error.
22111 -*) as_fn_error $? "unrecognized option: \`$1'
22112 Try \`$0 --help' for more information." ;;
22114 *) as_fn_append ac_config_targets " $1"
22115 ac_need_defaults=false ;;
22121 ac_configure_extra_args=
22123 if $ac_cs_silent; then
22125 ac_configure_extra_args="$ac_configure_extra_args --silent"
22129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22130 if \$ac_cs_recheck; then
22131 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22134 CONFIG_SHELL='$SHELL'
22135 export CONFIG_SHELL
22140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22145 ## Running $as_me. ##
22151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22157 # The HP-UX ksh and POSIX shell print the target directory to stdout
22158 # if CDPATH is set.
22159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22161 sed_quote_subst='$sed_quote_subst'
22162 double_quote_subst='$double_quote_subst'
22163 delay_variable_subst='$delay_variable_subst'
22164 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22165 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22166 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22167 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22168 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22169 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22170 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22171 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22172 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22173 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22174 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22175 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22176 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22177 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22178 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22179 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22180 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22181 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22182 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22183 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22184 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22185 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22186 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22187 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22188 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22189 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22190 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22191 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22192 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22193 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22194 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22195 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22196 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22197 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22198 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22199 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22200 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22201 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22202 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22203 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22204 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22205 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22206 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22207 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22208 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22209 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22210 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22211 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22212 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22213 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22214 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22215 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22216 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22217 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22218 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22219 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22220 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22221 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22222 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"`'
22223 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22224 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22225 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22226 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22227 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22228 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22229 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22230 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22231 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22232 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22233 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22234 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22235 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22236 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22237 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22238 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22239 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22240 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22241 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22242 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22243 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22244 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22245 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22246 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22247 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22248 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22249 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22250 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22251 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22252 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22253 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22254 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22255 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22256 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22257 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22258 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22259 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22260 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22261 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22262 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22263 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22264 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22265 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22266 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22267 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22268 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22269 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22270 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22271 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22272 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22273 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22274 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22275 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22276 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22277 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22278 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22279 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22280 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22281 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22282 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22283 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22284 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22285 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22286 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22287 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22288 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22289 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22290 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22291 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22292 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22293 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22294 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22295 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22296 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22297 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22298 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22301 LTCFLAGS='$LTCFLAGS'
22302 compiler='$compiler_DEFAULT'
22304 # A function that is used when there is no print builtin or printf.
22305 func_fallback_echo ()
22307 eval 'cat <<_LTECHO_EOF
22312 # Quote evaled strings.
22327 deplibs_check_method \
22332 sharedlib_from_linklib_cmd \
22335 archiver_list_spec \
22341 lt_cv_sys_global_symbol_pipe \
22342 lt_cv_sys_global_symbol_to_cdecl \
22343 lt_cv_sys_global_symbol_to_import \
22344 lt_cv_sys_global_symbol_to_c_name_address \
22345 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22346 lt_cv_nm_interface \
22347 nm_file_list_spec \
22348 lt_cv_truncate_bin \
22349 lt_prog_compiler_no_builtin_flag \
22350 lt_prog_compiler_pic \
22351 lt_prog_compiler_wl \
22352 lt_prog_compiler_static \
22353 lt_cv_prog_compiler_c_o \
22362 export_dynamic_flag_spec \
22363 whole_archive_flag_spec \
22364 compiler_needs_object \
22366 allow_undefined_flag \
22367 no_undefined_flag \
22368 hardcode_libdir_flag_spec \
22369 hardcode_libdir_separator \
22373 variables_saved_for_relink \
22375 library_names_spec \
22377 install_override_mode \
22381 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22382 *[\\\\\\\`\\"\\\$]*)
22383 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22386 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22391 # Double-quote double-evaled strings.
22392 for var in reload_cmds \
22393 old_postinstall_cmds \
22394 old_postuninstall_cmds \
22396 extract_expsyms_cmds \
22397 old_archive_from_new_cmds \
22398 old_archive_from_expsyms_cmds \
22400 archive_expsym_cmds \
22402 module_expsym_cmds \
22403 export_symbols_cmds \
22407 postuninstall_cmds \
22409 sys_lib_search_path_spec \
22410 configure_time_dlsearch_path \
22411 configure_time_lt_sys_library_path; do
22412 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22413 *[\\\\\\\`\\"\\\$]*)
22414 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22417 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22422 ac_aux_dir='$ac_aux_dir'
22424 # See if we are running on zsh, and set the options that allow our
22425 # commands through without removal of \ escapes INIT.
22426 if test -n "\${ZSH_VERSION+set}"; then
22427 setopt NO_GLOB_SUBST
22441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22443 # Handling of arguments.
22444 for ac_config_target in $ac_config_targets
22446 case $ac_config_target in
22447 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22448 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22450 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22451 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22452 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22453 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22454 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22455 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22456 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22457 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22458 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22459 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22460 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22461 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22462 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22463 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22464 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22471 # If the user did not use the arguments to specify the items to instantiate,
22472 # then the envvar interface is used. Set only those that are not.
22473 # We use the long form for the default assignment because of an extremely
22474 # bizarre bug on SunOS 4.1.3.
22475 if $ac_need_defaults; then
22476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22481 # Have a temporary directory for convenience. Make it in the build tree
22482 # simply because there is no reason against having it here, and in addition,
22483 # creating and moving files from /tmp can sometimes cause problems.
22484 # Hook for its removal unless debugging.
22485 # Note that there is a small window in which the directory will not be cleaned:
22486 # after its creation but before its name has been assigned to `$tmp'.
22490 trap 'exit_status=$?
22491 : "${ac_tmp:=$tmp}"
22492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22494 trap 'as_fn_exit 1' 1 2 13 15
22496 # Create a (secure) tmp directory for tmp files.
22499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22503 tmp=./conf$$-$RANDOM
22504 (umask 077 && mkdir "$tmp")
22505 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22508 # Set up the scripts for CONFIG_FILES section.
22509 # No need to generate them if there are no CONFIG_FILES.
22510 # This happens for instance with `./config.status config.h'.
22511 if test -n "$CONFIG_FILES"; then
22514 ac_cr=`echo X | tr X '\015'`
22515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22516 # But we know of no other shell where ac_cr would be empty at this
22517 # point, so we can use a bashism as a fallback.
22518 if test "x$ac_cr" = x; then
22519 eval ac_cr=\$\'\\r\'
22521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22525 ac_cs_awk_cr=$ac_cr
22528 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22533 echo "cat >conf$$subs.awk <<_ACEOF" &&
22534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22536 } >conf$$subs.sh ||
22537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22540 for ac_last_try in false false false false false :; do
22541 . ./conf$$subs.sh ||
22542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22545 if test $ac_delim_n = $ac_delim_num; then
22547 elif $ac_last_try; then
22548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22553 rm -f conf$$subs.sh
22555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22556 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22560 s/^/S["/; s/!.*/"]=/
22570 s/\(.\{148\}\)..*/\1/
22572 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22584 s/\(.\{148\}\)..*/\1/
22586 s/["\\]/\\&/g; s/^/"/; s/$/"/
22590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22595 ' <conf$$subs.awk | sed '
22600 ' >>$CONFIG_STATUS || ac_write_fail=1
22601 rm -f conf$$subs.awk
22602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22604 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22605 for (key in S) S_is_set[key] = 1
22611 nfields = split(line, field, "@")
22613 len = length(field[1])
22614 for (i = 2; i < nfields; i++) {
22616 keylen = length(key)
22617 if (S_is_set[key]) {
22619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22620 len += length(value) + length(field[++i])
22631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22632 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22636 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22640 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22641 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22642 # trailing colons and then remove the whole line if VPATH becomes empty
22643 # (actually we leave an empty line to preserve line numbers).
22644 if test "x$srcdir" = x.; then
22645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22664 fi # test -n "$CONFIG_FILES"
22666 # Set up the scripts for CONFIG_HEADERS section.
22667 # No need to generate them if there are no CONFIG_HEADERS.
22668 # This happens for instance with `./config.status Makefile'.
22669 if test -n "$CONFIG_HEADERS"; then
22670 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22674 # Transform confdefs.h into an awk script `defines.awk', embedded as
22675 # here-document in config.status, that substitutes the proper values into
22676 # config.h.in to produce config.h.
22678 # Create a delimiter string that does not exist in confdefs.h, to ease
22679 # handling of long lines.
22681 for ac_last_try in false false :; do
22682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22683 if test -z "$ac_tt"; then
22685 elif $ac_last_try; then
22686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22692 # For the awk script, D is an array of macro values keyed by name,
22693 # likewise P contains macro parameters if any. Preserve backslash
22694 # newline sequences.
22696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22698 s/.\{148\}/&'"$ac_delim"'/g
22701 s/^[ ]*#[ ]*define[ ][ ]*/ /
22708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22715 D["\1"]=" \3\\\\\\n"\\/p
22717 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22722 s/.\{148\}/&'"$ac_delim"'/g
22727 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22730 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22732 ' <confdefs.h | sed '
22733 s/'"$ac_delim"'/"\\\
22734 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22737 for (key in D) D_is_set[key] = 1
22740 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22742 split(line, arg, " ")
22743 if (arg[1] == "#") {
22747 defundef = substr(arg[1], 2)
22750 split(mac1, mac2, "(") #)
22752 prefix = substr(line, 1, index(line, defundef) - 1)
22753 if (D_is_set[macro]) {
22754 # Preserve the white space surrounding the "#".
22755 print prefix "define", macro P[macro] D[macro]
22758 # Replace #undef with comments. This is necessary, for example,
22759 # in the case of _POSIX_SOURCE, which is predefined and required
22760 # on some systems where configure will not decide to define it.
22761 if (defundef == "undef") {
22762 print "/*", prefix defundef, macro, "*/"
22770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22772 fi # test -n "$CONFIG_HEADERS"
22775 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22780 :[FHLC]) ac_mode=$ac_tag; continue;;
22782 case $ac_mode$ac_tag in
22784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22785 :[FH]-) ac_tag=-:-;;
22786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22803 -) ac_f="$ac_tmp/stdin";;
22804 *) # Look for the file first in the build tree, then in the source tree
22805 # (if the path is not absolute). The absolute path cannot be DOS-style,
22806 # because $ac_f cannot contain `:'.
22810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22815 as_fn_append ac_file_inputs " '$ac_f'"
22818 # Let's still pretend it is `configure' which instantiates (i.e., don't
22819 # use $as_me), people would be surprised to read:
22820 # /* config.h. Generated by config.status. */
22821 configure_input='Generated from '`
22822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22824 if test x"$ac_file" != x-; then
22825 configure_input="$ac_file. $configure_input"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22827 $as_echo "$as_me: creating $ac_file" >&6;}
22829 # Neutralize special characters interpreted by sed in replacement strings.
22830 case $configure_input in #(
22831 *\&* | *\|* | *\\* )
22832 ac_sed_conf_input=`$as_echo "$configure_input" |
22833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22834 *) ac_sed_conf_input=$configure_input;;
22838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22844 ac_dir=`$as_dirname -- "$ac_file" ||
22845 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22846 X"$ac_file" : 'X\(//\)[^/]' \| \
22847 X"$ac_file" : 'X\(//\)$' \| \
22848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22849 $as_echo X"$ac_file" |
22850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22854 /^X\(\/\/\)[^/].*/{
22867 as_dir="$ac_dir"; as_fn_mkdir_p
22871 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22874 # A ".." for each directory in $ac_dir_suffix.
22875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22876 case $ac_top_builddir_sub in
22877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22881 ac_abs_top_builddir=$ac_pwd
22882 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22883 # for backward compatibility:
22884 ac_top_builddir=$ac_top_build_prefix
22887 .) # We are building in place.
22889 ac_top_srcdir=$ac_top_builddir_sub
22890 ac_abs_top_srcdir=$ac_pwd ;;
22891 [\\/]* | ?:[\\/]* ) # Absolute name.
22892 ac_srcdir=$srcdir$ac_dir_suffix;
22893 ac_top_srcdir=$srcdir
22894 ac_abs_top_srcdir=$srcdir ;;
22895 *) # Relative name.
22896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22897 ac_top_srcdir=$ac_top_build_prefix$srcdir
22898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22900 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22912 # If the template does not know about datarootdir, expand it.
22913 # FIXME: This hack should be removed a few years after 2.60.
22914 ac_datarootdir_hack=; ac_datarootdir_seen=
22925 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22926 *datarootdir*) ac_datarootdir_seen=yes;;
22927 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22929 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22932 ac_datarootdir_hack='
22933 s&@datadir@&$datadir&g
22934 s&@docdir@&$docdir&g
22935 s&@infodir@&$infodir&g
22936 s&@localedir@&$localedir&g
22937 s&@mandir@&$mandir&g
22938 s&\\\${datarootdir}&$datarootdir&g' ;;
22942 # Neutralize VPATH when `$srcdir' = `.'.
22943 # Shell code in configure.ac might set extrasub.
22944 # FIXME: do we really want to maintain this feature?
22945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22946 ac_sed_extra="$ac_vpsub
22949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22952 s|@configure_input@|$ac_sed_conf_input|;t t
22953 s&@top_builddir@&$ac_top_builddir_sub&;t t
22954 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22955 s&@srcdir@&$ac_srcdir&;t t
22956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22957 s&@top_srcdir@&$ac_top_srcdir&;t t
22958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22959 s&@builddir@&$ac_builddir&;t t
22960 s&@abs_builddir@&$ac_abs_builddir&;t t
22961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22962 $ac_datarootdir_hack
22964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22965 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22968 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22969 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22970 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22972 which seems to be undefined. Please make sure it is defined" >&5
22973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22974 which seems to be undefined. Please make sure it is defined" >&2;}
22976 rm -f "$ac_tmp/stdin"
22978 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22979 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22987 if test x"$ac_file" != x-; then
22989 $as_echo "/* $configure_input */" \
22990 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22991 } >"$ac_tmp/config.h" \
22992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22993 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22998 mv "$ac_tmp/config.h" "$ac_file" \
22999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23002 $as_echo "/* $configure_input */" \
23003 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23004 || as_fn_error $? "could not create -" "$LINENO" 5
23008 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23009 $as_echo "$as_me: executing $ac_file commands" >&6;}
23014 case $ac_file$ac_mode in
23017 # See if we are running on zsh, and set the options that allow our
23018 # commands through without removal of \ escapes.
23019 if test -n "${ZSH_VERSION+set}"; then
23020 setopt NO_GLOB_SUBST
23024 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23027 cat <<_LT_EOF >> "$cfgfile"
23029 # Generated automatically by $as_me ($PACKAGE) $VERSION
23030 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23032 # Provide generalized library-building support services.
23033 # Written by Gordon Matzigkeit, 1996
23035 # Copyright (C) 2014 Free Software Foundation, Inc.
23036 # This is free software; see the source for copying conditions. There is NO
23037 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23039 # GNU Libtool is free software; you can redistribute it and/or modify
23040 # it under the terms of the GNU General Public License as published by
23041 # the Free Software Foundation; either version 2 of of the License, or
23042 # (at your option) any later version.
23044 # As a special exception to the GNU General Public License, if you
23045 # distribute this file as part of a program or library that is built
23046 # using GNU Libtool, you may include this file under the same
23047 # distribution terms that you use for the rest of that program.
23049 # GNU Libtool is distributed in the hope that it will be useful, but
23050 # WITHOUT ANY WARRANTY; without even the implied warranty of
23051 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23052 # GNU General Public License for more details.
23054 # You should have received a copy of the GNU General Public License
23055 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23058 # The names of the tagged configurations supported by this script.
23061 # Configured defaults for sys_lib_dlsearch_path munging.
23062 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23064 # ### BEGIN LIBTOOL CONFIG
23066 # Which release of libtool.m4 was used?
23067 macro_version=$macro_version
23068 macro_revision=$macro_revision
23070 # Whether or not to build shared libraries.
23071 build_libtool_libs=$enable_shared
23073 # Whether or not to build static libraries.
23074 build_old_libs=$enable_static
23076 # What type of objects to build.
23079 # Whether or not to optimize for fast installation.
23080 fast_install=$enable_fast_install
23082 # Shared archive member basename,for filename based shared library versioning on AIX.
23083 shared_archive_member_spec=$shared_archive_member_spec
23085 # Shell to use when invoking shell scripts.
23088 # An echo program that protects backslashes.
23091 # The PATH separator for the build system.
23092 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23095 host_alias=$host_alias
23099 # The build system.
23100 build_alias=$build_alias
23104 # A sed program that does not truncate output.
23107 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23108 Xsed="\$SED -e 1s/^X//"
23110 # A grep program that handles long lines.
23116 # A literal string matcher.
23119 # A BSD- or MS-compatible name lister.
23122 # Whether we need soft or hard links.
23125 # What is the maximum length of a command?
23126 max_cmd_len=$max_cmd_len
23128 # Object file suffix (normally "o").
23131 # Executable file suffix (normally "").
23134 # whether the shell understands "unset".
23137 # turn spaces into newlines.
23140 # turn newlines into spaces.
23143 # convert \$build file names to \$host format.
23144 to_host_file_cmd=$lt_cv_to_host_file_cmd
23146 # convert \$build files to toolchain format.
23147 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23149 # An object symbol dumper.
23150 OBJDUMP=$lt_OBJDUMP
23152 # Method to check whether dependent libraries are shared objects.
23153 deplibs_check_method=$lt_deplibs_check_method
23155 # Command to use when deplibs_check_method = "file_magic".
23156 file_magic_cmd=$lt_file_magic_cmd
23158 # How to find potential files when deplibs_check_method = "file_magic".
23159 file_magic_glob=$lt_file_magic_glob
23161 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23162 want_nocaseglob=$lt_want_nocaseglob
23164 # DLL creation program.
23165 DLLTOOL=$lt_DLLTOOL
23167 # Command to associate shared and link libraries.
23168 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23173 # Flags to create an archive.
23174 AR_FLAGS=$lt_AR_FLAGS
23176 # How to feed a file listing to the archiver.
23177 archiver_list_spec=$lt_archiver_list_spec
23179 # A symbol stripping program.
23182 # Commands used to install an old-style archive.
23184 old_postinstall_cmds=$lt_old_postinstall_cmds
23185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23187 # Whether to use a lock for old archive extraction.
23188 lock_old_archive_extraction=$lock_old_archive_extraction
23193 # LTCC compiler flags.
23194 LTCFLAGS=$lt_CFLAGS
23196 # Take the output of nm and produce a listing of raw symbols and C names.
23197 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23199 # Transform the output of nm in a proper C declaration.
23200 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23202 # Transform the output of nm into a list of symbols to manually relocate.
23203 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23205 # Transform the output of nm in a C name address pair.
23206 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23208 # Transform the output of nm in a C name address pair when lib prefix is needed.
23209 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23211 # The name lister interface.
23212 nm_interface=$lt_lt_cv_nm_interface
23214 # Specify filename containing input files for \$NM.
23215 nm_file_list_spec=$lt_nm_file_list_spec
23217 # The root where to search for dependent libraries,and where our libraries should be installed.
23218 lt_sysroot=$lt_sysroot
23220 # Command to truncate a binary pipe.
23221 lt_truncate_bin=$lt_lt_cv_truncate_bin
23223 # The name of the directory that contains temporary libtool files.
23226 # Used to examine libraries when file_magic_cmd begins with "file".
23227 MAGIC_CMD=$MAGIC_CMD
23229 # Must we lock files when doing compilation?
23230 need_locks=$lt_need_locks
23233 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23236 DSYMUTIL=$lt_DSYMUTIL
23238 # Tool to change global to local symbols on Mac OS X.
23241 # Tool to manipulate fat objects and archives on Mac OS X.
23244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23248 OTOOL64=$lt_OTOOL64
23250 # Old archive suffix (normally "a").
23253 # Shared library suffix (normally ".so").
23254 shrext_cmds=$lt_shrext_cmds
23256 # The commands to extract the exported symbol list from a shared archive.
23257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23259 # Variables whose values should be saved in libtool wrapper scripts and
23260 # restored at link time.
23261 variables_saved_for_relink=$lt_variables_saved_for_relink
23263 # Do we need the "lib" prefix for modules?
23264 need_lib_prefix=$need_lib_prefix
23266 # Do we need a version for libraries?
23267 need_version=$need_version
23269 # Library versioning type.
23270 version_type=$version_type
23272 # Shared library runtime path variable.
23273 runpath_var=$runpath_var
23275 # Shared library path variable.
23276 shlibpath_var=$shlibpath_var
23278 # Is shlibpath searched before the hard-coded library search path?
23279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23281 # Format of library name prefix.
23282 libname_spec=$lt_libname_spec
23284 # List of archive names. First name is the real one, the rest are links.
23285 # The last name is the one that the linker finds with -lNAME
23286 library_names_spec=$lt_library_names_spec
23288 # The coded name of the library, if different from the real name.
23289 soname_spec=$lt_soname_spec
23291 # Permission mode override for installation of shared libraries.
23292 install_override_mode=$lt_install_override_mode
23294 # Command to use after installation of a shared archive.
23295 postinstall_cmds=$lt_postinstall_cmds
23297 # Command to use after uninstallation of a shared archive.
23298 postuninstall_cmds=$lt_postuninstall_cmds
23300 # Commands used to finish a libtool library installation in a directory.
23301 finish_cmds=$lt_finish_cmds
23303 # As "finish_cmds", except a single script fragment to be evaled but
23305 finish_eval=$lt_finish_eval
23307 # Whether we should hardcode library paths into libraries.
23308 hardcode_into_libs=$hardcode_into_libs
23310 # Compile-time system search path for libraries.
23311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23313 # Detected run-time system search path for libraries.
23314 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23316 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23317 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23319 # Whether dlopen is supported.
23320 dlopen_support=$enable_dlopen
23322 # Whether dlopen of programs is supported.
23323 dlopen_self=$enable_dlopen_self
23325 # Whether dlopen of statically linked programs is supported.
23326 dlopen_self_static=$enable_dlopen_self_static
23328 # Commands to strip libraries.
23329 old_striplib=$lt_old_striplib
23330 striplib=$lt_striplib
23333 # The linker used to build libraries.
23336 # How to create reloadable object files.
23337 reload_flag=$lt_reload_flag
23338 reload_cmds=$lt_reload_cmds
23340 # Commands used to build an old-style archive.
23341 old_archive_cmds=$lt_old_archive_cmds
23343 # A language specific compiler.
23346 # Is the compiler the GNU compiler?
23349 # Compiler flag to turn off builtin functions.
23350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23352 # Additional compiler flags for building library objects.
23353 pic_flag=$lt_lt_prog_compiler_pic
23355 # How to pass a linker flag through the compiler.
23356 wl=$lt_lt_prog_compiler_wl
23358 # Compiler flag to prevent dynamic linking.
23359 link_static_flag=$lt_lt_prog_compiler_static
23361 # Does compiler simultaneously support -c and -o options?
23362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23364 # Whether or not to add -lc for building shared libraries.
23365 build_libtool_need_lc=$archive_cmds_need_lc
23367 # Whether or not to disallow shared libs when runtime libs are static.
23368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23370 # Compiler flag to allow reflexive dlopens.
23371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23373 # Compiler flag to generate shared objects directly from archives.
23374 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23376 # Whether the compiler copes with passing no objects directly.
23377 compiler_needs_object=$lt_compiler_needs_object
23379 # Create an old-style archive from a shared archive.
23380 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23382 # Create a temporary old-style archive to link instead of a shared archive.
23383 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23385 # Commands used to build a shared archive.
23386 archive_cmds=$lt_archive_cmds
23387 archive_expsym_cmds=$lt_archive_expsym_cmds
23389 # Commands used to build a loadable module if different from building
23390 # a shared archive.
23391 module_cmds=$lt_module_cmds
23392 module_expsym_cmds=$lt_module_expsym_cmds
23394 # Whether we are building with GNU ld or not.
23395 with_gnu_ld=$lt_with_gnu_ld
23397 # Flag that allows shared libraries with undefined symbols to be built.
23398 allow_undefined_flag=$lt_allow_undefined_flag
23400 # Flag that enforces no undefined symbols.
23401 no_undefined_flag=$lt_no_undefined_flag
23403 # Flag to hardcode \$libdir into a binary during linking.
23404 # This must work even if \$libdir does not exist
23405 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23407 # Whether we need a single "-rpath" flag with a separated argument.
23408 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23410 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23411 # DIR into the resulting binary.
23412 hardcode_direct=$hardcode_direct
23414 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23415 # DIR into the resulting binary and the resulting library dependency is
23416 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23417 # library is relocated.
23418 hardcode_direct_absolute=$hardcode_direct_absolute
23420 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23421 # into the resulting binary.
23422 hardcode_minus_L=$hardcode_minus_L
23424 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23425 # into the resulting binary.
23426 hardcode_shlibpath_var=$hardcode_shlibpath_var
23428 # Set to "yes" if building a shared library automatically hardcodes DIR
23429 # into the library and all subsequent libraries and executables linked
23431 hardcode_automatic=$hardcode_automatic
23433 # Set to yes if linker adds runtime paths of dependent libraries
23434 # to runtime path list.
23435 inherit_rpath=$inherit_rpath
23437 # Whether libtool must link a program against all its dependency libraries.
23438 link_all_deplibs=$link_all_deplibs
23440 # Set to "yes" if exported symbols are required.
23441 always_export_symbols=$always_export_symbols
23443 # The commands to list exported symbols.
23444 export_symbols_cmds=$lt_export_symbols_cmds
23446 # Symbols that should not be listed in the preloaded symbols.
23447 exclude_expsyms=$lt_exclude_expsyms
23449 # Symbols that must always be exported.
23450 include_expsyms=$lt_include_expsyms
23452 # Commands necessary for linking programs (against libraries) with templates.
23453 prelink_cmds=$lt_prelink_cmds
23455 # Commands necessary for finishing linking programs.
23456 postlink_cmds=$lt_postlink_cmds
23458 # Specify filename containing input files.
23459 file_list_spec=$lt_file_list_spec
23461 # How to hardcode a shared library path into an executable.
23462 hardcode_action=$hardcode_action
23464 # ### END LIBTOOL CONFIG
23468 cat <<'_LT_EOF' >> "$cfgfile"
23470 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23472 # func_munge_path_list VARIABLE PATH
23473 # -----------------------------------
23474 # VARIABLE is name of variable containing _space_ separated list of
23475 # directories to be munged by the contents of PATH, which is string
23478 # string "DIR[ DIR]" will be prepended to VARIABLE
23480 # string "DIR[ DIR]" will be appended to VARIABLE
23481 # "DIRP[:DIRP]::[DIRA:]DIRA"
23482 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23483 # "DIRA[ DIRA]" will be appended to VARIABLE
23485 # VARIABLE will be replaced by "DIR[ DIR]"
23486 func_munge_path_list ()
23492 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23495 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23498 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23499 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23502 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23508 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23509 func_cc_basename ()
23511 for cc_temp in $*""; do
23513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23519 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23523 # ### END FUNCTIONS SHARED WITH CONFIGURE
23529 cat <<\_LT_EOF >> "$cfgfile"
23530 # AIX sometimes has problems with the GCC collect2 program. For some
23531 # reason, if we set the COLLECT_NAMES environment variable, the problems
23532 # vanish in a puff of smoke.
23533 if test set != "${COLLECT_NAMES+set}"; then
23535 export COLLECT_NAMES
23542 ltmain=$ac_aux_dir/ltmain.sh
23545 # We use sed instead of cat because bash on DJGPP gets confused if
23546 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23547 # text mode, it properly converts lines to CR/LF. This bash problem
23548 # is reportedly fixed, but why not run on old versions too?
23549 sed '$q' "$ltmain" >> "$cfgfile" \
23550 || (rm -f "$cfgfile"; exit 1)
23552 mv -f "$cfgfile" "$ofile" ||
23553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23558 sed < libtool > libtool-2 \
23559 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23560 mv libtool-2 libtool
23562 libtool="./libtool"
23571 ac_clean_files=$ac_clean_files_save
23573 test $ac_write_fail = 0 ||
23574 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23577 # configure is writing to config.log, and then calls config.status.
23578 # config.status does its own redirection, appending to config.log.
23579 # Unfortunately, on DOS this fails, as config.log is still kept open
23580 # by configure, so config.status won't be able to write to it; its
23581 # output is simply discarded. So we exec the FD to /dev/null,
23582 # effectively closing config.log, so it can be properly (re)opened and
23583 # appended to by config.status. When coming back to configure, we
23584 # need to make the FD available again.
23585 if test "$no_create" != yes; then
23587 ac_config_status_args=
23588 test "$silent" = yes &&
23589 ac_config_status_args="$ac_config_status_args --quiet"
23591 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23593 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23594 # would make configure fail if this is the last instruction.
23595 $ac_cs_success || as_fn_exit 1
23597 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23599 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}