2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.10.1.
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.10.1'
595 PACKAGE_STRING='unbound 1.10.1'
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
707 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ
708 SLDNS_ALLOCCHECK_EXTRA_OBJ
712 SYSTEMD_DAEMON_CFLAGS
760 UNBOUND_ROOTCERT_FILE
768 UNBOUND_LOCALSTATE_DIR
784 UNBOUND_VERSION_MICRO
785 UNBOUND_VERSION_MINOR
786 UNBOUND_VERSION_MAJOR
814 program_transform_name
827 enable_option_checking
854 enable_alloc_nonregional
860 enable_swig_version_check
884 with_dnstap_socket_path
895 ac_precious_vars='build_alias
912 SYSTEMD_DAEMON_CFLAGS
917 # Initialize some variables set by options.
919 ac_init_version=false
920 ac_unrecognized_opts=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
931 program_transform_name=s,x,x,
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir='${exec_prefix}/bin'
946 sbindir='${exec_prefix}/sbin'
947 libexecdir='${exec_prefix}/libexec'
948 datarootdir='${prefix}/share'
949 datadir='${datarootdir}'
950 sysconfdir='${prefix}/etc'
951 sharedstatedir='${prefix}/com'
952 localstatedir='${prefix}/var'
953 includedir='${prefix}/include'
954 oldincludedir='/usr/include'
955 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir='${datarootdir}/info'
961 libdir='${exec_prefix}/lib'
962 localedir='${datarootdir}/locale'
963 mandir='${datarootdir}/man'
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\$ac_option
977 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 -build | --build | --buil | --bui | --bu)
994 ac_prev=build_alias ;;
995 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996 build_alias=$ac_optarg ;;
998 -cache-file | --cache-file | --cache-fil | --cache-fi \
999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000 ac_prev=cache_file ;;
1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003 cache_file=$ac_optarg ;;
1005 --config-cache | -C)
1006 cache_file=config.cache ;;
1008 -datadir | --datadir | --datadi | --datad)
1010 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011 datadir=$ac_optarg ;;
1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014 | --dataroo | --dataro | --datar)
1015 ac_prev=datarootdir ;;
1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018 datarootdir=$ac_optarg ;;
1020 -disable-* | --disable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1034 eval enable_$ac_useropt=no ;;
1036 -docdir | --docdir | --docdi | --doc | --do)
1038 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039 docdir=$ac_optarg ;;
1041 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044 dvidir=$ac_optarg ;;
1046 -enable-* | --enable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1224 -site=* | --site=* | --sit=*)
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=\$ac_optarg ;;
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=no ;;
1283 # Obsolete; use --with-x.
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures unbound 1.10.1 to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive ) echo "Configuration of unbound 1.10.1:";;
1525 --disable-option-checking ignore unrecognized --enable/--with options
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-checking Enable warnings, asserts, makefile-dependencies
1529 --enable-debug same as enable-checking
1530 --disable-flto Disable link-time optimization (gcc specific option)
1531 --enable-pie Enable Position-Independent Executable (eg. to fully
1532 benefit from ASLR, small performance penalty)
1533 --enable-relro-now Enable full relocation binding at load-time (RELRO
1534 NOW, to protect GOT and .dtor areas)
1535 --enable-shared[=PKGS] build shared libraries [default=yes]
1536 --enable-static[=PKGS] build static libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --disable-rpath disable hardcoded rpath (default=enabled)
1541 --disable-largefile omit support for large files
1542 --enable-systemd compile with systemd support
1543 --enable-alloc-checks enable to memory allocation statistics, for debug
1545 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1547 --enable-alloc-nonregional
1548 enable nonregional allocs, slow but exposes regional
1549 allocations to other memory purifiers, for debug
1551 --disable-swig-version-check
1552 Disable swig version check to build python modules
1553 with older swig even though that is unreliable
1554 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1556 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1557 --enable-subnet Enable client subnet
1558 --disable-gost Disable GOST support
1559 --disable-ecdsa Disable ECDSA support
1560 --disable-dsa Disable DSA support
1561 --disable-ed25519 Disable ED25519 support
1562 --disable-ed448 Disable ED448 support
1563 --enable-event-api Enable (experimental) pluggable event base
1564 libunbound API installed to unbound-event.h
1565 --enable-tfo-client Enable TCP Fast Open for client mode
1566 --enable-tfo-server Enable TCP Fast Open for server mode
1567 --enable-static-exe enable to compile executables statically against
1568 (event) uninstalled libs, for debug purposes
1569 --enable-fully-static enable to compile fully static
1570 --enable-lock-checks enable to check lock and unlock calls, for debug
1572 --enable-allsymbols export all symbols from libunbound and link binaries
1573 to it, smaller install size but libunbound export
1574 table is polluted by internal symbols
1575 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1576 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1577 --enable-cachedb enable cachedb module that can use external cache
1579 --enable-ipsecmod Enable ipsecmod module that facilitates
1581 --enable-ipset enable ipset module
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-conf-file=path Pathname to the Unbound configuration file
1587 --with-run-dir=path set default directory to chdir to (by default dir
1589 --with-chroot-dir=path set default directory to chroot to (by default same
1591 --with-share-dir=path set default directory with shared data (by default
1592 same as share/unbound)
1593 --with-pidfile=filename set default pathname to unbound pidfile (default
1594 run-dir/unbound.pid)
1595 --with-rootkey-file=filename
1596 set default pathname to root key file (default
1597 run-dir/root.key). This file is read and written.
1598 --with-rootcert-file=filename
1599 set default pathname to root update certificate file
1600 (default run-dir/icannbundle.pem). This file need
1601 not exist if you are content with the builtin.
1602 --with-username=user set default user that unbound changes to (default
1604 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1606 --with-aix-soname=aix|svr4|both
1607 shared library versioning (aka "SONAME") variant to
1608 provide on AIX, [default=aix].
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1611 compiler's sysroot if not specified).
1612 --with-pthreads use pthreads library, or --without-pthreads to
1613 disable threading support.
1614 --with-solaris-threads use solaris native thread library.
1615 --with-syslog-facility=LOCAL0 - LOCAL7
1616 set SYSLOG_FACILITY, default DAEMON
1617 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1619 --with-pythonmodule build Python module, or --without-pythonmodule to
1620 disable script engine. (default=no)
1621 --with-nss=path use libnss instead of openssl, installed at path.
1622 --with-nettle=path use libnettle as crypto library, installed at path.
1623 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1624 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1626 --with-libbsd Use portable libbsd functions
1627 --with-libevent=pathname
1628 use libevent (will check /usr/local /opt/local
1629 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1630 an explicit path). Slower, but allows use of large
1631 outgoing port ranges.
1632 --with-libexpat=path specify explicit path for libexpat.
1633 --with-libhiredis=path specify explicit path for libhiredis.
1634 --with-dnstap-socket-path=pathname
1635 set default dnstap socket path
1636 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1637 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1638 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1639 --with-libmnl=path specify explicit path for libmnl.
1640 --with-libunbound-only do not build daemon and tool programs
1642 Some influential environment variables:
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
1647 LIBS libraries to pass to the linker, e.g. -l<library>
1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649 you have headers in a nonstandard directory <include dir>
1651 YACC The `Yet Another Compiler Compiler' implementation to use.
1652 Defaults to the first program found out of: `bison -y', `byacc',
1654 YFLAGS The list of arguments that will be passed by default to $YACC.
1655 This script will default YFLAGS to the empty string to avoid a
1656 default value of `-d' given by some make applications.
1658 User-defined run-time library search path.
1659 PKG_CONFIG path to pkg-config utility
1661 directories to add to pkg-config's search path
1663 path overriding pkg-config's built-in search path
1665 C compiler flags for SYSTEMD, overriding pkg-config
1667 linker flags for SYSTEMD, overriding pkg-config
1668 SYSTEMD_DAEMON_CFLAGS
1669 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1671 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1673 The installed Python version to use, for example '2.3'. This
1674 string will be appended to the Python interpreter canonical
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1680 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>.
1685 if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 ac_abs_top_builddir=$ac_pwd
1705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706 # for backward compatibility:
1707 ac_top_builddir=$ac_top_build_prefix
1710 .) # We are building in place.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1743 unbound configure 1.10.1
1744 generated by GNU Autoconf 2.69
1746 Copyright (C) 2012 Free Software Foundation, Inc.
1747 This configure script is free software; the Free Software Foundation
1748 gives unlimited permission to copy, distribute and modify it.
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1757 # ac_fn_c_try_compile LINENO
1758 # --------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_compile
1795 # ac_fn_c_try_cpp LINENO
1796 # ----------------------
1797 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_cpp conftest.$ac_ext"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } > conftest.i && {
1817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1832 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835 # the include files in INCLUDES and setting the cache variable VAR
1837 ac_fn_c_check_header_mongrel ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if eval \${$3+:} false; then :
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 # Is the header compilable?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852 $as_echo_n "checking $2 usability... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 ac_header_compiler=yes
1861 ac_header_compiler=no
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865 $as_echo "$ac_header_compiler" >&6; }
1867 # Is the header present?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869 $as_echo_n "checking $2 presence... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 if ac_fn_c_try_cpp "$LINENO"; then :
1875 ac_header_preproc=yes
1877 ac_header_preproc=no
1879 rm -f conftest.err conftest.i conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881 $as_echo "$ac_header_preproc" >&6; }
1883 # So? What about this header?
1884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1895 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1899 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ( $as_echo "## --------------------------------------------------------------------------------------- ##
1903 ## Report this to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues ##
1904 ## --------------------------------------------------------------------------------------- ##"
1905 ) | sed "s/^/$as_me: WARNING: /" >&2
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 eval "$3=\$ac_header_compiler"
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_header_mongrel
1923 # ac_fn_c_try_run LINENO
1924 # ----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1926 # that executables *can* be run.
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_link"
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>&5
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941 { { case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_try") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; }; }; then :
1953 $as_echo "$as_me: program exited with status $ac_status" >&5
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1957 ac_retval=$ac_status
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1965 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists and can be compiled using the include files in
1968 # INCLUDES, setting the cache variable VAR accordingly.
1969 ac_fn_c_check_header_compile ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1982 if ac_fn_c_try_compile "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_header_compile
1996 # ac_fn_c_try_link LINENO
1997 # -----------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded.
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 rm -f conftest.$ac_objext conftest$ac_exeext
2003 if { { ac_try="$ac_link"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>conftest.err
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && {
2019 test -z "$ac_c_werror_flag" ||
2020 test ! -s conftest.err
2021 } && test -s conftest$ac_exeext && {
2022 test "$cross_compiling" = yes ||
2023 test -x conftest$ac_exeext
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2032 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2033 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2034 # interfere with the next link command; also delete a directory that is
2035 # left behind by Apple's compiler. We do this before executing the actions.
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2040 } # ac_fn_c_try_link
2042 # ac_fn_c_check_func LINENO FUNC VAR
2043 # ----------------------------------
2044 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2045 ac_fn_c_check_func ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2057 #define $2 innocuous_$2
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char $2 (); below.
2061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062 <limits.h> exists even on freestanding compilers. */
2065 # include <limits.h>
2067 # include <assert.h>
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2094 if ac_fn_c_try_link "$LINENO"; then :
2099 rm -f core conftest.err conftest.$ac_objext \
2100 conftest$ac_exeext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_func
2109 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110 # -------------------------------------------
2111 # Tests whether TYPE exists after having included INCLUDES, setting cache
2112 # variable VAR accordingly.
2113 ac_fn_c_check_type ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval \${$3+:} false; then :
2119 $as_echo_n "(cached) " >&6
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2147 if ac_fn_c_try_compile "$LINENO"; then :
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_type
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 ac_fn_c_compute_int ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if test "$cross_compiling" = yes; then
2172 # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2181 return test_array [0];
2187 if ac_fn_c_try_compile "$LINENO"; then :
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_hi=$ac_mid; break
2207 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2208 if test $ac_lo -le $ac_mid; then
2212 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) < 0)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_lo=$ac_mid; break
2251 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2252 if test $ac_mid -le $ac_hi; then
2256 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 # Binary search between lo and hi bounds.
2267 while test "x$ac_lo" != "x$ac_hi"; do
2268 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_c_try_compile "$LINENO"; then :
2286 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2298 static long int longval () { return $2; }
2299 static unsigned long int ulongval () { return $2; }
2306 FILE *f = fopen ("conftest.val", "w");
2311 long int i = longval ();
2314 fprintf (f, "%ld", i);
2318 unsigned long int i = ulongval ();
2321 fprintf (f, "%lu", i);
2323 /* Do not output a trailing newline, as this causes \r\n confusion
2324 on some platforms. */
2325 return ferror (f) || fclose (f) != 0;
2331 if ac_fn_c_try_run "$LINENO"; then :
2332 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2337 conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_c_compute_int
2346 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2347 # ---------------------------------------------
2348 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2350 ac_fn_c_check_decl ()
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 as_decl_name=`echo $2|sed 's/ *(.*//'`
2354 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2356 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2357 if eval \${$3+:} false; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2366 #ifndef $as_decl_name
2368 (void) $as_decl_use;
2370 (void) $as_decl_name;
2378 if ac_fn_c_try_compile "$LINENO"; then :
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 } # ac_fn_c_check_decl
2392 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2393 # ----------------------------------------------------
2394 # Tries to find if the field MEMBER exists in type AGGR, after including
2395 # INCLUDES, setting cache variable VAR accordingly.
2396 ac_fn_c_check_member ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2400 $as_echo_n "checking for $2.$3... " >&6; }
2401 if eval \${$4+:} false; then :
2402 $as_echo_n "(cached) " >&6
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2417 if ac_fn_c_try_compile "$LINENO"; then :
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2427 if (sizeof ac_aggr.$3)
2433 if ac_fn_c_try_compile "$LINENO"; then :
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 } # ac_fn_c_check_member
2448 cat >config.log <<_ACEOF
2449 This file contains any messages produced by compilers while
2450 running configure, to aid debugging if configure makes a mistake.
2452 It was created by unbound $as_me 1.10.1, which was
2453 generated by GNU Autoconf 2.69. Invocation command line was
2465 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2466 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2467 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2468 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2469 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2471 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2472 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2474 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2475 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2476 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2477 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2478 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2479 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2480 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 $as_echo "PATH: $as_dir"
2505 # Keep a trace of the command line.
2506 # Strip out --no-create and --no-recursion so they do not pile up.
2507 # Strip out --silent because we don't want to record it for future runs.
2508 # Also quote any args containing shell meta-characters.
2509 # Make two passes to allow for proper duplicate-argument suppression.
2513 ac_must_keep_next=false
2519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2521 | -silent | --silent | --silen | --sile | --sil)
2524 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2529 as_fn_append ac_configure_args1 " '$ac_arg'"
2530 if test $ac_must_keep_next = true; then
2531 ac_must_keep_next=false # Got value, back to normal.
2534 *=* | --config-cache | -C | -disable-* | --disable-* \
2535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2537 | -with-* | --with-* | -without-* | --without-* | --x)
2538 case "$ac_configure_args0 " in
2539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2542 -* ) ac_must_keep_next=true ;;
2545 as_fn_append ac_configure_args " '$ac_arg'"
2550 { ac_configure_args0=; unset ac_configure_args0;}
2551 { ac_configure_args1=; unset ac_configure_args1;}
2553 # When interrupted or exit'd, cleanup temporary files, and complete
2554 # config.log. We remove comments because anyway the quotes in there
2555 # would cause problems or look ugly.
2556 # WARNING: Use '\'' to represent an apostrophe within the trap.
2557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2558 trap 'exit_status=$?
2559 # Save into config.log some information that might help in debugging.
2563 $as_echo "## ---------------- ##
2564 ## Cache variables. ##
2565 ## ---------------- ##"
2567 # The following way of writing the cache mishandles newlines in values,
2569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2570 eval ac_val=\$$ac_var
2574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2578 _ | IFS | as_nl) ;; #(
2579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580 *) { eval $ac_var=; unset $ac_var;} ;;
2585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2586 *${as_nl}ac_space=\ *)
2588 "s/'\''/'\''\\\\'\'''\''/g;
2589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2599 $as_echo "## ----------------- ##
2600 ## Output variables. ##
2601 ## ----------------- ##"
2603 for ac_var in $ac_subst_vars
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2613 if test -n "$ac_subst_files"; then
2614 $as_echo "## ------------------- ##
2615 ## File substitutions. ##
2616 ## ------------------- ##"
2618 for ac_var in $ac_subst_files
2620 eval ac_val=\$$ac_var
2622 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624 $as_echo "$ac_var='\''$ac_val'\''"
2629 if test -s confdefs.h; then
2630 $as_echo "## ----------- ##
2637 test "$ac_signal" != 0 &&
2638 $as_echo "$as_me: caught signal $ac_signal"
2639 $as_echo "$as_me: exit $exit_status"
2641 rm -f core *.core core.conftest.* &&
2642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2645 for ac_signal in 1 2 13 15; do
2646 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2651 rm -f -r conftest* confdefs.h
2653 $as_echo "/* confdefs.h */" > confdefs.h
2655 # Predefined preprocessor variables.
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_NAME "$PACKAGE_NAME"
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_STRING "$PACKAGE_STRING"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_URL "$PACKAGE_URL"
2682 # Let the site file select an alternate cache file if it wants to.
2683 # Prefer an explicitly selected file to automatically selected ones.
2686 if test -n "$CONFIG_SITE"; then
2687 # We do not want a PATH search for config.site.
2688 case $CONFIG_SITE in #((
2689 -*) ac_site_file1=./$CONFIG_SITE;;
2690 */*) ac_site_file1=$CONFIG_SITE;;
2691 *) ac_site_file1=./$CONFIG_SITE;;
2693 elif test "x$prefix" != xNONE; then
2694 ac_site_file1=$prefix/share/config.site
2695 ac_site_file2=$prefix/etc/config.site
2697 ac_site_file1=$ac_default_prefix/share/config.site
2698 ac_site_file2=$ac_default_prefix/etc/config.site
2700 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2702 test "x$ac_site_file" = xNONE && continue
2703 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2705 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2706 sed 's/^/| /' "$ac_site_file" >&5
2708 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 as_fn_error $? "failed to load site script $ac_site_file
2711 See \`config.log' for more details" "$LINENO" 5; }
2715 if test -r "$cache_file"; then
2716 # Some versions of bash will fail to source /dev/null (special files
2717 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2718 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2720 $as_echo "$as_me: loading cache $cache_file" >&6;}
2722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2723 *) . "./$cache_file";;
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2728 $as_echo "$as_me: creating cache $cache_file" >&6;}
2732 # Check that the precious variables saved in the cache have kept the same
2734 ac_cache_corrupted=false
2735 for ac_var in $ac_precious_vars; do
2736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2737 eval ac_new_set=\$ac_env_${ac_var}_set
2738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2739 eval ac_new_val=\$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w=`echo x $ac_old_val`
2754 ac_new_val_w=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted=:
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\$ac_old_val
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2773 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg=$ac_var=$ac_new_val ;;
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2782 if $ac_cache_corrupted; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 ## -------------------- ##
2790 ## Main body of script. ##
2791 ## -------------------- ##
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 UNBOUND_VERSION_MAJOR=1
2802 UNBOUND_VERSION_MINOR=10
2804 UNBOUND_VERSION_MICRO=1
2807 LIBUNBOUND_CURRENT=9
2808 LIBUNBOUND_REVISION=8
2817 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2822 # 1.4.0-snapshots had 1:5:0
2823 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2837 # and 1.4.13p1 and 1.4.13.p2
2839 # 1.4.15 had 3:0:1 # adds ub_version()
2844 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2847 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2855 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2859 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2871 # 1.8.0 had 8:0:0 # changes the event callback function signature
2875 # 1.9.0 had 9:0:1 # add ub_ctx_set_tls
2885 # Current -- the number of the binary API that we're implementing
2886 # Revision -- which iteration of the implementation of the binary
2887 # API are we supplying?
2888 # Age -- How many previous binary API versions do we also
2891 # If we release a new version that does not change the binary API,
2892 # increment Revision.
2894 # If we release a new version that changes the binary API, but does
2895 # not break programs compiled against the old binary API, increment
2896 # Current and Age. Set Revision to 0, since this is the first
2897 # implementation of the new API.
2899 # Otherwise, we're changing the binary API and breaking backward
2900 # compatibility with old binaries. Increment Current. Set Age to 0,
2901 # since we're backward compatible with no previous APIs. Set Revision
2908 cmdln="`echo $@ | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/'g`"
2910 cat >>confdefs.h <<_ACEOF
2911 #define CONFCMDLINE "$cmdln"
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_CC"; then
2962 # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_ac_ct_CC="gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_CC" = x; then
3001 case $cross_compiling:$ac_tool_warned in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3013 if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3054 if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$CC" && break
3154 if test -z "$CC"; then
3156 for ac_prog in cl.exe
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3195 test -n "$ac_ct_CC" && break
3198 if test "x$ac_ct_CC" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error $? "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details" "$LINENO" 5; }
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3223 for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233 if test -s conftest.err; then
3235 ... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3239 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3261 $as_echo_n "checking whether the C compiler works... " >&6; }
3262 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264 # The possible output files:
3265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268 for ac_file in $ac_files
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277 if { { ac_try="$ac_link_default"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3291 # so that the user can short-circuit this test for compilers unknown to
3293 for ac_file in $ac_files ''
3295 test -f "$ac_file" || continue
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3300 # We found the default executable, but exeext='' is most
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3318 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323 if test -z "$ac_file"; then :
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error 77 "C compiler cannot create executables
3332 See \`config.log' for more details" "$LINENO" 5; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3338 $as_echo_n "checking for C compiler default output file name... " >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340 $as_echo "$ac_file" >&6; }
3341 ac_exeext=$ac_cv_exeext
3343 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344 ac_clean_files=$ac_clean_files_save
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346 $as_echo_n "checking for suffix of executables... " >&6; }
3347 if { { ac_try="$ac_link"
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3360 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 for ac_file in conftest.exe conftest conftest.*; do
3363 test -f "$ac_file" || continue
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details" "$LINENO" 5; }
3377 rm -f conftest conftest$ac_cv_exeext
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3381 rm -f conftest.$ac_ext
3382 EXEEXT=$ac_cv_exeext
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3390 FILE *f = fopen ("conftest.out", "w");
3391 return ferror (f) || fclose (f) != 0;
3397 ac_clean_files="$ac_clean_files conftest.out"
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401 $as_echo_n "checking whether we are cross compiling... " >&6; }
3402 if test "$cross_compiling" != yes; then
3403 { { ac_try="$ac_link"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3414 if { ac_try='./conftest$ac_cv_exeext'
3415 { { case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_try") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; }; then
3427 if test "$cross_compiling" = maybe; then
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3441 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 $as_echo_n "checking for suffix of object files... " >&6; }
3445 if ${ac_cv_objext+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { { ac_try="$ac_compile"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compile") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 for ac_file in conftest.o conftest.obj conftest.*; do
3472 test -f "$ac_file" || continue;
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of object files: cannot compile
3486 See \`config.log' for more details" "$LINENO" 5; }
3488 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491 $as_echo "$ac_cv_objext" >&6; }
3492 OBJEXT=$ac_cv_objext
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3496 if ${ac_cv_c_compiler_gnu+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3524 if test $ac_compiler_gnu = yes; then
3529 ac_test_CFLAGS=${CFLAGS+set}
3530 ac_save_CFLAGS=$CFLAGS
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3533 if ${ac_cv_prog_cc_g+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 ac_save_c_werror_flag=$ac_c_werror_flag
3537 ac_c_werror_flag=yes
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"; then :
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3582 if ac_fn_c_try_compile "$LINENO"; then :
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3593 $as_echo "$ac_cv_prog_cc_g" >&6; }
3594 if test "$ac_test_CFLAGS" = set; then
3595 CFLAGS=$ac_save_CFLAGS
3596 elif test $ac_cv_prog_cc_g = yes; then
3597 if test "$GCC" = yes; then
3603 if test "$GCC" = yes; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3611 if ${ac_cv_prog_cc_c89+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 ac_cv_prog_cc_c89=no
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3635 s = g (p, va_arg (v,int));
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_cv_prog_cc_c89=$ac_arg
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3678 rm -f conftest.$ac_ext
3683 case "x$ac_cv_prog_cc_c89" in
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3712 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3713 # On Suns, sometimes $CPP names a directory.
3714 if test -n "$CPP" && test -d "$CPP"; then
3717 if test -z "$CPP"; then
3718 if ${ac_cv_prog_CPP+:} false; then :
3719 $as_echo_n "(cached) " >&6
3721 # Double quotes because CPP needs to be expanded
3722 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3725 for ac_c_preproc_warn_flag in '' yes
3727 # Use a header file that comes with gcc, so configuring glibc
3728 # with a fresh cross-compiler works.
3729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 # <limits.h> exists even on freestanding compilers.
3731 # On the NeXT, cc -E runs the code through the compiler's parser,
3732 # not just through cpp. "Syntax error" is here to catch this case.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3736 # include <limits.h>
3738 # include <assert.h>
3742 if ac_fn_c_try_cpp "$LINENO"; then :
3745 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3750 # OK, works on sane cases. Now check whether nonexistent headers
3751 # can be detected and how.
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757 # Broken: success on invalid input.
3760 # Passes both tests.
3764 rm -f conftest.err conftest.i conftest.$ac_ext
3767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3768 rm -f conftest.i conftest.err conftest.$ac_ext
3769 if $ac_preproc_ok; then :
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3782 $as_echo "$CPP" >&6; }
3784 for ac_c_preproc_warn_flag in '' yes
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error" is here to catch this case.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3795 # include <limits.h>
3797 # include <assert.h>
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3804 # Broken: fails on valid input.
3807 rm -f conftest.err conftest.i conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813 #include <ac_nonexistent.h>
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3816 # Broken: success on invalid input.
3819 # Passes both tests.
3823 rm -f conftest.err conftest.i conftest.$ac_ext
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.i conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then :
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details" "$LINENO" 5; }
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3845 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3846 if ${ac_cv_path_GREP+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 if test -z "$GREP"; then
3850 ac_path_GREP_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in grep ggrep; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860 as_fn_executable_p "$ac_path_GREP" || continue
3861 # Check for GNU ac_path_GREP and select it if it is found.
3862 # Check for GNU $ac_path_GREP
3863 case `"$ac_path_GREP" --version 2>&1` in
3865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3868 $as_echo_n 0123456789 >"conftest.in"
3871 cat "conftest.in" "conftest.in" >"conftest.tmp"
3872 mv "conftest.tmp" "conftest.in"
3873 cp "conftest.in" "conftest.nl"
3874 $as_echo 'GREP' >> "conftest.nl"
3875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877 as_fn_arith $ac_count + 1 && ac_count=$as_val
3878 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_GREP="$ac_path_GREP"
3881 ac_path_GREP_max=$ac_count
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889 $ac_path_GREP_found && break 3
3894 if test -z "$ac_cv_path_GREP"; then
3895 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3898 ac_cv_path_GREP=$GREP
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3903 $as_echo "$ac_cv_path_GREP" >&6; }
3904 GREP="$ac_cv_path_GREP"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3908 $as_echo_n "checking for egrep... " >&6; }
3909 if ${ac_cv_path_EGREP+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3913 then ac_cv_path_EGREP="$GREP -E"
3915 if test -z "$EGREP"; then
3916 ac_path_EGREP_found=false
3917 # Loop through the user's path and test for each of PROGNAME-LIST
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in egrep; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3926 as_fn_executable_p "$ac_path_EGREP" || continue
3927 # Check for GNU ac_path_EGREP and select it if it is found.
3928 # Check for GNU $ac_path_EGREP
3929 case `"$ac_path_EGREP" --version 2>&1` in
3931 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3934 $as_echo_n 0123456789 >"conftest.in"
3937 cat "conftest.in" "conftest.in" >"conftest.tmp"
3938 mv "conftest.tmp" "conftest.in"
3939 cp "conftest.in" "conftest.nl"
3940 $as_echo 'EGREP' >> "conftest.nl"
3941 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943 as_fn_arith $ac_count + 1 && ac_count=$as_val
3944 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3945 # Best one so far, save it but keep looking for a better one
3946 ac_cv_path_EGREP="$ac_path_EGREP"
3947 ac_path_EGREP_max=$ac_count
3949 # 10*(2^10) chars as input seems more than enough
3950 test $ac_count -gt 10 && break
3952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 $ac_path_EGREP_found && break 3
3960 if test -z "$ac_cv_path_EGREP"; then
3961 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964 ac_cv_path_EGREP=$EGREP
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3970 $as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3975 $as_echo_n "checking for ANSI C header files... " >&6; }
3976 if ${ac_cv_header_stdc+:} false; then :
3977 $as_echo_n "(cached) " >&6
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_header_stdc=yes
3997 ac_cv_header_stdc=no
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 if test $ac_cv_header_stdc = yes; then
4002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009 $EGREP "memchr" >/dev/null 2>&1; then :
4012 ac_cv_header_stdc=no
4018 if test $ac_cv_header_stdc = yes; then
4019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 $EGREP "free" >/dev/null 2>&1; then :
4029 ac_cv_header_stdc=no
4035 if test $ac_cv_header_stdc = yes; then
4036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037 if test "$cross_compiling" = yes; then :
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 #if ((' ' & 0x0FF) == 0x020)
4045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4048 # define ISLOWER(c) \
4049 (('a' <= (c) && (c) <= 'i') \
4050 || ('j' <= (c) && (c) <= 'r') \
4051 || ('s' <= (c) && (c) <= 'z'))
4052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060 for (i = 0; i < 256; i++)
4061 if (XOR (islower (i), ISLOWER (i))
4062 || toupper (i) != TOUPPER (i))
4067 if ac_fn_c_try_run "$LINENO"; then :
4070 ac_cv_header_stdc=no
4072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4073 conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4079 $as_echo "$ac_cv_header_stdc" >&6; }
4080 if test $ac_cv_header_stdc = yes; then
4082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4086 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4087 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4088 inttypes.h stdint.h unistd.h
4090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4091 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4094 cat >>confdefs.h <<_ACEOF
4095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4105 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4112 if test "$MINIX" = yes; then
4114 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4117 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4120 $as_echo "#define _MINIX 1" >>confdefs.h
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4126 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4127 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4133 # define __EXTENSIONS__ 1
4134 $ac_includes_default
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_safe_to_define___extensions__=yes
4146 ac_cv_safe_to_define___extensions__=no
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4151 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4152 test $ac_cv_safe_to_define___extensions__ = yes &&
4153 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4155 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4157 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4159 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4161 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4165 if test "$ac_cv_header_minix_config_h" = "yes"; then
4167 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4176 case "$exec_prefix" in
4178 exec_prefix="$prefix"
4183 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4185 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4186 else on_mingw="no"; fi
4190 # Determine configuration file
4191 # the eval is to evaluate shell expansion twice
4192 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4194 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4196 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4198 if test $on_mingw = "no"; then
4199 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4201 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4204 # Check whether --with-conf_file was given.
4205 if test "${with_conf_file+set}" = set; then :
4206 withval=$with_conf_file; ub_conf_file="$withval"
4210 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4213 cat >>confdefs.h <<_ACEOF
4214 #define CONFIGFILE "$hdr_config"
4217 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4218 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4219 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4220 X"$ub_conf_file" : 'X\(//\)$' \| \
4221 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4222 $as_echo X"$ub_conf_file" |
4223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4242 # Determine run, chroot directory and pidfile locations
4244 # Check whether --with-run-dir was given.
4245 if test "${with_run_dir+set}" = set; then :
4246 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4248 if test $on_mingw = no; then
4249 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4257 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4260 cat >>confdefs.h <<_ACEOF
4261 #define RUN_DIR "$hdr_run"
4266 # Check whether --with-chroot-dir was given.
4267 if test "${with_chroot_dir+set}" = set; then :
4268 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4270 if test $on_mingw = no; then
4271 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4273 UNBOUND_CHROOT_DIR=""
4279 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4282 cat >>confdefs.h <<_ACEOF
4283 #define CHROOT_DIR "$hdr_chroot"
4288 # Check whether --with-share-dir was given.
4289 if test "${with_share_dir+set}" = set; then :
4290 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4292 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4297 cat >>confdefs.h <<_ACEOF
4298 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4303 # Check whether --with-pidfile was given.
4304 if test "${with_pidfile+set}" = set; then :
4305 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4307 if test $on_mingw = no; then
4308 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4316 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4319 cat >>confdefs.h <<_ACEOF
4320 #define PIDFILE "$hdr_pid"
4325 # Check whether --with-rootkey-file was given.
4326 if test "${with_rootkey_file+set}" = set; then :
4327 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4329 if test $on_mingw = no; then
4330 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4332 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4338 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4341 cat >>confdefs.h <<_ACEOF
4342 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4347 # Check whether --with-rootcert-file was given.
4348 if test "${with_rootcert_file+set}" = set; then :
4349 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4351 if test $on_mingw = no; then
4352 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4354 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4360 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4363 cat >>confdefs.h <<_ACEOF
4364 #define ROOT_CERT_FILE "$hdr_rpem"
4369 # Check whether --with-username was given.
4370 if test "${with_username+set}" = set; then :
4371 withval=$with_username; UNBOUND_USERNAME="$withval"
4373 UNBOUND_USERNAME="unbound"
4378 cat >>confdefs.h <<_ACEOF
4379 #define UB_USERNAME "$UNBOUND_USERNAME"
4384 $as_echo "#define WINVER 0x0502" >>confdefs.h
4386 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/' `
4389 cat >>confdefs.h <<_ACEOF
4390 #define RSRC_PACKAGE_VERSION $wnvs
4394 # Checks for typedefs, structures, and compiler characteristics.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4397 if ${ac_cv_c_const+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4408 /* Ultrix mips cc rejects this sort of thing. */
4409 typedef int charset[2];
4410 const charset cs = { 0, 0 };
4411 /* SunOS 4.1.1 cc rejects this. */
4412 char const *const *pcpcc;
4414 /* NEC SVR4.0.2 mips cc rejects this. */
4415 struct point {int x, y;};
4416 static struct point const zero = {0,0};
4417 /* AIX XL C 1.02.0.0 rejects this.
4418 It does not let you subtract one const X* pointer from another in
4419 an arm of an if-expression whose if-part is not a constant
4421 const char *g = "string";
4422 pcpcc = &g + (g ? g-g : 0);
4423 /* HPUX 7.0 cc rejects these. */
4425 ppc = (char**) pcpcc;
4426 pcpcc = (char const *const *) ppc;
4427 { /* SCO 3.2v4 cc rejects this sort of thing. */
4430 char const *s = 0 ? (char *) 0 : (char const *) 0;
4435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4437 const int *foo = &x[0];
4440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4441 typedef const int *iptr;
4445 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4447 struct s { int j; const int *ap[3]; } bx;
4448 struct s *b = &bx; b->j = 5;
4450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4454 return !cs[0] && !zero.x;
4461 if ac_fn_c_try_compile "$LINENO"; then :
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4469 $as_echo "$ac_cv_c_const" >&6; }
4470 if test $ac_cv_c_const = no; then
4472 $as_echo "#define const /**/" >>confdefs.h
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 # allow user to override the -g -O2 flags.
4484 if test "x$CFLAGS" = "x" ; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4488 $as_echo_n "checking whether $CC supports -g... " >&6; }
4489 cache=`echo g | sed 'y%.=/+-%___p_%'`
4490 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4491 $as_echo_n "(cached) " >&6
4494 echo 'void f(void){}' >conftest.c
4495 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4496 eval "cv_prog_cc_flag_$cache=yes"
4498 eval "cv_prog_cc_flag_$cache=no"
4500 rm -f conftest conftest.o conftest.c
4504 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506 $as_echo "yes" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4519 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4520 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4521 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4522 $as_echo_n "(cached) " >&6
4525 echo 'void f(void){}' >conftest.c
4526 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4527 eval "cv_prog_cc_flag_$cache=yes"
4529 eval "cv_prog_cc_flag_$cache=no"
4531 rm -f conftest conftest.o conftest.c
4535 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4539 CFLAGS="$CFLAGS -O2"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_CC+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 if test -n "$CC"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4585 $as_echo "$CC" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_CC"; then
4595 # Extract the first word of "gcc", so it can be a program name with args.
4596 set dummy gcc; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$ac_ct_CC"; then
4603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_ac_ct_CC="gcc"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4623 if test -n "$ac_ct_CC"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4625 $as_echo "$ac_ct_CC" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_CC" = x; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4646 if test -z "$CC"; then
4647 if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}cc; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_CC+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_CC="${ac_tool_prefix}cc"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4687 if test -z "$CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_prog_CC+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_CC
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set CC to just the basename; use the full file name.
4727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4733 if test -n "$CC"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 $as_echo "$CC" >&6; }
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4743 if test -z "$CC"; then
4744 if test -n "$ac_tool_prefix"; then
4745 for ac_prog in cl.exe
4747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_prog_CC+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -n "$CC"; then
4755 ac_cv_prog_CC="$CC" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 if test -n "$CC"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 $as_echo "$CC" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4784 test -n "$CC" && break
4787 if test -z "$CC"; then
4789 for ac_prog in cl.exe
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy $ac_prog; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$ac_ct_CC"; then
4799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_CC="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4819 if test -n "$ac_ct_CC"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4821 $as_echo "$ac_ct_CC" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4828 test -n "$ac_ct_CC" && break
4831 if test "x$ac_ct_CC" = x; then
4834 case $cross_compiling:$ac_tool_warned in
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4847 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 as_fn_error $? "no acceptable C compiler found in \$PATH
4850 See \`config.log' for more details" "$LINENO" 5; }
4852 # Provide some information about the compiler.
4853 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4856 for ac_option in --version -v -V -qversion; do
4857 { { ac_try="$ac_compiler $ac_option >&5"
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 $as_echo "$ac_try_echo"; } >&5
4864 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4866 if test -s conftest.err; then
4868 ... rest of stderr output deleted ...
4869 10q' conftest.err >conftest.er1
4870 cat conftest.er1 >&5
4872 rm -f conftest.er1 conftest.err
4873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874 test $ac_status = 0; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4879 if ${ac_cv_c_compiler_gnu+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4896 if ac_fn_c_try_compile "$LINENO"; then :
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4907 if test $ac_compiler_gnu = yes; then
4912 ac_test_CFLAGS=${CFLAGS+set}
4913 ac_save_CFLAGS=$CFLAGS
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4916 if ${ac_cv_prog_cc_g+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 ac_save_c_werror_flag=$ac_c_werror_flag
4920 ac_c_werror_flag=yes
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4934 if ac_fn_c_try_compile "$LINENO"; then :
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4965 if ac_fn_c_try_compile "$LINENO"; then :
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_c_werror_flag=$ac_save_c_werror_flag
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4976 $as_echo "$ac_cv_prog_cc_g" >&6; }
4977 if test "$ac_test_CFLAGS" = set; then
4978 CFLAGS=$ac_save_CFLAGS
4979 elif test $ac_cv_prog_cc_g = yes; then
4980 if test "$GCC" = yes; then
4986 if test "$GCC" = yes; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4994 if ${ac_cv_prog_cc_c89+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 ac_cv_prog_cc_c89=no
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5005 struct buf { int x; };
5006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5007 static char *e (p, i)
5013 static char *f (char * (*g) (char **, int), char **p, ...)
5018 s = g (p, va_arg (v,int));
5023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5024 function prototypes and stuff, but not '\xHH' hex character constants.
5025 These don't provoke an error unfortunately, instead are silently treated
5026 as 'x'. The following induces an error, until -std is added to get
5027 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5028 array size at least. It's necessary to write '\x00'==0 to get something
5029 that's true only with -std. */
5030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5033 inside strings and character constants. */
5035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5037 int test (int i, double x);
5038 struct s1 {int (*f) (int a);};
5039 struct s2 {int (*f) (double a);};
5040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5052 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5054 CC="$ac_save_CC $ac_arg"
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056 ac_cv_prog_cc_c89=$ac_arg
5058 rm -f core conftest.err conftest.$ac_objext
5059 test "x$ac_cv_prog_cc_c89" != "xno" && break
5061 rm -f conftest.$ac_ext
5066 case "x$ac_cv_prog_cc_c89" in
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5069 $as_echo "none needed" >&6; } ;;
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5072 $as_echo "unsupported" >&6; } ;;
5074 CC="$CC $ac_cv_prog_cc_c89"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5078 if test "x$ac_cv_prog_cc_c89" != xno; then :
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5090 $as_echo_n "checking $CC dependency flag... " >&6; }
5091 echo 'void f(){}' >conftest.c
5092 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5095 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5098 DEPFLAG="-MM" # dunno do something
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5102 $as_echo "$DEPFLAG" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5110 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5111 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5112 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5113 $as_echo_n "(cached) " >&6
5116 echo 'void f(void){}' >conftest.c
5117 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5118 eval "cv_prog_cc_flag_$cache=yes"
5120 eval "cv_prog_cc_flag_$cache=no"
5122 rm -f conftest conftest.o conftest.c
5126 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5128 $as_echo "yes" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5141 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5142 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5143 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5144 $as_echo_n "(cached) " >&6
5147 echo 'void f(void){}' >conftest.c
5148 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5149 eval "cv_prog_cc_flag_$cache=yes"
5151 eval "cv_prog_cc_flag_$cache=no"
5153 rm -f conftest conftest.o conftest.c
5157 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159 $as_echo "yes" >&6; }
5161 ERRFLAG="$ERRFLAG -Wall"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5166 ERRFLAG="$ERRFLAG -errfmt"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5174 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5175 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5176 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5177 $as_echo_n "(cached) " >&6
5180 echo 'void f(void){}' >conftest.c
5181 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5182 eval "cv_prog_cc_flag_$cache=yes"
5184 eval "cv_prog_cc_flag_$cache=no"
5186 rm -f conftest conftest.o conftest.c
5190 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192 $as_echo "yes" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5205 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5206 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5207 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5208 $as_echo_n "(cached) " >&6
5211 echo 'void f(void){}' >conftest.c
5212 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5213 eval "cv_prog_cc_flag_$cache=yes"
5215 eval "cv_prog_cc_flag_$cache=no"
5217 rm -f conftest conftest.o conftest.c
5221 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5234 for ac_header in getopt.h time.h
5236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5240 cat >>confdefs.h <<_ACEOF
5241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5252 { $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
5253 $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; }
5254 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`
5255 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256 $as_echo_n "(cached) " >&6
5260 #include "confdefs.h"
5263 #include <sys/time.h>
5269 #ifdef HAVE_GETOPT_H
5280 const char* str = NULL;
5282 msg.msg_control = 0;
5283 t = ctime_r(&time, buf);
5286 a = getopt(2, opts, "a");
5288 str = gai_strerror(0);
5289 if(str && t && tv.tv_usec && msg.msg_control)
5294 echo 'void f(){}' >>conftest.c
5295 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5296 eval "cv_prog_cc_flag_needed_$cache=no"
5299 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
5300 eval "cv_prog_cc_flag_needed_$cache=yes"
5302 eval "cv_prog_cc_flag_needed_$cache=fail"
5303 #echo 'Test with flag fails too!'
5305 #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"
5306 #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`
5311 rm -f conftest conftest.c conftest.o
5315 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5317 $as_echo "yes" >&6; }
5319 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"
5321 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 #echo 'Test with flag is no!'
5326 #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"
5327 #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`
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5333 $as_echo "failed" >&6; }
5343 { $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
5344 $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; }
5345 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`
5346 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5347 $as_echo_n "(cached) " >&6
5351 #include "confdefs.h"
5354 #include <sys/time.h>
5360 #ifdef HAVE_GETOPT_H
5371 const char* str = NULL;
5373 msg.msg_control = 0;
5374 t = ctime_r(&time, buf);
5377 a = getopt(2, opts, "a");
5379 str = gai_strerror(0);
5380 if(str && t && tv.tv_usec && msg.msg_control)
5385 echo 'void f(){}' >>conftest.c
5386 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5387 eval "cv_prog_cc_flag_needed_$cache=no"
5390 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
5391 eval "cv_prog_cc_flag_needed_$cache=yes"
5393 eval "cv_prog_cc_flag_needed_$cache=fail"
5394 #echo 'Test with flag fails too!'
5396 #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"
5397 #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`
5402 rm -f conftest conftest.c conftest.o
5406 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5410 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5412 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 #echo 'Test with flag is no!'
5417 #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"
5418 #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`
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5424 $as_echo "failed" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5435 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5436 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5437 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5438 $as_echo_n "(cached) " >&6
5442 #include <stdbool.h>
5449 echo 'void f(){}' >>conftest.c
5450 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5451 eval "cv_prog_cc_flag_needed_$cache=no"
5454 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5455 eval "cv_prog_cc_flag_needed_$cache=yes"
5457 eval "cv_prog_cc_flag_needed_$cache=fail"
5458 #echo 'Test with flag fails too!'
5460 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5461 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5466 rm -f conftest conftest.c conftest.o
5470 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5474 CFLAGS="$CFLAGS $C99FLAG"
5476 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 #echo 'Test with flag is no!'
5481 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5482 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5488 $as_echo "failed" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5499 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5500 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5501 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5502 $as_echo_n "(cached) " >&6
5514 echo 'void f(){}' >>conftest.c
5515 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5516 eval "cv_prog_cc_flag_needed_$cache=no"
5519 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5520 eval "cv_prog_cc_flag_needed_$cache=yes"
5522 eval "cv_prog_cc_flag_needed_$cache=fail"
5523 #echo 'Test with flag fails too!'
5525 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5526 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5531 rm -f conftest conftest.c conftest.o
5535 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537 $as_echo "yes" >&6; }
5539 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5541 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 #echo 'Test with flag is no!'
5546 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5547 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5553 $as_echo "failed" >&6; }
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5564 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5566 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5567 $as_echo_n "(cached) " >&6
5571 #include <netinet/in.h>
5574 struct in6_pktinfo inf;
5575 int a = (int)sizeof(inf);
5579 echo 'void f(){}' >>conftest.c
5580 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5581 eval "cv_prog_cc_flag_needed_$cache=no"
5584 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5585 eval "cv_prog_cc_flag_needed_$cache=yes"
5587 eval "cv_prog_cc_flag_needed_$cache=fail"
5588 #echo 'Test with flag fails too!'
5590 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5591 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5596 rm -f conftest conftest.c conftest.o
5600 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5602 $as_echo "yes" >&6; }
5604 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5606 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 #echo 'Test with flag is no!'
5611 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5612 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5618 $as_echo "failed" >&6; }
5625 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5626 # is not available at all. -D_FRSRESGID is to make this check unique.
5627 # otherwise we would get the previous cached result.
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5632 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5633 cache=_D_GNU_SOURCE__D_FRSRESGID
5634 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5635 $as_echo_n "(cached) " >&6
5642 int a = setresgid(0,0,0);
5643 a = setresuid(0,0,0);
5647 echo 'void f(){}' >>conftest.c
5648 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5649 eval "cv_prog_cc_flag_needed_$cache=no"
5652 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5653 eval "cv_prog_cc_flag_needed_$cache=yes"
5655 eval "cv_prog_cc_flag_needed_$cache=fail"
5656 #echo 'Test with flag fails too!'
5658 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5659 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5664 rm -f conftest conftest.c conftest.o
5668 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5672 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5674 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 #echo 'Test with flag is no!'
5679 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5680 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5686 $as_echo "failed" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5697 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5698 cache=_D_POSIX_C_SOURCE_200112
5699 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5700 $as_echo_n "(cached) " >&6
5704 #include "confdefs.h"
5715 const char* str = NULL;
5716 t = ctime_r(&time, buf);
5717 str = gai_strerror(0);
5723 echo 'void f(){}' >>conftest.c
5724 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5725 eval "cv_prog_cc_flag_needed_$cache=no"
5728 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5729 eval "cv_prog_cc_flag_needed_$cache=yes"
5731 eval "cv_prog_cc_flag_needed_$cache=fail"
5732 #echo 'Test with flag fails too!'
5734 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5735 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5740 rm -f conftest conftest.c conftest.o
5744 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5746 $as_echo "yes" >&6; }
5748 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5750 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 #echo 'Test with flag is no!'
5755 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5756 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5762 $as_echo "failed" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5773 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5774 cache=_D__EXTENSIONS__
5775 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5776 $as_echo_n "(cached) " >&6
5780 #include "confdefs.h"
5783 #include <sys/time.h>
5788 #ifdef HAVE_GETOPT_H
5798 a = getopt(2, opts, "a");
5805 echo 'void f(){}' >>conftest.c
5806 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5807 eval "cv_prog_cc_flag_needed_$cache=no"
5810 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5811 eval "cv_prog_cc_flag_needed_$cache=yes"
5813 eval "cv_prog_cc_flag_needed_$cache=fail"
5814 #echo 'Test with flag fails too!'
5816 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5817 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5822 rm -f conftest conftest.c conftest.o
5826 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 $as_echo "yes" >&6; }
5830 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5832 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 #echo 'Test with flag is no!'
5837 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5838 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5844 $as_echo "failed" >&6; }
5853 # debug mode flags warnings
5854 # Check whether --enable-checking was given.
5855 if test "${enable_checking+set}" = set; then :
5856 enableval=$enable_checking;
5859 # Check whether --enable-debug was given.
5860 if test "${enable_debug+set}" = set; then :
5861 enableval=$enable_debug;
5864 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5865 else debug_enabled="$enable_checking"; fi
5867 case "$debug_enabled" in
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5872 $as_echo_n "checking whether $CC supports -W... " >&6; }
5873 cache=`echo W | sed 'y%.=/+-%___p_%'`
5874 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5875 $as_echo_n "(cached) " >&6
5878 echo 'void f(void){}' >conftest.c
5879 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5880 eval "cv_prog_cc_flag_$cache=yes"
5882 eval "cv_prog_cc_flag_$cache=no"
5884 rm -f conftest conftest.o conftest.c
5888 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5890 $as_echo "yes" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5903 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5904 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5905 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5906 $as_echo_n "(cached) " >&6
5909 echo 'void f(void){}' >conftest.c
5910 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5911 eval "cv_prog_cc_flag_$cache=yes"
5913 eval "cv_prog_cc_flag_$cache=no"
5915 rm -f conftest conftest.o conftest.c
5919 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921 $as_echo "yes" >&6; }
5923 CFLAGS="$CFLAGS -Wall"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5934 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5935 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5936 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5937 $as_echo_n "(cached) " >&6
5940 echo 'void f(void){}' >conftest.c
5941 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5942 eval "cv_prog_cc_flag_$cache=yes"
5944 eval "cv_prog_cc_flag_$cache=no"
5946 rm -f conftest conftest.o conftest.c
5950 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952 $as_echo "yes" >&6; }
5954 CFLAGS="$CFLAGS -Wextra"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5965 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5966 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5967 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5968 $as_echo_n "(cached) " >&6
5971 echo 'void f(void){}' >conftest.c
5972 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5973 eval "cv_prog_cc_flag_$cache=yes"
5975 eval "cv_prog_cc_flag_$cache=no"
5977 rm -f conftest conftest.o conftest.c
5981 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983 $as_echo "yes" >&6; }
5985 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5994 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
6001 if test "$default_cflags" = "yes"; then
6002 # only when CFLAGS was "" at the start, if the users wants to
6003 # override we shouldn't add default cflags, because they wouldn't
6004 # be able to turn off these options and set the CFLAGS wanted.
6006 # Check whether --enable-flto was given.
6007 if test "${enable_flto+set}" = set; then :
6008 enableval=$enable_flto;
6011 if test "x$enable_flto" != "xno"; then :
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
6014 $as_echo_n "checking if $CC supports -flto... " >&6; }
6016 CFLAGS="$CFLAGS -flto"
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6028 if ac_fn_c_try_link "$LINENO"; then :
6030 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6036 $as_echo "yes" >&6; }
6038 rm -f conftest conftest.c conftest.o
6041 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6044 rm -f core conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6050 # Check whether --enable-pie was given.
6051 if test "${enable_pie+set}" = set; then :
6052 enableval=$enable_pie;
6055 if test "x$enable_pie" = "xyes"; then :
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
6058 $as_echo_n "checking if $CC supports PIE... " >&6; }
6059 BAKLDFLAGS="$LDFLAGS"
6061 LDFLAGS="$LDFLAGS -pie"
6062 CFLAGS="$CFLAGS -fPIE"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6074 if ac_fn_c_try_link "$LINENO"; then :
6076 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6077 LDFLAGS="$BAKLDFLAGS"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6082 $as_echo "yes" >&6; }
6084 rm -f conftest conftest.c conftest.o
6087 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6090 rm -f core conftest.err conftest.$ac_objext \
6091 conftest$ac_exeext conftest.$ac_ext
6096 # Check whether --enable-relro_now was given.
6097 if test "${enable_relro_now+set}" = set; then :
6098 enableval=$enable_relro_now;
6101 if test "x$enable_relro_now" = "xyes"; then :
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6104 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6105 BAKLDFLAGS="$LDFLAGS"
6106 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6118 if ac_fn_c_try_link "$LINENO"; then :
6120 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6121 LDFLAGS="$BAKLDFLAGS"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6126 $as_echo "yes" >&6; }
6128 rm -f conftest conftest.c conftest.o
6131 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6134 rm -f core conftest.err conftest.$ac_objext \
6135 conftest$ac_exeext conftest.$ac_ext
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6142 $as_echo_n "checking for inline... " >&6; }
6143 if ${ac_cv_c_inline+:} false; then :
6144 $as_echo_n "(cached) " >&6
6147 for ac_kw in inline __inline__ __inline; do
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6152 static $ac_kw foo_t static_foo () {return 0; }
6153 $ac_kw foo_t foo () {return 0; }
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158 ac_cv_c_inline=$ac_kw
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 test "$ac_cv_c_inline" != no && break
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6166 $as_echo "$ac_cv_c_inline" >&6; }
6168 case $ac_cv_c_inline in
6171 case $ac_cv_c_inline in
6173 *) ac_val=$ac_cv_c_inline;;
6175 cat >>confdefs.h <<_ACEOF
6177 #define inline $ac_val
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6185 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6186 if ${ac_cv_c_format_attribute+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 ac_cv_c_format_attribute=no
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6193 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6194 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207 ac_cv_c_format_attribute="yes"
6209 ac_cv_c_format_attribute="no"
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6217 $as_echo "$ac_cv_c_format_attribute" >&6; }
6218 if test $ac_cv_c_format_attribute = yes; then
6220 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6226 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6227 if ${ac_cv_c_unused_attribute+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 ac_cv_c_unused_attribute=no
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6234 void f (char *u __attribute__((unused)));
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247 ac_cv_c_unused_attribute="yes"
6249 ac_cv_c_unused_attribute="no"
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6259 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6260 if test $ac_cv_c_unused_attribute = yes; then
6262 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6270 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6271 if ${ac_cv_c_weak_attribute+:} false; then :
6272 $as_echo_n "(cached) " >&6
6274 ac_cv_c_weak_attribute=no
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 __attribute__((weak)) void f(int x) { printf("%d", x); }
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_c_weak_attribute="yes"
6293 ac_cv_c_weak_attribute="no"
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6301 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6302 if test $ac_cv_c_weak_attribute = yes; then
6304 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6307 $as_echo "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute" >&5
6315 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"noreturn\" attribute... " >&6; }
6316 if ${ac_cv_c_noreturn_attribute+:} false; then :
6317 $as_echo_n "(cached) " >&6
6319 ac_cv_c_noreturn_attribute=no
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 __attribute__((noreturn)) void f(int x) { printf("%d", x); }
6335 if ac_fn_c_try_compile "$LINENO"; then :
6336 ac_cv_c_noreturn_attribute="yes"
6338 ac_cv_c_noreturn_attribute="no"
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_noreturn_attribute" >&5
6346 $as_echo "$ac_cv_c_noreturn_attribute" >&6; }
6347 if test $ac_cv_c_noreturn_attribute = yes; then
6349 $as_echo "#define HAVE_ATTR_NORETURN 1" >>confdefs.h
6352 $as_echo "#define ATTR_NORETURN __attribute__((__noreturn__))" >>confdefs.h
6357 if test "$srcdir" != "."; then
6358 CPPFLAGS="$CPPFLAGS -I$srcdir"
6365 for ac_prog in flex lex
6367 # Extract the first word of "$ac_prog", so it can be a program name with args.
6368 set dummy $ac_prog; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_LEX+:} false; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$LEX"; then
6375 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_LEX="$ac_prog"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 if test -n "$LEX"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6397 $as_echo "$LEX" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6404 test -n "$LEX" && break
6406 test -n "$LEX" || LEX=":"
6408 if test "x$LEX" != "x:"; then
6409 cat >conftest.l <<_ACEOF
6415 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6416 yyless ((input () != 0)); }
6417 f { unput (yytext[0]); }
6418 . { BEGIN INITIAL; }
6420 #ifdef YYTEXT_POINTER
6421 extern char *yytext;
6426 return ! yylex () + ! yywrap ();
6429 { { ac_try="$LEX conftest.l"
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6435 $as_echo "$ac_try_echo"; } >&5
6436 (eval "$LEX conftest.l") 2>&5
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6441 $as_echo_n "checking lex output file root... " >&6; }
6442 if ${ac_cv_prog_lex_root+:} false; then :
6443 $as_echo_n "(cached) " >&6
6446 if test -f lex.yy.c; then
6447 ac_cv_prog_lex_root=lex.yy
6448 elif test -f lexyy.c; then
6449 ac_cv_prog_lex_root=lexyy
6451 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6455 $as_echo "$ac_cv_prog_lex_root" >&6; }
6456 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6458 if test -z "${LEXLIB+set}"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6460 $as_echo_n "checking lex library... " >&6; }
6461 if ${ac_cv_lib_lex+:} false; then :
6462 $as_echo_n "(cached) " >&6
6466 ac_cv_lib_lex='none needed'
6467 for ac_lib in '' -lfl -ll; do
6468 LIBS="$ac_lib $ac_save_LIBS"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 `cat $LEX_OUTPUT_ROOT.c`
6473 if ac_fn_c_try_link "$LINENO"; then :
6474 ac_cv_lib_lex=$ac_lib
6476 rm -f core conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478 test "$ac_cv_lib_lex" != 'none needed' && break
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6484 $as_echo "$ac_cv_lib_lex" >&6; }
6485 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6490 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6491 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 # POSIX says lex can declare yytext either as a pointer or an array; the
6495 # default is implementation-dependent. Figure out which it is, since
6496 # not all implementations provide the %pointer and %array declarations.
6497 ac_cv_prog_lex_yytext_pointer=no
6499 LIBS="$LEXLIB $ac_save_LIBS"
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6503 #define YYTEXT_POINTER 1
6504 `cat $LEX_OUTPUT_ROOT.c`
6506 if ac_fn_c_try_link "$LINENO"; then :
6507 ac_cv_prog_lex_yytext_pointer=yes
6509 rm -f core conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6515 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6516 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6518 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6521 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6524 if test "$LEX" != "" -a "$LEX" != ":"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6527 $as_echo_n "checking for yylex_destroy... " >&6; }
6528 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6530 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6533 $as_echo "yes" >&6; }
6534 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; };
6540 if test "$LEX" != "" -a "$LEX" != ":"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lex %option" >&5
6543 $as_echo_n "checking for lex %option... " >&6; }
6544 if cat <<EOF | $LEX -t 2>&1 | grep yy_delete_buffer >/dev/null 2>&1; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6549 $as_echo "yes" >&6; }
6550 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; };
6556 for ac_prog in 'bison -y' byacc
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy $ac_prog; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_YACC+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$YACC"; then
6566 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_YACC="$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 YACC=$ac_cv_prog_YACC
6586 if test -n "$YACC"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6588 $as_echo "$YACC" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 test -n "$YACC" && break
6597 test -n "$YACC" || YACC="yacc"
6599 # Extract the first word of "doxygen", so it can be a program name with args.
6600 set dummy doxygen; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_doxygen+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 if test -n "$doxygen"; then
6607 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_doxygen="doxygen"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 doxygen=$ac_cv_prog_doxygen
6627 if test -n "$doxygen"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6629 $as_echo "$doxygen" >&6; }
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}strip; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_STRIP+:} false; then :
6642 $as_echo_n "(cached) " >&6
6644 if test -n "$STRIP"; then
6645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 STRIP=$ac_cv_prog_STRIP
6665 if test -n "$STRIP"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6667 $as_echo "$STRIP" >&6; }
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6675 if test -z "$ac_cv_prog_STRIP"; then
6677 # Extract the first word of "strip", so it can be a program name with args.
6678 set dummy strip; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$ac_ct_STRIP"; then
6685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_STRIP="strip"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6705 if test -n "$ac_ct_STRIP"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6707 $as_echo "$ac_ct_STRIP" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6713 if test "x$ac_ct_STRIP" = x; then
6716 case $cross_compiling:$ac_tool_warned in
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6725 STRIP="$ac_cv_prog_STRIP"
6729 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6730 if test -f "$ac_dir/install-sh"; then
6732 ac_install_sh="$ac_aux_dir/install-sh -c"
6734 elif test -f "$ac_dir/install.sh"; then
6736 ac_install_sh="$ac_aux_dir/install.sh -c"
6738 elif test -f "$ac_dir/shtool"; then
6740 ac_install_sh="$ac_aux_dir/shtool install -c"
6744 if test -z "$ac_aux_dir"; then
6745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6748 # These three variables are undocumented and unsupported,
6749 # and are intended to be withdrawn in a future Autoconf release.
6750 # They can cause serious problems if a builder's source tree is in a directory
6751 # whose full name contains unusual characters.
6752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6757 # Make sure we can run config.sub.
6758 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6759 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6762 $as_echo_n "checking build system type... " >&6; }
6763 if ${ac_cv_build+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 ac_build_alias=$build_alias
6767 test "x$ac_build_alias" = x &&
6768 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6769 test "x$ac_build_alias" = x &&
6770 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6771 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6772 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6776 $as_echo "$ac_cv_build" >&6; }
6777 case $ac_cv_build in
6779 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6782 ac_save_IFS=$IFS; IFS='-'
6788 # Remember, the first character of IFS is used to create $*,
6789 # except with old shells:
6792 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6796 $as_echo_n "checking host system type... " >&6; }
6797 if ${ac_cv_host+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test "x$host_alias" = x; then
6801 ac_cv_host=$ac_cv_build
6803 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6809 $as_echo "$ac_cv_host" >&6; }
6812 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6815 ac_save_IFS=$IFS; IFS='-'
6821 # Remember, the first character of IFS is used to create $*,
6822 # except with old shells:
6825 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6829 # skip these tests, we do not need them.
6838 # always use ./libtool unless override from commandline (libtool=mylibtool)
6839 if test -z "$libtool"; then
6843 # avoid libtool max commandline length test on systems that fork slowly.
6845 if echo "$host_os" | grep "sunos4" >/dev/null; then
6846 lt_cv_sys_max_cmd_len=32750;
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ar; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_path_AR+:} false; then :
6854 $as_echo_n "(cached) " >&6
6858 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 if test -n "$AR"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6882 $as_echo "$AR" >&6; }
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6890 if test -z "$ac_cv_path_AR"; then
6892 # Extract the first word of "ar", so it can be a program name with args.
6893 set dummy ar; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_path_ac_pt_AR+:} false; then :
6897 $as_echo_n "(cached) " >&6
6901 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 ac_pt_AR=$ac_cv_path_ac_pt_AR
6923 if test -n "$ac_pt_AR"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6925 $as_echo "$ac_pt_AR" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6931 if test "x$ac_pt_AR" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6946 if test $AR = false; then
6947 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6953 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6958 macro_version='2.4.6'
6959 macro_revision='2.4.6'
6973 ltmain=$ac_aux_dir/ltmain.sh
6975 # Backslashify metacharacters that are still active within
6976 # double-quoted strings.
6977 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6979 # Same as above, but do not quote variable references.
6980 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6982 # Sed substitution to delay expansion of an escaped shell variable in a
6983 # double_quote_subst'ed string.
6984 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6986 # Sed substitution to delay expansion of an escaped single quote.
6987 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6989 # Sed substitution to avoid accidental globbing in evaled expressions
6990 no_glob_subst='s/\*/\\\*/g'
6992 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6997 $as_echo_n "checking how to print strings... " >&6; }
6998 # Test print first, because it will be a builtin if present.
6999 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7000 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7002 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7005 # Use this function as a fallback that always works.
7006 func_fallback_echo ()
7008 eval 'cat <<_LTECHO_EOF
7012 ECHO='func_fallback_echo'
7015 # func_echo_all arg...
7016 # Invoke $ECHO with all args, space-separated.
7023 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7024 $as_echo "printf" >&6; } ;;
7025 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7026 $as_echo "print -r" >&6; } ;;
7027 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7028 $as_echo "cat" >&6; } ;;
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7045 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7046 if ${ac_cv_path_SED+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7050 for ac_i in 1 2 3 4 5 6 7; do
7051 ac_script="$ac_script$as_nl$ac_script"
7053 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7054 { ac_script=; unset ac_script;}
7055 if test -z "$SED"; then
7056 ac_path_SED_found=false
7057 # Loop through the user's path and test for each of PROGNAME-LIST
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_prog in sed gsed; do
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7066 as_fn_executable_p "$ac_path_SED" || continue
7067 # Check for GNU ac_path_SED and select it if it is found.
7068 # Check for GNU $ac_path_SED
7069 case `"$ac_path_SED" --version 2>&1` in
7071 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7074 $as_echo_n 0123456789 >"conftest.in"
7077 cat "conftest.in" "conftest.in" >"conftest.tmp"
7078 mv "conftest.tmp" "conftest.in"
7079 cp "conftest.in" "conftest.nl"
7080 $as_echo '' >> "conftest.nl"
7081 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7083 as_fn_arith $ac_count + 1 && ac_count=$as_val
7084 if test $ac_count -gt ${ac_path_SED_max-0}; then
7085 # Best one so far, save it but keep looking for a better one
7086 ac_cv_path_SED="$ac_path_SED"
7087 ac_path_SED_max=$ac_count
7089 # 10*(2^10) chars as input seems more than enough
7090 test $ac_count -gt 10 && break
7092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7095 $ac_path_SED_found && break 3
7100 if test -z "$ac_cv_path_SED"; then
7101 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7109 $as_echo "$ac_cv_path_SED" >&6; }
7110 SED="$ac_cv_path_SED"
7113 test -z "$SED" && SED=sed
7114 Xsed="$SED -e 1s/^X//"
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7127 $as_echo_n "checking for fgrep... " >&6; }
7128 if ${ac_cv_path_FGREP+:} false; then :
7129 $as_echo_n "(cached) " >&6
7131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7132 then ac_cv_path_FGREP="$GREP -F"
7134 if test -z "$FGREP"; then
7135 ac_path_FGREP_found=false
7136 # Loop through the user's path and test for each of PROGNAME-LIST
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7141 test -z "$as_dir" && as_dir=.
7142 for ac_prog in fgrep; do
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7145 as_fn_executable_p "$ac_path_FGREP" || continue
7146 # Check for GNU ac_path_FGREP and select it if it is found.
7147 # Check for GNU $ac_path_FGREP
7148 case `"$ac_path_FGREP" --version 2>&1` in
7150 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7153 $as_echo_n 0123456789 >"conftest.in"
7156 cat "conftest.in" "conftest.in" >"conftest.tmp"
7157 mv "conftest.tmp" "conftest.in"
7158 cp "conftest.in" "conftest.nl"
7159 $as_echo 'FGREP' >> "conftest.nl"
7160 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7162 as_fn_arith $ac_count + 1 && ac_count=$as_val
7163 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7164 # Best one so far, save it but keep looking for a better one
7165 ac_cv_path_FGREP="$ac_path_FGREP"
7166 ac_path_FGREP_max=$ac_count
7168 # 10*(2^10) chars as input seems more than enough
7169 test $ac_count -gt 10 && break
7171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7174 $ac_path_FGREP_found && break 3
7179 if test -z "$ac_cv_path_FGREP"; then
7180 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7183 ac_cv_path_FGREP=$FGREP
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7189 $as_echo "$ac_cv_path_FGREP" >&6; }
7190 FGREP="$ac_cv_path_FGREP"
7193 test -z "$GREP" && GREP=grep
7213 # Check whether --with-gnu-ld was given.
7214 if test "${with_gnu_ld+set}" = set; then :
7215 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7221 if test yes = "$GCC"; then
7222 # Check if gcc -print-prog-name=ld gives a path.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7224 $as_echo_n "checking for ld used by $CC... " >&6; }
7227 # gcc leaves a trailing carriage return, which upsets mingw
7228 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7230 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7233 # Accept absolute paths.
7235 re_direlt='/[^/][^/]*/\.\./'
7236 # Canonicalize the pathname of ld
7237 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7238 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7239 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7241 test -z "$LD" && LD=$ac_prog
7244 # If it fails, then pretend we aren't using GCC.
7248 # If it is relative, then search for the first ld in PATH.
7252 elif test yes = "$with_gnu_ld"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7254 $as_echo_n "checking for GNU ld... " >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7257 $as_echo_n "checking for non-GNU ld... " >&6; }
7259 if ${lt_cv_path_LD+:} false; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -z "$LD"; then
7263 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7264 for ac_dir in $PATH; do
7266 test -z "$ac_dir" && ac_dir=.
7267 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7268 lt_cv_path_LD=$ac_dir/$ac_prog
7269 # Check to see if the program is GNU ld. I'd rather use --version,
7270 # but apparently some variants of GNU ld only accept -v.
7271 # Break only if it was the GNU/non-GNU ld that we prefer.
7272 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7273 *GNU* | *'with BFD'*)
7274 test no != "$with_gnu_ld" && break
7277 test yes != "$with_gnu_ld" && break
7284 lt_cv_path_LD=$LD # Let the user override the test with a path.
7289 if test -n "$LD"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7291 $as_echo "$LD" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7296 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7298 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7299 if ${lt_cv_prog_gnu_ld+:} false; then :
7300 $as_echo_n "(cached) " >&6
7302 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7303 case `$LD -v 2>&1 </dev/null` in
7304 *GNU* | *'with BFD'*)
7305 lt_cv_prog_gnu_ld=yes
7308 lt_cv_prog_gnu_ld=no
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7313 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7314 with_gnu_ld=$lt_cv_prog_gnu_ld
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7325 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7326 if ${lt_cv_path_NM+:} false; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -n "$NM"; then
7330 # Let the user override the test.
7333 lt_nm_to_check=${ac_tool_prefix}nm
7334 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7335 lt_nm_to_check="$lt_nm_to_check nm"
7337 for lt_tmp_nm in $lt_nm_to_check; do
7338 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7339 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7341 test -z "$ac_dir" && ac_dir=.
7342 tmp_nm=$ac_dir/$lt_tmp_nm
7343 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7344 # Check to see if the nm accepts a BSD-compat flag.
7345 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7346 # nm: unknown option "B" ignored
7347 # Tru64's nm complains that /dev/null is an invalid object file
7348 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7350 mingw*) lt_bad_file=conftest.nm/nofile ;;
7351 *) lt_bad_file=/dev/null ;;
7353 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7354 *$lt_bad_file* | *'Invalid file or object type'*)
7355 lt_cv_path_NM="$tmp_nm -B"
7359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7361 lt_cv_path_NM="$tmp_nm -p"
7365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7366 continue # so that we can try to find one that supports BSD flags
7375 : ${lt_cv_path_NM=no}
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7379 $as_echo "$lt_cv_path_NM" >&6; }
7380 if test no != "$lt_cv_path_NM"; then
7383 # Didn't find any BSD compatible name lister, look for dumpbin.
7384 if test -n "$DUMPBIN"; then :
7385 # Let the user override the test.
7387 if test -n "$ac_tool_prefix"; then
7388 for ac_prog in dumpbin "link -dump"
7390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_DUMPBIN+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$DUMPBIN"; then
7398 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 DUMPBIN=$ac_cv_prog_DUMPBIN
7418 if test -n "$DUMPBIN"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7420 $as_echo "$DUMPBIN" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7427 test -n "$DUMPBIN" && break
7430 if test -z "$DUMPBIN"; then
7431 ac_ct_DUMPBIN=$DUMPBIN
7432 for ac_prog in dumpbin "link -dump"
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$ac_ct_DUMPBIN"; then
7442 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7462 if test -n "$ac_ct_DUMPBIN"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7464 $as_echo "$ac_ct_DUMPBIN" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$ac_ct_DUMPBIN" && break
7474 if test "x$ac_ct_DUMPBIN" = x; then
7477 case $cross_compiling:$ac_tool_warned in
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7483 DUMPBIN=$ac_ct_DUMPBIN
7487 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7489 DUMPBIN="$DUMPBIN -symbols -headers"
7497 if test : != "$DUMPBIN"; then
7501 test -z "$NM" && NM=nm
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7510 if ${lt_cv_nm_interface+:} false; then :
7511 $as_echo_n "(cached) " >&6
7513 lt_cv_nm_interface="BSD nm"
7514 echo "int some_variable = 0;" > conftest.$ac_ext
7515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7516 (eval "$ac_compile" 2>conftest.err)
7517 cat conftest.err >&5
7518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7520 cat conftest.err >&5
7521 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7522 cat conftest.out >&5
7523 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7524 lt_cv_nm_interface="MS dumpbin"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7529 $as_echo "$lt_cv_nm_interface" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7532 $as_echo_n "checking whether ln -s works... " >&6; }
7534 if test "$LN_S" = "ln -s"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7536 $as_echo "yes" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7539 $as_echo "no, using $LN_S" >&6; }
7542 # find the maximum length of command line arguments
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7545 if ${lt_cv_sys_max_cmd_len+:} false; then :
7546 $as_echo_n "(cached) " >&6
7553 # On DJGPP, this test can blow up pretty badly due to problems in libc
7554 # (any single argument exceeding 2000 bytes causes a buffer overrun
7555 # during glob expansion). Even if it were fixed, the result of this
7556 # check would be larger than it should be.
7557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7561 # Under GNU Hurd, this test is not required because there is
7562 # no limit to the length of command line arguments.
7563 # Libtool will interpret -1 as no limit whatsoever
7564 lt_cv_sys_max_cmd_len=-1;
7567 cygwin* | mingw* | cegcc*)
7568 # On Win9x/ME, this test blows up -- it succeeds, but takes
7569 # about 5 minutes as the teststring grows exponentially.
7570 # Worse, since 9x/ME are not pre-emptively multitasking,
7571 # you end up with a "frozen" computer, even though with patience
7572 # the test eventually succeeds (with a max line length of 256k).
7573 # Instead, let's just punt: use the minimum linelength reported by
7574 # all of the supported platforms: 8192 (on NT/2K/XP).
7575 lt_cv_sys_max_cmd_len=8192;
7579 # On MiNT this can take a long time and run out of memory.
7580 lt_cv_sys_max_cmd_len=8192;
7584 # On AmigaOS with pdksh, this test takes hours, literally.
7585 # So we just punt and use a minimum line length of 8192.
7586 lt_cv_sys_max_cmd_len=8192;
7589 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7590 # This has been around since 386BSD, at least. Likely further.
7591 if test -x /sbin/sysctl; then
7592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7593 elif test -x /usr/sbin/sysctl; then
7594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7598 # And add a safety zone
7599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7605 lt_cv_sys_max_cmd_len=196608
7609 # The test takes a long time on OS/2.
7610 lt_cv_sys_max_cmd_len=8192
7614 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7615 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7616 # nice to cause kernel panics so lets avoid the loop below.
7617 # First set a reasonable default.
7618 lt_cv_sys_max_cmd_len=16384
7620 if test -x /sbin/sysconfig; then
7621 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7622 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7627 lt_cv_sys_max_cmd_len=102400
7629 sysv5* | sco5v6* | sysv4.2uw2*)
7630 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7631 if test -n "$kargmax"; then
7632 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7634 lt_cv_sys_max_cmd_len=32768
7638 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7639 if test -n "$lt_cv_sys_max_cmd_len" && \
7640 test undefined != "$lt_cv_sys_max_cmd_len"; then
7641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7644 # Make teststring a little bigger before we do anything with it.
7645 # a 1K string should be a reasonable start.
7646 for i in 1 2 3 4 5 6 7 8; do
7647 teststring=$teststring$teststring
7649 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7650 # If test is not a shell built-in, we'll probably end up computing a
7651 # maximum length that is only half of the actual maximum length, but
7653 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7654 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7655 test 17 != "$i" # 1/2 MB should be enough
7658 teststring=$teststring$teststring
7660 # Only check the string length outside the loop.
7661 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7663 # Add a significant safety factor because C++ compilers can tack on
7664 # massive amounts of additional arguments before passing them to the
7665 # linker. It appears as though 1/2 is a usable value.
7666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7673 if test -n "$lt_cv_sys_max_cmd_len"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7678 $as_echo "none" >&6; }
7680 max_cmd_len=$lt_cv_sys_max_cmd_len
7691 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7701 # test EBCDIC or ASCII
7702 case `echo X|tr X '\101'` in
7703 A) # ASCII based system
7704 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7705 lt_SP2NL='tr \040 \012'
7706 lt_NL2SP='tr \015\012 \040\040'
7708 *) # EBCDIC based system
7709 lt_SP2NL='tr \100 \n'
7710 lt_NL2SP='tr \r\n \100\100'
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7723 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7724 if ${lt_cv_to_host_file_cmd+:} false; then :
7725 $as_echo_n "(cached) " >&6
7730 *-*-mingw* ) # actually msys
7731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7734 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7736 * ) # otherwise, assume *nix
7737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7743 *-*-mingw* ) # actually msys
7744 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7747 lt_cv_to_host_file_cmd=func_convert_file_noop
7749 * ) # otherwise, assume *nix
7750 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7754 * ) # unhandled hosts (and "normal" native builds)
7755 lt_cv_to_host_file_cmd=func_convert_file_noop
7761 to_host_file_cmd=$lt_cv_to_host_file_cmd
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7763 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7770 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7771 if ${lt_cv_to_tool_file_cmd+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 #assume ordinary cross tools, or native build.
7775 lt_cv_to_tool_file_cmd=func_convert_file_noop
7779 *-*-mingw* ) # actually msys
7780 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7788 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7790 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7797 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7798 if ${lt_cv_ld_reload_flag+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_ld_reload_flag='-r'
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7804 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7805 reload_flag=$lt_cv_ld_reload_flag
7806 case $reload_flag in
7808 *) reload_flag=" $reload_flag" ;;
7810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7812 cygwin* | mingw* | pw32* | cegcc*)
7813 if test yes != "$GCC"; then
7818 if test yes = "$GCC"; then
7819 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_prog_OBJDUMP+:} false; then :
7840 $as_echo_n "(cached) " >&6
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 OBJDUMP=$ac_cv_prog_OBJDUMP
7863 if test -n "$OBJDUMP"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7865 $as_echo "$OBJDUMP" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test -z "$ac_cv_prog_OBJDUMP"; then
7874 ac_ct_OBJDUMP=$OBJDUMP
7875 # Extract the first word of "objdump", so it can be a program name with args.
7876 set dummy objdump; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 if test -n "$ac_ct_OBJDUMP"; then
7883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7903 if test -n "$ac_ct_OBJDUMP"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7905 $as_echo "$ac_ct_OBJDUMP" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 if test "x$ac_ct_OBJDUMP" = x; then
7914 case $cross_compiling:$ac_tool_warned in
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7920 OBJDUMP=$ac_ct_OBJDUMP
7923 OBJDUMP="$ac_cv_prog_OBJDUMP"
7926 test -z "$OBJDUMP" && OBJDUMP=objdump
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7937 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7938 if ${lt_cv_deplibs_check_method+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 lt_cv_file_magic_cmd='$MAGIC_CMD'
7942 lt_cv_file_magic_test_file=
7943 lt_cv_deplibs_check_method='unknown'
7944 # Need to set the preceding variable on all platforms that support
7945 # interlibrary dependencies.
7946 # 'none' -- dependencies not supported.
7947 # 'unknown' -- same as none, but documents that we really don't know.
7948 # 'pass_all' -- all dependencies passed with no checks.
7949 # 'test_compile' -- check by making test program.
7950 # 'file_magic [[regex]]' -- check by looking for files in library path
7951 # that responds to the $file_magic_cmd with a given extended regex.
7952 # If you have 'file' or equivalent on your system and you're not sure
7953 # whether 'pass_all' will *always* work, you probably want this one.
7957 lt_cv_deplibs_check_method=pass_all
7961 lt_cv_deplibs_check_method=pass_all
7965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7966 lt_cv_file_magic_cmd='/usr/bin/file -L'
7967 lt_cv_file_magic_test_file=/shlib/libc.so
7971 # func_win32_libid is a shell function defined in ltmain.sh
7972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7973 lt_cv_file_magic_cmd='func_win32_libid'
7977 # Base MSYS/MinGW do not provide the 'file' command needed by
7978 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7979 # unless we find 'file', for example because we are cross-compiling.
7980 if ( file / ) >/dev/null 2>&1; then
7981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7982 lt_cv_file_magic_cmd='func_win32_libid'
7984 # Keep this pattern in sync with the one in func_win32_libid.
7985 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7986 lt_cv_file_magic_cmd='$OBJDUMP -f'
7991 # use the weaker test based on 'objdump'. See mingw*.
7992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7993 lt_cv_file_magic_cmd='$OBJDUMP -f'
7996 darwin* | rhapsody*)
7997 lt_cv_deplibs_check_method=pass_all
8000 freebsd* | dragonfly*)
8001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8004 # Not sure whether the presence of OpenBSD here was a mistake.
8005 # Let's accept both of them until this is cleared up.
8006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8007 lt_cv_file_magic_cmd=/usr/bin/file
8008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8012 lt_cv_deplibs_check_method=pass_all
8017 lt_cv_deplibs_check_method=pass_all
8020 hpux10.20* | hpux11*)
8021 lt_cv_file_magic_cmd=/usr/bin/file
8024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8025 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8028 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]'
8029 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8033 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8039 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8043 irix5* | irix6* | nonstopux*)
8045 *-32|*"-32 ") libmagic=32-bit;;
8046 *-n32|*"-n32 ") libmagic=N32;;
8047 *-64|*"-64 ") libmagic=64-bit;;
8048 *) libmagic=never-match;;
8050 lt_cv_deplibs_check_method=pass_all
8053 # This must be glibc/ELF.
8054 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8055 lt_cv_deplibs_check_method=pass_all
8059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8068 lt_cv_file_magic_cmd=/usr/bin/file
8069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8073 lt_cv_deplibs_check_method=pass_all
8077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8084 osf3* | osf4* | osf5*)
8085 lt_cv_deplibs_check_method=pass_all
8089 lt_cv_deplibs_check_method=pass_all
8093 lt_cv_deplibs_check_method=pass_all
8096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8097 lt_cv_deplibs_check_method=pass_all
8101 case $host_vendor in
8103 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]'
8104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8107 lt_cv_deplibs_check_method=pass_all
8110 lt_cv_file_magic_cmd='/bin/file'
8111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8114 lt_cv_file_magic_cmd='/bin/file'
8115 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8116 lt_cv_file_magic_test_file=/lib/libc.so
8119 lt_cv_deplibs_check_method=pass_all
8122 lt_cv_deplibs_check_method=pass_all
8128 lt_cv_deplibs_check_method=pass_all
8131 lt_cv_deplibs_check_method=pass_all
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8137 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8141 if test "$build" = "$host"; then
8144 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8147 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8153 file_magic_cmd=$lt_cv_file_magic_cmd
8154 deplibs_check_method=$lt_cv_deplibs_check_method
8155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8178 if test -n "$ac_tool_prefix"; then
8179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_DLLTOOL+:} false; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -n "$DLLTOOL"; then
8187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 DLLTOOL=$ac_cv_prog_DLLTOOL
8207 if test -n "$DLLTOOL"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8209 $as_echo "$DLLTOOL" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8217 if test -z "$ac_cv_prog_DLLTOOL"; then
8218 ac_ct_DLLTOOL=$DLLTOOL
8219 # Extract the first word of "dlltool", so it can be a program name with args.
8220 set dummy dlltool; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8224 $as_echo_n "(cached) " >&6
8226 if test -n "$ac_ct_DLLTOOL"; then
8227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8247 if test -n "$ac_ct_DLLTOOL"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8249 $as_echo "$ac_ct_DLLTOOL" >&6; }
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8255 if test "x$ac_ct_DLLTOOL" = x; then
8258 case $cross_compiling:$ac_tool_warned in
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262 ac_tool_warned=yes ;;
8264 DLLTOOL=$ac_ct_DLLTOOL
8267 DLLTOOL="$ac_cv_prog_DLLTOOL"
8270 test -z "$DLLTOOL" && DLLTOOL=dlltool
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8282 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8283 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 lt_cv_sharedlib_from_linklib_cmd='unknown'
8289 cygwin* | mingw* | pw32* | cegcc*)
8290 # two different shell functions defined in ltmain.sh;
8291 # decide which one to use based on capabilities of $DLLTOOL
8292 case `$DLLTOOL --help 2>&1` in
8293 *--identify-strict*)
8294 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8297 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8302 # fallback: assume linklib IS sharedlib
8303 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8309 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8310 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8311 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8319 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_AR+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$AR"; then
8330 ac_cv_prog_AR="$AR" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 if test -n "$AR"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8352 $as_echo "$AR" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8359 test -n "$AR" && break
8362 if test -z "$AR"; then
8366 # Extract the first word of "$ac_prog", so it can be a program name with args.
8367 set dummy $ac_prog; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8371 $as_echo_n "(cached) " >&6
8373 if test -n "$ac_ct_AR"; then
8374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_ac_ct_AR="$ac_prog"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8394 if test -n "$ac_ct_AR"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8396 $as_echo "$ac_ct_AR" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8403 test -n "$ac_ct_AR" && break
8406 if test "x$ac_ct_AR" = x; then
8409 case $cross_compiling:$ac_tool_warned in
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8413 ac_tool_warned=yes ;;
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8433 $as_echo_n "checking for archiver @FILE support... " >&6; }
8434 if ${lt_cv_ar_at_file+:} false; then :
8435 $as_echo_n "(cached) " >&6
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 echo conftest.$ac_objext > conftest.lst
8451 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8453 (eval $lt_ar_try) 2>&5
8455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456 test $ac_status = 0; }
8457 if test 0 -eq "$ac_status"; then
8458 # Ensure the archiver fails upon bogus file names.
8459 rm -f conftest.$ac_objext libconftest.a
8460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8461 (eval $lt_ar_try) 2>&5
8463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8464 test $ac_status = 0; }
8465 if test 0 -ne "$ac_status"; then
8469 rm -f conftest.* libconftest.a
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8476 $as_echo "$lt_cv_ar_at_file" >&6; }
8478 if test no = "$lt_cv_ar_at_file"; then
8481 archiver_list_spec=$lt_cv_ar_at_file
8490 if test -n "$ac_tool_prefix"; then
8491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}strip; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_STRIP+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 if test -n "$STRIP"; then
8499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 STRIP=$ac_cv_prog_STRIP
8519 if test -n "$STRIP"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8521 $as_echo "$STRIP" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8529 if test -z "$ac_cv_prog_STRIP"; then
8531 # Extract the first word of "strip", so it can be a program name with args.
8532 set dummy strip; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 if test -n "$ac_ct_STRIP"; then
8539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_ac_ct_STRIP="strip"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8559 if test -n "$ac_ct_STRIP"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8561 $as_echo "$ac_ct_STRIP" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 if test "x$ac_ct_STRIP" = x; then
8570 case $cross_compiling:$ac_tool_warned in
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8579 STRIP="$ac_cv_prog_STRIP"
8582 test -z "$STRIP" && STRIP=:
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if ${ac_cv_prog_RANLIB+:} false; then :
8595 $as_echo_n "(cached) " >&6
8597 if test -n "$RANLIB"; then
8598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 RANLIB=$ac_cv_prog_RANLIB
8618 if test -n "$RANLIB"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8620 $as_echo "$RANLIB" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_RANLIB"; then
8629 ac_ct_RANLIB=$RANLIB
8630 # Extract the first word of "ranlib", so it can be a program name with args.
8631 set dummy ranlib; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8635 $as_echo_n "(cached) " >&6
8637 if test -n "$ac_ct_RANLIB"; then
8638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_prog_ac_ct_RANLIB="ranlib"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8658 if test -n "$ac_ct_RANLIB"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8660 $as_echo "$ac_ct_RANLIB" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8666 if test "x$ac_ct_RANLIB" = x; then
8669 case $cross_compiling:$ac_tool_warned in
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8675 RANLIB=$ac_ct_RANLIB
8678 RANLIB="$ac_cv_prog_RANLIB"
8681 test -z "$RANLIB" && RANLIB=:
8688 # Determine commands to create old-style static archives.
8689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8690 old_postinstall_cmds='chmod 644 $oldlib'
8691 old_postuninstall_cmds=
8693 if test -n "$RANLIB"; then
8696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8707 lock_old_archive_extraction=yes ;;
8709 lock_old_archive_extraction=no ;;
8732 for ac_prog in gawk mawk nawk awk
8734 # Extract the first word of "$ac_prog", so it can be a program name with args.
8735 set dummy $ac_prog; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_prog_AWK+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 if test -n "$AWK"; then
8742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751 ac_cv_prog_AWK="$ac_prog"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 if test -n "$AWK"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8764 $as_echo "$AWK" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8771 test -n "$AWK" && break
8792 # If no C compiler was specified, use CC.
8795 # If no C compiler flags were specified, use CFLAGS.
8796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8798 # Allow CC to be a program name with arguments.
8802 # Check for command to grab the raw symbol name followed by C symbol from nm.
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8804 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8805 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8806 $as_echo_n "(cached) " >&6
8809 # These are sane defaults that work on at least a few old systems.
8810 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8812 # Character class describing NM global symbol codes.
8813 symcode='[BCDEGRST]'
8815 # Regexp to match symbols that can be accessed directly from C.
8816 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8818 # Define system-specific variables.
8823 cygwin* | mingw* | pw32* | cegcc*)
8824 symcode='[ABCDGISTW]'
8827 if test ia64 = "$host_cpu"; then
8828 symcode='[ABCDEGRST]'
8832 symcode='[BCDEGRST]'
8835 symcode='[BCDEGQRST]'
8846 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8854 # If we're using GNU nm, then use its standard symbol codes.
8855 case `$NM -V 2>&1` in
8856 *GNU* | *'with BFD'*)
8857 symcode='[ABCDGIRSTW]' ;;
8860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8861 # Gets list of data symbols to import.
8862 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8863 # Adjust the below global symbol transforms to fixup imported variables.
8864 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8865 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8866 lt_c_name_lib_hook="\
8867 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8868 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8870 # Disable hooks by default.
8871 lt_cv_sys_global_symbol_to_import=
8877 # Transform an extracted symbol line into a proper C declaration.
8878 # Some systems (esp. on ia64) link data and code symbols differently,
8879 # so use this general approach.
8880 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8882 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8883 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8885 # Transform an extracted symbol line into symbol name and symbol address
8886 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8888 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8889 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8891 # Transform an extracted symbol line into symbol name with lib prefix and
8893 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8894 $lt_c_name_lib_hook\
8895 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8896 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8897 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8899 # Handle CRLF in mingw tool chain
8903 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8907 # Try without a prefix underscore, then with it.
8908 for ac_symprfx in "" "_"; do
8910 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8911 symxfrm="\\1 $ac_symprfx\\2 \\2"
8913 # Write the raw and C identifiers.
8914 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8915 # Fake it for dumpbin and say T for any non-static function,
8916 # D for any global variable and I for any imported variable.
8917 # Also find C++ and __fastcall symbols from MSVC++,
8918 # which start with @ or ?.
8919 lt_cv_sys_global_symbol_pipe="$AWK '"\
8920 " {last_section=section; section=\$ 3};"\
8921 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8922 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8923 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8924 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8925 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8926 " \$ 0!~/External *\|/{next};"\
8927 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8928 " {if(hide[section]) next};"\
8929 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8930 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8931 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8932 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8933 " ' prfx=^$ac_symprfx"
8935 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8937 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8939 # Check to see that the pipe works correctly.
8943 cat > conftest.$ac_ext <<_LT_EOF
8948 void nm_test_func(void);
8949 void nm_test_func(void){}
8953 int main(){nm_test_var='a';nm_test_func();return(0);}
8956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957 (eval $ac_compile) 2>&5
8959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960 test $ac_status = 0; }; then
8961 # Now try to grab the symbols.
8963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8964 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967 test $ac_status = 0; } && test -s "$nlist"; then
8968 # Try sorting and uniquifying the output.
8969 if sort "$nlist" | uniq > "$nlist"T; then
8970 mv -f "$nlist"T "$nlist"
8975 # Make sure that we snagged all the symbols we need.
8976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8978 cat <<_LT_EOF > conftest.$ac_ext
8979 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8980 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8981 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8982 relocations are performed -- see ld's documentation on pseudo-relocs. */
8983 # define LT_DLSYM_CONST
8984 #elif defined __osf__
8985 /* This system does not cope well with relocations in const data. */
8986 # define LT_DLSYM_CONST
8988 # define LT_DLSYM_CONST const
8996 # Now generate the symbol file.
8997 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8999 cat <<_LT_EOF >> conftest.$ac_ext
9001 /* The mapping between symbol names and symbols. */
9002 LT_DLSYM_CONST struct {
9006 lt__PROGRAM__LTX_preloaded_symbols[] =
9008 { "@PROGRAM@", (void *) 0 },
9010 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9011 cat <<\_LT_EOF >> conftest.$ac_ext
9015 /* This works around a problem in FreeBSD linker */
9016 #ifdef FREEBSD_WORKAROUND
9017 static const void *lt_preloaded_setup() {
9018 return lt__PROGRAM__LTX_preloaded_symbols;
9026 # Now try linking the two files.
9027 mv conftest.$ac_objext conftstm.$ac_objext
9028 lt_globsym_save_LIBS=$LIBS
9029 lt_globsym_save_CFLAGS=$CFLAGS
9030 LIBS=conftstm.$ac_objext
9031 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9033 (eval $ac_link) 2>&5
9035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9036 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9039 LIBS=$lt_globsym_save_LIBS
9040 CFLAGS=$lt_globsym_save_CFLAGS
9042 echo "cannot find nm_test_func in $nlist" >&5
9045 echo "cannot find nm_test_var in $nlist" >&5
9048 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9051 echo "$progname: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9054 rm -rf conftest* conftst*
9056 # Do not use the global_symbol_pipe unless it works.
9057 if test yes = "$pipe_works"; then
9060 lt_cv_sys_global_symbol_pipe=
9066 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9067 lt_cv_sys_global_symbol_to_cdecl=
9069 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9071 $as_echo "failed" >&6; }
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9074 $as_echo "ok" >&6; }
9077 # Response file support.
9078 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9079 nm_file_list_spec='@'
9080 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9081 nm_file_list_spec='@'
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9121 $as_echo_n "checking for sysroot... " >&6; }
9123 # Check whether --with-sysroot was given.
9124 if test "${with_sysroot+set}" = set; then :
9125 withval=$with_sysroot;
9132 case $with_sysroot in #(
9134 if test yes = "$GCC"; then
9135 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9139 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9145 $as_echo "$with_sysroot" >&6; }
9146 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9151 $as_echo "${lt_sysroot:-no}" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9158 $as_echo_n "checking for a working dd... " >&6; }
9159 if ${ac_cv_path_lt_DD+:} false; then :
9160 $as_echo_n "(cached) " >&6
9162 printf 0123456789abcdef0123456789abcdef >conftest.i
9163 cat conftest.i conftest.i >conftest2.i
9165 if test -z "$lt_DD"; then
9166 ac_path_lt_DD_found=false
9167 # Loop through the user's path and test for each of PROGNAME-LIST
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 test -z "$as_dir" && as_dir=.
9173 for ac_prog in dd; do
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9176 as_fn_executable_p "$ac_path_lt_DD" || continue
9177 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9178 cmp -s conftest.i conftest.out \
9179 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9181 $ac_path_lt_DD_found && break 3
9186 if test -z "$ac_cv_path_lt_DD"; then
9190 ac_cv_path_lt_DD=$lt_DD
9193 rm -f conftest.i conftest2.i conftest.out
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9196 $as_echo "$ac_cv_path_lt_DD" >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9200 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9201 if ${lt_cv_truncate_bin+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 printf 0123456789abcdef0123456789abcdef >conftest.i
9205 cat conftest.i conftest.i >conftest2.i
9207 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9208 cmp -s conftest.i conftest.out \
9209 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9211 rm -f conftest.i conftest2.i conftest.out
9212 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9215 $as_echo "$lt_cv_truncate_bin" >&6; }
9223 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9226 for cc_temp in $*""; do
9228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9234 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9237 # Check whether --enable-libtool-lock was given.
9238 if test "${enable_libtool_lock+set}" = set; then :
9239 enableval=$enable_libtool_lock;
9242 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9244 # Some flags need to be propagated to the compiler or linker for good
9248 # Find out what ABI is being produced by ac_compile, and set mode
9249 # options accordingly.
9250 echo 'int i;' > conftest.$ac_ext
9251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9252 (eval $ac_compile) 2>&5
9254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9255 test $ac_status = 0; }; then
9256 case `/usr/bin/file conftest.$ac_objext` in
9268 # Find out what ABI is being produced by ac_compile, and set linker
9269 # options accordingly.
9270 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9272 (eval $ac_compile) 2>&5
9274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9275 test $ac_status = 0; }; then
9276 if test yes = "$lt_cv_prog_gnu_ld"; then
9277 case `/usr/bin/file conftest.$ac_objext` in
9279 LD="${LD-ld} -melf32bsmip"
9282 LD="${LD-ld} -melf32bmipn32"
9285 LD="${LD-ld} -melf64bmip"
9289 case `/usr/bin/file conftest.$ac_objext` in
9306 # Find out what ABI is being produced by ac_compile, and set linker
9307 # options accordingly.
9308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9310 (eval $ac_compile) 2>&5
9312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9313 test $ac_status = 0; }; then
9315 case `/usr/bin/file conftest.$ac_objext` in
9323 case `/usr/bin/file conftest.$ac_objext` in
9325 emul="${emul}btsmip"
9328 emul="${emul}ltsmip"
9331 case `/usr/bin/file conftest.$ac_objext` in
9336 LD="${LD-ld} -m $emul"
9341 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9342 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9343 # Find out what ABI is being produced by ac_compile, and set linker
9344 # options accordingly. Note that the listed cases only cover the
9345 # situations where additional linker options are needed (such as when
9346 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9347 # vice versa); the common cases where no linker options are needed do
9348 # not appear in the list.
9349 echo 'int i;' > conftest.$ac_ext
9350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9351 (eval $ac_compile) 2>&5
9353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9354 test $ac_status = 0; }; then
9355 case `/usr/bin/file conftest.o` in
9358 x86_64-*kfreebsd*-gnu)
9359 LD="${LD-ld} -m elf_i386_fbsd"
9362 case `/usr/bin/file conftest.o` in
9364 LD="${LD-ld} -m elf32_x86_64"
9367 LD="${LD-ld} -m elf_i386"
9371 powerpc64le-*linux*)
9372 LD="${LD-ld} -m elf32lppclinux"
9375 LD="${LD-ld} -m elf32ppclinux"
9378 LD="${LD-ld} -m elf_s390"
9381 LD="${LD-ld} -m elf32_sparc"
9387 x86_64-*kfreebsd*-gnu)
9388 LD="${LD-ld} -m elf_x86_64_fbsd"
9391 LD="${LD-ld} -m elf_x86_64"
9394 LD="${LD-ld} -m elf64lppc"
9397 LD="${LD-ld} -m elf64ppc"
9399 s390*-*linux*|s390*-*tpf*)
9400 LD="${LD-ld} -m elf64_s390"
9403 LD="${LD-ld} -m elf64_sparc"
9413 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9415 CFLAGS="$CFLAGS -belf"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9417 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9418 if ${lt_cv_cc_needs_belf+:} false; then :
9419 $as_echo_n "(cached) " >&6
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9438 if ac_fn_c_try_link "$LINENO"; then :
9439 lt_cv_cc_needs_belf=yes
9441 lt_cv_cc_needs_belf=no
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9446 ac_cpp='$CPP $CPPFLAGS'
9447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9453 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9454 if test yes != "$lt_cv_cc_needs_belf"; then
9455 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9460 # Find out what ABI is being produced by ac_compile, and set linker
9461 # options accordingly.
9462 echo 'int i;' > conftest.$ac_ext
9463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464 (eval $ac_compile) 2>&5
9466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467 test $ac_status = 0; }; then
9468 case `/usr/bin/file conftest.o` in
9470 case $lt_cv_prog_gnu_ld in
9473 i?86-*-solaris*|x86_64-*-solaris*)
9474 LD="${LD-ld} -m elf_x86_64"
9477 LD="${LD-ld} -m elf64_sparc"
9480 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9481 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9486 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9498 need_locks=$enable_libtool_lock
9500 if test -n "$ac_tool_prefix"; then
9501 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9502 set dummy ${ac_tool_prefix}mt; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9506 $as_echo_n "(cached) " >&6
9508 if test -n "$MANIFEST_TOOL"; then
9509 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9529 if test -n "$MANIFEST_TOOL"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9531 $as_echo "$MANIFEST_TOOL" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9539 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9540 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9541 # Extract the first word of "mt", so it can be a program name with args.
9542 set dummy mt; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9546 $as_echo_n "(cached) " >&6
9548 if test -n "$ac_ct_MANIFEST_TOOL"; then
9549 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9569 if test -n "$ac_ct_MANIFEST_TOOL"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9571 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9577 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9580 case $cross_compiling:$ac_tool_warned in
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9584 ac_tool_warned=yes ;;
9586 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9589 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9592 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9594 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9595 if ${lt_cv_path_mainfest_tool+:} false; then :
9596 $as_echo_n "(cached) " >&6
9598 lt_cv_path_mainfest_tool=no
9599 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9600 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9601 cat conftest.err >&5
9602 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9603 lt_cv_path_mainfest_tool=yes
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9608 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9609 if test yes != "$lt_cv_path_mainfest_tool"; then
9619 rhapsody* | darwin*)
9620 if test -n "$ac_tool_prefix"; then
9621 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9622 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9626 $as_echo_n "(cached) " >&6
9628 if test -n "$DSYMUTIL"; then
9629 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9649 if test -n "$DSYMUTIL"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9651 $as_echo "$DSYMUTIL" >&6; }
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9659 if test -z "$ac_cv_prog_DSYMUTIL"; then
9660 ac_ct_DSYMUTIL=$DSYMUTIL
9661 # Extract the first word of "dsymutil", so it can be a program name with args.
9662 set dummy dsymutil; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 if test -n "$ac_ct_DSYMUTIL"; then
9669 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9689 if test -n "$ac_ct_DSYMUTIL"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9691 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9697 if test "x$ac_ct_DSYMUTIL" = x; then
9700 case $cross_compiling:$ac_tool_warned in
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9704 ac_tool_warned=yes ;;
9706 DSYMUTIL=$ac_ct_DSYMUTIL
9709 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9712 if test -n "$ac_tool_prefix"; then
9713 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9714 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if ${ac_cv_prog_NMEDIT+:} false; then :
9718 $as_echo_n "(cached) " >&6
9720 if test -n "$NMEDIT"; then
9721 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 NMEDIT=$ac_cv_prog_NMEDIT
9741 if test -n "$NMEDIT"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9743 $as_echo "$NMEDIT" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9751 if test -z "$ac_cv_prog_NMEDIT"; then
9752 ac_ct_NMEDIT=$NMEDIT
9753 # Extract the first word of "nmedit", so it can be a program name with args.
9754 set dummy nmedit; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9758 $as_echo_n "(cached) " >&6
9760 if test -n "$ac_ct_NMEDIT"; then
9761 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 test -z "$as_dir" && as_dir=.
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9781 if test -n "$ac_ct_NMEDIT"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9783 $as_echo "$ac_ct_NMEDIT" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9789 if test "x$ac_ct_NMEDIT" = x; then
9792 case $cross_compiling:$ac_tool_warned in
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9796 ac_tool_warned=yes ;;
9798 NMEDIT=$ac_ct_NMEDIT
9801 NMEDIT="$ac_cv_prog_NMEDIT"
9804 if test -n "$ac_tool_prefix"; then
9805 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9806 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_prog_LIPO+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 if test -n "$LIPO"; then
9813 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 LIPO=$ac_cv_prog_LIPO
9833 if test -n "$LIPO"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9835 $as_echo "$LIPO" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9843 if test -z "$ac_cv_prog_LIPO"; then
9845 # Extract the first word of "lipo", so it can be a program name with args.
9846 set dummy lipo; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9850 $as_echo_n "(cached) " >&6
9852 if test -n "$ac_ct_LIPO"; then
9853 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 ac_cv_prog_ac_ct_LIPO="lipo"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9873 if test -n "$ac_ct_LIPO"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9875 $as_echo "$ac_ct_LIPO" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9881 if test "x$ac_ct_LIPO" = x; then
9884 case $cross_compiling:$ac_tool_warned in
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9888 ac_tool_warned=yes ;;
9893 LIPO="$ac_cv_prog_LIPO"
9896 if test -n "$ac_tool_prefix"; then
9897 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9898 set dummy ${ac_tool_prefix}otool; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_prog_OTOOL+:} false; then :
9902 $as_echo_n "(cached) " >&6
9904 if test -n "$OTOOL"; then
9905 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 OTOOL=$ac_cv_prog_OTOOL
9925 if test -n "$OTOOL"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9927 $as_echo "$OTOOL" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9935 if test -z "$ac_cv_prog_OTOOL"; then
9937 # Extract the first word of "otool", so it can be a program name with args.
9938 set dummy otool; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9942 $as_echo_n "(cached) " >&6
9944 if test -n "$ac_ct_OTOOL"; then
9945 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954 ac_cv_prog_ac_ct_OTOOL="otool"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9965 if test -n "$ac_ct_OTOOL"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9967 $as_echo "$ac_ct_OTOOL" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9973 if test "x$ac_ct_OTOOL" = x; then
9976 case $cross_compiling:$ac_tool_warned in
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980 ac_tool_warned=yes ;;
9985 OTOOL="$ac_cv_prog_OTOOL"
9988 if test -n "$ac_tool_prefix"; then
9989 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9990 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_prog_OTOOL64+:} false; then :
9994 $as_echo_n "(cached) " >&6
9996 if test -n "$OTOOL64"; then
9997 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 OTOOL64=$ac_cv_prog_OTOOL64
10017 if test -n "$OTOOL64"; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10019 $as_echo "$OTOOL64" >&6; }
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022 $as_echo "no" >&6; }
10027 if test -z "$ac_cv_prog_OTOOL64"; then
10028 ac_ct_OTOOL64=$OTOOL64
10029 # Extract the first word of "otool64", so it can be a program name with args.
10030 set dummy otool64; ac_word=$2
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032 $as_echo_n "checking for $ac_word... " >&6; }
10033 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 if test -n "$ac_ct_OTOOL64"; then
10037 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046 ac_cv_prog_ac_ct_OTOOL64="otool64"
10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10057 if test -n "$ac_ct_OTOOL64"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10059 $as_echo "$ac_ct_OTOOL64" >&6; }
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10065 if test "x$ac_ct_OTOOL64" = x; then
10068 case $cross_compiling:$ac_tool_warned in
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10072 ac_tool_warned=yes ;;
10074 OTOOL64=$ac_ct_OTOOL64
10077 OTOOL64="$ac_cv_prog_OTOOL64"
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10107 $as_echo_n "checking for -single_module linker flag... " >&6; }
10108 if ${lt_cv_apple_cc_single_mod+:} false; then :
10109 $as_echo_n "(cached) " >&6
10111 lt_cv_apple_cc_single_mod=no
10112 if test -z "$LT_MULTI_MODULE"; then
10113 # By default we will add the -single_module flag. You can override
10114 # by either setting the environment variable LT_MULTI_MODULE
10115 # non-empty at configure time, or by adding -multi_module to the
10117 rm -rf libconftest.dylib*
10118 echo "int foo(void){return 1;}" > conftest.c
10119 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10120 -dynamiclib -Wl,-single_module conftest.c" >&5
10121 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10122 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10124 # If there is a non-empty error log, and "single_module"
10125 # appears in it, assume the flag caused a linker warning
10126 if test -s conftest.err && $GREP single_module conftest.err; then
10127 cat conftest.err >&5
10128 # Otherwise, if the output was created with a 0 exit code from
10129 # the compiler, it worked.
10130 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10131 lt_cv_apple_cc_single_mod=yes
10133 cat conftest.err >&5
10135 rm -rf libconftest.dylib*
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10140 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10143 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10144 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10145 $as_echo_n "(cached) " >&6
10147 lt_cv_ld_exported_symbols_list=no
10148 save_LDFLAGS=$LDFLAGS
10149 echo "_main" > conftest.sym
10150 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10162 if ac_fn_c_try_link "$LINENO"; then :
10163 lt_cv_ld_exported_symbols_list=yes
10165 lt_cv_ld_exported_symbols_list=no
10167 rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LDFLAGS=$save_LDFLAGS
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10173 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10176 $as_echo_n "checking for -force_load linker flag... " >&6; }
10177 if ${lt_cv_ld_force_load+:} false; then :
10178 $as_echo_n "(cached) " >&6
10180 lt_cv_ld_force_load=no
10181 cat > conftest.c << _LT_EOF
10182 int forced_loaded() { return 2;}
10184 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10185 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10186 echo "$AR cru libconftest.a conftest.o" >&5
10187 $AR cru libconftest.a conftest.o 2>&5
10188 echo "$RANLIB libconftest.a" >&5
10189 $RANLIB libconftest.a 2>&5
10190 cat > conftest.c << _LT_EOF
10191 int main() { return 0;}
10193 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10194 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10196 if test -s conftest.err && $GREP force_load conftest.err; then
10197 cat conftest.err >&5
10198 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10199 lt_cv_ld_force_load=yes
10201 cat conftest.err >&5
10203 rm -f conftest.err libconftest.a conftest conftest.c
10204 rm -rf conftest.dSYM
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10208 $as_echo "$lt_cv_ld_force_load" >&6; }
10210 rhapsody* | darwin1.[012])
10211 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10213 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10214 darwin*) # darwin 5.x on
10215 # if running on 10.5 or later, the deployment target defaults
10216 # to the OS version, if on x86, and 10.4, the deployment
10217 # target defaults to 10.4. Don't you love it?
10218 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10219 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10220 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10222 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10224 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10228 if test yes = "$lt_cv_apple_cc_single_mod"; then
10229 _lt_dar_single_mod='$single_module'
10231 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10232 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10234 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10236 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10237 _lt_dsymutil='~$DSYMUTIL $lib || :'
10244 # func_munge_path_list VARIABLE PATH
10245 # -----------------------------------
10246 # VARIABLE is name of variable containing _space_ separated list of
10247 # directories to be munged by the contents of PATH, which is string
10250 # string "DIR[ DIR]" will be prepended to VARIABLE
10252 # string "DIR[ DIR]" will be appended to VARIABLE
10253 # "DIRP[:DIRP]::[DIRA:]DIRA"
10254 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10255 # "DIRA[ DIRA]" will be appended to VARIABLE
10257 # VARIABLE will be replaced by "DIR[ DIR]"
10258 func_munge_path_list ()
10264 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10267 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10270 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10271 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10274 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10279 for ac_header in dlfcn.h
10281 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10283 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define HAVE_DLFCN_H 1
10305 enable_win32_dll=no
10308 # Check whether --enable-shared was given.
10309 if test "${enable_shared+set}" = set; then :
10310 enableval=$enable_shared; p=${PACKAGE-default}
10312 yes) enable_shared=yes ;;
10313 no) enable_shared=no ;;
10316 # Look at the argument we got. We use all the common list separators.
10317 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10318 for pkg in $enableval; do
10320 if test "X$pkg" = "X$p"; then
10339 # Check whether --enable-static was given.
10340 if test "${enable_static+set}" = set; then :
10341 enableval=$enable_static; p=${PACKAGE-default}
10343 yes) enable_static=yes ;;
10344 no) enable_static=no ;;
10347 # Look at the argument we got. We use all the common list separators.
10348 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10349 for pkg in $enableval; do
10351 if test "X$pkg" = "X$p"; then
10371 # Check whether --with-pic was given.
10372 if test "${with_pic+set}" = set; then :
10373 withval=$with_pic; lt_p=${PACKAGE-default}
10375 yes|no) pic_mode=$withval ;;
10378 # Look at the argument we got. We use all the common list separators.
10379 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10380 for lt_pkg in $withval; do
10382 if test "X$lt_pkg" = "X$lt_p"; then
10400 # Check whether --enable-fast-install was given.
10401 if test "${enable_fast_install+set}" = set; then :
10402 enableval=$enable_fast_install; p=${PACKAGE-default}
10404 yes) enable_fast_install=yes ;;
10405 no) enable_fast_install=no ;;
10407 enable_fast_install=no
10408 # Look at the argument we got. We use all the common list separators.
10409 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10410 for pkg in $enableval; do
10412 if test "X$pkg" = "X$p"; then
10413 enable_fast_install=yes
10420 enable_fast_install=yes
10430 shared_archive_member_spec=
10431 case $host,$enable_shared in
10432 power*-*-aix[5-9]*,yes)
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10434 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10436 # Check whether --with-aix-soname was given.
10437 if test "${with_aix_soname+set}" = set; then :
10438 withval=$with_aix_soname; case $withval in
10442 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10445 lt_cv_with_aix_soname=$with_aix_soname
10447 if ${lt_cv_with_aix_soname+:} false; then :
10448 $as_echo_n "(cached) " >&6
10450 lt_cv_with_aix_soname=aix
10453 with_aix_soname=$lt_cv_with_aix_soname
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10457 $as_echo "$with_aix_soname" >&6; }
10458 if test aix != "$with_aix_soname"; then
10459 # For the AIX way of multilib, we name the shared archive member
10460 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10461 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10462 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10463 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10464 if test 64 = "${OBJECT_MODE-32}"; then
10465 shared_archive_member_spec=shr_64
10467 shared_archive_member_spec=shr
10472 with_aix_soname=aix
10485 # This can be used to rebuild libtool when needed
10486 LIBTOOL_DEPS=$ltmain
10488 # Always use our own libtool.
10489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10520 test -z "$LN_S" && LN_S="ln -s"
10535 if test -n "${ZSH_VERSION+set}"; then
10536 setopt NO_GLOB_SUBST
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10540 $as_echo_n "checking for objdir... " >&6; }
10541 if ${lt_cv_objdir+:} false; then :
10542 $as_echo_n "(cached) " >&6
10544 rm -f .libs 2>/dev/null
10545 mkdir .libs 2>/dev/null
10546 if test -d .libs; then
10549 # MS-DOS does not allow filenames that begin with a dot.
10552 rmdir .libs 2>/dev/null
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10555 $as_echo "$lt_cv_objdir" >&6; }
10556 objdir=$lt_cv_objdir
10562 cat >>confdefs.h <<_ACEOF
10563 #define LT_OBJDIR "$lt_cv_objdir/"
10571 # AIX sometimes has problems with the GCC collect2 program. For some
10572 # reason, if we set the COLLECT_NAMES environment variable, the problems
10573 # vanish in a puff of smoke.
10574 if test set != "${COLLECT_NAMES+set}"; then
10576 export COLLECT_NAMES
10581 # Global variables:
10583 can_build_shared=yes
10585 # All known linkers require a '.a' archive for static linking (except MSVC,
10586 # which needs '.lib').
10589 with_gnu_ld=$lt_cv_prog_gnu_ld
10594 # Set sane defaults for various variables
10595 test -z "$CC" && CC=cc
10596 test -z "$LTCC" && LTCC=$CC
10597 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10598 test -z "$LD" && LD=ld
10599 test -z "$ac_objext" && ac_objext=o
10601 func_cc_basename $compiler
10602 cc_basename=$func_cc_basename_result
10605 # Only perform the check for file, if the check method requires it
10606 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10607 case $deplibs_check_method in
10609 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10611 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10612 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10613 $as_echo_n "(cached) " >&6
10617 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10620 lt_save_MAGIC_CMD=$MAGIC_CMD
10621 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10622 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10623 for ac_dir in $ac_dummy; do
10625 test -z "$ac_dir" && ac_dir=.
10626 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10627 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10628 if test -n "$file_magic_test_file"; then
10629 case $deplibs_check_method in
10631 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10632 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10633 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10634 $EGREP "$file_magic_regex" > /dev/null; then
10639 *** Warning: the command libtool uses to detect shared libraries,
10640 *** $file_magic_cmd, produces output that libtool cannot recognize.
10641 *** The result is that libtool may fail to recognize shared libraries
10642 *** as such. This will affect the creation of libtool libraries that
10643 *** depend on shared libraries, but programs linked with such libtool
10644 *** libraries will work regardless of this problem. Nevertheless, you
10645 *** may want to report the problem to your system manager and/or to
10646 *** bug-libtool@gnu.org
10656 MAGIC_CMD=$lt_save_MAGIC_CMD
10661 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10662 if test -n "$MAGIC_CMD"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10664 $as_echo "$MAGIC_CMD" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10674 if test -z "$lt_cv_path_MAGIC_CMD"; then
10675 if test -n "$ac_tool_prefix"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10677 $as_echo_n "checking for file... " >&6; }
10678 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10679 $as_echo_n "(cached) " >&6
10683 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10686 lt_save_MAGIC_CMD=$MAGIC_CMD
10687 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10689 for ac_dir in $ac_dummy; do
10691 test -z "$ac_dir" && ac_dir=.
10692 if test -f "$ac_dir/file"; then
10693 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10694 if test -n "$file_magic_test_file"; then
10695 case $deplibs_check_method in
10697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10698 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10700 $EGREP "$file_magic_regex" > /dev/null; then
10705 *** Warning: the command libtool uses to detect shared libraries,
10706 *** $file_magic_cmd, produces output that libtool cannot recognize.
10707 *** The result is that libtool may fail to recognize shared libraries
10708 *** as such. This will affect the creation of libtool libraries that
10709 *** depend on shared libraries, but programs linked with such libtool
10710 *** libraries will work regardless of this problem. Nevertheless, you
10711 *** may want to report the problem to your system manager and/or to
10712 *** bug-libtool@gnu.org
10722 MAGIC_CMD=$lt_save_MAGIC_CMD
10727 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10728 if test -n "$MAGIC_CMD"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10730 $as_echo "$MAGIC_CMD" >&6; }
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10746 # Use C for the default configuration in the libtool script
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10756 # Source file extension for C test sources.
10759 # Object file extension for compiled C test sources.
10763 # Code to be used in simple compile tests
10764 lt_simple_compile_test_code="int some_variable = 0;"
10766 # Code to be used in simple link tests
10767 lt_simple_link_test_code='int main(){return(0);}'
10775 # If no C compiler was specified, use CC.
10778 # If no C compiler flags were specified, use CFLAGS.
10779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10781 # Allow CC to be a program name with arguments.
10784 # Save the default compiler, since it gets overwritten when the other
10785 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10786 compiler_DEFAULT=$CC
10788 # save warnings/boilerplate of simple test code
10789 ac_outfile=conftest.$ac_objext
10790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10792 _lt_compiler_boilerplate=`cat conftest.err`
10795 ac_outfile=conftest.$ac_objext
10796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10798 _lt_linker_boilerplate=`cat conftest.err`
10802 if test -n "$compiler"; then
10804 lt_prog_compiler_no_builtin_flag=
10806 if test yes = "$GCC"; then
10807 case $cc_basename in
10809 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10817 $as_echo_n "(cached) " >&6
10819 lt_cv_prog_compiler_rtti_exceptions=no
10820 ac_outfile=conftest.$ac_objext
10821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10822 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10823 # Insert the option either (1) after the last *FLAGS variable, or
10824 # (2) before a word containing "conftest.", or (3) at the end.
10825 # Note that $ac_compile itself does not contain backslashes and begins
10826 # with a dollar sign (not a hyphen), so the echo should work correctly.
10827 # The option is referenced via a variable to avoid confusing sed.
10828 lt_compile=`echo "$ac_compile" | $SED \
10829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10831 -e 's:$: $lt_compiler_flag:'`
10832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10833 (eval "$lt_compile" 2>conftest.err)
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 if (exit $ac_status) && test -s "$ac_outfile"; then
10838 # The compiler can only warn and ignore the option if not recognized
10839 # So say no if there are warnings other than the usual output.
10840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10843 lt_cv_prog_compiler_rtti_exceptions=yes
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10852 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10865 lt_prog_compiler_wl=
10866 lt_prog_compiler_pic=
10867 lt_prog_compiler_static=
10870 if test yes = "$GCC"; then
10871 lt_prog_compiler_wl='-Wl,'
10872 lt_prog_compiler_static='-static'
10876 # All AIX code is PIC.
10877 if test ia64 = "$host_cpu"; then
10878 # AIX 5 now supports IA64 processor
10879 lt_prog_compiler_static='-Bstatic'
10881 lt_prog_compiler_pic='-fPIC'
10887 # see comment about AmigaOS4 .so support
10888 lt_prog_compiler_pic='-fPIC'
10891 # FIXME: we need at least 68020 code to build shared libraries, but
10892 # adding the '-m68020' flag to GCC prevents building anything better,
10894 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10899 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10900 # PIC is the default for these OSes.
10903 mingw* | cygwin* | pw32* | os2* | cegcc*)
10904 # This hack is so that the source file can tell whether it is being
10905 # built for inclusion in a dll (and should export symbols for example).
10906 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10907 # (--disable-auto-import) libraries
10908 lt_prog_compiler_pic='-DDLL_EXPORT'
10911 lt_prog_compiler_static='$wl-static'
10916 darwin* | rhapsody*)
10917 # PIC is the default on this platform
10918 # Common symbols not allowed in MH_DYLIB files
10919 lt_prog_compiler_pic='-fno-common'
10923 # PIC is the default for Haiku.
10924 # The "-static" flag exists, but is broken.
10925 lt_prog_compiler_static=
10929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10931 # sets the default TLS model and affects inlining.
10937 lt_prog_compiler_pic='-fPIC'
10943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10944 # Instead, we relocate shared libraries at runtime.
10948 # Just because we use GCC doesn't mean we suddenly get shared libraries
10949 # on systems that don't support them.
10950 lt_prog_compiler_can_build_shared=no
10955 # QNX uses GNU C++, but need to define -shared option too, otherwise
10956 # it will coredump.
10957 lt_prog_compiler_pic='-fPIC -shared'
10961 if test -d /usr/nec; then
10962 lt_prog_compiler_pic=-Kconform_pic
10967 lt_prog_compiler_pic='-fPIC'
10971 case $cc_basename in
10972 nvcc*) # Cuda Compiler Driver 2.2
10973 lt_prog_compiler_wl='-Xlinker '
10974 if test -n "$lt_prog_compiler_pic"; then
10975 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10980 # PORTME Check for flag to pass linker flags through the system compiler.
10983 lt_prog_compiler_wl='-Wl,'
10984 if test ia64 = "$host_cpu"; then
10985 # AIX 5 now supports IA64 processor
10986 lt_prog_compiler_static='-Bstatic'
10988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10992 darwin* | rhapsody*)
10993 # PIC is the default on this platform
10994 # Common symbols not allowed in MH_DYLIB files
10995 lt_prog_compiler_pic='-fno-common'
10996 case $cc_basename in
10998 # NAG Fortran compiler
10999 lt_prog_compiler_wl='-Wl,-Wl,,'
11000 lt_prog_compiler_pic='-PIC'
11001 lt_prog_compiler_static='-Bstatic'
11006 mingw* | cygwin* | pw32* | os2* | cegcc*)
11007 # This hack is so that the source file can tell whether it is being
11008 # built for inclusion in a dll (and should export symbols for example).
11009 lt_prog_compiler_pic='-DDLL_EXPORT'
11012 lt_prog_compiler_static='$wl-static'
11017 hpux9* | hpux10* | hpux11*)
11018 lt_prog_compiler_wl='-Wl,'
11019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11020 # not for PA HP-UX.
11026 lt_prog_compiler_pic='+Z'
11029 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11030 lt_prog_compiler_static='$wl-a ${wl}archive'
11033 irix5* | irix6* | nonstopux*)
11034 lt_prog_compiler_wl='-Wl,'
11035 # PIC (with -KPIC) is the default.
11036 lt_prog_compiler_static='-non_shared'
11039 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11040 case $cc_basename in
11041 # old Intel for x86_64, which still supported -KPIC.
11043 lt_prog_compiler_wl='-Wl,'
11044 lt_prog_compiler_pic='-KPIC'
11045 lt_prog_compiler_static='-static'
11047 # icc used to be incompatible with GCC.
11048 # ICC 10 doesn't accept -KPIC any more.
11050 lt_prog_compiler_wl='-Wl,'
11051 lt_prog_compiler_pic='-fPIC'
11052 lt_prog_compiler_static='-static'
11054 # Lahey Fortran 8.1.
11056 lt_prog_compiler_wl='-Wl,'
11057 lt_prog_compiler_pic='--shared'
11058 lt_prog_compiler_static='--static'
11061 # NAG Fortran compiler
11062 lt_prog_compiler_wl='-Wl,-Wl,,'
11063 lt_prog_compiler_pic='-PIC'
11064 lt_prog_compiler_static='-Bstatic'
11067 # Fabrice Bellard et al's Tiny C Compiler
11068 lt_prog_compiler_wl='-Wl,'
11069 lt_prog_compiler_pic='-fPIC'
11070 lt_prog_compiler_static='-static'
11072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11073 # Portland Group compilers (*not* the Pentium gcc compiler,
11074 # which looks to be a dead project)
11075 lt_prog_compiler_wl='-Wl,'
11076 lt_prog_compiler_pic='-fpic'
11077 lt_prog_compiler_static='-Bstatic'
11080 lt_prog_compiler_wl='-Wl,'
11081 # All Alpha code is PIC.
11082 lt_prog_compiler_static='-non_shared'
11084 xl* | bgxl* | bgf* | mpixl*)
11085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11086 lt_prog_compiler_wl='-Wl,'
11087 lt_prog_compiler_pic='-qpic'
11088 lt_prog_compiler_static='-qstaticlink'
11091 case `$CC -V 2>&1 | sed 5q` in
11092 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11094 lt_prog_compiler_pic='-KPIC'
11095 lt_prog_compiler_static='-Bstatic'
11096 lt_prog_compiler_wl=''
11098 *Sun\ F* | *Sun*Fortran*)
11099 lt_prog_compiler_pic='-KPIC'
11100 lt_prog_compiler_static='-Bstatic'
11101 lt_prog_compiler_wl='-Qoption ld '
11105 lt_prog_compiler_pic='-KPIC'
11106 lt_prog_compiler_static='-Bstatic'
11107 lt_prog_compiler_wl='-Wl,'
11109 *Intel*\ [CF]*Compiler*)
11110 lt_prog_compiler_wl='-Wl,'
11111 lt_prog_compiler_pic='-fPIC'
11112 lt_prog_compiler_static='-static'
11115 lt_prog_compiler_wl='-Wl,'
11116 lt_prog_compiler_pic='-fpic'
11117 lt_prog_compiler_static='-Bstatic'
11125 lt_prog_compiler_pic='-KPIC'
11126 lt_prog_compiler_static='-Bstatic'
11130 # QNX uses GNU C++, but need to define -shared option too, otherwise
11131 # it will coredump.
11132 lt_prog_compiler_pic='-fPIC -shared'
11135 osf3* | osf4* | osf5*)
11136 lt_prog_compiler_wl='-Wl,'
11137 # All OSF/1 code is PIC.
11138 lt_prog_compiler_static='-non_shared'
11142 lt_prog_compiler_static='-non_shared'
11146 lt_prog_compiler_pic='-KPIC'
11147 lt_prog_compiler_static='-Bstatic'
11148 case $cc_basename in
11149 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11150 lt_prog_compiler_wl='-Qoption ld ';;
11152 lt_prog_compiler_wl='-Wl,';;
11157 lt_prog_compiler_wl='-Qoption ld '
11158 lt_prog_compiler_pic='-PIC'
11159 lt_prog_compiler_static='-Bstatic'
11162 sysv4 | sysv4.2uw2* | sysv4.3*)
11163 lt_prog_compiler_wl='-Wl,'
11164 lt_prog_compiler_pic='-KPIC'
11165 lt_prog_compiler_static='-Bstatic'
11169 if test -d /usr/nec; then
11170 lt_prog_compiler_pic='-Kconform_pic'
11171 lt_prog_compiler_static='-Bstatic'
11175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11176 lt_prog_compiler_wl='-Wl,'
11177 lt_prog_compiler_pic='-KPIC'
11178 lt_prog_compiler_static='-Bstatic'
11182 lt_prog_compiler_wl='-Wl,'
11183 lt_prog_compiler_can_build_shared=no
11187 lt_prog_compiler_pic='-pic'
11188 lt_prog_compiler_static='-Bstatic'
11192 lt_prog_compiler_can_build_shared=no
11198 # For platforms that do not support PIC, -DPIC is meaningless:
11200 lt_prog_compiler_pic=
11203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11208 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11209 if ${lt_cv_prog_compiler_pic+:} false; then :
11210 $as_echo_n "(cached) " >&6
11212 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11215 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11216 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11219 # Check to make sure the PIC flag actually works.
11221 if test -n "$lt_prog_compiler_pic"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11223 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11224 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11225 $as_echo_n "(cached) " >&6
11227 lt_cv_prog_compiler_pic_works=no
11228 ac_outfile=conftest.$ac_objext
11229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11230 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11231 # Insert the option either (1) after the last *FLAGS variable, or
11232 # (2) before a word containing "conftest.", or (3) at the end.
11233 # Note that $ac_compile itself does not contain backslashes and begins
11234 # with a dollar sign (not a hyphen), so the echo should work correctly.
11235 # The option is referenced via a variable to avoid confusing sed.
11236 lt_compile=`echo "$ac_compile" | $SED \
11237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11239 -e 's:$: $lt_compiler_flag:'`
11240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11241 (eval "$lt_compile" 2>conftest.err)
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 if (exit $ac_status) && test -s "$ac_outfile"; then
11246 # The compiler can only warn and ignore the option if not recognized
11247 # So say no if there are warnings other than the usual output.
11248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11251 lt_cv_prog_compiler_pic_works=yes
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11258 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11260 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11261 case $lt_prog_compiler_pic in
11263 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11266 lt_prog_compiler_pic=
11267 lt_prog_compiler_can_build_shared=no
11283 # Check to make sure the static flag actually works.
11285 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11287 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11288 if ${lt_cv_prog_compiler_static_works+:} false; then :
11289 $as_echo_n "(cached) " >&6
11291 lt_cv_prog_compiler_static_works=no
11292 save_LDFLAGS=$LDFLAGS
11293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11294 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11296 # The linker can only warn and ignore the option if not recognized
11297 # So say no if there are warnings
11298 if test -s conftest.err; then
11299 # Append any errors to the config.log.
11300 cat conftest.err 1>&5
11301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11303 if diff conftest.exp conftest.er2 >/dev/null; then
11304 lt_cv_prog_compiler_static_works=yes
11307 lt_cv_prog_compiler_static_works=yes
11311 LDFLAGS=$save_LDFLAGS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11315 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11317 if test yes = "$lt_cv_prog_compiler_static_works"; then
11320 lt_prog_compiler_static=
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11331 if ${lt_cv_prog_compiler_c_o+:} false; then :
11332 $as_echo_n "(cached) " >&6
11334 lt_cv_prog_compiler_c_o=no
11335 $RM -r conftest 2>/dev/null
11339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11341 lt_compiler_flag="-o out/conftest2.$ac_objext"
11342 # Insert the option either (1) after the last *FLAGS variable, or
11343 # (2) before a word containing "conftest.", or (3) at the end.
11344 # Note that $ac_compile itself does not contain backslashes and begins
11345 # with a dollar sign (not a hyphen), so the echo should work correctly.
11346 lt_compile=`echo "$ac_compile" | $SED \
11347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11349 -e 's:$: $lt_compiler_flag:'`
11350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11351 (eval "$lt_compile" 2>out/conftest.err)
11353 cat out/conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11357 # The compiler can only warn and ignore the option if not recognized
11358 # So say no if there are warnings
11359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11362 lt_cv_prog_compiler_c_o=yes
11367 # SGI C++ compiler will create directory out/ii_files/ for
11368 # template instantiation
11369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11370 $RM out/* && rmdir out
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11386 if ${lt_cv_prog_compiler_c_o+:} false; then :
11387 $as_echo_n "(cached) " >&6
11389 lt_cv_prog_compiler_c_o=no
11390 $RM -r conftest 2>/dev/null
11394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11396 lt_compiler_flag="-o out/conftest2.$ac_objext"
11397 # Insert the option either (1) after the last *FLAGS variable, or
11398 # (2) before a word containing "conftest.", or (3) at the end.
11399 # Note that $ac_compile itself does not contain backslashes and begins
11400 # with a dollar sign (not a hyphen), so the echo should work correctly.
11401 lt_compile=`echo "$ac_compile" | $SED \
11402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11404 -e 's:$: $lt_compiler_flag:'`
11405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11406 (eval "$lt_compile" 2>out/conftest.err)
11408 cat out/conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11412 # The compiler can only warn and ignore the option if not recognized
11413 # So say no if there are warnings
11414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11417 lt_cv_prog_compiler_c_o=yes
11422 # SGI C++ compiler will create directory out/ii_files/ for
11423 # template instantiation
11424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11425 $RM out/* && rmdir out
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11437 hard_links=nottested
11438 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11439 # do not overwrite the value of need_locks provided by the user
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11441 $as_echo_n "checking if we can lock with hard links... " >&6; }
11444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11446 ln conftest.a conftest.b 2>&5 || hard_links=no
11447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11449 $as_echo "$hard_links" >&6; }
11450 if test no = "$hard_links"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11452 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11468 allow_undefined_flag=
11469 always_export_symbols=no
11471 archive_expsym_cmds=
11472 compiler_needs_object=no
11473 enable_shared_with_static_runtimes=no
11474 export_dynamic_flag_spec=
11475 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11476 hardcode_automatic=no
11478 hardcode_direct_absolute=no
11479 hardcode_libdir_flag_spec=
11480 hardcode_libdir_separator=
11481 hardcode_minus_L=no
11482 hardcode_shlibpath_var=unsupported
11484 link_all_deplibs=unknown
11486 module_expsym_cmds=
11487 old_archive_from_new_cmds=
11488 old_archive_from_expsyms_cmds=
11489 thread_safe_flag_spec=
11490 whole_archive_flag_spec=
11491 # include_expsyms should be a list of space-separated symbols to be *always*
11492 # included in the symbol list
11494 # exclude_expsyms can be an extended regexp of symbols to exclude
11495 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11496 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11497 # as well as any symbol that contains 'd'.
11498 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11500 # platforms (ab)use it in PIC code, but their linkers get confused if
11501 # the symbol is explicitly referenced. Since portable code cannot
11502 # rely on this symbol name, it's probably fine to never include it in
11503 # preloaded symbol tables.
11504 # Exclude shared library initialization/finalization symbols.
11505 extract_expsyms_cmds=
11508 cygwin* | mingw* | pw32* | cegcc*)
11509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11510 # When not using gcc, we currently assume that we are using
11511 # Microsoft Visual C++.
11512 if test yes != "$GCC"; then
11517 # we just hope/assume this is gcc and not c89 (= MSVC++)
11520 openbsd* | bitrig*)
11527 # On some targets, GNU ld is compatible enough with the native linker
11528 # that we're better off using the native interface for both.
11529 lt_use_gnu_ld_interface=no
11530 if test yes = "$with_gnu_ld"; then
11533 # The AIX port of GNU ld has always aspired to compatibility
11534 # with the native linker. However, as the warning in the GNU ld
11535 # block says, versions before 2.19.5* couldn't really create working
11536 # shared libraries, regardless of the interface used.
11537 case `$LD -v 2>&1` in
11538 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11539 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11540 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11542 lt_use_gnu_ld_interface=yes
11547 lt_use_gnu_ld_interface=yes
11552 if test yes = "$lt_use_gnu_ld_interface"; then
11553 # If archive_cmds runs LD, not CC, wlarc should be empty
11556 # Set some defaults for GNU ld with shared library support. These
11557 # are reset later if shared libraries are not supported. Putting them
11558 # here allows them to be overridden if necessary.
11559 runpath_var=LD_RUN_PATH
11560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11561 export_dynamic_flag_spec='$wl--export-dynamic'
11562 # ancient GNU ld didn't support --whole-archive et. al.
11563 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11564 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11566 whole_archive_flag_spec=
11568 supports_anon_versioning=no
11569 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11570 *GNU\ gold*) supports_anon_versioning=yes ;;
11571 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11572 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11573 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11574 *\ 2.11.*) ;; # other 2.11 versions
11575 *) supports_anon_versioning=yes ;;
11578 # See if GNU ld supports shared libraries.
11581 # On AIX/PPC, the GNU linker is very broken
11582 if test ia64 != "$host_cpu"; then
11586 *** Warning: the GNU linker, at least up to release 2.19, is reported
11587 *** to be unable to reliably create shared libraries on AIX.
11588 *** Therefore, libtool is disabling shared libraries support. If you
11589 *** really care for shared libraries, you may want to install binutils
11590 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11591 *** You will then need to restart the configuration process.
11600 # see comment about AmigaOS4 .so support
11601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11602 archive_expsym_cmds=''
11605 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)'
11606 hardcode_libdir_flag_spec='-L$libdir'
11607 hardcode_minus_L=yes
11613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11614 allow_undefined_flag=unsupported
11615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11616 # support --undefined. This deserves some investigation. FIXME
11617 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11623 cygwin* | mingw* | pw32* | cegcc*)
11624 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11625 # as there is no search path for DLLs.
11626 hardcode_libdir_flag_spec='-L$libdir'
11627 export_dynamic_flag_spec='$wl--export-all-symbols'
11628 allow_undefined_flag=unsupported
11629 always_export_symbols=no
11630 enable_shared_with_static_runtimes=yes
11631 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'
11632 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11636 # If the export-symbols file already is a .def file, use it as
11637 # is; otherwise, prepend EXPORTS...
11638 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11639 cp $export_symbols $output_objdir/$soname.def;
11641 echo EXPORTS > $output_objdir/$soname.def;
11642 cat $export_symbols >> $output_objdir/$soname.def;
11644 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11652 link_all_deplibs=yes
11656 hardcode_libdir_flag_spec='-L$libdir'
11657 hardcode_minus_L=yes
11658 allow_undefined_flag=unsupported
11660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11663 $ECHO EXPORTS >> $output_objdir/$libname.def~
11664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11666 emximp -o $lib $output_objdir/$libname.def'
11667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11670 $ECHO EXPORTS >> $output_objdir/$libname.def~
11671 prefix_cmds="$SED"~
11672 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11673 prefix_cmds="$prefix_cmds -e 1d";
11675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11678 emximp -o $lib $output_objdir/$libname.def'
11679 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11680 enable_shared_with_static_runtimes=yes
11685 hardcode_shlibpath_var=no
11686 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11687 export_dynamic_flag_spec='$wl-E'
11688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11689 # Instead, shared libraries are loaded at an image base (0x10000000 by
11690 # default) and relocated if they conflict, which is a slow very memory
11691 # consuming and fragmenting process. To avoid this, we pick a random,
11692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11694 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11695 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'
11698 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11700 if test linux-dietlibc = "$host_os"; then
11701 case $cc_basename in
11702 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11705 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11706 && test no = "$tmp_diet"
11708 tmp_addflag=' $pic_flag'
11709 tmp_sharedflag='-shared'
11710 case $cc_basename,$host_cpu in
11711 pgcc*) # Portland Group C compiler
11712 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'
11713 tmp_addflag=' $pic_flag'
11715 pgf77* | pgf90* | pgf95* | pgfortran*)
11716 # Portland Group f77 and f90 compilers
11717 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'
11718 tmp_addflag=' $pic_flag -Mnomain' ;;
11719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11720 tmp_addflag=' -i_dynamic' ;;
11721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11722 tmp_addflag=' -i_dynamic -nofor_main' ;;
11723 ifc* | ifort*) # Intel Fortran compiler
11724 tmp_addflag=' -nofor_main' ;;
11725 lf95*) # Lahey Fortran 8.1
11726 whole_archive_flag_spec=
11727 tmp_sharedflag='--shared' ;;
11728 nagfor*) # NAGFOR 5.3
11729 tmp_sharedflag='-Wl,-shared' ;;
11730 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11731 tmp_sharedflag='-qmkshrobj'
11733 nvcc*) # Cuda Compiler Driver 2.2
11734 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'
11735 compiler_needs_object=yes
11738 case `$CC -V 2>&1 | sed 5q` in
11739 *Sun\ C*) # Sun C 5.9
11740 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'
11741 compiler_needs_object=yes
11742 tmp_sharedflag='-G' ;;
11743 *Sun\ F*) # Sun Fortran 8.3
11744 tmp_sharedflag='-G' ;;
11746 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11748 if test yes = "$supports_anon_versioning"; then
11749 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11751 echo "local: *; };" >> $output_objdir/$libname.ver~
11752 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11755 case $cc_basename in
11757 export_dynamic_flag_spec='-rdynamic'
11759 xlf* | bgf* | bgxlf* | mpixlf*)
11760 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11761 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11762 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11763 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11764 if test yes = "$supports_anon_versioning"; then
11765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11767 echo "local: *; };" >> $output_objdir/$libname.ver~
11768 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11783 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11788 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11793 *** create shared libraries on Solaris systems. Therefore, libtool
11794 *** is disabling shared libraries support. We urge you to upgrade GNU
11795 *** binutils to release 2.9.1 or newer. Another option is to modify
11796 *** your PATH or compiler configuration so that the native linker is
11797 *** used, and then restart.
11800 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11802 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11809 case `$LD -v 2>&1` in
11810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11815 *** reliably create shared libraries on SCO systems. Therefore, libtool
11816 *** is disabling shared libraries support. We urge you to upgrade GNU
11817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11818 *** your PATH or compiler configuration so that the native linker is
11819 *** used, and then restart.
11824 # For security reasons, it is highly recommended that you always
11825 # use absolute paths for naming shared libraries, and exclude the
11826 # DT_RUNPATH tag from executables and libraries. But doing so
11827 # requires that you compile everything twice, which is a pain.
11828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11829 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11842 hardcode_direct=yes
11843 hardcode_shlibpath_var=no
11847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11849 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11856 if test no = "$ld_shlibs"; then
11858 hardcode_libdir_flag_spec=
11859 export_dynamic_flag_spec=
11860 whole_archive_flag_spec=
11863 # PORTME fill in a description of your system's linker (not GNU ld)
11866 allow_undefined_flag=unsupported
11867 always_export_symbols=yes
11868 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'
11869 # Note: this linker hardcodes the directories in LIBPATH if there
11870 # are no directories specified by -L.
11871 hardcode_minus_L=yes
11872 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11873 # Neither direct hardcoding nor static linking is supported with a
11875 hardcode_direct=unsupported
11880 if test ia64 = "$host_cpu"; then
11881 # On IA64, the linker does run time linking by default, so we don't
11882 # have to do anything special.
11883 aix_use_runtimelinking=no
11884 exp_sym_flag='-Bexport'
11887 # If we're using GNU nm, then we don't want the "-C" option.
11888 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11889 # Without the "-l" option, or with the "-B" option, AIX nm treats
11890 # weak defined symbols like other global defined symbols, whereas
11891 # GNU nm marks them as "W".
11892 # While the 'weak' keyword is ignored in the Export File, we need
11893 # it in the Import File for the 'aix-soname' feature, so we have
11894 # to replace the "-B" option with "-P" for AIX nm.
11895 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11896 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'
11898 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'
11900 aix_use_runtimelinking=no
11902 # Test if we are trying to use run time linking or normal
11903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11904 # have runtime linking enabled, and use it for executables.
11905 # For shared libraries, we enable/disable runtime linking
11906 # depending on the kind of the shared library created -
11907 # when "with_aix_soname,aix_use_runtimelinking" is:
11908 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11909 # "aix,yes" lib.so shared, rtl:yes, for executables
11910 # lib.a static archive
11911 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11912 # lib.a(lib.so.V) shared, rtl:no, for executables
11913 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11914 # lib.a(lib.so.V) shared, rtl:no
11915 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11916 # lib.a static archive
11917 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11918 for ld_flag in $LDFLAGS; do
11919 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11920 aix_use_runtimelinking=yes
11924 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11925 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11926 # so we don't have lib.a shared libs to link our executables.
11927 # We have to force runtime linking in this case.
11928 aix_use_runtimelinking=yes
11929 LDFLAGS="$LDFLAGS -Wl,-brtl"
11934 exp_sym_flag='-bexport'
11935 no_entry_flag='-bnoentry'
11938 # When large executables or shared objects are built, AIX ld can
11939 # have problems creating the table of contents. If linking a library
11940 # or program results in "error TOC overflow" add -mminimal-toc to
11941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11945 hardcode_direct=yes
11946 hardcode_direct_absolute=yes
11947 hardcode_libdir_separator=':'
11948 link_all_deplibs=yes
11949 file_list_spec='$wl-f,'
11950 case $with_aix_soname,$aix_use_runtimelinking in
11951 aix,*) ;; # traditional, no import file
11952 svr4,* | *,yes) # use import file
11953 # The Import File defines what to hardcode.
11955 hardcode_direct_absolute=no
11959 if test yes = "$GCC"; then
11960 case $host_os in aix4.[012]|aix4.[012].*)
11961 # We only want to do this on AIX 4.2 and lower, the check
11962 # below for broken collect2 doesn't work under 4.3+
11963 collect2name=`$CC -print-prog-name=collect2`
11964 if test -f "$collect2name" &&
11965 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11967 # We have reworked collect2
11970 # We have old collect2
11971 hardcode_direct=unsupported
11972 # It fails to find uninstalled libraries when the uninstalled
11973 # path is not listed in the libpath. Setting hardcode_minus_L
11974 # to unsupported forces relinking
11975 hardcode_minus_L=yes
11976 hardcode_libdir_flag_spec='-L$libdir'
11977 hardcode_libdir_separator=
11981 shared_flag='-shared'
11982 if test yes = "$aix_use_runtimelinking"; then
11983 shared_flag="$shared_flag "'$wl-G'
11985 # Need to ensure runtime linking is disabled for the traditional
11986 # shared library, or the linker may eventually find shared libraries
11987 # /with/ Import File - we do not want to mix them.
11988 shared_flag_aix='-shared'
11989 shared_flag_svr4='-shared $wl-G'
11992 if test ia64 = "$host_cpu"; then
11993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11994 # chokes on -Wl,-G. The following line is correct:
11997 if test yes = "$aix_use_runtimelinking"; then
11998 shared_flag='$wl-G'
12000 shared_flag='$wl-bM:SRE'
12002 shared_flag_aix='$wl-bM:SRE'
12003 shared_flag_svr4='$wl-G'
12007 export_dynamic_flag_spec='$wl-bexpall'
12008 # It seems that -bexpall does not export symbols beginning with
12009 # underscore (_), so it is better to generate a list of symbols to export.
12010 always_export_symbols=yes
12011 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12012 # Warning - without using the other runtime loading flags (-brtl),
12013 # -berok will link without error, but may produce a broken library.
12014 allow_undefined_flag='-berok'
12015 # Determine the default libpath from the value encoded in an
12016 # empty executable.
12017 if test set = "${lt_cv_aix_libpath+set}"; then
12018 aix_libpath=$lt_cv_aix_libpath
12020 if ${lt_cv_aix_libpath_+:} false; then :
12021 $as_echo_n "(cached) " >&6
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12034 if ac_fn_c_try_link "$LINENO"; then :
12036 lt_aix_libpath_sed='
12037 /Import File Strings/,/^$/ {
12039 s/^0 *\([^ ]*\) *$/\1/
12043 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12044 # Check for a 64-bit object if we didn't find anything.
12045 if test -z "$lt_cv_aix_libpath_"; then
12046 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 if test -z "$lt_cv_aix_libpath_"; then
12052 lt_cv_aix_libpath_=/usr/lib:/lib
12057 aix_libpath=$lt_cv_aix_libpath_
12060 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12061 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
12063 if test ia64 = "$host_cpu"; then
12064 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12065 allow_undefined_flag="-z nodefs"
12066 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"
12068 # Determine the default libpath from the value encoded in an
12069 # empty executable.
12070 if test set = "${lt_cv_aix_libpath+set}"; then
12071 aix_libpath=$lt_cv_aix_libpath
12073 if ${lt_cv_aix_libpath_+:} false; then :
12074 $as_echo_n "(cached) " >&6
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12087 if ac_fn_c_try_link "$LINENO"; then :
12089 lt_aix_libpath_sed='
12090 /Import File Strings/,/^$/ {
12092 s/^0 *\([^ ]*\) *$/\1/
12096 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12097 # Check for a 64-bit object if we didn't find anything.
12098 if test -z "$lt_cv_aix_libpath_"; then
12099 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 if test -z "$lt_cv_aix_libpath_"; then
12105 lt_cv_aix_libpath_=/usr/lib:/lib
12110 aix_libpath=$lt_cv_aix_libpath_
12113 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12114 # Warning - without using the other run time loading flags,
12115 # -berok will link without error, but may produce a broken library.
12116 no_undefined_flag=' $wl-bernotok'
12117 allow_undefined_flag=' $wl-berok'
12118 if test yes = "$with_gnu_ld"; then
12119 # We only use this code for GNU lds that support --whole-archive.
12120 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12122 # Exported symbols can be pulled into shared objects from archives
12123 whole_archive_flag_spec='$convenience'
12125 archive_cmds_need_lc=yes
12126 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12127 # -brtl affects multiple linker settings, -berok does not and is overridden later
12128 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12129 if test svr4 != "$with_aix_soname"; then
12130 # This is similar to how AIX traditionally builds its shared libraries.
12131 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'
12133 if test aix != "$with_aix_soname"; then
12134 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'
12136 # used by -dlpreopen to get the symbols
12137 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12139 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12147 # see comment about AmigaOS4 .so support
12148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12149 archive_expsym_cmds=''
12152 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)'
12153 hardcode_libdir_flag_spec='-L$libdir'
12154 hardcode_minus_L=yes
12160 export_dynamic_flag_spec=-rdynamic
12163 cygwin* | mingw* | pw32* | cegcc*)
12164 # When not using gcc, we currently assume that we are using
12165 # Microsoft Visual C++.
12166 # hardcode_libdir_flag_spec is actually meaningless, as there is
12167 # no search path for DLLs.
12168 case $cc_basename in
12171 hardcode_libdir_flag_spec=' '
12172 allow_undefined_flag=unsupported
12173 always_export_symbols=yes
12175 # Tell ltmain to make .lib files, not .a files.
12177 # Tell ltmain to make .dll files, not .so files.
12179 # FIXME: Setting linknames here is a bad hack.
12180 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12181 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12182 cp "$export_symbols" "$output_objdir/$soname.def";
12183 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12185 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12187 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12189 # The linker will not automatically build a static lib if we build a DLL.
12190 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12191 enable_shared_with_static_runtimes=yes
12192 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12193 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12195 old_postinstall_cmds='chmod 644 $oldlib'
12196 postlink_cmds='lt_outputfile="@OUTPUT@"~
12197 lt_tool_outputfile="@TOOL_OUTPUT@"~
12198 case $lt_outputfile in
12201 lt_outputfile=$lt_outputfile.exe
12202 lt_tool_outputfile=$lt_tool_outputfile.exe
12205 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12206 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12207 $RM "$lt_outputfile.manifest";
12211 # Assume MSVC wrapper
12212 hardcode_libdir_flag_spec=' '
12213 allow_undefined_flag=unsupported
12214 # Tell ltmain to make .lib files, not .a files.
12216 # Tell ltmain to make .dll files, not .so files.
12218 # FIXME: Setting linknames here is a bad hack.
12219 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12220 # The linker will automatically build a .lib file if we build a DLL.
12221 old_archive_from_new_cmds='true'
12222 # FIXME: Should let the user specify the lib program.
12223 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12224 enable_shared_with_static_runtimes=yes
12229 darwin* | rhapsody*)
12232 archive_cmds_need_lc=no
12234 hardcode_automatic=yes
12235 hardcode_shlibpath_var=unsupported
12236 if test yes = "$lt_cv_ld_force_load"; then
12237 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\"`'
12240 whole_archive_flag_spec=''
12242 link_all_deplibs=yes
12243 allow_undefined_flag=$_lt_dar_allow_undefined
12244 case $cc_basename in
12245 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12246 *) _lt_dar_can_shared=$GCC ;;
12248 if test yes = "$_lt_dar_can_shared"; then
12249 output_verbose_link_cmd=func_echo_all
12250 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12251 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12252 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"
12253 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"
12262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12263 hardcode_libdir_flag_spec='-L$libdir'
12264 hardcode_shlibpath_var=no
12267 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12268 # support. Future versions do this automatically, but an explicit c++rt0.o
12269 # does not break anything, and helps significantly (at the cost of a little
12272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12273 hardcode_libdir_flag_spec='-R$libdir'
12274 hardcode_direct=yes
12275 hardcode_shlibpath_var=no
12278 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12281 hardcode_direct=yes
12282 hardcode_minus_L=yes
12283 hardcode_shlibpath_var=no
12286 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12287 freebsd* | dragonfly*)
12288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12289 hardcode_libdir_flag_spec='-R$libdir'
12290 hardcode_direct=yes
12291 hardcode_shlibpath_var=no
12295 if test yes = "$GCC"; then
12296 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'
12298 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'
12300 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12301 hardcode_libdir_separator=:
12302 hardcode_direct=yes
12304 # hardcode_minus_L: Not really in the search PATH,
12305 # but as the default location of the library.
12306 hardcode_minus_L=yes
12307 export_dynamic_flag_spec='$wl-E'
12311 if test yes,no = "$GCC,$with_gnu_ld"; then
12312 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12316 if test no = "$with_gnu_ld"; then
12317 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12318 hardcode_libdir_separator=:
12319 hardcode_direct=yes
12320 hardcode_direct_absolute=yes
12321 export_dynamic_flag_spec='$wl-E'
12322 # hardcode_minus_L: Not really in the search PATH,
12323 # but as the default location of the library.
12324 hardcode_minus_L=yes
12329 if test yes,no = "$GCC,$with_gnu_ld"; then
12332 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12344 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12347 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12351 # Older versions of the 11.00 compiler do not understand -b yet
12352 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12354 $as_echo_n "checking if $CC understands -b... " >&6; }
12355 if ${lt_cv_prog_compiler__b+:} false; then :
12356 $as_echo_n "(cached) " >&6
12358 lt_cv_prog_compiler__b=no
12359 save_LDFLAGS=$LDFLAGS
12360 LDFLAGS="$LDFLAGS -b"
12361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12363 # The linker can only warn and ignore the option if not recognized
12364 # So say no if there are warnings
12365 if test -s conftest.err; then
12366 # Append any errors to the config.log.
12367 cat conftest.err 1>&5
12368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12370 if diff conftest.exp conftest.er2 >/dev/null; then
12371 lt_cv_prog_compiler__b=yes
12374 lt_cv_prog_compiler__b=yes
12378 LDFLAGS=$save_LDFLAGS
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12382 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12384 if test yes = "$lt_cv_prog_compiler__b"; then
12385 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12387 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12393 if test no = "$with_gnu_ld"; then
12394 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12395 hardcode_libdir_separator=:
12400 hardcode_shlibpath_var=no
12403 hardcode_direct=yes
12404 hardcode_direct_absolute=yes
12405 export_dynamic_flag_spec='$wl-E'
12407 # hardcode_minus_L: Not really in the search PATH,
12408 # but as the default location of the library.
12409 hardcode_minus_L=yes
12415 irix5* | irix6* | nonstopux*)
12416 if test yes = "$GCC"; then
12417 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'
12418 # Try to use the -exported_symbol ld option, if it does not
12419 # work, assume that -exports_file does not work either and
12420 # implicitly export all symbols.
12421 # This should be the same for all languages, so no per-tag cache variable.
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12423 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12424 if ${lt_cv_irix_exported_symbol+:} false; then :
12425 $as_echo_n "(cached) " >&6
12427 save_LDFLAGS=$LDFLAGS
12428 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 int foo (void) { return 0; }
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 lt_cv_irix_exported_symbol=yes
12436 lt_cv_irix_exported_symbol=no
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LDFLAGS=$save_LDFLAGS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12443 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12444 if test yes = "$lt_cv_irix_exported_symbol"; then
12445 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'
12448 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'
12449 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'
12451 archive_cmds_need_lc='no'
12452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12453 hardcode_libdir_separator=:
12455 link_all_deplibs=yes
12459 case $cc_basename in
12461 # Fabrice Bellard et al's Tiny C Compiler
12463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12472 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12474 hardcode_libdir_flag_spec='-R$libdir'
12475 hardcode_direct=yes
12476 hardcode_shlibpath_var=no
12480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12481 hardcode_direct=yes
12482 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12483 hardcode_libdir_separator=:
12484 hardcode_shlibpath_var=no
12490 openbsd* | bitrig*)
12491 if test -f /usr/libexec/ld.so; then
12492 hardcode_direct=yes
12493 hardcode_shlibpath_var=no
12494 hardcode_direct_absolute=yes
12495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12497 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12498 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12499 export_dynamic_flag_spec='$wl-E'
12501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12502 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12510 hardcode_libdir_flag_spec='-L$libdir'
12511 hardcode_minus_L=yes
12512 allow_undefined_flag=unsupported
12514 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12515 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12516 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12517 $ECHO EXPORTS >> $output_objdir/$libname.def~
12518 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12520 emximp -o $lib $output_objdir/$libname.def'
12521 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12524 $ECHO EXPORTS >> $output_objdir/$libname.def~
12525 prefix_cmds="$SED"~
12526 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12527 prefix_cmds="$prefix_cmds -e 1d";
12529 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12530 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12531 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12532 emximp -o $lib $output_objdir/$libname.def'
12533 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12534 enable_shared_with_static_runtimes=yes
12538 if test yes = "$GCC"; then
12539 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12540 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'
12542 allow_undefined_flag=' -expect_unresolved \*'
12543 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'
12545 archive_cmds_need_lc='no'
12546 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12547 hardcode_libdir_separator=:
12550 osf4* | osf5*) # as osf3* with the addition of -msym flag
12551 if test yes = "$GCC"; then
12552 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12553 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'
12554 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12556 allow_undefined_flag=' -expect_unresolved \*'
12557 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'
12558 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~
12559 $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'
12561 # Both c and cxx compiler support -rpath directly
12562 hardcode_libdir_flag_spec='-rpath $libdir'
12564 archive_cmds_need_lc='no'
12565 hardcode_libdir_separator=:
12569 no_undefined_flag=' -z defs'
12570 if test yes = "$GCC"; then
12572 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12574 $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'
12576 case `$CC -V 2>&1` in
12579 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12581 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12585 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12586 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12587 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12591 hardcode_libdir_flag_spec='-R$libdir'
12592 hardcode_shlibpath_var=no
12594 solaris2.[0-5] | solaris2.[0-5].*) ;;
12596 # The compiler driver will combine and reorder linker options,
12597 # but understands '-z linker_flag'. GCC discards it without '$wl',
12598 # but is careful enough not to reorder.
12599 # Supported since Solaris 2.6 (maybe 2.5.1?)
12600 if test yes = "$GCC"; then
12601 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12603 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12607 link_all_deplibs=yes
12611 if test sequent = "$host_vendor"; then
12612 # Use $CC to link under sequent, because it throws in some extra .o
12613 # files that make .init and .fini sections work.
12614 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12616 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12618 hardcode_libdir_flag_spec='-L$libdir'
12619 hardcode_direct=yes
12620 hardcode_minus_L=yes
12621 hardcode_shlibpath_var=no
12625 case $host_vendor in
12627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12628 hardcode_direct=yes # is this really true???
12631 ## LD is ld it makes a PLAMLIB
12632 ## CC just makes a GrossModule.
12633 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12634 reload_cmds='$CC -r -o $output$reload_objs'
12638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12642 runpath_var='LD_RUN_PATH'
12643 hardcode_shlibpath_var=no
12647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12648 hardcode_shlibpath_var=no
12649 export_dynamic_flag_spec='-Bexport'
12653 if test -d /usr/nec; then
12654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12655 hardcode_shlibpath_var=no
12656 runpath_var=LD_RUN_PATH
12657 hardcode_runpath_var=yes
12662 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12663 no_undefined_flag='$wl-z,text'
12664 archive_cmds_need_lc=no
12665 hardcode_shlibpath_var=no
12666 runpath_var='LD_RUN_PATH'
12668 if test yes = "$GCC"; then
12669 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12670 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12677 sysv5* | sco3.2v5* | sco5v6*)
12678 # Note: We CANNOT use -z defs as we might desire, because we do not
12679 # link with -lc, and that would cause any symbols used from libc to
12680 # always be unresolved, which means just about no library would
12681 # ever link correctly. If we're not using GNU ld we use -z text
12682 # though, which does catch some bad symbols but isn't as heavy-handed
12684 no_undefined_flag='$wl-z,text'
12685 allow_undefined_flag='$wl-z,nodefs'
12686 archive_cmds_need_lc=no
12687 hardcode_shlibpath_var=no
12688 hardcode_libdir_flag_spec='$wl-R,$libdir'
12689 hardcode_libdir_separator=':'
12690 link_all_deplibs=yes
12691 export_dynamic_flag_spec='$wl-Bexport'
12692 runpath_var='LD_RUN_PATH'
12694 if test yes = "$GCC"; then
12695 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12698 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705 hardcode_libdir_flag_spec='-L$libdir'
12706 hardcode_shlibpath_var=no
12714 if test sni = "$host_vendor"; then
12716 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12717 export_dynamic_flag_spec='$wl-Blargedynsym'
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12724 $as_echo "$ld_shlibs" >&6; }
12725 test no = "$ld_shlibs" && can_build_shared=no
12727 with_gnu_ld=$with_gnu_ld
12744 # Do we need to explicitly link libc?
12746 case "x$archive_cmds_need_lc" in
12748 # Assume -lc should be added
12749 archive_cmds_need_lc=yes
12751 if test yes,yes = "$GCC,$enable_shared"; then
12752 case $archive_cmds in
12754 # FIXME: we may have to deal with multi-command sequences.
12757 # Test whether the compiler implicitly links with -lc since on some
12758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12759 # to ld, don't add -lc before -lgcc.
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12761 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12762 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12763 $as_echo_n "(cached) " >&6
12766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12769 (eval $ac_compile) 2>&5
12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772 test $ac_status = 0; } 2>conftest.err; then
12775 libobjs=conftest.$ac_objext
12777 wl=$lt_prog_compiler_wl
12778 pic_flag=$lt_prog_compiler_pic
12784 lt_save_allow_undefined_flag=$allow_undefined_flag
12785 allow_undefined_flag=
12786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12787 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790 test $ac_status = 0; }
12792 lt_cv_archive_cmds_need_lc=no
12794 lt_cv_archive_cmds_need_lc=yes
12796 allow_undefined_flag=$lt_save_allow_undefined_flag
12798 cat conftest.err 1>&5
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12804 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12805 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12964 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12966 if test yes = "$GCC"; then
12968 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12969 *) lt_awk_arg='/^libraries:/' ;;
12972 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12973 *) lt_sed_strip_eq='s|=/|/|g' ;;
12975 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12976 case $lt_search_path_spec in
12978 # if the path contains ";" then we assume it to be the separator
12979 # otherwise default to the standard path separator (i.e. ":") - it is
12980 # assumed that no part of a normal pathname contains ";" but that should
12981 # okay in the real world where ";" in dirpaths is itself problematic.
12982 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12988 # Ok, now we have the path, separated by spaces, we can step through it
12989 # and add multilib dir if necessary...
12990 lt_tmp_lt_search_path_spec=
12991 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12992 # ...but if some path component already ends with the multilib dir we assume
12993 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12994 case "$lt_multi_os_dir; $lt_search_path_spec " in
12995 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12999 for lt_sys_path in $lt_search_path_spec; do
13000 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13001 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13002 elif test -n "$lt_multi_os_dir"; then
13003 test -d "$lt_sys_path" && \
13004 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13007 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13008 BEGIN {RS = " "; FS = "/|\n";} {
13011 for (lt_i = NF; lt_i > 0; lt_i--) {
13012 if ($lt_i != "" && $lt_i != ".") {
13013 if ($lt_i == "..") {
13016 if (lt_count == 0) {
13017 lt_foo = "/" $lt_i lt_foo;
13024 if (lt_foo != "") { lt_freq[lt_foo]++; }
13025 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13027 # AWK program above erroneously prepends '/' to C:/dos/paths
13030 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13031 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13033 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13037 library_names_spec=
13038 libname_spec='lib$name'
13042 postuninstall_cmds=
13046 shlibpath_overrides_runpath=unknown
13048 dynamic_linker="$host_os ld.so"
13049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13050 need_lib_prefix=unknown
13051 hardcode_into_libs=no
13053 # when you set need_version to no, make sure it does not cause -set_version
13054 # flags to be left without arguments
13055 need_version=unknown
13061 version_type=linux # correct to gnu/linux during the next big refactor
13062 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13063 shlibpath_var=LIBPATH
13065 # AIX 3 has no versioning support, so we append a major version to the name.
13066 soname_spec='$libname$release$shared_ext$major'
13070 version_type=linux # correct to gnu/linux during the next big refactor
13073 hardcode_into_libs=yes
13074 if test ia64 = "$host_cpu"; then
13075 # AIX 5 supports IA64
13076 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13077 shlibpath_var=LD_LIBRARY_PATH
13079 # With GCC up to 2.95.x, collect2 would create an import file
13080 # for dependence libraries. The import file would start with
13081 # the line '#! .'. This would cause the generated library to
13082 # depend on '.', always an invalid library. This was fixed in
13083 # development snapshots of GCC prior to 3.0.
13085 aix4 | aix4.[01] | aix4.[01].*)
13086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13088 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13091 can_build_shared=no
13095 # Using Import Files as archive members, it is possible to support
13096 # filename-based versioning of shared library archives on AIX. While
13097 # this would work for both with and without runtime linking, it will
13098 # prevent static linking of such archives. So we do filename-based
13099 # shared library versioning with .so extension only, which is used
13100 # when both runtime linking and shared linking is enabled.
13101 # Unfortunately, runtime linking may impact performance, so we do
13102 # not want this to be the default eventually. Also, we use the
13103 # versioned .so libs for executables only if there is the -brtl
13104 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13105 # To allow for filename-based versioning support, we need to create
13106 # libNAME.so.V as an archive file, containing:
13107 # *) an Import File, referring to the versioned filename of the
13108 # archive as well as the shared archive member, telling the
13109 # bitwidth (32 or 64) of that shared object, and providing the
13110 # list of exported symbols of that shared object, eventually
13111 # decorated with the 'weak' keyword
13112 # *) the shared object with the F_LOADONLY flag set, to really avoid
13113 # it being seen by the linker.
13114 # At run time we better use the real file rather than another symlink,
13115 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13117 case $with_aix_soname,$aix_use_runtimelinking in
13118 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13119 # soname into executable. Probably we can add versioning support to
13120 # collect2, so additional links can be useful in future.
13121 aix,yes) # traditional libtool
13122 dynamic_linker='AIX unversionable lib.so'
13123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13124 # instead of lib<name>.a to let people know that these are not
13125 # typical AIX shared libraries.
13126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13128 aix,no) # traditional AIX only
13129 dynamic_linker='AIX lib.a(lib.so.V)'
13130 # We preserve .a as extension for shared libraries through AIX4.2
13131 # and later when we are not doing run time linking.
13132 library_names_spec='$libname$release.a $libname.a'
13133 soname_spec='$libname$release$shared_ext$major'
13135 svr4,*) # full svr4 only
13136 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13137 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13138 # We do not specify a path in Import Files, so LIBPATH fires.
13139 shlibpath_overrides_runpath=yes
13141 *,yes) # both, prefer svr4
13142 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13143 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13144 # unpreferred sharedlib libNAME.a needs extra handling
13145 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"'
13146 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"'
13147 # We do not specify a path in Import Files, so LIBPATH fires.
13148 shlibpath_overrides_runpath=yes
13150 *,no) # both, prefer aix
13151 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13152 library_names_spec='$libname$release.a $libname.a'
13153 soname_spec='$libname$release$shared_ext$major'
13154 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13155 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)'
13156 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"'
13159 shlibpath_var=LIBPATH
13166 # Since July 2007 AmigaOS4 officially supports .so libraries.
13167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13171 library_names_spec='$libname.ixlibrary $libname.a'
13172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13173 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'
13179 library_names_spec='$libname$shared_ext'
13180 dynamic_linker="$host_os ld.so"
13181 shlibpath_var=LIBRARY_PATH
13185 version_type=linux # correct to gnu/linux during the next big refactor
13187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13188 soname_spec='$libname$release$shared_ext$major'
13189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13190 shlibpath_var=LD_LIBRARY_PATH
13191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13193 # the default ld.so.conf also contains /usr/contrib/lib and
13194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13195 # libtool to hard-code these into programs
13198 cygwin* | mingw* | pw32* | cegcc*)
13199 version_type=windows
13204 case $GCC,$cc_basename in
13207 library_names_spec='$libname.dll.a'
13208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13209 postinstall_cmds='base_file=`basename \$file`~
13210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13211 dldir=$destdir/`dirname \$dlpath`~
13212 test -d \$dldir || mkdir -p \$dldir~
13213 $install_prog $dir/$dlname \$dldir/$dlname~
13214 chmod a+x \$dldir/$dlname~
13215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13219 dlpath=$dir/\$dldll~
13221 shlibpath_overrides_runpath=yes
13225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13226 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13231 # MinGW DLLs use traditional 'lib' prefix
13232 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13235 # pw32 DLLs use 'pw' prefix rather than 'lib'
13236 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13239 dynamic_linker='Win32 ld.exe'
13244 libname_spec='$name'
13245 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13246 library_names_spec='$libname.dll.lib'
13250 sys_lib_search_path_spec=
13253 for lt_path in $LIB
13256 # Let DOS variable expansion print the short 8.3 style file name.
13257 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13258 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13261 # Convert to MSYS style.
13262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13265 # Convert to unix form, then to dos form, then back to unix form
13266 # but this time dos style (no spaces!) so that the unix form looks
13267 # like /cygdrive/c/PROGRA~1:/cygdr...
13268 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13269 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13270 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13273 sys_lib_search_path_spec=$LIB
13274 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13275 # It is most probably a Windows format PATH.
13276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13280 # FIXME: find the short name or the path components, as spaces are
13281 # common. (e.g. "Program Files" -> "PROGRA~1")
13285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13286 postinstall_cmds='base_file=`basename \$file`~
13287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13288 dldir=$destdir/`dirname \$dlpath`~
13289 test -d \$dldir || mkdir -p \$dldir~
13290 $install_prog $dir/$dlname \$dldir/$dlname'
13291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13292 dlpath=$dir/\$dldll~
13294 shlibpath_overrides_runpath=yes
13295 dynamic_linker='Win32 link.exe'
13299 # Assume MSVC wrapper
13300 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13301 dynamic_linker='Win32 ld.exe'
13304 # FIXME: first we should search . and the directory the executable is in
13308 darwin* | rhapsody*)
13309 dynamic_linker="$host_os dyld"
13310 version_type=darwin
13313 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13314 soname_spec='$libname$release$major$shared_ext'
13315 shlibpath_overrides_runpath=yes
13316 shlibpath_var=DYLD_LIBRARY_PATH
13317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13324 version_type=linux # correct to gnu/linux during the next big refactor
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 soname_spec='$libname$release$shared_ext$major'
13329 shlibpath_var=LD_LIBRARY_PATH
13332 freebsd* | dragonfly*)
13333 # DragonFly does not have aout. When/if they implement a new
13334 # versioning mechanism, adjust this.
13335 if test -x /usr/bin/objformat; then
13336 objformat=`/usr/bin/objformat`
13339 freebsd[23].*) objformat=aout ;;
13340 *) objformat=elf ;;
13343 version_type=freebsd-$objformat
13344 case $version_type in
13346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13347 soname_spec='$libname$release$shared_ext$major'
13352 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13356 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13361 freebsd3.[01]* | freebsdelf3.[01]*)
13362 shlibpath_overrides_runpath=yes
13363 hardcode_into_libs=yes
13365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13367 shlibpath_overrides_runpath=no
13368 hardcode_into_libs=yes
13370 *) # from 4.6 on, and DragonFly
13371 shlibpath_overrides_runpath=yes
13372 hardcode_into_libs=yes
13378 version_type=linux # correct to gnu/linux during the next big refactor
13381 dynamic_linker="$host_os runtime_loader"
13382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13383 soname_spec='$libname$release$shared_ext$major'
13384 shlibpath_var=LIBRARY_PATH
13385 shlibpath_overrides_runpath=no
13386 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13387 hardcode_into_libs=yes
13390 hpux9* | hpux10* | hpux11*)
13391 # Give a soname corresponding to the major version so that dld.sl refuses to
13392 # link against other versions.
13399 hardcode_into_libs=yes
13400 dynamic_linker="$host_os dld.so"
13401 shlibpath_var=LD_LIBRARY_PATH
13402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13404 soname_spec='$libname$release$shared_ext$major'
13405 if test 32 = "$HPUX_IA64_MODE"; then
13406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13407 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13409 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13410 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13415 hardcode_into_libs=yes
13416 dynamic_linker="$host_os dld.sl"
13417 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420 soname_spec='$libname$release$shared_ext$major'
13421 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13426 dynamic_linker="$host_os dld.sl"
13427 shlibpath_var=SHLIB_PATH
13428 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13433 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13434 postinstall_cmds='chmod 555 $lib'
13435 # or fails outright, so override atomically:
13436 install_override_mode=555
13440 version_type=linux # correct to gnu/linux during the next big refactor
13443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444 soname_spec='$libname$release$shared_ext$major'
13445 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=no
13448 hardcode_into_libs=yes
13451 irix5* | irix6* | nonstopux*)
13453 nonstopux*) version_type=nonstopux ;;
13455 if test yes = "$lt_cv_prog_gnu_ld"; then
13456 version_type=linux # correct to gnu/linux during the next big refactor
13463 soname_spec='$libname$release$shared_ext$major'
13464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13466 irix5* | nonstopux*)
13467 libsuff= shlibsuff=
13470 case $LD in # libtool.m4 will add one of these switches to LD
13471 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13472 libsuff= shlibsuff= libmagic=32-bit;;
13473 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13474 libsuff=32 shlibsuff=N32 libmagic=N32;;
13475 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13476 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13477 *) libsuff= shlibsuff= libmagic=never-match;;
13481 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13482 shlibpath_overrides_runpath=no
13483 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13484 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13485 hardcode_into_libs=yes
13488 # No shared lib support for Linux oldld, aout, or coff.
13489 linux*oldld* | linux*aout* | linux*coff*)
13494 version_type=none # Android doesn't support versioned libraries.
13497 library_names_spec='$libname$release$shared_ext'
13498 soname_spec='$libname$release$shared_ext'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=yes
13503 # This implies no fast_install, which is unacceptable.
13504 # Some rework will be needed to allow for fast_install
13505 # before this can be enabled.
13506 hardcode_into_libs=yes
13508 dynamic_linker='Android linker'
13509 # Don't embed -rpath directories since the linker doesn't support them.
13510 hardcode_libdir_flag_spec='-L$libdir'
13513 # This must be glibc/ELF.
13514 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13515 version_type=linux # correct to gnu/linux during the next big refactor
13518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13519 soname_spec='$libname$release$shared_ext$major'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=no
13524 # Some binutils ld are patched to set DT_RUNPATH
13525 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13526 $as_echo_n "(cached) " >&6
13528 lt_cv_shlibpath_overrides_runpath=no
13529 save_LDFLAGS=$LDFLAGS
13530 save_libdir=$libdir
13531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13544 if ac_fn_c_try_link "$LINENO"; then :
13545 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13546 lt_cv_shlibpath_overrides_runpath=yes
13549 rm -f core conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13551 LDFLAGS=$save_LDFLAGS
13552 libdir=$save_libdir
13556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13558 # This implies no fast_install, which is unacceptable.
13559 # Some rework will be needed to allow for fast_install
13560 # before this can be enabled.
13561 hardcode_into_libs=yes
13563 # Add ABI-specific directories to the system library path.
13564 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13566 # Ideally, we could use ldconfig to report *all* directores which are
13567 # searched for libraries, however this is still not possible. Aside from not
13568 # being certain /sbin/ldconfig is available, command
13569 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13570 # even though it is searched at run-time. Try to do the best guess by
13571 # appending ld.so.conf contents (and includes) to the search path.
13572 if test -f /etc/ld.so.conf; then
13573 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' ' '`
13574 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13577 # We used to test for /lib/ld.so.1 and disable shared libraries on
13578 # powerpc, because MkLinux only supported shared libraries with the
13579 # GNU dynamic linker. Since this was broken with cross compilers,
13580 # most powerpc-linux boxes support dynamic linking these days and
13581 # people can always --disable-shared, the test was removed, and we
13582 # assume the GNU/Linux dynamic linker is in use.
13583 dynamic_linker='GNU/Linux ld.so'
13590 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13591 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593 dynamic_linker='NetBSD (a.out) ld.so'
13595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13596 soname_spec='$libname$release$shared_ext$major'
13597 dynamic_linker='NetBSD ld.elf_so'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes
13601 hardcode_into_libs=yes
13605 version_type=linux # correct to gnu/linux during the next big refactor
13606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13616 soname_spec='$libname$release$shared_ext$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 shlibpath_overrides_runpath=no
13619 hardcode_into_libs=yes
13620 dynamic_linker='ldqnx.so'
13623 openbsd* | bitrig*)
13625 sys_lib_dlsearch_path_spec=/usr/lib
13627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13632 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 shlibpath_overrides_runpath=yes
13639 libname_spec='$name'
13640 version_type=windows
13644 # OS/2 can only load a DLL with a base name of 8 characters or less.
13645 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13646 v=$($ECHO $release$versuffix | tr -d .-);
13647 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13648 $ECHO $n$v`$shared_ext'
13649 library_names_spec='${libname}_dll.$libext'
13650 dynamic_linker='OS/2 ld.exe'
13651 shlibpath_var=BEGINLIBPATH
13652 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654 postinstall_cmds='base_file=`basename \$file`~
13655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13656 dldir=$destdir/`dirname \$dlpath`~
13657 test -d \$dldir || mkdir -p \$dldir~
13658 $install_prog $dir/$dlname \$dldir/$dlname~
13659 chmod a+x \$dldir/$dlname~
13660 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13661 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13664 dlpath=$dir/\$dldll~
13668 osf3* | osf4* | osf5*)
13672 soname_spec='$libname$release$shared_ext$major'
13673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13684 version_type=linux # correct to gnu/linux during the next big refactor
13687 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13688 soname_spec='$libname$release$shared_ext$major'
13689 shlibpath_var=LD_LIBRARY_PATH
13690 shlibpath_overrides_runpath=yes
13691 hardcode_into_libs=yes
13692 # ldd complains unless libraries are executable
13693 postinstall_cmds='chmod +x $lib'
13698 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 shlibpath_overrides_runpath=yes
13702 if test yes = "$with_gnu_ld"; then
13709 version_type=linux # correct to gnu/linux during the next big refactor
13710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13711 soname_spec='$libname$release$shared_ext$major'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 case $host_vendor in
13715 shlibpath_overrides_runpath=no
13717 runpath_var=LD_RUN_PATH
13725 shlibpath_overrides_runpath=no
13726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13732 if test -d /usr/nec; then
13733 version_type=linux # correct to gnu/linux during the next big refactor
13734 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13735 soname_spec='$libname$shared_ext.$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13745 soname_spec='$libname$release$shared_ext$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=yes
13748 hardcode_into_libs=yes
13749 if test yes = "$with_gnu_ld"; then
13750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13759 sys_lib_dlsearch_path_spec='/usr/lib'
13763 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13764 version_type=linux # correct to gnu/linux during the next big refactor
13767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=no
13770 hardcode_into_libs=yes
13774 version_type=linux # correct to gnu/linux during the next big refactor
13775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13776 soname_spec='$libname$release$shared_ext$major'
13777 shlibpath_var=LD_LIBRARY_PATH
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13785 $as_echo "$dynamic_linker" >&6; }
13786 test no = "$dynamic_linker" && can_build_shared=no
13788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13789 if test yes = "$GCC"; then
13790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13793 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13794 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13797 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13798 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13801 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13802 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13804 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13805 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13807 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13808 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13909 if test -n "$hardcode_libdir_flag_spec" ||
13910 test -n "$runpath_var" ||
13911 test yes = "$hardcode_automatic"; then
13913 # We can hardcode non-existent directories.
13914 if test no != "$hardcode_direct" &&
13915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13916 # have to relink, otherwise we might link with an installed library
13917 # when we should be linking with a yet-to-be-installed one
13918 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13919 test no != "$hardcode_minus_L"; then
13920 # Linking always hardcodes the temporary library directory.
13921 hardcode_action=relink
13923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13924 hardcode_action=immediate
13927 # We cannot hardcode anything, or else we can only hardcode existing
13929 hardcode_action=unsupported
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13932 $as_echo "$hardcode_action" >&6; }
13934 if test relink = "$hardcode_action" ||
13935 test yes = "$inherit_rpath"; then
13936 # Fast installation is not supported
13937 enable_fast_install=no
13938 elif test yes = "$shlibpath_overrides_runpath" ||
13939 test no = "$enable_shared"; then
13940 # Fast installation is not necessary
13941 enable_fast_install=needless
13949 if test yes != "$enable_dlopen"; then
13950 enable_dlopen=unknown
13951 enable_dlopen_self=unknown
13952 enable_dlopen_self_static=unknown
13959 lt_cv_dlopen=load_add_on
13961 lt_cv_dlopen_self=yes
13964 mingw* | pw32* | cegcc*)
13965 lt_cv_dlopen=LoadLibrary
13970 lt_cv_dlopen=dlopen
13975 # if libdl is installed we need to link against it
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13978 if ${ac_cv_lib_dl_dlopen+:} false; then :
13979 $as_echo_n "(cached) " >&6
13981 ac_check_lib_save_LIBS=$LIBS
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 /* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 ac_cv_lib_dl_dlopen=yes
14004 ac_cv_lib_dl_dlopen=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LIBS=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14011 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14012 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14013 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14018 lt_cv_dlopen_self=yes
14025 # Don't try to run any link tests for TPF. We know it's impossible
14026 # because TPF is a cross-compiler, and we know how we open DSOs.
14027 lt_cv_dlopen=dlopen
14029 lt_cv_dlopen_self=no
14033 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14034 if test "x$ac_cv_func_shl_load" = xyes; then :
14035 lt_cv_dlopen=shl_load
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14038 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14039 if ${ac_cv_lib_dld_shl_load+:} false; then :
14040 $as_echo_n "(cached) " >&6
14042 ac_check_lib_save_LIBS=$LIBS
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14057 return shl_load ();
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 ac_cv_lib_dld_shl_load=yes
14065 ac_cv_lib_dld_shl_load=no
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 LIBS=$ac_check_lib_save_LIBS
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14072 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14073 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14074 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14076 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14077 if test "x$ac_cv_func_dlopen" = xyes; then :
14078 lt_cv_dlopen=dlopen
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14081 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14082 if ${ac_cv_lib_dl_dlopen+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 ac_check_lib_save_LIBS=$LIBS
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14105 if ac_fn_c_try_link "$LINENO"; then :
14106 ac_cv_lib_dl_dlopen=yes
14108 ac_cv_lib_dl_dlopen=no
14110 rm -f core conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14115 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14116 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14117 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14120 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14121 if ${ac_cv_lib_svld_dlopen+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 ac_check_lib_save_LIBS=$LIBS
14125 LIBS="-lsvld $LIBS"
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14129 /* Override any GCC internal prototype to avoid an error.
14130 Use char because int might match the return type of a GCC
14131 builtin and then its argument prototype would still apply. */
14144 if ac_fn_c_try_link "$LINENO"; then :
14145 ac_cv_lib_svld_dlopen=yes
14147 ac_cv_lib_svld_dlopen=no
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14151 LIBS=$ac_check_lib_save_LIBS
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14154 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14155 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14156 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14159 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14160 if ${ac_cv_lib_dld_dld_link+:} false; then :
14161 $as_echo_n "(cached) " >&6
14163 ac_check_lib_save_LIBS=$LIBS
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14178 return dld_link ();
14183 if ac_fn_c_try_link "$LINENO"; then :
14184 ac_cv_lib_dld_dld_link=yes
14186 ac_cv_lib_dld_dld_link=no
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14193 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14194 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14195 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14216 if test no = "$lt_cv_dlopen"; then
14222 case $lt_cv_dlopen in
14224 save_CPPFLAGS=$CPPFLAGS
14225 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14227 save_LDFLAGS=$LDFLAGS
14228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14231 LIBS="$lt_cv_dlopen_libs $LIBS"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14234 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14235 if ${lt_cv_dlopen_self+:} false; then :
14236 $as_echo_n "(cached) " >&6
14238 if test yes = "$cross_compiling"; then :
14239 lt_cv_dlopen_self=cross
14241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14242 lt_status=$lt_dlunknown
14243 cat > conftest.$ac_ext <<_LT_EOF
14244 #line $LINENO "configure"
14245 #include "confdefs.h"
14254 # define LT_DLGLOBAL RTLD_GLOBAL
14257 # define LT_DLGLOBAL DL_GLOBAL
14259 # define LT_DLGLOBAL 0
14263 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14264 find out it does not work in some platform. */
14265 #ifndef LT_DLLAZY_OR_NOW
14267 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14270 # define LT_DLLAZY_OR_NOW DL_LAZY
14273 # define LT_DLLAZY_OR_NOW RTLD_NOW
14276 # define LT_DLLAZY_OR_NOW DL_NOW
14278 # define LT_DLLAZY_OR_NOW 0
14285 /* When -fvisibility=hidden is used, assume the code has been annotated
14286 correspondingly for the symbols needed. */
14287 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14288 int fnord () __attribute__((visibility("default")));
14291 int fnord () { return 42; }
14294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14295 int status = $lt_dlunknown;
14299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14302 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14303 else puts (dlerror ());
14305 /* dlclose (self); */
14313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14314 (eval $ac_link) 2>&5
14316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14317 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14318 (./conftest; exit; ) >&5 2>/dev/null
14320 case x$lt_status in
14321 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14322 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14323 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14326 # compilation failed
14327 lt_cv_dlopen_self=no
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14335 $as_echo "$lt_cv_dlopen_self" >&6; }
14337 if test yes = "$lt_cv_dlopen_self"; then
14338 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14340 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14341 if ${lt_cv_dlopen_self_static+:} false; then :
14342 $as_echo_n "(cached) " >&6
14344 if test yes = "$cross_compiling"; then :
14345 lt_cv_dlopen_self_static=cross
14347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14348 lt_status=$lt_dlunknown
14349 cat > conftest.$ac_ext <<_LT_EOF
14350 #line $LINENO "configure"
14351 #include "confdefs.h"
14360 # define LT_DLGLOBAL RTLD_GLOBAL
14363 # define LT_DLGLOBAL DL_GLOBAL
14365 # define LT_DLGLOBAL 0
14369 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14370 find out it does not work in some platform. */
14371 #ifndef LT_DLLAZY_OR_NOW
14373 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14376 # define LT_DLLAZY_OR_NOW DL_LAZY
14379 # define LT_DLLAZY_OR_NOW RTLD_NOW
14382 # define LT_DLLAZY_OR_NOW DL_NOW
14384 # define LT_DLLAZY_OR_NOW 0
14391 /* When -fvisibility=hidden is used, assume the code has been annotated
14392 correspondingly for the symbols needed. */
14393 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14394 int fnord () __attribute__((visibility("default")));
14397 int fnord () { return 42; }
14400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14401 int status = $lt_dlunknown;
14405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14408 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14409 else puts (dlerror ());
14411 /* dlclose (self); */
14419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14420 (eval $ac_link) 2>&5
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14424 (./conftest; exit; ) >&5 2>/dev/null
14426 case x$lt_status in
14427 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14428 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14429 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14432 # compilation failed
14433 lt_cv_dlopen_self_static=no
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14441 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14444 CPPFLAGS=$save_CPPFLAGS
14445 LDFLAGS=$save_LDFLAGS
14450 case $lt_cv_dlopen_self in
14451 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14452 *) enable_dlopen_self=unknown ;;
14455 case $lt_cv_dlopen_self_static in
14456 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14457 *) enable_dlopen_self_static=unknown ;;
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14480 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14481 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14482 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14483 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14487 # FIXME - insert some real tests, host_os isn't really good enough
14490 if test -n "$STRIP"; then
14491 striplib="$STRIP -x"
14492 old_striplib="$STRIP -S"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 $as_echo "yes" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14518 # Report what library types will actually be built
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14520 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14522 $as_echo "$can_build_shared" >&6; }
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14525 $as_echo_n "checking whether to build shared libraries... " >&6; }
14526 test no = "$can_build_shared" && enable_shared=no
14528 # On AIX, shared libraries and static libraries use the same namespace, and
14529 # are all built from PIC.
14532 test yes = "$enable_shared" && enable_static=no
14533 if test -n "$RANLIB"; then
14534 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14535 postinstall_cmds='$RANLIB $lib'
14540 if test ia64 != "$host_cpu"; then
14541 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14542 yes,aix,yes) ;; # shared object as lib.so file only
14543 yes,svr4,*) ;; # shared object as lib.so archive member only
14544 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14550 $as_echo "$enable_shared" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14553 $as_echo_n "checking whether to build static libraries... " >&6; }
14554 # Make sure either enable_shared or enable_static is yes.
14555 test yes = "$enable_shared" || enable_static=yes
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14557 $as_echo "$enable_static" >&6; }
14564 ac_cpp='$CPP $CPPFLAGS'
14565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14585 ac_config_commands="$ac_config_commands libtool"
14590 # Only expand once:
14602 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14603 if test -n "$ac_tool_prefix"; then
14604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14605 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 case $PKG_CONFIG in
14613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14635 if test -n "$PKG_CONFIG"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14637 $as_echo "$PKG_CONFIG" >&6; }
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14645 if test -z "$ac_cv_path_PKG_CONFIG"; then
14646 ac_pt_PKG_CONFIG=$PKG_CONFIG
14647 # Extract the first word of "pkg-config", so it can be a program name with args.
14648 set dummy pkg-config; ac_word=$2
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14650 $as_echo_n "checking for $ac_word... " >&6; }
14651 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14652 $as_echo_n "(cached) " >&6
14654 case $ac_pt_PKG_CONFIG in
14656 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14660 for as_dir in $PATH
14663 test -z "$as_dir" && as_dir=.
14664 for ac_exec_ext in '' $ac_executable_extensions; do
14665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14678 if test -n "$ac_pt_PKG_CONFIG"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14680 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14686 if test "x$ac_pt_PKG_CONFIG" = x; then
14689 case $cross_compiling:$ac_tool_warned in
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14693 ac_tool_warned=yes ;;
14695 PKG_CONFIG=$ac_pt_PKG_CONFIG
14698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14702 if test -n "$PKG_CONFIG"; then
14703 _pkg_min_version=0.9.0
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14705 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14708 $as_echo "yes" >&6; }
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14716 # Checks for header files.
14717 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
14719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14720 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14723 cat >>confdefs.h <<_ACEOF
14724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 # Using own tests for int64* because autoconf builtin only give 32bit.
14734 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14735 if test "x$ac_cv_type_int8_t" = xyes; then :
14739 cat >>confdefs.h <<_ACEOF
14740 #define int8_t signed char
14745 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14746 if test "x$ac_cv_type_int16_t" = xyes; then :
14750 cat >>confdefs.h <<_ACEOF
14751 #define int16_t short
14756 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14757 if test "x$ac_cv_type_int32_t" = xyes; then :
14761 cat >>confdefs.h <<_ACEOF
14762 #define int32_t int
14767 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14768 if test "x$ac_cv_type_int64_t" = xyes; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define int64_t long long
14778 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14779 if test "x$ac_cv_type_uint8_t" = xyes; then :
14783 cat >>confdefs.h <<_ACEOF
14784 #define uint8_t unsigned char
14789 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14790 if test "x$ac_cv_type_uint16_t" = xyes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define uint16_t unsigned short
14800 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14801 if test "x$ac_cv_type_uint32_t" = xyes; then :
14805 cat >>confdefs.h <<_ACEOF
14806 #define uint32_t unsigned int
14811 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14812 if test "x$ac_cv_type_uint64_t" = xyes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define uint64_t unsigned long long
14822 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14823 if test "x$ac_cv_type_size_t" = xyes; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define size_t unsigned int
14833 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14834 if test "x$ac_cv_type_ssize_t" = xyes; then :
14838 cat >>confdefs.h <<_ACEOF
14839 #define ssize_t int
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14845 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14846 if ${ac_cv_type_uid_t+:} false; then :
14847 $as_echo_n "(cached) " >&6
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 #include <sys/types.h>
14854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14855 $EGREP "uid_t" >/dev/null 2>&1; then :
14856 ac_cv_type_uid_t=yes
14858 ac_cv_type_uid_t=no
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14864 $as_echo "$ac_cv_type_uid_t" >&6; }
14865 if test $ac_cv_type_uid_t = no; then
14867 $as_echo "#define uid_t int" >>confdefs.h
14870 $as_echo "#define gid_t int" >>confdefs.h
14874 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14875 if test "x$ac_cv_type_pid_t" = xyes; then :
14879 cat >>confdefs.h <<_ACEOF
14885 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14886 if test "x$ac_cv_type_off_t" = xyes; then :
14890 cat >>confdefs.h <<_ACEOF
14891 #define off_t long int
14896 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14897 $ac_includes_default
14898 #ifdef HAVE_WINSOCK2_H
14899 # include <winsock2.h>
14903 if test "x$ac_cv_type_u_char" = xyes; then :
14907 $as_echo "#define u_char unsigned char" >>confdefs.h
14911 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14912 $ac_includes_default
14913 #ifdef HAVE_SYS_RESOURCE_H
14914 # include <sys/resource.h>
14918 if test "x$ac_cv_type_rlim_t" = xyes; then :
14922 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14927 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14928 $ac_includes_default
14929 #ifdef HAVE_SYS_SOCKET_H
14930 # include <sys/socket.h>
14932 #ifdef HAVE_WS2TCPIP_H
14933 # include <ws2tcpip.h>
14937 if test "x$ac_cv_type_socklen_t" = xyes; then :
14941 $as_echo "#define socklen_t int" >>confdefs.h
14945 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14946 $ac_includes_default
14947 #ifdef HAVE_SYS_TYPES_H
14948 # include <sys/types.h>
14950 #ifdef HAVE_NETINET_IN_H
14951 # include <netinet/in.h>
14955 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14959 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14963 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14964 $ac_includes_default
14965 #ifdef HAVE_SYS_TYPES_H
14966 # include <sys/types.h>
14968 #ifdef HAVE_NETINET_IN_H
14969 # include <netinet/in.h>
14973 if test "x$ac_cv_type_in_port_t" = xyes; then :
14977 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14982 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14983 if test "$cross_compiling" = yes; then :
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14985 $as_echo "cross-compile no" >&6; }
14987 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14989 case " $LIBOBJS " in
14990 *" memcmp.$ac_objext "* ) ;;
14991 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15001 #include <stdlib.h>
15002 #include <string.h>
15005 char a = 255, b = 0;
15006 if(memcmp(&a, &b, 1) < 0)
15012 if ac_fn_c_try_run "$LINENO"; then :
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15019 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
15021 case " $LIBOBJS " in
15022 *" memcmp.$ac_objext "* ) ;;
15023 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15030 conftest.$ac_objext conftest.beam conftest.$ac_ext
15034 # The cast to long int works around a bug in the HP C Compiler
15035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15037 # This bug is HP SR number 8606223364.
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15039 $as_echo_n "checking size of time_t... " >&6; }
15040 if ${ac_cv_sizeof_time_t+:} false; then :
15041 $as_echo_n "(cached) " >&6
15043 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15044 $ac_includes_default
15045 #ifdef TIME_WITH_SYS_TIME
15046 # include <sys/time.h>
15049 # ifdef HAVE_SYS_TIME_H
15050 # include <sys/time.h>
15059 if test "$ac_cv_type_time_t" = yes; then
15060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15062 as_fn_error 77 "cannot compute sizeof (time_t)
15063 See \`config.log' for more details" "$LINENO" 5; }
15065 ac_cv_sizeof_time_t=0
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15071 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15075 cat >>confdefs.h <<_ACEOF
15076 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15080 # The cast to long int works around a bug in the HP C Compiler
15081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15083 # This bug is HP SR number 8606223364.
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15085 $as_echo_n "checking size of size_t... " >&6; }
15086 if ${ac_cv_sizeof_size_t+:} false; then :
15087 $as_echo_n "(cached) " >&6
15089 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15092 if test "$ac_cv_type_size_t" = yes; then
15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15095 as_fn_error 77 "cannot compute sizeof (size_t)
15096 See \`config.log' for more details" "$LINENO" 5; }
15098 ac_cv_sizeof_size_t=0
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15104 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15108 cat >>confdefs.h <<_ACEOF
15109 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15114 # add option to disable the evil rpath
15116 # Check whether --enable-rpath was given.
15117 if test "${enable_rpath+set}" = set; then :
15118 enableval=$enable_rpath; enable_rpath=$enableval
15123 if test "x$enable_rpath" = xno; then
15124 ac_config_commands="$ac_config_commands disable-rpath"
15130 # check to see if libraries are needed for these functions.
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
15132 $as_echo_n "checking for library containing inet_pton... " >&6; }
15133 if ${ac_cv_search_inet_pton+:} false; then :
15134 $as_echo_n "(cached) " >&6
15136 ac_func_search_save_LIBS=$LIBS
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15150 return inet_pton ();
15155 for ac_lib in '' nsl; do
15156 if test -z "$ac_lib"; then
15157 ac_res="none required"
15160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_search_inet_pton=$ac_res
15165 rm -f core conftest.err conftest.$ac_objext \
15167 if ${ac_cv_search_inet_pton+:} false; then :
15171 if ${ac_cv_search_inet_pton+:} false; then :
15174 ac_cv_search_inet_pton=no
15176 rm conftest.$ac_ext
15177 LIBS=$ac_func_search_save_LIBS
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
15180 $as_echo "$ac_cv_search_inet_pton" >&6; }
15181 ac_res=$ac_cv_search_inet_pton
15182 if test "$ac_res" != no; then :
15183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15188 $as_echo_n "checking for library containing socket... " >&6; }
15189 if ${ac_cv_search_socket+:} false; then :
15190 $as_echo_n "(cached) " >&6
15192 ac_func_search_save_LIBS=$LIBS
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15196 /* Override any GCC internal prototype to avoid an error.
15197 Use char because int might match the return type of a GCC
15198 builtin and then its argument prototype would still apply. */
15211 for ac_lib in '' socket; do
15212 if test -z "$ac_lib"; then
15213 ac_res="none required"
15216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15218 if ac_fn_c_try_link "$LINENO"; then :
15219 ac_cv_search_socket=$ac_res
15221 rm -f core conftest.err conftest.$ac_objext \
15223 if ${ac_cv_search_socket+:} false; then :
15227 if ${ac_cv_search_socket+:} false; then :
15230 ac_cv_search_socket=no
15232 rm conftest.$ac_ext
15233 LIBS=$ac_func_search_save_LIBS
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15236 $as_echo "$ac_cv_search_socket" >&6; }
15237 ac_res=$ac_cv_search_socket
15238 if test "$ac_res" != no; then :
15239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15244 # check wether strptime also works
15246 # check some functions of the OS before linking libs (while still runnable).
15247 for ac_header in unistd.h
15249 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15250 if test "x$ac_cv_header_unistd_h" = xyes; then :
15251 cat >>confdefs.h <<_ACEOF
15252 #define HAVE_UNISTD_H 1
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15260 $as_echo_n "checking for working chown... " >&6; }
15261 if ${ac_cv_func_chown_works+:} false; then :
15262 $as_echo_n "(cached) " >&6
15264 if test "$cross_compiling" = yes; then :
15265 ac_cv_func_chown_works=no
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269 $ac_includes_default
15275 char *f = "conftest.chown";
15276 struct stat before, after;
15278 if (creat (f, 0600) < 0)
15280 if (stat (f, &before) < 0)
15282 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15284 if (stat (f, &after) < 0)
15286 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15292 if ac_fn_c_try_run "$LINENO"; then :
15293 ac_cv_func_chown_works=yes
15295 ac_cv_func_chown_works=no
15297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15298 conftest.$ac_objext conftest.beam conftest.$ac_ext
15301 rm -f conftest.chown
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15305 $as_echo "$ac_cv_func_chown_works" >&6; }
15306 if test $ac_cv_func_chown_works = yes; then
15308 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15312 for ac_header in vfork.h
15314 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15315 if test "x$ac_cv_header_vfork_h" = xyes; then :
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_VFORK_H 1
15324 for ac_func in fork vfork
15326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15329 cat >>confdefs.h <<_ACEOF
15330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15336 if test "x$ac_cv_func_fork" = xyes; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15338 $as_echo_n "checking for working fork... " >&6; }
15339 if ${ac_cv_func_fork_works+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 if test "$cross_compiling" = yes; then :
15343 ac_cv_func_fork_works=cross
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 $ac_includes_default
15352 /* By Ruediger Kuhlmann. */
15353 return fork () < 0;
15359 if ac_fn_c_try_run "$LINENO"; then :
15360 ac_cv_func_fork_works=yes
15362 ac_cv_func_fork_works=no
15364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15365 conftest.$ac_objext conftest.beam conftest.$ac_ext
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15370 $as_echo "$ac_cv_func_fork_works" >&6; }
15373 ac_cv_func_fork_works=$ac_cv_func_fork
15375 if test "x$ac_cv_func_fork_works" = xcross; then
15377 *-*-amigaos* | *-*-msdosdjgpp*)
15378 # Override, as these systems have only a dummy fork() stub
15379 ac_cv_func_fork_works=no
15382 ac_cv_func_fork_works=yes
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15386 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15388 ac_cv_func_vfork_works=$ac_cv_func_vfork
15389 if test "x$ac_cv_func_vfork" = xyes; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15391 $as_echo_n "checking for working vfork... " >&6; }
15392 if ${ac_cv_func_vfork_works+:} false; then :
15393 $as_echo_n "(cached) " >&6
15395 if test "$cross_compiling" = yes; then :
15396 ac_cv_func_vfork_works=cross
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 /* Thanks to Paul Eggert for this test. */
15401 $ac_includes_default
15402 #include <sys/wait.h>
15403 #ifdef HAVE_VFORK_H
15404 # include <vfork.h>
15406 /* On some sparc systems, changes by the child to local and incoming
15407 argument registers are propagated back to the parent. The compiler
15408 is told about this with #include <vfork.h>, but some compilers
15409 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15410 static variable whose address is put into a register that is
15411 clobbered by the vfork. */
15414 sparc_address_test (int arg)
15416 sparc_address_test (arg) int arg;
15419 static pid_t child;
15437 pid_t parent = getpid ();
15440 sparc_address_test (0);
15445 /* Here is another test for sparc vfork register problems. This
15446 test uses lots of local variables, at least as many local
15447 variables as main has allocated so far including compiler
15448 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15449 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15450 reuse the register of parent for one of the local variables,
15451 since it will think that parent can't possibly be used any more
15452 in this routine. Assigning to the local variable will thus
15453 munge parent in the parent process. */
15455 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15456 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15457 /* Convince the compiler that p..p7 are live; otherwise, it might
15458 use the same hardware register for all 8 local variables. */
15459 if (p != p1 || p != p2 || p != p3 || p != p4
15460 || p != p5 || p != p6 || p != p7)
15463 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15464 from child file descriptors. If the child closes a descriptor
15465 before it execs or exits, this munges the parent's descriptor
15466 as well. Test for this by closing stdout in the child. */
15467 _exit(close(fileno(stdout)) != 0);
15472 while (wait(&status) != child)
15475 /* Was there some problem with vforking? */
15478 /* Did the child fail? (This shouldn't happen.) */
15481 /* Did the vfork/compiler bug occur? */
15482 || parent != getpid()
15484 /* Did the file descriptor bug occur? */
15485 || fstat(fileno(stdout), &st) != 0
15490 if ac_fn_c_try_run "$LINENO"; then :
15491 ac_cv_func_vfork_works=yes
15493 ac_cv_func_vfork_works=no
15495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15496 conftest.$ac_objext conftest.beam conftest.$ac_ext
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15501 $as_echo "$ac_cv_func_vfork_works" >&6; }
15504 if test "x$ac_cv_func_fork_works" = xcross; then
15505 ac_cv_func_vfork_works=$ac_cv_func_vfork
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15507 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15510 if test "x$ac_cv_func_vfork_works" = xyes; then
15512 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15516 $as_echo "#define vfork fork" >>confdefs.h
15519 if test "x$ac_cv_func_fork_works" = xyes; then
15521 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15526 $as_echo_n "checking return type of signal handlers... " >&6; }
15527 if ${ac_cv_type_signal+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <sys/types.h>
15533 #include <signal.h>
15538 return *(signal (0, 0)) (0) == 1;
15543 if ac_fn_c_try_compile "$LINENO"; then :
15544 ac_cv_type_signal=int
15546 ac_cv_type_signal=void
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15551 $as_echo "$ac_cv_type_signal" >&6; }
15553 cat >>confdefs.h <<_ACEOF
15554 #define RETSIGTYPE $ac_cv_type_signal
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15559 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15560 if ${ac_cv_sys_largefile_source+:} false; then :
15561 $as_echo_n "(cached) " >&6
15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <sys/types.h> /* for off_t */
15571 int (*fp) (FILE *, off_t, int) = fseeko;
15572 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15577 if ac_fn_c_try_link "$LINENO"; then :
15578 ac_cv_sys_largefile_source=no; break
15580 rm -f core conftest.err conftest.$ac_objext \
15581 conftest$ac_exeext conftest.$ac_ext
15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583 /* end confdefs.h. */
15584 #define _LARGEFILE_SOURCE 1
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=1; break
15599 rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 ac_cv_sys_largefile_source=unknown
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15606 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15607 case $ac_cv_sys_largefile_source in #(
15610 cat >>confdefs.h <<_ACEOF
15611 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15617 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15618 # in glibc 2.1.3, but that breaks too many other things.
15619 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15620 if test $ac_cv_sys_largefile_source != unknown; then
15622 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15627 # Check whether --enable-largefile was given.
15628 if test "${enable_largefile+set}" = set; then :
15629 enableval=$enable_largefile;
15632 if test "$enable_largefile" != no; then
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15635 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15636 if ${ac_cv_sys_largefile_CC+:} false; then :
15637 $as_echo_n "(cached) " >&6
15639 ac_cv_sys_largefile_CC=no
15640 if test "$GCC" != yes; then
15643 # IRIX 6.2 and later do not support large files by default,
15644 # so use the C compiler's -n32 option if that helps.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #include <sys/types.h>
15648 /* Check that off_t can represent 2**63 - 1 correctly.
15649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15650 since some C++ compilers masquerading as C compilers
15651 incorrectly reject 9223372036854775807. */
15652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15654 && LARGE_OFF_T % 2147483647 == 1)
15664 if ac_fn_c_try_compile "$LINENO"; then :
15667 rm -f core conftest.err conftest.$ac_objext
15669 if ac_fn_c_try_compile "$LINENO"; then :
15670 ac_cv_sys_largefile_CC=' -n32'; break
15672 rm -f core conftest.err conftest.$ac_objext
15676 rm -f conftest.$ac_ext
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15680 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15681 if test "$ac_cv_sys_largefile_CC" != no; then
15682 CC=$CC$ac_cv_sys_largefile_CC
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15686 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15687 if ${ac_cv_sys_file_offset_bits+:} false; then :
15688 $as_echo_n "(cached) " >&6
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <sys/types.h>
15694 /* Check that off_t can represent 2**63 - 1 correctly.
15695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15696 since some C++ compilers masquerading as C compilers
15697 incorrectly reject 9223372036854775807. */
15698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15700 && LARGE_OFF_T % 2147483647 == 1)
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711 ac_cv_sys_file_offset_bits=no; break
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15716 #define _FILE_OFFSET_BITS 64
15717 #include <sys/types.h>
15718 /* Check that off_t can represent 2**63 - 1 correctly.
15719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15720 since some C++ compilers masquerading as C compilers
15721 incorrectly reject 9223372036854775807. */
15722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15724 && LARGE_OFF_T % 2147483647 == 1)
15734 if ac_fn_c_try_compile "$LINENO"; then :
15735 ac_cv_sys_file_offset_bits=64; break
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 ac_cv_sys_file_offset_bits=unknown
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15743 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15744 case $ac_cv_sys_file_offset_bits in #(
15747 cat >>confdefs.h <<_ACEOF
15748 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15753 if test $ac_cv_sys_file_offset_bits = unknown; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15755 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15756 if ${ac_cv_sys_large_files+:} false; then :
15757 $as_echo_n "(cached) " >&6
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 #include <sys/types.h>
15763 /* Check that off_t can represent 2**63 - 1 correctly.
15764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15765 since some C++ compilers masquerading as C compilers
15766 incorrectly reject 9223372036854775807. */
15767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15769 && LARGE_OFF_T % 2147483647 == 1)
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780 ac_cv_sys_large_files=no; break
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 #define _LARGE_FILES 1
15786 #include <sys/types.h>
15787 /* Check that off_t can represent 2**63 - 1 correctly.
15788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15789 since some C++ compilers masquerading as C compilers
15790 incorrectly reject 9223372036854775807. */
15791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15793 && LARGE_OFF_T % 2147483647 == 1)
15803 if ac_fn_c_try_compile "$LINENO"; then :
15804 ac_cv_sys_large_files=1; break
15806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 ac_cv_sys_large_files=unknown
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15812 $as_echo "$ac_cv_sys_large_files" >&6; }
15813 case $ac_cv_sys_large_files in #(
15816 cat >>confdefs.h <<_ACEOF
15817 #define _LARGE_FILES $ac_cv_sys_large_files
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15831 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15832 cache=_D_LARGEFILE_SOURCE_1
15833 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15834 $as_echo_n "(cached) " >&6
15840 int a = fseeko(stdin, 0, 0);
15844 echo 'void f(){}' >>conftest.c
15845 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15846 eval "cv_prog_cc_flag_needed_$cache=no"
15849 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15850 eval "cv_prog_cc_flag_needed_$cache=yes"
15852 eval "cv_prog_cc_flag_needed_$cache=fail"
15853 #echo 'Test with flag fails too!'
15855 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15856 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15861 rm -f conftest conftest.c conftest.o
15865 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15867 $as_echo "yes" >&6; }
15869 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15871 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }
15874 #echo 'Test with flag is no!'
15876 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15877 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15883 $as_echo "failed" >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15892 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15893 if echo $target | grep mingw32 >/dev/null; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15895 $as_echo "no (windows)" >&6; }
15897 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15900 if test "$cross_compiling" = yes; then :
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15903 $as_echo "crosscompile(yes)" >&6; }
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15911 #include <string.h>
15912 #include <stdlib.h>
15915 #ifdef HAVE_SYS_TYPES_H
15916 #include <sys/types.h>
15918 #ifdef HAVE_SYS_SOCKET_H
15919 #include <sys/socket.h>
15921 #ifdef HAVE_NETINET_IN_H
15922 #include <netinet/in.h>
15924 #ifdef HAVE_ARPA_INET_H
15925 #include <arpa/inet.h>
15927 #ifdef HAVE_UNISTD_H
15928 #include <unistd.h>
15940 struct sockaddr_in a;
15941 /* test if select and nonblocking reads work well together */
15943 fork child to send 10 messages.
15945 then try to nonblocking read the 10 messages
15946 then, nonblocking read must give EAGAIN
15949 port = 12345 + (time(0)%32);
15950 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15955 memset(&a, 0, sizeof(a));
15956 a.sin_family = AF_INET;
15957 a.sin_port = htons(port);
15958 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15959 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15963 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15968 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15970 perror("client socket");
15974 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15975 perror("client bind");
15978 a.sin_port = htons(port);
15980 /* no handler, causes exit in 10 seconds */
15983 /* send and receive on the socket */
15984 if((p=fork()) == 0) {
15985 for(i=0; i<num; i++) {
15986 if(sendto(cfd, &i, sizeof(i), 0,
15987 (struct sockaddr*)&a, sizeof(a)) < 0) {
16001 FD_SET(sfd, &rset);
16002 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
16008 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
16009 if(errno == EAGAIN)
16016 /* now we want to get EAGAIN: nonblocking goodness */
16018 recv(sfd, &x, sizeof(x), 0);
16019 if(errno != EAGAIN) {
16020 perror("trying to recv again");
16023 /* EAGAIN encountered */
16032 if ac_fn_c_try_run "$LINENO"; then :
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16042 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
16046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16047 conftest.$ac_objext conftest.beam conftest.$ac_ext
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
16054 $as_echo_n "checking whether mkdir has one arg... " >&6; }
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16059 #include <unistd.h>
16060 #ifdef HAVE_WINSOCK2_H
16061 #include <winsock2.h>
16063 #ifdef HAVE_SYS_STAT_H
16064 #include <sys/stat.h>
16071 (void)mkdir("directory");
16077 if ac_fn_c_try_compile "$LINENO"; then :
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16079 $as_echo "yes" >&6; }
16081 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 for ac_func in strptime
16093 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
16094 if test "x$ac_cv_func_strptime" = xyes; then :
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_STRPTIME 1
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
16100 $as_echo_n "checking whether strptime works... " >&6; }
16101 if test c${cross_compiling} = cno; then
16102 if test "$cross_compiling" = yes; then :
16103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16105 as_fn_error $? "cannot run test program while cross compiling
16106 See \`config.log' for more details" "$LINENO" 5; }
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16111 #define _XOPEN_SOURCE 600
16113 int main(void) { struct tm tm; char *res;
16114 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);
16115 if (!res) return 2;
16116 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
16117 if (!res) return 1; return 0; }
16120 if ac_fn_c_try_run "$LINENO"; then :
16121 eval "ac_cv_c_strptime_works=yes"
16123 eval "ac_cv_c_strptime_works=no"
16125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16126 conftest.$ac_objext conftest.beam conftest.$ac_ext
16130 eval "ac_cv_c_strptime_works=maybe"
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
16133 $as_echo "$ac_cv_c_strptime_works" >&6; }
16134 if test $ac_cv_c_strptime_works = no; then
16135 case " $LIBOBJS " in
16136 *" strptime.$ac_objext "* ) ;;
16137 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16143 cat >>confdefs.h <<_ACEOF
16144 #define STRPTIME_WORKS 1
16150 case " $LIBOBJS " in
16151 *" strptime.$ac_objext "* ) ;;
16152 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
16160 # check if we can use SO_REUSEPORT
16161 if echo "$host" | $GREP -i -e linux -e dragonfly >/dev/null; then
16163 $as_echo "#define REUSEPORT_DEFAULT 1" >>confdefs.h
16167 $as_echo "#define REUSEPORT_DEFAULT 0" >>confdefs.h
16171 # Include systemd.m4 - begin
16172 # macros for configuring systemd
16173 # Copyright 2015, Sami Kerola, CloudFlare.
16175 # Check whether --enable-systemd was given.
16176 if test "${enable_systemd+set}" = set; then :
16177 enableval=$enable_systemd;
16183 if test "x$enable_systemd" != xno; then :
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
16189 $as_echo_n "checking for SYSTEMD... " >&6; }
16191 if test -n "$SYSTEMD_CFLAGS"; then
16192 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
16193 elif test -n "$PKG_CONFIG"; then
16194 if test -n "$PKG_CONFIG" && \
16195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16196 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16199 test $ac_status = 0; }; then
16200 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
16201 test "x$?" != "x0" && pkg_failed=yes
16208 if test -n "$SYSTEMD_LIBS"; then
16209 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
16210 elif test -n "$PKG_CONFIG"; then
16211 if test -n "$PKG_CONFIG" && \
16212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
16213 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
16215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16216 test $ac_status = 0; }; then
16217 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
16218 test "x$?" != "x0" && pkg_failed=yes
16228 if test $pkg_failed = yes; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16233 _pkg_short_errors_supported=yes
16235 _pkg_short_errors_supported=no
16237 if test $_pkg_short_errors_supported = yes; then
16238 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
16240 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
16242 # Put the nasty error message in config.log where it belongs
16243 echo "$SYSTEMD_PKG_ERRORS" >&5
16246 elif test $pkg_failed = untried; then
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16251 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
16252 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16254 $as_echo "yes" >&6; }
16257 if test "x$have_systemd" != "xyes"; then :
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
16262 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
16264 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
16265 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
16266 elif test -n "$PKG_CONFIG"; then
16267 if test -n "$PKG_CONFIG" && \
16268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16269 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; then
16273 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
16274 test "x$?" != "x0" && pkg_failed=yes
16281 if test -n "$SYSTEMD_DAEMON_LIBS"; then
16282 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
16283 elif test -n "$PKG_CONFIG"; then
16284 if test -n "$PKG_CONFIG" && \
16285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
16286 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
16288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16289 test $ac_status = 0; }; then
16290 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
16291 test "x$?" != "x0" && pkg_failed=yes
16301 if test $pkg_failed = yes; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16303 $as_echo "no" >&6; }
16305 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16306 _pkg_short_errors_supported=yes
16308 _pkg_short_errors_supported=no
16310 if test $_pkg_short_errors_supported = yes; then
16311 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16313 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
16315 # Put the nasty error message in config.log where it belongs
16316 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
16318 have_systemd_daemon=no
16319 elif test $pkg_failed = untried; then
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16321 $as_echo "no" >&6; }
16322 have_systemd_daemon=no
16324 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
16325 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16327 $as_echo "yes" >&6; }
16328 have_systemd_daemon=yes
16330 if test "x$have_systemd_daemon" = "xyes"; then :
16335 case $enable_systemd:$have_systemd in #(
16337 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
16340 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
16342 LIBS="$LIBS $SYSTEMD_LIBS"
16351 if test "x$have_systemd" = xyes; then
16353 USE_SYSTEMD_FALSE='#'
16355 USE_SYSTEMD_TRUE='#'
16360 # Include systemd.m4 - end
16362 # set memory allocation checking if requested
16363 # Check whether --enable-alloc-checks was given.
16364 if test "${enable_alloc_checks+set}" = set; then :
16365 enableval=$enable_alloc_checks;
16368 # Check whether --enable-alloc-lite was given.
16369 if test "${enable_alloc_lite+set}" = set; then :
16370 enableval=$enable_alloc_lite;
16373 # Check whether --enable-alloc-nonregional was given.
16374 if test "${enable_alloc_nonregional+set}" = set; then :
16375 enableval=$enable_alloc_nonregional;
16378 if test x_$enable_alloc_nonregional = x_yes; then
16380 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
16383 if test x_$enable_alloc_checks = x_yes; then
16385 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
16387 SLDNS_ALLOCCHECK_EXTRA_OBJ="alloc.lo log.lo"
16389 ASYNCLOOK_ALLOCCHECK_EXTRA_OBJ="alloc.lo"
16392 if test x_$enable_alloc_lite = x_yes; then
16394 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16399 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16400 if test "$cross_compiling" = yes; then :
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
16402 $as_echo "no (crosscompile)" >&6; }
16403 case " $LIBOBJS " in
16404 *" malloc.$ac_objext "* ) ;;
16405 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16410 cat >>confdefs.h <<_ACEOF
16411 #define malloc rpl_malloc_unbound
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16417 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16418 #include <stdlib.h>
16426 if(malloc(0) != 0) return 1;
16432 if ac_fn_c_try_run "$LINENO"; then :
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16435 case " $LIBOBJS " in
16436 *" malloc.$ac_objext "* ) ;;
16437 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16442 cat >>confdefs.h <<_ACEOF
16443 #define malloc rpl_malloc_unbound
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448 $as_echo "yes" >&6; }
16450 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16454 conftest.$ac_objext conftest.beam conftest.$ac_ext
16461 # check windows threads (we use them, not pthreads, on windows).
16462 if test "$on_mingw" = "yes"; then
16463 # check windows threads
16464 for ac_header in windows.h
16466 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
16468 if test "x$ac_cv_header_windows_h" = xyes; then :
16469 cat >>confdefs.h <<_ACEOF
16470 #define HAVE_WINDOWS_H 1
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
16478 $as_echo_n "checking for CreateThread... " >&6; }
16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16482 #ifdef HAVE_WINDOWS_H
16483 #include <windows.h>
16490 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16498 $as_echo "yes" >&6; }
16500 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16505 $as_echo "no" >&6; }
16508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 # not on mingw, check thread libraries.
16513 # check for thread library.
16514 # check this first, so that the pthread lib does not get linked in via
16515 # libssl or libpython, and thus distorts the tests, and we end up using
16516 # the non-threadsafe C libraries.
16518 # Check whether --with-pthreads was given.
16519 if test "${with_pthreads+set}" = set; then :
16520 withval=$with_pthreads;
16525 ub_have_pthreads=no
16526 if test x_$withval != x_no; then
16530 ac_cpp='$CPP $CPPFLAGS'
16531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16537 # We used to check for pthread.h first, but this fails if pthread.h
16538 # requires special compiler flags (e.g. on True64 or Sequent).
16539 # It gets checked for in the link test anyway.
16541 # First of all, check if the user has set any of the PTHREAD_LIBS,
16542 # etcetera environment variables, and if threads linking works using
16544 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16545 save_CFLAGS="$CFLAGS"
16546 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16548 LIBS="$PTHREAD_LIBS $LIBS"
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16550 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 /* Override any GCC internal prototype to avoid an error.
16555 Use char because int might match the return type of a GCC
16556 builtin and then its argument prototype would still apply. */
16560 char pthread_join ();
16564 return pthread_join ();
16569 if ac_fn_c_try_link "$LINENO"; then :
16572 rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16575 $as_echo "$ax_pthread_ok" >&6; }
16576 if test x"$ax_pthread_ok" = xno; then
16581 CFLAGS="$save_CFLAGS"
16584 # We must check for the threads library under a number of different
16585 # names; the ordering is very important because some systems
16586 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16587 # libraries is broken (non-POSIX).
16589 # Create a list of thread flags to try. Items starting with a "-" are
16590 # C compiler flags, and other items are library names, except for "none"
16591 # which indicates that we try without any flags at all, and "pthread-config"
16592 # which is a program returning the flags for the Pth emulation library.
16594 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16596 # The ordering *is* (sometimes) important. Some notes on the
16597 # individual items follow:
16599 # pthreads: AIX (must check this before -lpthread)
16600 # none: in case threads are in libc; should be tried before -Kthread and
16601 # other compiler flags to prevent continual compiler warnings
16602 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16603 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16604 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16605 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16606 # -pthreads: Solaris/gcc
16607 # -mthreads: Mingw32/gcc, Lynx/gcc
16608 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16609 # doesn't hurt to check since this sometimes defines pthreads too;
16610 # also defines -D_REENTRANT)
16611 # ... -mt is also the pthreads flag for HP/aCC
16612 # pthread: Linux, etcetera
16613 # --thread-safe: KAI C++
16614 # pthread-config: use pthread-config program (for GNU Pth library)
16619 # On Solaris (at least, for some versions), libc contains stubbed
16620 # (non-functional) versions of the pthreads routines, so link-based
16621 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16622 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16623 # a function called by this macro, so we could check for that, but
16624 # who knows whether they'll stub that too in a future libc.) So,
16625 # we'll just look for -pthreads and -lpthread first:
16627 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16631 ax_pthread_flags="-pthread $ax_pthread_flags"
16635 # Clang doesn't consider unrecognized options an error unless we specify
16636 # -Werror. We throw in some extra Clang-specific options to ensure that
16637 # this doesn't happen for GCC, which also accepts -Werror.
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16640 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16641 save_CFLAGS="$CFLAGS"
16642 ax_pthread_extra_flags="-Werror"
16643 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16655 if ac_fn_c_try_compile "$LINENO"; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16657 $as_echo "yes" >&6; }
16659 ax_pthread_extra_flags=
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661 $as_echo "no" >&6; }
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 CFLAGS="$save_CFLAGS"
16666 if test x"$ax_pthread_ok" = xno; then
16667 for flag in $ax_pthread_flags; do
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16672 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16677 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16678 PTHREAD_CFLAGS="$flag"
16682 # Extract the first word of "pthread-config", so it can be a program name with args.
16683 set dummy pthread-config; ac_word=$2
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 $as_echo_n "checking for $ac_word... " >&6; }
16686 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16687 $as_echo_n "(cached) " >&6
16689 if test -n "$ax_pthread_config"; then
16690 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16693 for as_dir in $PATH
16696 test -z "$as_dir" && as_dir=.
16697 for ac_exec_ext in '' $ac_executable_extensions; do
16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16699 ac_cv_prog_ax_pthread_config="yes"
16700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16707 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16710 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16711 if test -n "$ax_pthread_config"; then
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16713 $as_echo "$ax_pthread_config" >&6; }
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716 $as_echo "no" >&6; }
16720 if test x"$ax_pthread_config" = xno; then continue; fi
16721 PTHREAD_CFLAGS="`pthread-config --cflags`"
16722 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16727 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16728 PTHREAD_LIBS="-l$flag"
16733 save_CFLAGS="$CFLAGS"
16734 LIBS="$PTHREAD_LIBS $LIBS"
16735 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16737 # Check for various functions. We must include pthread.h,
16738 # since some functions may be macros. (On the Sequent, we
16739 # need a special flag -Kthread to make this header compile.)
16740 # We check for pthread_join because it is in -lpthread on IRIX
16741 # while pthread_create is in libc. We check for pthread_attr_init
16742 # due to DEC craziness with -lpthreads. We check for
16743 # pthread_cleanup_push because it is one of the few pthread
16744 # functions on Solaris that doesn't have a non-functional libc stub.
16745 # We try pthread_create on general principles.
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16748 #include <pthread.h>
16749 static void routine(void *a) { *((int*)a) = 0; }
16750 static void *start_routine(void *a) { return a; }
16754 pthread_t th; pthread_attr_t attr;
16755 pthread_create(&th, 0, start_routine, 0);
16756 pthread_join(th, 0);
16757 pthread_attr_init(&attr);
16758 pthread_cleanup_push(routine, 0);
16759 pthread_cleanup_pop(0) /* ; */
16764 if ac_fn_c_try_link "$LINENO"; then :
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16771 CFLAGS="$save_CFLAGS"
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16774 $as_echo "$ax_pthread_ok" >&6; }
16775 if test "x$ax_pthread_ok" = xyes; then
16784 # Various other checks:
16785 if test "x$ax_pthread_ok" = xyes; then
16787 LIBS="$PTHREAD_LIBS $LIBS"
16788 save_CFLAGS="$CFLAGS"
16789 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16791 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16793 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16795 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798 #include <pthread.h>
16802 int attr = $attr; return attr /* ; */
16807 if ac_fn_c_try_link "$LINENO"; then :
16808 attr_name=$attr; break
16810 rm -f core conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16814 $as_echo "$attr_name" >&6; }
16815 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define PTHREAD_CREATE_JOINABLE $attr_name
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16824 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16827 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16828 osf* | hpux*) flag="-D_REENTRANT";;
16830 if test "$GCC" = "yes"; then
16831 flag="-D_REENTRANT"
16833 # TODO: What about Clang on Solaris?
16834 flag="-mt -D_REENTRANT"
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16839 $as_echo "$flag" >&6; }
16840 if test "x$flag" != xno; then
16841 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16845 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16846 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16847 $as_echo_n "(cached) " >&6
16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h. */
16852 #include <pthread.h>
16856 int i = PTHREAD_PRIO_INHERIT;
16861 if ac_fn_c_try_link "$LINENO"; then :
16862 ax_cv_PTHREAD_PRIO_INHERIT=yes
16864 ax_cv_PTHREAD_PRIO_INHERIT=no
16866 rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16871 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16872 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16874 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16879 CFLAGS="$save_CFLAGS"
16881 # More AIX lossage: compile with *_r variant
16882 if test "x$GCC" != xyes; then
16886 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16887 #handle absolute path differently from PATH based program lookup
16890 if as_fn_executable_p ${CC}_r; then :
16891 PTHREAD_CC="${CC}_r"
16894 for ac_prog in ${CC}_r
16896 # Extract the first word of "$ac_prog", so it can be a program name with args.
16897 set dummy $ac_prog; ac_word=$2
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16899 $as_echo_n "checking for $ac_word... " >&6; }
16900 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16901 $as_echo_n "(cached) " >&6
16903 if test -n "$PTHREAD_CC"; then
16904 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16907 for as_dir in $PATH
16910 test -z "$as_dir" && as_dir=.
16911 for ac_exec_ext in '' $ac_executable_extensions; do
16912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16913 ac_cv_prog_PTHREAD_CC="$ac_prog"
16914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16924 if test -n "$PTHREAD_CC"; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16926 $as_echo "$PTHREAD_CC" >&6; }
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16929 $as_echo "no" >&6; }
16933 test -n "$PTHREAD_CC" && break
16935 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16946 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16952 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16953 if test x"$ax_pthread_ok" = xyes; then
16956 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16958 if test -n "$PTHREAD_LIBS"; then
16959 LIBS="$PTHREAD_LIBS $LIBS"
16961 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16963 ub_have_pthreads=yes
16964 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16966 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16968 cat >>confdefs.h <<_ACEOF
16969 #define HAVE_PTHREAD_SPINLOCK_T 1
16974 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16976 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_PTHREAD_RWLOCK_T 1
16986 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16988 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16989 # catch clang warning 'argument unused during compilation'
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 $ac_includes_default
16994 int main(void) {return 0;}
16997 pthread_unused="yes"
16999 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
17000 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
17001 if test $? = 0; then
17003 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
17004 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
17005 if test $? -ne 0; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17007 $as_echo "yes" >&6; }
17008 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
17009 PTHREAD_CFLAGS_ONLY="-pthread"
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17017 $as_echo "no" >&6; }
17018 fi # endif cc successful
17019 rm -f conftest conftest.c conftest.o
17020 fi # endif -pthread in CFLAGS
17029 ac_cpp='$CPP $CPPFLAGS'
17030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17037 # check solaris thread library
17039 # Check whether --with-solaris-threads was given.
17040 if test "${with_solaris_threads+set}" = set; then :
17041 withval=$with_solaris_threads;
17046 ub_have_sol_threads=no
17047 if test x_$withval != x_no; then
17048 if test x_$ub_have_pthreads != x_no; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
17050 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
17053 $as_echo_n "checking for library containing thr_create... " >&6; }
17054 if ${ac_cv_search_thr_create+:} false; then :
17055 $as_echo_n "(cached) " >&6
17057 ac_func_search_save_LIBS=$LIBS
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17067 char thr_create ();
17071 return thr_create ();
17076 for ac_lib in '' thread; do
17077 if test -z "$ac_lib"; then
17078 ac_res="none required"
17081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17083 if ac_fn_c_try_link "$LINENO"; then :
17084 ac_cv_search_thr_create=$ac_res
17086 rm -f core conftest.err conftest.$ac_objext \
17088 if ${ac_cv_search_thr_create+:} false; then :
17092 if ${ac_cv_search_thr_create+:} false; then :
17095 ac_cv_search_thr_create=no
17097 rm conftest.$ac_ext
17098 LIBS=$ac_func_search_save_LIBS
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
17101 $as_echo "$ac_cv_search_thr_create" >&6; }
17102 ac_res=$ac_cv_search_thr_create
17103 if test "$ac_res" != no; then :
17104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17107 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
17113 $as_echo_n "checking whether $CC supports -mt... " >&6; }
17114 cache=`echo mt | sed 'y%.=/+-%___p_%'`
17115 if eval \${cv_prog_cc_flag_$cache+:} false; then :
17116 $as_echo_n "(cached) " >&6
17119 echo 'void f(void){}' >conftest.c
17120 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
17121 eval "cv_prog_cc_flag_$cache=yes"
17123 eval "cv_prog_cc_flag_$cache=no"
17125 rm -f conftest conftest.o conftest.c
17129 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131 $as_echo "yes" >&6; }
17133 CFLAGS="$CFLAGS -mt"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 $as_echo "no" >&6; }
17138 CFLAGS="$CFLAGS -D_REENTRANT"
17141 ub_have_sol_threads=yes
17145 as_fn_error $? "no solaris threads found." "$LINENO" 5
17152 fi # end of non-mingw check of thread libraries
17154 # Check for SYSLOG_FACILITY
17156 # Check whether --with-syslog-facility was given.
17157 if test "${with_syslog_facility+set}" = set; then :
17158 withval=$with_syslog_facility; UNBOUND_SYSLOG_FACILITY="$withval"
17161 case "${UNBOUND_SYSLOG_FACILITY}" in
17163 LOCAL[0-7]) UNBOUND_SYSLOG_FACILITY="LOG_${UNBOUND_SYSLOG_FACILITY}" ;;
17165 *) UNBOUND_SYSLOG_FACILITY="LOG_DAEMON" ;;
17169 cat >>confdefs.h <<_ACEOF
17170 #define UB_SYSLOG_FACILITY ${UNBOUND_SYSLOG_FACILITY}
17174 # Check for PyUnbound
17176 # Check whether --with-pyunbound was given.
17177 if test "${with_pyunbound+set}" = set; then :
17178 withval=$with_pyunbound;
17185 ub_with_pyunbound=no
17186 if test x_$withval != x_no; then
17187 ub_with_pyunbound=yes
17191 # Check for Python module
17193 # Check whether --with-pythonmodule was given.
17194 if test "${with_pythonmodule+set}" = set; then :
17195 withval=$with_pythonmodule;
17201 ub_with_pythonmod=no
17202 if test x_$withval != x_no; then
17203 ub_with_pythonmod=yes
17207 # Check for Python & SWIG only on PyUnbound or PyModule
17208 if test x_$ub_test_python != x_no; then
17212 ac_save_LIBS="$LIBS"
17214 # Allow the use of a (user set) custom python version
17218 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
17219 set dummy python$PYTHON_VERSION; ac_word=$2
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17221 $as_echo_n "checking for $ac_word... " >&6; }
17222 if ${ac_cv_path_PYTHON+:} false; then :
17223 $as_echo_n "(cached) " >&6
17227 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231 for as_dir in $PATH
17234 test -z "$as_dir" && as_dir=.
17235 for ac_exec_ext in '' $ac_executable_extensions; do
17236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17237 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17248 PYTHON=$ac_cv_path_PYTHON
17249 if test -n "$PYTHON"; then
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17251 $as_echo "$PYTHON" >&6; }
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17258 if test -z "$PYTHON"; then
17259 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
17263 if test -z "$PYTHON_VERSION"; then
17264 PYTHON_VERSION=`$PYTHON -c "import sys; \
17265 print(sys.version.split()[0])"`
17269 # Check if you have distutils, else fail
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
17272 $as_echo_n "checking for the distutils Python package... " >&6; }
17273 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275 $as_echo "yes" >&6; }
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17279 as_fn_error $? "cannot import Python module \"distutils\".
17280 Please check your Python installation. The error was:
17281 $ac_distutils_result" "$LINENO" 5
17286 # Check for Python include path
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
17289 $as_echo_n "checking for Python include path... " >&6; }
17290 if test -z "$PYTHON_CPPFLAGS"; then
17291 python_path=`$PYTHON -c "import distutils.sysconfig; \
17292 print(distutils.sysconfig.get_python_inc());"`
17293 if test -n "${python_path}"; then
17294 python_path="-I$python_path"
17296 PYTHON_CPPFLAGS=$python_path
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
17299 $as_echo "$PYTHON_CPPFLAGS" >&6; }
17303 # Check for Python library path
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
17306 $as_echo_n "checking for Python library path... " >&6; }
17307 if test -z "$PYTHON_LDFLAGS"; then
17308 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
17309 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
17312 $as_echo "$PYTHON_LDFLAGS" >&6; }
17316 # Check for site packages
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
17319 $as_echo_n "checking for Python site-packages path... " >&6; }
17320 if test -z "$PYTHON_SITE_PKG"; then
17321 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
17322 print(distutils.sysconfig.get_python_lib(1,0));"`
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
17325 $as_echo "$PYTHON_SITE_PKG" >&6; }
17329 # final check to see if everything compiles alright
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
17332 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
17334 ac_cpp='$CPP $CPPFLAGS'
17335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339 # save current global flags
17340 ac_save_LIBS="$LIBS"
17341 ac_save_CPPFLAGS="$CPPFLAGS"
17343 LIBS="$LIBS $PYTHON_LDFLAGS"
17344 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17348 #include <Python.h>
17360 if ac_fn_c_try_link "$LINENO"; then :
17365 rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext conftest.$ac_ext
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
17369 $as_echo "$pythonexists" >&6; }
17371 if test ! "$pythonexists" = "yes"; then
17373 Could not link test program to Python. Maybe the main Python library has been
17374 installed in some non-standard library path. If so, pass it to configure,
17375 via the LDFLAGS environment variable.
17376 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
17377 ============================================================================
17379 You probably have to install the development version of the Python package
17380 for your distribution. The exact name of this package varies among them.
17381 ============================================================================
17386 ac_cpp='$CPP $CPPFLAGS'
17387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17391 # turn back to default flags
17392 CPPFLAGS="$ac_save_CPPFLAGS"
17393 LIBS="$ac_save_LIBS"
17399 if test ! -z "$PYTHON_VERSION"; then
17400 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
17401 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
17404 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
17408 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
17410 if test -n "$LIBS"; then
17411 LIBS="$PYTHON_LDFLAGS $LIBS"
17413 LIBS="$PYTHON_LDFLAGS"
17415 if test -n "$CPPFLAGS"; then
17416 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
17418 CPPFLAGS="$PYTHON_CPPFLAGS"
17421 if test -n "$PKG_CONFIG" && \
17422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"python\${PY_MAJOR_VERSION}\"\""; } >&5
17423 ($PKG_CONFIG --exists --print-errors ""python${PY_MAJOR_VERSION}"") 2>&5
17425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426 test $ac_status = 0; }; then
17427 PC_PY_DEPENDENCY="python${PY_MAJOR_VERSION}"
17429 PC_PY_DEPENDENCY="python"
17435 # Check whether --enable-swig-version-check was given.
17436 if test "${enable_swig_version_check+set}" = set; then :
17437 enableval=$enable_swig_version_check;
17440 if test "$enable_swig_version_check" = "yes"; then
17442 # Extract the first word of "swig", so it can be a program name with args.
17443 set dummy swig; ac_word=$2
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17445 $as_echo_n "checking for $ac_word... " >&6; }
17446 if ${ac_cv_path_SWIG+:} false; then :
17447 $as_echo_n "(cached) " >&6
17451 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17455 for as_dir in $PATH
17458 test -z "$as_dir" && as_dir=.
17459 for ac_exec_ext in '' $ac_executable_extensions; do
17460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17461 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17472 SWIG=$ac_cv_path_SWIG
17473 if test -n "$SWIG"; then
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17475 $as_echo "$SWIG" >&6; }
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478 $as_echo "no" >&6; }
17482 if test -z "$SWIG" ; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17484 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17485 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17486 elif test -n "2.0.1" ; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17488 $as_echo_n "checking for SWIG version... " >&6; }
17489 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'`
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17491 $as_echo "$swig_version" >&6; }
17492 if test -n "$swig_version" ; then
17493 # Calculate the required version number components
17495 required_major=`echo $required | sed 's/[^0-9].*//'`
17496 if test -z "$required_major" ; then
17499 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17500 required_minor=`echo $required | sed 's/[^0-9].*//'`
17501 if test -z "$required_minor" ; then
17504 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17505 required_patch=`echo $required | sed 's/[^0-9].*//'`
17506 if test -z "$required_patch" ; then
17509 # Calculate the available version number components
17510 available=$swig_version
17511 available_major=`echo $available | sed 's/[^0-9].*//'`
17512 if test -z "$available_major" ; then
17515 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17516 available_minor=`echo $available | sed 's/[^0-9].*//'`
17517 if test -z "$available_minor" ; then
17520 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17521 available_patch=`echo $available | sed 's/[^0-9].*//'`
17522 if test -z "$available_patch" ; then
17526 if test $available_major -lt $required_major ; then
17529 if test $available_major -eq $required_major \
17530 -a $available_minor -lt $required_minor ; then
17533 if test $available_major -eq $required_major \
17534 -a $available_minor -eq $required_minor \
17535 -a $available_patch -lt $required_patch ; then
17538 if test $badversion -eq 1 ; then
17539 { $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
17540 $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;}
17541 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17544 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17545 SWIG_LIB=`$SWIG -swiglib`
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17547 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17551 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17552 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17559 # Extract the first word of "swig", so it can be a program name with args.
17560 set dummy swig; ac_word=$2
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17562 $as_echo_n "checking for $ac_word... " >&6; }
17563 if ${ac_cv_path_SWIG+:} false; then :
17564 $as_echo_n "(cached) " >&6
17568 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572 for as_dir in $PATH
17575 test -z "$as_dir" && as_dir=.
17576 for ac_exec_ext in '' $ac_executable_extensions; do
17577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17578 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17589 SWIG=$ac_cv_path_SWIG
17590 if test -n "$SWIG"; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17592 $as_echo "$SWIG" >&6; }
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595 $as_echo "no" >&6; }
17599 if test -z "$SWIG" ; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
17601 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
17602 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
17603 elif test -n "" ; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
17605 $as_echo_n "checking for SWIG version... " >&6; }
17606 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'`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17608 $as_echo "$swig_version" >&6; }
17609 if test -n "$swig_version" ; then
17610 # Calculate the required version number components
17612 required_major=`echo $required | sed 's/[^0-9].*//'`
17613 if test -z "$required_major" ; then
17616 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17617 required_minor=`echo $required | sed 's/[^0-9].*//'`
17618 if test -z "$required_minor" ; then
17621 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17622 required_patch=`echo $required | sed 's/[^0-9].*//'`
17623 if test -z "$required_patch" ; then
17626 # Calculate the available version number components
17627 available=$swig_version
17628 available_major=`echo $available | sed 's/[^0-9].*//'`
17629 if test -z "$available_major" ; then
17632 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17633 available_minor=`echo $available | sed 's/[^0-9].*//'`
17634 if test -z "$available_minor" ; then
17637 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17638 available_patch=`echo $available | sed 's/[^0-9].*//'`
17639 if test -z "$available_patch" ; then
17643 if test $available_major -lt $required_major ; then
17646 if test $available_major -eq $required_major \
17647 -a $available_minor -lt $required_minor ; then
17650 if test $available_major -eq $required_major \
17651 -a $available_minor -eq $required_minor \
17652 -a $available_patch -lt $required_patch ; then
17655 if test $badversion -eq 1 ; then
17656 { $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
17657 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
17658 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17661 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17662 SWIG_LIB=`$SWIG -swiglib`
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17664 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17668 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17669 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17676 $as_echo_n "checking SWIG... " >&6; }
17677 if test ! -x "$SWIG"; then
17678 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17681 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17686 $as_echo "present" >&6; }
17688 # If have Python & SWIG
17689 # Declare PythonMod
17690 if test x_$ub_with_pythonmod != x_no; then
17692 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17694 WITH_PYTHONMODULE=yes
17696 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17698 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17700 PYTHONMOD_INSTALL=pythonmod-install
17702 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17706 # Declare PyUnbound
17707 if test x_$ub_with_pyunbound != x_no; then
17709 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17713 PYUNBOUND_OBJ="libunbound_wrap.lo"
17715 PYUNBOUND_TARGET="_unbound.la"
17717 PYUNBOUND_INSTALL=pyunbound-install
17719 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17725 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17726 ub_with_pyunbound=no
17727 ub_with_pythonmod=no
17731 if test "`uname`" = "NetBSD"; then
17732 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17735 CONFIG_DATE=`date +%Y%m%d`
17738 # Checks for libraries.
17743 # Check whether --with-nss was given.
17744 if test "${with_nss+set}" = set; then :
17748 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17750 if test "$withval" != "" -a "$withval" != "yes"; then
17751 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17752 LDFLAGS="$LDFLAGS -L$withval/lib"
17754 if test "x$enable_rpath" = xyes; then
17755 if echo "$withval/lib" | grep "^/" >/dev/null; then
17756 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17760 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17762 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17763 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17765 LIBS="$LIBS -lnss3 -lnspr4"
17767 PC_CRYPTO_DEPENDENCY="nss nspr"
17777 # Check whether --with-nettle was given.
17778 if test "${with_nettle+set}" = set; then :
17779 withval=$with_nettle;
17782 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17784 for ac_header in nettle/dsa-compat.h
17786 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17788 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17789 cat >>confdefs.h <<_ACEOF
17790 #define HAVE_NETTLE_DSA_COMPAT_H 1
17797 if test "$withval" != "" -a "$withval" != "yes"; then
17798 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17799 LDFLAGS="$LDFLAGS -L$withval/lib"
17801 if test "x$enable_rpath" = xyes; then
17802 if echo "$withval/lib" | grep "^/" >/dev/null; then
17803 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17808 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17810 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17812 PC_CRYPTO_DEPENDENCY="hogweed nettle"
17820 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17823 # Check whether --with-ssl was given.
17824 if test "${with_ssl+set}" = set; then :
17833 if test x_$withval = x_no; then
17834 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17838 if test x_$withval != x_no; then
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17840 $as_echo_n "checking for SSL... " >&6; }
17841 if test x_$withval = x_ -o x_$withval = x_yes; then
17842 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17844 for dir in $withval; do
17846 if test -f "$dir/include/openssl/ssl.h"; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_SSL /**/
17853 if test "$ssldir" != "/usr"; then
17854 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17855 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17860 if test x_$found_ssl != x_yes; then
17861 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17864 $as_echo "found in $ssldir" >&6; }
17866 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17867 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17868 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17870 if test "x$enable_rpath" = xyes; then
17871 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17872 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17879 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17880 LIBS="$LIBS -lcrypto"
17881 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17889 int HMAC_Update(void);
17890 (void)HMAC_Update();
17896 if ac_fn_c_try_link "$LINENO"; then :
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17899 $as_echo "yes" >&6; }
17901 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17907 $as_echo "no" >&6; }
17908 # check if -lwsock32 or -lgdi32 are needed.
17910 BAKSSLLIBS="$LIBSSL_LIBS"
17911 LIBS="$LIBS -lgdi32 -lws2_32"
17912 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17914 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17922 int HMAC_Update(void);
17923 (void)HMAC_Update();
17929 if ac_fn_c_try_link "$LINENO"; then :
17932 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17935 $as_echo "yes" >&6; }
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940 $as_echo "no" >&6; }
17942 LIBSSL_LIBS="$BAKSSLLIBS"
17944 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17946 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h. */
17954 int HMAC_Update(void);
17955 (void)HMAC_Update();
17961 if ac_fn_c_try_link "$LINENO"; then :
17964 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17967 $as_echo "yes" >&6; }
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17972 $as_echo "no" >&6; }
17974 LIBSSL_LIBS="$BAKSSLLIBS"
17975 LIBS="$LIBS -ldl -pthread"
17976 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17978 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17986 int HMAC_Update(void);
17987 (void)HMAC_Update();
17993 if ac_fn_c_try_link "$LINENO"; then :
17996 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999 $as_echo "yes" >&6; }
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18004 $as_echo "no" >&6; }
18005 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
18008 rm -f core conftest.err conftest.$ac_objext \
18009 conftest$ac_exeext conftest.$ac_ext
18012 rm -f core conftest.err conftest.$ac_objext \
18013 conftest$ac_exeext conftest.$ac_ext
18016 rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18026 for ac_header in openssl/ssl.h
18028 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
18030 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_OPENSSL_SSL_H 1
18039 for ac_header in openssl/err.h
18041 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
18043 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
18044 cat >>confdefs.h <<_ACEOF
18045 #define HAVE_OPENSSL_ERR_H 1
18052 for ac_header in openssl/rand.h
18054 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
18056 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_OPENSSL_RAND_H 1
18068 # check if libssl needs libdl
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
18072 $as_echo_n "checking if libssl needs libdl... " >&6; }
18073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18074 /* end confdefs.h. */
18076 /* Override any GCC internal prototype to avoid an error.
18077 Use char because int might match the return type of a GCC
18078 builtin and then its argument prototype would still apply. */
18082 char SSL_CTX_new ();
18086 return SSL_CTX_new ();
18091 if ac_fn_c_try_link "$LINENO"; then :
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18094 $as_echo "no" >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18103 $as_echo_n "checking for library containing dlopen... " >&6; }
18104 if ${ac_cv_search_dlopen+:} false; then :
18105 $as_echo_n "(cached) " >&6
18107 ac_func_search_save_LIBS=$LIBS
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18111 /* Override any GCC internal prototype to avoid an error.
18112 Use char because int might match the return type of a GCC
18113 builtin and then its argument prototype would still apply. */
18126 for ac_lib in '' dl; do
18127 if test -z "$ac_lib"; then
18128 ac_res="none required"
18131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18133 if ac_fn_c_try_link "$LINENO"; then :
18134 ac_cv_search_dlopen=$ac_res
18136 rm -f core conftest.err conftest.$ac_objext \
18138 if ${ac_cv_search_dlopen+:} false; then :
18142 if ${ac_cv_search_dlopen+:} false; then :
18145 ac_cv_search_dlopen=no
18147 rm conftest.$ac_ext
18148 LIBS=$ac_func_search_save_LIBS
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18151 $as_echo "$ac_cv_search_dlopen" >&6; }
18152 ac_res=$ac_cv_search_dlopen
18153 if test "$ac_res" != no; then :
18154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18160 rm -f core conftest.err conftest.$ac_objext \
18161 conftest$ac_exeext conftest.$ac_ext
18164 PC_CRYPTO_DEPENDENCY="libcrypto libssl"
18167 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
18171 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18181 char HMAC_Update ();
18185 return HMAC_Update ();
18190 if ac_fn_c_try_link "$LINENO"; then :
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18199 $as_echo "yes" >&6; }
18201 LIBS="$LIBS -lcrypt32"
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
18208 $as_echo_n "checking for LibreSSL... " >&6; }
18209 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
18213 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
18215 # libressl provides these compat functions, but they may also be
18216 # declared by the OS in libc. See if they have been declared.
18217 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
18218 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
18224 cat >>confdefs.h <<_ACEOF
18225 #define HAVE_DECL_STRLCPY $ac_have_decl
18227 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
18228 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_STRLCAT $ac_have_decl
18237 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
18238 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
18247 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
18248 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
18254 cat >>confdefs.h <<_ACEOF
18255 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260 $as_echo "no" >&6; }
18262 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
18264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18268 cat >>confdefs.h <<_ACEOF
18269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18276 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
18278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18281 cat >>confdefs.h <<_ACEOF
18282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18289 # these check_funcs need -lssl
18292 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
18294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18297 cat >>confdefs.h <<_ACEOF
18298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18306 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
18307 $ac_includes_default
18308 #ifdef HAVE_OPENSSL_ERR_H
18309 #include <openssl/err.h>
18312 #ifdef HAVE_OPENSSL_RAND_H
18313 #include <openssl/rand.h>
18316 #ifdef HAVE_OPENSSL_CONF_H
18317 #include <openssl/conf.h>
18320 #ifdef HAVE_OPENSSL_ENGINE_H
18321 #include <openssl/engine.h>
18323 #include <openssl/ssl.h>
18324 #include <openssl/evp.h>
18327 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
18333 cat >>confdefs.h <<_ACEOF
18334 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
18336 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
18337 $ac_includes_default
18338 #ifdef HAVE_OPENSSL_ERR_H
18339 #include <openssl/err.h>
18342 #ifdef HAVE_OPENSSL_RAND_H
18343 #include <openssl/rand.h>
18346 #ifdef HAVE_OPENSSL_CONF_H
18347 #include <openssl/conf.h>
18350 #ifdef HAVE_OPENSSL_ENGINE_H
18351 #include <openssl/engine.h>
18353 #include <openssl/ssl.h>
18354 #include <openssl/evp.h>
18357 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
18363 cat >>confdefs.h <<_ACEOF
18364 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
18366 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
18367 $ac_includes_default
18368 #ifdef HAVE_OPENSSL_ERR_H
18369 #include <openssl/err.h>
18372 #ifdef HAVE_OPENSSL_RAND_H
18373 #include <openssl/rand.h>
18376 #ifdef HAVE_OPENSSL_CONF_H
18377 #include <openssl/conf.h>
18380 #ifdef HAVE_OPENSSL_ENGINE_H
18381 #include <openssl/engine.h>
18383 #include <openssl/ssl.h>
18384 #include <openssl/evp.h>
18387 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
18398 if test "$ac_cv_func_HMAC_Init_ex" = "yes"; then
18399 # check function return type.
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the return type of HMAC_Init_ex" >&5
18401 $as_echo_n "checking the return type of HMAC_Init_ex... " >&6; }
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18405 #ifdef HAVE_OPENSSL_ERR_H
18406 #include <openssl/err.h>
18409 #ifdef HAVE_OPENSSL_RAND_H
18410 #include <openssl/rand.h>
18413 #ifdef HAVE_OPENSSL_CONF_H
18414 #include <openssl/conf.h>
18417 #ifdef HAVE_OPENSSL_ENGINE_H
18418 #include <openssl/engine.h>
18420 #include <openssl/ssl.h>
18421 #include <openssl/evp.h>
18427 HMAC_CTX* hmac_ctx = NULL;
18428 void* hmac_key = NULL;
18429 const EVP_MD* digest = NULL;
18430 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
18437 if ac_fn_c_try_compile "$LINENO"; then :
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18440 $as_echo "int" >&6; }
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18445 $as_echo "void" >&6; }
18447 $as_echo "#define HMAC_INIT_EX_RETURNS_VOID 1" >>confdefs.h
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 # Check whether --with-libbsd was given.
18460 if test "${with_libbsd+set}" = set; then :
18461 withval=$with_libbsd;
18462 for ac_header in bsd/string.h bsd/stdlib.h
18464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18465 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18468 cat >>confdefs.h <<_ACEOF
18469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18476 if test "x$ac_cv_header_bsd_string_h" = xyes -a "x$ac_cv_header_bsd_stdlib_h" = xyes; then
18477 for func in strlcpy strlcat arc4random arc4random_uniform reallocarray; do
18478 as_ac_Search=`$as_echo "ac_cv_search_$func" | $as_tr_sh`
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $func" >&5
18480 $as_echo_n "checking for library containing $func... " >&6; }
18481 if eval \${$as_ac_Search+:} false; then :
18482 $as_echo_n "(cached) " >&6
18484 ac_func_search_save_LIBS=$LIBS
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18503 for ac_lib in '' bsd; do
18504 if test -z "$ac_lib"; then
18505 ac_res="none required"
18508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18510 if ac_fn_c_try_link "$LINENO"; then :
18511 eval "$as_ac_Search=\$ac_res"
18513 rm -f core conftest.err conftest.$ac_objext \
18515 if eval \${$as_ac_Search+:} false; then :
18519 if eval \${$as_ac_Search+:} false; then :
18522 eval "$as_ac_Search=no"
18524 rm conftest.$ac_ext
18525 LIBS=$ac_func_search_save_LIBS
18527 eval ac_res=\$$as_ac_Search
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18529 $as_echo "$ac_res" >&6; }
18530 eval ac_res=\$$as_ac_Search
18531 if test "$ac_res" != no; then :
18532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18535 $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h
18537 PC_LIBBSD_DEPENDENCY=libbsd
18548 # Check whether --enable-sha1 was given.
18549 if test "${enable_sha1+set}" = set; then :
18550 enableval=$enable_sha1;
18553 case "$enable_sha1" in
18558 $as_echo "#define USE_SHA1 1" >>confdefs.h
18564 # Check whether --enable-sha2 was given.
18565 if test "${enable_sha2+set}" = set; then :
18566 enableval=$enable_sha2;
18569 case "$enable_sha2" in
18574 $as_echo "#define USE_SHA2 1" >>confdefs.h
18579 # Check whether --enable-subnet was given.
18580 if test "${enable_subnet+set}" = set; then :
18581 enableval=$enable_subnet;
18584 case "$enable_subnet" in
18587 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
18589 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
18591 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
18598 # check wether gost also works
18600 # Check whether --enable-gost was given.
18601 if test "${enable_gost+set}" = set; then :
18602 enableval=$enable_gost;
18606 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18607 case "$enable_gost" in
18611 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
18612 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
18615 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
18618 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
18619 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
18622 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
18627 $as_echo_n "checking if GOST works... " >&6; }
18628 if test c${cross_compiling} = cno; then
18629 BAKCFLAGS="$CFLAGS"
18630 if test -n "$ssldir"; then
18631 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
18633 if test "$cross_compiling" = yes; then :
18634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18636 as_fn_error $? "cannot run test program while cross compiling
18637 See \`config.log' for more details" "$LINENO" 5; }
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18642 #include <string.h>
18643 #include <openssl/ssl.h>
18644 #include <openssl/evp.h>
18645 #include <openssl/engine.h>
18646 #include <openssl/conf.h>
18647 /* routine to load gost (from sldns) */
18648 int load_gost_id(void)
18650 static int gost_id = 0;
18651 const EVP_PKEY_ASN1_METHOD* meth;
18654 if(gost_id) return gost_id;
18656 /* see if configuration loaded gost implementation from other engine*/
18657 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
18659 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18663 /* see if engine can be loaded already */
18664 e = ENGINE_by_id("gost");
18666 /* load it ourself, in case statically linked */
18667 ENGINE_load_builtin_engines();
18668 ENGINE_load_dynamic();
18669 e = ENGINE_by_id("gost");
18672 /* no gost engine in openssl */
18675 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
18681 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
18683 /* algo not found */
18688 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
18694 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
18695 const char* str = "Hello world";
18696 const unsigned char check[] = {
18697 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
18698 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
18699 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
18700 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
18702 OPENSSL_config(NULL);
18703 (void)load_gost_id();
18704 md = EVP_get_digestbyname("md_gost94");
18706 memset(digest, 0, sizeof(digest));
18707 ctx = EVP_MD_CTX_create();
18709 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
18710 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
18711 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
18712 /* uncomment to see the hash calculated.
18714 for(i=0; i<32; i++)
18715 printf(" %2.2x", (int)digest[i]);
18718 if(memcmp(digest, check, sizeof(check)) != 0)
18724 if ac_fn_c_try_run "$LINENO"; then :
18725 eval "ac_cv_c_gost_works=yes"
18727 eval "ac_cv_c_gost_works=no"
18729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18730 conftest.$ac_objext conftest.beam conftest.$ac_ext
18733 CFLAGS="$BAKCFLAGS"
18735 eval "ac_cv_c_gost_works=maybe"
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
18738 $as_echo "$ac_cv_c_gost_works" >&6; }
18740 if test "$ac_cv_c_gost_works" != no; then
18743 $as_echo "#define USE_GOST 1" >>confdefs.h
18749 # Check whether --enable-ecdsa was given.
18750 if test "${enable_ecdsa+set}" = set; then :
18751 enableval=$enable_ecdsa;
18755 case "$enable_ecdsa" in
18759 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18760 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
18761 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
18764 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18767 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
18768 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
18771 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18774 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
18775 #include <openssl/evp.h>
18778 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18787 if test $ac_have_decl = 1; then :
18790 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18792 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18793 #include <openssl/evp.h>
18796 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18805 if test $ac_have_decl = 1; then :
18808 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18811 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18813 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18814 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18815 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18817 $as_echo "no" >&6; }
18819 cat >>confdefs.h <<_ACEOF
18820 #define USE_ECDSA_EVP_WORKAROUND 1
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18825 $as_echo "yes" >&6; }
18828 # not OpenSSL, thus likely LibreSSL, which supports it
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18830 $as_echo "yes" >&6; }
18833 # we now know we have ECDSA and the required curves.
18835 cat >>confdefs.h <<_ACEOF
18836 #define USE_ECDSA 1
18843 # Check whether --enable-dsa was given.
18844 if test "${enable_dsa+set}" = set; then :
18845 enableval=$enable_dsa;
18849 case "$enable_dsa" in
18851 # detect if DSA is supported, and turn it off if not.
18852 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18853 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18854 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18856 as_ac_Type=`$as_echo "ac_cv_type_DSA_SIG*" | $as_tr_sh`
18857 ac_fn_c_check_type "$LINENO" "DSA_SIG*" "$as_ac_Type" "
18858 $ac_includes_default
18859 #ifdef HAVE_OPENSSL_ERR_H
18860 #include <openssl/err.h>
18863 #ifdef HAVE_OPENSSL_RAND_H
18864 #include <openssl/rand.h>
18867 #ifdef HAVE_OPENSSL_CONF_H
18868 #include <openssl/conf.h>
18871 #ifdef HAVE_OPENSSL_ENGINE_H
18872 #include <openssl/engine.h>
18876 if eval test \"x\$"$as_ac_Type"\" = x"yes"; then :
18879 cat >>confdefs.h <<_ACEOF
18885 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18891 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18897 cat >>confdefs.h <<_ACEOF
18904 # disable dsa by default, RFC 8624 section 3.1, validators MUST NOT
18905 # support DSA for DNSSEC Validation.
18909 # Check whether --enable-ed25519 was given.
18910 if test "${enable_ed25519+set}" = set; then :
18911 enableval=$enable_ed25519;
18915 case "$enable_ed25519" in
18919 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18920 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18921 #include <openssl/evp.h>
18924 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18933 if test $ac_have_decl = 1; then :
18938 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18943 if test $USE_NETTLE = "yes"; then
18944 for ac_header in nettle/eddsa.h
18946 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18948 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18949 cat >>confdefs.h <<_ACEOF
18950 #define HAVE_NETTLE_EDDSA_H 1
18958 if test $use_ed25519 = "yes"; then
18960 cat >>confdefs.h <<_ACEOF
18961 #define USE_ED25519 1
18968 # Check whether --enable-ed448 was given.
18969 if test "${enable_ed448+set}" = set; then :
18970 enableval=$enable_ed448;
18974 case "$enable_ed448" in
18978 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18979 ac_fn_c_check_decl "$LINENO" "NID_ED448" "ac_cv_have_decl_NID_ED448" "$ac_includes_default
18980 #include <openssl/evp.h>
18983 if test "x$ac_cv_have_decl_NID_ED448" = xyes; then :
18989 cat >>confdefs.h <<_ACEOF
18990 #define HAVE_DECL_NID_ED448 $ac_have_decl
18992 if test $ac_have_decl = 1; then :
18997 if test "x$enable_ed448" = "xyes"; then as_fn_error $? "OpenSSL does not support ED448 and you used --enable-ed448." "$LINENO" 5
19002 if test $use_ed448 = "yes"; then
19004 cat >>confdefs.h <<_ACEOF
19005 #define USE_ED448 1
19012 # Check whether --enable-event-api was given.
19013 if test "${enable_event_api+set}" = set; then :
19014 enableval=$enable_event_api;
19017 case "$enable_event_api" in
19019 UNBOUND_EVENT_INSTALL=unbound-event-install
19021 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
19028 # Check whether --enable-tfo-client was given.
19029 if test "${enable_tfo_client+set}" = set; then :
19030 enableval=$enable_tfo_client;
19033 case "$enable_tfo_client" in
19036 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
19037 #include <netinet/tcp.h>
19040 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19042 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19044 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19048 cat >>confdefs.h <<_ACEOF
19049 #define USE_MSG_FASTOPEN 1
19053 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
19054 #include <sys/socket.h>
19057 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
19059 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
19061 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
19065 cat >>confdefs.h <<_ACEOF
19066 #define USE_OSX_MSG_FASTOPEN 1
19076 # Check whether --enable-tfo-server was given.
19077 if test "${enable_tfo_server+set}" = set; then :
19078 enableval=$enable_tfo_server;
19081 case "$enable_tfo_server" in
19083 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
19084 #include <netinet/tcp.h>
19087 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
19089 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
19091 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
19095 cat >>confdefs.h <<_ACEOF
19096 #define USE_TCP_FASTOPEN 1
19104 # check for libevent
19106 # Check whether --with-libevent was given.
19107 if test "${with_libevent+set}" = set; then :
19108 withval=$with_libevent;
19113 if test x_$withval = x_yes -o x_$withval != x_no; then
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
19115 $as_echo_n "checking for libevent... " >&6; }
19116 if test x_$withval = x_ -o x_$withval = x_yes; then
19117 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19119 for dir in $withval; do
19121 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
19122 found_libevent="yes"
19123 if test "$thedir" != "/usr"; then
19124 CPPFLAGS="$CPPFLAGS -I$thedir/include"
19129 if test x_$found_libevent != x_yes; then
19130 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
19131 # libevent source directory
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19133 $as_echo "found in $thedir" >&6; }
19134 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
19135 BAK_LDFLAGS_SET="1"
19136 BAK_LDFLAGS="$LDFLAGS"
19137 # remove evdns from linking
19138 mkdir build >/dev/null 2>&1
19139 mkdir build/libevent >/dev/null 2>&1
19140 mkdir build/libevent/.libs >/dev/null 2>&1
19141 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19142 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
19143 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
19144 cp $ev_files_o build/libevent
19145 cp $ev_files_lo build/libevent
19146 cp $ev_files_libso build/libevent/.libs
19147 LATE_LDFLAGS="build/libevent/*.lo -lm"
19148 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
19150 as_fn_error $? "Cannot find the libevent library in $withval
19151 You can restart ./configure --with-libevent=no to use a builtin alternative.
19152 Please note that this alternative is not as capable as libevent when using
19153 large outgoing port ranges. " "$LINENO" 5
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
19157 $as_echo "found in $thedir" >&6; }
19158 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
19159 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
19161 if test "x$enable_rpath" = xyes; then
19162 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
19163 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
19168 if test "$thedir" != "/usr" -a "$thedir" != ""; then
19169 LDFLAGS="$LDFLAGS -L$thedir/lib"
19171 if test "x$enable_rpath" = xyes; then
19172 if echo "$thedir/lib" | grep "^/" >/dev/null; then
19173 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
19180 # check for library used by libevent after 1.3c
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19182 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19183 if ${ac_cv_search_clock_gettime+:} false; then :
19184 $as_echo_n "(cached) " >&6
19186 ac_func_search_save_LIBS=$LIBS
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19190 /* Override any GCC internal prototype to avoid an error.
19191 Use char because int might match the return type of a GCC
19192 builtin and then its argument prototype would still apply. */
19196 char clock_gettime ();
19200 return clock_gettime ();
19205 for ac_lib in '' rt; do
19206 if test -z "$ac_lib"; then
19207 ac_res="none required"
19210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19212 if ac_fn_c_try_link "$LINENO"; then :
19213 ac_cv_search_clock_gettime=$ac_res
19215 rm -f core conftest.err conftest.$ac_objext \
19217 if ${ac_cv_search_clock_gettime+:} false; then :
19221 if ${ac_cv_search_clock_gettime+:} false; then :
19224 ac_cv_search_clock_gettime=no
19226 rm conftest.$ac_ext
19227 LIBS=$ac_func_search_save_LIBS
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19230 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19231 ac_res=$ac_cv_search_clock_gettime
19232 if test "$ac_res" != no; then :
19233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19238 # is the event.h header libev or libevent?
19239 for ac_header in event.h
19241 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
19243 if test "x$ac_cv_header_event_h" = xyes; then :
19244 cat >>confdefs.h <<_ACEOF
19245 #define HAVE_EVENT_H 1
19252 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
19256 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19259 $as_echo_n "checking for library containing event_set... " >&6; }
19260 if ${ac_cv_search_event_set+:} false; then :
19261 $as_echo_n "(cached) " >&6
19263 ac_func_search_save_LIBS=$LIBS
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19277 return event_set ();
19282 for ac_lib in '' ev; do
19283 if test -z "$ac_lib"; then
19284 ac_res="none required"
19287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19289 if ac_fn_c_try_link "$LINENO"; then :
19290 ac_cv_search_event_set=$ac_res
19292 rm -f core conftest.err conftest.$ac_objext \
19294 if ${ac_cv_search_event_set+:} false; then :
19298 if ${ac_cv_search_event_set+:} false; then :
19301 ac_cv_search_event_set=no
19303 rm conftest.$ac_ext
19304 LIBS=$ac_func_search_save_LIBS
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19307 $as_echo "$ac_cv_search_event_set" >&6; }
19308 ac_res=$ac_cv_search_event_set
19309 if test "$ac_res" != no; then :
19310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
19318 $as_echo_n "checking for library containing event_set... " >&6; }
19319 if ${ac_cv_search_event_set+:} false; then :
19320 $as_echo_n "(cached) " >&6
19322 ac_func_search_save_LIBS=$LIBS
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19326 /* Override any GCC internal prototype to avoid an error.
19327 Use char because int might match the return type of a GCC
19328 builtin and then its argument prototype would still apply. */
19336 return event_set ();
19341 for ac_lib in '' event; do
19342 if test -z "$ac_lib"; then
19343 ac_res="none required"
19346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19348 if ac_fn_c_try_link "$LINENO"; then :
19349 ac_cv_search_event_set=$ac_res
19351 rm -f core conftest.err conftest.$ac_objext \
19353 if ${ac_cv_search_event_set+:} false; then :
19357 if ${ac_cv_search_event_set+:} false; then :
19360 ac_cv_search_event_set=no
19362 rm conftest.$ac_ext
19363 LIBS=$ac_func_search_save_LIBS
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
19366 $as_echo "$ac_cv_search_event_set" >&6; }
19367 ac_res=$ac_cv_search_event_set
19368 if test "$ac_res" != no; then :
19369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19376 for ac_func in event_base_free
19378 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
19379 if test "x$ac_cv_func_event_base_free" = xyes; then :
19380 cat >>confdefs.h <<_ACEOF
19381 #define HAVE_EVENT_BASE_FREE 1
19386 # only in libevent 1.2 and later
19387 for ac_func in event_base_once
19389 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
19390 if test "x$ac_cv_func_event_base_once" = xyes; then :
19391 cat >>confdefs.h <<_ACEOF
19392 #define HAVE_EVENT_BASE_ONCE 1
19397 # only in libevent 1.4.1 and later
19398 for ac_func in event_base_new
19400 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
19401 if test "x$ac_cv_func_event_base_new" = xyes; then :
19402 cat >>confdefs.h <<_ACEOF
19403 #define HAVE_EVENT_BASE_NEW 1
19408 # only in libevent 1.4.1 and later
19409 for ac_func in event_base_get_method
19411 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
19412 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_EVENT_BASE_GET_METHOD 1
19419 # only in libevent 1.4.3 and later
19420 for ac_func in ev_loop
19422 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
19423 if test "x$ac_cv_func_ev_loop" = xyes; then :
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_EV_LOOP 1
19430 # only in libev. (tested on 3.51)
19431 for ac_func in ev_default_loop
19433 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
19434 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
19435 cat >>confdefs.h <<_ACEOF
19436 #define HAVE_EV_DEFAULT_LOOP 1
19441 # only in libev. (tested on 4.00)
19442 for ac_func in event_assign
19444 ac_fn_c_check_func "$LINENO" "event_assign" "ac_cv_func_event_assign"
19445 if test "x$ac_cv_func_event_assign" = xyes; then :
19446 cat >>confdefs.h <<_ACEOF
19447 #define HAVE_EVENT_ASSIGN 1
19452 # in libevent, for thread-safety
19453 ac_fn_c_check_decl "$LINENO" "evsignal_assign" "ac_cv_have_decl_evsignal_assign" "$ac_includes_default
19454 #ifdef HAVE_EVENT_H
19455 # include <event.h>
19457 # include \"event2/event.h\"
19461 if test "x$ac_cv_have_decl_evsignal_assign" = xyes; then :
19467 cat >>confdefs.h <<_ACEOF
19468 #define HAVE_DECL_EVSIGNAL_ASSIGN $ac_have_decl
19471 PC_LIBEVENT_DEPENDENCY="libevent"
19473 if test -n "$BAK_LDFLAGS_SET"; then
19474 LDFLAGS="$BAK_LDFLAGS"
19478 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
19482 # check for libexpat
19484 # Check whether --with-libexpat was given.
19485 if test "${with_libexpat+set}" = set; then :
19486 withval=$with_libexpat;
19488 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
19492 $as_echo_n "checking for libexpat... " >&6; }
19493 found_libexpat="no"
19494 for dir in $withval ; do
19495 if test -f "$dir/include/expat.h"; then
19496 found_libexpat="yes"
19497 if test "$dir" != "/usr"; then
19498 CPPFLAGS="$CPPFLAGS -I$dir/include"
19499 LDFLAGS="$LDFLAGS -L$dir/lib"
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19502 $as_echo "found in $dir" >&6; }
19506 if test x_$found_libexpat != x_yes; then
19507 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
19509 for ac_header in expat.h
19511 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
19513 if test "x$ac_cv_header_expat_h" = xyes; then :
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_EXPAT_H 1
19522 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
19526 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
19532 cat >>confdefs.h <<_ACEOF
19533 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
19537 # hiredis (redis C client for cachedb)
19539 # Check whether --with-libhiredis was given.
19540 if test "${with_libhiredis+set}" = set; then :
19541 withval=$with_libhiredis;
19546 found_libhiredis="no"
19547 if test x_$withval = x_yes -o x_$withval != x_no; then
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhiredis" >&5
19549 $as_echo_n "checking for libhiredis... " >&6; }
19550 if test x_$withval = x_ -o x_$withval = x_yes; then
19551 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
19553 for dir in $withval ; do
19554 if test -f "$dir/include/hiredis/hiredis.h"; then
19555 found_libhiredis="yes"
19556 if test "$dir" != "/usr"; then
19557 CPPFLAGS="$CPPFLAGS -I$dir/include"
19558 LDFLAGS="$LDFLAGS -L$dir/lib"
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
19561 $as_echo "found in $dir" >&6; }
19563 $as_echo "#define USE_REDIS 1" >>confdefs.h
19565 LIBS="$LIBS -lhiredis"
19569 if test x_$found_libhiredis != x_yes; then
19570 as_fn_error $? "Could not find libhiredis, hiredis.h" "$LINENO" 5
19572 for ac_header in hiredis/hiredis.h
19574 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default
19576 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE_HIREDIS_HIREDIS_H 1
19585 ac_fn_c_check_decl "$LINENO" "redisConnect" "ac_cv_have_decl_redisConnect" "$ac_includes_default
19586 #include <hiredis/hiredis.h>
19589 if test "x$ac_cv_have_decl_redisConnect" = xyes; then :
19595 cat >>confdefs.h <<_ACEOF
19596 #define HAVE_DECL_REDISCONNECT $ac_have_decl
19601 # set static linking for uninstalled libraries if requested
19604 # Check whether --enable-static-exe was given.
19605 if test "${enable_static_exe+set}" = set; then :
19606 enableval=$enable_static_exe;
19609 if test x_$enable_static_exe = x_yes; then
19610 staticexe="-static"
19611 if test "$on_mingw" = yes; then
19612 staticexe="-all-static"
19613 # for static compile, include gdi32 and zlib here.
19614 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19617 LIBS="$LIBS -lgdi32"
19623 # set full static linking if requested
19624 # Check whether --enable-fully-static was given.
19625 if test "${enable_fully_static+set}" = set; then :
19626 enableval=$enable_fully_static;
19629 if test x_$enable_fully_static = x_yes; then
19630 staticexe="-all-static"
19631 if test "$on_mingw" = yes; then
19632 # for static compile, include gdi32 and zlib here.
19633 if echo $LIBS | grep 'lgdi32' >/dev/null; then
19636 LIBS="$LIBS -lgdi32"
19642 # set lock checking if requested
19643 # Check whether --enable-lock_checks was given.
19644 if test "${enable_lock_checks+set}" = set; then :
19645 enableval=$enable_lock_checks;
19648 if test x_$enable_lock_checks = x_yes; then
19650 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
19652 CHECKLOCK_OBJ="checklocks.lo"
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
19658 $as_echo_n "checking for getaddrinfo... " >&6; }
19659 ac_cv_func_getaddrinfo=no
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19667 char* getaddrinfo();
19668 char* (*f) () = getaddrinfo;
19678 if ac_fn_c_try_link "$LINENO"; then :
19679 ac_cv_func_getaddrinfo="yes"
19680 if test "$ac_cv_header_windows_h" = "yes"; then
19682 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19685 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19688 LIBS="$LIBS -lws2_32"
19694 LIBS="$LIBS -lws2_32"
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19698 #ifdef HAVE_WS2TCPIP_H
19699 #include <ws2tcpip.h>
19706 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19713 if ac_fn_c_try_link "$LINENO"; then :
19715 ac_cv_func_getaddrinfo="yes"
19717 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19723 ac_cv_func_getaddrinfo="no"
19727 rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19731 rm -f core conftest.err conftest.$ac_objext \
19732 conftest$ac_exeext conftest.$ac_ext
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19735 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19736 if test $ac_cv_func_getaddrinfo = yes; then
19738 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19742 if test "$USE_WINSOCK" = 1; then
19744 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19746 for ac_header in iphlpapi.h
19748 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19749 #include <windows.h>
19752 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19753 cat >>confdefs.h <<_ACEOF
19754 #define HAVE_IPHLPAPI_H 1
19761 if test -n "$ac_tool_prefix"; then
19762 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19763 set dummy ${ac_tool_prefix}windres; ac_word=$2
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19765 $as_echo_n "checking for $ac_word... " >&6; }
19766 if ${ac_cv_prog_WINDRES+:} false; then :
19767 $as_echo_n "(cached) " >&6
19769 if test -n "$WINDRES"; then
19770 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19773 for as_dir in $PATH
19776 test -z "$as_dir" && as_dir=.
19777 for ac_exec_ext in '' $ac_executable_extensions; do
19778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19779 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19789 WINDRES=$ac_cv_prog_WINDRES
19790 if test -n "$WINDRES"; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19792 $as_echo "$WINDRES" >&6; }
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19795 $as_echo "no" >&6; }
19800 if test -z "$ac_cv_prog_WINDRES"; then
19801 ac_ct_WINDRES=$WINDRES
19802 # Extract the first word of "windres", so it can be a program name with args.
19803 set dummy windres; ac_word=$2
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19805 $as_echo_n "checking for $ac_word... " >&6; }
19806 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19807 $as_echo_n "(cached) " >&6
19809 if test -n "$ac_ct_WINDRES"; then
19810 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19813 for as_dir in $PATH
19816 test -z "$as_dir" && as_dir=.
19817 for ac_exec_ext in '' $ac_executable_extensions; do
19818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19819 ac_cv_prog_ac_ct_WINDRES="windres"
19820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19829 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19830 if test -n "$ac_ct_WINDRES"; then
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19832 $as_echo "$ac_ct_WINDRES" >&6; }
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835 $as_echo "no" >&6; }
19838 if test "x$ac_ct_WINDRES" = x; then
19841 case $cross_compiling:$ac_tool_warned in
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19845 ac_tool_warned=yes ;;
19847 WINDRES=$ac_ct_WINDRES
19850 WINDRES="$ac_cv_prog_WINDRES"
19853 LIBS="$LIBS -liphlpapi -lcrypt32"
19854 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19856 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19858 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19860 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19862 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19864 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19866 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19868 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19871 if test $ac_cv_func_getaddrinfo = no; then
19872 case " $LIBOBJS " in
19873 *" fake-rfc2553.$ac_objext "* ) ;;
19874 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19879 # check after getaddrinfo for its libraries
19881 # check ioctlsocket
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19883 $as_echo_n "checking for ioctlsocket... " >&6; }
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 #ifdef HAVE_WINSOCK2_H
19888 #include <winsock2.h>
19895 (void)ioctlsocket(0, 0, NULL);
19901 if ac_fn_c_try_link "$LINENO"; then :
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19904 $as_echo "yes" >&6; }
19906 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19911 $as_echo "no" >&6; }
19913 rm -f core conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19917 # see if daemon(3) exists, and if it is deprecated.
19918 for ac_func in daemon
19920 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19921 if test "x$ac_cv_func_daemon" = xyes; then :
19922 cat >>confdefs.h <<_ACEOF
19923 #define HAVE_DAEMON 1
19929 if test $ac_cv_func_daemon = yes; then
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19933 $as_echo_n "checking if daemon is deprecated... " >&6; }
19934 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19935 if eval \${cv_cc_deprecated_$cache+:} false; then :
19936 $as_echo_n "(cached) " >&6
19940 #include <stdlib.h>
19942 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19943 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19944 eval "cv_cc_deprecated_$cache=no"
19946 eval "cv_cc_deprecated_$cache=yes"
19948 rm -f conftest conftest.o conftest.c
19952 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954 $as_echo "yes" >&6; }
19956 cat >>confdefs.h <<_ACEOF
19957 #define DEPRECATED_DAEMON 1
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964 $as_echo "no" >&6; }
19971 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19972 $ac_includes_default
19973 #ifdef HAVE_SYS_UN_H
19974 #include <sys/un.h>
19978 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19980 cat >>confdefs.h <<_ACEOF
19981 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19987 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19988 $ac_includes_default
19989 #if HAVE_SYS_PARAM_H
19990 #include <sys/param.h>
19993 #ifdef HAVE_SYS_SOCKET_H
19994 #include <sys/socket.h>
19997 #ifdef HAVE_SYS_UIO_H
19998 #include <sys/uio.h>
20001 #ifdef HAVE_NETINET_IN_H
20002 #include <netinet/in.h>
20005 #ifdef HAVE_NETINET_TCP_H
20006 #include <netinet/tcp.h>
20009 #ifdef HAVE_ARPA_INET_H
20010 #include <arpa/inet.h>
20013 #ifdef HAVE_WINSOCK2_H
20014 #include <winsock2.h>
20017 #ifdef HAVE_WS2TCPIP_H
20018 #include <ws2tcpip.h>
20022 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
20024 cat >>confdefs.h <<_ACEOF
20025 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htobe64" >&5
20033 $as_echo_n "checking for htobe64... " >&6; }
20034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20035 /* end confdefs.h. */
20038 #ifdef HAVE_ENDIAN_H
20039 # include <endian.h>
20041 #ifdef HAVE_SYS_ENDIAN_H
20042 # include <sys/endian.h>
20048 unsigned long long x = htobe64(0); printf("%u", (unsigned)x);
20053 if ac_fn_c_try_link "$LINENO"; then :
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20055 $as_echo "yes" >&6; }
20057 $as_echo "#define HAVE_HTOBE64 1" >>confdefs.h
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20061 $as_echo "no" >&6; }
20063 rm -f core conftest.err conftest.$ac_objext \
20064 conftest$ac_exeext conftest.$ac_ext
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be64toh" >&5
20067 $as_echo_n "checking for be64toh... " >&6; }
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20072 #ifdef HAVE_ENDIAN_H
20073 # include <endian.h>
20075 #ifdef HAVE_SYS_ENDIAN_H
20076 # include <sys/endian.h>
20082 unsigned long long x = be64toh(0); printf("%u", (unsigned)x);
20087 if ac_fn_c_try_link "$LINENO"; then :
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20089 $as_echo "yes" >&6; }
20091 $as_echo "#define HAVE_BE64TOH 1" >>confdefs.h
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20095 $as_echo "no" >&6; }
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
20101 $as_echo_n "checking for library containing setusercontext... " >&6; }
20102 if ${ac_cv_search_setusercontext+:} false; then :
20103 $as_echo_n "(cached) " >&6
20105 ac_func_search_save_LIBS=$LIBS
20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20115 char setusercontext ();
20119 return setusercontext ();
20124 for ac_lib in '' util; do
20125 if test -z "$ac_lib"; then
20126 ac_res="none required"
20129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20131 if ac_fn_c_try_link "$LINENO"; then :
20132 ac_cv_search_setusercontext=$ac_res
20134 rm -f core conftest.err conftest.$ac_objext \
20136 if ${ac_cv_search_setusercontext+:} false; then :
20140 if ${ac_cv_search_setusercontext+:} false; then :
20143 ac_cv_search_setusercontext=no
20145 rm conftest.$ac_ext
20146 LIBS=$ac_func_search_save_LIBS
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
20149 $as_echo "$ac_cv_search_setusercontext" >&6; }
20150 ac_res=$ac_cv_search_setusercontext
20151 if test "$ac_res" != no; then :
20152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20156 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
20158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20160 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20161 cat >>confdefs.h <<_ACEOF
20162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20168 for ac_func in setresuid
20170 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
20171 if test "x$ac_cv_func_setresuid" = xyes; then :
20172 cat >>confdefs.h <<_ACEOF
20173 #define HAVE_SETRESUID 1
20177 for ac_func in setreuid
20179 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
20180 if test "x$ac_cv_func_setreuid" = xyes; then :
20181 cat >>confdefs.h <<_ACEOF
20182 #define HAVE_SETREUID 1
20191 for ac_func in setresgid
20193 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
20194 if test "x$ac_cv_func_setresgid" = xyes; then :
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_SETRESGID 1
20200 for ac_func in setregid
20202 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
20203 if test "x$ac_cv_func_setregid" = xyes; then :
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_SETREGID 1
20215 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
20216 if echo $target_os | grep darwin8 > /dev/null; then
20218 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
20221 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
20222 $ac_includes_default
20223 #ifdef HAVE_NETINET_IN_H
20224 #include <netinet/in.h>
20227 #ifdef HAVE_NETINET_TCP_H
20228 #include <netinet/tcp.h>
20231 #ifdef HAVE_ARPA_INET_H
20232 #include <arpa/inet.h>
20235 #ifdef HAVE_WINSOCK2_H
20236 #include <winsock2.h>
20239 #ifdef HAVE_WS2TCPIP_H
20240 #include <ws2tcpip.h>
20244 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
20250 cat >>confdefs.h <<_ACEOF
20251 #define HAVE_DECL_INET_PTON $ac_have_decl
20253 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
20254 $ac_includes_default
20255 #ifdef HAVE_NETINET_IN_H
20256 #include <netinet/in.h>
20259 #ifdef HAVE_NETINET_TCP_H
20260 #include <netinet/tcp.h>
20263 #ifdef HAVE_ARPA_INET_H
20264 #include <arpa/inet.h>
20267 #ifdef HAVE_WINSOCK2_H
20268 #include <winsock2.h>
20271 #ifdef HAVE_WS2TCPIP_H
20272 #include <ws2tcpip.h>
20276 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_DECL_INET_NTOP $ac_have_decl
20286 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
20287 if test "x$ac_cv_func_inet_aton" = xyes; then :
20288 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
20291 case " $LIBOBJS " in
20292 *" inet_aton.$ac_objext "* ) ;;
20293 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20300 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
20301 if test "x$ac_cv_func_inet_pton" = xyes; then :
20302 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
20305 case " $LIBOBJS " in
20306 *" inet_pton.$ac_objext "* ) ;;
20307 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
20314 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20315 if test "x$ac_cv_func_inet_ntop" = xyes; then :
20316 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
20319 case " $LIBOBJS " in
20320 *" inet_ntop.$ac_objext "* ) ;;
20321 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20328 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
20329 if test "x$ac_cv_func_snprintf" = xyes; then :
20330 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
20333 case " $LIBOBJS " in
20334 *" snprintf.$ac_objext "* ) ;;
20335 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20342 # test if snprintf return the proper length
20343 if test "x$ac_cv_func_snprintf" = xyes; then
20344 if test c${cross_compiling} = cno; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
20346 $as_echo_n "checking for correct snprintf return value... " >&6; }
20347 if test "$cross_compiling" = yes; then :
20348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20350 as_fn_error $? "cannot run test program while cross compiling
20351 See \`config.log' for more details" "$LINENO" 5; }
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20355 $ac_includes_default
20357 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
20360 if ac_fn_c_try_run "$LINENO"; then :
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20362 $as_echo "yes" >&6; }
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20368 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
20370 case " $LIBOBJS " in
20371 *" snprintf.$ac_objext "* ) ;;
20372 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20379 conftest.$ac_objext conftest.beam conftest.$ac_ext
20384 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20385 if test "x$ac_cv_func_strlcat" = xyes; then :
20386 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
20389 case " $LIBOBJS " in
20390 *" strlcat.$ac_objext "* ) ;;
20391 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20398 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20399 if test "x$ac_cv_func_strlcpy" = xyes; then :
20400 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
20403 case " $LIBOBJS " in
20404 *" strlcpy.$ac_objext "* ) ;;
20405 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20412 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
20413 if test "x$ac_cv_func_memmove" = xyes; then :
20414 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20417 case " $LIBOBJS " in
20418 *" memmove.$ac_objext "* ) ;;
20419 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
20426 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
20427 if test "x$ac_cv_func_gmtime_r" = xyes; then :
20428 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20431 case " $LIBOBJS " in
20432 *" gmtime_r.$ac_objext "* ) ;;
20433 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
20440 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
20441 if test "x$ac_cv_func_isblank" = xyes; then :
20442 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
20445 case " $LIBOBJS " in
20446 *" isblank.$ac_objext "* ) ;;
20447 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
20454 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20455 if test "x$ac_cv_func_explicit_bzero" = xyes; then :
20456 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20459 case " $LIBOBJS " in
20460 *" explicit_bzero.$ac_objext "* ) ;;
20461 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
20468 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
20471 $as_echo_n "checking for reallocarray... " >&6; }
20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20473 /* end confdefs.h. */
20474 $ac_includes_default
20476 #ifndef _OPENBSD_SOURCE
20477 #define _OPENBSD_SOURCE 1
20479 #include <stdlib.h>
20481 void* p = reallocarray(NULL, 10, 100);
20487 if ac_fn_c_try_link "$LINENO"; then :
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20489 $as_echo "yes" >&6; }
20491 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20497 $as_echo "no" >&6; }
20498 case " $LIBOBJS " in
20499 *" reallocarray.$ac_objext "* ) ;;
20500 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20506 rm -f core conftest.err conftest.$ac_objext \
20507 conftest$ac_exeext conftest.$ac_ext
20508 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
20509 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
20515 cat >>confdefs.h <<_ACEOF
20516 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
20519 if test "$USE_NSS" = "no"; then
20520 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
20521 if test "x$ac_cv_func_arc4random" = xyes; then :
20522 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
20525 case " $LIBOBJS " in
20526 *" arc4random.$ac_objext "* ) ;;
20527 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
20534 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
20535 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
20536 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
20539 case " $LIBOBJS " in
20540 *" arc4random_uniform.$ac_objext "* ) ;;
20541 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
20548 if test "$ac_cv_func_arc4random" = "no"; then
20549 case " $LIBOBJS " in
20550 *" arc4_lock.$ac_objext "* ) ;;
20551 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
20555 for ac_func in getentropy
20557 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20558 if test "x$ac_cv_func_getentropy" = xyes; then :
20559 cat >>confdefs.h <<_ACEOF
20560 #define HAVE_GETENTROPY 1
20565 if test "$USE_WINSOCK" = 1; then
20566 case " $LIBOBJS " in
20567 *" getentropy_win.$ac_objext "* ) ;;
20568 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
20575 case " $LIBOBJS " in
20576 *" getentropy_osx.$ac_objext "* ) ;;
20577 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
20582 *solaris*|*sunos*|SunOS)
20583 case " $LIBOBJS " in
20584 *" getentropy_solaris.$ac_objext "* ) ;;
20585 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
20589 for ac_header in sys/sha2.h
20591 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
20593 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_SYS_SHA2_H 1
20600 for ac_func in SHA512_Update
20602 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20603 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_SHA512_UPDATE 1
20610 case " $LIBOBJS " in
20611 *" sha512.$ac_objext "* ) ;;
20612 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20625 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
20626 # this lib needed for sha2 on solaris
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20630 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20631 if ${ac_cv_search_clock_gettime+:} false; then :
20632 $as_echo_n "(cached) " >&6
20634 ac_func_search_save_LIBS=$LIBS
20635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20636 /* end confdefs.h. */
20638 /* Override any GCC internal prototype to avoid an error.
20639 Use char because int might match the return type of a GCC
20640 builtin and then its argument prototype would still apply. */
20644 char clock_gettime ();
20648 return clock_gettime ();
20653 for ac_lib in '' rt; do
20654 if test -z "$ac_lib"; then
20655 ac_res="none required"
20658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20660 if ac_fn_c_try_link "$LINENO"; then :
20661 ac_cv_search_clock_gettime=$ac_res
20663 rm -f core conftest.err conftest.$ac_objext \
20665 if ${ac_cv_search_clock_gettime+:} false; then :
20669 if ${ac_cv_search_clock_gettime+:} false; then :
20672 ac_cv_search_clock_gettime=no
20674 rm conftest.$ac_ext
20675 LIBS=$ac_func_search_save_LIBS
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20678 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20679 ac_res=$ac_cv_search_clock_gettime
20680 if test "$ac_res" != no; then :
20681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20686 *freebsd*|*FreeBSD)
20687 case " $LIBOBJS " in
20688 *" getentropy_freebsd.$ac_objext "* ) ;;
20689 *) LIBOBJS="$LIBOBJS getentropy_freebsd.$ac_objext"
20695 case " $LIBOBJS " in
20696 *" getentropy_linux.$ac_objext "* ) ;;
20697 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
20701 for ac_func in SHA512_Update
20703 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
20704 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
20705 cat >>confdefs.h <<_ACEOF
20706 #define HAVE_SHA512_UPDATE 1
20712 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
20714 case " $LIBOBJS " in
20715 *" sha512.$ac_objext "* ) ;;
20716 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
20724 for ac_header in sys/sysctl.h
20726 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
20728 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_SYS_SYSCTL_H 1
20737 for ac_func in getauxval
20739 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
20740 if test "x$ac_cv_func_getauxval" = xyes; then :
20741 cat >>confdefs.h <<_ACEOF
20742 #define HAVE_GETAUXVAL 1
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20749 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20750 if ${ac_cv_search_clock_gettime+:} false; then :
20751 $as_echo_n "(cached) " >&6
20753 ac_func_search_save_LIBS=$LIBS
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20763 char clock_gettime ();
20767 return clock_gettime ();
20772 for ac_lib in '' rt; do
20773 if test -z "$ac_lib"; then
20774 ac_res="none required"
20777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20779 if ac_fn_c_try_link "$LINENO"; then :
20780 ac_cv_search_clock_gettime=$ac_res
20782 rm -f core conftest.err conftest.$ac_objext \
20784 if ${ac_cv_search_clock_gettime+:} false; then :
20788 if ${ac_cv_search_clock_gettime+:} false; then :
20791 ac_cv_search_clock_gettime=no
20793 rm conftest.$ac_ext
20794 LIBS=$ac_func_search_save_LIBS
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20797 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20798 ac_res=$ac_cv_search_clock_gettime
20799 if test "$ac_res" != no; then :
20800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20813 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20815 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20816 if test "x$ac_cv_func_ctime_r" = xyes; then :
20817 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20820 case " $LIBOBJS " in
20821 *" ctime_r.$ac_objext "* ) ;;
20822 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20829 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20830 if test "x$ac_cv_func_strsep" = xyes; then :
20831 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20834 case " $LIBOBJS " in
20835 *" strsep.$ac_objext "* ) ;;
20836 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20844 # Check whether --enable-allsymbols was given.
20845 if test "${enable_allsymbols+set}" = set; then :
20846 enableval=$enable_allsymbols;
20849 case "$enable_allsymbols" in
20851 COMMON_OBJ_ALL_SYMBOLS=""
20853 EXTRALINK="-L. -L.libs -lunbound"
20855 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20859 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20860 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20867 if test x_$enable_lock_checks = x_yes; then
20868 UBSYMS="-export-symbols clubsyms.def"
20869 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20870 echo lock_protect >> clubsyms.def
20871 echo lock_unprotect >> clubsyms.def
20872 echo lock_get_mem >> clubsyms.def
20873 echo checklock_start >> clubsyms.def
20874 echo checklock_stop >> clubsyms.def
20875 echo checklock_lock >> clubsyms.def
20876 echo checklock_unlock >> clubsyms.def
20877 echo checklock_init >> clubsyms.def
20878 echo checklock_thrcreate >> clubsyms.def
20879 echo checklock_thrjoin >> clubsyms.def
20882 # check for dnstap if requested
20884 # Check whether --enable-dnstap was given.
20885 if test "${enable_dnstap+set}" = set; then :
20886 enableval=$enable_dnstap; opt_dnstap=$enableval
20893 # Check whether --with-dnstap-socket-path was given.
20894 if test "${with_dnstap_socket_path+set}" = set; then :
20895 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20897 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20901 if test "x$opt_dnstap" != "xno"; then
20902 # Extract the first word of "protoc-c", so it can be a program name with args.
20903 set dummy protoc-c; ac_word=$2
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20905 $as_echo_n "checking for $ac_word... " >&6; }
20906 if ${ac_cv_path_PROTOC_C+:} false; then :
20907 $as_echo_n "(cached) " >&6
20911 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20915 for as_dir in $PATH
20918 test -z "$as_dir" && as_dir=.
20919 for ac_exec_ext in '' $ac_executable_extensions; do
20920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20921 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20932 PROTOC_C=$ac_cv_path_PROTOC_C
20933 if test -n "$PROTOC_C"; then
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20935 $as_echo "$PROTOC_C" >&6; }
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938 $as_echo "no" >&6; }
20942 if test -z "$PROTOC_C"; then
20943 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20946 # Check whether --with-protobuf-c was given.
20947 if test "${with_protobuf_c+set}" = set; then :
20948 withval=$with_protobuf_c;
20949 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20950 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20951 CFLAGS="$CFLAGS -I$withval/include/google"
20953 CFLAGS="$CFLAGS -I$withval/include"
20955 LDFLAGS="$LDFLAGS -L$withval/lib"
20959 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20960 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20961 CFLAGS="$CFLAGS -I/usr/include/google"
20963 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20964 CFLAGS="$CFLAGS -I/usr/local/include/google"
20965 LDFLAGS="$LDFLAGS -L/usr/local/lib"
20972 # Check whether --with-libfstrm was given.
20973 if test "${with_libfstrm+set}" = set; then :
20974 withval=$with_libfstrm;
20975 CFLAGS="$CFLAGS -I$withval/include"
20976 LDFLAGS="$LDFLAGS -L$withval/lib"
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20981 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20982 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20983 $as_echo_n "(cached) " >&6
20985 ac_func_search_save_LIBS=$LIBS
20986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h. */
20989 /* Override any GCC internal prototype to avoid an error.
20990 Use char because int might match the return type of a GCC
20991 builtin and then its argument prototype would still apply. */
20995 char fstrm_iothr_init ();
20999 return fstrm_iothr_init ();
21004 for ac_lib in '' fstrm; do
21005 if test -z "$ac_lib"; then
21006 ac_res="none required"
21009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21011 if ac_fn_c_try_link "$LINENO"; then :
21012 ac_cv_search_fstrm_iothr_init=$ac_res
21014 rm -f core conftest.err conftest.$ac_objext \
21016 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21020 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
21023 ac_cv_search_fstrm_iothr_init=no
21025 rm conftest.$ac_ext
21026 LIBS=$ac_func_search_save_LIBS
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
21029 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
21030 ac_res=$ac_cv_search_fstrm_iothr_init
21031 if test "$ac_res" != no; then :
21032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21035 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
21039 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
21040 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21041 $as_echo_n "(cached) " >&6
21043 ac_func_search_save_LIBS=$LIBS
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21047 /* Override any GCC internal prototype to avoid an error.
21048 Use char because int might match the return type of a GCC
21049 builtin and then its argument prototype would still apply. */
21053 char protobuf_c_message_pack ();
21057 return protobuf_c_message_pack ();
21062 for ac_lib in '' protobuf-c; do
21063 if test -z "$ac_lib"; then
21064 ac_res="none required"
21067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21069 if ac_fn_c_try_link "$LINENO"; then :
21070 ac_cv_search_protobuf_c_message_pack=$ac_res
21072 rm -f core conftest.err conftest.$ac_objext \
21074 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21078 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
21081 ac_cv_search_protobuf_c_message_pack=no
21083 rm conftest.$ac_ext
21084 LIBS=$ac_func_search_save_LIBS
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
21087 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
21088 ac_res=$ac_cv_search_protobuf_c_message_pack
21089 if test "$ac_res" != no; then :
21090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21093 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
21098 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
21104 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
21107 cat >>confdefs.h <<_ACEOF
21108 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
21112 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
21114 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
21126 # check for dnscrypt if requested
21128 # Check whether --enable-dnscrypt was given.
21129 if test "${enable_dnscrypt+set}" = set; then :
21130 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
21136 if test "x$opt_dnscrypt" != "xno"; then
21138 # Check whether --with-libsodium was given.
21139 if test "${with_libsodium+set}" = set; then :
21140 withval=$with_libsodium;
21141 CFLAGS="$CFLAGS -I$withval/include"
21142 LDFLAGS="$LDFLAGS -L$withval/lib"
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
21147 $as_echo_n "checking for library containing sodium_init... " >&6; }
21148 if ${ac_cv_search_sodium_init+:} false; then :
21149 $as_echo_n "(cached) " >&6
21151 ac_func_search_save_LIBS=$LIBS
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21155 /* Override any GCC internal prototype to avoid an error.
21156 Use char because int might match the return type of a GCC
21157 builtin and then its argument prototype would still apply. */
21161 char sodium_init ();
21165 return sodium_init ();
21170 for ac_lib in '' sodium; do
21171 if test -z "$ac_lib"; then
21172 ac_res="none required"
21175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21177 if ac_fn_c_try_link "$LINENO"; then :
21178 ac_cv_search_sodium_init=$ac_res
21180 rm -f core conftest.err conftest.$ac_objext \
21182 if ${ac_cv_search_sodium_init+:} false; then :
21186 if ${ac_cv_search_sodium_init+:} false; then :
21189 ac_cv_search_sodium_init=no
21191 rm conftest.$ac_ext
21192 LIBS=$ac_func_search_save_LIBS
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
21195 $as_echo "$ac_cv_search_sodium_init" >&6; }
21196 ac_res=$ac_cv_search_sodium_init
21197 if test "$ac_res" != no; then :
21198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21201 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21205 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
21206 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21207 $as_echo_n "(cached) " >&6
21209 ac_func_search_save_LIBS=$LIBS
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211 /* end confdefs.h. */
21213 /* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21219 char crypto_box_curve25519xchacha20poly1305_beforenm ();
21223 return crypto_box_curve25519xchacha20poly1305_beforenm ();
21228 for ac_lib in '' sodium; do
21229 if test -z "$ac_lib"; then
21230 ac_res="none required"
21233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21235 if ac_fn_c_try_link "$LINENO"; then :
21236 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
21238 rm -f core conftest.err conftest.$ac_objext \
21240 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21244 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
21247 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
21249 rm conftest.$ac_ext
21250 LIBS=$ac_func_search_save_LIBS
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
21253 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
21254 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
21255 if test "$ac_res" != no; then :
21256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21258 ENABLE_DNSCRYPT_XCHACHA20=1
21261 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
21266 ENABLE_DNSCRYPT_XCHACHA20=0
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_set_misuse_handler" >&5
21272 $as_echo_n "checking for library containing sodium_set_misuse_handler... " >&6; }
21273 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21274 $as_echo_n "(cached) " >&6
21276 ac_func_search_save_LIBS=$LIBS
21277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278 /* end confdefs.h. */
21280 /* Override any GCC internal prototype to avoid an error.
21281 Use char because int might match the return type of a GCC
21282 builtin and then its argument prototype would still apply. */
21286 char sodium_set_misuse_handler ();
21290 return sodium_set_misuse_handler ();
21295 for ac_lib in '' sodium; do
21296 if test -z "$ac_lib"; then
21297 ac_res="none required"
21300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21302 if ac_fn_c_try_link "$LINENO"; then :
21303 ac_cv_search_sodium_set_misuse_handler=$ac_res
21305 rm -f core conftest.err conftest.$ac_objext \
21307 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21311 if ${ac_cv_search_sodium_set_misuse_handler+:} false; then :
21314 ac_cv_search_sodium_set_misuse_handler=no
21316 rm conftest.$ac_ext
21317 LIBS=$ac_func_search_save_LIBS
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_set_misuse_handler" >&5
21320 $as_echo "$ac_cv_search_sodium_set_misuse_handler" >&6; }
21321 ac_res=$ac_cv_search_sodium_set_misuse_handler
21322 if test "$ac_res" != no; then :
21323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21326 $as_echo "#define SODIUM_MISUSE_HANDLER 1" >>confdefs.h
21333 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
21338 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
21340 DNSCRYPT_OBJ="dnscrypt.lo"
21344 ENABLE_DNSCRYPT_XCHACHA20=0
21354 # check for cachedb if requested
21355 # Check whether --enable-cachedb was given.
21356 if test "${enable_cachedb+set}" = set; then :
21357 enableval=$enable_cachedb;
21360 # turn on cachedb when hiredis support is enabled.
21361 if test "$found_libhiredis" = "yes"; then enable_cachedb="yes"; fi
21362 case "$enable_cachedb" in
21365 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
21373 # check for ipsecmod if requested
21374 # Check whether --enable-ipsecmod was given.
21375 if test "${enable_ipsecmod+set}" = set; then :
21376 enableval=$enable_ipsecmod;
21379 case "$enable_ipsecmod" in
21382 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
21384 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
21386 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
21394 # check for ipset if requested
21395 # Check whether --enable-ipset was given.
21396 if test "${enable_ipset+set}" = set; then :
21397 enableval=$enable_ipset;
21400 case "$enable_ipset" in
21403 $as_echo "#define USE_IPSET 1" >>confdefs.h
21405 IPSET_SRC="ipset/ipset.c"
21407 IPSET_OBJ="ipset.lo"
21412 # Check whether --with-libmnl was given.
21413 if test "${with_libmnl+set}" = set; then :
21414 withval=$with_libmnl;
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmnl" >&5
21421 $as_echo_n "checking for libmnl... " >&6; }
21422 if test x_$withval = x_ -o x_$withval = x_yes; then
21423 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
21425 for dir in $withval ; do
21426 if test -f "$dir/include/libmnl/libmnl.h"; then
21428 if test "$dir" != "/usr"; then
21429 CPPFLAGS="$CPPFLAGS -I$dir/include"
21430 LDFLAGS="$LDFLAGS -L$dir/lib"
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
21433 $as_echo "found in $dir" >&6; }
21438 if test x_$found_libmnl != x_yes; then
21439 as_fn_error $? "Could not find libmnl, libmnl.h" "$LINENO" 5
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
21448 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
21449 # on openBSD, the implicit rule make $< work.
21450 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
21452 cat >conftest.make <<EOF
21455 conftest.lo foo.lo bla.lo:
21456 if test -f "\$<"; then touch \$@; fi
21460 if test -f "\$<"; then touch \$@; fi
21462 conftest.lo: conftest.dir/conftest.c
21465 touch conftest.dir/conftest.c
21466 rm -f conftest.lo conftest.c
21467 ${MAKE:-make} -f conftest.make >/dev/null
21468 rm -f conftest.make conftest.c conftest.dir/conftest.c
21469 rm -rf conftest.dir
21470 if test ! -f conftest.lo; then
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21472 $as_echo "no" >&6; }
21473 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
21474 SOURCEFILE='`cat .source`'
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477 $as_echo "yes" >&6; }
21478 SOURCEDETERMINE=':'
21485 # see if we want to build the library or everything
21486 ALLTARGET="alltargets"
21487 INSTALLTARGET="install-all"
21489 # Check whether --with-libunbound-only was given.
21490 if test "${with_libunbound_only+set}" = set; then :
21491 withval=$with_libunbound_only;
21492 if test "$withval" = "yes"; then
21494 INSTALLTARGET="install-lib"
21499 if test $ALLTARGET = "alltargets"; then
21500 if test $USE_NSS = "yes"; then
21501 as_fn_error $? "--with-nss can only be used in combination with --with-libunbound-only." "$LINENO" 5
21503 if test $USE_NETTLE = "yes"; then
21504 as_fn_error $? "--with-nettle can only be used in combination with --with-libunbound-only." "$LINENO" 5
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
21513 $as_echo "$as_me: Stripping extension flags..." >&6;}
21515 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
21516 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
21518 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
21523 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
21524 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
21526 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
21531 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
21532 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
21534 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
21539 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
21540 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
21542 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
21547 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
21548 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
21550 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
21555 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
21556 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
21558 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
21563 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
21564 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
21566 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
21571 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
21572 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
21574 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
21579 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
21580 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
21582 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
21587 if test -n "$LATE_LDFLAGS"; then
21588 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
21590 # remove start spaces
21591 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
21592 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
21595 cat >>confdefs.h <<_ACEOF
21596 #define MAXSYSLOGMSGLEN 10240
21604 date=`date +'%b %e, %Y'`
21607 ac_config_files="$ac_config_files Makefile doc/example.conf doc/libunbound.3 doc/unbound.8 doc/unbound-anchor.8 doc/unbound-checkconf.8 doc/unbound.conf.5 doc/unbound-control.8 doc/unbound-host.1 smallapp/unbound-control-setup.sh dnstap/dnstap_config.h dnscrypt/dnscrypt_config.h contrib/libunbound.pc contrib/unbound.socket contrib/unbound.service contrib/unbound_portable.service"
21609 ac_config_headers="$ac_config_headers config.h"
21611 cat >confcache <<\_ACEOF
21612 # This file is a shell script that caches the results of configure
21613 # tests run on this system so they can be shared between configure
21614 # scripts and configure runs, see configure's option --config-cache.
21615 # It is not useful on other systems. If it contains results you don't
21616 # want to keep, you may remove or edit it.
21618 # config.status only pays attention to the cache file if you give it
21619 # the --recheck option to rerun configure.
21621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21623 # following values.
21627 # The following way of writing the cache mishandles newlines in values,
21628 # but we know of no workaround that is simple, portable, and efficient.
21629 # So, we kill variables containing newlines.
21630 # Ultrix sh set writes to stderr and can't be redirected directly,
21631 # and sets the high bit in the cache file unless we assign to the vars.
21633 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21634 eval ac_val=\$$ac_var
21638 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21639 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21642 _ | IFS | as_nl) ;; #(
21643 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21644 *) { eval $ac_var=; unset $ac_var;} ;;
21650 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21651 *${as_nl}ac_space=\ *)
21652 # `set' does not quote correctly, so add quotes: double-quote
21653 # substitution turns \\\\ into \\, and sed turns \\ into \.
21656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21659 # `set' quotes correctly as required by POSIX, so do not add quotes.
21660 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21669 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21671 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21673 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21674 if test -w "$cache_file"; then
21675 if test "x$cache_file" != "x/dev/null"; then
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21677 $as_echo "$as_me: updating cache $cache_file" >&6;}
21678 if test ! -f "$cache_file" || test -h "$cache_file"; then
21679 cat confcache >"$cache_file"
21681 case $cache_file in #(
21683 mv -f confcache "$cache_file"$$ &&
21684 mv -f "$cache_file"$$ "$cache_file" ;; #(
21686 mv -f confcache "$cache_file" ;;
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21692 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21698 # Let make expand exec_prefix.
21699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21701 DEFS=-DHAVE_CONFIG_H
21706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707 # 1. Remove the extension, and $U if already installed.
21708 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21710 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21711 # will be set to the directory where LIBOBJS objects are built.
21712 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21715 LIBOBJS=$ac_libobjs
21717 LTLIBOBJS=$ac_ltlibobjs
21720 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
21721 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
21722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21725 : "${CONFIG_STATUS=./config.status}"
21727 ac_clean_files_save=$ac_clean_files
21728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21730 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21732 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21734 # Generated by $as_me.
21735 # Run this file to recreate the current configuration.
21736 # Compiler output produced by configure, useful for debugging
21737 # configure, is in config.log if it exists.
21740 ac_cs_recheck=false
21743 SHELL=\${CONFIG_SHELL-$SHELL}
21746 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21747 ## -------------------- ##
21748 ## M4sh Initialization. ##
21749 ## -------------------- ##
21751 # Be more Bourne compatible
21752 DUALCASE=1; export DUALCASE # for MKS sh
21753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21756 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21757 # is contrary to our usage. Disable this feature.
21758 alias -g '${1+"$@"}'='"$@"'
21759 setopt NO_GLOB_SUBST
21761 case `(set -o) 2>/dev/null` in #(
21773 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21774 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21777 # Prefer a ksh shell builtin over an external printf program on Solaris,
21778 # but without wasting forks for bash or zsh.
21779 if test -z "$BASH_VERSION$ZSH_VERSION" \
21780 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21781 as_echo='print -r --'
21782 as_echo_n='print -rn --'
21783 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21784 as_echo='printf %s\n'
21785 as_echo_n='printf %s'
21787 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21788 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21789 as_echo_n='/usr/ucb/echo -n'
21791 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21792 as_echo_n_body='eval
21796 expr "X$arg" : "X\\(.*\\)$as_nl";
21797 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21799 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21801 export as_echo_n_body
21802 as_echo_n='sh -c $as_echo_n_body as_echo'
21804 export as_echo_body
21805 as_echo='sh -c $as_echo_body as_echo'
21808 # The user is always right.
21809 if test "${PATH_SEPARATOR+set}" != set; then
21811 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21812 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21819 # We need space, tab and new line, in precisely that order. Quoting is
21820 # there to prevent editors from complaining about space-tab.
21821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21822 # splitting by setting IFS to empty value.)
21825 # Find who we are. Look in the path if we contain no directory separator.
21828 *[\\/]* ) as_myself=$0 ;;
21829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21830 for as_dir in $PATH
21833 test -z "$as_dir" && as_dir=.
21834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21840 # We did not find ourselves, most probably we were run as `sh COMMAND'
21841 # in which case we are not to be found in the path.
21842 if test "x$as_myself" = x; then
21845 if test ! -f "$as_myself"; then
21846 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21850 # Unset variables that we do not need and which cause bugs (e.g. in
21851 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21852 # suppresses any "Segmentation fault" message there. '((' could
21853 # trigger a bug in pdksh 5.2.14.
21854 for as_var in BASH_ENV ENV MAIL MAILPATH
21855 do eval test x\${$as_var+set} = xset \
21856 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21872 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21873 # ----------------------------------------
21874 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21875 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21876 # script with STATUS, using 1 if that was 0.
21879 as_status=$1; test $as_status -eq 0 && as_status=1
21881 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21882 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21884 $as_echo "$as_me: error: $2" >&2
21885 as_fn_exit $as_status
21889 # as_fn_set_status STATUS
21890 # -----------------------
21891 # Set $? to STATUS, without forking.
21892 as_fn_set_status ()
21895 } # as_fn_set_status
21897 # as_fn_exit STATUS
21898 # -----------------
21899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21903 as_fn_set_status $1
21909 # Portably unset VAR.
21912 { eval $1=; unset $1;}
21914 as_unset=as_fn_unset
21915 # as_fn_append VAR VALUE
21916 # ----------------------
21917 # Append the text in VALUE to the end of the definition contained in VAR. Take
21918 # advantage of any shell optimizations that allow amortized linear growth over
21919 # repeated appends, instead of the typical quadratic growth present in naive
21921 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21922 eval 'as_fn_append ()
21933 # as_fn_arith ARG...
21934 # ------------------
21935 # Perform arithmetic evaluation on the ARGs, and store the result in the
21936 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21937 # must be portable across $(()) and expr.
21938 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21939 eval 'as_fn_arith ()
21946 as_val=`expr "$@" || test $? -eq 1`
21951 if expr a : '\(a\)' >/dev/null 2>&1 &&
21952 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21958 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21959 as_basename=basename
21964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21970 as_me=`$as_basename -- "$0" ||
21971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21972 X"$0" : 'X\(//\)$' \| \
21973 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21975 sed '/^.*\/\([^/][^/]*\)\/*$/{
21989 # Avoid depending upon Character Ranges.
21990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21993 as_cr_digits='0123456789'
21994 as_cr_alnum=$as_cr_Letters$as_cr_digits
21996 ECHO_C= ECHO_N= ECHO_T=
21997 case `echo -n x` in #(((((
21999 case `echo 'xy\c'` in
22000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22002 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22009 rm -f conf$$ conf$$.exe conf$$.file
22010 if test -d conf$$.dir; then
22011 rm -f conf$$.dir/conf$$.file
22014 mkdir conf$$.dir 2>/dev/null
22016 if (echo >conf$$.file) 2>/dev/null; then
22017 if ln -s conf$$.file conf$$ 2>/dev/null; then
22019 # ... but there are two gotchas:
22020 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22021 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22022 # In both cases, we have to default to `cp -pR'.
22023 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22025 elif ln conf$$.file conf$$ 2>/dev/null; then
22033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22034 rmdir conf$$.dir 2>/dev/null
22039 # Create "$as_dir" as a directory, including parents if necessary.
22044 -*) as_dir=./$as_dir;;
22046 test -d "$as_dir" || eval $as_mkdir_p || {
22050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22051 *) as_qdir=$as_dir;;
22053 as_dirs="'$as_qdir' $as_dirs"
22054 as_dir=`$as_dirname -- "$as_dir" ||
22055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22056 X"$as_dir" : 'X\(//\)[^/]' \| \
22057 X"$as_dir" : 'X\(//\)$' \| \
22058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22059 $as_echo X"$as_dir" |
22060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22064 /^X\(\/\/\)[^/].*/{
22077 test -d "$as_dir" && break
22079 test -z "$as_dirs" || eval "mkdir $as_dirs"
22080 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22084 if mkdir -p . 2>/dev/null; then
22085 as_mkdir_p='mkdir -p "$as_dir"'
22087 test -d ./-p && rmdir ./-p
22092 # as_fn_executable_p FILE
22093 # -----------------------
22094 # Test if FILE is an executable regular file.
22095 as_fn_executable_p ()
22097 test -f "$1" && test -x "$1"
22098 } # as_fn_executable_p
22099 as_test_x='test -x'
22100 as_executable_p=as_fn_executable_p
22102 # Sed expression to map a string onto a valid CPP name.
22103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22105 # Sed expression to map a string onto a valid variable name.
22106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22110 ## ----------------------------------- ##
22111 ## Main body of $CONFIG_STATUS script. ##
22112 ## ----------------------------------- ##
22114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22117 # Save the log message, to keep $0 and so on meaningful, and to
22118 # report actual input values of CONFIG_FILES etc. instead of their
22119 # values after options handling.
22121 This file was extended by unbound $as_me 1.10.1, which was
22122 generated by GNU Autoconf 2.69. Invocation command line was
22124 CONFIG_FILES = $CONFIG_FILES
22125 CONFIG_HEADERS = $CONFIG_HEADERS
22126 CONFIG_LINKS = $CONFIG_LINKS
22127 CONFIG_COMMANDS = $CONFIG_COMMANDS
22130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22135 case $ac_config_files in *"
22136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22139 case $ac_config_headers in *"
22140 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22145 # Files that config.status was made for.
22146 config_files="$ac_config_files"
22147 config_headers="$ac_config_headers"
22148 config_commands="$ac_config_commands"
22152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22154 \`$as_me' instantiates files and other configuration actions
22155 from templates according to the current configuration. Unless the files
22156 and actions are specified as TAGs, all are instantiated by default.
22158 Usage: $0 [OPTION]... [TAG]...
22160 -h, --help print this help, then exit
22161 -V, --version print version number and configuration settings, then exit
22162 --config print configuration, then exit
22163 -q, --quiet, --silent
22164 do not print progress messages
22165 -d, --debug don't remove temporary files
22166 --recheck update $as_me by reconfiguring in the same conditions
22167 --file=FILE[:TEMPLATE]
22168 instantiate the configuration file FILE
22169 --header=FILE[:TEMPLATE]
22170 instantiate the configuration header FILE
22172 Configuration files:
22175 Configuration headers:
22178 Configuration commands:
22181 Report bugs to <unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues>."
22184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22185 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22187 unbound config.status 1.10.1
22188 configured by $0, generated by GNU Autoconf 2.69,
22189 with options \\"\$ac_cs_config\\"
22191 Copyright (C) 2012 Free Software Foundation, Inc.
22192 This config.status script is free software; the Free Software Foundation
22193 gives unlimited permission to copy, distribute and modify it."
22198 test -n "\$AWK" || AWK=awk
22201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22202 # The default lists apply if the user does not specify any file.
22208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22225 # Handling of the options.
22226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22229 $as_echo "$ac_cs_version"; exit ;;
22230 --config | --confi | --conf | --con | --co | --c )
22231 $as_echo "$ac_cs_config"; exit ;;
22232 --debug | --debu | --deb | --de | --d | -d )
22234 --file | --fil | --fi | --f )
22237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22238 '') as_fn_error $? "missing file argument" ;;
22240 as_fn_append CONFIG_FILES " '$ac_optarg'"
22241 ac_need_defaults=false;;
22242 --header | --heade | --head | --hea )
22245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22247 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22248 ac_need_defaults=false;;
22250 # Conflict between --help and --header
22251 as_fn_error $? "ambiguous option: \`$1'
22252 Try \`$0 --help' for more information.";;
22253 --help | --hel | -h )
22254 $as_echo "$ac_cs_usage"; exit ;;
22255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22256 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22259 # This is an error.
22260 -*) as_fn_error $? "unrecognized option: \`$1'
22261 Try \`$0 --help' for more information." ;;
22263 *) as_fn_append ac_config_targets " $1"
22264 ac_need_defaults=false ;;
22270 ac_configure_extra_args=
22272 if $ac_cs_silent; then
22274 ac_configure_extra_args="$ac_configure_extra_args --silent"
22278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22279 if \$ac_cs_recheck; then
22280 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22282 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22283 CONFIG_SHELL='$SHELL'
22284 export CONFIG_SHELL
22289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22293 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22294 ## Running $as_me. ##
22300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22306 # The HP-UX ksh and POSIX shell print the target directory to stdout
22307 # if CDPATH is set.
22308 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22310 sed_quote_subst='$sed_quote_subst'
22311 double_quote_subst='$double_quote_subst'
22312 delay_variable_subst='$delay_variable_subst'
22313 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22314 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22315 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22316 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22317 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22318 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22319 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22320 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22321 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22322 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22323 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22324 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22325 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22326 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22327 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22328 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22329 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22330 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22331 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22332 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22333 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22334 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22335 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22336 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22337 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22338 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22339 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22340 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22341 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22342 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22343 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22344 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22345 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22346 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22347 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22348 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22349 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22350 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22351 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22352 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22353 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22354 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22355 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22356 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22357 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22358 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22359 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22360 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22361 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22362 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22363 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22364 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22365 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22366 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22367 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22368 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22369 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22370 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22371 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"`'
22372 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22373 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22374 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22375 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22384 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22421 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22440 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22441 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22442 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22443 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22444 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22445 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22446 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22447 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22450 LTCFLAGS='$LTCFLAGS'
22451 compiler='$compiler_DEFAULT'
22453 # A function that is used when there is no print builtin or printf.
22454 func_fallback_echo ()
22456 eval 'cat <<_LTECHO_EOF
22461 # Quote evaled strings.
22476 deplibs_check_method \
22481 sharedlib_from_linklib_cmd \
22484 archiver_list_spec \
22490 lt_cv_sys_global_symbol_pipe \
22491 lt_cv_sys_global_symbol_to_cdecl \
22492 lt_cv_sys_global_symbol_to_import \
22493 lt_cv_sys_global_symbol_to_c_name_address \
22494 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22495 lt_cv_nm_interface \
22496 nm_file_list_spec \
22497 lt_cv_truncate_bin \
22498 lt_prog_compiler_no_builtin_flag \
22499 lt_prog_compiler_pic \
22500 lt_prog_compiler_wl \
22501 lt_prog_compiler_static \
22502 lt_cv_prog_compiler_c_o \
22511 export_dynamic_flag_spec \
22512 whole_archive_flag_spec \
22513 compiler_needs_object \
22515 allow_undefined_flag \
22516 no_undefined_flag \
22517 hardcode_libdir_flag_spec \
22518 hardcode_libdir_separator \
22522 variables_saved_for_relink \
22524 library_names_spec \
22526 install_override_mode \
22530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22531 *[\\\\\\\`\\"\\\$]*)
22532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22540 # Double-quote double-evaled strings.
22541 for var in reload_cmds \
22542 old_postinstall_cmds \
22543 old_postuninstall_cmds \
22545 extract_expsyms_cmds \
22546 old_archive_from_new_cmds \
22547 old_archive_from_expsyms_cmds \
22549 archive_expsym_cmds \
22551 module_expsym_cmds \
22552 export_symbols_cmds \
22556 postuninstall_cmds \
22558 sys_lib_search_path_spec \
22559 configure_time_dlsearch_path \
22560 configure_time_lt_sys_library_path; do
22561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22562 *[\\\\\\\`\\"\\\$]*)
22563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22571 ac_aux_dir='$ac_aux_dir'
22573 # See if we are running on zsh, and set the options that allow our
22574 # commands through without removal of \ escapes INIT.
22575 if test -n "\${ZSH_VERSION+set}"; then
22576 setopt NO_GLOB_SUBST
22590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22592 # Handling of arguments.
22593 for ac_config_target in $ac_config_targets
22595 case $ac_config_target in
22596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22597 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
22598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22599 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
22600 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
22601 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
22602 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
22603 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
22604 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
22605 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
22606 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
22607 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
22608 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
22609 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
22610 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
22611 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
22612 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
22613 "contrib/unbound_portable.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound_portable.service" ;;
22614 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22616 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22621 # If the user did not use the arguments to specify the items to instantiate,
22622 # then the envvar interface is used. Set only those that are not.
22623 # We use the long form for the default assignment because of an extremely
22624 # bizarre bug on SunOS 4.1.3.
22625 if $ac_need_defaults; then
22626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22631 # Have a temporary directory for convenience. Make it in the build tree
22632 # simply because there is no reason against having it here, and in addition,
22633 # creating and moving files from /tmp can sometimes cause problems.
22634 # Hook for its removal unless debugging.
22635 # Note that there is a small window in which the directory will not be cleaned:
22636 # after its creation but before its name has been assigned to `$tmp'.
22640 trap 'exit_status=$?
22641 : "${ac_tmp:=$tmp}"
22642 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22644 trap 'as_fn_exit 1' 1 2 13 15
22646 # Create a (secure) tmp directory for tmp files.
22649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22653 tmp=./conf$$-$RANDOM
22654 (umask 077 && mkdir "$tmp")
22655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22658 # Set up the scripts for CONFIG_FILES section.
22659 # No need to generate them if there are no CONFIG_FILES.
22660 # This happens for instance with `./config.status config.h'.
22661 if test -n "$CONFIG_FILES"; then
22664 ac_cr=`echo X | tr X '\015'`
22665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22666 # But we know of no other shell where ac_cr would be empty at this
22667 # point, so we can use a bashism as a fallback.
22668 if test "x$ac_cr" = x; then
22669 eval ac_cr=\$\'\\r\'
22671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22675 ac_cs_awk_cr=$ac_cr
22678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22683 echo "cat >conf$$subs.awk <<_ACEOF" &&
22684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22686 } >conf$$subs.sh ||
22687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22690 for ac_last_try in false false false false false :; do
22691 . ./conf$$subs.sh ||
22692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22695 if test $ac_delim_n = $ac_delim_num; then
22697 elif $ac_last_try; then
22698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22703 rm -f conf$$subs.sh
22705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22710 s/^/S["/; s/!.*/"]=/
22720 s/\(.\{148\}\)..*/\1/
22722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22734 s/\(.\{148\}\)..*/\1/
22736 s/["\\]/\\&/g; s/^/"/; s/$/"/
22740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22745 ' <conf$$subs.awk | sed '
22750 ' >>$CONFIG_STATUS || ac_write_fail=1
22751 rm -f conf$$subs.awk
22752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22755 for (key in S) S_is_set[key] = 1
22761 nfields = split(line, field, "@")
22763 len = length(field[1])
22764 for (i = 2; i < nfields; i++) {
22766 keylen = length(key)
22767 if (S_is_set[key]) {
22769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22770 len += length(value) + length(field[++i])
22781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22787 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22792 # trailing colons and then remove the whole line if VPATH becomes empty
22793 # (actually we leave an empty line to preserve line numbers).
22794 if test "x$srcdir" = x.; then
22795 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22814 fi # test -n "$CONFIG_FILES"
22816 # Set up the scripts for CONFIG_HEADERS section.
22817 # No need to generate them if there are no CONFIG_HEADERS.
22818 # This happens for instance with `./config.status Makefile'.
22819 if test -n "$CONFIG_HEADERS"; then
22820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22824 # Transform confdefs.h into an awk script `defines.awk', embedded as
22825 # here-document in config.status, that substitutes the proper values into
22826 # config.h.in to produce config.h.
22828 # Create a delimiter string that does not exist in confdefs.h, to ease
22829 # handling of long lines.
22831 for ac_last_try in false false :; do
22832 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22833 if test -z "$ac_tt"; then
22835 elif $ac_last_try; then
22836 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22842 # For the awk script, D is an array of macro values keyed by name,
22843 # likewise P contains macro parameters if any. Preserve backslash
22844 # newline sequences.
22846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22848 s/.\{148\}/&'"$ac_delim"'/g
22851 s/^[ ]*#[ ]*define[ ][ ]*/ /
22858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22865 D["\1"]=" \3\\\\\\n"\\/p
22867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22872 s/.\{148\}/&'"$ac_delim"'/g
22877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22882 ' <confdefs.h | sed '
22883 s/'"$ac_delim"'/"\\\
22884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22887 for (key in D) D_is_set[key] = 1
22890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22892 split(line, arg, " ")
22893 if (arg[1] == "#") {
22897 defundef = substr(arg[1], 2)
22900 split(mac1, mac2, "(") #)
22902 prefix = substr(line, 1, index(line, defundef) - 1)
22903 if (D_is_set[macro]) {
22904 # Preserve the white space surrounding the "#".
22905 print prefix "define", macro P[macro] D[macro]
22908 # Replace #undef with comments. This is necessary, for example,
22909 # in the case of _POSIX_SOURCE, which is predefined and required
22910 # on some systems where configure will not decide to define it.
22911 if (defundef == "undef") {
22912 print "/*", prefix defundef, macro, "*/"
22920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22921 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22922 fi # test -n "$CONFIG_HEADERS"
22925 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22930 :[FHLC]) ac_mode=$ac_tag; continue;;
22932 case $ac_mode$ac_tag in
22934 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22935 :[FH]-) ac_tag=-:-;;
22936 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22953 -) ac_f="$ac_tmp/stdin";;
22954 *) # Look for the file first in the build tree, then in the source tree
22955 # (if the path is not absolute). The absolute path cannot be DOS-style,
22956 # because $ac_f cannot contain `:'.
22960 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22962 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22964 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22965 as_fn_append ac_file_inputs " '$ac_f'"
22968 # Let's still pretend it is `configure' which instantiates (i.e., don't
22969 # use $as_me), people would be surprised to read:
22970 # /* config.h. Generated by config.status. */
22971 configure_input='Generated from '`
22972 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22974 if test x"$ac_file" != x-; then
22975 configure_input="$ac_file. $configure_input"
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22977 $as_echo "$as_me: creating $ac_file" >&6;}
22979 # Neutralize special characters interpreted by sed in replacement strings.
22980 case $configure_input in #(
22981 *\&* | *\|* | *\\* )
22982 ac_sed_conf_input=`$as_echo "$configure_input" |
22983 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22984 *) ac_sed_conf_input=$configure_input;;
22988 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22994 ac_dir=`$as_dirname -- "$ac_file" ||
22995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996 X"$ac_file" : 'X\(//\)[^/]' \| \
22997 X"$ac_file" : 'X\(//\)$' \| \
22998 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22999 $as_echo X"$ac_file" |
23000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23004 /^X\(\/\/\)[^/].*/{
23017 as_dir="$ac_dir"; as_fn_mkdir_p
23021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23024 # A ".." for each directory in $ac_dir_suffix.
23025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23026 case $ac_top_builddir_sub in
23027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23031 ac_abs_top_builddir=$ac_pwd
23032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23033 # for backward compatibility:
23034 ac_top_builddir=$ac_top_build_prefix
23037 .) # We are building in place.
23039 ac_top_srcdir=$ac_top_builddir_sub
23040 ac_abs_top_srcdir=$ac_pwd ;;
23041 [\\/]* | ?:[\\/]* ) # Absolute name.
23042 ac_srcdir=$srcdir$ac_dir_suffix;
23043 ac_top_srcdir=$srcdir
23044 ac_abs_top_srcdir=$srcdir ;;
23045 *) # Relative name.
23046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23047 ac_top_srcdir=$ac_top_build_prefix$srcdir
23048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23062 # If the template does not know about datarootdir, expand it.
23063 # FIXME: This hack should be removed a few years after 2.60.
23064 ac_datarootdir_hack=; ac_datarootdir_seen=
23075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23076 *datarootdir*) ac_datarootdir_seen=yes;;
23077 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23082 ac_datarootdir_hack='
23083 s&@datadir@&$datadir&g
23084 s&@docdir@&$docdir&g
23085 s&@infodir@&$infodir&g
23086 s&@localedir@&$localedir&g
23087 s&@mandir@&$mandir&g
23088 s&\\\${datarootdir}&$datarootdir&g' ;;
23092 # Neutralize VPATH when `$srcdir' = `.'.
23093 # Shell code in configure.ac might set extrasub.
23094 # FIXME: do we really want to maintain this feature?
23095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23096 ac_sed_extra="$ac_vpsub
23099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23102 s|@configure_input@|$ac_sed_conf_input|;t t
23103 s&@top_builddir@&$ac_top_builddir_sub&;t t
23104 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23105 s&@srcdir@&$ac_srcdir&;t t
23106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23107 s&@top_srcdir@&$ac_top_srcdir&;t t
23108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23109 s&@builddir@&$ac_builddir&;t t
23110 s&@abs_builddir@&$ac_abs_builddir&;t t
23111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23112 $ac_datarootdir_hack
23114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23115 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23120 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23122 which seems to be undefined. Please make sure it is defined" >&5
23123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23124 which seems to be undefined. Please make sure it is defined" >&2;}
23126 rm -f "$ac_tmp/stdin"
23128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23137 if test x"$ac_file" != x-; then
23139 $as_echo "/* $configure_input */" \
23140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23141 } >"$ac_tmp/config.h" \
23142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23143 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23145 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23148 mv "$ac_tmp/config.h" "$ac_file" \
23149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23152 $as_echo "/* $configure_input */" \
23153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23154 || as_fn_error $? "could not create -" "$LINENO" 5
23158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23159 $as_echo "$as_me: executing $ac_file commands" >&6;}
23164 case $ac_file$ac_mode in
23167 # See if we are running on zsh, and set the options that allow our
23168 # commands through without removal of \ escapes.
23169 if test -n "${ZSH_VERSION+set}"; then
23170 setopt NO_GLOB_SUBST
23174 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23177 cat <<_LT_EOF >> "$cfgfile"
23179 # Generated automatically by $as_me ($PACKAGE) $VERSION
23180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23181 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23183 # Provide generalized library-building support services.
23184 # Written by Gordon Matzigkeit, 1996
23186 # Copyright (C) 2014 Free Software Foundation, Inc.
23187 # This is free software; see the source for copying conditions. There is NO
23188 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23190 # GNU Libtool is free software; you can redistribute it and/or modify
23191 # it under the terms of the GNU General Public License as published by
23192 # the Free Software Foundation; either version 2 of of the License, or
23193 # (at your option) any later version.
23195 # As a special exception to the GNU General Public License, if you
23196 # distribute this file as part of a program or library that is built
23197 # using GNU Libtool, you may include this file under the same
23198 # distribution terms that you use for the rest of that program.
23200 # GNU Libtool is distributed in the hope that it will be useful, but
23201 # WITHOUT ANY WARRANTY; without even the implied warranty of
23202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23203 # GNU General Public License for more details.
23205 # You should have received a copy of the GNU General Public License
23206 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23209 # The names of the tagged configurations supported by this script.
23212 # Configured defaults for sys_lib_dlsearch_path munging.
23213 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23215 # ### BEGIN LIBTOOL CONFIG
23217 # Which release of libtool.m4 was used?
23218 macro_version=$macro_version
23219 macro_revision=$macro_revision
23221 # Whether or not to build shared libraries.
23222 build_libtool_libs=$enable_shared
23224 # Whether or not to build static libraries.
23225 build_old_libs=$enable_static
23227 # What type of objects to build.
23230 # Whether or not to optimize for fast installation.
23231 fast_install=$enable_fast_install
23233 # Shared archive member basename,for filename based shared library versioning on AIX.
23234 shared_archive_member_spec=$shared_archive_member_spec
23236 # Shell to use when invoking shell scripts.
23239 # An echo program that protects backslashes.
23242 # The PATH separator for the build system.
23243 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23246 host_alias=$host_alias
23250 # The build system.
23251 build_alias=$build_alias
23255 # A sed program that does not truncate output.
23258 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23259 Xsed="\$SED -e 1s/^X//"
23261 # A grep program that handles long lines.
23267 # A literal string matcher.
23270 # A BSD- or MS-compatible name lister.
23273 # Whether we need soft or hard links.
23276 # What is the maximum length of a command?
23277 max_cmd_len=$max_cmd_len
23279 # Object file suffix (normally "o").
23282 # Executable file suffix (normally "").
23285 # whether the shell understands "unset".
23288 # turn spaces into newlines.
23291 # turn newlines into spaces.
23294 # convert \$build file names to \$host format.
23295 to_host_file_cmd=$lt_cv_to_host_file_cmd
23297 # convert \$build files to toolchain format.
23298 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23300 # An object symbol dumper.
23301 OBJDUMP=$lt_OBJDUMP
23303 # Method to check whether dependent libraries are shared objects.
23304 deplibs_check_method=$lt_deplibs_check_method
23306 # Command to use when deplibs_check_method = "file_magic".
23307 file_magic_cmd=$lt_file_magic_cmd
23309 # How to find potential files when deplibs_check_method = "file_magic".
23310 file_magic_glob=$lt_file_magic_glob
23312 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23313 want_nocaseglob=$lt_want_nocaseglob
23315 # DLL creation program.
23316 DLLTOOL=$lt_DLLTOOL
23318 # Command to associate shared and link libraries.
23319 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23324 # Flags to create an archive.
23325 AR_FLAGS=$lt_AR_FLAGS
23327 # How to feed a file listing to the archiver.
23328 archiver_list_spec=$lt_archiver_list_spec
23330 # A symbol stripping program.
23333 # Commands used to install an old-style archive.
23335 old_postinstall_cmds=$lt_old_postinstall_cmds
23336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23338 # Whether to use a lock for old archive extraction.
23339 lock_old_archive_extraction=$lock_old_archive_extraction
23344 # LTCC compiler flags.
23345 LTCFLAGS=$lt_CFLAGS
23347 # Take the output of nm and produce a listing of raw symbols and C names.
23348 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23350 # Transform the output of nm in a proper C declaration.
23351 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23353 # Transform the output of nm into a list of symbols to manually relocate.
23354 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23356 # Transform the output of nm in a C name address pair.
23357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23359 # Transform the output of nm in a C name address pair when lib prefix is needed.
23360 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23362 # The name lister interface.
23363 nm_interface=$lt_lt_cv_nm_interface
23365 # Specify filename containing input files for \$NM.
23366 nm_file_list_spec=$lt_nm_file_list_spec
23368 # The root where to search for dependent libraries,and where our libraries should be installed.
23369 lt_sysroot=$lt_sysroot
23371 # Command to truncate a binary pipe.
23372 lt_truncate_bin=$lt_lt_cv_truncate_bin
23374 # The name of the directory that contains temporary libtool files.
23377 # Used to examine libraries when file_magic_cmd begins with "file".
23378 MAGIC_CMD=$MAGIC_CMD
23380 # Must we lock files when doing compilation?
23381 need_locks=$lt_need_locks
23384 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23386 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23387 DSYMUTIL=$lt_DSYMUTIL
23389 # Tool to change global to local symbols on Mac OS X.
23392 # Tool to manipulate fat objects and archives on Mac OS X.
23395 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23398 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23399 OTOOL64=$lt_OTOOL64
23401 # Old archive suffix (normally "a").
23404 # Shared library suffix (normally ".so").
23405 shrext_cmds=$lt_shrext_cmds
23407 # The commands to extract the exported symbol list from a shared archive.
23408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23410 # Variables whose values should be saved in libtool wrapper scripts and
23411 # restored at link time.
23412 variables_saved_for_relink=$lt_variables_saved_for_relink
23414 # Do we need the "lib" prefix for modules?
23415 need_lib_prefix=$need_lib_prefix
23417 # Do we need a version for libraries?
23418 need_version=$need_version
23420 # Library versioning type.
23421 version_type=$version_type
23423 # Shared library runtime path variable.
23424 runpath_var=$runpath_var
23426 # Shared library path variable.
23427 shlibpath_var=$shlibpath_var
23429 # Is shlibpath searched before the hard-coded library search path?
23430 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23432 # Format of library name prefix.
23433 libname_spec=$lt_libname_spec
23435 # List of archive names. First name is the real one, the rest are links.
23436 # The last name is the one that the linker finds with -lNAME
23437 library_names_spec=$lt_library_names_spec
23439 # The coded name of the library, if different from the real name.
23440 soname_spec=$lt_soname_spec
23442 # Permission mode override for installation of shared libraries.
23443 install_override_mode=$lt_install_override_mode
23445 # Command to use after installation of a shared archive.
23446 postinstall_cmds=$lt_postinstall_cmds
23448 # Command to use after uninstallation of a shared archive.
23449 postuninstall_cmds=$lt_postuninstall_cmds
23451 # Commands used to finish a libtool library installation in a directory.
23452 finish_cmds=$lt_finish_cmds
23454 # As "finish_cmds", except a single script fragment to be evaled but
23456 finish_eval=$lt_finish_eval
23458 # Whether we should hardcode library paths into libraries.
23459 hardcode_into_libs=$hardcode_into_libs
23461 # Compile-time system search path for libraries.
23462 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23464 # Detected run-time system search path for libraries.
23465 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23467 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23468 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23470 # Whether dlopen is supported.
23471 dlopen_support=$enable_dlopen
23473 # Whether dlopen of programs is supported.
23474 dlopen_self=$enable_dlopen_self
23476 # Whether dlopen of statically linked programs is supported.
23477 dlopen_self_static=$enable_dlopen_self_static
23479 # Commands to strip libraries.
23480 old_striplib=$lt_old_striplib
23481 striplib=$lt_striplib
23484 # The linker used to build libraries.
23487 # How to create reloadable object files.
23488 reload_flag=$lt_reload_flag
23489 reload_cmds=$lt_reload_cmds
23491 # Commands used to build an old-style archive.
23492 old_archive_cmds=$lt_old_archive_cmds
23494 # A language specific compiler.
23497 # Is the compiler the GNU compiler?
23500 # Compiler flag to turn off builtin functions.
23501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23503 # Additional compiler flags for building library objects.
23504 pic_flag=$lt_lt_prog_compiler_pic
23506 # How to pass a linker flag through the compiler.
23507 wl=$lt_lt_prog_compiler_wl
23509 # Compiler flag to prevent dynamic linking.
23510 link_static_flag=$lt_lt_prog_compiler_static
23512 # Does compiler simultaneously support -c and -o options?
23513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23515 # Whether or not to add -lc for building shared libraries.
23516 build_libtool_need_lc=$archive_cmds_need_lc
23518 # Whether or not to disallow shared libs when runtime libs are static.
23519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23521 # Compiler flag to allow reflexive dlopens.
23522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23524 # Compiler flag to generate shared objects directly from archives.
23525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23527 # Whether the compiler copes with passing no objects directly.
23528 compiler_needs_object=$lt_compiler_needs_object
23530 # Create an old-style archive from a shared archive.
23531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23533 # Create a temporary old-style archive to link instead of a shared archive.
23534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23536 # Commands used to build a shared archive.
23537 archive_cmds=$lt_archive_cmds
23538 archive_expsym_cmds=$lt_archive_expsym_cmds
23540 # Commands used to build a loadable module if different from building
23541 # a shared archive.
23542 module_cmds=$lt_module_cmds
23543 module_expsym_cmds=$lt_module_expsym_cmds
23545 # Whether we are building with GNU ld or not.
23546 with_gnu_ld=$lt_with_gnu_ld
23548 # Flag that allows shared libraries with undefined symbols to be built.
23549 allow_undefined_flag=$lt_allow_undefined_flag
23551 # Flag that enforces no undefined symbols.
23552 no_undefined_flag=$lt_no_undefined_flag
23554 # Flag to hardcode \$libdir into a binary during linking.
23555 # This must work even if \$libdir does not exist
23556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23558 # Whether we need a single "-rpath" flag with a separated argument.
23559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23561 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23562 # DIR into the resulting binary.
23563 hardcode_direct=$hardcode_direct
23565 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23566 # DIR into the resulting binary and the resulting library dependency is
23567 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23568 # library is relocated.
23569 hardcode_direct_absolute=$hardcode_direct_absolute
23571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23572 # into the resulting binary.
23573 hardcode_minus_L=$hardcode_minus_L
23575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23576 # into the resulting binary.
23577 hardcode_shlibpath_var=$hardcode_shlibpath_var
23579 # Set to "yes" if building a shared library automatically hardcodes DIR
23580 # into the library and all subsequent libraries and executables linked
23582 hardcode_automatic=$hardcode_automatic
23584 # Set to yes if linker adds runtime paths of dependent libraries
23585 # to runtime path list.
23586 inherit_rpath=$inherit_rpath
23588 # Whether libtool must link a program against all its dependency libraries.
23589 link_all_deplibs=$link_all_deplibs
23591 # Set to "yes" if exported symbols are required.
23592 always_export_symbols=$always_export_symbols
23594 # The commands to list exported symbols.
23595 export_symbols_cmds=$lt_export_symbols_cmds
23597 # Symbols that should not be listed in the preloaded symbols.
23598 exclude_expsyms=$lt_exclude_expsyms
23600 # Symbols that must always be exported.
23601 include_expsyms=$lt_include_expsyms
23603 # Commands necessary for linking programs (against libraries) with templates.
23604 prelink_cmds=$lt_prelink_cmds
23606 # Commands necessary for finishing linking programs.
23607 postlink_cmds=$lt_postlink_cmds
23609 # Specify filename containing input files.
23610 file_list_spec=$lt_file_list_spec
23612 # How to hardcode a shared library path into an executable.
23613 hardcode_action=$hardcode_action
23615 # ### END LIBTOOL CONFIG
23619 cat <<'_LT_EOF' >> "$cfgfile"
23621 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23623 # func_munge_path_list VARIABLE PATH
23624 # -----------------------------------
23625 # VARIABLE is name of variable containing _space_ separated list of
23626 # directories to be munged by the contents of PATH, which is string
23629 # string "DIR[ DIR]" will be prepended to VARIABLE
23631 # string "DIR[ DIR]" will be appended to VARIABLE
23632 # "DIRP[:DIRP]::[DIRA:]DIRA"
23633 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23634 # "DIRA[ DIRA]" will be appended to VARIABLE
23636 # VARIABLE will be replaced by "DIR[ DIR]"
23637 func_munge_path_list ()
23643 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23646 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23649 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23650 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23653 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23659 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23660 func_cc_basename ()
23662 for cc_temp in $*""; do
23664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23670 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23674 # ### END FUNCTIONS SHARED WITH CONFIGURE
23680 cat <<\_LT_EOF >> "$cfgfile"
23681 # AIX sometimes has problems with the GCC collect2 program. For some
23682 # reason, if we set the COLLECT_NAMES environment variable, the problems
23683 # vanish in a puff of smoke.
23684 if test set != "${COLLECT_NAMES+set}"; then
23686 export COLLECT_NAMES
23693 ltmain=$ac_aux_dir/ltmain.sh
23696 # We use sed instead of cat because bash on DJGPP gets confused if
23697 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23698 # text mode, it properly converts lines to CR/LF. This bash problem
23699 # is reportedly fixed, but why not run on old versions too?
23700 sed '$q' "$ltmain" >> "$cfgfile" \
23701 || (rm -f "$cfgfile"; exit 1)
23703 mv -f "$cfgfile" "$ofile" ||
23704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23709 sed < libtool > libtool-2 \
23710 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
23711 mv libtool-2 libtool
23713 libtool="./libtool"
23722 ac_clean_files=$ac_clean_files_save
23724 test $ac_write_fail = 0 ||
23725 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23728 # configure is writing to config.log, and then calls config.status.
23729 # config.status does its own redirection, appending to config.log.
23730 # Unfortunately, on DOS this fails, as config.log is still kept open
23731 # by configure, so config.status won't be able to write to it; its
23732 # output is simply discarded. So we exec the FD to /dev/null,
23733 # effectively closing config.log, so it can be properly (re)opened and
23734 # appended to by config.status. When coming back to configure, we
23735 # need to make the FD available again.
23736 if test "$no_create" != yes; then
23738 ac_config_status_args=
23739 test "$silent" = yes &&
23740 ac_config_status_args="$ac_config_status_args --quiet"
23742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23745 # would make configure fail if this is the last instruction.
23746 $ac_cs_success || as_fn_exit 1
23748 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23750 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}