2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.6.6.
5 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
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 about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='unbound'
592 PACKAGE_TARNAME='unbound'
593 PACKAGE_VERSION='1.6.6'
594 PACKAGE_STRING='unbound 1.6.6'
595 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='LTLIBOBJS
646 ENABLE_DNSCRYPT_XCHACHA20
649 opt_dnstap_socket_path
654 COMMON_OBJ_ALL_SYMBOLS
656 LIBOBJ_WITHOUT_CTIMEARC4
657 WIN_CHECKCONF_OBJ_LINK
659 WIN_UBANCHOR_OBJ_LINK
670 SYSTEMD_DAEMON_CFLAGS
677 PC_LIBEVENT_DEPENDENCY
678 UNBOUND_EVENT_UNINSTALL
679 UNBOUND_EVENT_INSTALL
753 UNBOUND_ROOTCERT_FILE
761 UNBOUND_LOCALSTATE_DIR
777 UNBOUND_VERSION_MICRO
778 UNBOUND_VERSION_MINOR
779 UNBOUND_VERSION_MAJOR
807 program_transform_name
820 enable_option_checking
846 enable_alloc_nonregional
871 with_dnstap_socket_path
880 ac_precious_vars='build_alias
898 SYSTEMD_DAEMON_CFLAGS
902 # Initialize some variables set by options.
904 ac_init_version=false
905 ac_unrecognized_opts=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name=s,x,x,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=no ;;
1021 -docdir | --docdir | --docdi | --doc | --do)
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1209 -site=* | --site=* | --sit=*)
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1249 eval with_$ac_useropt=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363 test "$silent" = yes && exec 6>/dev/null
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $? "pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures unbound 1.6.6 to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of unbound 1.6.6:";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-checking Enable warnings, asserts, makefile-dependencies
1514 --enable-debug same as enable-checking
1515 --disable-flto Disable link-time optimization (gcc specific option)
1516 --enable-pie Enable Position-Independent Executable (eg. to fully
1517 benefit from ASLR, small performance penalty)
1518 --enable-relro-now Enable full relocation binding at load-time (RELRO
1519 NOW, to protect GOT and .dtor areas)
1520 --enable-shared[=PKGS] build shared libraries [default=yes]
1521 --enable-static[=PKGS] build static libraries [default=yes]
1522 --enable-fast-install[=PKGS]
1523 optimize for fast installation [default=yes]
1524 --disable-libtool-lock avoid locking (might break parallel builds)
1525 --disable-rpath disable hardcoded rpath (default=enabled)
1526 --disable-largefile omit support for large files
1527 --enable-alloc-checks enable to memory allocation statistics, for debug
1529 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1531 --enable-alloc-nonregional
1532 enable nonregional allocs, slow but exposes regional
1533 allocations to other memory purifiers, for debug
1535 --disable-sha1 Disable SHA1 RRSIG support, does not disable nsec3
1537 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1538 --enable-subnet Enable client subnet
1539 --disable-gost Disable GOST support
1540 --disable-ecdsa Disable ECDSA support
1541 --disable-dsa Disable DSA support
1542 --disable-ed25519 Disable ED25519 support
1543 --enable-event-api Enable (experimental) pluggable event base
1544 libunbound API installed to unbound-event.h
1545 --enable-tfo-client Enable TCP Fast Open for client mode
1546 --enable-tfo-server Enable TCP Fast Open for server mode
1547 --enable-static-exe enable to compile executables statically against
1548 (event) libs, for debug purposes
1549 --enable-systemd compile with systemd support
1550 --enable-lock-checks enable to check lock and unlock calls, for debug
1552 --enable-allsymbols export all symbols from libunbound and link binaries
1553 to it, smaller install size but libunbound export
1554 table is polluted by internal symbols
1555 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1556 --enable-dnscrypt Enable dnscrypt support (requires libsodium)
1557 --enable-cachedb enable cachedb module that can use external cache
1559 --enable-ipsecmod Enable ipsecmod module that facilitates
1563 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1564 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1565 --with-conf-file=path Pathname to the Unbound configuration file
1566 --with-run-dir=path set default directory to chdir to (by default dir
1568 --with-chroot-dir=path set default directory to chroot to (by default same
1570 --with-share-dir=path set default directory with shared data (by default
1571 same as share/unbound)
1572 --with-pidfile=filename set default pathname to unbound pidfile (default
1573 run-dir/unbound.pid)
1574 --with-rootkey-file=filename
1575 set default pathname to root key file (default
1576 run-dir/root.key). This file is read and written.
1577 --with-rootcert-file=filename
1578 set default pathname to root update certificate file
1579 (default run-dir/icannbundle.pem). This file need
1580 not exist if you are content with the builtin.
1581 --with-username=user set default user that unbound changes to (default
1583 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1585 --with-aix-soname=aix|svr4|both
1586 shared library versioning (aka "SONAME") variant to
1587 provide on AIX, [default=aix].
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1590 compiler's sysroot if not specified).
1591 --with-pthreads use pthreads library, or --without-pthreads to
1592 disable threading support.
1593 --with-solaris-threads use solaris native thread library.
1594 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1596 --with-pythonmodule build Python module, or --without-pythonmodule to
1597 disable script engine. (default=no)
1598 --with-nss=path use libnss instead of openssl, installed at path.
1599 --with-nettle=path use libnettle as crypto library, installed at path.
1600 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1601 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1603 --with-libevent=pathname
1604 use libevent (will check /usr/local /opt/local
1605 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1606 an explicit path). Slower, but allows use of large
1607 outgoing port ranges.
1608 --with-libexpat=path specify explicit path for libexpat.
1609 --with-dnstap-socket-path=pathname
1610 set default dnstap socket path
1611 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1612 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1613 --with-libsodium=path Path where libsodium is installed, for dnscrypt
1614 --with-libunbound-only do not build daemon and tool programs
1616 Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
1621 LIBS libraries to pass to the linker, e.g. -l<library>
1622 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
1625 YACC The `Yet Another Compiler Compiler' implementation to use.
1626 Defaults to the first program found out of: `bison -y', `byacc',
1628 YFLAGS The list of arguments that will be passed by default to $YACC.
1629 This script will default YFLAGS to the empty string to avoid a
1630 default value of `-d' given by some make applications.
1632 User-defined run-time library search path.
1634 The installed Python version to use, for example '2.3'. This
1635 string will be appended to the Python interpreter canonical
1637 PKG_CONFIG path to pkg-config utility
1639 directories to add to pkg-config's search path
1641 path overriding pkg-config's built-in search path
1643 C compiler flags for SYSTEMD, overriding pkg-config
1645 linker flags for SYSTEMD, overriding pkg-config
1646 SYSTEMD_DAEMON_CFLAGS
1647 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
1649 linker flags for SYSTEMD_DAEMON, overriding pkg-config
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1654 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1659 if test "$ac_init_help" = "recursive"; then
1660 # If there are subdirs, report their specific --help.
1661 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1662 test -d "$ac_dir" ||
1663 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1671 # A ".." for each directory in $ac_dir_suffix.
1672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1673 case $ac_top_builddir_sub in
1674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 ac_abs_top_builddir=$ac_pwd
1679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1680 # for backward compatibility:
1681 ac_top_builddir=$ac_top_build_prefix
1684 .) # We are building in place.
1686 ac_top_srcdir=$ac_top_builddir_sub
1687 ac_abs_top_srcdir=$ac_pwd ;;
1688 [\\/]* | ?:[\\/]* ) # Absolute name.
1689 ac_srcdir=$srcdir$ac_dir_suffix;
1690 ac_top_srcdir=$srcdir
1691 ac_abs_top_srcdir=$srcdir ;;
1693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1694 ac_top_srcdir=$ac_top_build_prefix$srcdir
1695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699 cd "$ac_dir" || { ac_status=$?; continue; }
1700 # Check for guested configure.
1701 if test -f "$ac_srcdir/configure.gnu"; then
1703 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1704 elif test -f "$ac_srcdir/configure"; then
1706 $SHELL "$ac_srcdir/configure" --help=recursive
1708 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 cd "$ac_pwd" || { ac_status=$?; break; }
1714 test -n "$ac_init_help" && exit $ac_status
1715 if $ac_init_version; then
1717 unbound configure 1.6.6
1718 generated by GNU Autoconf 2.69
1720 Copyright (C) 2012 Free Software Foundation, Inc.
1721 This configure script is free software; the Free Software Foundation
1722 gives unlimited permission to copy, distribute and modify it.
1727 ## ------------------------ ##
1728 ## Autoconf initialization. ##
1729 ## ------------------------ ##
1731 # ac_fn_c_try_compile LINENO
1732 # --------------------------
1733 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_compile ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext
1738 if { { ac_try="$ac_compile"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_compile") 2>conftest.err
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest.$ac_objext; then :
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_compile
1769 # ac_fn_c_try_cpp LINENO
1770 # ----------------------
1771 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_cpp conftest.$ac_ext"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } > conftest.i && {
1791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1811 ac_fn_c_check_header_mongrel ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if eval \${$3+:} false; then :
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1824 # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 ac_header_compiler=yes
1835 ac_header_compiler=no
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849 ac_header_preproc=yes
1851 ac_header_preproc=no
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1857 # So? What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------------------- ##
1877 ## Report this to unbound-bugs@nlnetlabs.nl ##
1878 ## ---------------------------------------- ##"
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 test -x conftest$ac_exeext
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2039 # include <limits.h>
2041 # include <assert.h>
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2068 if ac_fn_c_try_link "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_func
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_c_check_type
2137 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2138 # --------------------------------------------
2139 # Tries to find the compile-time value of EXPR in a program that includes
2140 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2142 ac_fn_c_compute_int ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 if test "$cross_compiling" = yes; then
2146 # Depending upon the size, compute the lo and hi bounds.
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) >= 0)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile "$LINENO"; then :
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 return test_array [0];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) < 0)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2216 return test_array [0];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_lo=$ac_mid; break
2225 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226 if test $ac_mid -le $ac_hi; then
2230 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2280 FILE *f = fopen ("conftest.val", "w");
2285 long int i = longval ();
2288 fprintf (f, "%ld", i);
2292 unsigned long int i = ulongval ();
2295 fprintf (f, "%lu", i);
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2305 if ac_fn_c_try_run "$LINENO"; then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311 conftest.$ac_objext conftest.beam conftest.$ac_ext
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316 as_fn_set_status $ac_retval
2318 } # ac_fn_c_compute_int
2320 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2324 ac_fn_c_check_decl ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 as_decl_name=`echo $2|sed 's/ *(.*//'`
2328 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2330 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2331 if eval \${$3+:} false; then :
2332 $as_echo_n "(cached) " >&6
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2340 #ifndef $as_decl_name
2342 (void) $as_decl_use;
2344 (void) $as_decl_name;
2352 if ac_fn_c_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 } # ac_fn_c_check_decl
2366 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2367 # ----------------------------------------------------
2368 # Tries to find if the field MEMBER exists in type AGGR, after including
2369 # INCLUDES, setting cache variable VAR accordingly.
2370 ac_fn_c_check_member ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2374 $as_echo_n "checking for $2.$3... " >&6; }
2375 if eval \${$4+:} false; then :
2376 $as_echo_n "(cached) " >&6
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2391 if ac_fn_c_try_compile "$LINENO"; then :
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2401 if (sizeof ac_aggr.$3)
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 } # ac_fn_c_check_member
2422 cat >config.log <<_ACEOF
2423 This file contains any messages produced by compilers while
2424 running configure, to aid debugging if configure makes a mistake.
2426 It was created by unbound $as_me 1.6.6, which was
2427 generated by GNU Autoconf 2.69. Invocation command line was
2439 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2440 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2441 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2442 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2443 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2445 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2446 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2448 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2449 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2450 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2451 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2452 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2453 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2454 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 $as_echo "PATH: $as_dir"
2479 # Keep a trace of the command line.
2480 # Strip out --no-create and --no-recursion so they do not pile up.
2481 # Strip out --silent because we don't want to record it for future runs.
2482 # Also quote any args containing shell meta-characters.
2483 # Make two passes to allow for proper duplicate-argument suppression.
2487 ac_must_keep_next=false
2493 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2495 | -silent | --silent | --silen | --sile | --sil)
2498 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2503 as_fn_append ac_configure_args1 " '$ac_arg'"
2504 if test $ac_must_keep_next = true; then
2505 ac_must_keep_next=false # Got value, back to normal.
2508 *=* | --config-cache | -C | -disable-* | --disable-* \
2509 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2510 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2511 | -with-* | --with-* | -without-* | --without-* | --x)
2512 case "$ac_configure_args0 " in
2513 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2516 -* ) ac_must_keep_next=true ;;
2519 as_fn_append ac_configure_args " '$ac_arg'"
2524 { ac_configure_args0=; unset ac_configure_args0;}
2525 { ac_configure_args1=; unset ac_configure_args1;}
2527 # When interrupted or exit'd, cleanup temporary files, and complete
2528 # config.log. We remove comments because anyway the quotes in there
2529 # would cause problems or look ugly.
2530 # WARNING: Use '\'' to represent an apostrophe within the trap.
2531 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2532 trap 'exit_status=$?
2533 # Save into config.log some information that might help in debugging.
2537 $as_echo "## ---------------- ##
2538 ## Cache variables. ##
2539 ## ---------------- ##"
2541 # The following way of writing the cache mishandles newlines in values,
2543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2544 eval ac_val=\$$ac_var
2548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2552 _ | IFS | as_nl) ;; #(
2553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2554 *) { eval $ac_var=; unset $ac_var;} ;;
2559 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2560 *${as_nl}ac_space=\ *)
2562 "s/'\''/'\''\\\\'\'''\''/g;
2563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2573 $as_echo "## ----------------- ##
2574 ## Output variables. ##
2575 ## ----------------- ##"
2577 for ac_var in $ac_subst_vars
2579 eval ac_val=\$$ac_var
2581 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2583 $as_echo "$ac_var='\''$ac_val'\''"
2587 if test -n "$ac_subst_files"; then
2588 $as_echo "## ------------------- ##
2589 ## File substitutions. ##
2590 ## ------------------- ##"
2592 for ac_var in $ac_subst_files
2594 eval ac_val=\$$ac_var
2596 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2598 $as_echo "$ac_var='\''$ac_val'\''"
2603 if test -s confdefs.h; then
2604 $as_echo "## ----------- ##
2611 test "$ac_signal" != 0 &&
2612 $as_echo "$as_me: caught signal $ac_signal"
2613 $as_echo "$as_me: exit $exit_status"
2615 rm -f core *.core core.conftest.* &&
2616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2619 for ac_signal in 1 2 13 15; do
2620 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2624 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2625 rm -f -r conftest* confdefs.h
2627 $as_echo "/* confdefs.h */" > confdefs.h
2629 # Predefined preprocessor variables.
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_NAME "$PACKAGE_NAME"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_STRING "$PACKAGE_STRING"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_URL "$PACKAGE_URL"
2656 # Let the site file select an alternate cache file if it wants to.
2657 # Prefer an explicitly selected file to automatically selected ones.
2660 if test -n "$CONFIG_SITE"; then
2661 # We do not want a PATH search for config.site.
2662 case $CONFIG_SITE in #((
2663 -*) ac_site_file1=./$CONFIG_SITE;;
2664 */*) ac_site_file1=$CONFIG_SITE;;
2665 *) ac_site_file1=./$CONFIG_SITE;;
2667 elif test "x$prefix" != xNONE; then
2668 ac_site_file1=$prefix/share/config.site
2669 ac_site_file2=$prefix/etc/config.site
2671 ac_site_file1=$ac_default_prefix/share/config.site
2672 ac_site_file2=$ac_default_prefix/etc/config.site
2674 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2676 test "x$ac_site_file" = xNONE && continue
2677 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2679 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2680 sed 's/^/| /' "$ac_site_file" >&5
2682 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 as_fn_error $? "failed to load site script $ac_site_file
2685 See \`config.log' for more details" "$LINENO" 5; }
2689 if test -r "$cache_file"; then
2690 # Some versions of bash will fail to source /dev/null (special files
2691 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2692 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2694 $as_echo "$as_me: loading cache $cache_file" >&6;}
2696 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2697 *) . "./$cache_file";;
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2702 $as_echo "$as_me: creating cache $cache_file" >&6;}
2706 # Check that the precious variables saved in the cache have kept the same
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711 eval ac_new_set=\$ac_env_${ac_var}_set
2712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713 eval ac_new_val=\$ac_env_${ac_var}_value
2714 case $ac_old_set,$ac_new_set in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2725 if test "x$ac_old_val" != "x$ac_new_val"; then
2726 # differences in whitespace do not lead to failure.
2727 ac_old_val_w=`echo x $ac_old_val`
2728 ac_new_val_w=`echo x $ac_new_val`
2729 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732 ac_cache_corrupted=:
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736 eval $ac_var=\$ac_old_val
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2739 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2744 # Pass precious variables to config.status.
2745 if test "$ac_new_set" = set; then
2747 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 *) ac_arg=$ac_var=$ac_new_val ;;
2750 case " $ac_configure_args " in
2751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2752 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756 if $ac_cache_corrupted; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 UNBOUND_VERSION_MAJOR=1
2776 UNBOUND_VERSION_MINOR=6
2778 UNBOUND_VERSION_MICRO=6
2781 LIBUNBOUND_CURRENT=7
2782 LIBUNBOUND_REVISION=5
2791 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2796 # 1.4.0-snapshots had 1:5:0
2797 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2811 # and 1.4.13p1 and 1.4.13.p2
2813 # 1.4.15 had 3:0:1 # adds ub_version()
2818 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2821 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2829 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2833 # 1.6.1 had 7:0:5 # ub_callback_t typedef renamed to ub_callback_type
2840 # Current -- the number of the binary API that we're implementing
2841 # Revision -- which iteration of the implementation of the binary
2842 # API are we supplying?
2843 # Age -- How many previous binary API versions do we also
2846 # If we release a new version that does not change the binary API,
2847 # increment Revision.
2849 # If we release a new version that changes the binary API, but does
2850 # not break programs compiled against the old binary API, increment
2851 # Current and Age. Set Revision to 0, since this is the first
2852 # implementation of the new API.
2854 # Otherwise, we're changing the binary API and breaking bakward
2855 # compatibility with old binaries. Increment Current. Set Age to 0,
2856 # since we're backward compatible with no previous APIs. Set Revision
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CC" && break
3101 if test -z "$CC"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CC" && break
3145 if test "x$ac_ct_CC" = x; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 if test -s conftest.err; then
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3215 for ac_file in $ac_files
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3240 for ac_file in $ac_files ''
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3247 # We found the default executable, but exeext='' is most
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
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 compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3550 if test "$GCC" = yes; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_cv_prog_cc_c89=no
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3582 s = g (p, va_arg (v,int));
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 rm -f conftest.$ac_ext
3630 case "x$ac_cv_prog_cc_c89" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3659 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3660 # On Suns, sometimes $CPP names a directory.
3661 if test -n "$CPP" && test -d "$CPP"; then
3664 if test -z "$CPP"; then
3665 if ${ac_cv_prog_CPP+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 # Double quotes because CPP needs to be expanded
3669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3672 for ac_c_preproc_warn_flag in '' yes
3674 # Use a header file that comes with gcc, so configuring glibc
3675 # with a fresh cross-compiler works.
3676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3677 # <limits.h> exists even on freestanding compilers.
3678 # On the NeXT, cc -E runs the code through the compiler's parser,
3679 # not just through cpp. "Syntax error" is here to catch this case.
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3683 # include <limits.h>
3685 # include <assert.h>
3689 if ac_fn_c_try_cpp "$LINENO"; then :
3692 # Broken: fails on valid input.
3695 rm -f conftest.err conftest.i conftest.$ac_ext
3697 # OK, works on sane cases. Now check whether nonexistent headers
3698 # can be detected and how.
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 #include <ac_nonexistent.h>
3703 if ac_fn_c_try_cpp "$LINENO"; then :
3704 # Broken: success on invalid input.
3707 # Passes both tests.
3711 rm -f conftest.err conftest.i conftest.$ac_ext
3714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3715 rm -f conftest.i conftest.err conftest.$ac_ext
3716 if $ac_preproc_ok; then :
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3729 $as_echo "$CPP" >&6; }
3731 for ac_c_preproc_warn_flag in '' yes
3733 # Use a header file that comes with gcc, so configuring glibc
3734 # with a fresh cross-compiler works.
3735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736 # <limits.h> exists even on freestanding compilers.
3737 # On the NeXT, cc -E runs the code through the compiler's parser,
3738 # not just through cpp. "Syntax error" is here to catch this case.
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3742 # include <limits.h>
3744 # include <assert.h>
3748 if ac_fn_c_try_cpp "$LINENO"; then :
3751 # Broken: fails on valid input.
3754 rm -f conftest.err conftest.i conftest.$ac_ext
3756 # OK, works on sane cases. Now check whether nonexistent headers
3757 # can be detected and how.
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <ac_nonexistent.h>
3762 if ac_fn_c_try_cpp "$LINENO"; then :
3763 # Broken: success on invalid input.
3766 # Passes both tests.
3770 rm -f conftest.err conftest.i conftest.$ac_ext
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.i conftest.err conftest.$ac_ext
3775 if $ac_preproc_ok; then :
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3781 See \`config.log' for more details" "$LINENO" 5; }
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3792 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3793 if ${ac_cv_path_GREP+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -z "$GREP"; then
3797 ac_path_GREP_found=false
3798 # Loop through the user's path and test for each of PROGNAME-LIST
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3803 test -z "$as_dir" && as_dir=.
3804 for ac_prog in grep ggrep; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3807 as_fn_executable_p "$ac_path_GREP" || continue
3808 # Check for GNU ac_path_GREP and select it if it is found.
3809 # Check for GNU $ac_path_GREP
3810 case `"$ac_path_GREP" --version 2>&1` in
3812 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3815 $as_echo_n 0123456789 >"conftest.in"
3818 cat "conftest.in" "conftest.in" >"conftest.tmp"
3819 mv "conftest.tmp" "conftest.in"
3820 cp "conftest.in" "conftest.nl"
3821 $as_echo 'GREP' >> "conftest.nl"
3822 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824 as_fn_arith $ac_count + 1 && ac_count=$as_val
3825 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3826 # Best one so far, save it but keep looking for a better one
3827 ac_cv_path_GREP="$ac_path_GREP"
3828 ac_path_GREP_max=$ac_count
3830 # 10*(2^10) chars as input seems more than enough
3831 test $ac_count -gt 10 && break
3833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3836 $ac_path_GREP_found && break 3
3841 if test -z "$ac_cv_path_GREP"; then
3842 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3845 ac_cv_path_GREP=$GREP
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3850 $as_echo "$ac_cv_path_GREP" >&6; }
3851 GREP="$ac_cv_path_GREP"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3855 $as_echo_n "checking for egrep... " >&6; }
3856 if ${ac_cv_path_EGREP+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860 then ac_cv_path_EGREP="$GREP -E"
3862 if test -z "$EGREP"; then
3863 ac_path_EGREP_found=false
3864 # Loop through the user's path and test for each of PROGNAME-LIST
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in egrep; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3873 as_fn_executable_p "$ac_path_EGREP" || continue
3874 # Check for GNU ac_path_EGREP and select it if it is found.
3875 # Check for GNU $ac_path_EGREP
3876 case `"$ac_path_EGREP" --version 2>&1` in
3878 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3881 $as_echo_n 0123456789 >"conftest.in"
3884 cat "conftest.in" "conftest.in" >"conftest.tmp"
3885 mv "conftest.tmp" "conftest.in"
3886 cp "conftest.in" "conftest.nl"
3887 $as_echo 'EGREP' >> "conftest.nl"
3888 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3890 as_fn_arith $ac_count + 1 && ac_count=$as_val
3891 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3892 # Best one so far, save it but keep looking for a better one
3893 ac_cv_path_EGREP="$ac_path_EGREP"
3894 ac_path_EGREP_max=$ac_count
3896 # 10*(2^10) chars as input seems more than enough
3897 test $ac_count -gt 10 && break
3899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 $ac_path_EGREP_found && break 3
3907 if test -z "$ac_cv_path_EGREP"; then
3908 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3911 ac_cv_path_EGREP=$EGREP
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3917 $as_echo "$ac_cv_path_EGREP" >&6; }
3918 EGREP="$ac_cv_path_EGREP"
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3922 $as_echo_n "checking for ANSI C header files... " >&6; }
3923 if ${ac_cv_header_stdc+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3941 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_cv_header_stdc=yes
3944 ac_cv_header_stdc=no
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 if test $ac_cv_header_stdc = yes; then
3949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3956 $EGREP "memchr" >/dev/null 2>&1; then :
3959 ac_cv_header_stdc=no
3965 if test $ac_cv_header_stdc = yes; then
3966 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "free" >/dev/null 2>&1; then :
3976 ac_cv_header_stdc=no
3982 if test $ac_cv_header_stdc = yes; then
3983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3984 if test "$cross_compiling" = yes; then :
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3991 #if ((' ' & 0x0FF) == 0x020)
3992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3995 # define ISLOWER(c) \
3996 (('a' <= (c) && (c) <= 'i') \
3997 || ('j' <= (c) && (c) <= 'r') \
3998 || ('s' <= (c) && (c) <= 'z'))
3999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4007 for (i = 0; i < 256; i++)
4008 if (XOR (islower (i), ISLOWER (i))
4009 || toupper (i) != TOUPPER (i))
4014 if ac_fn_c_try_run "$LINENO"; then :
4017 ac_cv_header_stdc=no
4019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4020 conftest.$ac_objext conftest.beam conftest.$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4026 $as_echo "$ac_cv_header_stdc" >&6; }
4027 if test $ac_cv_header_stdc = yes; then
4029 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035 inttypes.h stdint.h unistd.h
4037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4041 cat >>confdefs.h <<_ACEOF
4042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4052 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4059 if test "$MINIX" = yes; then
4061 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4064 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4067 $as_echo "#define _MINIX 1" >>confdefs.h
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4073 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4074 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4080 # define __EXTENSIONS__ 1
4081 $ac_includes_default
4090 if ac_fn_c_try_compile "$LINENO"; then :
4091 ac_cv_safe_to_define___extensions__=yes
4093 ac_cv_safe_to_define___extensions__=no
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4098 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4099 test $ac_cv_safe_to_define___extensions__ = yes &&
4100 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4102 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4104 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4106 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4108 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4112 if test "$ac_cv_header_minix_config_h" = "yes"; then
4114 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4123 case "$exec_prefix" in
4125 exec_prefix="$prefix"
4130 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4132 if echo $host $target | grep mingw32 >/dev/null; then on_mingw="yes"
4133 else on_mingw="no"; fi
4137 # Determine configuration file
4138 # the eval is to evaluate shell expansion twice
4139 UNBOUND_SBIN_DIR=`eval echo "${sbindir}"`
4141 UNBOUND_SYSCONF_DIR=`eval echo "${sysconfdir}"`
4143 UNBOUND_LOCALSTATE_DIR=`eval echo "${localstatedir}"`
4145 if test $on_mingw = "no"; then
4146 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4148 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4151 # Check whether --with-conf_file was given.
4152 if test "${with_conf_file+set}" = set; then :
4153 withval=$with_conf_file; ub_conf_file="$withval"
4157 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4160 cat >>confdefs.h <<_ACEOF
4161 #define CONFIGFILE "$hdr_config"
4164 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4165 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4166 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4167 X"$ub_conf_file" : 'X\(//\)$' \| \
4168 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4169 $as_echo X"$ub_conf_file" |
4170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4189 # Determine run, chroot directory and pidfile locations
4191 # Check whether --with-run-dir was given.
4192 if test "${with_run_dir+set}" = set; then :
4193 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4195 if test $on_mingw = no; then
4196 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4204 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4207 cat >>confdefs.h <<_ACEOF
4208 #define RUN_DIR "$hdr_run"
4213 # Check whether --with-chroot-dir was given.
4214 if test "${with_chroot_dir+set}" = set; then :
4215 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4217 if test $on_mingw = no; then
4218 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4220 UNBOUND_CHROOT_DIR=""
4226 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4229 cat >>confdefs.h <<_ACEOF
4230 #define CHROOT_DIR "$hdr_chroot"
4235 # Check whether --with-share-dir was given.
4236 if test "${with_share_dir+set}" = set; then :
4237 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4239 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4244 cat >>confdefs.h <<_ACEOF
4245 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4250 # Check whether --with-pidfile was given.
4251 if test "${with_pidfile+set}" = set; then :
4252 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4254 if test $on_mingw = no; then
4255 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4263 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4266 cat >>confdefs.h <<_ACEOF
4267 #define PIDFILE "$hdr_pid"
4272 # Check whether --with-rootkey-file was given.
4273 if test "${with_rootkey_file+set}" = set; then :
4274 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4276 if test $on_mingw = no; then
4277 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4279 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4285 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4288 cat >>confdefs.h <<_ACEOF
4289 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4294 # Check whether --with-rootcert-file was given.
4295 if test "${with_rootcert_file+set}" = set; then :
4296 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4298 if test $on_mingw = no; then
4299 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4301 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4307 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4310 cat >>confdefs.h <<_ACEOF
4311 #define ROOT_CERT_FILE "$hdr_rpem"
4316 # Check whether --with-username was given.
4317 if test "${with_username+set}" = set; then :
4318 withval=$with_username; UNBOUND_USERNAME="$withval"
4320 UNBOUND_USERNAME="unbound"
4325 cat >>confdefs.h <<_ACEOF
4326 #define UB_USERNAME "$UNBOUND_USERNAME"
4331 $as_echo "#define WINVER 0x0502" >>confdefs.h
4333 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/' `
4336 cat >>confdefs.h <<_ACEOF
4337 #define RSRC_PACKAGE_VERSION $wnvs
4341 # Checks for typedefs, structures, and compiler characteristics.
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4344 if ${ac_cv_c_const+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4355 /* Ultrix mips cc rejects this sort of thing. */
4356 typedef int charset[2];
4357 const charset cs = { 0, 0 };
4358 /* SunOS 4.1.1 cc rejects this. */
4359 char const *const *pcpcc;
4361 /* NEC SVR4.0.2 mips cc rejects this. */
4362 struct point {int x, y;};
4363 static struct point const zero = {0,0};
4364 /* AIX XL C 1.02.0.0 rejects this.
4365 It does not let you subtract one const X* pointer from another in
4366 an arm of an if-expression whose if-part is not a constant
4368 const char *g = "string";
4369 pcpcc = &g + (g ? g-g : 0);
4370 /* HPUX 7.0 cc rejects these. */
4372 ppc = (char**) pcpcc;
4373 pcpcc = (char const *const *) ppc;
4374 { /* SCO 3.2v4 cc rejects this sort of thing. */
4377 char const *s = 0 ? (char *) 0 : (char const *) 0;
4382 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4384 const int *foo = &x[0];
4387 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4388 typedef const int *iptr;
4392 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4393 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4394 struct s { int j; const int *ap[3]; } bx;
4395 struct s *b = &bx; b->j = 5;
4397 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4401 return !cs[0] && !zero.x;
4408 if ac_fn_c_try_compile "$LINENO"; then :
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4416 $as_echo "$ac_cv_c_const" >&6; }
4417 if test $ac_cv_c_const = no; then
4419 $as_echo "#define const /**/" >>confdefs.h
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 # allow user to override the -g -O2 flags.
4430 if test "x$CFLAGS" = "x" ; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4434 $as_echo_n "checking whether $CC supports -g... " >&6; }
4435 cache=`echo g | sed 'y%.=/+-%___p_%'`
4436 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4437 $as_echo_n "(cached) " >&6
4440 echo 'void f(void){}' >conftest.c
4441 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4442 eval "cv_prog_cc_flag_$cache=yes"
4444 eval "cv_prog_cc_flag_$cache=no"
4446 rm -f conftest conftest.o conftest.c
4450 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 $as_echo "yes" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4465 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4466 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4467 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4468 $as_echo_n "(cached) " >&6
4471 echo 'void f(void){}' >conftest.c
4472 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4473 eval "cv_prog_cc_flag_$cache=yes"
4475 eval "cv_prog_cc_flag_$cache=no"
4477 rm -f conftest conftest.o conftest.c
4481 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4485 CFLAGS="$CFLAGS -O2"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 if test -n "$ac_tool_prefix"; then
4500 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4501 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_CC+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 if test -n "$CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530 $as_echo "$CC" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4538 if test -z "$ac_cv_prog_CC"; then
4540 # Extract the first word of "gcc", so it can be a program name with args.
4541 set dummy gcc; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 if test -n "$ac_ct_CC"; then
4548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_ac_ct_CC="gcc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4568 if test -n "$ac_ct_CC"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4570 $as_echo "$ac_ct_CC" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4576 if test "x$ac_ct_CC" = x; then
4579 case $cross_compiling:$ac_tool_warned in
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4591 if test -z "$CC"; then
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}cc; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CC+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CC="${ac_tool_prefix}cc"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 if test -n "$CC"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4623 $as_echo "$CC" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4632 if test -z "$CC"; then
4633 # Extract the first word of "cc", so it can be a program name with args.
4634 set dummy cc; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_CC+:} false; then :
4638 $as_echo_n "(cached) " >&6
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652 ac_prog_rejected=yes
4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_CC
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set CC to just the basename; use the full file name.
4672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4678 if test -n "$CC"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4680 $as_echo "$CC" >&6; }
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4688 if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in cl.exe
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_CC+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$CC"; then
4700 ac_cv_prog_CC="$CC" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 if test -n "$CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$CC" && break
4732 if test -z "$CC"; then
4734 for ac_prog in cl.exe
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$ac_ct_CC"; then
4744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_ac_ct_CC="$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4764 if test -n "$ac_ct_CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4766 $as_echo "$ac_ct_CC" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$ac_ct_CC" && break
4776 if test "x$ac_ct_CC" = x; then
4779 case $cross_compiling:$ac_tool_warned in
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4792 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4794 as_fn_error $? "no acceptable C compiler found in \$PATH
4795 See \`config.log' for more details" "$LINENO" 5; }
4797 # Provide some information about the compiler.
4798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4801 for ac_option in --version -v -V -qversion; do
4802 { { ac_try="$ac_compiler $ac_option >&5"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4811 if test -s conftest.err; then
4813 ... rest of stderr output deleted ...
4814 10q' conftest.err >conftest.er1
4815 cat conftest.er1 >&5
4817 rm -f conftest.er1 conftest.err
4818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4819 test $ac_status = 0; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4823 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4824 if ${ac_cv_c_compiler_gnu+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4841 if ac_fn_c_try_compile "$LINENO"; then :
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4851 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4852 if test $ac_compiler_gnu = yes; then
4857 ac_test_CFLAGS=${CFLAGS+set}
4858 ac_save_CFLAGS=$CFLAGS
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4860 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4861 if ${ac_cv_prog_cc_g+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 ac_save_c_werror_flag=$ac_c_werror_flag
4865 ac_c_werror_flag=yes
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4879 if ac_fn_c_try_compile "$LINENO"; then :
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4894 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_c_werror_flag=$ac_save_c_werror_flag
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4910 if ac_fn_c_try_compile "$LINENO"; then :
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_c_werror_flag=$ac_save_c_werror_flag
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4921 $as_echo "$ac_cv_prog_cc_g" >&6; }
4922 if test "$ac_test_CFLAGS" = set; then
4923 CFLAGS=$ac_save_CFLAGS
4924 elif test $ac_cv_prog_cc_g = yes; then
4925 if test "$GCC" = yes; then
4931 if test "$GCC" = yes; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4938 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4939 if ${ac_cv_prog_cc_c89+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 ac_cv_prog_cc_c89=no
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4950 struct buf { int x; };
4951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4952 static char *e (p, i)
4958 static char *f (char * (*g) (char **, int), char **p, ...)
4963 s = g (p, va_arg (v,int));
4968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4969 function prototypes and stuff, but not '\xHH' hex character constants.
4970 These don't provoke an error unfortunately, instead are silently treated
4971 as 'x'. The following induces an error, until -std is added to get
4972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4973 array size at least. It's necessary to write '\x00'==0 to get something
4974 that's true only with -std. */
4975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4978 inside strings and character constants. */
4980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4982 int test (int i, double x);
4983 struct s1 {int (*f) (int a);};
4984 struct s2 {int (*f) (double a);};
4985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4991 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4997 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4999 CC="$ac_save_CC $ac_arg"
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_cv_prog_cc_c89=$ac_arg
5003 rm -f core conftest.err conftest.$ac_objext
5004 test "x$ac_cv_prog_cc_c89" != "xno" && break
5006 rm -f conftest.$ac_ext
5011 case "x$ac_cv_prog_cc_c89" in
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 $as_echo "none needed" >&6; } ;;
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5017 $as_echo "unsupported" >&6; } ;;
5019 CC="$CC $ac_cv_prog_cc_c89"
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5023 if test "x$ac_cv_prog_cc_c89" != xno; then :
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
5035 $as_echo_n "checking $CC dependency flag... " >&6; }
5036 echo 'void f(){}' >conftest.c
5037 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5040 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
5043 DEPFLAG="-MM" # dunno do something
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
5047 $as_echo "$DEPFLAG" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
5055 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
5056 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
5057 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5058 $as_echo_n "(cached) " >&6
5061 echo 'void f(void){}' >conftest.c
5062 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
5063 eval "cv_prog_cc_flag_$cache=yes"
5065 eval "cv_prog_cc_flag_$cache=no"
5067 rm -f conftest conftest.o conftest.c
5071 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5073 $as_echo "yes" >&6; }
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5086 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5087 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5088 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5089 $as_echo_n "(cached) " >&6
5092 echo 'void f(void){}' >conftest.c
5093 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5094 eval "cv_prog_cc_flag_$cache=yes"
5096 eval "cv_prog_cc_flag_$cache=no"
5098 rm -f conftest conftest.o conftest.c
5102 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5106 ERRFLAG="$ERRFLAG -Wall"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5111 ERRFLAG="$ERRFLAG -errfmt"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5119 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5120 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5121 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5122 $as_echo_n "(cached) " >&6
5125 echo 'void f(void){}' >conftest.c
5126 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5127 eval "cv_prog_cc_flag_$cache=yes"
5129 eval "cv_prog_cc_flag_$cache=no"
5131 rm -f conftest conftest.o conftest.c
5135 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137 $as_echo "yes" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5150 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5151 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5152 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5153 $as_echo_n "(cached) " >&6
5156 echo 'void f(void){}' >conftest.c
5157 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5158 eval "cv_prog_cc_flag_$cache=yes"
5160 eval "cv_prog_cc_flag_$cache=no"
5162 rm -f conftest conftest.o conftest.c
5166 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5179 for ac_header in getopt.h time.h
5181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5184 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5185 cat >>confdefs.h <<_ACEOF
5186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 { $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
5198 $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; }
5199 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`
5200 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5201 $as_echo_n "(cached) " >&6
5205 #include "confdefs.h"
5208 #include <sys/time.h>
5214 #ifdef HAVE_GETOPT_H
5225 const char* str = NULL;
5227 msg.msg_control = 0;
5228 t = ctime_r(&time, buf);
5231 a = getopt(2, opts, "a");
5233 str = gai_strerror(0);
5234 if(str && t && tv.tv_usec && msg.msg_control)
5239 echo 'void f(){}' >>conftest.c
5240 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5241 eval "cv_prog_cc_flag_needed_$cache=no"
5244 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
5245 eval "cv_prog_cc_flag_needed_$cache=yes"
5247 eval "cv_prog_cc_flag_needed_$cache=fail"
5248 #echo 'Test with flag fails too!'
5250 #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"
5251 #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`
5256 rm -f conftest conftest.c conftest.o
5260 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5262 $as_echo "yes" >&6; }
5264 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"
5266 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 #echo 'Test with flag is no!'
5271 #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"
5272 #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`
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5278 $as_echo "failed" >&6; }
5288 { $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
5289 $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; }
5290 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`
5291 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5292 $as_echo_n "(cached) " >&6
5296 #include "confdefs.h"
5299 #include <sys/time.h>
5305 #ifdef HAVE_GETOPT_H
5316 const char* str = NULL;
5318 msg.msg_control = 0;
5319 t = ctime_r(&time, buf);
5322 a = getopt(2, opts, "a");
5324 str = gai_strerror(0);
5325 if(str && t && tv.tv_usec && msg.msg_control)
5330 echo 'void f(){}' >>conftest.c
5331 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5332 eval "cv_prog_cc_flag_needed_$cache=no"
5335 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
5336 eval "cv_prog_cc_flag_needed_$cache=yes"
5338 eval "cv_prog_cc_flag_needed_$cache=fail"
5339 #echo 'Test with flag fails too!'
5341 #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"
5342 #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`
5347 rm -f conftest conftest.c conftest.o
5351 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5355 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5357 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 #echo 'Test with flag is no!'
5362 #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"
5363 #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`
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5369 $as_echo "failed" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5380 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5381 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5382 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5383 $as_echo_n "(cached) " >&6
5387 #include <stdbool.h>
5394 echo 'void f(){}' >>conftest.c
5395 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5396 eval "cv_prog_cc_flag_needed_$cache=no"
5399 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5400 eval "cv_prog_cc_flag_needed_$cache=yes"
5402 eval "cv_prog_cc_flag_needed_$cache=fail"
5403 #echo 'Test with flag fails too!'
5405 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5406 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5411 rm -f conftest conftest.c conftest.o
5415 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5419 CFLAGS="$CFLAGS $C99FLAG"
5421 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 #echo 'Test with flag is no!'
5426 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5427 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5433 $as_echo "failed" >&6; }
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5444 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5445 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5446 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5447 $as_echo_n "(cached) " >&6
5459 echo 'void f(){}' >>conftest.c
5460 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5461 eval "cv_prog_cc_flag_needed_$cache=no"
5464 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5465 eval "cv_prog_cc_flag_needed_$cache=yes"
5467 eval "cv_prog_cc_flag_needed_$cache=fail"
5468 #echo 'Test with flag fails too!'
5470 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5471 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5476 rm -f conftest conftest.c conftest.o
5480 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 $as_echo "yes" >&6; }
5484 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5486 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 #echo 'Test with flag is no!'
5491 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5492 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5498 $as_echo "failed" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5509 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5511 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5512 $as_echo_n "(cached) " >&6
5516 #include <netinet/in.h>
5519 struct in6_pktinfo inf;
5520 int a = (int)sizeof(inf);
5524 echo 'void f(){}' >>conftest.c
5525 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5526 eval "cv_prog_cc_flag_needed_$cache=no"
5529 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5530 eval "cv_prog_cc_flag_needed_$cache=yes"
5532 eval "cv_prog_cc_flag_needed_$cache=fail"
5533 #echo 'Test with flag fails too!'
5535 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5536 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5541 rm -f conftest conftest.c conftest.o
5545 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5549 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5551 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 #echo 'Test with flag is no!'
5556 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5557 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5563 $as_echo "failed" >&6; }
5570 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5571 # is not available at all. -D_FRSRESGID is to make this check unique.
5572 # otherwise we would get the previous cached result.
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5577 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5578 cache=_D_GNU_SOURCE__D_FRSRESGID
5579 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5580 $as_echo_n "(cached) " >&6
5587 int a = setresgid(0,0,0);
5588 a = setresuid(0,0,0);
5592 echo 'void f(){}' >>conftest.c
5593 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5594 eval "cv_prog_cc_flag_needed_$cache=no"
5597 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5598 eval "cv_prog_cc_flag_needed_$cache=yes"
5600 eval "cv_prog_cc_flag_needed_$cache=fail"
5601 #echo 'Test with flag fails too!'
5603 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5604 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5609 rm -f conftest conftest.c conftest.o
5613 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5617 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5619 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 #echo 'Test with flag is no!'
5624 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5625 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5631 $as_echo "failed" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5642 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5643 cache=_D_POSIX_C_SOURCE_200112
5644 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5645 $as_echo_n "(cached) " >&6
5649 #include "confdefs.h"
5660 const char* str = NULL;
5661 t = ctime_r(&time, buf);
5662 str = gai_strerror(0);
5668 echo 'void f(){}' >>conftest.c
5669 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5670 eval "cv_prog_cc_flag_needed_$cache=no"
5673 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5674 eval "cv_prog_cc_flag_needed_$cache=yes"
5676 eval "cv_prog_cc_flag_needed_$cache=fail"
5677 #echo 'Test with flag fails too!'
5679 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5680 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5685 rm -f conftest conftest.c conftest.o
5689 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691 $as_echo "yes" >&6; }
5693 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5695 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 #echo 'Test with flag is no!'
5700 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5701 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5707 $as_echo "failed" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5718 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5719 cache=_D__EXTENSIONS__
5720 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5721 $as_echo_n "(cached) " >&6
5725 #include "confdefs.h"
5728 #include <sys/time.h>
5733 #ifdef HAVE_GETOPT_H
5743 a = getopt(2, opts, "a");
5750 echo 'void f(){}' >>conftest.c
5751 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5752 eval "cv_prog_cc_flag_needed_$cache=no"
5755 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5756 eval "cv_prog_cc_flag_needed_$cache=yes"
5758 eval "cv_prog_cc_flag_needed_$cache=fail"
5759 #echo 'Test with flag fails too!'
5761 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5762 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5767 rm -f conftest conftest.c conftest.o
5771 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5773 $as_echo "yes" >&6; }
5775 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5777 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 #echo 'Test with flag is no!'
5782 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5783 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5789 $as_echo "failed" >&6; }
5798 # debug mode flags warnings
5799 # Check whether --enable-checking was given.
5800 if test "${enable_checking+set}" = set; then :
5801 enableval=$enable_checking;
5804 # Check whether --enable-debug was given.
5805 if test "${enable_debug+set}" = set; then :
5806 enableval=$enable_debug;
5809 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5810 else debug_enabled="$enable_checking"; fi
5812 case "$debug_enabled" in
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5817 $as_echo_n "checking whether $CC supports -W... " >&6; }
5818 cache=`echo W | sed 'y%.=/+-%___p_%'`
5819 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5820 $as_echo_n "(cached) " >&6
5823 echo 'void f(void){}' >conftest.c
5824 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5825 eval "cv_prog_cc_flag_$cache=yes"
5827 eval "cv_prog_cc_flag_$cache=no"
5829 rm -f conftest conftest.o conftest.c
5833 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835 $as_echo "yes" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5848 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5849 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5850 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5851 $as_echo_n "(cached) " >&6
5854 echo 'void f(void){}' >conftest.c
5855 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5856 eval "cv_prog_cc_flag_$cache=yes"
5858 eval "cv_prog_cc_flag_$cache=no"
5860 rm -f conftest conftest.o conftest.c
5864 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5868 CFLAGS="$CFLAGS -Wall"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5879 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5880 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5881 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5882 $as_echo_n "(cached) " >&6
5885 echo 'void f(void){}' >conftest.c
5886 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5887 eval "cv_prog_cc_flag_$cache=yes"
5889 eval "cv_prog_cc_flag_$cache=no"
5891 rm -f conftest conftest.o conftest.c
5895 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5897 $as_echo "yes" >&6; }
5899 CFLAGS="$CFLAGS -Wextra"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5910 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5911 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5912 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5913 $as_echo_n "(cached) " >&6
5916 echo 'void f(void){}' >conftest.c
5917 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5918 eval "cv_prog_cc_flag_$cache=yes"
5920 eval "cv_prog_cc_flag_$cache=no"
5922 rm -f conftest conftest.o conftest.c
5926 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5928 $as_echo "yes" >&6; }
5930 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5939 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5947 # Check whether --enable-flto was given.
5948 if test "${enable_flto+set}" = set; then :
5949 enableval=$enable_flto;
5952 if test "x$enable_flto" != "xno"; then :
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5955 $as_echo_n "checking if $CC supports -flto... " >&6; }
5957 CFLAGS="$CFLAGS -flto"
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5969 if ac_fn_c_try_link "$LINENO"; then :
5971 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5977 $as_echo "yes" >&6; }
5979 rm -f conftest conftest.c conftest.o
5982 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5991 # Check whether --enable-pie was given.
5992 if test "${enable_pie+set}" = set; then :
5993 enableval=$enable_pie;
5996 if test "x$enable_pie" = "xyes"; then :
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5999 $as_echo_n "checking if $CC supports PIE... " >&6; }
6000 BAKLDFLAGS="$LDFLAGS"
6002 LDFLAGS="$LDFLAGS -pie"
6003 CFLAGS="$CFLAGS -fPIE"
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6015 if ac_fn_c_try_link "$LINENO"; then :
6017 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6018 LDFLAGS="$BAKLDFLAGS"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6023 $as_echo "yes" >&6; }
6025 rm -f conftest conftest.c conftest.o
6028 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6031 rm -f core conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext conftest.$ac_ext
6037 # Check whether --enable-relro_now was given.
6038 if test "${enable_relro_now+set}" = set; then :
6039 enableval=$enable_relro_now;
6042 if test "x$enable_relro_now" = "xyes"; then :
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
6045 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
6046 BAKLDFLAGS="$LDFLAGS"
6047 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6059 if ac_fn_c_try_link "$LINENO"; then :
6061 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
6062 LDFLAGS="$BAKLDFLAGS"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6067 $as_echo "yes" >&6; }
6069 rm -f conftest conftest.c conftest.o
6072 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }
6075 rm -f core conftest.err conftest.$ac_objext \
6076 conftest$ac_exeext conftest.$ac_ext
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6082 $as_echo_n "checking for inline... " >&6; }
6083 if ${ac_cv_c_inline+:} false; then :
6084 $as_echo_n "(cached) " >&6
6087 for ac_kw in inline __inline__ __inline; do
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6092 static $ac_kw foo_t static_foo () {return 0; }
6093 $ac_kw foo_t foo () {return 0; }
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_cv_c_inline=$ac_kw
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 test "$ac_cv_c_inline" != no && break
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6106 $as_echo "$ac_cv_c_inline" >&6; }
6108 case $ac_cv_c_inline in
6111 case $ac_cv_c_inline in
6113 *) ac_val=$ac_cv_c_inline;;
6115 cat >>confdefs.h <<_ACEOF
6117 #define inline $ac_val
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6125 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6126 if ${ac_cv_c_format_attribute+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 ac_cv_c_format_attribute=no
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6133 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6134 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 ac_cv_c_format_attribute="yes"
6149 ac_cv_c_format_attribute="no"
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6157 $as_echo "$ac_cv_c_format_attribute" >&6; }
6158 if test $ac_cv_c_format_attribute = yes; then
6160 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6166 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6167 if ${ac_cv_c_unused_attribute+:} false; then :
6168 $as_echo_n "(cached) " >&6
6170 ac_cv_c_unused_attribute=no
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 void f (char *u __attribute__((unused)));
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 ac_cv_c_unused_attribute="yes"
6189 ac_cv_c_unused_attribute="no"
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6199 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6200 if test $ac_cv_c_unused_attribute = yes; then
6202 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute" >&5
6210 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"weak\" attribute... " >&6; }
6211 if ${ac_cv_c_weak_attribute+:} false; then :
6212 $as_echo_n "(cached) " >&6
6214 ac_cv_c_weak_attribute=no
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6218 __attribute__((weak)) void f(int x) { printf("%d", x); }
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 ac_cv_c_weak_attribute="yes"
6233 ac_cv_c_weak_attribute="no"
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_weak_attribute" >&5
6241 $as_echo "$ac_cv_c_weak_attribute" >&6; }
6242 if test $ac_cv_c_weak_attribute = yes; then
6244 $as_echo "#define HAVE_ATTR_WEAK 1" >>confdefs.h
6249 if test "$srcdir" != "."; then
6250 CPPFLAGS="$CPPFLAGS -I$srcdir"
6255 for ac_prog in flex lex
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_LEX+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$LEX"; then
6265 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_LEX="$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 if test -n "$LEX"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6287 $as_echo "$LEX" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$LEX" && break
6296 test -n "$LEX" || LEX=":"
6298 if test "x$LEX" != "x:"; then
6299 cat >conftest.l <<_ACEOF
6305 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6306 yyless ((input () != 0)); }
6307 f { unput (yytext[0]); }
6308 . { BEGIN INITIAL; }
6310 #ifdef YYTEXT_POINTER
6311 extern char *yytext;
6316 return ! yylex () + ! yywrap ();
6319 { { ac_try="$LEX conftest.l"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6325 $as_echo "$ac_try_echo"; } >&5
6326 (eval "$LEX conftest.l") 2>&5
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6331 $as_echo_n "checking lex output file root... " >&6; }
6332 if ${ac_cv_prog_lex_root+:} false; then :
6333 $as_echo_n "(cached) " >&6
6336 if test -f lex.yy.c; then
6337 ac_cv_prog_lex_root=lex.yy
6338 elif test -f lexyy.c; then
6339 ac_cv_prog_lex_root=lexyy
6341 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6345 $as_echo "$ac_cv_prog_lex_root" >&6; }
6346 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6348 if test -z "${LEXLIB+set}"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6350 $as_echo_n "checking lex library... " >&6; }
6351 if ${ac_cv_lib_lex+:} false; then :
6352 $as_echo_n "(cached) " >&6
6356 ac_cv_lib_lex='none needed'
6357 for ac_lib in '' -lfl -ll; do
6358 LIBS="$ac_lib $ac_save_LIBS"
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 `cat $LEX_OUTPUT_ROOT.c`
6363 if ac_fn_c_try_link "$LINENO"; then :
6364 ac_cv_lib_lex=$ac_lib
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 test "$ac_cv_lib_lex" != 'none needed' && break
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6374 $as_echo "$ac_cv_lib_lex" >&6; }
6375 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6380 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6381 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 # POSIX says lex can declare yytext either as a pointer or an array; the
6385 # default is implementation-dependent. Figure out which it is, since
6386 # not all implementations provide the %pointer and %array declarations.
6387 ac_cv_prog_lex_yytext_pointer=no
6389 LIBS="$LEXLIB $ac_save_LIBS"
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6393 #define YYTEXT_POINTER 1
6394 `cat $LEX_OUTPUT_ROOT.c`
6396 if ac_fn_c_try_link "$LINENO"; then :
6397 ac_cv_prog_lex_yytext_pointer=yes
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6405 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6406 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6408 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6411 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6416 $as_echo_n "checking for yylex_destroy... " >&6; }
6417 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6419 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6422 $as_echo "yes" >&6; }
6423 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }; fi
6426 for ac_prog in 'bison -y' byacc
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_YACC+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$YACC"; then
6436 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_YACC="$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 YACC=$ac_cv_prog_YACC
6456 if test -n "$YACC"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6458 $as_echo "$YACC" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$YACC" && break
6467 test -n "$YACC" || YACC="yacc"
6469 # Extract the first word of "doxygen", so it can be a program name with args.
6470 set dummy doxygen; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if ${ac_cv_prog_doxygen+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$doxygen"; then
6477 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_doxygen="doxygen"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 doxygen=$ac_cv_prog_doxygen
6497 if test -n "$doxygen"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6499 $as_echo "$doxygen" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}strip; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_STRIP+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$STRIP"; then
6515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 STRIP=$ac_cv_prog_STRIP
6535 if test -n "$STRIP"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6537 $as_echo "$STRIP" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6545 if test -z "$ac_cv_prog_STRIP"; then
6547 # Extract the first word of "strip", so it can be a program name with args.
6548 set dummy strip; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$ac_ct_STRIP"; then
6555 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_ac_ct_STRIP="strip"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6575 if test -n "$ac_ct_STRIP"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6577 $as_echo "$ac_ct_STRIP" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6583 if test "x$ac_ct_STRIP" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6595 STRIP="$ac_cv_prog_STRIP"
6599 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6600 if test -f "$ac_dir/install-sh"; then
6602 ac_install_sh="$ac_aux_dir/install-sh -c"
6604 elif test -f "$ac_dir/install.sh"; then
6606 ac_install_sh="$ac_aux_dir/install.sh -c"
6608 elif test -f "$ac_dir/shtool"; then
6610 ac_install_sh="$ac_aux_dir/shtool install -c"
6614 if test -z "$ac_aux_dir"; then
6615 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6618 # These three variables are undocumented and unsupported,
6619 # and are intended to be withdrawn in a future Autoconf release.
6620 # They can cause serious problems if a builder's source tree is in a directory
6621 # whose full name contains unusual characters.
6622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6627 # Make sure we can run config.sub.
6628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6629 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6632 $as_echo_n "checking build system type... " >&6; }
6633 if ${ac_cv_build+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 ac_build_alias=$build_alias
6637 test "x$ac_build_alias" = x &&
6638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6639 test "x$ac_build_alias" = x &&
6640 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6646 $as_echo "$ac_cv_build" >&6; }
6647 case $ac_cv_build in
6649 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6652 ac_save_IFS=$IFS; IFS='-'
6658 # Remember, the first character of IFS is used to create $*,
6659 # except with old shells:
6662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6666 $as_echo_n "checking host system type... " >&6; }
6667 if ${ac_cv_host+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test "x$host_alias" = x; then
6671 ac_cv_host=$ac_cv_build
6673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6679 $as_echo "$ac_cv_host" >&6; }
6682 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6685 ac_save_IFS=$IFS; IFS='-'
6691 # Remember, the first character of IFS is used to create $*,
6692 # except with old shells:
6695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6699 # skip these tests, we do not need them.
6708 # always use ./libtool unless override from commandline (libtool=mylibtool)
6709 if test -z "$libtool"; then
6713 # avoid libtool max commandline length test on systems that fork slowly.
6715 if echo "$host_os" | grep "sunos4" >/dev/null; then
6716 lt_cv_sys_max_cmd_len=32750;
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}ar; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_path_AR+:} false; then :
6724 $as_echo_n "(cached) " >&6
6728 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6760 if test -z "$ac_cv_path_AR"; then
6762 # Extract the first word of "ar", so it can be a program name with args.
6763 set dummy ar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_path_ac_pt_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6771 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 ac_pt_AR=$ac_cv_path_ac_pt_AR
6793 if test -n "$ac_pt_AR"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6795 $as_echo "$ac_pt_AR" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 if test "x$ac_pt_AR" = x; then
6804 case $cross_compiling:$ac_tool_warned in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6816 if test $AR = false; then
6817 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6823 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6828 macro_version='2.4.6'
6829 macro_revision='2.4.6'
6843 ltmain=$ac_aux_dir/ltmain.sh
6845 # Backslashify metacharacters that are still active within
6846 # double-quoted strings.
6847 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6849 # Same as above, but do not quote variable references.
6850 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6852 # Sed substitution to delay expansion of an escaped shell variable in a
6853 # double_quote_subst'ed string.
6854 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6856 # Sed substitution to delay expansion of an escaped single quote.
6857 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6859 # Sed substitution to avoid accidental globbing in evaled expressions
6860 no_glob_subst='s/\*/\\\*/g'
6862 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6864 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6867 $as_echo_n "checking how to print strings... " >&6; }
6868 # Test print first, because it will be a builtin if present.
6869 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6870 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6872 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6875 # Use this function as a fallback that always works.
6876 func_fallback_echo ()
6878 eval 'cat <<_LTECHO_EOF
6882 ECHO='func_fallback_echo'
6885 # func_echo_all arg...
6886 # Invoke $ECHO with all args, space-separated.
6893 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6894 $as_echo "printf" >&6; } ;;
6895 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6896 $as_echo "print -r" >&6; } ;;
6897 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6898 $as_echo "cat" >&6; } ;;
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6916 if ${ac_cv_path_SED+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6920 for ac_i in 1 2 3 4 5 6 7; do
6921 ac_script="$ac_script$as_nl$ac_script"
6923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6924 { ac_script=; unset ac_script;}
6925 if test -z "$SED"; then
6926 ac_path_SED_found=false
6927 # Loop through the user's path and test for each of PROGNAME-LIST
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_prog in sed gsed; do
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6936 as_fn_executable_p "$ac_path_SED" || continue
6937 # Check for GNU ac_path_SED and select it if it is found.
6938 # Check for GNU $ac_path_SED
6939 case `"$ac_path_SED" --version 2>&1` in
6941 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6944 $as_echo_n 0123456789 >"conftest.in"
6947 cat "conftest.in" "conftest.in" >"conftest.tmp"
6948 mv "conftest.tmp" "conftest.in"
6949 cp "conftest.in" "conftest.nl"
6950 $as_echo '' >> "conftest.nl"
6951 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6953 as_fn_arith $ac_count + 1 && ac_count=$as_val
6954 if test $ac_count -gt ${ac_path_SED_max-0}; then
6955 # Best one so far, save it but keep looking for a better one
6956 ac_cv_path_SED="$ac_path_SED"
6957 ac_path_SED_max=$ac_count
6959 # 10*(2^10) chars as input seems more than enough
6960 test $ac_count -gt 10 && break
6962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6965 $ac_path_SED_found && break 3
6970 if test -z "$ac_cv_path_SED"; then
6971 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6979 $as_echo "$ac_cv_path_SED" >&6; }
6980 SED="$ac_cv_path_SED"
6983 test -z "$SED" && SED=sed
6984 Xsed="$SED -e 1s/^X//"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6997 $as_echo_n "checking for fgrep... " >&6; }
6998 if ${ac_cv_path_FGREP+:} false; then :
6999 $as_echo_n "(cached) " >&6
7001 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7002 then ac_cv_path_FGREP="$GREP -F"
7004 if test -z "$FGREP"; then
7005 ac_path_FGREP_found=false
7006 # Loop through the user's path and test for each of PROGNAME-LIST
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7011 test -z "$as_dir" && as_dir=.
7012 for ac_prog in fgrep; do
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7015 as_fn_executable_p "$ac_path_FGREP" || continue
7016 # Check for GNU ac_path_FGREP and select it if it is found.
7017 # Check for GNU $ac_path_FGREP
7018 case `"$ac_path_FGREP" --version 2>&1` in
7020 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7023 $as_echo_n 0123456789 >"conftest.in"
7026 cat "conftest.in" "conftest.in" >"conftest.tmp"
7027 mv "conftest.tmp" "conftest.in"
7028 cp "conftest.in" "conftest.nl"
7029 $as_echo 'FGREP' >> "conftest.nl"
7030 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7032 as_fn_arith $ac_count + 1 && ac_count=$as_val
7033 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7034 # Best one so far, save it but keep looking for a better one
7035 ac_cv_path_FGREP="$ac_path_FGREP"
7036 ac_path_FGREP_max=$ac_count
7038 # 10*(2^10) chars as input seems more than enough
7039 test $ac_count -gt 10 && break
7041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7044 $ac_path_FGREP_found && break 3
7049 if test -z "$ac_cv_path_FGREP"; then
7050 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7053 ac_cv_path_FGREP=$FGREP
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7059 $as_echo "$ac_cv_path_FGREP" >&6; }
7060 FGREP="$ac_cv_path_FGREP"
7063 test -z "$GREP" && GREP=grep
7083 # Check whether --with-gnu-ld was given.
7084 if test "${with_gnu_ld+set}" = set; then :
7085 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7091 if test yes = "$GCC"; then
7092 # Check if gcc -print-prog-name=ld gives a path.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7094 $as_echo_n "checking for ld used by $CC... " >&6; }
7097 # gcc leaves a trailing carriage return, which upsets mingw
7098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7103 # Accept absolute paths.
7105 re_direlt='/[^/][^/]*/\.\./'
7106 # Canonicalize the pathname of ld
7107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7111 test -z "$LD" && LD=$ac_prog
7114 # If it fails, then pretend we aren't using GCC.
7118 # If it is relative, then search for the first ld in PATH.
7122 elif test yes = "$with_gnu_ld"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7124 $as_echo_n "checking for GNU ld... " >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7127 $as_echo_n "checking for non-GNU ld... " >&6; }
7129 if ${lt_cv_path_LD+:} false; then :
7130 $as_echo_n "(cached) " >&6
7132 if test -z "$LD"; then
7133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7134 for ac_dir in $PATH; do
7136 test -z "$ac_dir" && ac_dir=.
7137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7138 lt_cv_path_LD=$ac_dir/$ac_prog
7139 # Check to see if the program is GNU ld. I'd rather use --version,
7140 # but apparently some variants of GNU ld only accept -v.
7141 # Break only if it was the GNU/non-GNU ld that we prefer.
7142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7143 *GNU* | *'with BFD'*)
7144 test no != "$with_gnu_ld" && break
7147 test yes != "$with_gnu_ld" && break
7154 lt_cv_path_LD=$LD # Let the user override the test with a path.
7159 if test -n "$LD"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7161 $as_echo "$LD" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7166 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7169 if ${lt_cv_prog_gnu_ld+:} false; then :
7170 $as_echo_n "(cached) " >&6
7172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7173 case `$LD -v 2>&1 </dev/null` in
7174 *GNU* | *'with BFD'*)
7175 lt_cv_prog_gnu_ld=yes
7178 lt_cv_prog_gnu_ld=no
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7184 with_gnu_ld=$lt_cv_prog_gnu_ld
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7195 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7196 if ${lt_cv_path_NM+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 if test -n "$NM"; then
7200 # Let the user override the test.
7203 lt_nm_to_check=${ac_tool_prefix}nm
7204 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7205 lt_nm_to_check="$lt_nm_to_check nm"
7207 for lt_tmp_nm in $lt_nm_to_check; do
7208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7209 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7211 test -z "$ac_dir" && ac_dir=.
7212 tmp_nm=$ac_dir/$lt_tmp_nm
7213 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7214 # Check to see if the nm accepts a BSD-compat flag.
7215 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7216 # nm: unknown option "B" ignored
7217 # Tru64's nm complains that /dev/null is an invalid object file
7218 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7220 mingw*) lt_bad_file=conftest.nm/nofile ;;
7221 *) lt_bad_file=/dev/null ;;
7223 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7224 *$lt_bad_file* | *'Invalid file or object type'*)
7225 lt_cv_path_NM="$tmp_nm -B"
7229 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7231 lt_cv_path_NM="$tmp_nm -p"
7235 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7236 continue # so that we can try to find one that supports BSD flags
7245 : ${lt_cv_path_NM=no}
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7249 $as_echo "$lt_cv_path_NM" >&6; }
7250 if test no != "$lt_cv_path_NM"; then
7253 # Didn't find any BSD compatible name lister, look for dumpbin.
7254 if test -n "$DUMPBIN"; then :
7255 # Let the user override the test.
7257 if test -n "$ac_tool_prefix"; then
7258 for ac_prog in dumpbin "link -dump"
7260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_DUMPBIN+:} false; then :
7265 $as_echo_n "(cached) " >&6
7267 if test -n "$DUMPBIN"; then
7268 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 DUMPBIN=$ac_cv_prog_DUMPBIN
7288 if test -n "$DUMPBIN"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7290 $as_echo "$DUMPBIN" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7297 test -n "$DUMPBIN" && break
7300 if test -z "$DUMPBIN"; then
7301 ac_ct_DUMPBIN=$DUMPBIN
7302 for ac_prog in dumpbin "link -dump"
7304 # Extract the first word of "$ac_prog", so it can be a program name with args.
7305 set dummy $ac_prog; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7309 $as_echo_n "(cached) " >&6
7311 if test -n "$ac_ct_DUMPBIN"; then
7312 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7332 if test -n "$ac_ct_DUMPBIN"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7334 $as_echo "$ac_ct_DUMPBIN" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7341 test -n "$ac_ct_DUMPBIN" && break
7344 if test "x$ac_ct_DUMPBIN" = x; then
7347 case $cross_compiling:$ac_tool_warned in
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7353 DUMPBIN=$ac_ct_DUMPBIN
7357 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7359 DUMPBIN="$DUMPBIN -symbols -headers"
7367 if test : != "$DUMPBIN"; then
7371 test -z "$NM" && NM=nm
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7379 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7380 if ${lt_cv_nm_interface+:} false; then :
7381 $as_echo_n "(cached) " >&6
7383 lt_cv_nm_interface="BSD nm"
7384 echo "int some_variable = 0;" > conftest.$ac_ext
7385 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7386 (eval "$ac_compile" 2>conftest.err)
7387 cat conftest.err >&5
7388 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7389 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7390 cat conftest.err >&5
7391 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7392 cat conftest.out >&5
7393 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7394 lt_cv_nm_interface="MS dumpbin"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7399 $as_echo "$lt_cv_nm_interface" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7402 $as_echo_n "checking whether ln -s works... " >&6; }
7404 if test "$LN_S" = "ln -s"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7409 $as_echo "no, using $LN_S" >&6; }
7412 # find the maximum length of command line arguments
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7414 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7415 if ${lt_cv_sys_max_cmd_len+:} false; then :
7416 $as_echo_n "(cached) " >&6
7423 # On DJGPP, this test can blow up pretty badly due to problems in libc
7424 # (any single argument exceeding 2000 bytes causes a buffer overrun
7425 # during glob expansion). Even if it were fixed, the result of this
7426 # check would be larger than it should be.
7427 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7431 # Under GNU Hurd, this test is not required because there is
7432 # no limit to the length of command line arguments.
7433 # Libtool will interpret -1 as no limit whatsoever
7434 lt_cv_sys_max_cmd_len=-1;
7437 cygwin* | mingw* | cegcc*)
7438 # On Win9x/ME, this test blows up -- it succeeds, but takes
7439 # about 5 minutes as the teststring grows exponentially.
7440 # Worse, since 9x/ME are not pre-emptively multitasking,
7441 # you end up with a "frozen" computer, even though with patience
7442 # the test eventually succeeds (with a max line length of 256k).
7443 # Instead, let's just punt: use the minimum linelength reported by
7444 # all of the supported platforms: 8192 (on NT/2K/XP).
7445 lt_cv_sys_max_cmd_len=8192;
7449 # On MiNT this can take a long time and run out of memory.
7450 lt_cv_sys_max_cmd_len=8192;
7454 # On AmigaOS with pdksh, this test takes hours, literally.
7455 # So we just punt and use a minimum line length of 8192.
7456 lt_cv_sys_max_cmd_len=8192;
7459 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7460 # This has been around since 386BSD, at least. Likely further.
7461 if test -x /sbin/sysctl; then
7462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7463 elif test -x /usr/sbin/sysctl; then
7464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7468 # And add a safety zone
7469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7475 lt_cv_sys_max_cmd_len=196608
7479 # The test takes a long time on OS/2.
7480 lt_cv_sys_max_cmd_len=8192
7484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7486 # nice to cause kernel panics so lets avoid the loop below.
7487 # First set a reasonable default.
7488 lt_cv_sys_max_cmd_len=16384
7490 if test -x /sbin/sysconfig; then
7491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7497 lt_cv_sys_max_cmd_len=102400
7499 sysv5* | sco5v6* | sysv4.2uw2*)
7500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7501 if test -n "$kargmax"; then
7502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7504 lt_cv_sys_max_cmd_len=32768
7508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7509 if test -n "$lt_cv_sys_max_cmd_len" && \
7510 test undefined != "$lt_cv_sys_max_cmd_len"; then
7511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7514 # Make teststring a little bigger before we do anything with it.
7515 # a 1K string should be a reasonable start.
7516 for i in 1 2 3 4 5 6 7 8; do
7517 teststring=$teststring$teststring
7519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7520 # If test is not a shell built-in, we'll probably end up computing a
7521 # maximum length that is only half of the actual maximum length, but
7523 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7524 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7525 test 17 != "$i" # 1/2 MB should be enough
7528 teststring=$teststring$teststring
7530 # Only check the string length outside the loop.
7531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7533 # Add a significant safety factor because C++ compilers can tack on
7534 # massive amounts of additional arguments before passing them to the
7535 # linker. It appears as though 1/2 is a usable value.
7536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7543 if test -n "$lt_cv_sys_max_cmd_len"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7548 $as_echo "none" >&6; }
7550 max_cmd_len=$lt_cv_sys_max_cmd_len
7561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7571 # test EBCDIC or ASCII
7572 case `echo X|tr X '\101'` in
7573 A) # ASCII based system
7574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7575 lt_SP2NL='tr \040 \012'
7576 lt_NL2SP='tr \015\012 \040\040'
7578 *) # EBCDIC based system
7579 lt_SP2NL='tr \100 \n'
7580 lt_NL2SP='tr \r\n \100\100'
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7593 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7594 if ${lt_cv_to_host_file_cmd+:} false; then :
7595 $as_echo_n "(cached) " >&6
7600 *-*-mingw* ) # actually msys
7601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7606 * ) # otherwise, assume *nix
7607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7613 *-*-mingw* ) # actually msys
7614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7617 lt_cv_to_host_file_cmd=func_convert_file_noop
7619 * ) # otherwise, assume *nix
7620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7624 * ) # unhandled hosts (and "normal" native builds)
7625 lt_cv_to_host_file_cmd=func_convert_file_noop
7631 to_host_file_cmd=$lt_cv_to_host_file_cmd
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7633 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7640 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7641 if ${lt_cv_to_tool_file_cmd+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 #assume ordinary cross tools, or native build.
7645 lt_cv_to_tool_file_cmd=func_convert_file_noop
7649 *-*-mingw* ) # actually msys
7650 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7658 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7660 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7668 if ${lt_cv_ld_reload_flag+:} false; then :
7669 $as_echo_n "(cached) " >&6
7671 lt_cv_ld_reload_flag='-r'
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7675 reload_flag=$lt_cv_ld_reload_flag
7676 case $reload_flag in
7678 *) reload_flag=" $reload_flag" ;;
7680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7682 cygwin* | mingw* | pw32* | cegcc*)
7683 if test yes != "$GCC"; then
7688 if test yes = "$GCC"; then
7689 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_OBJDUMP+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$OBJDUMP"; then
7713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 OBJDUMP=$ac_cv_prog_OBJDUMP
7733 if test -n "$OBJDUMP"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7735 $as_echo "$OBJDUMP" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_OBJDUMP"; then
7744 ac_ct_OBJDUMP=$OBJDUMP
7745 # Extract the first word of "objdump", so it can be a program name with args.
7746 set dummy objdump; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 if test -n "$ac_ct_OBJDUMP"; then
7753 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7773 if test -n "$ac_ct_OBJDUMP"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7775 $as_echo "$ac_ct_OBJDUMP" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_OBJDUMP" = x; then
7784 case $cross_compiling:$ac_tool_warned in
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7790 OBJDUMP=$ac_ct_OBJDUMP
7793 OBJDUMP="$ac_cv_prog_OBJDUMP"
7796 test -z "$OBJDUMP" && OBJDUMP=objdump
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7807 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7808 if ${lt_cv_deplibs_check_method+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 lt_cv_file_magic_cmd='$MAGIC_CMD'
7812 lt_cv_file_magic_test_file=
7813 lt_cv_deplibs_check_method='unknown'
7814 # Need to set the preceding variable on all platforms that support
7815 # interlibrary dependencies.
7816 # 'none' -- dependencies not supported.
7817 # 'unknown' -- same as none, but documents that we really don't know.
7818 # 'pass_all' -- all dependencies passed with no checks.
7819 # 'test_compile' -- check by making test program.
7820 # 'file_magic [[regex]]' -- check by looking for files in library path
7821 # that responds to the $file_magic_cmd with a given extended regex.
7822 # If you have 'file' or equivalent on your system and you're not sure
7823 # whether 'pass_all' will *always* work, you probably want this one.
7827 lt_cv_deplibs_check_method=pass_all
7831 lt_cv_deplibs_check_method=pass_all
7835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7836 lt_cv_file_magic_cmd='/usr/bin/file -L'
7837 lt_cv_file_magic_test_file=/shlib/libc.so
7841 # func_win32_libid is a shell function defined in ltmain.sh
7842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7843 lt_cv_file_magic_cmd='func_win32_libid'
7847 # Base MSYS/MinGW do not provide the 'file' command needed by
7848 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7849 # unless we find 'file', for example because we are cross-compiling.
7850 if ( file / ) >/dev/null 2>&1; then
7851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7852 lt_cv_file_magic_cmd='func_win32_libid'
7854 # Keep this pattern in sync with the one in func_win32_libid.
7855 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7856 lt_cv_file_magic_cmd='$OBJDUMP -f'
7861 # use the weaker test based on 'objdump'. See mingw*.
7862 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7863 lt_cv_file_magic_cmd='$OBJDUMP -f'
7866 darwin* | rhapsody*)
7867 lt_cv_deplibs_check_method=pass_all
7870 freebsd* | dragonfly*)
7871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7874 # Not sure whether the presence of OpenBSD here was a mistake.
7875 # Let's accept both of them until this is cleared up.
7876 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7877 lt_cv_file_magic_cmd=/usr/bin/file
7878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7882 lt_cv_deplibs_check_method=pass_all
7887 lt_cv_deplibs_check_method=pass_all
7890 hpux10.20* | hpux11*)
7891 lt_cv_file_magic_cmd=/usr/bin/file
7894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7898 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]'
7899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7913 irix5* | irix6* | nonstopux*)
7915 *-32|*"-32 ") libmagic=32-bit;;
7916 *-n32|*"-n32 ") libmagic=N32;;
7917 *-64|*"-64 ") libmagic=64-bit;;
7918 *) libmagic=never-match;;
7920 lt_cv_deplibs_check_method=pass_all
7923 # This must be glibc/ELF.
7924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7925 lt_cv_deplibs_check_method=pass_all
7929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7938 lt_cv_file_magic_cmd=/usr/bin/file
7939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7943 lt_cv_deplibs_check_method=pass_all
7947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7954 osf3* | osf4* | osf5*)
7955 lt_cv_deplibs_check_method=pass_all
7959 lt_cv_deplibs_check_method=pass_all
7963 lt_cv_deplibs_check_method=pass_all
7966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7967 lt_cv_deplibs_check_method=pass_all
7971 case $host_vendor in
7973 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]'
7974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7977 lt_cv_deplibs_check_method=pass_all
7980 lt_cv_file_magic_cmd='/bin/file'
7981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7984 lt_cv_file_magic_cmd='/bin/file'
7985 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7986 lt_cv_file_magic_test_file=/lib/libc.so
7989 lt_cv_deplibs_check_method=pass_all
7992 lt_cv_deplibs_check_method=pass_all
7998 lt_cv_deplibs_check_method=pass_all
8001 lt_cv_deplibs_check_method=pass_all
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8007 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8011 if test "$build" = "$host"; then
8014 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8017 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8023 file_magic_cmd=$lt_cv_file_magic_cmd
8024 deplibs_check_method=$lt_cv_deplibs_check_method
8025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8048 if test -n "$ac_tool_prefix"; then
8049 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8050 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_DLLTOOL+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 if test -n "$DLLTOOL"; then
8057 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 DLLTOOL=$ac_cv_prog_DLLTOOL
8077 if test -n "$DLLTOOL"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8079 $as_echo "$DLLTOOL" >&6; }
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8087 if test -z "$ac_cv_prog_DLLTOOL"; then
8088 ac_ct_DLLTOOL=$DLLTOOL
8089 # Extract the first word of "dlltool", so it can be a program name with args.
8090 set dummy dlltool; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8094 $as_echo_n "(cached) " >&6
8096 if test -n "$ac_ct_DLLTOOL"; then
8097 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8117 if test -n "$ac_ct_DLLTOOL"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8119 $as_echo "$ac_ct_DLLTOOL" >&6; }
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8125 if test "x$ac_ct_DLLTOOL" = x; then
8128 case $cross_compiling:$ac_tool_warned in
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132 ac_tool_warned=yes ;;
8134 DLLTOOL=$ac_ct_DLLTOOL
8137 DLLTOOL="$ac_cv_prog_DLLTOOL"
8140 test -z "$DLLTOOL" && DLLTOOL=dlltool
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8152 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8153 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 lt_cv_sharedlib_from_linklib_cmd='unknown'
8159 cygwin* | mingw* | pw32* | cegcc*)
8160 # two different shell functions defined in ltmain.sh;
8161 # decide which one to use based on capabilities of $DLLTOOL
8162 case `$DLLTOOL --help 2>&1` in
8163 *--identify-strict*)
8164 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8167 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8172 # fallback: assume linklib IS sharedlib
8173 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8179 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8180 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8181 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8189 if test -n "$ac_tool_prefix"; then
8192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if ${ac_cv_prog_AR+:} false; then :
8197 $as_echo_n "(cached) " >&6
8199 if test -n "$AR"; then
8200 ac_cv_prog_AR="$AR" # Let the user override the test.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 if test -n "$AR"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8222 $as_echo "$AR" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8229 test -n "$AR" && break
8232 if test -z "$AR"; then
8236 # Extract the first word of "$ac_prog", so it can be a program name with args.
8237 set dummy $ac_prog; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 if test -n "$ac_ct_AR"; then
8244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_ac_ct_AR="$ac_prog"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8264 if test -n "$ac_ct_AR"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8266 $as_echo "$ac_ct_AR" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8273 test -n "$ac_ct_AR" && break
8276 if test "x$ac_ct_AR" = x; then
8279 case $cross_compiling:$ac_tool_warned in
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8303 $as_echo_n "checking for archiver @FILE support... " >&6; }
8304 if ${lt_cv_ar_at_file+:} false; then :
8305 $as_echo_n "(cached) " >&6
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8319 if ac_fn_c_try_compile "$LINENO"; then :
8320 echo conftest.$ac_objext > conftest.lst
8321 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8323 (eval $lt_ar_try) 2>&5
8325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8326 test $ac_status = 0; }
8327 if test 0 -eq "$ac_status"; then
8328 # Ensure the archiver fails upon bogus file names.
8329 rm -f conftest.$ac_objext libconftest.a
8330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8331 (eval $lt_ar_try) 2>&5
8333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8334 test $ac_status = 0; }
8335 if test 0 -ne "$ac_status"; then
8339 rm -f conftest.* libconftest.a
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8346 $as_echo "$lt_cv_ar_at_file" >&6; }
8348 if test no = "$lt_cv_ar_at_file"; then
8351 archiver_list_spec=$lt_cv_ar_at_file
8360 if test -n "$ac_tool_prefix"; then
8361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}strip; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_STRIP+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 if test -n "$STRIP"; then
8369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 STRIP=$ac_cv_prog_STRIP
8389 if test -n "$STRIP"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8391 $as_echo "$STRIP" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 if test -z "$ac_cv_prog_STRIP"; then
8401 # Extract the first word of "strip", so it can be a program name with args.
8402 set dummy strip; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 if test -n "$ac_ct_STRIP"; then
8409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_ac_ct_STRIP="strip"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8429 if test -n "$ac_ct_STRIP"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8431 $as_echo "$ac_ct_STRIP" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8437 if test "x$ac_ct_STRIP" = x; then
8440 case $cross_compiling:$ac_tool_warned in
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8444 ac_tool_warned=yes ;;
8449 STRIP="$ac_cv_prog_STRIP"
8452 test -z "$STRIP" && STRIP=:
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_RANLIB+:} false; then :
8465 $as_echo_n "(cached) " >&6
8467 if test -n "$RANLIB"; then
8468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8490 $as_echo "$RANLIB" >&6; }
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499 ac_ct_RANLIB=$RANLIB
8500 # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8505 $as_echo_n "(cached) " >&6
8507 if test -n "$ac_ct_RANLIB"; then
8508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8517 ac_cv_prog_ac_ct_RANLIB="ranlib"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8530 $as_echo "$ac_ct_RANLIB" >&6; }
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8536 if test "x$ac_ct_RANLIB" = x; then
8539 case $cross_compiling:$ac_tool_warned in
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8543 ac_tool_warned=yes ;;
8545 RANLIB=$ac_ct_RANLIB
8548 RANLIB="$ac_cv_prog_RANLIB"
8551 test -z "$RANLIB" && RANLIB=:
8558 # Determine commands to create old-style static archives.
8559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8560 old_postinstall_cmds='chmod 644 $oldlib'
8561 old_postuninstall_cmds=
8563 if test -n "$RANLIB"; then
8566 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8572 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8577 lock_old_archive_extraction=yes ;;
8579 lock_old_archive_extraction=no ;;
8602 for ac_prog in gawk mawk nawk awk
8604 # Extract the first word of "$ac_prog", so it can be a program name with args.
8605 set dummy $ac_prog; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_AWK+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 if test -n "$AWK"; then
8612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 test -z "$as_dir" && as_dir=.
8619 for ac_exec_ext in '' $ac_executable_extensions; do
8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621 ac_cv_prog_AWK="$ac_prog"
8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 if test -n "$AWK"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8634 $as_echo "$AWK" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8641 test -n "$AWK" && break
8662 # If no C compiler was specified, use CC.
8665 # If no C compiler flags were specified, use CFLAGS.
8666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8668 # Allow CC to be a program name with arguments.
8672 # Check for command to grab the raw symbol name followed by C symbol from nm.
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8676 $as_echo_n "(cached) " >&6
8679 # These are sane defaults that work on at least a few old systems.
8680 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8682 # Character class describing NM global symbol codes.
8683 symcode='[BCDEGRST]'
8685 # Regexp to match symbols that can be accessed directly from C.
8686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8688 # Define system-specific variables.
8693 cygwin* | mingw* | pw32* | cegcc*)
8694 symcode='[ABCDGISTW]'
8697 if test ia64 = "$host_cpu"; then
8698 symcode='[ABCDEGRST]'
8702 symcode='[BCDEGRST]'
8705 symcode='[BCDEGQRST]'
8716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8724 # If we're using GNU nm, then use its standard symbol codes.
8725 case `$NM -V 2>&1` in
8726 *GNU* | *'with BFD'*)
8727 symcode='[ABCDGIRSTW]' ;;
8730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8731 # Gets list of data symbols to import.
8732 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8733 # Adjust the below global symbol transforms to fixup imported variables.
8734 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8735 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8736 lt_c_name_lib_hook="\
8737 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8738 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8740 # Disable hooks by default.
8741 lt_cv_sys_global_symbol_to_import=
8747 # Transform an extracted symbol line into a proper C declaration.
8748 # Some systems (esp. on ia64) link data and code symbols differently,
8749 # so use this general approach.
8750 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8752 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8753 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8755 # Transform an extracted symbol line into symbol name and symbol address
8756 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8758 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8759 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8761 # Transform an extracted symbol line into symbol name with lib prefix and
8763 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8764 $lt_c_name_lib_hook\
8765 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8766 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8767 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8769 # Handle CRLF in mingw tool chain
8773 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8777 # Try without a prefix underscore, then with it.
8778 for ac_symprfx in "" "_"; do
8780 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8781 symxfrm="\\1 $ac_symprfx\\2 \\2"
8783 # Write the raw and C identifiers.
8784 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8785 # Fake it for dumpbin and say T for any non-static function,
8786 # D for any global variable and I for any imported variable.
8787 # Also find C++ and __fastcall symbols from MSVC++,
8788 # which start with @ or ?.
8789 lt_cv_sys_global_symbol_pipe="$AWK '"\
8790 " {last_section=section; section=\$ 3};"\
8791 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8792 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8793 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8794 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8795 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8796 " \$ 0!~/External *\|/{next};"\
8797 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8798 " {if(hide[section]) next};"\
8799 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8800 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8801 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8802 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8803 " ' prfx=^$ac_symprfx"
8805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8807 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8809 # Check to see that the pipe works correctly.
8813 cat > conftest.$ac_ext <<_LT_EOF
8818 void nm_test_func(void);
8819 void nm_test_func(void){}
8823 int main(){nm_test_var='a';nm_test_func();return(0);}
8826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8827 (eval $ac_compile) 2>&5
8829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8830 test $ac_status = 0; }; then
8831 # Now try to grab the symbols.
8833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8834 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837 test $ac_status = 0; } && test -s "$nlist"; then
8838 # Try sorting and uniquifying the output.
8839 if sort "$nlist" | uniq > "$nlist"T; then
8840 mv -f "$nlist"T "$nlist"
8845 # Make sure that we snagged all the symbols we need.
8846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8848 cat <<_LT_EOF > conftest.$ac_ext
8849 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8850 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8851 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8852 relocations are performed -- see ld's documentation on pseudo-relocs. */
8853 # define LT_DLSYM_CONST
8854 #elif defined __osf__
8855 /* This system does not cope well with relocations in const data. */
8856 # define LT_DLSYM_CONST
8858 # define LT_DLSYM_CONST const
8866 # Now generate the symbol file.
8867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8869 cat <<_LT_EOF >> conftest.$ac_ext
8871 /* The mapping between symbol names and symbols. */
8872 LT_DLSYM_CONST struct {
8876 lt__PROGRAM__LTX_preloaded_symbols[] =
8878 { "@PROGRAM@", (void *) 0 },
8880 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8881 cat <<\_LT_EOF >> conftest.$ac_ext
8885 /* This works around a problem in FreeBSD linker */
8886 #ifdef FREEBSD_WORKAROUND
8887 static const void *lt_preloaded_setup() {
8888 return lt__PROGRAM__LTX_preloaded_symbols;
8896 # Now try linking the two files.
8897 mv conftest.$ac_objext conftstm.$ac_objext
8898 lt_globsym_save_LIBS=$LIBS
8899 lt_globsym_save_CFLAGS=$CFLAGS
8900 LIBS=conftstm.$ac_objext
8901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8903 (eval $ac_link) 2>&5
8905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8906 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8909 LIBS=$lt_globsym_save_LIBS
8910 CFLAGS=$lt_globsym_save_CFLAGS
8912 echo "cannot find nm_test_func in $nlist" >&5
8915 echo "cannot find nm_test_var in $nlist" >&5
8918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8921 echo "$progname: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8924 rm -rf conftest* conftst*
8926 # Do not use the global_symbol_pipe unless it works.
8927 if test yes = "$pipe_works"; then
8930 lt_cv_sys_global_symbol_pipe=
8936 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8937 lt_cv_sys_global_symbol_to_cdecl=
8939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8941 $as_echo "failed" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8944 $as_echo "ok" >&6; }
8947 # Response file support.
8948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8949 nm_file_list_spec='@'
8950 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8951 nm_file_list_spec='@'
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8991 $as_echo_n "checking for sysroot... " >&6; }
8993 # Check whether --with-sysroot was given.
8994 if test "${with_sysroot+set}" = set; then :
8995 withval=$with_sysroot;
9002 case $with_sysroot in #(
9004 if test yes = "$GCC"; then
9005 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9009 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9015 $as_echo "$with_sysroot" >&6; }
9016 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9021 $as_echo "${lt_sysroot:-no}" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9028 $as_echo_n "checking for a working dd... " >&6; }
9029 if ${ac_cv_path_lt_DD+:} false; then :
9030 $as_echo_n "(cached) " >&6
9032 printf 0123456789abcdef0123456789abcdef >conftest.i
9033 cat conftest.i conftest.i >conftest2.i
9035 if test -z "$lt_DD"; then
9036 ac_path_lt_DD_found=false
9037 # Loop through the user's path and test for each of PROGNAME-LIST
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir=.
9043 for ac_prog in dd; do
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9046 as_fn_executable_p "$ac_path_lt_DD" || continue
9047 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9048 cmp -s conftest.i conftest.out \
9049 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9051 $ac_path_lt_DD_found && break 3
9056 if test -z "$ac_cv_path_lt_DD"; then
9060 ac_cv_path_lt_DD=$lt_DD
9063 rm -f conftest.i conftest2.i conftest.out
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9066 $as_echo "$ac_cv_path_lt_DD" >&6; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9070 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9071 if ${lt_cv_truncate_bin+:} false; then :
9072 $as_echo_n "(cached) " >&6
9074 printf 0123456789abcdef0123456789abcdef >conftest.i
9075 cat conftest.i conftest.i >conftest2.i
9077 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9078 cmp -s conftest.i conftest.out \
9079 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9081 rm -f conftest.i conftest2.i conftest.out
9082 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9085 $as_echo "$lt_cv_truncate_bin" >&6; }
9093 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9096 for cc_temp in $*""; do
9098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9104 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9107 # Check whether --enable-libtool-lock was given.
9108 if test "${enable_libtool_lock+set}" = set; then :
9109 enableval=$enable_libtool_lock;
9112 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9114 # Some flags need to be propagated to the compiler or linker for good
9118 # Find out what ABI is being produced by ac_compile, and set mode
9119 # options accordingly.
9120 echo 'int i;' > conftest.$ac_ext
9121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9122 (eval $ac_compile) 2>&5
9124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9125 test $ac_status = 0; }; then
9126 case `/usr/bin/file conftest.$ac_objext` in
9138 # Find out what ABI is being produced by ac_compile, and set linker
9139 # options accordingly.
9140 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9142 (eval $ac_compile) 2>&5
9144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9145 test $ac_status = 0; }; then
9146 if test yes = "$lt_cv_prog_gnu_ld"; then
9147 case `/usr/bin/file conftest.$ac_objext` in
9149 LD="${LD-ld} -melf32bsmip"
9152 LD="${LD-ld} -melf32bmipn32"
9155 LD="${LD-ld} -melf64bmip"
9159 case `/usr/bin/file conftest.$ac_objext` in
9176 # Find out what ABI is being produced by ac_compile, and set linker
9177 # options accordingly.
9178 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9180 (eval $ac_compile) 2>&5
9182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9183 test $ac_status = 0; }; then
9185 case `/usr/bin/file conftest.$ac_objext` in
9193 case `/usr/bin/file conftest.$ac_objext` in
9195 emul="${emul}btsmip"
9198 emul="${emul}ltsmip"
9201 case `/usr/bin/file conftest.$ac_objext` in
9206 LD="${LD-ld} -m $emul"
9211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9213 # Find out what ABI is being produced by ac_compile, and set linker
9214 # options accordingly. Note that the listed cases only cover the
9215 # situations where additional linker options are needed (such as when
9216 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9217 # vice versa); the common cases where no linker options are needed do
9218 # not appear in the list.
9219 echo 'int i;' > conftest.$ac_ext
9220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9221 (eval $ac_compile) 2>&5
9223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9224 test $ac_status = 0; }; then
9225 case `/usr/bin/file conftest.o` in
9228 x86_64-*kfreebsd*-gnu)
9229 LD="${LD-ld} -m elf_i386_fbsd"
9232 case `/usr/bin/file conftest.o` in
9234 LD="${LD-ld} -m elf32_x86_64"
9237 LD="${LD-ld} -m elf_i386"
9241 powerpc64le-*linux*)
9242 LD="${LD-ld} -m elf32lppclinux"
9245 LD="${LD-ld} -m elf32ppclinux"
9248 LD="${LD-ld} -m elf_s390"
9251 LD="${LD-ld} -m elf32_sparc"
9257 x86_64-*kfreebsd*-gnu)
9258 LD="${LD-ld} -m elf_x86_64_fbsd"
9261 LD="${LD-ld} -m elf_x86_64"
9264 LD="${LD-ld} -m elf64lppc"
9267 LD="${LD-ld} -m elf64ppc"
9269 s390*-*linux*|s390*-*tpf*)
9270 LD="${LD-ld} -m elf64_s390"
9273 LD="${LD-ld} -m elf64_sparc"
9283 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9285 CFLAGS="$CFLAGS -belf"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9287 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9288 if ${lt_cv_cc_needs_belf+:} false; then :
9289 $as_echo_n "(cached) " >&6
9292 ac_cpp='$CPP $CPPFLAGS'
9293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9308 if ac_fn_c_try_link "$LINENO"; then :
9309 lt_cv_cc_needs_belf=yes
9311 lt_cv_cc_needs_belf=no
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9316 ac_cpp='$CPP $CPPFLAGS'
9317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9323 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9324 if test yes != "$lt_cv_cc_needs_belf"; then
9325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9330 # Find out what ABI is being produced by ac_compile, and set linker
9331 # options accordingly.
9332 echo 'int i;' > conftest.$ac_ext
9333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9334 (eval $ac_compile) 2>&5
9336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9337 test $ac_status = 0; }; then
9338 case `/usr/bin/file conftest.o` in
9340 case $lt_cv_prog_gnu_ld in
9343 i?86-*-solaris*|x86_64-*-solaris*)
9344 LD="${LD-ld} -m elf_x86_64"
9347 LD="${LD-ld} -m elf64_sparc"
9350 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9351 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9356 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9368 need_locks=$enable_libtool_lock
9370 if test -n "$ac_tool_prefix"; then
9371 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9372 set dummy ${ac_tool_prefix}mt; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9376 $as_echo_n "(cached) " >&6
9378 if test -n "$MANIFEST_TOOL"; then
9379 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9399 if test -n "$MANIFEST_TOOL"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9401 $as_echo "$MANIFEST_TOOL" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9409 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9410 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9411 # Extract the first word of "mt", so it can be a program name with args.
9412 set dummy mt; ac_word=$2
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414 $as_echo_n "checking for $ac_word... " >&6; }
9415 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9416 $as_echo_n "(cached) " >&6
9418 if test -n "$ac_ct_MANIFEST_TOOL"; then
9419 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
9427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9428 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9439 if test -n "$ac_ct_MANIFEST_TOOL"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9441 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9447 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9450 case $cross_compiling:$ac_tool_warned in
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9454 ac_tool_warned=yes ;;
9456 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9459 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9462 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9464 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9465 if ${lt_cv_path_mainfest_tool+:} false; then :
9466 $as_echo_n "(cached) " >&6
9468 lt_cv_path_mainfest_tool=no
9469 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9470 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9471 cat conftest.err >&5
9472 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9473 lt_cv_path_mainfest_tool=yes
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9478 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9479 if test yes != "$lt_cv_path_mainfest_tool"; then
9489 rhapsody* | darwin*)
9490 if test -n "$ac_tool_prefix"; then
9491 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9492 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9496 $as_echo_n "(cached) " >&6
9498 if test -n "$DSYMUTIL"; then
9499 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9519 if test -n "$DSYMUTIL"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9521 $as_echo "$DSYMUTIL" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9529 if test -z "$ac_cv_prog_DSYMUTIL"; then
9530 ac_ct_DSYMUTIL=$DSYMUTIL
9531 # Extract the first word of "dsymutil", so it can be a program name with args.
9532 set dummy dsymutil; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9536 $as_echo_n "(cached) " >&6
9538 if test -n "$ac_ct_DSYMUTIL"; then
9539 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9548 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9559 if test -n "$ac_ct_DSYMUTIL"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9561 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9567 if test "x$ac_ct_DSYMUTIL" = x; then
9570 case $cross_compiling:$ac_tool_warned in
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9574 ac_tool_warned=yes ;;
9576 DSYMUTIL=$ac_ct_DSYMUTIL
9579 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9582 if test -n "$ac_tool_prefix"; then
9583 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9584 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_prog_NMEDIT+:} false; then :
9588 $as_echo_n "(cached) " >&6
9590 if test -n "$NMEDIT"; then
9591 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 NMEDIT=$ac_cv_prog_NMEDIT
9611 if test -n "$NMEDIT"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9613 $as_echo "$NMEDIT" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9621 if test -z "$ac_cv_prog_NMEDIT"; then
9622 ac_ct_NMEDIT=$NMEDIT
9623 # Extract the first word of "nmedit", so it can be a program name with args.
9624 set dummy nmedit; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9628 $as_echo_n "(cached) " >&6
9630 if test -n "$ac_ct_NMEDIT"; then
9631 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9640 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9651 if test -n "$ac_ct_NMEDIT"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9653 $as_echo "$ac_ct_NMEDIT" >&6; }
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9659 if test "x$ac_ct_NMEDIT" = x; then
9662 case $cross_compiling:$ac_tool_warned in
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9666 ac_tool_warned=yes ;;
9668 NMEDIT=$ac_ct_NMEDIT
9671 NMEDIT="$ac_cv_prog_NMEDIT"
9674 if test -n "$ac_tool_prefix"; then
9675 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9676 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_prog_LIPO+:} false; then :
9680 $as_echo_n "(cached) " >&6
9682 if test -n "$LIPO"; then
9683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 LIPO=$ac_cv_prog_LIPO
9703 if test -n "$LIPO"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9705 $as_echo "$LIPO" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9713 if test -z "$ac_cv_prog_LIPO"; then
9715 # Extract the first word of "lipo", so it can be a program name with args.
9716 set dummy lipo; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9720 $as_echo_n "(cached) " >&6
9722 if test -n "$ac_ct_LIPO"; then
9723 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732 ac_cv_prog_ac_ct_LIPO="lipo"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9743 if test -n "$ac_ct_LIPO"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9745 $as_echo "$ac_ct_LIPO" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9751 if test "x$ac_ct_LIPO" = x; then
9754 case $cross_compiling:$ac_tool_warned in
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9758 ac_tool_warned=yes ;;
9763 LIPO="$ac_cv_prog_LIPO"
9766 if test -n "$ac_tool_prefix"; then
9767 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9768 set dummy ${ac_tool_prefix}otool; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_prog_OTOOL+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 if test -n "$OTOOL"; then
9775 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9784 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 OTOOL=$ac_cv_prog_OTOOL
9795 if test -n "$OTOOL"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9797 $as_echo "$OTOOL" >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9805 if test -z "$ac_cv_prog_OTOOL"; then
9807 # Extract the first word of "otool", so it can be a program name with args.
9808 set dummy otool; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9812 $as_echo_n "(cached) " >&6
9814 if test -n "$ac_ct_OTOOL"; then
9815 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_ac_ct_OTOOL="otool"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9835 if test -n "$ac_ct_OTOOL"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9837 $as_echo "$ac_ct_OTOOL" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9843 if test "x$ac_ct_OTOOL" = x; then
9846 case $cross_compiling:$ac_tool_warned in
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9850 ac_tool_warned=yes ;;
9855 OTOOL="$ac_cv_prog_OTOOL"
9858 if test -n "$ac_tool_prefix"; then
9859 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9860 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_OTOOL64+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 if test -n "$OTOOL64"; then
9867 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 OTOOL64=$ac_cv_prog_OTOOL64
9887 if test -n "$OTOOL64"; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9889 $as_echo "$OTOOL64" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9897 if test -z "$ac_cv_prog_OTOOL64"; then
9898 ac_ct_OTOOL64=$OTOOL64
9899 # Extract the first word of "otool64", so it can be a program name with args.
9900 set dummy otool64; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9904 $as_echo_n "(cached) " >&6
9906 if test -n "$ac_ct_OTOOL64"; then
9907 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 test -z "$as_dir" && as_dir=.
9914 for ac_exec_ext in '' $ac_executable_extensions; do
9915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916 ac_cv_prog_ac_ct_OTOOL64="otool64"
9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9927 if test -n "$ac_ct_OTOOL64"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9929 $as_echo "$ac_ct_OTOOL64" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9935 if test "x$ac_ct_OTOOL64" = x; then
9938 case $cross_compiling:$ac_tool_warned in
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9942 ac_tool_warned=yes ;;
9944 OTOOL64=$ac_ct_OTOOL64
9947 OTOOL64="$ac_cv_prog_OTOOL64"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9977 $as_echo_n "checking for -single_module linker flag... " >&6; }
9978 if ${lt_cv_apple_cc_single_mod+:} false; then :
9979 $as_echo_n "(cached) " >&6
9981 lt_cv_apple_cc_single_mod=no
9982 if test -z "$LT_MULTI_MODULE"; then
9983 # By default we will add the -single_module flag. You can override
9984 # by either setting the environment variable LT_MULTI_MODULE
9985 # non-empty at configure time, or by adding -multi_module to the
9987 rm -rf libconftest.dylib*
9988 echo "int foo(void){return 1;}" > conftest.c
9989 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9990 -dynamiclib -Wl,-single_module conftest.c" >&5
9991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9992 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9994 # If there is a non-empty error log, and "single_module"
9995 # appears in it, assume the flag caused a linker warning
9996 if test -s conftest.err && $GREP single_module conftest.err; then
9997 cat conftest.err >&5
9998 # Otherwise, if the output was created with a 0 exit code from
9999 # the compiler, it worked.
10000 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10001 lt_cv_apple_cc_single_mod=yes
10003 cat conftest.err >&5
10005 rm -rf libconftest.dylib*
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10010 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10013 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10014 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10015 $as_echo_n "(cached) " >&6
10017 lt_cv_ld_exported_symbols_list=no
10018 save_LDFLAGS=$LDFLAGS
10019 echo "_main" > conftest.sym
10020 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10032 if ac_fn_c_try_link "$LINENO"; then :
10033 lt_cv_ld_exported_symbols_list=yes
10035 lt_cv_ld_exported_symbols_list=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LDFLAGS=$save_LDFLAGS
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10043 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10046 $as_echo_n "checking for -force_load linker flag... " >&6; }
10047 if ${lt_cv_ld_force_load+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 lt_cv_ld_force_load=no
10051 cat > conftest.c << _LT_EOF
10052 int forced_loaded() { return 2;}
10054 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10055 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10056 echo "$AR cru libconftest.a conftest.o" >&5
10057 $AR cru libconftest.a conftest.o 2>&5
10058 echo "$RANLIB libconftest.a" >&5
10059 $RANLIB libconftest.a 2>&5
10060 cat > conftest.c << _LT_EOF
10061 int main() { return 0;}
10063 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10064 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10066 if test -s conftest.err && $GREP force_load conftest.err; then
10067 cat conftest.err >&5
10068 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10069 lt_cv_ld_force_load=yes
10071 cat conftest.err >&5
10073 rm -f conftest.err libconftest.a conftest conftest.c
10074 rm -rf conftest.dSYM
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10078 $as_echo "$lt_cv_ld_force_load" >&6; }
10080 rhapsody* | darwin1.[012])
10081 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10083 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10084 darwin*) # darwin 5.x on
10085 # if running on 10.5 or later, the deployment target defaults
10086 # to the OS version, if on x86, and 10.4, the deployment
10087 # target defaults to 10.4. Don't you love it?
10088 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10089 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10090 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10092 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10094 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10098 if test yes = "$lt_cv_apple_cc_single_mod"; then
10099 _lt_dar_single_mod='$single_module'
10101 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10102 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10104 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10106 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10107 _lt_dsymutil='~$DSYMUTIL $lib || :'
10114 # func_munge_path_list VARIABLE PATH
10115 # -----------------------------------
10116 # VARIABLE is name of variable containing _space_ separated list of
10117 # directories to be munged by the contents of PATH, which is string
10120 # string "DIR[ DIR]" will be prepended to VARIABLE
10122 # string "DIR[ DIR]" will be appended to VARIABLE
10123 # "DIRP[:DIRP]::[DIRA:]DIRA"
10124 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10125 # "DIRA[ DIRA]" will be appended to VARIABLE
10127 # VARIABLE will be replaced by "DIR[ DIR]"
10128 func_munge_path_list ()
10134 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10137 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10140 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10141 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10144 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10149 for ac_header in dlfcn.h
10151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10153 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10154 cat >>confdefs.h <<_ACEOF
10155 #define HAVE_DLFCN_H 1
10175 enable_win32_dll=no
10178 # Check whether --enable-shared was given.
10179 if test "${enable_shared+set}" = set; then :
10180 enableval=$enable_shared; p=${PACKAGE-default}
10182 yes) enable_shared=yes ;;
10183 no) enable_shared=no ;;
10186 # Look at the argument we got. We use all the common list separators.
10187 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10188 for pkg in $enableval; do
10190 if test "X$pkg" = "X$p"; then
10209 # Check whether --enable-static was given.
10210 if test "${enable_static+set}" = set; then :
10211 enableval=$enable_static; p=${PACKAGE-default}
10213 yes) enable_static=yes ;;
10214 no) enable_static=no ;;
10217 # Look at the argument we got. We use all the common list separators.
10218 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10219 for pkg in $enableval; do
10221 if test "X$pkg" = "X$p"; then
10241 # Check whether --with-pic was given.
10242 if test "${with_pic+set}" = set; then :
10243 withval=$with_pic; lt_p=${PACKAGE-default}
10245 yes|no) pic_mode=$withval ;;
10248 # Look at the argument we got. We use all the common list separators.
10249 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10250 for lt_pkg in $withval; do
10252 if test "X$lt_pkg" = "X$lt_p"; then
10270 # Check whether --enable-fast-install was given.
10271 if test "${enable_fast_install+set}" = set; then :
10272 enableval=$enable_fast_install; p=${PACKAGE-default}
10274 yes) enable_fast_install=yes ;;
10275 no) enable_fast_install=no ;;
10277 enable_fast_install=no
10278 # Look at the argument we got. We use all the common list separators.
10279 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10280 for pkg in $enableval; do
10282 if test "X$pkg" = "X$p"; then
10283 enable_fast_install=yes
10290 enable_fast_install=yes
10300 shared_archive_member_spec=
10301 case $host,$enable_shared in
10302 power*-*-aix[5-9]*,yes)
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10304 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10306 # Check whether --with-aix-soname was given.
10307 if test "${with_aix_soname+set}" = set; then :
10308 withval=$with_aix_soname; case $withval in
10312 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10315 lt_cv_with_aix_soname=$with_aix_soname
10317 if ${lt_cv_with_aix_soname+:} false; then :
10318 $as_echo_n "(cached) " >&6
10320 lt_cv_with_aix_soname=aix
10323 with_aix_soname=$lt_cv_with_aix_soname
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10327 $as_echo "$with_aix_soname" >&6; }
10328 if test aix != "$with_aix_soname"; then
10329 # For the AIX way of multilib, we name the shared archive member
10330 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10331 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10332 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10333 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10334 if test 64 = "${OBJECT_MODE-32}"; then
10335 shared_archive_member_spec=shr_64
10337 shared_archive_member_spec=shr
10342 with_aix_soname=aix
10355 # This can be used to rebuild libtool when needed
10356 LIBTOOL_DEPS=$ltmain
10358 # Always use our own libtool.
10359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10390 test -z "$LN_S" && LN_S="ln -s"
10405 if test -n "${ZSH_VERSION+set}"; then
10406 setopt NO_GLOB_SUBST
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10410 $as_echo_n "checking for objdir... " >&6; }
10411 if ${lt_cv_objdir+:} false; then :
10412 $as_echo_n "(cached) " >&6
10414 rm -f .libs 2>/dev/null
10415 mkdir .libs 2>/dev/null
10416 if test -d .libs; then
10419 # MS-DOS does not allow filenames that begin with a dot.
10422 rmdir .libs 2>/dev/null
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10425 $as_echo "$lt_cv_objdir" >&6; }
10426 objdir=$lt_cv_objdir
10432 cat >>confdefs.h <<_ACEOF
10433 #define LT_OBJDIR "$lt_cv_objdir/"
10441 # AIX sometimes has problems with the GCC collect2 program. For some
10442 # reason, if we set the COLLECT_NAMES environment variable, the problems
10443 # vanish in a puff of smoke.
10444 if test set != "${COLLECT_NAMES+set}"; then
10446 export COLLECT_NAMES
10451 # Global variables:
10453 can_build_shared=yes
10455 # All known linkers require a '.a' archive for static linking (except MSVC,
10456 # which needs '.lib').
10459 with_gnu_ld=$lt_cv_prog_gnu_ld
10464 # Set sane defaults for various variables
10465 test -z "$CC" && CC=cc
10466 test -z "$LTCC" && LTCC=$CC
10467 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10468 test -z "$LD" && LD=ld
10469 test -z "$ac_objext" && ac_objext=o
10471 func_cc_basename $compiler
10472 cc_basename=$func_cc_basename_result
10475 # Only perform the check for file, if the check method requires it
10476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10477 case $deplibs_check_method in
10479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10481 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10483 $as_echo_n "(cached) " >&6
10487 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10490 lt_save_MAGIC_CMD=$MAGIC_CMD
10491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10493 for ac_dir in $ac_dummy; do
10495 test -z "$ac_dir" && ac_dir=.
10496 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10497 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10498 if test -n "$file_magic_test_file"; then
10499 case $deplibs_check_method in
10501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10504 $EGREP "$file_magic_regex" > /dev/null; then
10509 *** Warning: the command libtool uses to detect shared libraries,
10510 *** $file_magic_cmd, produces output that libtool cannot recognize.
10511 *** The result is that libtool may fail to recognize shared libraries
10512 *** as such. This will affect the creation of libtool libraries that
10513 *** depend on shared libraries, but programs linked with such libtool
10514 *** libraries will work regardless of this problem. Nevertheless, you
10515 *** may want to report the problem to your system manager and/or to
10516 *** bug-libtool@gnu.org
10526 MAGIC_CMD=$lt_save_MAGIC_CMD
10531 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10532 if test -n "$MAGIC_CMD"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10534 $as_echo "$MAGIC_CMD" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10544 if test -z "$lt_cv_path_MAGIC_CMD"; then
10545 if test -n "$ac_tool_prefix"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10547 $as_echo_n "checking for file... " >&6; }
10548 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10549 $as_echo_n "(cached) " >&6
10553 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10556 lt_save_MAGIC_CMD=$MAGIC_CMD
10557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10559 for ac_dir in $ac_dummy; do
10561 test -z "$ac_dir" && ac_dir=.
10562 if test -f "$ac_dir/file"; then
10563 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10564 if test -n "$file_magic_test_file"; then
10565 case $deplibs_check_method in
10567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10568 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10570 $EGREP "$file_magic_regex" > /dev/null; then
10575 *** Warning: the command libtool uses to detect shared libraries,
10576 *** $file_magic_cmd, produces output that libtool cannot recognize.
10577 *** The result is that libtool may fail to recognize shared libraries
10578 *** as such. This will affect the creation of libtool libraries that
10579 *** depend on shared libraries, but programs linked with such libtool
10580 *** libraries will work regardless of this problem. Nevertheless, you
10581 *** may want to report the problem to your system manager and/or to
10582 *** bug-libtool@gnu.org
10592 MAGIC_CMD=$lt_save_MAGIC_CMD
10597 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10598 if test -n "$MAGIC_CMD"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10600 $as_echo "$MAGIC_CMD" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10616 # Use C for the default configuration in the libtool script
10620 ac_cpp='$CPP $CPPFLAGS'
10621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626 # Source file extension for C test sources.
10629 # Object file extension for compiled C test sources.
10633 # Code to be used in simple compile tests
10634 lt_simple_compile_test_code="int some_variable = 0;"
10636 # Code to be used in simple link tests
10637 lt_simple_link_test_code='int main(){return(0);}'
10645 # If no C compiler was specified, use CC.
10648 # If no C compiler flags were specified, use CFLAGS.
10649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10651 # Allow CC to be a program name with arguments.
10654 # Save the default compiler, since it gets overwritten when the other
10655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10656 compiler_DEFAULT=$CC
10658 # save warnings/boilerplate of simple test code
10659 ac_outfile=conftest.$ac_objext
10660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10662 _lt_compiler_boilerplate=`cat conftest.err`
10665 ac_outfile=conftest.$ac_objext
10666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10668 _lt_linker_boilerplate=`cat conftest.err`
10672 if test -n "$compiler"; then
10674 lt_prog_compiler_no_builtin_flag=
10676 if test yes = "$GCC"; then
10677 case $cc_basename in
10679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10685 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10686 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10687 $as_echo_n "(cached) " >&6
10689 lt_cv_prog_compiler_rtti_exceptions=no
10690 ac_outfile=conftest.$ac_objext
10691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10692 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10693 # Insert the option either (1) after the last *FLAGS variable, or
10694 # (2) before a word containing "conftest.", or (3) at the end.
10695 # Note that $ac_compile itself does not contain backslashes and begins
10696 # with a dollar sign (not a hyphen), so the echo should work correctly.
10697 # The option is referenced via a variable to avoid confusing sed.
10698 lt_compile=`echo "$ac_compile" | $SED \
10699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10701 -e 's:$: $lt_compiler_flag:'`
10702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10703 (eval "$lt_compile" 2>conftest.err)
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 if (exit $ac_status) && test -s "$ac_outfile"; then
10708 # The compiler can only warn and ignore the option if not recognized
10709 # So say no if there are warnings other than the usual output.
10710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10713 lt_cv_prog_compiler_rtti_exceptions=yes
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10720 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10722 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10735 lt_prog_compiler_wl=
10736 lt_prog_compiler_pic=
10737 lt_prog_compiler_static=
10740 if test yes = "$GCC"; then
10741 lt_prog_compiler_wl='-Wl,'
10742 lt_prog_compiler_static='-static'
10746 # All AIX code is PIC.
10747 if test ia64 = "$host_cpu"; then
10748 # AIX 5 now supports IA64 processor
10749 lt_prog_compiler_static='-Bstatic'
10751 lt_prog_compiler_pic='-fPIC'
10757 # see comment about AmigaOS4 .so support
10758 lt_prog_compiler_pic='-fPIC'
10761 # FIXME: we need at least 68020 code to build shared libraries, but
10762 # adding the '-m68020' flag to GCC prevents building anything better,
10764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10769 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10770 # PIC is the default for these OSes.
10773 mingw* | cygwin* | pw32* | os2* | cegcc*)
10774 # This hack is so that the source file can tell whether it is being
10775 # built for inclusion in a dll (and should export symbols for example).
10776 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10777 # (--disable-auto-import) libraries
10778 lt_prog_compiler_pic='-DDLL_EXPORT'
10781 lt_prog_compiler_static='$wl-static'
10786 darwin* | rhapsody*)
10787 # PIC is the default on this platform
10788 # Common symbols not allowed in MH_DYLIB files
10789 lt_prog_compiler_pic='-fno-common'
10793 # PIC is the default for Haiku.
10794 # The "-static" flag exists, but is broken.
10795 lt_prog_compiler_static=
10799 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10800 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10801 # sets the default TLS model and affects inlining.
10807 lt_prog_compiler_pic='-fPIC'
10813 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10814 # Instead, we relocate shared libraries at runtime.
10818 # Just because we use GCC doesn't mean we suddenly get shared libraries
10819 # on systems that don't support them.
10820 lt_prog_compiler_can_build_shared=no
10825 # QNX uses GNU C++, but need to define -shared option too, otherwise
10826 # it will coredump.
10827 lt_prog_compiler_pic='-fPIC -shared'
10831 if test -d /usr/nec; then
10832 lt_prog_compiler_pic=-Kconform_pic
10837 lt_prog_compiler_pic='-fPIC'
10841 case $cc_basename in
10842 nvcc*) # Cuda Compiler Driver 2.2
10843 lt_prog_compiler_wl='-Xlinker '
10844 if test -n "$lt_prog_compiler_pic"; then
10845 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10850 # PORTME Check for flag to pass linker flags through the system compiler.
10853 lt_prog_compiler_wl='-Wl,'
10854 if test ia64 = "$host_cpu"; then
10855 # AIX 5 now supports IA64 processor
10856 lt_prog_compiler_static='-Bstatic'
10858 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10862 darwin* | rhapsody*)
10863 # PIC is the default on this platform
10864 # Common symbols not allowed in MH_DYLIB files
10865 lt_prog_compiler_pic='-fno-common'
10866 case $cc_basename in
10868 # NAG Fortran compiler
10869 lt_prog_compiler_wl='-Wl,-Wl,,'
10870 lt_prog_compiler_pic='-PIC'
10871 lt_prog_compiler_static='-Bstatic'
10876 mingw* | cygwin* | pw32* | os2* | cegcc*)
10877 # This hack is so that the source file can tell whether it is being
10878 # built for inclusion in a dll (and should export symbols for example).
10879 lt_prog_compiler_pic='-DDLL_EXPORT'
10882 lt_prog_compiler_static='$wl-static'
10887 hpux9* | hpux10* | hpux11*)
10888 lt_prog_compiler_wl='-Wl,'
10889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10890 # not for PA HP-UX.
10896 lt_prog_compiler_pic='+Z'
10899 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10900 lt_prog_compiler_static='$wl-a ${wl}archive'
10903 irix5* | irix6* | nonstopux*)
10904 lt_prog_compiler_wl='-Wl,'
10905 # PIC (with -KPIC) is the default.
10906 lt_prog_compiler_static='-non_shared'
10909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10910 case $cc_basename in
10911 # old Intel for x86_64, which still supported -KPIC.
10913 lt_prog_compiler_wl='-Wl,'
10914 lt_prog_compiler_pic='-KPIC'
10915 lt_prog_compiler_static='-static'
10917 # icc used to be incompatible with GCC.
10918 # ICC 10 doesn't accept -KPIC any more.
10920 lt_prog_compiler_wl='-Wl,'
10921 lt_prog_compiler_pic='-fPIC'
10922 lt_prog_compiler_static='-static'
10924 # Lahey Fortran 8.1.
10926 lt_prog_compiler_wl='-Wl,'
10927 lt_prog_compiler_pic='--shared'
10928 lt_prog_compiler_static='--static'
10931 # NAG Fortran compiler
10932 lt_prog_compiler_wl='-Wl,-Wl,,'
10933 lt_prog_compiler_pic='-PIC'
10934 lt_prog_compiler_static='-Bstatic'
10937 # Fabrice Bellard et al's Tiny C Compiler
10938 lt_prog_compiler_wl='-Wl,'
10939 lt_prog_compiler_pic='-fPIC'
10940 lt_prog_compiler_static='-static'
10942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10943 # Portland Group compilers (*not* the Pentium gcc compiler,
10944 # which looks to be a dead project)
10945 lt_prog_compiler_wl='-Wl,'
10946 lt_prog_compiler_pic='-fpic'
10947 lt_prog_compiler_static='-Bstatic'
10950 lt_prog_compiler_wl='-Wl,'
10951 # All Alpha code is PIC.
10952 lt_prog_compiler_static='-non_shared'
10954 xl* | bgxl* | bgf* | mpixl*)
10955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10956 lt_prog_compiler_wl='-Wl,'
10957 lt_prog_compiler_pic='-qpic'
10958 lt_prog_compiler_static='-qstaticlink'
10961 case `$CC -V 2>&1 | sed 5q` in
10962 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10964 lt_prog_compiler_pic='-KPIC'
10965 lt_prog_compiler_static='-Bstatic'
10966 lt_prog_compiler_wl=''
10968 *Sun\ F* | *Sun*Fortran*)
10969 lt_prog_compiler_pic='-KPIC'
10970 lt_prog_compiler_static='-Bstatic'
10971 lt_prog_compiler_wl='-Qoption ld '
10975 lt_prog_compiler_pic='-KPIC'
10976 lt_prog_compiler_static='-Bstatic'
10977 lt_prog_compiler_wl='-Wl,'
10979 *Intel*\ [CF]*Compiler*)
10980 lt_prog_compiler_wl='-Wl,'
10981 lt_prog_compiler_pic='-fPIC'
10982 lt_prog_compiler_static='-static'
10985 lt_prog_compiler_wl='-Wl,'
10986 lt_prog_compiler_pic='-fpic'
10987 lt_prog_compiler_static='-Bstatic'
10995 lt_prog_compiler_pic='-KPIC'
10996 lt_prog_compiler_static='-Bstatic'
11000 # QNX uses GNU C++, but need to define -shared option too, otherwise
11001 # it will coredump.
11002 lt_prog_compiler_pic='-fPIC -shared'
11005 osf3* | osf4* | osf5*)
11006 lt_prog_compiler_wl='-Wl,'
11007 # All OSF/1 code is PIC.
11008 lt_prog_compiler_static='-non_shared'
11012 lt_prog_compiler_static='-non_shared'
11016 lt_prog_compiler_pic='-KPIC'
11017 lt_prog_compiler_static='-Bstatic'
11018 case $cc_basename in
11019 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11020 lt_prog_compiler_wl='-Qoption ld ';;
11022 lt_prog_compiler_wl='-Wl,';;
11027 lt_prog_compiler_wl='-Qoption ld '
11028 lt_prog_compiler_pic='-PIC'
11029 lt_prog_compiler_static='-Bstatic'
11032 sysv4 | sysv4.2uw2* | sysv4.3*)
11033 lt_prog_compiler_wl='-Wl,'
11034 lt_prog_compiler_pic='-KPIC'
11035 lt_prog_compiler_static='-Bstatic'
11039 if test -d /usr/nec; then
11040 lt_prog_compiler_pic='-Kconform_pic'
11041 lt_prog_compiler_static='-Bstatic'
11045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11046 lt_prog_compiler_wl='-Wl,'
11047 lt_prog_compiler_pic='-KPIC'
11048 lt_prog_compiler_static='-Bstatic'
11052 lt_prog_compiler_wl='-Wl,'
11053 lt_prog_compiler_can_build_shared=no
11057 lt_prog_compiler_pic='-pic'
11058 lt_prog_compiler_static='-Bstatic'
11062 lt_prog_compiler_can_build_shared=no
11068 # For platforms that do not support PIC, -DPIC is meaningless:
11070 lt_prog_compiler_pic=
11073 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11078 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11079 if ${lt_cv_prog_compiler_pic+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11085 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11086 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11089 # Check to make sure the PIC flag actually works.
11091 if test -n "$lt_prog_compiler_pic"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11093 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11094 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11095 $as_echo_n "(cached) " >&6
11097 lt_cv_prog_compiler_pic_works=no
11098 ac_outfile=conftest.$ac_objext
11099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11100 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11101 # Insert the option either (1) after the last *FLAGS variable, or
11102 # (2) before a word containing "conftest.", or (3) at the end.
11103 # Note that $ac_compile itself does not contain backslashes and begins
11104 # with a dollar sign (not a hyphen), so the echo should work correctly.
11105 # The option is referenced via a variable to avoid confusing sed.
11106 lt_compile=`echo "$ac_compile" | $SED \
11107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11109 -e 's:$: $lt_compiler_flag:'`
11110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11111 (eval "$lt_compile" 2>conftest.err)
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 if (exit $ac_status) && test -s "$ac_outfile"; then
11116 # The compiler can only warn and ignore the option if not recognized
11117 # So say no if there are warnings other than the usual output.
11118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11121 lt_cv_prog_compiler_pic_works=yes
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11128 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11130 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11131 case $lt_prog_compiler_pic in
11133 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11136 lt_prog_compiler_pic=
11137 lt_prog_compiler_can_build_shared=no
11153 # Check to make sure the static flag actually works.
11155 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11157 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11158 if ${lt_cv_prog_compiler_static_works+:} false; then :
11159 $as_echo_n "(cached) " >&6
11161 lt_cv_prog_compiler_static_works=no
11162 save_LDFLAGS=$LDFLAGS
11163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11166 # The linker can only warn and ignore the option if not recognized
11167 # So say no if there are warnings
11168 if test -s conftest.err; then
11169 # Append any errors to the config.log.
11170 cat conftest.err 1>&5
11171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11173 if diff conftest.exp conftest.er2 >/dev/null; then
11174 lt_cv_prog_compiler_static_works=yes
11177 lt_cv_prog_compiler_static_works=yes
11181 LDFLAGS=$save_LDFLAGS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11185 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11187 if test yes = "$lt_cv_prog_compiler_static_works"; then
11190 lt_prog_compiler_static=
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11201 if ${lt_cv_prog_compiler_c_o+:} false; then :
11202 $as_echo_n "(cached) " >&6
11204 lt_cv_prog_compiler_c_o=no
11205 $RM -r conftest 2>/dev/null
11209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11211 lt_compiler_flag="-o out/conftest2.$ac_objext"
11212 # Insert the option either (1) after the last *FLAGS variable, or
11213 # (2) before a word containing "conftest.", or (3) at the end.
11214 # Note that $ac_compile itself does not contain backslashes and begins
11215 # with a dollar sign (not a hyphen), so the echo should work correctly.
11216 lt_compile=`echo "$ac_compile" | $SED \
11217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11219 -e 's:$: $lt_compiler_flag:'`
11220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11221 (eval "$lt_compile" 2>out/conftest.err)
11223 cat out/conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11227 # The compiler can only warn and ignore the option if not recognized
11228 # So say no if there are warnings
11229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11232 lt_cv_prog_compiler_c_o=yes
11237 # SGI C++ compiler will create directory out/ii_files/ for
11238 # template instantiation
11239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11240 $RM out/* && rmdir out
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11247 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11256 if ${lt_cv_prog_compiler_c_o+:} false; then :
11257 $as_echo_n "(cached) " >&6
11259 lt_cv_prog_compiler_c_o=no
11260 $RM -r conftest 2>/dev/null
11264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11266 lt_compiler_flag="-o out/conftest2.$ac_objext"
11267 # Insert the option either (1) after the last *FLAGS variable, or
11268 # (2) before a word containing "conftest.", or (3) at the end.
11269 # Note that $ac_compile itself does not contain backslashes and begins
11270 # with a dollar sign (not a hyphen), so the echo should work correctly.
11271 lt_compile=`echo "$ac_compile" | $SED \
11272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11274 -e 's:$: $lt_compiler_flag:'`
11275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11276 (eval "$lt_compile" 2>out/conftest.err)
11278 cat out/conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11282 # The compiler can only warn and ignore the option if not recognized
11283 # So say no if there are warnings
11284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11287 lt_cv_prog_compiler_c_o=yes
11292 # SGI C++ compiler will create directory out/ii_files/ for
11293 # template instantiation
11294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11295 $RM out/* && rmdir out
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11302 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11307 hard_links=nottested
11308 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11309 # do not overwrite the value of need_locks provided by the user
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11311 $as_echo_n "checking if we can lock with hard links... " >&6; }
11314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11316 ln conftest.a conftest.b 2>&5 || hard_links=no
11317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11319 $as_echo "$hard_links" >&6; }
11320 if test no = "$hard_links"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11322 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11335 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11338 allow_undefined_flag=
11339 always_export_symbols=no
11341 archive_expsym_cmds=
11342 compiler_needs_object=no
11343 enable_shared_with_static_runtimes=no
11344 export_dynamic_flag_spec=
11345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11346 hardcode_automatic=no
11348 hardcode_direct_absolute=no
11349 hardcode_libdir_flag_spec=
11350 hardcode_libdir_separator=
11351 hardcode_minus_L=no
11352 hardcode_shlibpath_var=unsupported
11354 link_all_deplibs=unknown
11356 module_expsym_cmds=
11357 old_archive_from_new_cmds=
11358 old_archive_from_expsyms_cmds=
11359 thread_safe_flag_spec=
11360 whole_archive_flag_spec=
11361 # include_expsyms should be a list of space-separated symbols to be *always*
11362 # included in the symbol list
11364 # exclude_expsyms can be an extended regexp of symbols to exclude
11365 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11366 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11367 # as well as any symbol that contains 'd'.
11368 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11370 # platforms (ab)use it in PIC code, but their linkers get confused if
11371 # the symbol is explicitly referenced. Since portable code cannot
11372 # rely on this symbol name, it's probably fine to never include it in
11373 # preloaded symbol tables.
11374 # Exclude shared library initialization/finalization symbols.
11375 extract_expsyms_cmds=
11378 cygwin* | mingw* | pw32* | cegcc*)
11379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11380 # When not using gcc, we currently assume that we are using
11381 # Microsoft Visual C++.
11382 if test yes != "$GCC"; then
11387 # we just hope/assume this is gcc and not c89 (= MSVC++)
11390 openbsd* | bitrig*)
11397 # On some targets, GNU ld is compatible enough with the native linker
11398 # that we're better off using the native interface for both.
11399 lt_use_gnu_ld_interface=no
11400 if test yes = "$with_gnu_ld"; then
11403 # The AIX port of GNU ld has always aspired to compatibility
11404 # with the native linker. However, as the warning in the GNU ld
11405 # block says, versions before 2.19.5* couldn't really create working
11406 # shared libraries, regardless of the interface used.
11407 case `$LD -v 2>&1` in
11408 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11409 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11410 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11412 lt_use_gnu_ld_interface=yes
11417 lt_use_gnu_ld_interface=yes
11422 if test yes = "$lt_use_gnu_ld_interface"; then
11423 # If archive_cmds runs LD, not CC, wlarc should be empty
11426 # Set some defaults for GNU ld with shared library support. These
11427 # are reset later if shared libraries are not supported. Putting them
11428 # here allows them to be overridden if necessary.
11429 runpath_var=LD_RUN_PATH
11430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11431 export_dynamic_flag_spec='$wl--export-dynamic'
11432 # ancient GNU ld didn't support --whole-archive et. al.
11433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11434 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11436 whole_archive_flag_spec=
11438 supports_anon_versioning=no
11439 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11440 *GNU\ gold*) supports_anon_versioning=yes ;;
11441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11444 *\ 2.11.*) ;; # other 2.11 versions
11445 *) supports_anon_versioning=yes ;;
11448 # See if GNU ld supports shared libraries.
11451 # On AIX/PPC, the GNU linker is very broken
11452 if test ia64 != "$host_cpu"; then
11456 *** Warning: the GNU linker, at least up to release 2.19, is reported
11457 *** to be unable to reliably create shared libraries on AIX.
11458 *** Therefore, libtool is disabling shared libraries support. If you
11459 *** really care for shared libraries, you may want to install binutils
11460 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11461 *** You will then need to restart the configuration process.
11470 # see comment about AmigaOS4 .so support
11471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11472 archive_expsym_cmds=''
11475 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)'
11476 hardcode_libdir_flag_spec='-L$libdir'
11477 hardcode_minus_L=yes
11483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11484 allow_undefined_flag=unsupported
11485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11486 # support --undefined. This deserves some investigation. FIXME
11487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11493 cygwin* | mingw* | pw32* | cegcc*)
11494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11495 # as there is no search path for DLLs.
11496 hardcode_libdir_flag_spec='-L$libdir'
11497 export_dynamic_flag_spec='$wl--export-all-symbols'
11498 allow_undefined_flag=unsupported
11499 always_export_symbols=no
11500 enable_shared_with_static_runtimes=yes
11501 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'
11502 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11504 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11506 # If the export-symbols file already is a .def file, use it as
11507 # is; otherwise, prepend EXPORTS...
11508 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11509 cp $export_symbols $output_objdir/$soname.def;
11511 echo EXPORTS > $output_objdir/$soname.def;
11512 cat $export_symbols >> $output_objdir/$soname.def;
11514 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11522 link_all_deplibs=yes
11526 hardcode_libdir_flag_spec='-L$libdir'
11527 hardcode_minus_L=yes
11528 allow_undefined_flag=unsupported
11530 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11531 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11532 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11533 $ECHO EXPORTS >> $output_objdir/$libname.def~
11534 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11536 emximp -o $lib $output_objdir/$libname.def'
11537 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11538 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11539 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11540 $ECHO EXPORTS >> $output_objdir/$libname.def~
11541 prefix_cmds="$SED"~
11542 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11543 prefix_cmds="$prefix_cmds -e 1d";
11545 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11546 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11548 emximp -o $lib $output_objdir/$libname.def'
11549 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11550 enable_shared_with_static_runtimes=yes
11555 hardcode_shlibpath_var=no
11556 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11557 export_dynamic_flag_spec='$wl-E'
11558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11559 # Instead, shared libraries are loaded at an image base (0x10000000 by
11560 # default) and relocated if they conflict, which is a slow very memory
11561 # consuming and fragmenting process. To avoid this, we pick a random,
11562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11565 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'
11568 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11570 if test linux-dietlibc = "$host_os"; then
11571 case $cc_basename in
11572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11576 && test no = "$tmp_diet"
11578 tmp_addflag=' $pic_flag'
11579 tmp_sharedflag='-shared'
11580 case $cc_basename,$host_cpu in
11581 pgcc*) # Portland Group C compiler
11582 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'
11583 tmp_addflag=' $pic_flag'
11585 pgf77* | pgf90* | pgf95* | pgfortran*)
11586 # Portland Group f77 and f90 compilers
11587 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'
11588 tmp_addflag=' $pic_flag -Mnomain' ;;
11589 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11590 tmp_addflag=' -i_dynamic' ;;
11591 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11592 tmp_addflag=' -i_dynamic -nofor_main' ;;
11593 ifc* | ifort*) # Intel Fortran compiler
11594 tmp_addflag=' -nofor_main' ;;
11595 lf95*) # Lahey Fortran 8.1
11596 whole_archive_flag_spec=
11597 tmp_sharedflag='--shared' ;;
11598 nagfor*) # NAGFOR 5.3
11599 tmp_sharedflag='-Wl,-shared' ;;
11600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11601 tmp_sharedflag='-qmkshrobj'
11603 nvcc*) # Cuda Compiler Driver 2.2
11604 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'
11605 compiler_needs_object=yes
11608 case `$CC -V 2>&1 | sed 5q` in
11609 *Sun\ C*) # Sun C 5.9
11610 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'
11611 compiler_needs_object=yes
11612 tmp_sharedflag='-G' ;;
11613 *Sun\ F*) # Sun Fortran 8.3
11614 tmp_sharedflag='-G' ;;
11616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11618 if test yes = "$supports_anon_versioning"; then
11619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11621 echo "local: *; };" >> $output_objdir/$libname.ver~
11622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11625 case $cc_basename in
11627 export_dynamic_flag_spec='-rdynamic'
11629 xlf* | bgf* | bgxlf* | mpixlf*)
11630 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11631 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11633 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11634 if test yes = "$supports_anon_versioning"; then
11635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11637 echo "local: *; };" >> $output_objdir/$libname.ver~
11638 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11649 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11658 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11662 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11663 *** create shared libraries on Solaris systems. Therefore, libtool
11664 *** is disabling shared libraries support. We urge you to upgrade GNU
11665 *** binutils to release 2.9.1 or newer. Another option is to modify
11666 *** your PATH or compiler configuration so that the native linker is
11667 *** used, and then restart.
11670 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11671 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11672 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11679 case `$LD -v 2>&1` in
11680 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11684 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11685 *** reliably create shared libraries on SCO systems. Therefore, libtool
11686 *** is disabling shared libraries support. We urge you to upgrade GNU
11687 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11688 *** your PATH or compiler configuration so that the native linker is
11689 *** used, and then restart.
11694 # For security reasons, it is highly recommended that you always
11695 # use absolute paths for naming shared libraries, and exclude the
11696 # DT_RUNPATH tag from executables and libraries. But doing so
11697 # requires that you compile everything twice, which is a pain.
11698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11710 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11712 hardcode_direct=yes
11713 hardcode_shlibpath_var=no
11717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11726 if test no = "$ld_shlibs"; then
11728 hardcode_libdir_flag_spec=
11729 export_dynamic_flag_spec=
11730 whole_archive_flag_spec=
11733 # PORTME fill in a description of your system's linker (not GNU ld)
11736 allow_undefined_flag=unsupported
11737 always_export_symbols=yes
11738 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'
11739 # Note: this linker hardcodes the directories in LIBPATH if there
11740 # are no directories specified by -L.
11741 hardcode_minus_L=yes
11742 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11743 # Neither direct hardcoding nor static linking is supported with a
11745 hardcode_direct=unsupported
11750 if test ia64 = "$host_cpu"; then
11751 # On IA64, the linker does run time linking by default, so we don't
11752 # have to do anything special.
11753 aix_use_runtimelinking=no
11754 exp_sym_flag='-Bexport'
11757 # If we're using GNU nm, then we don't want the "-C" option.
11758 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11759 # Without the "-l" option, or with the "-B" option, AIX nm treats
11760 # weak defined symbols like other global defined symbols, whereas
11761 # GNU nm marks them as "W".
11762 # While the 'weak' keyword is ignored in the Export File, we need
11763 # it in the Import File for the 'aix-soname' feature, so we have
11764 # to replace the "-B" option with "-P" for AIX nm.
11765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11766 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'
11768 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'
11770 aix_use_runtimelinking=no
11772 # Test if we are trying to use run time linking or normal
11773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11774 # have runtime linking enabled, and use it for executables.
11775 # For shared libraries, we enable/disable runtime linking
11776 # depending on the kind of the shared library created -
11777 # when "with_aix_soname,aix_use_runtimelinking" is:
11778 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11779 # "aix,yes" lib.so shared, rtl:yes, for executables
11780 # lib.a static archive
11781 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11782 # lib.a(lib.so.V) shared, rtl:no, for executables
11783 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11784 # lib.a(lib.so.V) shared, rtl:no
11785 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11786 # lib.a static archive
11787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11788 for ld_flag in $LDFLAGS; do
11789 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11790 aix_use_runtimelinking=yes
11794 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11795 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11796 # so we don't have lib.a shared libs to link our executables.
11797 # We have to force runtime linking in this case.
11798 aix_use_runtimelinking=yes
11799 LDFLAGS="$LDFLAGS -Wl,-brtl"
11804 exp_sym_flag='-bexport'
11805 no_entry_flag='-bnoentry'
11808 # When large executables or shared objects are built, AIX ld can
11809 # have problems creating the table of contents. If linking a library
11810 # or program results in "error TOC overflow" add -mminimal-toc to
11811 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11812 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11815 hardcode_direct=yes
11816 hardcode_direct_absolute=yes
11817 hardcode_libdir_separator=':'
11818 link_all_deplibs=yes
11819 file_list_spec='$wl-f,'
11820 case $with_aix_soname,$aix_use_runtimelinking in
11821 aix,*) ;; # traditional, no import file
11822 svr4,* | *,yes) # use import file
11823 # The Import File defines what to hardcode.
11825 hardcode_direct_absolute=no
11829 if test yes = "$GCC"; then
11830 case $host_os in aix4.[012]|aix4.[012].*)
11831 # We only want to do this on AIX 4.2 and lower, the check
11832 # below for broken collect2 doesn't work under 4.3+
11833 collect2name=`$CC -print-prog-name=collect2`
11834 if test -f "$collect2name" &&
11835 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11837 # We have reworked collect2
11840 # We have old collect2
11841 hardcode_direct=unsupported
11842 # It fails to find uninstalled libraries when the uninstalled
11843 # path is not listed in the libpath. Setting hardcode_minus_L
11844 # to unsupported forces relinking
11845 hardcode_minus_L=yes
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 hardcode_libdir_separator=
11851 shared_flag='-shared'
11852 if test yes = "$aix_use_runtimelinking"; then
11853 shared_flag="$shared_flag "'$wl-G'
11855 # Need to ensure runtime linking is disabled for the traditional
11856 # shared library, or the linker may eventually find shared libraries
11857 # /with/ Import File - we do not want to mix them.
11858 shared_flag_aix='-shared'
11859 shared_flag_svr4='-shared $wl-G'
11862 if test ia64 = "$host_cpu"; then
11863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11864 # chokes on -Wl,-G. The following line is correct:
11867 if test yes = "$aix_use_runtimelinking"; then
11868 shared_flag='$wl-G'
11870 shared_flag='$wl-bM:SRE'
11872 shared_flag_aix='$wl-bM:SRE'
11873 shared_flag_svr4='$wl-G'
11877 export_dynamic_flag_spec='$wl-bexpall'
11878 # It seems that -bexpall does not export symbols beginning with
11879 # underscore (_), so it is better to generate a list of symbols to export.
11880 always_export_symbols=yes
11881 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11882 # Warning - without using the other runtime loading flags (-brtl),
11883 # -berok will link without error, but may produce a broken library.
11884 allow_undefined_flag='-berok'
11885 # Determine the default libpath from the value encoded in an
11886 # empty executable.
11887 if test set = "${lt_cv_aix_libpath+set}"; then
11888 aix_libpath=$lt_cv_aix_libpath
11890 if ${lt_cv_aix_libpath_+:} false; then :
11891 $as_echo_n "(cached) " >&6
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11904 if ac_fn_c_try_link "$LINENO"; then :
11906 lt_aix_libpath_sed='
11907 /Import File Strings/,/^$/ {
11909 s/^0 *\([^ ]*\) *$/\1/
11913 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11914 # Check for a 64-bit object if we didn't find anything.
11915 if test -z "$lt_cv_aix_libpath_"; then
11916 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 if test -z "$lt_cv_aix_libpath_"; then
11922 lt_cv_aix_libpath_=/usr/lib:/lib
11927 aix_libpath=$lt_cv_aix_libpath_
11930 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11931 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
11933 if test ia64 = "$host_cpu"; then
11934 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11935 allow_undefined_flag="-z nodefs"
11936 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"
11938 # Determine the default libpath from the value encoded in an
11939 # empty executable.
11940 if test set = "${lt_cv_aix_libpath+set}"; then
11941 aix_libpath=$lt_cv_aix_libpath
11943 if ${lt_cv_aix_libpath_+:} false; then :
11944 $as_echo_n "(cached) " >&6
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11957 if ac_fn_c_try_link "$LINENO"; then :
11959 lt_aix_libpath_sed='
11960 /Import File Strings/,/^$/ {
11962 s/^0 *\([^ ]*\) *$/\1/
11966 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11967 # Check for a 64-bit object if we didn't find anything.
11968 if test -z "$lt_cv_aix_libpath_"; then
11969 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 if test -z "$lt_cv_aix_libpath_"; then
11975 lt_cv_aix_libpath_=/usr/lib:/lib
11980 aix_libpath=$lt_cv_aix_libpath_
11983 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11984 # Warning - without using the other run time loading flags,
11985 # -berok will link without error, but may produce a broken library.
11986 no_undefined_flag=' $wl-bernotok'
11987 allow_undefined_flag=' $wl-berok'
11988 if test yes = "$with_gnu_ld"; then
11989 # We only use this code for GNU lds that support --whole-archive.
11990 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11992 # Exported symbols can be pulled into shared objects from archives
11993 whole_archive_flag_spec='$convenience'
11995 archive_cmds_need_lc=yes
11996 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11997 # -brtl affects multiple linker settings, -berok does not and is overridden later
11998 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11999 if test svr4 != "$with_aix_soname"; then
12000 # This is similar to how AIX traditionally builds its shared libraries.
12001 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'
12003 if test aix != "$with_aix_soname"; then
12004 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'
12006 # used by -dlpreopen to get the symbols
12007 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12009 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12017 # see comment about AmigaOS4 .so support
12018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12019 archive_expsym_cmds=''
12022 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)'
12023 hardcode_libdir_flag_spec='-L$libdir'
12024 hardcode_minus_L=yes
12030 export_dynamic_flag_spec=-rdynamic
12033 cygwin* | mingw* | pw32* | cegcc*)
12034 # When not using gcc, we currently assume that we are using
12035 # Microsoft Visual C++.
12036 # hardcode_libdir_flag_spec is actually meaningless, as there is
12037 # no search path for DLLs.
12038 case $cc_basename in
12041 hardcode_libdir_flag_spec=' '
12042 allow_undefined_flag=unsupported
12043 always_export_symbols=yes
12045 # Tell ltmain to make .lib files, not .a files.
12047 # Tell ltmain to make .dll files, not .so files.
12049 # FIXME: Setting linknames here is a bad hack.
12050 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12051 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12052 cp "$export_symbols" "$output_objdir/$soname.def";
12053 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12055 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12057 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12059 # The linker will not automatically build a static lib if we build a DLL.
12060 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12061 enable_shared_with_static_runtimes=yes
12062 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12065 old_postinstall_cmds='chmod 644 $oldlib'
12066 postlink_cmds='lt_outputfile="@OUTPUT@"~
12067 lt_tool_outputfile="@TOOL_OUTPUT@"~
12068 case $lt_outputfile in
12071 lt_outputfile=$lt_outputfile.exe
12072 lt_tool_outputfile=$lt_tool_outputfile.exe
12075 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12076 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12077 $RM "$lt_outputfile.manifest";
12081 # Assume MSVC wrapper
12082 hardcode_libdir_flag_spec=' '
12083 allow_undefined_flag=unsupported
12084 # Tell ltmain to make .lib files, not .a files.
12086 # Tell ltmain to make .dll files, not .so files.
12088 # FIXME: Setting linknames here is a bad hack.
12089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12090 # The linker will automatically build a .lib file if we build a DLL.
12091 old_archive_from_new_cmds='true'
12092 # FIXME: Should let the user specify the lib program.
12093 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12094 enable_shared_with_static_runtimes=yes
12099 darwin* | rhapsody*)
12102 archive_cmds_need_lc=no
12104 hardcode_automatic=yes
12105 hardcode_shlibpath_var=unsupported
12106 if test yes = "$lt_cv_ld_force_load"; then
12107 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\"`'
12110 whole_archive_flag_spec=''
12112 link_all_deplibs=yes
12113 allow_undefined_flag=$_lt_dar_allow_undefined
12114 case $cc_basename in
12115 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12116 *) _lt_dar_can_shared=$GCC ;;
12118 if test yes = "$_lt_dar_can_shared"; then
12119 output_verbose_link_cmd=func_echo_all
12120 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12121 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12122 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"
12123 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"
12132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12133 hardcode_libdir_flag_spec='-L$libdir'
12134 hardcode_shlibpath_var=no
12137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12138 # support. Future versions do this automatically, but an explicit c++rt0.o
12139 # does not break anything, and helps significantly (at the cost of a little
12142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12143 hardcode_libdir_flag_spec='-R$libdir'
12144 hardcode_direct=yes
12145 hardcode_shlibpath_var=no
12148 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12151 hardcode_direct=yes
12152 hardcode_minus_L=yes
12153 hardcode_shlibpath_var=no
12156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12157 freebsd* | dragonfly*)
12158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12159 hardcode_libdir_flag_spec='-R$libdir'
12160 hardcode_direct=yes
12161 hardcode_shlibpath_var=no
12165 if test yes = "$GCC"; then
12166 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'
12168 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'
12170 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12171 hardcode_libdir_separator=:
12172 hardcode_direct=yes
12174 # hardcode_minus_L: Not really in the search PATH,
12175 # but as the default location of the library.
12176 hardcode_minus_L=yes
12177 export_dynamic_flag_spec='$wl-E'
12181 if test yes,no = "$GCC,$with_gnu_ld"; then
12182 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12186 if test no = "$with_gnu_ld"; then
12187 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12188 hardcode_libdir_separator=:
12189 hardcode_direct=yes
12190 hardcode_direct_absolute=yes
12191 export_dynamic_flag_spec='$wl-E'
12192 # hardcode_minus_L: Not really in the search PATH,
12193 # but as the default location of the library.
12194 hardcode_minus_L=yes
12199 if test yes,no = "$GCC,$with_gnu_ld"; then
12202 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12208 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12214 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12221 # Older versions of the 11.00 compiler do not understand -b yet
12222 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12224 $as_echo_n "checking if $CC understands -b... " >&6; }
12225 if ${lt_cv_prog_compiler__b+:} false; then :
12226 $as_echo_n "(cached) " >&6
12228 lt_cv_prog_compiler__b=no
12229 save_LDFLAGS=$LDFLAGS
12230 LDFLAGS="$LDFLAGS -b"
12231 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12232 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12233 # The linker can only warn and ignore the option if not recognized
12234 # So say no if there are warnings
12235 if test -s conftest.err; then
12236 # Append any errors to the config.log.
12237 cat conftest.err 1>&5
12238 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12240 if diff conftest.exp conftest.er2 >/dev/null; then
12241 lt_cv_prog_compiler__b=yes
12244 lt_cv_prog_compiler__b=yes
12248 LDFLAGS=$save_LDFLAGS
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12252 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12254 if test yes = "$lt_cv_prog_compiler__b"; then
12255 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12263 if test no = "$with_gnu_ld"; then
12264 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12265 hardcode_libdir_separator=:
12270 hardcode_shlibpath_var=no
12273 hardcode_direct=yes
12274 hardcode_direct_absolute=yes
12275 export_dynamic_flag_spec='$wl-E'
12277 # hardcode_minus_L: Not really in the search PATH,
12278 # but as the default location of the library.
12279 hardcode_minus_L=yes
12285 irix5* | irix6* | nonstopux*)
12286 if test yes = "$GCC"; then
12287 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'
12288 # Try to use the -exported_symbol ld option, if it does not
12289 # work, assume that -exports_file does not work either and
12290 # implicitly export all symbols.
12291 # This should be the same for all languages, so no per-tag cache variable.
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12293 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12294 if ${lt_cv_irix_exported_symbol+:} false; then :
12295 $as_echo_n "(cached) " >&6
12297 save_LDFLAGS=$LDFLAGS
12298 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 int foo (void) { return 0; }
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 lt_cv_irix_exported_symbol=yes
12306 lt_cv_irix_exported_symbol=no
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LDFLAGS=$save_LDFLAGS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12313 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12314 if test yes = "$lt_cv_irix_exported_symbol"; then
12315 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'
12318 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'
12319 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'
12321 archive_cmds_need_lc='no'
12322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12323 hardcode_libdir_separator=:
12325 link_all_deplibs=yes
12329 case $cc_basename in
12331 # Fabrice Bellard et al's Tiny C Compiler
12333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12344 hardcode_libdir_flag_spec='-R$libdir'
12345 hardcode_direct=yes
12346 hardcode_shlibpath_var=no
12350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12351 hardcode_direct=yes
12352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12353 hardcode_libdir_separator=:
12354 hardcode_shlibpath_var=no
12360 openbsd* | bitrig*)
12361 if test -f /usr/libexec/ld.so; then
12362 hardcode_direct=yes
12363 hardcode_shlibpath_var=no
12364 hardcode_direct_absolute=yes
12365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12368 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12369 export_dynamic_flag_spec='$wl-E'
12371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12372 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12380 hardcode_libdir_flag_spec='-L$libdir'
12381 hardcode_minus_L=yes
12382 allow_undefined_flag=unsupported
12384 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12385 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12386 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12387 $ECHO EXPORTS >> $output_objdir/$libname.def~
12388 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12390 emximp -o $lib $output_objdir/$libname.def'
12391 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12394 $ECHO EXPORTS >> $output_objdir/$libname.def~
12395 prefix_cmds="$SED"~
12396 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12397 prefix_cmds="$prefix_cmds -e 1d";
12399 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12400 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12402 emximp -o $lib $output_objdir/$libname.def'
12403 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12404 enable_shared_with_static_runtimes=yes
12408 if test yes = "$GCC"; then
12409 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12410 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'
12412 allow_undefined_flag=' -expect_unresolved \*'
12413 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'
12415 archive_cmds_need_lc='no'
12416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12417 hardcode_libdir_separator=:
12420 osf4* | osf5*) # as osf3* with the addition of -msym flag
12421 if test yes = "$GCC"; then
12422 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12423 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'
12424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12426 allow_undefined_flag=' -expect_unresolved \*'
12427 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'
12428 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~
12429 $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'
12431 # Both c and cxx compiler support -rpath directly
12432 hardcode_libdir_flag_spec='-rpath $libdir'
12434 archive_cmds_need_lc='no'
12435 hardcode_libdir_separator=:
12439 no_undefined_flag=' -z defs'
12440 if test yes = "$GCC"; then
12442 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12444 $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'
12446 case `$CC -V 2>&1` in
12449 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12451 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12455 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12457 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12461 hardcode_libdir_flag_spec='-R$libdir'
12462 hardcode_shlibpath_var=no
12464 solaris2.[0-5] | solaris2.[0-5].*) ;;
12466 # The compiler driver will combine and reorder linker options,
12467 # but understands '-z linker_flag'. GCC discards it without '$wl',
12468 # but is careful enough not to reorder.
12469 # Supported since Solaris 2.6 (maybe 2.5.1?)
12470 if test yes = "$GCC"; then
12471 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12477 link_all_deplibs=yes
12481 if test sequent = "$host_vendor"; then
12482 # Use $CC to link under sequent, because it throws in some extra .o
12483 # files that make .init and .fini sections work.
12484 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12486 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12488 hardcode_libdir_flag_spec='-L$libdir'
12489 hardcode_direct=yes
12490 hardcode_minus_L=yes
12491 hardcode_shlibpath_var=no
12495 case $host_vendor in
12497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12498 hardcode_direct=yes # is this really true???
12501 ## LD is ld it makes a PLAMLIB
12502 ## CC just makes a GrossModule.
12503 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12504 reload_cmds='$CC -r -o $output$reload_objs'
12508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12509 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12512 runpath_var='LD_RUN_PATH'
12513 hardcode_shlibpath_var=no
12517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12518 hardcode_shlibpath_var=no
12519 export_dynamic_flag_spec='-Bexport'
12523 if test -d /usr/nec; then
12524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12525 hardcode_shlibpath_var=no
12526 runpath_var=LD_RUN_PATH
12527 hardcode_runpath_var=yes
12532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12533 no_undefined_flag='$wl-z,text'
12534 archive_cmds_need_lc=no
12535 hardcode_shlibpath_var=no
12536 runpath_var='LD_RUN_PATH'
12538 if test yes = "$GCC"; then
12539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 sysv5* | sco3.2v5* | sco5v6*)
12548 # Note: We CANNOT use -z defs as we might desire, because we do not
12549 # link with -lc, and that would cause any symbols used from libc to
12550 # always be unresolved, which means just about no library would
12551 # ever link correctly. If we're not using GNU ld we use -z text
12552 # though, which does catch some bad symbols but isn't as heavy-handed
12554 no_undefined_flag='$wl-z,text'
12555 allow_undefined_flag='$wl-z,nodefs'
12556 archive_cmds_need_lc=no
12557 hardcode_shlibpath_var=no
12558 hardcode_libdir_flag_spec='$wl-R,$libdir'
12559 hardcode_libdir_separator=':'
12560 link_all_deplibs=yes
12561 export_dynamic_flag_spec='$wl-Bexport'
12562 runpath_var='LD_RUN_PATH'
12564 if test yes = "$GCC"; then
12565 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12566 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12575 hardcode_libdir_flag_spec='-L$libdir'
12576 hardcode_shlibpath_var=no
12584 if test sni = "$host_vendor"; then
12586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12587 export_dynamic_flag_spec='$wl-Blargedynsym'
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12594 $as_echo "$ld_shlibs" >&6; }
12595 test no = "$ld_shlibs" && can_build_shared=no
12597 with_gnu_ld=$with_gnu_ld
12614 # Do we need to explicitly link libc?
12616 case "x$archive_cmds_need_lc" in
12618 # Assume -lc should be added
12619 archive_cmds_need_lc=yes
12621 if test yes,yes = "$GCC,$enable_shared"; then
12622 case $archive_cmds in
12624 # FIXME: we may have to deal with multi-command sequences.
12627 # Test whether the compiler implicitly links with -lc since on some
12628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12629 # to ld, don't add -lc before -lgcc.
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12631 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12632 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12633 $as_echo_n "(cached) " >&6
12636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12639 (eval $ac_compile) 2>&5
12641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12642 test $ac_status = 0; } 2>conftest.err; then
12645 libobjs=conftest.$ac_objext
12647 wl=$lt_prog_compiler_wl
12648 pic_flag=$lt_prog_compiler_pic
12654 lt_save_allow_undefined_flag=$allow_undefined_flag
12655 allow_undefined_flag=
12656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12657 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12660 test $ac_status = 0; }
12662 lt_cv_archive_cmds_need_lc=no
12664 lt_cv_archive_cmds_need_lc=yes
12666 allow_undefined_flag=$lt_save_allow_undefined_flag
12668 cat conftest.err 1>&5
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12674 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12675 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12834 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12836 if test yes = "$GCC"; then
12838 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12839 *) lt_awk_arg='/^libraries:/' ;;
12842 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12843 *) lt_sed_strip_eq='s|=/|/|g' ;;
12845 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12846 case $lt_search_path_spec in
12848 # if the path contains ";" then we assume it to be the separator
12849 # otherwise default to the standard path separator (i.e. ":") - it is
12850 # assumed that no part of a normal pathname contains ";" but that should
12851 # okay in the real world where ";" in dirpaths is itself problematic.
12852 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12858 # Ok, now we have the path, separated by spaces, we can step through it
12859 # and add multilib dir if necessary...
12860 lt_tmp_lt_search_path_spec=
12861 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12862 # ...but if some path component already ends with the multilib dir we assume
12863 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12864 case "$lt_multi_os_dir; $lt_search_path_spec " in
12865 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12869 for lt_sys_path in $lt_search_path_spec; do
12870 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12872 elif test -n "$lt_multi_os_dir"; then
12873 test -d "$lt_sys_path" && \
12874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12877 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12878 BEGIN {RS = " "; FS = "/|\n";} {
12881 for (lt_i = NF; lt_i > 0; lt_i--) {
12882 if ($lt_i != "" && $lt_i != ".") {
12883 if ($lt_i == "..") {
12886 if (lt_count == 0) {
12887 lt_foo = "/" $lt_i lt_foo;
12894 if (lt_foo != "") { lt_freq[lt_foo]++; }
12895 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12897 # AWK program above erroneously prepends '/' to C:/dos/paths
12900 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12901 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12903 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12907 library_names_spec=
12908 libname_spec='lib$name'
12912 postuninstall_cmds=
12916 shlibpath_overrides_runpath=unknown
12918 dynamic_linker="$host_os ld.so"
12919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12920 need_lib_prefix=unknown
12921 hardcode_into_libs=no
12923 # when you set need_version to no, make sure it does not cause -set_version
12924 # flags to be left without arguments
12925 need_version=unknown
12931 version_type=linux # correct to gnu/linux during the next big refactor
12932 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12933 shlibpath_var=LIBPATH
12935 # AIX 3 has no versioning support, so we append a major version to the name.
12936 soname_spec='$libname$release$shared_ext$major'
12940 version_type=linux # correct to gnu/linux during the next big refactor
12943 hardcode_into_libs=yes
12944 if test ia64 = "$host_cpu"; then
12945 # AIX 5 supports IA64
12946 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12947 shlibpath_var=LD_LIBRARY_PATH
12949 # With GCC up to 2.95.x, collect2 would create an import file
12950 # for dependence libraries. The import file would start with
12951 # the line '#! .'. This would cause the generated library to
12952 # depend on '.', always an invalid library. This was fixed in
12953 # development snapshots of GCC prior to 3.0.
12955 aix4 | aix4.[01] | aix4.[01].*)
12956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12958 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12961 can_build_shared=no
12965 # Using Import Files as archive members, it is possible to support
12966 # filename-based versioning of shared library archives on AIX. While
12967 # this would work for both with and without runtime linking, it will
12968 # prevent static linking of such archives. So we do filename-based
12969 # shared library versioning with .so extension only, which is used
12970 # when both runtime linking and shared linking is enabled.
12971 # Unfortunately, runtime linking may impact performance, so we do
12972 # not want this to be the default eventually. Also, we use the
12973 # versioned .so libs for executables only if there is the -brtl
12974 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12975 # To allow for filename-based versioning support, we need to create
12976 # libNAME.so.V as an archive file, containing:
12977 # *) an Import File, referring to the versioned filename of the
12978 # archive as well as the shared archive member, telling the
12979 # bitwidth (32 or 64) of that shared object, and providing the
12980 # list of exported symbols of that shared object, eventually
12981 # decorated with the 'weak' keyword
12982 # *) the shared object with the F_LOADONLY flag set, to really avoid
12983 # it being seen by the linker.
12984 # At run time we better use the real file rather than another symlink,
12985 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12987 case $with_aix_soname,$aix_use_runtimelinking in
12988 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12989 # soname into executable. Probably we can add versioning support to
12990 # collect2, so additional links can be useful in future.
12991 aix,yes) # traditional libtool
12992 dynamic_linker='AIX unversionable lib.so'
12993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12994 # instead of lib<name>.a to let people know that these are not
12995 # typical AIX shared libraries.
12996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12998 aix,no) # traditional AIX only
12999 dynamic_linker='AIX lib.a(lib.so.V)'
13000 # We preserve .a as extension for shared libraries through AIX4.2
13001 # and later when we are not doing run time linking.
13002 library_names_spec='$libname$release.a $libname.a'
13003 soname_spec='$libname$release$shared_ext$major'
13005 svr4,*) # full svr4 only
13006 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13007 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13008 # We do not specify a path in Import Files, so LIBPATH fires.
13009 shlibpath_overrides_runpath=yes
13011 *,yes) # both, prefer svr4
13012 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13013 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13014 # unpreferred sharedlib libNAME.a needs extra handling
13015 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"'
13016 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"'
13017 # We do not specify a path in Import Files, so LIBPATH fires.
13018 shlibpath_overrides_runpath=yes
13020 *,no) # both, prefer aix
13021 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13022 library_names_spec='$libname$release.a $libname.a'
13023 soname_spec='$libname$release$shared_ext$major'
13024 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13025 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)'
13026 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"'
13029 shlibpath_var=LIBPATH
13036 # Since July 2007 AmigaOS4 officially supports .so libraries.
13037 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13041 library_names_spec='$libname.ixlibrary $libname.a'
13042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13043 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'
13049 library_names_spec='$libname$shared_ext'
13050 dynamic_linker="$host_os ld.so"
13051 shlibpath_var=LIBRARY_PATH
13055 version_type=linux # correct to gnu/linux during the next big refactor
13057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13058 soname_spec='$libname$release$shared_ext$major'
13059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13063 # the default ld.so.conf also contains /usr/contrib/lib and
13064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13065 # libtool to hard-code these into programs
13068 cygwin* | mingw* | pw32* | cegcc*)
13069 version_type=windows
13074 case $GCC,$cc_basename in
13077 library_names_spec='$libname.dll.a'
13078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13079 postinstall_cmds='base_file=`basename \$file`~
13080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13081 dldir=$destdir/`dirname \$dlpath`~
13082 test -d \$dldir || mkdir -p \$dldir~
13083 $install_prog $dir/$dlname \$dldir/$dlname~
13084 chmod a+x \$dldir/$dlname~
13085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13089 dlpath=$dir/\$dldll~
13091 shlibpath_overrides_runpath=yes
13095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13096 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13098 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13101 # MinGW DLLs use traditional 'lib' prefix
13102 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13105 # pw32 DLLs use 'pw' prefix rather than 'lib'
13106 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13109 dynamic_linker='Win32 ld.exe'
13114 libname_spec='$name'
13115 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13116 library_names_spec='$libname.dll.lib'
13120 sys_lib_search_path_spec=
13123 for lt_path in $LIB
13126 # Let DOS variable expansion print the short 8.3 style file name.
13127 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13128 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13131 # Convert to MSYS style.
13132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13135 # Convert to unix form, then to dos form, then back to unix form
13136 # but this time dos style (no spaces!) so that the unix form looks
13137 # like /cygdrive/c/PROGRA~1:/cygdr...
13138 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13139 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13140 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13143 sys_lib_search_path_spec=$LIB
13144 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13145 # It is most probably a Windows format PATH.
13146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13150 # FIXME: find the short name or the path components, as spaces are
13151 # common. (e.g. "Program Files" -> "PROGRA~1")
13155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13156 postinstall_cmds='base_file=`basename \$file`~
13157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13158 dldir=$destdir/`dirname \$dlpath`~
13159 test -d \$dldir || mkdir -p \$dldir~
13160 $install_prog $dir/$dlname \$dldir/$dlname'
13161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13162 dlpath=$dir/\$dldll~
13164 shlibpath_overrides_runpath=yes
13165 dynamic_linker='Win32 link.exe'
13169 # Assume MSVC wrapper
13170 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13171 dynamic_linker='Win32 ld.exe'
13174 # FIXME: first we should search . and the directory the executable is in
13178 darwin* | rhapsody*)
13179 dynamic_linker="$host_os dyld"
13180 version_type=darwin
13183 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13184 soname_spec='$libname$release$major$shared_ext'
13185 shlibpath_overrides_runpath=yes
13186 shlibpath_var=DYLD_LIBRARY_PATH
13187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13194 version_type=linux # correct to gnu/linux during the next big refactor
13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198 soname_spec='$libname$release$shared_ext$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13202 freebsd* | dragonfly*)
13203 # DragonFly does not have aout. When/if they implement a new
13204 # versioning mechanism, adjust this.
13205 if test -x /usr/bin/objformat; then
13206 objformat=`/usr/bin/objformat`
13209 freebsd[23].*) objformat=aout ;;
13210 *) objformat=elf ;;
13213 version_type=freebsd-$objformat
13214 case $version_type in
13216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13217 soname_spec='$libname$release$shared_ext$major'
13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13226 shlibpath_var=LD_LIBRARY_PATH
13229 shlibpath_overrides_runpath=yes
13231 freebsd3.[01]* | freebsdelf3.[01]*)
13232 shlibpath_overrides_runpath=yes
13233 hardcode_into_libs=yes
13235 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13236 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13237 shlibpath_overrides_runpath=no
13238 hardcode_into_libs=yes
13240 *) # from 4.6 on, and DragonFly
13241 shlibpath_overrides_runpath=yes
13242 hardcode_into_libs=yes
13248 version_type=linux # correct to gnu/linux during the next big refactor
13251 dynamic_linker="$host_os runtime_loader"
13252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13253 soname_spec='$libname$release$shared_ext$major'
13254 shlibpath_var=LIBRARY_PATH
13255 shlibpath_overrides_runpath=no
13256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13257 hardcode_into_libs=yes
13260 hpux9* | hpux10* | hpux11*)
13261 # Give a soname corresponding to the major version so that dld.sl refuses to
13262 # link against other versions.
13269 hardcode_into_libs=yes
13270 dynamic_linker="$host_os dld.so"
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13274 soname_spec='$libname$release$shared_ext$major'
13275 if test 32 = "$HPUX_IA64_MODE"; then
13276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13277 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13280 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13285 hardcode_into_libs=yes
13286 dynamic_linker="$host_os dld.sl"
13287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13290 soname_spec='$libname$release$shared_ext$major'
13291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13296 dynamic_linker="$host_os dld.sl"
13297 shlibpath_var=SHLIB_PATH
13298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13300 soname_spec='$libname$release$shared_ext$major'
13303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13304 postinstall_cmds='chmod 555 $lib'
13305 # or fails outright, so override atomically:
13306 install_override_mode=555
13310 version_type=linux # correct to gnu/linux during the next big refactor
13313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13314 soname_spec='$libname$release$shared_ext$major'
13315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=no
13318 hardcode_into_libs=yes
13321 irix5* | irix6* | nonstopux*)
13323 nonstopux*) version_type=nonstopux ;;
13325 if test yes = "$lt_cv_prog_gnu_ld"; then
13326 version_type=linux # correct to gnu/linux during the next big refactor
13333 soname_spec='$libname$release$shared_ext$major'
13334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13336 irix5* | nonstopux*)
13337 libsuff= shlibsuff=
13340 case $LD in # libtool.m4 will add one of these switches to LD
13341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13342 libsuff= shlibsuff= libmagic=32-bit;;
13343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13344 libsuff=32 shlibsuff=N32 libmagic=N32;;
13345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13347 *) libsuff= shlibsuff= libmagic=never-match;;
13351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13352 shlibpath_overrides_runpath=no
13353 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13354 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13355 hardcode_into_libs=yes
13358 # No shared lib support for Linux oldld, aout, or coff.
13359 linux*oldld* | linux*aout* | linux*coff*)
13364 version_type=none # Android doesn't support versioned libraries.
13367 library_names_spec='$libname$release$shared_ext'
13368 soname_spec='$libname$release$shared_ext'
13370 shlibpath_var=LD_LIBRARY_PATH
13371 shlibpath_overrides_runpath=yes
13373 # This implies no fast_install, which is unacceptable.
13374 # Some rework will be needed to allow for fast_install
13375 # before this can be enabled.
13376 hardcode_into_libs=yes
13378 dynamic_linker='Android linker'
13379 # Don't embed -rpath directories since the linker doesn't support them.
13380 hardcode_libdir_flag_spec='-L$libdir'
13383 # This must be glibc/ELF.
13384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13385 version_type=linux # correct to gnu/linux during the next big refactor
13388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13389 soname_spec='$libname$release$shared_ext$major'
13390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13391 shlibpath_var=LD_LIBRARY_PATH
13392 shlibpath_overrides_runpath=no
13394 # Some binutils ld are patched to set DT_RUNPATH
13395 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13396 $as_echo_n "(cached) " >&6
13398 lt_cv_shlibpath_overrides_runpath=no
13399 save_LDFLAGS=$LDFLAGS
13400 save_libdir=$libdir
13401 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13402 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404 /* end confdefs.h. */
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13416 lt_cv_shlibpath_overrides_runpath=yes
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LDFLAGS=$save_LDFLAGS
13422 libdir=$save_libdir
13426 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13428 # This implies no fast_install, which is unacceptable.
13429 # Some rework will be needed to allow for fast_install
13430 # before this can be enabled.
13431 hardcode_into_libs=yes
13433 # Add ABI-specific directories to the system library path.
13434 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13436 # Ideally, we could use ldconfig to report *all* directores which are
13437 # searched for libraries, however this is still not possible. Aside from not
13438 # being certain /sbin/ldconfig is available, command
13439 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13440 # even though it is searched at run-time. Try to do the best guess by
13441 # appending ld.so.conf contents (and includes) to the search path.
13442 if test -f /etc/ld.so.conf; then
13443 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' ' '`
13444 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13447 # We used to test for /lib/ld.so.1 and disable shared libraries on
13448 # powerpc, because MkLinux only supported shared libraries with the
13449 # GNU dynamic linker. Since this was broken with cross compilers,
13450 # most powerpc-linux boxes support dynamic linking these days and
13451 # people can always --disable-shared, the test was removed, and we
13452 # assume the GNU/Linux dynamic linker is in use.
13453 dynamic_linker='GNU/Linux ld.so'
13460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463 dynamic_linker='NetBSD (a.out) ld.so'
13465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13466 soname_spec='$libname$release$shared_ext$major'
13467 dynamic_linker='NetBSD ld.elf_so'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=yes
13471 hardcode_into_libs=yes
13475 version_type=linux # correct to gnu/linux during the next big refactor
13476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13486 soname_spec='$libname$release$shared_ext$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=no
13489 hardcode_into_libs=yes
13490 dynamic_linker='ldqnx.so'
13493 openbsd* | bitrig*)
13495 sys_lib_dlsearch_path_spec=/usr/lib
13497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 shlibpath_overrides_runpath=yes
13509 libname_spec='$name'
13510 version_type=windows
13514 # OS/2 can only load a DLL with a base name of 8 characters or less.
13515 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13516 v=$($ECHO $release$versuffix | tr -d .-);
13517 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13518 $ECHO $n$v`$shared_ext'
13519 library_names_spec='${libname}_dll.$libext'
13520 dynamic_linker='OS/2 ld.exe'
13521 shlibpath_var=BEGINLIBPATH
13522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13524 postinstall_cmds='base_file=`basename \$file`~
13525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13526 dldir=$destdir/`dirname \$dlpath`~
13527 test -d \$dldir || mkdir -p \$dldir~
13528 $install_prog $dir/$dlname \$dldir/$dlname~
13529 chmod a+x \$dldir/$dlname~
13530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13534 dlpath=$dir/\$dldll~
13538 osf3* | osf4* | osf5*)
13542 soname_spec='$libname$release$shared_ext$major'
13543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13544 shlibpath_var=LD_LIBRARY_PATH
13545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13554 version_type=linux # correct to gnu/linux during the next big refactor
13557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13558 soname_spec='$libname$release$shared_ext$major'
13559 shlibpath_var=LD_LIBRARY_PATH
13560 shlibpath_overrides_runpath=yes
13561 hardcode_into_libs=yes
13562 # ldd complains unless libraries are executable
13563 postinstall_cmds='chmod +x $lib'
13568 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13570 shlibpath_var=LD_LIBRARY_PATH
13571 shlibpath_overrides_runpath=yes
13572 if test yes = "$with_gnu_ld"; then
13579 version_type=linux # correct to gnu/linux during the next big refactor
13580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13581 soname_spec='$libname$release$shared_ext$major'
13582 shlibpath_var=LD_LIBRARY_PATH
13583 case $host_vendor in
13585 shlibpath_overrides_runpath=no
13587 runpath_var=LD_RUN_PATH
13595 shlibpath_overrides_runpath=no
13596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13602 if test -d /usr/nec; then
13603 version_type=linux # correct to gnu/linux during the next big refactor
13604 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13605 soname_spec='$libname$shared_ext.$major'
13606 shlibpath_var=LD_LIBRARY_PATH
13610 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13615 soname_spec='$libname$release$shared_ext$major'
13616 shlibpath_var=LD_LIBRARY_PATH
13617 shlibpath_overrides_runpath=yes
13618 hardcode_into_libs=yes
13619 if test yes = "$with_gnu_ld"; then
13620 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13629 sys_lib_dlsearch_path_spec='/usr/lib'
13633 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13634 version_type=linux # correct to gnu/linux during the next big refactor
13637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13638 shlibpath_var=LD_LIBRARY_PATH
13639 shlibpath_overrides_runpath=no
13640 hardcode_into_libs=yes
13644 version_type=linux # correct to gnu/linux during the next big refactor
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13646 soname_spec='$libname$release$shared_ext$major'
13647 shlibpath_var=LD_LIBRARY_PATH
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13655 $as_echo "$dynamic_linker" >&6; }
13656 test no = "$dynamic_linker" && can_build_shared=no
13658 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13659 if test yes = "$GCC"; then
13660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13663 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13664 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13667 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13668 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13671 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13672 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13674 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13675 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13677 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13678 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13777 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13779 if test -n "$hardcode_libdir_flag_spec" ||
13780 test -n "$runpath_var" ||
13781 test yes = "$hardcode_automatic"; then
13783 # We can hardcode non-existent directories.
13784 if test no != "$hardcode_direct" &&
13785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13786 # have to relink, otherwise we might link with an installed library
13787 # when we should be linking with a yet-to-be-installed one
13788 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13789 test no != "$hardcode_minus_L"; then
13790 # Linking always hardcodes the temporary library directory.
13791 hardcode_action=relink
13793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13794 hardcode_action=immediate
13797 # We cannot hardcode anything, or else we can only hardcode existing
13799 hardcode_action=unsupported
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13802 $as_echo "$hardcode_action" >&6; }
13804 if test relink = "$hardcode_action" ||
13805 test yes = "$inherit_rpath"; then
13806 # Fast installation is not supported
13807 enable_fast_install=no
13808 elif test yes = "$shlibpath_overrides_runpath" ||
13809 test no = "$enable_shared"; then
13810 # Fast installation is not necessary
13811 enable_fast_install=needless
13819 if test yes != "$enable_dlopen"; then
13820 enable_dlopen=unknown
13821 enable_dlopen_self=unknown
13822 enable_dlopen_self_static=unknown
13829 lt_cv_dlopen=load_add_on
13831 lt_cv_dlopen_self=yes
13834 mingw* | pw32* | cegcc*)
13835 lt_cv_dlopen=LoadLibrary
13840 lt_cv_dlopen=dlopen
13845 # if libdl is installed we need to link against it
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13847 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13848 if ${ac_cv_lib_dl_dlopen+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 ac_check_lib_save_LIBS=$LIBS
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13856 /* Override any GCC internal prototype to avoid an error.
13857 Use char because int might match the return type of a GCC
13858 builtin and then its argument prototype would still apply. */
13871 if ac_fn_c_try_link "$LINENO"; then :
13872 ac_cv_lib_dl_dlopen=yes
13874 ac_cv_lib_dl_dlopen=no
13876 rm -f core conftest.err conftest.$ac_objext \
13877 conftest$ac_exeext conftest.$ac_ext
13878 LIBS=$ac_check_lib_save_LIBS
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13881 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13882 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13888 lt_cv_dlopen_self=yes
13895 # Don't try to run any link tests for TPF. We know it's impossible
13896 # because TPF is a cross-compiler, and we know how we open DSOs.
13897 lt_cv_dlopen=dlopen
13899 lt_cv_dlopen_self=no
13903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13904 if test "x$ac_cv_func_shl_load" = xyes; then :
13905 lt_cv_dlopen=shl_load
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13909 if ${ac_cv_lib_dld_shl_load+:} false; then :
13910 $as_echo_n "(cached) " >&6
13912 ac_check_lib_save_LIBS=$LIBS
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13927 return shl_load ();
13932 if ac_fn_c_try_link "$LINENO"; then :
13933 ac_cv_lib_dld_shl_load=yes
13935 ac_cv_lib_dld_shl_load=no
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 LIBS=$ac_check_lib_save_LIBS
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13943 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13944 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13947 if test "x$ac_cv_func_dlopen" = xyes; then :
13948 lt_cv_dlopen=dlopen
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13952 if ${ac_cv_lib_dl_dlopen+:} false; then :
13953 $as_echo_n "(cached) " >&6
13955 ac_check_lib_save_LIBS=$LIBS
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13975 if ac_fn_c_try_link "$LINENO"; then :
13976 ac_cv_lib_dl_dlopen=yes
13978 ac_cv_lib_dl_dlopen=no
13980 rm -f core conftest.err conftest.$ac_objext \
13981 conftest$ac_exeext conftest.$ac_ext
13982 LIBS=$ac_check_lib_save_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13986 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13987 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13991 if ${ac_cv_lib_svld_dlopen+:} false; then :
13992 $as_echo_n "(cached) " >&6
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lsvld $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_svld_dlopen=yes
14017 ac_cv_lib_svld_dlopen=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14025 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14026 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14030 if ${ac_cv_lib_dld_dld_link+:} false; then :
14031 $as_echo_n "(cached) " >&6
14033 ac_check_lib_save_LIBS=$LIBS
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14048 return dld_link ();
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_dld_dld_link=yes
14056 ac_cv_lib_dld_dld_link=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14064 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14065 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14086 if test no = "$lt_cv_dlopen"; then
14092 case $lt_cv_dlopen in
14094 save_CPPFLAGS=$CPPFLAGS
14095 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14097 save_LDFLAGS=$LDFLAGS
14098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14101 LIBS="$lt_cv_dlopen_libs $LIBS"
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14105 if ${lt_cv_dlopen_self+:} false; then :
14106 $as_echo_n "(cached) " >&6
14108 if test yes = "$cross_compiling"; then :
14109 lt_cv_dlopen_self=cross
14111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14112 lt_status=$lt_dlunknown
14113 cat > conftest.$ac_ext <<_LT_EOF
14114 #line $LINENO "configure"
14115 #include "confdefs.h"
14124 # define LT_DLGLOBAL RTLD_GLOBAL
14127 # define LT_DLGLOBAL DL_GLOBAL
14129 # define LT_DLGLOBAL 0
14133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14134 find out it does not work in some platform. */
14135 #ifndef LT_DLLAZY_OR_NOW
14137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14140 # define LT_DLLAZY_OR_NOW DL_LAZY
14143 # define LT_DLLAZY_OR_NOW RTLD_NOW
14146 # define LT_DLLAZY_OR_NOW DL_NOW
14148 # define LT_DLLAZY_OR_NOW 0
14155 /* When -fvisibility=hidden is used, assume the code has been annotated
14156 correspondingly for the symbols needed. */
14157 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14158 int fnord () __attribute__((visibility("default")));
14161 int fnord () { return 42; }
14164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14165 int status = $lt_dlunknown;
14169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14173 else puts (dlerror ());
14175 /* dlclose (self); */
14183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14184 (eval $ac_link) 2>&5
14186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14188 (./conftest; exit; ) >&5 2>/dev/null
14190 case x$lt_status in
14191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14196 # compilation failed
14197 lt_cv_dlopen_self=no
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14205 $as_echo "$lt_cv_dlopen_self" >&6; }
14207 if test yes = "$lt_cv_dlopen_self"; then
14208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14211 if ${lt_cv_dlopen_self_static+:} false; then :
14212 $as_echo_n "(cached) " >&6
14214 if test yes = "$cross_compiling"; then :
14215 lt_cv_dlopen_self_static=cross
14217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14218 lt_status=$lt_dlunknown
14219 cat > conftest.$ac_ext <<_LT_EOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14230 # define LT_DLGLOBAL RTLD_GLOBAL
14233 # define LT_DLGLOBAL DL_GLOBAL
14235 # define LT_DLGLOBAL 0
14239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14240 find out it does not work in some platform. */
14241 #ifndef LT_DLLAZY_OR_NOW
14243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14246 # define LT_DLLAZY_OR_NOW DL_LAZY
14249 # define LT_DLLAZY_OR_NOW RTLD_NOW
14252 # define LT_DLLAZY_OR_NOW DL_NOW
14254 # define LT_DLLAZY_OR_NOW 0
14261 /* When -fvisibility=hidden is used, assume the code has been annotated
14262 correspondingly for the symbols needed. */
14263 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14264 int fnord () __attribute__((visibility("default")));
14267 int fnord () { return 42; }
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14279 else puts (dlerror ());
14281 /* dlclose (self); */
14289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14290 (eval $ac_link) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14294 (./conftest; exit; ) >&5 2>/dev/null
14296 case x$lt_status in
14297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14302 # compilation failed
14303 lt_cv_dlopen_self_static=no
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14314 CPPFLAGS=$save_CPPFLAGS
14315 LDFLAGS=$save_LDFLAGS
14320 case $lt_cv_dlopen_self in
14321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14322 *) enable_dlopen_self=unknown ;;
14325 case $lt_cv_dlopen_self_static in
14326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14327 *) enable_dlopen_self_static=unknown ;;
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14357 # FIXME - insert some real tests, host_os isn't really good enough
14360 if test -n "$STRIP"; then
14361 striplib="$STRIP -x"
14362 old_striplib="$STRIP -S"
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364 $as_echo "yes" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14388 # Report what library types will actually be built
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14392 $as_echo "$can_build_shared" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14395 $as_echo_n "checking whether to build shared libraries... " >&6; }
14396 test no = "$can_build_shared" && enable_shared=no
14398 # On AIX, shared libraries and static libraries use the same namespace, and
14399 # are all built from PIC.
14402 test yes = "$enable_shared" && enable_static=no
14403 if test -n "$RANLIB"; then
14404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14405 postinstall_cmds='$RANLIB $lib'
14410 if test ia64 != "$host_cpu"; then
14411 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14412 yes,aix,yes) ;; # shared object as lib.so file only
14413 yes,svr4,*) ;; # shared object as lib.so archive member only
14414 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14420 $as_echo "$enable_shared" >&6; }
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14423 $as_echo_n "checking whether to build static libraries... " >&6; }
14424 # Make sure either enable_shared or enable_static is yes.
14425 test yes = "$enable_shared" || enable_static=yes
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14427 $as_echo "$enable_static" >&6; }
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14455 ac_config_commands="$ac_config_commands libtool"
14460 # Only expand once:
14465 # Checks for header files.
14466 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/ipc.h sys/shm.h
14468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14469 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14472 cat >>confdefs.h <<_ACEOF
14473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14482 # Using own tests for int64* because autoconf builtin only give 32bit.
14483 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14484 if test "x$ac_cv_type_int8_t" = xyes; then :
14488 cat >>confdefs.h <<_ACEOF
14489 #define int8_t signed char
14494 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14495 if test "x$ac_cv_type_int16_t" = xyes; then :
14499 cat >>confdefs.h <<_ACEOF
14500 #define int16_t short
14505 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14506 if test "x$ac_cv_type_int32_t" = xyes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define int32_t int
14516 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14517 if test "x$ac_cv_type_int64_t" = xyes; then :
14521 cat >>confdefs.h <<_ACEOF
14522 #define int64_t long long
14527 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14528 if test "x$ac_cv_type_uint8_t" = xyes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define uint8_t unsigned char
14538 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14539 if test "x$ac_cv_type_uint16_t" = xyes; then :
14543 cat >>confdefs.h <<_ACEOF
14544 #define uint16_t unsigned short
14549 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14550 if test "x$ac_cv_type_uint32_t" = xyes; then :
14554 cat >>confdefs.h <<_ACEOF
14555 #define uint32_t unsigned int
14560 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14561 if test "x$ac_cv_type_uint64_t" = xyes; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define uint64_t unsigned long long
14571 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14572 if test "x$ac_cv_type_size_t" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define size_t unsigned int
14582 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14583 if test "x$ac_cv_type_ssize_t" = xyes; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define ssize_t int
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14594 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14595 if ${ac_cv_type_uid_t+:} false; then :
14596 $as_echo_n "(cached) " >&6
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600 #include <sys/types.h>
14603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14604 $EGREP "uid_t" >/dev/null 2>&1; then :
14605 ac_cv_type_uid_t=yes
14607 ac_cv_type_uid_t=no
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14613 $as_echo "$ac_cv_type_uid_t" >&6; }
14614 if test $ac_cv_type_uid_t = no; then
14616 $as_echo "#define uid_t int" >>confdefs.h
14619 $as_echo "#define gid_t int" >>confdefs.h
14623 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14624 if test "x$ac_cv_type_pid_t" = xyes; then :
14628 cat >>confdefs.h <<_ACEOF
14634 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14635 if test "x$ac_cv_type_off_t" = xyes; then :
14639 cat >>confdefs.h <<_ACEOF
14640 #define off_t long int
14645 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14646 $ac_includes_default
14647 #ifdef HAVE_WINSOCK2_H
14648 # include <winsock2.h>
14652 if test "x$ac_cv_type_u_char" = xyes; then :
14656 $as_echo "#define u_char unsigned char" >>confdefs.h
14660 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14661 $ac_includes_default
14662 #ifdef HAVE_SYS_RESOURCE_H
14663 # include <sys/resource.h>
14667 if test "x$ac_cv_type_rlim_t" = xyes; then :
14671 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14676 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14677 $ac_includes_default
14678 #ifdef HAVE_SYS_SOCKET_H
14679 # include <sys/socket.h>
14681 #ifdef HAVE_WS2TCPIP_H
14682 # include <ws2tcpip.h>
14686 if test "x$ac_cv_type_socklen_t" = xyes; then :
14690 $as_echo "#define socklen_t int" >>confdefs.h
14694 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14695 $ac_includes_default
14696 #ifdef HAVE_SYS_TYPES_H
14697 # include <sys/types.h>
14699 #ifdef HAVE_NETINET_IN_H
14700 # include <netinet/in.h>
14704 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14708 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14712 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14713 $ac_includes_default
14714 #ifdef HAVE_SYS_TYPES_H
14715 # include <sys/types.h>
14717 #ifdef HAVE_NETINET_IN_H
14718 # include <netinet/in.h>
14722 if test "x$ac_cv_type_in_port_t" = xyes; then :
14726 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14731 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14732 if test "$cross_compiling" = yes; then :
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14734 $as_echo "cross-compile no" >&6; }
14736 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14738 case " $LIBOBJS " in
14739 *" memcmp.$ac_objext "* ) ;;
14740 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14750 #include <stdlib.h>
14751 #include <string.h>
14754 char a = 255, b = 0;
14755 if(memcmp(&a, &b, 1) < 0)
14761 if ac_fn_c_try_run "$LINENO"; then :
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 $as_echo "yes" >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14768 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14770 case " $LIBOBJS " in
14771 *" memcmp.$ac_objext "* ) ;;
14772 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14779 conftest.$ac_objext conftest.beam conftest.$ac_ext
14783 # The cast to long int works around a bug in the HP C Compiler
14784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14786 # This bug is HP SR number 8606223364.
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14788 $as_echo_n "checking size of time_t... " >&6; }
14789 if ${ac_cv_sizeof_time_t+:} false; then :
14790 $as_echo_n "(cached) " >&6
14792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14793 $ac_includes_default
14794 #ifdef TIME_WITH_SYS_TIME
14795 # include <sys/time.h>
14798 # ifdef HAVE_SYS_TIME_H
14799 # include <sys/time.h>
14808 if test "$ac_cv_type_time_t" = yes; then
14809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14811 as_fn_error 77 "cannot compute sizeof (time_t)
14812 See \`config.log' for more details" "$LINENO" 5; }
14814 ac_cv_sizeof_time_t=0
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14820 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14824 cat >>confdefs.h <<_ACEOF
14825 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14830 # add option to disable the evil rpath
14832 # Check whether --enable-rpath was given.
14833 if test "${enable_rpath+set}" = set; then :
14834 enableval=$enable_rpath; enable_rpath=$enableval
14839 if test "x$enable_rpath" = xno; then
14840 ac_config_commands="$ac_config_commands disable-rpath"
14846 # check to see if libraries are needed for these functions.
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14848 $as_echo_n "checking for library containing inet_pton... " >&6; }
14849 if ${ac_cv_search_inet_pton+:} false; then :
14850 $as_echo_n "(cached) " >&6
14852 ac_func_search_save_LIBS=$LIBS
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14856 /* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14866 return inet_pton ();
14871 for ac_lib in '' nsl; do
14872 if test -z "$ac_lib"; then
14873 ac_res="none required"
14876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14878 if ac_fn_c_try_link "$LINENO"; then :
14879 ac_cv_search_inet_pton=$ac_res
14881 rm -f core conftest.err conftest.$ac_objext \
14883 if ${ac_cv_search_inet_pton+:} false; then :
14887 if ${ac_cv_search_inet_pton+:} false; then :
14890 ac_cv_search_inet_pton=no
14892 rm conftest.$ac_ext
14893 LIBS=$ac_func_search_save_LIBS
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14896 $as_echo "$ac_cv_search_inet_pton" >&6; }
14897 ac_res=$ac_cv_search_inet_pton
14898 if test "$ac_res" != no; then :
14899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14904 $as_echo_n "checking for library containing socket... " >&6; }
14905 if ${ac_cv_search_socket+:} false; then :
14906 $as_echo_n "(cached) " >&6
14908 ac_func_search_save_LIBS=$LIBS
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14927 for ac_lib in '' socket; do
14928 if test -z "$ac_lib"; then
14929 ac_res="none required"
14932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14934 if ac_fn_c_try_link "$LINENO"; then :
14935 ac_cv_search_socket=$ac_res
14937 rm -f core conftest.err conftest.$ac_objext \
14939 if ${ac_cv_search_socket+:} false; then :
14943 if ${ac_cv_search_socket+:} false; then :
14946 ac_cv_search_socket=no
14948 rm conftest.$ac_ext
14949 LIBS=$ac_func_search_save_LIBS
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14952 $as_echo "$ac_cv_search_socket" >&6; }
14953 ac_res=$ac_cv_search_socket
14954 if test "$ac_res" != no; then :
14955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14960 # check wether strptime also works
14962 # check some functions of the OS before linking libs (while still runnable).
14963 for ac_header in unistd.h
14965 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14966 if test "x$ac_cv_header_unistd_h" = xyes; then :
14967 cat >>confdefs.h <<_ACEOF
14968 #define HAVE_UNISTD_H 1
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14976 $as_echo_n "checking for working chown... " >&6; }
14977 if ${ac_cv_func_chown_works+:} false; then :
14978 $as_echo_n "(cached) " >&6
14980 if test "$cross_compiling" = yes; then :
14981 ac_cv_func_chown_works=no
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 $ac_includes_default
14991 char *f = "conftest.chown";
14992 struct stat before, after;
14994 if (creat (f, 0600) < 0)
14996 if (stat (f, &before) < 0)
14998 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15000 if (stat (f, &after) < 0)
15002 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15008 if ac_fn_c_try_run "$LINENO"; then :
15009 ac_cv_func_chown_works=yes
15011 ac_cv_func_chown_works=no
15013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15014 conftest.$ac_objext conftest.beam conftest.$ac_ext
15017 rm -f conftest.chown
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15021 $as_echo "$ac_cv_func_chown_works" >&6; }
15022 if test $ac_cv_func_chown_works = yes; then
15024 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15028 for ac_header in vfork.h
15030 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15031 if test "x$ac_cv_header_vfork_h" = xyes; then :
15032 cat >>confdefs.h <<_ACEOF
15033 #define HAVE_VFORK_H 1
15040 for ac_func in fork vfork
15042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15045 cat >>confdefs.h <<_ACEOF
15046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15052 if test "x$ac_cv_func_fork" = xyes; then
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15054 $as_echo_n "checking for working fork... " >&6; }
15055 if ${ac_cv_func_fork_works+:} false; then :
15056 $as_echo_n "(cached) " >&6
15058 if test "$cross_compiling" = yes; then :
15059 ac_cv_func_fork_works=cross
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063 $ac_includes_default
15068 /* By Ruediger Kuhlmann. */
15069 return fork () < 0;
15075 if ac_fn_c_try_run "$LINENO"; then :
15076 ac_cv_func_fork_works=yes
15078 ac_cv_func_fork_works=no
15080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15081 conftest.$ac_objext conftest.beam conftest.$ac_ext
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15086 $as_echo "$ac_cv_func_fork_works" >&6; }
15089 ac_cv_func_fork_works=$ac_cv_func_fork
15091 if test "x$ac_cv_func_fork_works" = xcross; then
15093 *-*-amigaos* | *-*-msdosdjgpp*)
15094 # Override, as these systems have only a dummy fork() stub
15095 ac_cv_func_fork_works=no
15098 ac_cv_func_fork_works=yes
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15102 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15104 ac_cv_func_vfork_works=$ac_cv_func_vfork
15105 if test "x$ac_cv_func_vfork" = xyes; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15107 $as_echo_n "checking for working vfork... " >&6; }
15108 if ${ac_cv_func_vfork_works+:} false; then :
15109 $as_echo_n "(cached) " >&6
15111 if test "$cross_compiling" = yes; then :
15112 ac_cv_func_vfork_works=cross
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 /* Thanks to Paul Eggert for this test. */
15117 $ac_includes_default
15118 #include <sys/wait.h>
15119 #ifdef HAVE_VFORK_H
15120 # include <vfork.h>
15122 /* On some sparc systems, changes by the child to local and incoming
15123 argument registers are propagated back to the parent. The compiler
15124 is told about this with #include <vfork.h>, but some compilers
15125 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15126 static variable whose address is put into a register that is
15127 clobbered by the vfork. */
15130 sparc_address_test (int arg)
15132 sparc_address_test (arg) int arg;
15135 static pid_t child;
15153 pid_t parent = getpid ();
15156 sparc_address_test (0);
15161 /* Here is another test for sparc vfork register problems. This
15162 test uses lots of local variables, at least as many local
15163 variables as main has allocated so far including compiler
15164 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15165 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15166 reuse the register of parent for one of the local variables,
15167 since it will think that parent can't possibly be used any more
15168 in this routine. Assigning to the local variable will thus
15169 munge parent in the parent process. */
15171 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15172 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15173 /* Convince the compiler that p..p7 are live; otherwise, it might
15174 use the same hardware register for all 8 local variables. */
15175 if (p != p1 || p != p2 || p != p3 || p != p4
15176 || p != p5 || p != p6 || p != p7)
15179 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15180 from child file descriptors. If the child closes a descriptor
15181 before it execs or exits, this munges the parent's descriptor
15182 as well. Test for this by closing stdout in the child. */
15183 _exit(close(fileno(stdout)) != 0);
15188 while (wait(&status) != child)
15191 /* Was there some problem with vforking? */
15194 /* Did the child fail? (This shouldn't happen.) */
15197 /* Did the vfork/compiler bug occur? */
15198 || parent != getpid()
15200 /* Did the file descriptor bug occur? */
15201 || fstat(fileno(stdout), &st) != 0
15206 if ac_fn_c_try_run "$LINENO"; then :
15207 ac_cv_func_vfork_works=yes
15209 ac_cv_func_vfork_works=no
15211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15212 conftest.$ac_objext conftest.beam conftest.$ac_ext
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15217 $as_echo "$ac_cv_func_vfork_works" >&6; }
15220 if test "x$ac_cv_func_fork_works" = xcross; then
15221 ac_cv_func_vfork_works=$ac_cv_func_vfork
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15223 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15226 if test "x$ac_cv_func_vfork_works" = xyes; then
15228 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15232 $as_echo "#define vfork fork" >>confdefs.h
15235 if test "x$ac_cv_func_fork_works" = xyes; then
15237 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15242 $as_echo_n "checking return type of signal handlers... " >&6; }
15243 if ${ac_cv_type_signal+:} false; then :
15244 $as_echo_n "(cached) " >&6
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15248 #include <sys/types.h>
15249 #include <signal.h>
15254 return *(signal (0, 0)) (0) == 1;
15259 if ac_fn_c_try_compile "$LINENO"; then :
15260 ac_cv_type_signal=int
15262 ac_cv_type_signal=void
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15267 $as_echo "$ac_cv_type_signal" >&6; }
15269 cat >>confdefs.h <<_ACEOF
15270 #define RETSIGTYPE $ac_cv_type_signal
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15275 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15276 if ${ac_cv_sys_largefile_source+:} false; then :
15277 $as_echo_n "(cached) " >&6
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282 #include <sys/types.h> /* for off_t */
15287 int (*fp) (FILE *, off_t, int) = fseeko;
15288 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 ac_cv_sys_largefile_source=no; break
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15300 #define _LARGEFILE_SOURCE 1
15301 #include <sys/types.h> /* for off_t */
15306 int (*fp) (FILE *, off_t, int) = fseeko;
15307 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 ac_cv_sys_largefile_source=1; break
15315 rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
15317 ac_cv_sys_largefile_source=unknown
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15322 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15323 case $ac_cv_sys_largefile_source in #(
15326 cat >>confdefs.h <<_ACEOF
15327 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15333 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15334 # in glibc 2.1.3, but that breaks too many other things.
15335 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15336 if test $ac_cv_sys_largefile_source != unknown; then
15338 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15343 # Check whether --enable-largefile was given.
15344 if test "${enable_largefile+set}" = set; then :
15345 enableval=$enable_largefile;
15348 if test "$enable_largefile" != no; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15352 if ${ac_cv_sys_largefile_CC+:} false; then :
15353 $as_echo_n "(cached) " >&6
15355 ac_cv_sys_largefile_CC=no
15356 if test "$GCC" != yes; then
15359 # IRIX 6.2 and later do not support large files by default,
15360 # so use the C compiler's -n32 option if that helps.
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #include <sys/types.h>
15364 /* Check that off_t can represent 2**63 - 1 correctly.
15365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15366 since some C++ compilers masquerading as C compilers
15367 incorrectly reject 9223372036854775807. */
15368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15370 && LARGE_OFF_T % 2147483647 == 1)
15380 if ac_fn_c_try_compile "$LINENO"; then :
15383 rm -f core conftest.err conftest.$ac_objext
15385 if ac_fn_c_try_compile "$LINENO"; then :
15386 ac_cv_sys_largefile_CC=' -n32'; break
15388 rm -f core conftest.err conftest.$ac_objext
15392 rm -f conftest.$ac_ext
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15397 if test "$ac_cv_sys_largefile_CC" != no; then
15398 CC=$CC$ac_cv_sys_largefile_CC
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15403 if ${ac_cv_sys_file_offset_bits+:} false; then :
15404 $as_echo_n "(cached) " >&6
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 #include <sys/types.h>
15410 /* Check that off_t can represent 2**63 - 1 correctly.
15411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15412 since some C++ compilers masquerading as C compilers
15413 incorrectly reject 9223372036854775807. */
15414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15416 && LARGE_OFF_T % 2147483647 == 1)
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427 ac_cv_sys_file_offset_bits=no; break
15429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 #define _FILE_OFFSET_BITS 64
15433 #include <sys/types.h>
15434 /* Check that off_t can represent 2**63 - 1 correctly.
15435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15436 since some C++ compilers masquerading as C compilers
15437 incorrectly reject 9223372036854775807. */
15438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15440 && LARGE_OFF_T % 2147483647 == 1)
15450 if ac_fn_c_try_compile "$LINENO"; then :
15451 ac_cv_sys_file_offset_bits=64; break
15453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 ac_cv_sys_file_offset_bits=unknown
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15459 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15460 case $ac_cv_sys_file_offset_bits in #(
15463 cat >>confdefs.h <<_ACEOF
15464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15469 if test $ac_cv_sys_file_offset_bits = unknown; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15471 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15472 if ${ac_cv_sys_large_files+:} false; then :
15473 $as_echo_n "(cached) " >&6
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15478 #include <sys/types.h>
15479 /* Check that off_t can represent 2**63 - 1 correctly.
15480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15481 since some C++ compilers masquerading as C compilers
15482 incorrectly reject 9223372036854775807. */
15483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15485 && LARGE_OFF_T % 2147483647 == 1)
15495 if ac_fn_c_try_compile "$LINENO"; then :
15496 ac_cv_sys_large_files=no; break
15498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501 #define _LARGE_FILES 1
15502 #include <sys/types.h>
15503 /* Check that off_t can represent 2**63 - 1 correctly.
15504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15505 since some C++ compilers masquerading as C compilers
15506 incorrectly reject 9223372036854775807. */
15507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15509 && LARGE_OFF_T % 2147483647 == 1)
15519 if ac_fn_c_try_compile "$LINENO"; then :
15520 ac_cv_sys_large_files=1; break
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 ac_cv_sys_large_files=unknown
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15528 $as_echo "$ac_cv_sys_large_files" >&6; }
15529 case $ac_cv_sys_large_files in #(
15532 cat >>confdefs.h <<_ACEOF
15533 #define _LARGE_FILES $ac_cv_sys_large_files
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15547 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15548 cache=_D_LARGEFILE_SOURCE_1
15549 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15550 $as_echo_n "(cached) " >&6
15556 int a = fseeko(stdin, 0, 0);
15560 echo 'void f(){}' >>conftest.c
15561 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15562 eval "cv_prog_cc_flag_needed_$cache=no"
15565 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15566 eval "cv_prog_cc_flag_needed_$cache=yes"
15568 eval "cv_prog_cc_flag_needed_$cache=fail"
15569 #echo 'Test with flag fails too!'
15571 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15572 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15577 rm -f conftest conftest.c conftest.o
15581 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15583 $as_echo "yes" >&6; }
15585 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15587 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15590 #echo 'Test with flag is no!'
15592 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15593 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15599 $as_echo "failed" >&6; }
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15608 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15609 if echo $target | grep mingw32 >/dev/null; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15611 $as_echo "no (windows)" >&6; }
15613 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15616 if test "$cross_compiling" = yes; then :
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15619 $as_echo "crosscompile(yes)" >&6; }
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15627 #include <string.h>
15628 #include <stdlib.h>
15631 #ifdef HAVE_SYS_TYPES_H
15632 #include <sys/types.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15637 #ifdef HAVE_NETINET_IN_H
15638 #include <netinet/in.h>
15640 #ifdef HAVE_ARPA_INET_H
15641 #include <arpa/inet.h>
15643 #ifdef HAVE_UNISTD_H
15644 #include <unistd.h>
15656 struct sockaddr_in a;
15657 /* test if select and nonblocking reads work well together */
15659 fork child to send 10 messages.
15661 then try to nonblocking read the 10 messages
15662 then, nonblocking read must give EAGAIN
15665 port = 12345 + (time(0)%32);
15666 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15671 memset(&a, 0, sizeof(a));
15672 a.sin_family = AF_INET;
15673 a.sin_port = htons(port);
15674 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15675 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15679 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15684 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15686 perror("client socket");
15690 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15691 perror("client bind");
15694 a.sin_port = htons(port);
15696 /* no handler, causes exit in 10 seconds */
15699 /* send and receive on the socket */
15700 if((p=fork()) == 0) {
15701 for(i=0; i<num; i++) {
15702 if(sendto(cfd, &i, sizeof(i), 0,
15703 (struct sockaddr*)&a, sizeof(a)) < 0) {
15717 FD_SET(sfd, &rset);
15718 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15724 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15725 if(errno == EAGAIN)
15732 /* now we want to get EAGAIN: nonblocking goodness */
15734 recv(sfd, &x, sizeof(x), 0);
15735 if(errno != EAGAIN) {
15736 perror("trying to recv again");
15739 /* EAGAIN encountered */
15748 if ac_fn_c_try_run "$LINENO"; then :
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15751 $as_echo "yes" >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15758 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15763 conftest.$ac_objext conftest.beam conftest.$ac_ext
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15770 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15775 #include <unistd.h>
15776 #ifdef HAVE_WINSOCK2_H
15777 #include <winsock2.h>
15779 #ifdef HAVE_SYS_STAT_H
15780 #include <sys/stat.h>
15787 (void)mkdir("directory");
15793 if ac_fn_c_try_compile "$LINENO"; then :
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15795 $as_echo "yes" >&6; }
15797 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15802 $as_echo "no" >&6; }
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15807 for ac_func in strptime
15809 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15810 if test "x$ac_cv_func_strptime" = xyes; then :
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_STRPTIME 1
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15816 $as_echo_n "checking whether strptime works... " >&6; }
15817 if test c${cross_compiling} = cno; then
15818 if test "$cross_compiling" = yes; then :
15819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15821 as_fn_error $? "cannot run test program while cross compiling
15822 See \`config.log' for more details" "$LINENO" 5; }
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15827 #define _XOPEN_SOURCE 600
15829 int main(void) { struct tm tm; char *res;
15830 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);
15831 if (!res) return 2;
15832 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15833 if (!res) return 1; return 0; }
15836 if ac_fn_c_try_run "$LINENO"; then :
15837 eval "ac_cv_c_strptime_works=yes"
15839 eval "ac_cv_c_strptime_works=no"
15841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15842 conftest.$ac_objext conftest.beam conftest.$ac_ext
15846 eval "ac_cv_c_strptime_works=maybe"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15849 $as_echo "$ac_cv_c_strptime_works" >&6; }
15850 if test $ac_cv_c_strptime_works = no; then
15851 case " $LIBOBJS " in
15852 *" strptime.$ac_objext "* ) ;;
15853 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15859 cat >>confdefs.h <<_ACEOF
15860 #define STRPTIME_WORKS 1
15866 case " $LIBOBJS " in
15867 *" strptime.$ac_objext "* ) ;;
15868 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15876 # set memory allocation checking if requested
15877 # Check whether --enable-alloc-checks was given.
15878 if test "${enable_alloc_checks+set}" = set; then :
15879 enableval=$enable_alloc_checks;
15882 # Check whether --enable-alloc-lite was given.
15883 if test "${enable_alloc_lite+set}" = set; then :
15884 enableval=$enable_alloc_lite;
15887 # Check whether --enable-alloc-nonregional was given.
15888 if test "${enable_alloc_nonregional+set}" = set; then :
15889 enableval=$enable_alloc_nonregional;
15892 if test x_$enable_alloc_nonregional = x_yes; then
15894 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15897 if test x_$enable_alloc_checks = x_yes; then
15899 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15902 if test x_$enable_alloc_lite = x_yes; then
15904 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15909 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15910 if test "$cross_compiling" = yes; then :
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15912 $as_echo "no (crosscompile)" >&6; }
15913 case " $LIBOBJS " in
15914 *" malloc.$ac_objext "* ) ;;
15915 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15920 cat >>confdefs.h <<_ACEOF
15921 #define malloc rpl_malloc_unbound
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15928 #include <stdlib.h>
15936 if(malloc(0) != 0) return 1;
15942 if ac_fn_c_try_run "$LINENO"; then :
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15945 case " $LIBOBJS " in
15946 *" malloc.$ac_objext "* ) ;;
15947 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15952 cat >>confdefs.h <<_ACEOF
15953 #define malloc rpl_malloc_unbound
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15960 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15964 conftest.$ac_objext conftest.beam conftest.$ac_ext
15971 # check windows threads (we use them, not pthreads, on windows).
15972 if test "$on_mingw" = "yes"; then
15973 # check windows threads
15974 for ac_header in windows.h
15976 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15978 if test "x$ac_cv_header_windows_h" = xyes; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_WINDOWS_H 1
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15988 $as_echo_n "checking for CreateThread... " >&6; }
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15992 #ifdef HAVE_WINDOWS_H
15993 #include <windows.h>
16000 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
16006 if ac_fn_c_try_compile "$LINENO"; then :
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16010 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 # not on mingw, check thread libraries.
16023 # check for thread library.
16024 # check this first, so that the pthread lib does not get linked in via
16025 # libssl or libpython, and thus distorts the tests, and we end up using
16026 # the non-threadsafe C libraries.
16028 # Check whether --with-pthreads was given.
16029 if test "${with_pthreads+set}" = set; then :
16030 withval=$with_pthreads;
16035 ub_have_pthreads=no
16036 if test x_$withval != x_no; then
16040 ac_cpp='$CPP $CPPFLAGS'
16041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047 # We used to check for pthread.h first, but this fails if pthread.h
16048 # requires special compiler flags (e.g. on True64 or Sequent).
16049 # It gets checked for in the link test anyway.
16051 # First of all, check if the user has set any of the PTHREAD_LIBS,
16052 # etcetera environment variables, and if threads linking works using
16054 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16055 save_CFLAGS="$CFLAGS"
16056 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16058 LIBS="$PTHREAD_LIBS $LIBS"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16060 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16064 /* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
16070 char pthread_join ();
16074 return pthread_join ();
16079 if ac_fn_c_try_link "$LINENO"; then :
16082 rm -f core conftest.err conftest.$ac_objext \
16083 conftest$ac_exeext conftest.$ac_ext
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16085 $as_echo "$ax_pthread_ok" >&6; }
16086 if test x"$ax_pthread_ok" = xno; then
16091 CFLAGS="$save_CFLAGS"
16094 # We must check for the threads library under a number of different
16095 # names; the ordering is very important because some systems
16096 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16097 # libraries is broken (non-POSIX).
16099 # Create a list of thread flags to try. Items starting with a "-" are
16100 # C compiler flags, and other items are library names, except for "none"
16101 # which indicates that we try without any flags at all, and "pthread-config"
16102 # which is a program returning the flags for the Pth emulation library.
16104 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16106 # The ordering *is* (sometimes) important. Some notes on the
16107 # individual items follow:
16109 # pthreads: AIX (must check this before -lpthread)
16110 # none: in case threads are in libc; should be tried before -Kthread and
16111 # other compiler flags to prevent continual compiler warnings
16112 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16113 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16114 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16115 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16116 # -pthreads: Solaris/gcc
16117 # -mthreads: Mingw32/gcc, Lynx/gcc
16118 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16119 # doesn't hurt to check since this sometimes defines pthreads too;
16120 # also defines -D_REENTRANT)
16121 # ... -mt is also the pthreads flag for HP/aCC
16122 # pthread: Linux, etcetera
16123 # --thread-safe: KAI C++
16124 # pthread-config: use pthread-config program (for GNU Pth library)
16129 # On Solaris (at least, for some versions), libc contains stubbed
16130 # (non-functional) versions of the pthreads routines, so link-based
16131 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16132 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16133 # a function called by this macro, so we could check for that, but
16134 # who knows whether they'll stub that too in a future libc.) So,
16135 # we'll just look for -pthreads and -lpthread first:
16137 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16141 ax_pthread_flags="-pthread $ax_pthread_flags"
16145 # Clang doesn't consider unrecognized options an error unless we specify
16146 # -Werror. We throw in some extra Clang-specific options to ensure that
16147 # this doesn't happen for GCC, which also accepts -Werror.
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16150 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16151 save_CFLAGS="$CFLAGS"
16152 ax_pthread_extra_flags="-Werror"
16153 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16165 if ac_fn_c_try_compile "$LINENO"; then :
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16167 $as_echo "yes" >&6; }
16169 ax_pthread_extra_flags=
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171 $as_echo "no" >&6; }
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174 CFLAGS="$save_CFLAGS"
16176 if test x"$ax_pthread_ok" = xno; then
16177 for flag in $ax_pthread_flags; do
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16182 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16187 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16188 PTHREAD_CFLAGS="$flag"
16192 # Extract the first word of "pthread-config", so it can be a program name with args.
16193 set dummy pthread-config; ac_word=$2
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16195 $as_echo_n "checking for $ac_word... " >&6; }
16196 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16197 $as_echo_n "(cached) " >&6
16199 if test -n "$ax_pthread_config"; then
16200 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16203 for as_dir in $PATH
16206 test -z "$as_dir" && as_dir=.
16207 for ac_exec_ext in '' $ac_executable_extensions; do
16208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16209 ac_cv_prog_ax_pthread_config="yes"
16210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16217 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16220 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16221 if test -n "$ax_pthread_config"; then
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16223 $as_echo "$ax_pthread_config" >&6; }
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16226 $as_echo "no" >&6; }
16230 if test x"$ax_pthread_config" = xno; then continue; fi
16231 PTHREAD_CFLAGS="`pthread-config --cflags`"
16232 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16237 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16238 PTHREAD_LIBS="-l$flag"
16243 save_CFLAGS="$CFLAGS"
16244 LIBS="$PTHREAD_LIBS $LIBS"
16245 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16247 # Check for various functions. We must include pthread.h,
16248 # since some functions may be macros. (On the Sequent, we
16249 # need a special flag -Kthread to make this header compile.)
16250 # We check for pthread_join because it is in -lpthread on IRIX
16251 # while pthread_create is in libc. We check for pthread_attr_init
16252 # due to DEC craziness with -lpthreads. We check for
16253 # pthread_cleanup_push because it is one of the few pthread
16254 # functions on Solaris that doesn't have a non-functional libc stub.
16255 # We try pthread_create on general principles.
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 #include <pthread.h>
16259 static void routine(void *a) { *((int*)a) = 0; }
16260 static void *start_routine(void *a) { return a; }
16264 pthread_t th; pthread_attr_t attr;
16265 pthread_create(&th, 0, start_routine, 0);
16266 pthread_join(th, 0);
16267 pthread_attr_init(&attr);
16268 pthread_cleanup_push(routine, 0);
16269 pthread_cleanup_pop(0) /* ; */
16274 if ac_fn_c_try_link "$LINENO"; then :
16277 rm -f core conftest.err conftest.$ac_objext \
16278 conftest$ac_exeext conftest.$ac_ext
16281 CFLAGS="$save_CFLAGS"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16284 $as_echo "$ax_pthread_ok" >&6; }
16285 if test "x$ax_pthread_ok" = xyes; then
16294 # Various other checks:
16295 if test "x$ax_pthread_ok" = xyes; then
16297 LIBS="$PTHREAD_LIBS $LIBS"
16298 save_CFLAGS="$CFLAGS"
16299 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16301 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16303 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16305 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 #include <pthread.h>
16312 int attr = $attr; return attr /* ; */
16317 if ac_fn_c_try_link "$LINENO"; then :
16318 attr_name=$attr; break
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16324 $as_echo "$attr_name" >&6; }
16325 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define PTHREAD_CREATE_JOINABLE $attr_name
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16334 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16337 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16338 osf* | hpux*) flag="-D_REENTRANT";;
16340 if test "$GCC" = "yes"; then
16341 flag="-D_REENTRANT"
16343 # TODO: What about Clang on Solaris?
16344 flag="-mt -D_REENTRANT"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16349 $as_echo "$flag" >&6; }
16350 if test "x$flag" != xno; then
16351 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16355 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16356 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16357 $as_echo_n "(cached) " >&6
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #include <pthread.h>
16366 int i = PTHREAD_PRIO_INHERIT;
16371 if ac_fn_c_try_link "$LINENO"; then :
16372 ax_cv_PTHREAD_PRIO_INHERIT=yes
16374 ax_cv_PTHREAD_PRIO_INHERIT=no
16376 rm -f core conftest.err conftest.$ac_objext \
16377 conftest$ac_exeext conftest.$ac_ext
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16381 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16382 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16384 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16389 CFLAGS="$save_CFLAGS"
16391 # More AIX lossage: compile with *_r variant
16392 if test "x$GCC" != xyes; then
16396 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16397 #handle absolute path differently from PATH based program lookup
16400 if as_fn_executable_p ${CC}_r; then :
16401 PTHREAD_CC="${CC}_r"
16404 for ac_prog in ${CC}_r
16406 # Extract the first word of "$ac_prog", so it can be a program name with args.
16407 set dummy $ac_prog; ac_word=$2
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409 $as_echo_n "checking for $ac_word... " >&6; }
16410 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16411 $as_echo_n "(cached) " >&6
16413 if test -n "$PTHREAD_CC"; then
16414 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423 ac_cv_prog_PTHREAD_CC="$ac_prog"
16424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16433 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16434 if test -n "$PTHREAD_CC"; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16436 $as_echo "$PTHREAD_CC" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16443 test -n "$PTHREAD_CC" && break
16445 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16456 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16462 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16463 if test x"$ax_pthread_ok" = xyes; then
16466 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16468 if test -n "$PTHREAD_LIBS"; then
16469 LIBS="$PTHREAD_LIBS $LIBS"
16471 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16473 ub_have_pthreads=yes
16474 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16476 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16478 cat >>confdefs.h <<_ACEOF
16479 #define HAVE_PTHREAD_SPINLOCK_T 1
16484 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16486 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_PTHREAD_RWLOCK_T 1
16496 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16498 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16499 # catch clang warning 'argument unused during compilation'
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 $ac_includes_default
16504 int main(void) {return 0;}
16507 pthread_unused="yes"
16509 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16510 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16511 if test $? = 0; then
16513 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16514 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16515 if test $? -ne 0; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16517 $as_echo "yes" >&6; }
16518 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16519 PTHREAD_CFLAGS_ONLY="-pthread"
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16527 $as_echo "no" >&6; }
16528 fi # endif cc successful
16529 rm -f conftest conftest.c conftest.o
16530 fi # endif -pthread in CFLAGS
16539 ac_cpp='$CPP $CPPFLAGS'
16540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16547 # check solaris thread library
16549 # Check whether --with-solaris-threads was given.
16550 if test "${with_solaris_threads+set}" = set; then :
16551 withval=$with_solaris_threads;
16556 ub_have_sol_threads=no
16557 if test x_$withval != x_no; then
16558 if test x_$ub_have_pthreads != x_no; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16560 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16563 $as_echo_n "checking for library containing thr_create... " >&6; }
16564 if ${ac_cv_search_thr_create+:} false; then :
16565 $as_echo_n "(cached) " >&6
16567 ac_func_search_save_LIBS=$LIBS
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16577 char thr_create ();
16581 return thr_create ();
16586 for ac_lib in '' thread; do
16587 if test -z "$ac_lib"; then
16588 ac_res="none required"
16591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16593 if ac_fn_c_try_link "$LINENO"; then :
16594 ac_cv_search_thr_create=$ac_res
16596 rm -f core conftest.err conftest.$ac_objext \
16598 if ${ac_cv_search_thr_create+:} false; then :
16602 if ${ac_cv_search_thr_create+:} false; then :
16605 ac_cv_search_thr_create=no
16607 rm conftest.$ac_ext
16608 LIBS=$ac_func_search_save_LIBS
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16611 $as_echo "$ac_cv_search_thr_create" >&6; }
16612 ac_res=$ac_cv_search_thr_create
16613 if test "$ac_res" != no; then :
16614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16617 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16623 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16624 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16625 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16626 $as_echo_n "(cached) " >&6
16629 echo 'void f(void){}' >conftest.c
16630 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16631 eval "cv_prog_cc_flag_$cache=yes"
16633 eval "cv_prog_cc_flag_$cache=no"
16635 rm -f conftest conftest.o conftest.c
16639 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16641 $as_echo "yes" >&6; }
16643 CFLAGS="$CFLAGS -mt"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646 $as_echo "no" >&6; }
16648 CFLAGS="$CFLAGS -D_REENTRANT"
16651 ub_have_sol_threads=yes
16655 as_fn_error $? "no solaris threads found." "$LINENO" 5
16662 fi # end of non-mingw check of thread libraries
16664 # Check for PyUnbound
16666 # Check whether --with-pyunbound was given.
16667 if test "${with_pyunbound+set}" = set; then :
16668 withval=$with_pyunbound;
16675 ub_with_pyunbound=no
16676 if test x_$withval != x_no; then
16677 ub_with_pyunbound=yes
16681 # Check for Python module
16683 # Check whether --with-pythonmodule was given.
16684 if test "${with_pythonmodule+set}" = set; then :
16685 withval=$with_pythonmodule;
16691 ub_with_pythonmod=no
16692 if test x_$withval != x_no; then
16693 ub_with_pythonmod=yes
16697 # Check for Python & SWIG only on PyUnbound or PyModule
16698 if test x_$ub_test_python != x_no; then
16702 ac_save_LIBS="$LIBS"
16704 # Allow the use of a (user set) custom python version
16708 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16709 set dummy python$PYTHON_VERSION; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_path_PYTHON+:} false; then :
16713 $as_echo_n "(cached) " >&6
16717 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16738 PYTHON=$ac_cv_path_PYTHON
16739 if test -n "$PYTHON"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16741 $as_echo "$PYTHON" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16748 if test -z "$PYTHON"; then
16749 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16753 if test -z "$PYTHON_VERSION"; then
16754 PYTHON_VERSION=`$PYTHON -c "import sys; \
16755 print(sys.version.split()[0])"`
16759 # Check if you have distutils, else fail
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16762 $as_echo_n "checking for the distutils Python package... " >&6; }
16763 if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16765 $as_echo "yes" >&6; }
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16769 as_fn_error $? "cannot import Python module \"distutils\".
16770 Please check your Python installation. The error was:
16771 $ac_distutils_result" "$LINENO" 5
16776 # Check for Python include path
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16779 $as_echo_n "checking for Python include path... " >&6; }
16780 if test -z "$PYTHON_CPPFLAGS"; then
16781 python_path=`$PYTHON -c "import distutils.sysconfig; \
16782 print(distutils.sysconfig.get_python_inc());"`
16783 if test -n "${python_path}"; then
16784 python_path="-I$python_path"
16786 PYTHON_CPPFLAGS=$python_path
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16789 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16793 # Check for Python library path
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16796 $as_echo_n "checking for Python library path... " >&6; }
16797 if test -z "$PYTHON_LDFLAGS"; then
16798 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16799 print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16802 $as_echo "$PYTHON_LDFLAGS" >&6; }
16806 # Check for site packages
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16809 $as_echo_n "checking for Python site-packages path... " >&6; }
16810 if test -z "$PYTHON_SITE_PKG"; then
16811 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16812 print(distutils.sysconfig.get_python_lib(1,0));"`
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16815 $as_echo "$PYTHON_SITE_PKG" >&6; }
16819 # final check to see if everything compiles alright
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16822 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16824 ac_cpp='$CPP $CPPFLAGS'
16825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16829 # save current global flags
16830 ac_save_LIBS="$LIBS"
16831 ac_save_CPPFLAGS="$CPPFLAGS"
16833 LIBS="$LIBS $PYTHON_LDFLAGS"
16834 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16838 #include <Python.h>
16850 if ac_fn_c_try_link "$LINENO"; then :
16855 rm -f core conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext conftest.$ac_ext
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16859 $as_echo "$pythonexists" >&6; }
16861 if test ! "$pythonexists" = "yes"; then
16863 Could not link test program to Python. Maybe the main Python library has been
16864 installed in some non-standard library path. If so, pass it to configure,
16865 via the LDFLAGS environment variable.
16866 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16867 ============================================================================
16869 You probably have to install the development version of the Python package
16870 for your distribution. The exact name of this package varies among them.
16871 ============================================================================
16876 ac_cpp='$CPP $CPPFLAGS'
16877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16881 # turn back to default flags
16882 CPPFLAGS="$ac_save_CPPFLAGS"
16883 LIBS="$ac_save_LIBS"
16889 if test ! -z "$PYTHON_VERSION"; then
16890 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16891 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16894 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16898 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16900 if test -n "$LIBS"; then
16901 LIBS="$PYTHON_LDFLAGS $LIBS"
16903 LIBS="$PYTHON_LDFLAGS"
16905 if test -n "$CPPFLAGS"; then
16906 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16908 CPPFLAGS="$PYTHON_CPPFLAGS"
16911 PC_PY_DEPENDENCY="python"
16917 # Extract the first word of "swig", so it can be a program name with args.
16918 set dummy swig; ac_word=$2
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16920 $as_echo_n "checking for $ac_word... " >&6; }
16921 if ${ac_cv_path_SWIG+:} false; then :
16922 $as_echo_n "(cached) " >&6
16926 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16930 for as_dir in $PATH
16933 test -z "$as_dir" && as_dir=.
16934 for ac_exec_ext in '' $ac_executable_extensions; do
16935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16936 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16947 SWIG=$ac_cv_path_SWIG
16948 if test -n "$SWIG"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16950 $as_echo "$SWIG" >&6; }
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953 $as_echo "no" >&6; }
16957 if test -z "$SWIG" ; then
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16959 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16960 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16961 elif test -n "2.0.1" ; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16963 $as_echo_n "checking for SWIG version... " >&6; }
16964 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'`
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16966 $as_echo "$swig_version" >&6; }
16967 if test -n "$swig_version" ; then
16968 # Calculate the required version number components
16970 required_major=`echo $required | sed 's/[^0-9].*//'`
16971 if test -z "$required_major" ; then
16974 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16975 required_minor=`echo $required | sed 's/[^0-9].*//'`
16976 if test -z "$required_minor" ; then
16979 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16980 required_patch=`echo $required | sed 's/[^0-9].*//'`
16981 if test -z "$required_patch" ; then
16984 # Calculate the available version number components
16985 available=$swig_version
16986 available_major=`echo $available | sed 's/[^0-9].*//'`
16987 if test -z "$available_major" ; then
16990 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16991 available_minor=`echo $available | sed 's/[^0-9].*//'`
16992 if test -z "$available_minor" ; then
16995 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16996 available_patch=`echo $available | sed 's/[^0-9].*//'`
16997 if test -z "$available_patch" ; then
17001 if test $available_major -lt $required_major ; then
17004 if test $available_major -eq $required_major \
17005 -a $available_minor -lt $required_minor ; then
17008 if test $available_major -eq $required_major \
17009 -a $available_minor -eq $required_minor \
17010 -a $available_patch -lt $required_patch ; then
17013 if test $badversion -eq 1 ; then
17014 { $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
17015 $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;}
17016 SWIG='echo "Error: SWIG version >= 2.0.1 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
17019 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
17020 SWIG_LIB=`$SWIG -swiglib`
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
17022 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17026 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17027 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
17033 $as_echo_n "checking SWIG... " >&6; }
17034 if test ! -x "$SWIG"; then
17035 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
17038 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
17043 $as_echo "present" >&6; }
17045 # If have Python & SWIG
17046 # Declare PythonMod
17047 if test x_$ub_with_pythonmod != x_no; then
17049 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
17051 WITH_PYTHONMODULE=yes
17053 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
17055 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
17057 PYTHONMOD_INSTALL=pythonmod-install
17059 PYTHONMOD_UNINSTALL=pythonmod-uninstall
17063 # Declare PyUnbound
17064 if test x_$ub_with_pyunbound != x_no; then
17066 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
17070 PYUNBOUND_OBJ="libunbound_wrap.lo"
17072 PYUNBOUND_TARGET="_unbound.la"
17074 PYUNBOUND_INSTALL=pyunbound-install
17076 PYUNBOUND_UNINSTALL=pyunbound-uninstall
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
17082 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
17083 ub_with_pyunbound=no
17084 ub_with_pythonmod=no
17088 if test "`uname`" = "NetBSD"; then
17089 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
17092 CONFIG_DATE=`date +%Y%m%d`
17095 # Checks for libraries.
17100 # Check whether --with-nss was given.
17101 if test "${with_nss+set}" = set; then :
17105 $as_echo "#define HAVE_NSS 1" >>confdefs.h
17107 if test "$withval" != "" -a "$withval" != "yes"; then
17108 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
17109 LDFLAGS="$LDFLAGS -L$withval/lib"
17111 if test "x$enable_rpath" = xyes; then
17112 if echo "$withval/lib" | grep "^/" >/dev/null; then
17113 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17117 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
17119 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
17120 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
17122 LIBS="$LIBS -lnss3 -lnspr4"
17132 # Check whether --with-nettle was given.
17133 if test "${with_nettle+set}" = set; then :
17134 withval=$with_nettle;
17137 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
17139 for ac_header in nettle/dsa-compat.h
17141 ac_fn_c_check_header_compile "$LINENO" "nettle/dsa-compat.h" "ac_cv_header_nettle_dsa_compat_h" "$ac_includes_default
17143 if test "x$ac_cv_header_nettle_dsa_compat_h" = xyes; then :
17144 cat >>confdefs.h <<_ACEOF
17145 #define HAVE_NETTLE_DSA_COMPAT_H 1
17152 if test "$withval" != "" -a "$withval" != "yes"; then
17153 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
17154 LDFLAGS="$LDFLAGS -L$withval/lib"
17156 if test "x$enable_rpath" = xyes; then
17157 if echo "$withval/lib" | grep "^/" >/dev/null; then
17158 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17163 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17165 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17173 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17176 # Check whether --with-ssl was given.
17177 if test "${with_ssl+set}" = set; then :
17186 if test x_$withval = x_no; then
17187 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17191 if test x_$withval != x_no; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17193 $as_echo_n "checking for SSL... " >&6; }
17194 if test x_$withval = x_ -o x_$withval = x_yes; then
17195 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17197 for dir in $withval; do
17199 if test -f "$dir/include/openssl/ssl.h"; then
17202 cat >>confdefs.h <<_ACEOF
17203 #define HAVE_SSL /**/
17206 if test "$ssldir" != "/usr"; then
17207 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17208 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17213 if test x_$found_ssl != x_yes; then
17214 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17217 $as_echo "found in $ssldir" >&6; }
17219 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17220 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17221 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17223 if test "x$enable_rpath" = xyes; then
17224 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17225 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
17232 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
17233 LIBS="$LIBS -lcrypto"
17234 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h. */
17242 int HMAC_Update(void);
17243 (void)HMAC_Update();
17249 if ac_fn_c_try_link "$LINENO"; then :
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17254 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260 $as_echo "no" >&6; }
17261 # check if -lwsock32 or -lgdi32 are needed.
17263 BAKSSLLIBS="$LIBSSL_LIBS"
17264 LIBS="$LIBS -lgdi32 -lws2_32"
17265 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32 -lws2_32"
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17267 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17275 int HMAC_Update(void);
17276 (void)HMAC_Update();
17282 if ac_fn_c_try_link "$LINENO"; then :
17285 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17288 $as_echo "yes" >&6; }
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293 $as_echo "no" >&6; }
17295 LIBSSL_LIBS="$BAKSSLLIBS"
17297 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17299 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17307 int HMAC_Update(void);
17308 (void)HMAC_Update();
17314 if ac_fn_c_try_link "$LINENO"; then :
17317 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17327 LIBSSL_LIBS="$BAKSSLLIBS"
17328 LIBS="$LIBS -ldl -pthread"
17329 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
17331 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17339 int HMAC_Update(void);
17340 (void)HMAC_Update();
17346 if ac_fn_c_try_link "$LINENO"; then :
17349 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357 $as_echo "no" >&6; }
17358 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17361 rm -f core conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17365 rm -f core conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext conftest.$ac_ext
17369 rm -f core conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17373 rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
17379 for ac_header in openssl/ssl.h
17381 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17383 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17384 cat >>confdefs.h <<_ACEOF
17385 #define HAVE_OPENSSL_SSL_H 1
17392 for ac_header in openssl/err.h
17394 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17396 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17397 cat >>confdefs.h <<_ACEOF
17398 #define HAVE_OPENSSL_ERR_H 1
17405 for ac_header in openssl/rand.h
17407 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17409 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_OPENSSL_RAND_H 1
17421 # check if libssl needs libdl
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17425 $as_echo_n "checking if libssl needs libdl... " >&6; }
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17429 /* Override any GCC internal prototype to avoid an error.
17430 Use char because int might match the return type of a GCC
17431 builtin and then its argument prototype would still apply. */
17435 char SSL_CTX_new ();
17439 return SSL_CTX_new ();
17444 if ac_fn_c_try_link "$LINENO"; then :
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453 $as_echo "yes" >&6; }
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17456 $as_echo_n "checking for library containing dlopen... " >&6; }
17457 if ${ac_cv_search_dlopen+:} false; then :
17458 $as_echo_n "(cached) " >&6
17460 ac_func_search_save_LIBS=$LIBS
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 /* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17479 for ac_lib in '' dl; do
17480 if test -z "$ac_lib"; then
17481 ac_res="none required"
17484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17486 if ac_fn_c_try_link "$LINENO"; then :
17487 ac_cv_search_dlopen=$ac_res
17489 rm -f core conftest.err conftest.$ac_objext \
17491 if ${ac_cv_search_dlopen+:} false; then :
17495 if ${ac_cv_search_dlopen+:} false; then :
17498 ac_cv_search_dlopen=no
17500 rm conftest.$ac_ext
17501 LIBS=$ac_func_search_save_LIBS
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17504 $as_echo "$ac_cv_search_dlopen" >&6; }
17505 ac_res=$ac_cv_search_dlopen
17506 if test "$ac_res" != no; then :
17507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17513 rm -f core conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17517 # check if -lcrypt32 is needed because CAPIENG needs that. (on windows)
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs -lcrypt32" >&5
17521 $as_echo_n "checking if libssl needs -lcrypt32... " >&6; }
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17525 /* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17531 char HMAC_Update ();
17535 return HMAC_Update ();
17540 if ac_fn_c_try_link "$LINENO"; then :
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 $as_echo "no" >&6; }
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17549 $as_echo "yes" >&6; }
17551 LIBS="$LIBS -lcrypt32"
17554 rm -f core conftest.err conftest.$ac_objext \
17555 conftest$ac_exeext conftest.$ac_ext
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17558 $as_echo_n "checking for LibreSSL... " >&6; }
17559 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17561 $as_echo "yes" >&6; }
17563 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17565 # libressl provides these compat functions, but they may also be
17566 # declared by the OS in libc. See if they have been declared.
17567 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17568 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_DECL_STRLCPY $ac_have_decl
17577 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17578 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_DECL_STRLCAT $ac_have_decl
17587 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17588 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17594 cat >>confdefs.h <<_ACEOF
17595 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17597 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17598 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17604 cat >>confdefs.h <<_ACEOF
17605 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17607 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17608 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17614 cat >>confdefs.h <<_ACEOF
17615 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17622 for ac_header in openssl/conf.h openssl/engine.h openssl/bn.h openssl/dh.h openssl/dsa.h openssl/rsa.h
17624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17625 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17628 cat >>confdefs.h <<_ACEOF
17629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17636 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
17638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17641 cat >>confdefs.h <<_ACEOF
17642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 # these check_funcs need -lssl
17652 for ac_func in OPENSSL_init_ssl SSL_CTX_set_security_level
17654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17656 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17657 cat >>confdefs.h <<_ACEOF
17658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17666 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17667 $ac_includes_default
17668 #ifdef HAVE_OPENSSL_ERR_H
17669 #include <openssl/err.h>
17672 #ifdef HAVE_OPENSSL_RAND_H
17673 #include <openssl/rand.h>
17676 #ifdef HAVE_OPENSSL_CONF_H
17677 #include <openssl/conf.h>
17680 #ifdef HAVE_OPENSSL_ENGINE_H
17681 #include <openssl/engine.h>
17683 #include <openssl/ssl.h>
17684 #include <openssl/evp.h>
17687 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17693 cat >>confdefs.h <<_ACEOF
17694 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17696 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17697 $ac_includes_default
17698 #ifdef HAVE_OPENSSL_ERR_H
17699 #include <openssl/err.h>
17702 #ifdef HAVE_OPENSSL_RAND_H
17703 #include <openssl/rand.h>
17706 #ifdef HAVE_OPENSSL_CONF_H
17707 #include <openssl/conf.h>
17710 #ifdef HAVE_OPENSSL_ENGINE_H
17711 #include <openssl/engine.h>
17713 #include <openssl/ssl.h>
17714 #include <openssl/evp.h>
17717 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17723 cat >>confdefs.h <<_ACEOF
17724 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17726 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17727 $ac_includes_default
17728 #ifdef HAVE_OPENSSL_ERR_H
17729 #include <openssl/err.h>
17732 #ifdef HAVE_OPENSSL_RAND_H
17733 #include <openssl/rand.h>
17736 #ifdef HAVE_OPENSSL_CONF_H
17737 #include <openssl/conf.h>
17740 #ifdef HAVE_OPENSSL_ENGINE_H
17741 #include <openssl/engine.h>
17743 #include <openssl/ssl.h>
17744 #include <openssl/evp.h>
17747 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17753 cat >>confdefs.h <<_ACEOF
17754 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17761 # Check whether --enable-sha1 was given.
17762 if test "${enable_sha1+set}" = set; then :
17763 enableval=$enable_sha1;
17766 case "$enable_sha1" in
17771 $as_echo "#define USE_SHA1 1" >>confdefs.h
17777 # Check whether --enable-sha2 was given.
17778 if test "${enable_sha2+set}" = set; then :
17779 enableval=$enable_sha2;
17782 case "$enable_sha2" in
17787 $as_echo "#define USE_SHA2 1" >>confdefs.h
17792 # Check whether --enable-subnet was given.
17793 if test "${enable_subnet+set}" = set; then :
17794 enableval=$enable_subnet;
17797 case "$enable_subnet" in
17800 $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
17802 SUBNET_OBJ="edns-subnet.lo subnetmod.lo addrtree.lo subnet-whitelist.lo"
17804 SUBNET_HEADER='$(srcdir)/edns-subnet/subnetmod.h $(srcdir)/edns-subnet/edns-subnet.h $(srcdir)/edns-subnet/subnet-whitelist.h $(srcdir)/edns-subnet/addrtree.h'
17811 # check wether gost also works
17813 # Check whether --enable-gost was given.
17814 if test "${enable_gost+set}" = set; then :
17815 enableval=$enable_gost;
17819 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17820 case "$enable_gost" in
17824 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17825 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17828 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17831 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17832 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17835 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17840 $as_echo_n "checking if GOST works... " >&6; }
17841 if test c${cross_compiling} = cno; then
17842 BAKCFLAGS="$CFLAGS"
17843 if test -n "$ssldir"; then
17844 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17846 if test "$cross_compiling" = yes; then :
17847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17849 as_fn_error $? "cannot run test program while cross compiling
17850 See \`config.log' for more details" "$LINENO" 5; }
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 #include <string.h>
17856 #include <openssl/ssl.h>
17857 #include <openssl/evp.h>
17858 #include <openssl/engine.h>
17859 #include <openssl/conf.h>
17860 /* routine to load gost (from sldns) */
17861 int load_gost_id(void)
17863 static int gost_id = 0;
17864 const EVP_PKEY_ASN1_METHOD* meth;
17867 if(gost_id) return gost_id;
17869 /* see if configuration loaded gost implementation from other engine*/
17870 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17872 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17876 /* see if engine can be loaded already */
17877 e = ENGINE_by_id("gost");
17879 /* load it ourself, in case statically linked */
17880 ENGINE_load_builtin_engines();
17881 ENGINE_load_dynamic();
17882 e = ENGINE_by_id("gost");
17885 /* no gost engine in openssl */
17888 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17894 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17896 /* algo not found */
17901 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17907 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17908 const char* str = "Hello world";
17909 const unsigned char check[] = {
17910 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17911 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17912 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17913 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17915 OPENSSL_config(NULL);
17916 (void)load_gost_id();
17917 md = EVP_get_digestbyname("md_gost94");
17919 memset(digest, 0, sizeof(digest));
17920 ctx = EVP_MD_CTX_create();
17922 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17923 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17924 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17925 /* uncomment to see the hash calculated.
17927 for(i=0; i<32; i++)
17928 printf(" %2.2x", (int)digest[i]);
17931 if(memcmp(digest, check, sizeof(check)) != 0)
17937 if ac_fn_c_try_run "$LINENO"; then :
17938 eval "ac_cv_c_gost_works=yes"
17940 eval "ac_cv_c_gost_works=no"
17942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17943 conftest.$ac_objext conftest.beam conftest.$ac_ext
17946 CFLAGS="$BAKCFLAGS"
17948 eval "ac_cv_c_gost_works=maybe"
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17951 $as_echo "$ac_cv_c_gost_works" >&6; }
17953 if test "$ac_cv_c_gost_works" != no; then
17956 $as_echo "#define USE_GOST 1" >>confdefs.h
17962 # Check whether --enable-ecdsa was given.
17963 if test "${enable_ecdsa+set}" = set; then :
17964 enableval=$enable_ecdsa;
17968 case "$enable_ecdsa" in
17972 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17973 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17974 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17977 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17980 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17981 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17984 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17987 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17988 #include <openssl/evp.h>
17991 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
18000 if test $ac_have_decl = 1; then :
18003 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18005 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
18006 #include <openssl/evp.h>
18009 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
18015 cat >>confdefs.h <<_ACEOF
18016 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
18018 if test $ac_have_decl = 1; then :
18021 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
18024 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
18026 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
18027 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
18028 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18032 cat >>confdefs.h <<_ACEOF
18033 #define USE_ECDSA_EVP_WORKAROUND 1
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18038 $as_echo "yes" >&6; }
18041 # not OpenSSL, thus likely LibreSSL, which supports it
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18043 $as_echo "yes" >&6; }
18046 # we now know we have ECDSA and the required curves.
18048 cat >>confdefs.h <<_ACEOF
18049 #define USE_ECDSA 1
18056 # Check whether --enable-dsa was given.
18057 if test "${enable_dsa+set}" = set; then :
18058 enableval=$enable_dsa;
18062 case "$enable_dsa" in
18066 # detect if DSA is supported, and turn it off if not.
18067 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18068 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
18069 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
18072 cat >>confdefs.h <<_ACEOF
18078 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
18084 cat >>confdefs.h <<_ACEOF
18092 # Check whether --enable-ed25519 was given.
18093 if test "${enable_ed25519+set}" = set; then :
18094 enableval=$enable_ed25519;
18098 case "$enable_ed25519" in
18102 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
18103 ac_fn_c_check_decl "$LINENO" "NID_ED25519" "ac_cv_have_decl_NID_ED25519" "$ac_includes_default
18104 #include <openssl/evp.h>
18107 if test "x$ac_cv_have_decl_NID_ED25519" = xyes; then :
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_NID_ED25519 $ac_have_decl
18116 if test $ac_have_decl = 1; then :
18121 if test "x$enable_ed25519" = "xyes"; then as_fn_error $? "OpenSSL does not support ED25519 and you used --enable-ed25519." "$LINENO" 5
18126 if test $USE_NETTLE = "yes"; then
18127 for ac_header in nettle/eddsa.h
18129 ac_fn_c_check_header_compile "$LINENO" "nettle/eddsa.h" "ac_cv_header_nettle_eddsa_h" "$ac_includes_default
18131 if test "x$ac_cv_header_nettle_eddsa_h" = xyes; then :
18132 cat >>confdefs.h <<_ACEOF
18133 #define HAVE_NETTLE_EDDSA_H 1
18141 if test $use_ed25519 = "yes"; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define USE_ED25519 1
18151 # Check whether --enable-event-api was given.
18152 if test "${enable_event_api+set}" = set; then :
18153 enableval=$enable_event_api;
18156 case "$enable_event_api" in
18158 UNBOUND_EVENT_INSTALL=unbound-event-install
18160 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18167 # Check whether --enable-tfo-client was given.
18168 if test "${enable_tfo_client+set}" = set; then :
18169 enableval=$enable_tfo_client;
18172 case "$enable_tfo_client" in
18175 Linux) ac_fn_c_check_decl "$LINENO" "MSG_FASTOPEN" "ac_cv_have_decl_MSG_FASTOPEN" "$ac_includes_default
18176 #include <netinet/tcp.h>
18179 if test "x$ac_cv_have_decl_MSG_FASTOPEN" = xyes; then :
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18181 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18183 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18187 cat >>confdefs.h <<_ACEOF
18188 #define USE_MSG_FASTOPEN 1
18192 Darwin) ac_fn_c_check_decl "$LINENO" "CONNECT_RESUME_ON_READ_WRITE" "ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" "$ac_includes_default
18193 #include <sys/socket.h>
18196 if test "x$ac_cv_have_decl_CONNECT_RESUME_ON_READ_WRITE" = xyes; then :
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&5
18198 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support client mode TFO" >&2;}
18200 as_fn_error $? "TCP Fast Open is not available for client mode: please rerun without --enable-tfo-client" "$LINENO" 5
18204 cat >>confdefs.h <<_ACEOF
18205 #define USE_OSX_MSG_FASTOPEN 1
18215 # Check whether --enable-tfo-server was given.
18216 if test "${enable_tfo_server+set}" = set; then :
18217 enableval=$enable_tfo_server;
18220 case "$enable_tfo_server" in
18222 ac_fn_c_check_decl "$LINENO" "TCP_FASTOPEN" "ac_cv_have_decl_TCP_FASTOPEN" "$ac_includes_default
18223 #include <netinet/tcp.h>
18226 if test "x$ac_cv_have_decl_TCP_FASTOPEN" = xyes; then :
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&5
18228 $as_echo "$as_me: WARNING: Check the platform specific TFO kernel parameters are correctly configured to support server mode TFO" >&2;}
18230 as_fn_error $? "TCP Fast Open is not available for server mode: please rerun without --enable-tfo-server" "$LINENO" 5
18234 cat >>confdefs.h <<_ACEOF
18235 #define USE_TCP_FASTOPEN 1
18243 # check for libevent
18245 # Check whether --with-libevent was given.
18246 if test "${with_libevent+set}" = set; then :
18247 withval=$with_libevent;
18252 if test x_$withval = x_yes -o x_$withval != x_no; then
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
18254 $as_echo_n "checking for libevent... " >&6; }
18255 if test x_$withval = x_ -o x_$withval = x_yes; then
18256 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18258 for dir in $withval; do
18260 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
18261 found_libevent="yes"
18262 if test "$thedir" != "/usr"; then
18263 CPPFLAGS="$CPPFLAGS -I$thedir/include"
18268 if test x_$found_libevent != x_yes; then
18269 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
18270 # libevent source directory
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18272 $as_echo "found in $thedir" >&6; }
18273 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
18274 BAK_LDFLAGS_SET="1"
18275 BAK_LDFLAGS="$LDFLAGS"
18276 # remove evdns from linking
18277 mkdir build >/dev/null 2>&1
18278 mkdir build/libevent >/dev/null 2>&1
18279 mkdir build/libevent/.libs >/dev/null 2>&1
18280 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18281 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
18282 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
18283 cp $ev_files_o build/libevent
18284 cp $ev_files_lo build/libevent
18285 cp $ev_files_libso build/libevent/.libs
18286 LATE_LDFLAGS="build/libevent/*.lo -lm"
18287 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
18289 as_fn_error $? "Cannot find the libevent library in $withval
18290 You can restart ./configure --with-libevent=no to use a builtin alternative.
18291 Please note that this alternative is not as capable as libevent when using
18292 large outgoing port ranges. " "$LINENO" 5
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
18296 $as_echo "found in $thedir" >&6; }
18297 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
18298 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
18300 if test "x$enable_rpath" = xyes; then
18301 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
18302 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
18307 if test "$thedir" != "/usr" -a "$thedir" != ""; then
18308 LDFLAGS="$LDFLAGS -L$thedir/lib"
18310 if test "x$enable_rpath" = xyes; then
18311 if echo "$thedir/lib" | grep "^/" >/dev/null; then
18312 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
18319 # check for library used by libevent after 1.3c
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18321 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18322 if ${ac_cv_search_clock_gettime+:} false; then :
18323 $as_echo_n "(cached) " >&6
18325 ac_func_search_save_LIBS=$LIBS
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 /* Override any GCC internal prototype to avoid an error.
18330 Use char because int might match the return type of a GCC
18331 builtin and then its argument prototype would still apply. */
18335 char clock_gettime ();
18339 return clock_gettime ();
18344 for ac_lib in '' rt; do
18345 if test -z "$ac_lib"; then
18346 ac_res="none required"
18349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 ac_cv_search_clock_gettime=$ac_res
18354 rm -f core conftest.err conftest.$ac_objext \
18356 if ${ac_cv_search_clock_gettime+:} false; then :
18360 if ${ac_cv_search_clock_gettime+:} false; then :
18363 ac_cv_search_clock_gettime=no
18365 rm conftest.$ac_ext
18366 LIBS=$ac_func_search_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18369 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18370 ac_res=$ac_cv_search_clock_gettime
18371 if test "$ac_res" != no; then :
18372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18377 # is the event.h header libev or libevent?
18378 for ac_header in event.h
18380 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
18382 if test "x$ac_cv_header_event_h" = xyes; then :
18383 cat >>confdefs.h <<_ACEOF
18384 #define HAVE_EVENT_H 1
18391 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
18395 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18398 $as_echo_n "checking for library containing event_set... " >&6; }
18399 if ${ac_cv_search_event_set+:} false; then :
18400 $as_echo_n "(cached) " >&6
18402 ac_func_search_save_LIBS=$LIBS
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18416 return event_set ();
18421 for ac_lib in '' ev; do
18422 if test -z "$ac_lib"; then
18423 ac_res="none required"
18426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18428 if ac_fn_c_try_link "$LINENO"; then :
18429 ac_cv_search_event_set=$ac_res
18431 rm -f core conftest.err conftest.$ac_objext \
18433 if ${ac_cv_search_event_set+:} false; then :
18437 if ${ac_cv_search_event_set+:} false; then :
18440 ac_cv_search_event_set=no
18442 rm conftest.$ac_ext
18443 LIBS=$ac_func_search_save_LIBS
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18446 $as_echo "$ac_cv_search_event_set" >&6; }
18447 ac_res=$ac_cv_search_event_set
18448 if test "$ac_res" != no; then :
18449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18457 $as_echo_n "checking for library containing event_set... " >&6; }
18458 if ${ac_cv_search_event_set+:} false; then :
18459 $as_echo_n "(cached) " >&6
18461 ac_func_search_save_LIBS=$LIBS
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h. */
18465 /* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18475 return event_set ();
18480 for ac_lib in '' event; do
18481 if test -z "$ac_lib"; then
18482 ac_res="none required"
18485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18487 if ac_fn_c_try_link "$LINENO"; then :
18488 ac_cv_search_event_set=$ac_res
18490 rm -f core conftest.err conftest.$ac_objext \
18492 if ${ac_cv_search_event_set+:} false; then :
18496 if ${ac_cv_search_event_set+:} false; then :
18499 ac_cv_search_event_set=no
18501 rm conftest.$ac_ext
18502 LIBS=$ac_func_search_save_LIBS
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18505 $as_echo "$ac_cv_search_event_set" >&6; }
18506 ac_res=$ac_cv_search_event_set
18507 if test "$ac_res" != no; then :
18508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18515 for ac_func in event_base_free
18517 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18518 if test "x$ac_cv_func_event_base_free" = xyes; then :
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_EVENT_BASE_FREE 1
18525 # only in libevent 1.2 and later
18526 for ac_func in event_base_once
18528 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18529 if test "x$ac_cv_func_event_base_once" = xyes; then :
18530 cat >>confdefs.h <<_ACEOF
18531 #define HAVE_EVENT_BASE_ONCE 1
18536 # only in libevent 1.4.1 and later
18537 for ac_func in event_base_new
18539 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18540 if test "x$ac_cv_func_event_base_new" = xyes; then :
18541 cat >>confdefs.h <<_ACEOF
18542 #define HAVE_EVENT_BASE_NEW 1
18547 # only in libevent 1.4.1 and later
18548 for ac_func in event_base_get_method
18550 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18551 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18552 cat >>confdefs.h <<_ACEOF
18553 #define HAVE_EVENT_BASE_GET_METHOD 1
18558 # only in libevent 1.4.3 and later
18559 for ac_func in ev_loop
18561 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18562 if test "x$ac_cv_func_ev_loop" = xyes; then :
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_EV_LOOP 1
18569 # only in libev. (tested on 3.51)
18570 for ac_func in ev_default_loop
18572 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18573 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_EV_DEFAULT_LOOP 1
18580 # only in libev. (tested on 4.00)
18581 PC_LIBEVENT_DEPENDENCY="libevent"
18583 if test -n "$BAK_LDFLAGS_SET"; then
18584 LDFLAGS="$BAK_LDFLAGS"
18588 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18592 # check for libexpat
18594 # Check whether --with-libexpat was given.
18595 if test "${with_libexpat+set}" = set; then :
18596 withval=$with_libexpat;
18598 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18602 $as_echo_n "checking for libexpat... " >&6; }
18603 found_libexpat="no"
18604 for dir in $withval ; do
18605 if test -f "$dir/include/expat.h"; then
18606 found_libexpat="yes"
18607 if test "$dir" != "/usr"; then
18608 CPPFLAGS="$CPPFLAGS -I$dir/include"
18609 LDFLAGS="$LDFLAGS -L$dir/lib"
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18612 $as_echo "found in $dir" >&6; }
18616 if test x_$found_libexpat != x_yes; then
18617 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18619 for ac_header in expat.h
18621 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18623 if test "x$ac_cv_header_expat_h" = xyes; then :
18624 cat >>confdefs.h <<_ACEOF
18625 #define HAVE_EXPAT_H 1
18632 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18636 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18647 # set static linking if requested
18650 # Check whether --enable-static-exe was given.
18651 if test "${enable_static_exe+set}" = set; then :
18652 enableval=$enable_static_exe;
18655 if test x_$enable_static_exe = x_yes; then
18656 staticexe="-static"
18657 if test "$on_mingw" = yes; then
18658 staticexe="-all-static"
18659 # for static compile, include gdi32 and zlib here.
18660 if echo $LIBS | grep 'lgdi32' >/dev/null; then
18663 LIBS="$LIBS -lgdi32"
18669 # Include systemd.m4 - begin
18670 # macros for configuring systemd
18671 # Copyright 2015, Sami Kerola, CloudFlare.
18673 # Check whether --enable-systemd was given.
18674 if test "${enable_systemd+set}" = set; then :
18675 enableval=$enable_systemd;
18688 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18689 if test -n "$ac_tool_prefix"; then
18690 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18691 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18693 $as_echo_n "checking for $ac_word... " >&6; }
18694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18695 $as_echo_n "(cached) " >&6
18697 case $PKG_CONFIG in
18699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18703 for as_dir in $PATH
18706 test -z "$as_dir" && as_dir=.
18707 for ac_exec_ext in '' $ac_executable_extensions; do
18708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18720 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18721 if test -n "$PKG_CONFIG"; then
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18723 $as_echo "$PKG_CONFIG" >&6; }
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 $as_echo "no" >&6; }
18731 if test -z "$ac_cv_path_PKG_CONFIG"; then
18732 ac_pt_PKG_CONFIG=$PKG_CONFIG
18733 # Extract the first word of "pkg-config", so it can be a program name with args.
18734 set dummy pkg-config; ac_word=$2
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 $as_echo_n "checking for $ac_word... " >&6; }
18737 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18738 $as_echo_n "(cached) " >&6
18740 case $ac_pt_PKG_CONFIG in
18742 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746 for as_dir in $PATH
18749 test -z "$as_dir" && as_dir=.
18750 for ac_exec_ext in '' $ac_executable_extensions; do
18751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18763 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18764 if test -n "$ac_pt_PKG_CONFIG"; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18766 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18772 if test "x$ac_pt_PKG_CONFIG" = x; then
18775 case $cross_compiling:$ac_tool_warned in
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18779 ac_tool_warned=yes ;;
18781 PKG_CONFIG=$ac_pt_PKG_CONFIG
18784 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18788 if test -n "$PKG_CONFIG"; then
18789 _pkg_min_version=0.9.0
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18791 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18792 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18794 $as_echo "yes" >&6; }
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 $as_echo "no" >&6; }
18801 if test "x$enable_systemd" != xno; then :
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
18807 $as_echo_n "checking for SYSTEMD... " >&6; }
18809 if test -n "$SYSTEMD_CFLAGS"; then
18810 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
18811 elif test -n "$PKG_CONFIG"; then
18812 if test -n "$PKG_CONFIG" && \
18813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18814 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18817 test $ac_status = 0; }; then
18818 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
18819 test "x$?" != "x0" && pkg_failed=yes
18826 if test -n "$SYSTEMD_LIBS"; then
18827 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
18828 elif test -n "$PKG_CONFIG"; then
18829 if test -n "$PKG_CONFIG" && \
18830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
18831 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
18833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18834 test $ac_status = 0; }; then
18835 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
18836 test "x$?" != "x0" && pkg_failed=yes
18846 if test $pkg_failed = yes; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18848 $as_echo "no" >&6; }
18850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18851 _pkg_short_errors_supported=yes
18853 _pkg_short_errors_supported=no
18855 if test $_pkg_short_errors_supported = yes; then
18856 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
18858 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
18860 # Put the nasty error message in config.log where it belongs
18861 echo "$SYSTEMD_PKG_ERRORS" >&5
18864 elif test $pkg_failed = untried; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18866 $as_echo "no" >&6; }
18869 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
18870 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18872 $as_echo "yes" >&6; }
18875 if test "x$have_systemd" != "xyes"; then :
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
18880 $as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
18882 if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
18883 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
18884 elif test -n "$PKG_CONFIG"; then
18885 if test -n "$PKG_CONFIG" && \
18886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18887 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890 test $ac_status = 0; }; then
18891 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
18892 test "x$?" != "x0" && pkg_failed=yes
18899 if test -n "$SYSTEMD_DAEMON_LIBS"; then
18900 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
18901 elif test -n "$PKG_CONFIG"; then
18902 if test -n "$PKG_CONFIG" && \
18903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
18904 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
18906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18907 test $ac_status = 0; }; then
18908 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
18909 test "x$?" != "x0" && pkg_failed=yes
18919 if test $pkg_failed = yes; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921 $as_echo "no" >&6; }
18923 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18924 _pkg_short_errors_supported=yes
18926 _pkg_short_errors_supported=no
18928 if test $_pkg_short_errors_supported = yes; then
18929 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18931 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
18933 # Put the nasty error message in config.log where it belongs
18934 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
18936 have_systemd_daemon=no
18937 elif test $pkg_failed = untried; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18939 $as_echo "no" >&6; }
18940 have_systemd_daemon=no
18942 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
18943 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18945 $as_echo "yes" >&6; }
18946 have_systemd_daemon=yes
18948 if test "x$have_systemd_daemon" = "xyes"; then :
18953 case $enable_systemd:$have_systemd in #(
18955 as_fn_error $? "systemd enabled but libsystemd not found" "$LINENO" 5 ;; #(
18958 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
18960 LIBS="$LIBS $SYSTEMD_LIBS"
18969 if test "x$have_systemd" = xyes; then
18971 USE_SYSTEMD_FALSE='#'
18973 USE_SYSTEMD_TRUE='#'
18978 # Include systemd.m4 - end
18980 # set lock checking if requested
18981 # Check whether --enable-lock_checks was given.
18982 if test "${enable_lock_checks+set}" = set; then :
18983 enableval=$enable_lock_checks;
18986 if test x_$enable_lock_checks = x_yes; then
18988 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18990 CHECKLOCK_OBJ="checklocks.lo"
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18996 $as_echo_n "checking for getaddrinfo... " >&6; }
18997 ac_cv_func_getaddrinfo=no
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999 /* end confdefs.h. */
19005 char* getaddrinfo();
19006 char* (*f) () = getaddrinfo;
19016 if ac_fn_c_try_link "$LINENO"; then :
19017 ac_cv_func_getaddrinfo="yes"
19018 if test "$ac_cv_header_windows_h" = "yes"; then
19020 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19023 if echo $LIBS | grep 'lws2_32' >/dev/null; then
19026 LIBS="$LIBS -lws2_32"
19032 LIBS="$LIBS -lws2_32"
19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19034 /* end confdefs.h. */
19036 #ifdef HAVE_WS2TCPIP_H
19037 #include <ws2tcpip.h>
19044 (void)getaddrinfo(NULL, NULL, NULL, NULL);
19051 if ac_fn_c_try_link "$LINENO"; then :
19053 ac_cv_func_getaddrinfo="yes"
19055 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
19061 ac_cv_func_getaddrinfo="no"
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19069 rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
19073 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
19074 if test $ac_cv_func_getaddrinfo = yes; then
19076 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19080 if test "$USE_WINSOCK" = 1; then
19082 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
19084 for ac_header in iphlpapi.h
19086 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
19087 #include <windows.h>
19090 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
19091 cat >>confdefs.h <<_ACEOF
19092 #define HAVE_IPHLPAPI_H 1
19099 if test -n "$ac_tool_prefix"; then
19100 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19101 set dummy ${ac_tool_prefix}windres; ac_word=$2
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19103 $as_echo_n "checking for $ac_word... " >&6; }
19104 if ${ac_cv_prog_WINDRES+:} false; then :
19105 $as_echo_n "(cached) " >&6
19107 if test -n "$WINDRES"; then
19108 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19111 for as_dir in $PATH
19114 test -z "$as_dir" && as_dir=.
19115 for ac_exec_ext in '' $ac_executable_extensions; do
19116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19117 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19127 WINDRES=$ac_cv_prog_WINDRES
19128 if test -n "$WINDRES"; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19130 $as_echo "$WINDRES" >&6; }
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19138 if test -z "$ac_cv_prog_WINDRES"; then
19139 ac_ct_WINDRES=$WINDRES
19140 # Extract the first word of "windres", so it can be a program name with args.
19141 set dummy windres; ac_word=$2
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19143 $as_echo_n "checking for $ac_word... " >&6; }
19144 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19145 $as_echo_n "(cached) " >&6
19147 if test -n "$ac_ct_WINDRES"; then
19148 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19154 test -z "$as_dir" && as_dir=.
19155 for ac_exec_ext in '' $ac_executable_extensions; do
19156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19157 ac_cv_prog_ac_ct_WINDRES="windres"
19158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19167 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19168 if test -n "$ac_ct_WINDRES"; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19170 $as_echo "$ac_ct_WINDRES" >&6; }
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173 $as_echo "no" >&6; }
19176 if test "x$ac_ct_WINDRES" = x; then
19179 case $cross_compiling:$ac_tool_warned in
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19183 ac_tool_warned=yes ;;
19185 WINDRES=$ac_ct_WINDRES
19188 WINDRES="$ac_cv_prog_WINDRES"
19191 LIBS="$LIBS -liphlpapi"
19192 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
19194 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
19196 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
19198 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
19200 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
19202 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
19204 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
19206 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
19209 if test $ac_cv_func_getaddrinfo = no; then
19210 case " $LIBOBJS " in
19211 *" fake-rfc2553.$ac_objext "* ) ;;
19212 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
19217 # check after getaddrinfo for its libraries
19219 # check ioctlsocket
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
19221 $as_echo_n "checking for ioctlsocket... " >&6; }
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h. */
19225 #ifdef HAVE_WINSOCK2_H
19226 #include <winsock2.h>
19233 (void)ioctlsocket(0, 0, NULL);
19239 if ac_fn_c_try_link "$LINENO"; then :
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19244 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19251 rm -f core conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
19255 # see if daemon(3) exists, and if it is deprecated.
19256 for ac_func in daemon
19258 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
19259 if test "x$ac_cv_func_daemon" = xyes; then :
19260 cat >>confdefs.h <<_ACEOF
19261 #define HAVE_DAEMON 1
19267 if test $ac_cv_func_daemon = yes; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
19271 $as_echo_n "checking if daemon is deprecated... " >&6; }
19272 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
19273 if eval \${cv_cc_deprecated_$cache+:} false; then :
19274 $as_echo_n "(cached) " >&6
19278 #include <stdlib.h>
19280 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
19281 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
19282 eval "cv_cc_deprecated_$cache=no"
19284 eval "cv_cc_deprecated_$cache=yes"
19286 rm -f conftest conftest.o conftest.c
19290 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19292 $as_echo "yes" >&6; }
19294 cat >>confdefs.h <<_ACEOF
19295 #define DEPRECATED_DAEMON 1
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19302 $as_echo "no" >&6; }
19309 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
19310 $ac_includes_default
19311 #ifdef HAVE_SYS_UN_H
19312 #include <sys/un.h>
19316 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19325 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
19326 $ac_includes_default
19327 #if HAVE_SYS_PARAM_H
19328 #include <sys/param.h>
19331 #ifdef HAVE_SYS_SOCKET_H
19332 #include <sys/socket.h>
19335 #ifdef HAVE_SYS_UIO_H
19336 #include <sys/uio.h>
19339 #ifdef HAVE_NETINET_IN_H
19340 #include <netinet/in.h>
19343 #ifdef HAVE_NETINET_TCP_H
19344 #include <netinet/tcp.h>
19347 #ifdef HAVE_ARPA_INET_H
19348 #include <arpa/inet.h>
19351 #ifdef HAVE_WINSOCK2_H
19352 #include <winsock2.h>
19355 #ifdef HAVE_WS2TCPIP_H
19356 #include <ws2tcpip.h>
19360 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
19370 $as_echo_n "checking for library containing setusercontext... " >&6; }
19371 if ${ac_cv_search_setusercontext+:} false; then :
19372 $as_echo_n "(cached) " >&6
19374 ac_func_search_save_LIBS=$LIBS
19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376 /* end confdefs.h. */
19378 /* Override any GCC internal prototype to avoid an error.
19379 Use char because int might match the return type of a GCC
19380 builtin and then its argument prototype would still apply. */
19384 char setusercontext ();
19388 return setusercontext ();
19393 for ac_lib in '' util; do
19394 if test -z "$ac_lib"; then
19395 ac_res="none required"
19398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19400 if ac_fn_c_try_link "$LINENO"; then :
19401 ac_cv_search_setusercontext=$ac_res
19403 rm -f core conftest.err conftest.$ac_objext \
19405 if ${ac_cv_search_setusercontext+:} false; then :
19409 if ${ac_cv_search_setusercontext+:} false; then :
19412 ac_cv_search_setusercontext=no
19414 rm conftest.$ac_ext
19415 LIBS=$ac_func_search_save_LIBS
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
19418 $as_echo "$ac_cv_search_setusercontext" >&6; }
19419 ac_res=$ac_cv_search_setusercontext
19420 if test "$ac_res" != no; then :
19421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19425 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
19427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19428 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19429 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19430 cat >>confdefs.h <<_ACEOF
19431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19437 for ac_func in setresuid
19439 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
19440 if test "x$ac_cv_func_setresuid" = xyes; then :
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_SETRESUID 1
19446 for ac_func in setreuid
19448 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
19449 if test "x$ac_cv_func_setreuid" = xyes; then :
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_SETREUID 1
19460 for ac_func in setresgid
19462 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
19463 if test "x$ac_cv_func_setresgid" = xyes; then :
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_SETRESGID 1
19469 for ac_func in setregid
19471 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
19472 if test "x$ac_cv_func_setregid" = xyes; then :
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_SETREGID 1
19484 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
19485 if echo $build_os | grep darwin8 > /dev/null; then
19487 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
19490 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "
19491 $ac_includes_default
19492 #ifdef HAVE_NETINET_IN_H
19493 #include <netinet/in.h>
19496 #ifdef HAVE_NETINET_TCP_H
19497 #include <netinet/tcp.h>
19500 #ifdef HAVE_ARPA_INET_H
19501 #include <arpa/inet.h>
19504 #ifdef HAVE_WINSOCK2_H
19505 #include <winsock2.h>
19508 #ifdef HAVE_WS2TCPIP_H
19509 #include <ws2tcpip.h>
19513 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
19519 cat >>confdefs.h <<_ACEOF
19520 #define HAVE_DECL_INET_PTON $ac_have_decl
19522 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "
19523 $ac_includes_default
19524 #ifdef HAVE_NETINET_IN_H
19525 #include <netinet/in.h>
19528 #ifdef HAVE_NETINET_TCP_H
19529 #include <netinet/tcp.h>
19532 #ifdef HAVE_ARPA_INET_H
19533 #include <arpa/inet.h>
19536 #ifdef HAVE_WINSOCK2_H
19537 #include <winsock2.h>
19540 #ifdef HAVE_WS2TCPIP_H
19541 #include <ws2tcpip.h>
19545 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_INET_NTOP $ac_have_decl
19555 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
19556 if test "x$ac_cv_func_inet_aton" = xyes; then :
19557 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
19560 case " $LIBOBJS " in
19561 *" inet_aton.$ac_objext "* ) ;;
19562 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
19569 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
19570 if test "x$ac_cv_func_inet_pton" = xyes; then :
19571 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
19574 case " $LIBOBJS " in
19575 *" inet_pton.$ac_objext "* ) ;;
19576 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
19583 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19584 if test "x$ac_cv_func_inet_ntop" = xyes; then :
19585 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
19588 case " $LIBOBJS " in
19589 *" inet_ntop.$ac_objext "* ) ;;
19590 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
19597 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
19598 if test "x$ac_cv_func_snprintf" = xyes; then :
19599 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
19602 case " $LIBOBJS " in
19603 *" snprintf.$ac_objext "* ) ;;
19604 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19611 # test if snprintf return the proper length
19612 if test "x$ac_cv_func_snprintf" = xyes; then
19613 if test c${cross_compiling} = cno; then
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
19615 $as_echo_n "checking for correct snprintf return value... " >&6; }
19616 if test "$cross_compiling" = yes; then :
19617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19619 as_fn_error $? "cannot run test program while cross compiling
19620 See \`config.log' for more details" "$LINENO" 5; }
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624 $ac_includes_default
19626 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
19629 if ac_fn_c_try_run "$LINENO"; then :
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19631 $as_echo "yes" >&6; }
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635 $as_echo "no" >&6; }
19637 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
19639 case " $LIBOBJS " in
19640 *" snprintf.$ac_objext "* ) ;;
19641 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
19647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19648 conftest.$ac_objext conftest.beam conftest.$ac_ext
19653 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
19654 if test "x$ac_cv_func_strlcat" = xyes; then :
19655 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
19658 case " $LIBOBJS " in
19659 *" strlcat.$ac_objext "* ) ;;
19660 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
19667 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
19668 if test "x$ac_cv_func_strlcpy" = xyes; then :
19669 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
19672 case " $LIBOBJS " in
19673 *" strlcpy.$ac_objext "* ) ;;
19674 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
19681 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19682 if test "x$ac_cv_func_memmove" = xyes; then :
19683 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
19686 case " $LIBOBJS " in
19687 *" memmove.$ac_objext "* ) ;;
19688 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
19695 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19696 if test "x$ac_cv_func_gmtime_r" = xyes; then :
19697 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
19700 case " $LIBOBJS " in
19701 *" gmtime_r.$ac_objext "* ) ;;
19702 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
19709 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
19710 if test "x$ac_cv_func_isblank" = xyes; then :
19711 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
19714 case " $LIBOBJS " in
19715 *" isblank.$ac_objext "* ) ;;
19716 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
19723 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
19725 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19726 if test "x$ac_cv_func_reallocarray" = xyes; then :
19727 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19730 case " $LIBOBJS " in
19731 *" reallocarray.$ac_objext "* ) ;;
19732 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19739 if test "$USE_NSS" = "no"; then
19740 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
19741 if test "x$ac_cv_func_arc4random" = xyes; then :
19742 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
19745 case " $LIBOBJS " in
19746 *" arc4random.$ac_objext "* ) ;;
19747 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
19754 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
19755 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
19756 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
19759 case " $LIBOBJS " in
19760 *" arc4random_uniform.$ac_objext "* ) ;;
19761 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
19768 if test "$ac_cv_func_arc4random" = "no"; then
19769 case " $LIBOBJS " in
19770 *" explicit_bzero.$ac_objext "* ) ;;
19771 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
19775 case " $LIBOBJS " in
19776 *" arc4_lock.$ac_objext "* ) ;;
19777 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
19781 for ac_func in getentropy
19783 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
19784 if test "x$ac_cv_func_getentropy" = xyes; then :
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_GETENTROPY 1
19791 if test "$USE_WINSOCK" = 1; then
19792 case " $LIBOBJS " in
19793 *" getentropy_win.$ac_objext "* ) ;;
19794 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
19801 case " $LIBOBJS " in
19802 *" getentropy_osx.$ac_objext "* ) ;;
19803 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19808 *solaris*|*sunos*|SunOS)
19809 case " $LIBOBJS " in
19810 *" getentropy_solaris.$ac_objext "* ) ;;
19811 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19815 for ac_header in sys/sha2.h
19817 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19819 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19820 cat >>confdefs.h <<_ACEOF
19821 #define HAVE_SYS_SHA2_H 1
19826 for ac_func in SHA512_Update
19828 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19829 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19830 cat >>confdefs.h <<_ACEOF
19831 #define HAVE_SHA512_UPDATE 1
19836 case " $LIBOBJS " in
19837 *" sha512.$ac_objext "* ) ;;
19838 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19851 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19852 # this lib needed for sha2 on solaris
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19856 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19857 if ${ac_cv_search_clock_gettime+:} false; then :
19858 $as_echo_n "(cached) " >&6
19860 ac_func_search_save_LIBS=$LIBS
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19870 char clock_gettime ();
19874 return clock_gettime ();
19879 for ac_lib in '' rt; do
19880 if test -z "$ac_lib"; then
19881 ac_res="none required"
19884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19886 if ac_fn_c_try_link "$LINENO"; then :
19887 ac_cv_search_clock_gettime=$ac_res
19889 rm -f core conftest.err conftest.$ac_objext \
19891 if ${ac_cv_search_clock_gettime+:} false; then :
19895 if ${ac_cv_search_clock_gettime+:} false; then :
19898 ac_cv_search_clock_gettime=no
19900 rm conftest.$ac_ext
19901 LIBS=$ac_func_search_save_LIBS
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19904 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19905 ac_res=$ac_cv_search_clock_gettime
19906 if test "$ac_res" != no; then :
19907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19913 case " $LIBOBJS " in
19914 *" getentropy_linux.$ac_objext "* ) ;;
19915 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19919 for ac_func in SHA512_Update
19921 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19922 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19923 cat >>confdefs.h <<_ACEOF
19924 #define HAVE_SHA512_UPDATE 1
19930 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19932 case " $LIBOBJS " in
19933 *" sha512.$ac_objext "* ) ;;
19934 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19942 for ac_header in sys/sysctl.h
19944 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19946 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_SYS_SYSCTL_H 1
19955 for ac_func in getauxval
19957 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19958 if test "x$ac_cv_func_getauxval" = xyes; then :
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_GETAUXVAL 1
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19967 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19968 if ${ac_cv_search_clock_gettime+:} false; then :
19969 $as_echo_n "(cached) " >&6
19971 ac_func_search_save_LIBS=$LIBS
19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19973 /* end confdefs.h. */
19975 /* Override any GCC internal prototype to avoid an error.
19976 Use char because int might match the return type of a GCC
19977 builtin and then its argument prototype would still apply. */
19981 char clock_gettime ();
19985 return clock_gettime ();
19990 for ac_lib in '' rt; do
19991 if test -z "$ac_lib"; then
19992 ac_res="none required"
19995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19997 if ac_fn_c_try_link "$LINENO"; then :
19998 ac_cv_search_clock_gettime=$ac_res
20000 rm -f core conftest.err conftest.$ac_objext \
20002 if ${ac_cv_search_clock_gettime+:} false; then :
20006 if ${ac_cv_search_clock_gettime+:} false; then :
20009 ac_cv_search_clock_gettime=no
20011 rm conftest.$ac_ext
20012 LIBS=$ac_func_search_save_LIBS
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20015 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20016 ac_res=$ac_cv_search_clock_gettime
20017 if test "$ac_res" != no; then :
20018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20031 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
20033 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
20034 if test "x$ac_cv_func_ctime_r" = xyes; then :
20035 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
20038 case " $LIBOBJS " in
20039 *" ctime_r.$ac_objext "* ) ;;
20040 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
20047 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
20048 if test "x$ac_cv_func_strsep" = xyes; then :
20049 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
20052 case " $LIBOBJS " in
20053 *" strsep.$ac_objext "* ) ;;
20054 *) LIBOBJS="$LIBOBJS strsep.$ac_objext"
20062 # Check whether --enable-allsymbols was given.
20063 if test "${enable_allsymbols+set}" = set; then :
20064 enableval=$enable_allsymbols;
20067 case "$enable_allsymbols" in
20069 COMMON_OBJ_ALL_SYMBOLS=""
20071 EXTRALINK="-L. -L.libs -lunbound"
20073 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
20077 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
20078 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
20085 if test x_$enable_lock_checks = x_yes; then
20086 UBSYMS="-export-symbols clubsyms.def"
20087 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
20088 echo lock_protect >> clubsyms.def
20089 echo lock_unprotect >> clubsyms.def
20090 echo lock_get_mem >> clubsyms.def
20091 echo checklock_start >> clubsyms.def
20092 echo checklock_stop >> clubsyms.def
20093 echo checklock_lock >> clubsyms.def
20094 echo checklock_unlock >> clubsyms.def
20095 echo checklock_init >> clubsyms.def
20096 echo checklock_thrcreate >> clubsyms.def
20097 echo checklock_thrjoin >> clubsyms.def
20100 # check for dnstap if requested
20102 # Check whether --enable-dnstap was given.
20103 if test "${enable_dnstap+set}" = set; then :
20104 enableval=$enable_dnstap; opt_dnstap=$enableval
20111 # Check whether --with-dnstap-socket-path was given.
20112 if test "${with_dnstap_socket_path+set}" = set; then :
20113 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
20115 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
20119 if test "x$opt_dnstap" != "xno"; then
20120 # Extract the first word of "protoc-c", so it can be a program name with args.
20121 set dummy protoc-c; ac_word=$2
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20123 $as_echo_n "checking for $ac_word... " >&6; }
20124 if ${ac_cv_path_PROTOC_C+:} false; then :
20125 $as_echo_n "(cached) " >&6
20129 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
20132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20136 test -z "$as_dir" && as_dir=.
20137 for ac_exec_ext in '' $ac_executable_extensions; do
20138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
20140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20150 PROTOC_C=$ac_cv_path_PROTOC_C
20151 if test -n "$PROTOC_C"; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
20153 $as_echo "$PROTOC_C" >&6; }
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20156 $as_echo "no" >&6; }
20160 if test -z "$PROTOC_C"; then
20161 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
20164 # Check whether --with-protobuf-c was given.
20165 if test "${with_protobuf_c+set}" = set; then :
20166 withval=$with_protobuf_c;
20167 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20168 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
20169 CFLAGS="$CFLAGS -I$withval/include/google"
20171 CFLAGS="$CFLAGS -I$withval/include"
20173 LDFLAGS="$LDFLAGS -L$withval/lib"
20177 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
20178 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
20179 CFLAGS="$CFLAGS -I/usr/include/google"
20181 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
20182 CFLAGS="$CFLAGS -I/usr/local/include/google"
20183 LDFLAGS="$LDFLAGS -L/usr/local/lib"
20190 # Check whether --with-libfstrm was given.
20191 if test "${with_libfstrm+set}" = set; then :
20192 withval=$with_libfstrm;
20193 CFLAGS="$CFLAGS -I$withval/include"
20194 LDFLAGS="$LDFLAGS -L$withval/lib"
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
20199 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
20200 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20201 $as_echo_n "(cached) " >&6
20203 ac_func_search_save_LIBS=$LIBS
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20213 char fstrm_iothr_init ();
20217 return fstrm_iothr_init ();
20222 for ac_lib in '' fstrm; do
20223 if test -z "$ac_lib"; then
20224 ac_res="none required"
20227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20229 if ac_fn_c_try_link "$LINENO"; then :
20230 ac_cv_search_fstrm_iothr_init=$ac_res
20232 rm -f core conftest.err conftest.$ac_objext \
20234 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20238 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
20241 ac_cv_search_fstrm_iothr_init=no
20243 rm conftest.$ac_ext
20244 LIBS=$ac_func_search_save_LIBS
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
20247 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
20248 ac_res=$ac_cv_search_fstrm_iothr_init
20249 if test "$ac_res" != no; then :
20250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20253 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
20257 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
20258 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20259 $as_echo_n "(cached) " >&6
20261 ac_func_search_save_LIBS=$LIBS
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20265 /* Override any GCC internal prototype to avoid an error.
20266 Use char because int might match the return type of a GCC
20267 builtin and then its argument prototype would still apply. */
20271 char protobuf_c_message_pack ();
20275 return protobuf_c_message_pack ();
20280 for ac_lib in '' protobuf-c; do
20281 if test -z "$ac_lib"; then
20282 ac_res="none required"
20285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20287 if ac_fn_c_try_link "$LINENO"; then :
20288 ac_cv_search_protobuf_c_message_pack=$ac_res
20290 rm -f core conftest.err conftest.$ac_objext \
20292 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20296 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
20299 ac_cv_search_protobuf_c_message_pack=no
20301 rm conftest.$ac_ext
20302 LIBS=$ac_func_search_save_LIBS
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
20305 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
20306 ac_res=$ac_cv_search_protobuf_c_message_pack
20307 if test "$ac_res" != no; then :
20308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20311 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
20316 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
20322 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
20325 cat >>confdefs.h <<_ACEOF
20326 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
20330 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
20332 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
20344 # check for dnscrypt if requested
20346 # Check whether --enable-dnscrypt was given.
20347 if test "${enable_dnscrypt+set}" = set; then :
20348 enableval=$enable_dnscrypt; opt_dnscrypt=$enableval
20354 if test "x$opt_dnscrypt" != "xno"; then
20356 # Check whether --with-libsodium was given.
20357 if test "${with_libsodium+set}" = set; then :
20358 withval=$with_libsodium;
20359 CFLAGS="$CFLAGS -I$withval/include"
20360 LDFLAGS="$LDFLAGS -L$withval/lib"
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sodium_init" >&5
20365 $as_echo_n "checking for library containing sodium_init... " >&6; }
20366 if ${ac_cv_search_sodium_init+:} false; then :
20367 $as_echo_n "(cached) " >&6
20369 ac_func_search_save_LIBS=$LIBS
20370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20379 char sodium_init ();
20383 return sodium_init ();
20388 for ac_lib in '' sodium; do
20389 if test -z "$ac_lib"; then
20390 ac_res="none required"
20393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20395 if ac_fn_c_try_link "$LINENO"; then :
20396 ac_cv_search_sodium_init=$ac_res
20398 rm -f core conftest.err conftest.$ac_objext \
20400 if ${ac_cv_search_sodium_init+:} false; then :
20404 if ${ac_cv_search_sodium_init+:} false; then :
20407 ac_cv_search_sodium_init=no
20409 rm conftest.$ac_ext
20410 LIBS=$ac_func_search_save_LIBS
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sodium_init" >&5
20413 $as_echo "$ac_cv_search_sodium_init" >&6; }
20414 ac_res=$ac_cv_search_sodium_init
20415 if test "$ac_res" != no; then :
20416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20419 as_fn_error $? "The sodium library was not found. Please install sodium!" "$LINENO" 5
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20423 $as_echo_n "checking for library containing crypto_box_curve25519xchacha20poly1305_beforenm... " >&6; }
20424 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20425 $as_echo_n "(cached) " >&6
20427 ac_func_search_save_LIBS=$LIBS
20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20429 /* end confdefs.h. */
20431 /* Override any GCC internal prototype to avoid an error.
20432 Use char because int might match the return type of a GCC
20433 builtin and then its argument prototype would still apply. */
20437 char crypto_box_curve25519xchacha20poly1305_beforenm ();
20441 return crypto_box_curve25519xchacha20poly1305_beforenm ();
20446 for ac_lib in '' sodium; do
20447 if test -z "$ac_lib"; then
20448 ac_res="none required"
20451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20453 if ac_fn_c_try_link "$LINENO"; then :
20454 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=$ac_res
20456 rm -f core conftest.err conftest.$ac_objext \
20458 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20462 if ${ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm+:} false; then :
20465 ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm=no
20467 rm conftest.$ac_ext
20468 LIBS=$ac_func_search_save_LIBS
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&5
20471 $as_echo "$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm" >&6; }
20472 ac_res=$ac_cv_search_crypto_box_curve25519xchacha20poly1305_beforenm
20473 if test "$ac_res" != no; then :
20474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20476 ENABLE_DNSCRYPT_XCHACHA20=1
20479 $as_echo "#define USE_DNSCRYPT_XCHACHA20 1" >>confdefs.h
20484 ENABLE_DNSCRYPT_XCHACHA20=0
20491 $as_echo "#define USE_DNSCRYPT 1" >>confdefs.h
20496 DNSCRYPT_SRC="dnscrypt/dnscrypt.c"
20498 DNSCRYPT_OBJ="dnscrypt.lo"
20502 ENABLE_DNSCRYPT_XCHACHA20=0
20512 # check for cachedb if requested
20513 # Check whether --enable-cachedb was given.
20514 if test "${enable_cachedb+set}" = set; then :
20515 enableval=$enable_cachedb;
20518 case "$enable_cachedb" in
20521 $as_echo "#define USE_CACHEDB 1" >>confdefs.h
20529 # check for ipsecmod if requested
20530 # Check whether --enable-ipsecmod was given.
20531 if test "${enable_ipsecmod+set}" = set; then :
20532 enableval=$enable_ipsecmod;
20535 case "$enable_ipsecmod" in
20538 $as_echo "#define USE_IPSECMOD 1" >>confdefs.h
20540 IPSECMOD_OBJ="ipsecmod.lo ipsecmod-whitelist.lo"
20542 IPSECMOD_HEADER='$(srcdir)/ipsecmod/ipsecmod.h $(srcdir)/ipsecmod/ipsecmod-whitelist.h'
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
20551 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
20552 # on openBSD, the implicit rule make $< work.
20553 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
20555 cat >conftest.make <<EOF
20558 conftest.lo foo.lo bla.lo:
20559 if test -f "\$<"; then touch \$@; fi
20563 if test -f "\$<"; then touch \$@; fi
20565 conftest.lo: conftest.dir/conftest.c
20568 touch conftest.dir/conftest.c
20569 rm -f conftest.lo conftest.c
20570 ${MAKE:-make} -f conftest.make >/dev/null
20571 rm -f conftest.make conftest.c conftest.dir/conftest.c
20572 rm -rf conftest.dir
20573 if test ! -f conftest.lo; then
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 $as_echo "no" >&6; }
20576 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
20577 SOURCEFILE='`cat .source`'
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20580 $as_echo "yes" >&6; }
20581 SOURCEDETERMINE=':'
20588 # see if we want to build the library or everything
20589 ALLTARGET="alltargets"
20590 INSTALLTARGET="install-all"
20592 # Check whether --with-libunbound-only was given.
20593 if test "${with_libunbound_only+set}" = set; then :
20594 withval=$with_libunbound_only;
20595 if test "$withval" = "yes"; then
20597 INSTALLTARGET="install-lib"
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
20607 $as_echo "$as_me: Stripping extension flags..." >&6;}
20609 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
20610 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
20612 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
20617 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
20618 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
20620 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
20625 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
20626 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
20628 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
20633 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
20634 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
20636 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
20641 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
20642 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
20644 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
20649 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
20650 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
20652 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
20657 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
20658 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
20660 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
20665 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
20666 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
20668 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
20673 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
20674 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
20676 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
20681 if test -n "$LATE_LDFLAGS"; then
20682 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
20684 # remove start spaces
20685 LDFLAGS=`echo "$LDFLAGS"|sed -e 's/^ *//'`
20686 LIBS=`echo "$LIBS"|sed -e 's/^ *//'`
20689 cat >>confdefs.h <<_ACEOF
20690 #define MAXSYSLOGMSGLEN 10240
20698 date=`date +'%b %e, %Y'`
20701 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"
20703 ac_config_headers="$ac_config_headers config.h"
20705 cat >confcache <<\_ACEOF
20706 # This file is a shell script that caches the results of configure
20707 # tests run on this system so they can be shared between configure
20708 # scripts and configure runs, see configure's option --config-cache.
20709 # It is not useful on other systems. If it contains results you don't
20710 # want to keep, you may remove or edit it.
20712 # config.status only pays attention to the cache file if you give it
20713 # the --recheck option to rerun configure.
20715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20717 # following values.
20721 # The following way of writing the cache mishandles newlines in values,
20722 # but we know of no workaround that is simple, portable, and efficient.
20723 # So, we kill variables containing newlines.
20724 # Ultrix sh set writes to stderr and can't be redirected directly,
20725 # and sets the high bit in the cache file unless we assign to the vars.
20727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20728 eval ac_val=\$$ac_var
20732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20736 _ | IFS | as_nl) ;; #(
20737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20738 *) { eval $ac_var=; unset $ac_var;} ;;
20744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20745 *${as_nl}ac_space=\ *)
20746 # `set' does not quote correctly, so add quotes: double-quote
20747 # substitution turns \\\\ into \\, and sed turns \\ into \.
20750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20753 # `set' quotes correctly as required by POSIX, so do not add quotes.
20754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20768 if test -w "$cache_file"; then
20769 if test "x$cache_file" != "x/dev/null"; then
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20771 $as_echo "$as_me: updating cache $cache_file" >&6;}
20772 if test ! -f "$cache_file" || test -h "$cache_file"; then
20773 cat confcache >"$cache_file"
20775 case $cache_file in #(
20777 mv -f confcache "$cache_file"$$ &&
20778 mv -f "$cache_file"$$ "$cache_file" ;; #(
20780 mv -f confcache "$cache_file" ;;
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20792 # Let make expand exec_prefix.
20793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20795 DEFS=-DHAVE_CONFIG_H
20800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20801 # 1. Remove the extension, and $U if already installed.
20802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20803 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20805 # will be set to the directory where LIBOBJS objects are built.
20806 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20807 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20809 LIBOBJS=$ac_libobjs
20811 LTLIBOBJS=$ac_ltlibobjs
20814 if test -z "${USE_SYSTEMD_TRUE}" && test -z "${USE_SYSTEMD_FALSE}"; then
20815 as_fn_error $? "conditional \"USE_SYSTEMD\" was never defined.
20816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20819 : "${CONFIG_STATUS=./config.status}"
20821 ac_clean_files_save=$ac_clean_files
20822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20828 # Generated by $as_me.
20829 # Run this file to recreate the current configuration.
20830 # Compiler output produced by configure, useful for debugging
20831 # configure, is in config.log if it exists.
20834 ac_cs_recheck=false
20837 SHELL=\${CONFIG_SHELL-$SHELL}
20840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20841 ## -------------------- ##
20842 ## M4sh Initialization. ##
20843 ## -------------------- ##
20845 # Be more Bourne compatible
20846 DUALCASE=1; export DUALCASE # for MKS sh
20847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20851 # is contrary to our usage. Disable this feature.
20852 alias -g '${1+"$@"}'='"$@"'
20853 setopt NO_GLOB_SUBST
20855 case `(set -o) 2>/dev/null` in #(
20867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20871 # Prefer a ksh shell builtin over an external printf program on Solaris,
20872 # but without wasting forks for bash or zsh.
20873 if test -z "$BASH_VERSION$ZSH_VERSION" \
20874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20875 as_echo='print -r --'
20876 as_echo_n='print -rn --'
20877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20878 as_echo='printf %s\n'
20879 as_echo_n='printf %s'
20881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20883 as_echo_n='/usr/ucb/echo -n'
20885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20886 as_echo_n_body='eval
20890 expr "X$arg" : "X\\(.*\\)$as_nl";
20891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20895 export as_echo_n_body
20896 as_echo_n='sh -c $as_echo_n_body as_echo'
20898 export as_echo_body
20899 as_echo='sh -c $as_echo_body as_echo'
20902 # The user is always right.
20903 if test "${PATH_SEPARATOR+set}" != set; then
20905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20913 # We need space, tab and new line, in precisely that order. Quoting is
20914 # there to prevent editors from complaining about space-tab.
20915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20916 # splitting by setting IFS to empty value.)
20919 # Find who we are. Look in the path if we contain no directory separator.
20922 *[\\/]* ) as_myself=$0 ;;
20923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924 for as_dir in $PATH
20927 test -z "$as_dir" && as_dir=.
20928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20934 # We did not find ourselves, most probably we were run as `sh COMMAND'
20935 # in which case we are not to be found in the path.
20936 if test "x$as_myself" = x; then
20939 if test ! -f "$as_myself"; then
20940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20944 # Unset variables that we do not need and which cause bugs (e.g. in
20945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20946 # suppresses any "Segmentation fault" message there. '((' could
20947 # trigger a bug in pdksh 5.2.14.
20948 for as_var in BASH_ENV ENV MAIL MAILPATH
20949 do eval test x\${$as_var+set} = xset \
20950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20966 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20967 # ----------------------------------------
20968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20970 # script with STATUS, using 1 if that was 0.
20973 as_status=$1; test $as_status -eq 0 && as_status=1
20975 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20978 $as_echo "$as_me: error: $2" >&2
20979 as_fn_exit $as_status
20983 # as_fn_set_status STATUS
20984 # -----------------------
20985 # Set $? to STATUS, without forking.
20986 as_fn_set_status ()
20989 } # as_fn_set_status
20991 # as_fn_exit STATUS
20992 # -----------------
20993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20997 as_fn_set_status $1
21003 # Portably unset VAR.
21006 { eval $1=; unset $1;}
21008 as_unset=as_fn_unset
21009 # as_fn_append VAR VALUE
21010 # ----------------------
21011 # Append the text in VALUE to the end of the definition contained in VAR. Take
21012 # advantage of any shell optimizations that allow amortized linear growth over
21013 # repeated appends, instead of the typical quadratic growth present in naive
21015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21016 eval 'as_fn_append ()
21027 # as_fn_arith ARG...
21028 # ------------------
21029 # Perform arithmetic evaluation on the ARGs, and store the result in the
21030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21031 # must be portable across $(()) and expr.
21032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21033 eval 'as_fn_arith ()
21040 as_val=`expr "$@" || test $? -eq 1`
21045 if expr a : '\(a\)' >/dev/null 2>&1 &&
21046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21053 as_basename=basename
21058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21064 as_me=`$as_basename -- "$0" ||
21065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21066 X"$0" : 'X\(//\)$' \| \
21067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21069 sed '/^.*\/\([^/][^/]*\)\/*$/{
21083 # Avoid depending upon Character Ranges.
21084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087 as_cr_digits='0123456789'
21088 as_cr_alnum=$as_cr_Letters$as_cr_digits
21090 ECHO_C= ECHO_N= ECHO_T=
21091 case `echo -n x` in #(((((
21093 case `echo 'xy\c'` in
21094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21103 rm -f conf$$ conf$$.exe conf$$.file
21104 if test -d conf$$.dir; then
21105 rm -f conf$$.dir/conf$$.file
21108 mkdir conf$$.dir 2>/dev/null
21110 if (echo >conf$$.file) 2>/dev/null; then
21111 if ln -s conf$$.file conf$$ 2>/dev/null; then
21113 # ... but there are two gotchas:
21114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21116 # In both cases, we have to default to `cp -pR'.
21117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21119 elif ln conf$$.file conf$$ 2>/dev/null; then
21127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21128 rmdir conf$$.dir 2>/dev/null
21133 # Create "$as_dir" as a directory, including parents if necessary.
21138 -*) as_dir=./$as_dir;;
21140 test -d "$as_dir" || eval $as_mkdir_p || {
21144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21145 *) as_qdir=$as_dir;;
21147 as_dirs="'$as_qdir' $as_dirs"
21148 as_dir=`$as_dirname -- "$as_dir" ||
21149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21150 X"$as_dir" : 'X\(//\)[^/]' \| \
21151 X"$as_dir" : 'X\(//\)$' \| \
21152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21153 $as_echo X"$as_dir" |
21154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21158 /^X\(\/\/\)[^/].*/{
21171 test -d "$as_dir" && break
21173 test -z "$as_dirs" || eval "mkdir $as_dirs"
21174 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21178 if mkdir -p . 2>/dev/null; then
21179 as_mkdir_p='mkdir -p "$as_dir"'
21181 test -d ./-p && rmdir ./-p
21186 # as_fn_executable_p FILE
21187 # -----------------------
21188 # Test if FILE is an executable regular file.
21189 as_fn_executable_p ()
21191 test -f "$1" && test -x "$1"
21192 } # as_fn_executable_p
21193 as_test_x='test -x'
21194 as_executable_p=as_fn_executable_p
21196 # Sed expression to map a string onto a valid CPP name.
21197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21199 # Sed expression to map a string onto a valid variable name.
21200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21204 ## ----------------------------------- ##
21205 ## Main body of $CONFIG_STATUS script. ##
21206 ## ----------------------------------- ##
21208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21211 # Save the log message, to keep $0 and so on meaningful, and to
21212 # report actual input values of CONFIG_FILES etc. instead of their
21213 # values after options handling.
21215 This file was extended by unbound $as_me 1.6.6, which was
21216 generated by GNU Autoconf 2.69. Invocation command line was
21218 CONFIG_FILES = $CONFIG_FILES
21219 CONFIG_HEADERS = $CONFIG_HEADERS
21220 CONFIG_LINKS = $CONFIG_LINKS
21221 CONFIG_COMMANDS = $CONFIG_COMMANDS
21224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21229 case $ac_config_files in *"
21230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21233 case $ac_config_headers in *"
21234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21239 # Files that config.status was made for.
21240 config_files="$ac_config_files"
21241 config_headers="$ac_config_headers"
21242 config_commands="$ac_config_commands"
21246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21248 \`$as_me' instantiates files and other configuration actions
21249 from templates according to the current configuration. Unless the files
21250 and actions are specified as TAGs, all are instantiated by default.
21252 Usage: $0 [OPTION]... [TAG]...
21254 -h, --help print this help, then exit
21255 -V, --version print version number and configuration settings, then exit
21256 --config print configuration, then exit
21257 -q, --quiet, --silent
21258 do not print progress messages
21259 -d, --debug don't remove temporary files
21260 --recheck update $as_me by reconfiguring in the same conditions
21261 --file=FILE[:TEMPLATE]
21262 instantiate the configuration file FILE
21263 --header=FILE[:TEMPLATE]
21264 instantiate the configuration header FILE
21266 Configuration files:
21269 Configuration headers:
21272 Configuration commands:
21275 Report bugs to <unbound-bugs@nlnetlabs.nl>."
21278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21281 unbound config.status 1.6.6
21282 configured by $0, generated by GNU Autoconf 2.69,
21283 with options \\"\$ac_cs_config\\"
21285 Copyright (C) 2012 Free Software Foundation, Inc.
21286 This config.status script is free software; the Free Software Foundation
21287 gives unlimited permission to copy, distribute and modify it."
21292 test -n "\$AWK" || AWK=awk
21295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21296 # The default lists apply if the user does not specify any file.
21302 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21303 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21319 # Handling of the options.
21320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21323 $as_echo "$ac_cs_version"; exit ;;
21324 --config | --confi | --conf | --con | --co | --c )
21325 $as_echo "$ac_cs_config"; exit ;;
21326 --debug | --debu | --deb | --de | --d | -d )
21328 --file | --fil | --fi | --f )
21331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21332 '') as_fn_error $? "missing file argument" ;;
21334 as_fn_append CONFIG_FILES " '$ac_optarg'"
21335 ac_need_defaults=false;;
21336 --header | --heade | --head | --hea )
21339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21341 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21342 ac_need_defaults=false;;
21344 # Conflict between --help and --header
21345 as_fn_error $? "ambiguous option: \`$1'
21346 Try \`$0 --help' for more information.";;
21347 --help | --hel | -h )
21348 $as_echo "$ac_cs_usage"; exit ;;
21349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21353 # This is an error.
21354 -*) as_fn_error $? "unrecognized option: \`$1'
21355 Try \`$0 --help' for more information." ;;
21357 *) as_fn_append ac_config_targets " $1"
21358 ac_need_defaults=false ;;
21364 ac_configure_extra_args=
21366 if $ac_cs_silent; then
21368 ac_configure_extra_args="$ac_configure_extra_args --silent"
21372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21373 if \$ac_cs_recheck; then
21374 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21376 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21377 CONFIG_SHELL='$SHELL'
21378 export CONFIG_SHELL
21383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21388 ## Running $as_me. ##
21394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21400 # The HP-UX ksh and POSIX shell print the target directory to stdout
21401 # if CDPATH is set.
21402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21404 sed_quote_subst='$sed_quote_subst'
21405 double_quote_subst='$double_quote_subst'
21406 delay_variable_subst='$delay_variable_subst'
21407 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21408 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21409 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21410 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21411 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21412 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21413 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21414 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21415 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21416 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21417 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21418 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21419 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21420 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21421 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21422 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21423 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21424 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21425 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21426 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21427 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21428 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21429 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21430 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21431 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21432 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21433 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21434 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21435 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21436 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21437 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21438 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21439 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21440 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21441 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21442 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21443 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21444 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21445 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21446 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21447 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21448 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21449 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21450 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21451 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21452 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21453 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21454 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21455 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21456 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21457 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21458 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21459 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21460 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21461 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21462 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21463 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21464 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21465 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"`'
21466 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21467 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21468 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21469 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21470 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21471 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21472 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21473 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21474 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21475 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21476 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21477 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21478 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21479 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21480 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21481 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21482 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21483 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21484 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21485 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21486 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21487 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21488 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21489 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21490 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21491 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21492 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21493 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21494 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21495 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21496 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21497 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21498 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21499 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21500 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21501 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21502 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21503 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21504 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21505 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21506 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21507 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21508 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21509 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21510 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21511 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21512 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21513 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21514 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21515 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21516 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21517 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21518 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21519 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21520 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21521 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21522 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21523 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21524 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21525 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21526 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21527 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21528 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21529 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21530 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21531 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21532 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21533 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21534 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21535 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21536 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21537 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21538 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21539 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21540 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21541 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21544 LTCFLAGS='$LTCFLAGS'
21545 compiler='$compiler_DEFAULT'
21547 # A function that is used when there is no print builtin or printf.
21548 func_fallback_echo ()
21550 eval 'cat <<_LTECHO_EOF
21555 # Quote evaled strings.
21570 deplibs_check_method \
21575 sharedlib_from_linklib_cmd \
21578 archiver_list_spec \
21584 lt_cv_sys_global_symbol_pipe \
21585 lt_cv_sys_global_symbol_to_cdecl \
21586 lt_cv_sys_global_symbol_to_import \
21587 lt_cv_sys_global_symbol_to_c_name_address \
21588 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21589 lt_cv_nm_interface \
21590 nm_file_list_spec \
21591 lt_cv_truncate_bin \
21592 lt_prog_compiler_no_builtin_flag \
21593 lt_prog_compiler_pic \
21594 lt_prog_compiler_wl \
21595 lt_prog_compiler_static \
21596 lt_cv_prog_compiler_c_o \
21605 export_dynamic_flag_spec \
21606 whole_archive_flag_spec \
21607 compiler_needs_object \
21609 allow_undefined_flag \
21610 no_undefined_flag \
21611 hardcode_libdir_flag_spec \
21612 hardcode_libdir_separator \
21616 variables_saved_for_relink \
21618 library_names_spec \
21620 install_override_mode \
21624 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21625 *[\\\\\\\`\\"\\\$]*)
21626 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21629 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21634 # Double-quote double-evaled strings.
21635 for var in reload_cmds \
21636 old_postinstall_cmds \
21637 old_postuninstall_cmds \
21639 extract_expsyms_cmds \
21640 old_archive_from_new_cmds \
21641 old_archive_from_expsyms_cmds \
21643 archive_expsym_cmds \
21645 module_expsym_cmds \
21646 export_symbols_cmds \
21650 postuninstall_cmds \
21652 sys_lib_search_path_spec \
21653 configure_time_dlsearch_path \
21654 configure_time_lt_sys_library_path; do
21655 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21656 *[\\\\\\\`\\"\\\$]*)
21657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21665 ac_aux_dir='$ac_aux_dir'
21667 # See if we are running on zsh, and set the options that allow our
21668 # commands through without removal of \ escapes INIT.
21669 if test -n "\${ZSH_VERSION+set}"; then
21670 setopt NO_GLOB_SUBST
21684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21686 # Handling of arguments.
21687 for ac_config_target in $ac_config_targets
21689 case $ac_config_target in
21690 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21691 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
21692 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21693 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
21694 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
21695 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
21696 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
21697 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
21698 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
21699 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
21700 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
21701 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
21702 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
21703 "dnscrypt/dnscrypt_config.h") CONFIG_FILES="$CONFIG_FILES dnscrypt/dnscrypt_config.h" ;;
21704 "contrib/libunbound.pc") CONFIG_FILES="$CONFIG_FILES contrib/libunbound.pc" ;;
21705 "contrib/unbound.socket") CONFIG_FILES="$CONFIG_FILES contrib/unbound.socket" ;;
21706 "contrib/unbound.service") CONFIG_FILES="$CONFIG_FILES contrib/unbound.service" ;;
21707 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21709 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21714 # If the user did not use the arguments to specify the items to instantiate,
21715 # then the envvar interface is used. Set only those that are not.
21716 # We use the long form for the default assignment because of an extremely
21717 # bizarre bug on SunOS 4.1.3.
21718 if $ac_need_defaults; then
21719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21724 # Have a temporary directory for convenience. Make it in the build tree
21725 # simply because there is no reason against having it here, and in addition,
21726 # creating and moving files from /tmp can sometimes cause problems.
21727 # Hook for its removal unless debugging.
21728 # Note that there is a small window in which the directory will not be cleaned:
21729 # after its creation but before its name has been assigned to `$tmp'.
21733 trap 'exit_status=$?
21734 : "${ac_tmp:=$tmp}"
21735 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21737 trap 'as_fn_exit 1' 1 2 13 15
21739 # Create a (secure) tmp directory for tmp files.
21742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21746 tmp=./conf$$-$RANDOM
21747 (umask 077 && mkdir "$tmp")
21748 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21751 # Set up the scripts for CONFIG_FILES section.
21752 # No need to generate them if there are no CONFIG_FILES.
21753 # This happens for instance with `./config.status config.h'.
21754 if test -n "$CONFIG_FILES"; then
21757 ac_cr=`echo X | tr X '\015'`
21758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21759 # But we know of no other shell where ac_cr would be empty at this
21760 # point, so we can use a bashism as a fallback.
21761 if test "x$ac_cr" = x; then
21762 eval ac_cr=\$\'\\r\'
21764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21768 ac_cs_awk_cr=$ac_cr
21771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21776 echo "cat >conf$$subs.awk <<_ACEOF" &&
21777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21779 } >conf$$subs.sh ||
21780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21783 for ac_last_try in false false false false false :; do
21784 . ./conf$$subs.sh ||
21785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21788 if test $ac_delim_n = $ac_delim_num; then
21790 elif $ac_last_try; then
21791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21796 rm -f conf$$subs.sh
21798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21799 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21803 s/^/S["/; s/!.*/"]=/
21813 s/\(.\{148\}\)..*/\1/
21815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21827 s/\(.\{148\}\)..*/\1/
21829 s/["\\]/\\&/g; s/^/"/; s/$/"/
21833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21838 ' <conf$$subs.awk | sed '
21843 ' >>$CONFIG_STATUS || ac_write_fail=1
21844 rm -f conf$$subs.awk
21845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21847 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21848 for (key in S) S_is_set[key] = 1
21854 nfields = split(line, field, "@")
21856 len = length(field[1])
21857 for (i = 2; i < nfields; i++) {
21859 keylen = length(key)
21860 if (S_is_set[key]) {
21862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21863 len += length(value) + length(field[++i])
21874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21879 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21880 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21883 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21884 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21885 # trailing colons and then remove the whole line if VPATH becomes empty
21886 # (actually we leave an empty line to preserve line numbers).
21887 if test "x$srcdir" = x.; then
21888 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21907 fi # test -n "$CONFIG_FILES"
21909 # Set up the scripts for CONFIG_HEADERS section.
21910 # No need to generate them if there are no CONFIG_HEADERS.
21911 # This happens for instance with `./config.status Makefile'.
21912 if test -n "$CONFIG_HEADERS"; then
21913 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21917 # Transform confdefs.h into an awk script `defines.awk', embedded as
21918 # here-document in config.status, that substitutes the proper values into
21919 # config.h.in to produce config.h.
21921 # Create a delimiter string that does not exist in confdefs.h, to ease
21922 # handling of long lines.
21924 for ac_last_try in false false :; do
21925 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21926 if test -z "$ac_tt"; then
21928 elif $ac_last_try; then
21929 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21935 # For the awk script, D is an array of macro values keyed by name,
21936 # likewise P contains macro parameters if any. Preserve backslash
21937 # newline sequences.
21939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21941 s/.\{148\}/&'"$ac_delim"'/g
21944 s/^[ ]*#[ ]*define[ ][ ]*/ /
21951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21958 D["\1"]=" \3\\\\\\n"\\/p
21960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21965 s/.\{148\}/&'"$ac_delim"'/g
21970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21975 ' <confdefs.h | sed '
21976 s/'"$ac_delim"'/"\\\
21977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21980 for (key in D) D_is_set[key] = 1
21983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21985 split(line, arg, " ")
21986 if (arg[1] == "#") {
21990 defundef = substr(arg[1], 2)
21993 split(mac1, mac2, "(") #)
21995 prefix = substr(line, 1, index(line, defundef) - 1)
21996 if (D_is_set[macro]) {
21997 # Preserve the white space surrounding the "#".
21998 print prefix "define", macro P[macro] D[macro]
22001 # Replace #undef with comments. This is necessary, for example,
22002 # in the case of _POSIX_SOURCE, which is predefined and required
22003 # on some systems where configure will not decide to define it.
22004 if (defundef == "undef") {
22005 print "/*", prefix defundef, macro, "*/"
22013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22014 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22015 fi # test -n "$CONFIG_HEADERS"
22018 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22023 :[FHLC]) ac_mode=$ac_tag; continue;;
22025 case $ac_mode$ac_tag in
22027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22028 :[FH]-) ac_tag=-:-;;
22029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22046 -) ac_f="$ac_tmp/stdin";;
22047 *) # Look for the file first in the build tree, then in the source tree
22048 # (if the path is not absolute). The absolute path cannot be DOS-style,
22049 # because $ac_f cannot contain `:'.
22053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22058 as_fn_append ac_file_inputs " '$ac_f'"
22061 # Let's still pretend it is `configure' which instantiates (i.e., don't
22062 # use $as_me), people would be surprised to read:
22063 # /* config.h. Generated by config.status. */
22064 configure_input='Generated from '`
22065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22067 if test x"$ac_file" != x-; then
22068 configure_input="$ac_file. $configure_input"
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22070 $as_echo "$as_me: creating $ac_file" >&6;}
22072 # Neutralize special characters interpreted by sed in replacement strings.
22073 case $configure_input in #(
22074 *\&* | *\|* | *\\* )
22075 ac_sed_conf_input=`$as_echo "$configure_input" |
22076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22077 *) ac_sed_conf_input=$configure_input;;
22081 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22087 ac_dir=`$as_dirname -- "$ac_file" ||
22088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22089 X"$ac_file" : 'X\(//\)[^/]' \| \
22090 X"$ac_file" : 'X\(//\)$' \| \
22091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22092 $as_echo X"$ac_file" |
22093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22097 /^X\(\/\/\)[^/].*/{
22110 as_dir="$ac_dir"; as_fn_mkdir_p
22114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22117 # A ".." for each directory in $ac_dir_suffix.
22118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22119 case $ac_top_builddir_sub in
22120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22124 ac_abs_top_builddir=$ac_pwd
22125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22126 # for backward compatibility:
22127 ac_top_builddir=$ac_top_build_prefix
22130 .) # We are building in place.
22132 ac_top_srcdir=$ac_top_builddir_sub
22133 ac_abs_top_srcdir=$ac_pwd ;;
22134 [\\/]* | ?:[\\/]* ) # Absolute name.
22135 ac_srcdir=$srcdir$ac_dir_suffix;
22136 ac_top_srcdir=$srcdir
22137 ac_abs_top_srcdir=$srcdir ;;
22138 *) # Relative name.
22139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22140 ac_top_srcdir=$ac_top_build_prefix$srcdir
22141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22155 # If the template does not know about datarootdir, expand it.
22156 # FIXME: This hack should be removed a few years after 2.60.
22157 ac_datarootdir_hack=; ac_datarootdir_seen=
22168 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22169 *datarootdir*) ac_datarootdir_seen=yes;;
22170 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22172 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22175 ac_datarootdir_hack='
22176 s&@datadir@&$datadir&g
22177 s&@docdir@&$docdir&g
22178 s&@infodir@&$infodir&g
22179 s&@localedir@&$localedir&g
22180 s&@mandir@&$mandir&g
22181 s&\\\${datarootdir}&$datarootdir&g' ;;
22185 # Neutralize VPATH when `$srcdir' = `.'.
22186 # Shell code in configure.ac might set extrasub.
22187 # FIXME: do we really want to maintain this feature?
22188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22189 ac_sed_extra="$ac_vpsub
22192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22195 s|@configure_input@|$ac_sed_conf_input|;t t
22196 s&@top_builddir@&$ac_top_builddir_sub&;t t
22197 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22198 s&@srcdir@&$ac_srcdir&;t t
22199 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22200 s&@top_srcdir@&$ac_top_srcdir&;t t
22201 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22202 s&@builddir@&$ac_builddir&;t t
22203 s&@abs_builddir@&$ac_abs_builddir&;t t
22204 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22205 $ac_datarootdir_hack
22207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22215 which seems to be undefined. Please make sure it is defined" >&5
22216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22217 which seems to be undefined. Please make sure it is defined" >&2;}
22219 rm -f "$ac_tmp/stdin"
22221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22230 if test x"$ac_file" != x-; then
22232 $as_echo "/* $configure_input */" \
22233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22234 } >"$ac_tmp/config.h" \
22235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22241 mv "$ac_tmp/config.h" "$ac_file" \
22242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22245 $as_echo "/* $configure_input */" \
22246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22247 || as_fn_error $? "could not create -" "$LINENO" 5
22251 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22252 $as_echo "$as_me: executing $ac_file commands" >&6;}
22257 case $ac_file$ac_mode in
22260 # See if we are running on zsh, and set the options that allow our
22261 # commands through without removal of \ escapes.
22262 if test -n "${ZSH_VERSION+set}"; then
22263 setopt NO_GLOB_SUBST
22267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22270 cat <<_LT_EOF >> "$cfgfile"
22272 # Generated automatically by $as_me ($PACKAGE) $VERSION
22273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22276 # Provide generalized library-building support services.
22277 # Written by Gordon Matzigkeit, 1996
22279 # Copyright (C) 2014 Free Software Foundation, Inc.
22280 # This is free software; see the source for copying conditions. There is NO
22281 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22283 # GNU Libtool is free software; you can redistribute it and/or modify
22284 # it under the terms of the GNU General Public License as published by
22285 # the Free Software Foundation; either version 2 of of the License, or
22286 # (at your option) any later version.
22288 # As a special exception to the GNU General Public License, if you
22289 # distribute this file as part of a program or library that is built
22290 # using GNU Libtool, you may include this file under the same
22291 # distribution terms that you use for the rest of that program.
22293 # GNU Libtool is distributed in the hope that it will be useful, but
22294 # WITHOUT ANY WARRANTY; without even the implied warranty of
22295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22296 # GNU General Public License for more details.
22298 # You should have received a copy of the GNU General Public License
22299 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22302 # The names of the tagged configurations supported by this script.
22305 # Configured defaults for sys_lib_dlsearch_path munging.
22306 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22308 # ### BEGIN LIBTOOL CONFIG
22310 # Which release of libtool.m4 was used?
22311 macro_version=$macro_version
22312 macro_revision=$macro_revision
22314 # Whether or not to build shared libraries.
22315 build_libtool_libs=$enable_shared
22317 # Whether or not to build static libraries.
22318 build_old_libs=$enable_static
22320 # What type of objects to build.
22323 # Whether or not to optimize for fast installation.
22324 fast_install=$enable_fast_install
22326 # Shared archive member basename,for filename based shared library versioning on AIX.
22327 shared_archive_member_spec=$shared_archive_member_spec
22329 # Shell to use when invoking shell scripts.
22332 # An echo program that protects backslashes.
22335 # The PATH separator for the build system.
22336 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22339 host_alias=$host_alias
22343 # The build system.
22344 build_alias=$build_alias
22348 # A sed program that does not truncate output.
22351 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22352 Xsed="\$SED -e 1s/^X//"
22354 # A grep program that handles long lines.
22360 # A literal string matcher.
22363 # A BSD- or MS-compatible name lister.
22366 # Whether we need soft or hard links.
22369 # What is the maximum length of a command?
22370 max_cmd_len=$max_cmd_len
22372 # Object file suffix (normally "o").
22375 # Executable file suffix (normally "").
22378 # whether the shell understands "unset".
22381 # turn spaces into newlines.
22384 # turn newlines into spaces.
22387 # convert \$build file names to \$host format.
22388 to_host_file_cmd=$lt_cv_to_host_file_cmd
22390 # convert \$build files to toolchain format.
22391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22393 # An object symbol dumper.
22394 OBJDUMP=$lt_OBJDUMP
22396 # Method to check whether dependent libraries are shared objects.
22397 deplibs_check_method=$lt_deplibs_check_method
22399 # Command to use when deplibs_check_method = "file_magic".
22400 file_magic_cmd=$lt_file_magic_cmd
22402 # How to find potential files when deplibs_check_method = "file_magic".
22403 file_magic_glob=$lt_file_magic_glob
22405 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22406 want_nocaseglob=$lt_want_nocaseglob
22408 # DLL creation program.
22409 DLLTOOL=$lt_DLLTOOL
22411 # Command to associate shared and link libraries.
22412 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22417 # Flags to create an archive.
22418 AR_FLAGS=$lt_AR_FLAGS
22420 # How to feed a file listing to the archiver.
22421 archiver_list_spec=$lt_archiver_list_spec
22423 # A symbol stripping program.
22426 # Commands used to install an old-style archive.
22428 old_postinstall_cmds=$lt_old_postinstall_cmds
22429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22431 # Whether to use a lock for old archive extraction.
22432 lock_old_archive_extraction=$lock_old_archive_extraction
22437 # LTCC compiler flags.
22438 LTCFLAGS=$lt_CFLAGS
22440 # Take the output of nm and produce a listing of raw symbols and C names.
22441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22443 # Transform the output of nm in a proper C declaration.
22444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22446 # Transform the output of nm into a list of symbols to manually relocate.
22447 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22449 # Transform the output of nm in a C name address pair.
22450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22452 # Transform the output of nm in a C name address pair when lib prefix is needed.
22453 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22455 # The name lister interface.
22456 nm_interface=$lt_lt_cv_nm_interface
22458 # Specify filename containing input files for \$NM.
22459 nm_file_list_spec=$lt_nm_file_list_spec
22461 # The root where to search for dependent libraries,and where our libraries should be installed.
22462 lt_sysroot=$lt_sysroot
22464 # Command to truncate a binary pipe.
22465 lt_truncate_bin=$lt_lt_cv_truncate_bin
22467 # The name of the directory that contains temporary libtool files.
22470 # Used to examine libraries when file_magic_cmd begins with "file".
22471 MAGIC_CMD=$MAGIC_CMD
22473 # Must we lock files when doing compilation?
22474 need_locks=$lt_need_locks
22477 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22480 DSYMUTIL=$lt_DSYMUTIL
22482 # Tool to change global to local symbols on Mac OS X.
22485 # Tool to manipulate fat objects and archives on Mac OS X.
22488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22492 OTOOL64=$lt_OTOOL64
22494 # Old archive suffix (normally "a").
22497 # Shared library suffix (normally ".so").
22498 shrext_cmds=$lt_shrext_cmds
22500 # The commands to extract the exported symbol list from a shared archive.
22501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22503 # Variables whose values should be saved in libtool wrapper scripts and
22504 # restored at link time.
22505 variables_saved_for_relink=$lt_variables_saved_for_relink
22507 # Do we need the "lib" prefix for modules?
22508 need_lib_prefix=$need_lib_prefix
22510 # Do we need a version for libraries?
22511 need_version=$need_version
22513 # Library versioning type.
22514 version_type=$version_type
22516 # Shared library runtime path variable.
22517 runpath_var=$runpath_var
22519 # Shared library path variable.
22520 shlibpath_var=$shlibpath_var
22522 # Is shlibpath searched before the hard-coded library search path?
22523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22525 # Format of library name prefix.
22526 libname_spec=$lt_libname_spec
22528 # List of archive names. First name is the real one, the rest are links.
22529 # The last name is the one that the linker finds with -lNAME
22530 library_names_spec=$lt_library_names_spec
22532 # The coded name of the library, if different from the real name.
22533 soname_spec=$lt_soname_spec
22535 # Permission mode override for installation of shared libraries.
22536 install_override_mode=$lt_install_override_mode
22538 # Command to use after installation of a shared archive.
22539 postinstall_cmds=$lt_postinstall_cmds
22541 # Command to use after uninstallation of a shared archive.
22542 postuninstall_cmds=$lt_postuninstall_cmds
22544 # Commands used to finish a libtool library installation in a directory.
22545 finish_cmds=$lt_finish_cmds
22547 # As "finish_cmds", except a single script fragment to be evaled but
22549 finish_eval=$lt_finish_eval
22551 # Whether we should hardcode library paths into libraries.
22552 hardcode_into_libs=$hardcode_into_libs
22554 # Compile-time system search path for libraries.
22555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22557 # Detected run-time system search path for libraries.
22558 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22560 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22561 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22563 # Whether dlopen is supported.
22564 dlopen_support=$enable_dlopen
22566 # Whether dlopen of programs is supported.
22567 dlopen_self=$enable_dlopen_self
22569 # Whether dlopen of statically linked programs is supported.
22570 dlopen_self_static=$enable_dlopen_self_static
22572 # Commands to strip libraries.
22573 old_striplib=$lt_old_striplib
22574 striplib=$lt_striplib
22577 # The linker used to build libraries.
22580 # How to create reloadable object files.
22581 reload_flag=$lt_reload_flag
22582 reload_cmds=$lt_reload_cmds
22584 # Commands used to build an old-style archive.
22585 old_archive_cmds=$lt_old_archive_cmds
22587 # A language specific compiler.
22590 # Is the compiler the GNU compiler?
22593 # Compiler flag to turn off builtin functions.
22594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22596 # Additional compiler flags for building library objects.
22597 pic_flag=$lt_lt_prog_compiler_pic
22599 # How to pass a linker flag through the compiler.
22600 wl=$lt_lt_prog_compiler_wl
22602 # Compiler flag to prevent dynamic linking.
22603 link_static_flag=$lt_lt_prog_compiler_static
22605 # Does compiler simultaneously support -c and -o options?
22606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22608 # Whether or not to add -lc for building shared libraries.
22609 build_libtool_need_lc=$archive_cmds_need_lc
22611 # Whether or not to disallow shared libs when runtime libs are static.
22612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22614 # Compiler flag to allow reflexive dlopens.
22615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22617 # Compiler flag to generate shared objects directly from archives.
22618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22620 # Whether the compiler copes with passing no objects directly.
22621 compiler_needs_object=$lt_compiler_needs_object
22623 # Create an old-style archive from a shared archive.
22624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22626 # Create a temporary old-style archive to link instead of a shared archive.
22627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22629 # Commands used to build a shared archive.
22630 archive_cmds=$lt_archive_cmds
22631 archive_expsym_cmds=$lt_archive_expsym_cmds
22633 # Commands used to build a loadable module if different from building
22634 # a shared archive.
22635 module_cmds=$lt_module_cmds
22636 module_expsym_cmds=$lt_module_expsym_cmds
22638 # Whether we are building with GNU ld or not.
22639 with_gnu_ld=$lt_with_gnu_ld
22641 # Flag that allows shared libraries with undefined symbols to be built.
22642 allow_undefined_flag=$lt_allow_undefined_flag
22644 # Flag that enforces no undefined symbols.
22645 no_undefined_flag=$lt_no_undefined_flag
22647 # Flag to hardcode \$libdir into a binary during linking.
22648 # This must work even if \$libdir does not exist
22649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22651 # Whether we need a single "-rpath" flag with a separated argument.
22652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22654 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22655 # DIR into the resulting binary.
22656 hardcode_direct=$hardcode_direct
22658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22659 # DIR into the resulting binary and the resulting library dependency is
22660 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22661 # library is relocated.
22662 hardcode_direct_absolute=$hardcode_direct_absolute
22664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22665 # into the resulting binary.
22666 hardcode_minus_L=$hardcode_minus_L
22668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22669 # into the resulting binary.
22670 hardcode_shlibpath_var=$hardcode_shlibpath_var
22672 # Set to "yes" if building a shared library automatically hardcodes DIR
22673 # into the library and all subsequent libraries and executables linked
22675 hardcode_automatic=$hardcode_automatic
22677 # Set to yes if linker adds runtime paths of dependent libraries
22678 # to runtime path list.
22679 inherit_rpath=$inherit_rpath
22681 # Whether libtool must link a program against all its dependency libraries.
22682 link_all_deplibs=$link_all_deplibs
22684 # Set to "yes" if exported symbols are required.
22685 always_export_symbols=$always_export_symbols
22687 # The commands to list exported symbols.
22688 export_symbols_cmds=$lt_export_symbols_cmds
22690 # Symbols that should not be listed in the preloaded symbols.
22691 exclude_expsyms=$lt_exclude_expsyms
22693 # Symbols that must always be exported.
22694 include_expsyms=$lt_include_expsyms
22696 # Commands necessary for linking programs (against libraries) with templates.
22697 prelink_cmds=$lt_prelink_cmds
22699 # Commands necessary for finishing linking programs.
22700 postlink_cmds=$lt_postlink_cmds
22702 # Specify filename containing input files.
22703 file_list_spec=$lt_file_list_spec
22705 # How to hardcode a shared library path into an executable.
22706 hardcode_action=$hardcode_action
22708 # ### END LIBTOOL CONFIG
22712 cat <<'_LT_EOF' >> "$cfgfile"
22714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22716 # func_munge_path_list VARIABLE PATH
22717 # -----------------------------------
22718 # VARIABLE is name of variable containing _space_ separated list of
22719 # directories to be munged by the contents of PATH, which is string
22722 # string "DIR[ DIR]" will be prepended to VARIABLE
22724 # string "DIR[ DIR]" will be appended to VARIABLE
22725 # "DIRP[:DIRP]::[DIRA:]DIRA"
22726 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22727 # "DIRA[ DIRA]" will be appended to VARIABLE
22729 # VARIABLE will be replaced by "DIR[ DIR]"
22730 func_munge_path_list ()
22736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22739 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22742 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22743 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22752 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22753 func_cc_basename ()
22755 for cc_temp in $*""; do
22757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22763 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22767 # ### END FUNCTIONS SHARED WITH CONFIGURE
22773 cat <<\_LT_EOF >> "$cfgfile"
22774 # AIX sometimes has problems with the GCC collect2 program. For some
22775 # reason, if we set the COLLECT_NAMES environment variable, the problems
22776 # vanish in a puff of smoke.
22777 if test set != "${COLLECT_NAMES+set}"; then
22779 export COLLECT_NAMES
22786 ltmain=$ac_aux_dir/ltmain.sh
22789 # We use sed instead of cat because bash on DJGPP gets confused if
22790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22791 # text mode, it properly converts lines to CR/LF. This bash problem
22792 # is reportedly fixed, but why not run on old versions too?
22793 sed '$q' "$ltmain" >> "$cfgfile" \
22794 || (rm -f "$cfgfile"; exit 1)
22796 mv -f "$cfgfile" "$ofile" ||
22797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22802 sed < libtool > libtool-2 \
22803 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
22804 mv libtool-2 libtool
22806 libtool="./libtool"
22815 ac_clean_files=$ac_clean_files_save
22817 test $ac_write_fail = 0 ||
22818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22821 # configure is writing to config.log, and then calls config.status.
22822 # config.status does its own redirection, appending to config.log.
22823 # Unfortunately, on DOS this fails, as config.log is still kept open
22824 # by configure, so config.status won't be able to write to it; its
22825 # output is simply discarded. So we exec the FD to /dev/null,
22826 # effectively closing config.log, so it can be properly (re)opened and
22827 # appended to by config.status. When coming back to configure, we
22828 # need to make the FD available again.
22829 if test "$no_create" != yes; then
22831 ac_config_status_args=
22832 test "$silent" = yes &&
22833 ac_config_status_args="$ac_config_status_args --quiet"
22835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22838 # would make configure fail if this is the last instruction.
22839 $ac_cs_success || as_fn_exit 1
22841 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22843 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}