2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.7.
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.5.7'
594 PACKAGE_STRING='unbound 1.5.7'
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
643 opt_dnstap_socket_path
648 COMMON_OBJ_ALL_SYMBOLS
650 LIBOBJ_WITHOUT_CTIMEARC4
651 WIN_CHECKCONF_OBJ_LINK
653 WIN_UBANCHOR_OBJ_LINK
662 UNBOUND_EVENT_UNINSTALL
663 UNBOUND_EVENT_INSTALL
732 UNBOUND_ROOTCERT_FILE
753 UNBOUND_VERSION_MICRO
754 UNBOUND_VERSION_MINOR
755 UNBOUND_VERSION_MAJOR
783 program_transform_name
796 enable_option_checking
821 enable_alloc_nonregional
839 with_dnstap_socket_path
844 ac_precious_vars='build_alias
858 # Initialize some variables set by options.
860 ac_init_version=false
861 ac_unrecognized_opts=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
872 program_transform_name=s,x,x,
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir='${exec_prefix}/bin'
887 sbindir='${exec_prefix}/sbin'
888 libexecdir='${exec_prefix}/libexec'
889 datarootdir='${prefix}/share'
890 datadir='${datarootdir}'
891 sysconfdir='${prefix}/etc'
892 sharedstatedir='${prefix}/com'
893 localstatedir='${prefix}/var'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
947 cache_file=config.cache ;;
949 -datadir | --datadir | --datadi | --datad)
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
975 eval enable_$ac_useropt=no ;;
977 -docdir | --docdir | --docdi | --doc | --do)
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: $ac_useropt"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 htmldir=$ac_optarg ;;
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1046 -libdir | --libdir | --libdi | --libd)
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1137 -psdir | --psdir | --psdi | --psd | --ps)
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 sbindir=$ac_optarg ;;
1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1154 | --sharedst | --shareds | --shared | --share | --shar \
1156 ac_prev=sharedstatedir ;;
1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 sharedstatedir=$ac_optarg ;;
1163 -site | --site | --sit)
1165 -site=* | --site=* | --sit=*)
1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1171 srcdir=$ac_optarg ;;
1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1174 | --syscon | --sysco | --sysc | --sys | --sy)
1175 ac_prev=sysconfdir ;;
1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1178 sysconfdir=$ac_optarg ;;
1180 -target | --target | --targe | --targ | --tar | --ta | --t)
1181 ac_prev=target_alias ;;
1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1183 target_alias=$ac_optarg ;;
1185 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 -version | --version | --versio | --versi | --vers | -V)
1189 ac_init_version=: ;;
1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=\$ac_optarg ;;
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=no ;;
1224 # Obsolete; use --with-x.
1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228 | --x-incl | --x-inc | --x-in | --x-i)
1229 ac_prev=x_includes ;;
1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232 x_includes=$ac_optarg ;;
1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236 ac_prev=x_libraries ;;
1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239 x_libraries=$ac_optarg ;;
1241 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 eval $ac_envvar=\$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 if test -n "$ac_prev"; then
1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $? "missing argument to $ac_option"
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 # Check all directory arguments for consistency.
1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val=\$$ac_var
1286 # Remove trailing slashes.
1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\$ac_val;;
1292 # Be sure to have absolute directory names.
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319 test "$silent" = yes && exec 6>/dev/null
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $? "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $? "pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures unbound 1.5.7 to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of unbound 1.5.7:";;
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-checking Enable warnings, asserts, makefile-dependencies
1470 --enable-debug same as enable-checking
1471 --disable-flto Disable link-time optimization (gcc specific option)
1472 --enable-pie Enable Position-Independent Executable (eg. to fully
1473 benefit from ASLR, small performance penalty)
1474 --enable-relro-now Enable full relocation binding at load-time (RELRO
1475 NOW, to protect GOT and .dtor areas)
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --disable-rpath disable hardcoded rpath (default=enabled)
1482 --disable-largefile omit support for large files
1483 --enable-alloc-checks enable to memory allocation statistics, for debug
1485 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1487 --enable-alloc-nonregional
1488 enable nonregional allocs, slow but exposes regional
1489 allocations to other memory purifiers, for debug
1491 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1492 --disable-gost Disable GOST support
1493 --disable-ecdsa Disable ECDSA support
1494 --enable-event-api Enable (experimental) libevent-based libunbound API
1495 installed to unbound-event.h
1496 --enable-static-exe enable to compile executables statically against
1497 (event) libs, for debug purposes
1498 --enable-lock-checks enable to check lock and unlock calls, for debug
1500 --enable-allsymbols export all symbols from libunbound and link binaries
1501 to it, smaller install size but libunbound export
1502 table is polluted by internal symbols
1503 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-conf-file=path Pathname to the Unbound configuration file
1509 --with-run-dir=path set default directory to chdir to (by default dir
1511 --with-chroot-dir=path set default directory to chroot to (by default same
1513 --with-share-dir=path set default directory with shared data (by default
1514 same as share/unbound)
1515 --with-pidfile=filename set default pathname to unbound pidfile (default
1516 run-dir/unbound.pid)
1517 --with-rootkey-file=filename
1518 set default pathname to root key file (default
1519 run-dir/root.key). This file is read and written.
1520 --with-rootcert-file=filename
1521 set default pathname to root update certificate file
1522 (default run-dir/icannbundle.pem). This file need
1523 not exist if you are content with the builtin.
1524 --with-username=user set default user that unbound changes to (default
1526 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-sysroot=DIR Search for dependent libraries within DIR
1530 (or the compiler's sysroot if not specified).
1531 --with-pthreads use pthreads library, or --without-pthreads to
1532 disable threading support.
1533 --with-solaris-threads use solaris native thread library.
1534 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1536 --with-pythonmodule build Python module, or --without-pythonmodule to
1537 disable script engine. (default=no)
1538 --with-nss=path use libnss instead of openssl, installed at path.
1539 --with-nettle=path use libnettle as crypto library, installed at path.
1540 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1541 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1543 --with-libevent=pathname
1544 use libevent (will check /usr/local /opt/local
1545 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1546 an explicit path). Slower, but allows use of large
1547 outgoing port ranges.
1548 --with-libexpat=path specify explicit path for libexpat.
1549 --with-dnstap-socket-path=pathname
1550 set default dnstap socket path
1551 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1552 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1553 --with-libunbound-only do not build daemon and tool programs
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1564 YACC The `Yet Another Compiler Compiler' implementation to use.
1565 Defaults to the first program found out of: `bison -y', `byacc',
1567 YFLAGS The list of arguments that will be passed by default to $YACC.
1568 This script will default YFLAGS to the empty string to avoid a
1569 default value of `-d' given by some make applications.
1571 The installed Python version to use, for example '2.3'. This
1572 string will be appended to the Python interpreter canonical
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1641 unbound configure 1.5.7
1642 generated by GNU Autoconf 2.69
1644 Copyright (C) 2012 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1651 ## ------------------------ ##
1652 ## Autoconf initialization. ##
1653 ## ------------------------ ##
1655 # ac_fn_c_try_compile LINENO
1656 # --------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_c_try_compile
1693 # ac_fn_c_try_cpp LINENO
1694 # ----------------------
1695 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } > conftest.i && {
1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733 # the include files in INCLUDES and setting the cache variable VAR
1735 ac_fn_c_check_header_mongrel ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if eval \${$3+:} false; then :
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 # Is the header compilable?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750 $as_echo_n "checking $2 usability... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 ac_header_compiler=yes
1759 ac_header_compiler=no
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763 $as_echo "$ac_header_compiler" >&6; }
1765 # Is the header present?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767 $as_echo_n "checking $2 presence... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1772 if ac_fn_c_try_cpp "$LINENO"; then :
1773 ac_header_preproc=yes
1775 ac_header_preproc=no
1777 rm -f conftest.err conftest.i conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779 $as_echo "$ac_header_preproc" >&6; }
1781 # So? What about this header?
1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1793 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1797 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 ( $as_echo "## ---------------------------------------- ##
1801 ## Report this to unbound-bugs@nlnetlabs.nl ##
1802 ## ---------------------------------------- ##"
1803 ) | sed "s/^/$as_me: WARNING: /" >&2
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1811 eval "$3=\$ac_header_compiler"
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_check_func LINENO FUNC VAR
1941 # ----------------------------------
1942 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943 ac_fn_c_check_func ()
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. */
1953 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955 #define $2 innocuous_$2
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1963 # include <limits.h>
1965 # include <assert.h>
1970 /* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined __stub_$2 || defined __stub___$2
1992 if ac_fn_c_try_link "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext \
1998 conftest$ac_exeext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_func
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_type
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2066 ac_fn_c_compute_int ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if test "$cross_compiling" = yes; then
2070 # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2079 return test_array [0];
2085 if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 return test_array [0];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid; break
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile "$LINENO"; then :
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_lo=$ac_mid; break
2149 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2150 if test $ac_mid -le $ac_hi; then
2154 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 # Binary search between lo and hi bounds.
2165 while test "x$ac_lo" != "x$ac_hi"; do
2166 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2204 FILE *f = fopen ("conftest.val", "w");
2209 long int i = longval ();
2212 fprintf (f, "%ld", i);
2216 unsigned long int i = ulongval ();
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_c_compute_int
2244 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2245 # ---------------------------------------------
2246 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2248 ac_fn_c_check_decl ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 as_decl_name=`echo $2|sed 's/ *(.*//'`
2252 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2254 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 #ifndef $as_decl_name
2266 (void) $as_decl_use;
2268 (void) $as_decl_name;
2276 if ac_fn_c_try_compile "$LINENO"; then :
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 } # ac_fn_c_check_decl
2290 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2291 # ----------------------------------------------------
2292 # Tries to find if the field MEMBER exists in type AGGR, after including
2293 # INCLUDES, setting cache variable VAR accordingly.
2294 ac_fn_c_check_member ()
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2298 $as_echo_n "checking for $2.$3... " >&6; }
2299 if eval \${$4+:} false; then :
2300 $as_echo_n "(cached) " >&6
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2315 if ac_fn_c_try_compile "$LINENO"; then :
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2325 if (sizeof ac_aggr.$3)
2331 if ac_fn_c_try_compile "$LINENO"; then :
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345 } # ac_fn_c_check_member
2346 cat >config.log <<_ACEOF
2347 This file contains any messages produced by compilers while
2348 running configure, to aid debugging if configure makes a mistake.
2350 It was created by unbound $as_me 1.5.7, which was
2351 generated by GNU Autoconf 2.69. Invocation command line was
2363 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2364 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2365 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2366 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2367 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2370 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2372 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2373 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2374 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2375 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2376 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2377 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2378 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 $as_echo "PATH: $as_dir"
2403 # Keep a trace of the command line.
2404 # Strip out --no-create and --no-recursion so they do not pile up.
2405 # Strip out --silent because we don't want to record it for future runs.
2406 # Also quote any args containing shell meta-characters.
2407 # Make two passes to allow for proper duplicate-argument suppression.
2411 ac_must_keep_next=false
2417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2419 | -silent | --silent | --silen | --sile | --sil)
2422 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427 as_fn_append ac_configure_args1 " '$ac_arg'"
2428 if test $ac_must_keep_next = true; then
2429 ac_must_keep_next=false # Got value, back to normal.
2432 *=* | --config-cache | -C | -disable-* | --disable-* \
2433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2435 | -with-* | --with-* | -without-* | --without-* | --x)
2436 case "$ac_configure_args0 " in
2437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2440 -* ) ac_must_keep_next=true ;;
2443 as_fn_append ac_configure_args " '$ac_arg'"
2448 { ac_configure_args0=; unset ac_configure_args0;}
2449 { ac_configure_args1=; unset ac_configure_args1;}
2451 # When interrupted or exit'd, cleanup temporary files, and complete
2452 # config.log. We remove comments because anyway the quotes in there
2453 # would cause problems or look ugly.
2454 # WARNING: Use '\'' to represent an apostrophe within the trap.
2455 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2456 trap 'exit_status=$?
2457 # Save into config.log some information that might help in debugging.
2461 $as_echo "## ---------------- ##
2462 ## Cache variables. ##
2463 ## ---------------- ##"
2465 # The following way of writing the cache mishandles newlines in values,
2467 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2468 eval ac_val=\$$ac_var
2472 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2473 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2476 _ | IFS | as_nl) ;; #(
2477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2478 *) { eval $ac_var=; unset $ac_var;} ;;
2483 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2484 *${as_nl}ac_space=\ *)
2486 "s/'\''/'\''\\\\'\'''\''/g;
2487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2497 $as_echo "## ----------------- ##
2498 ## Output variables. ##
2499 ## ----------------- ##"
2501 for ac_var in $ac_subst_vars
2503 eval ac_val=\$$ac_var
2505 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 $as_echo "$ac_var='\''$ac_val'\''"
2511 if test -n "$ac_subst_files"; then
2512 $as_echo "## ------------------- ##
2513 ## File substitutions. ##
2514 ## ------------------- ##"
2516 for ac_var in $ac_subst_files
2518 eval ac_val=\$$ac_var
2520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 $as_echo "$ac_var='\''$ac_val'\''"
2527 if test -s confdefs.h; then
2528 $as_echo "## ----------- ##
2535 test "$ac_signal" != 0 &&
2536 $as_echo "$as_me: caught signal $ac_signal"
2537 $as_echo "$as_me: exit $exit_status"
2539 rm -f core *.core core.conftest.* &&
2540 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2543 for ac_signal in 1 2 13 15; do
2544 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2549 rm -f -r conftest* confdefs.h
2551 $as_echo "/* confdefs.h */" > confdefs.h
2553 # Predefined preprocessor variables.
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_NAME "$PACKAGE_NAME"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_STRING "$PACKAGE_STRING"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_URL "$PACKAGE_URL"
2580 # Let the site file select an alternate cache file if it wants to.
2581 # Prefer an explicitly selected file to automatically selected ones.
2584 if test -n "$CONFIG_SITE"; then
2585 # We do not want a PATH search for config.site.
2586 case $CONFIG_SITE in #((
2587 -*) ac_site_file1=./$CONFIG_SITE;;
2588 */*) ac_site_file1=$CONFIG_SITE;;
2589 *) ac_site_file1=./$CONFIG_SITE;;
2591 elif test "x$prefix" != xNONE; then
2592 ac_site_file1=$prefix/share/config.site
2593 ac_site_file2=$prefix/etc/config.site
2595 ac_site_file1=$ac_default_prefix/share/config.site
2596 ac_site_file2=$ac_default_prefix/etc/config.site
2598 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2600 test "x$ac_site_file" = xNONE && continue
2601 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2603 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2604 sed 's/^/| /' "$ac_site_file" >&5
2606 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608 as_fn_error $? "failed to load site script $ac_site_file
2609 See \`config.log' for more details" "$LINENO" 5; }
2613 if test -r "$cache_file"; then
2614 # Some versions of bash will fail to source /dev/null (special files
2615 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2616 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2618 $as_echo "$as_me: loading cache $cache_file" >&6;}
2620 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2621 *) . "./$cache_file";;
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2626 $as_echo "$as_me: creating cache $cache_file" >&6;}
2630 # Check that the precious variables saved in the cache have kept the same
2632 ac_cache_corrupted=false
2633 for ac_var in $ac_precious_vars; do
2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2635 eval ac_new_set=\$ac_env_${ac_var}_set
2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2637 eval ac_new_val=\$ac_env_${ac_var}_value
2638 case $ac_old_set,$ac_new_set in
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2641 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2642 ac_cache_corrupted=: ;;
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2645 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2646 ac_cache_corrupted=: ;;
2649 if test "x$ac_old_val" != "x$ac_new_val"; then
2650 # differences in whitespace do not lead to failure.
2651 ac_old_val_w=`echo x $ac_old_val`
2652 ac_new_val_w=`echo x $ac_new_val`
2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2655 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2656 ac_cache_corrupted=:
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2659 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2660 eval $ac_var=\$ac_old_val
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2663 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2665 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2668 # Pass precious variables to config.status.
2669 if test "$ac_new_set" = set; then
2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2672 *) ac_arg=$ac_var=$ac_new_val ;;
2674 case " $ac_configure_args " in
2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680 if $ac_cache_corrupted; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2684 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2685 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2687 ## -------------------- ##
2688 ## Main body of script. ##
2689 ## -------------------- ##
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 UNBOUND_VERSION_MAJOR=1
2700 UNBOUND_VERSION_MINOR=5
2702 UNBOUND_VERSION_MICRO=7
2705 LIBUNBOUND_CURRENT=5
2706 LIBUNBOUND_REVISION=10
2715 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2720 # 1.4.0-snapshots had 1:5:0
2721 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2735 # and 1.4.13p1 and 1.4.13.p2
2737 # 1.4.15 had 3:0:1 # adds ub_version()
2742 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2745 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2754 # Current -- the number of the binary API that we're implementing
2755 # Revision -- which iteration of the implementation of the binary
2756 # API are we supplying?
2757 # Age -- How many previous binary API versions do we also
2760 # If we release a new version that does not change the binary API,
2761 # increment Revision.
2763 # If we release a new version that changes the binary API, but does
2764 # not break programs compiled against the old binary API, increment
2765 # Current and Age. Set Revision to 0, since this is the first
2766 # implementation of the new API.
2768 # Otherwise, we're changing the binary API and breaking bakward
2769 # compatibility with old binaries. Increment Current. Set Age to 0,
2770 # since we're backward compatible with no previous APIs. Set Revision
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CC"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2813 $as_echo "$CC" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2821 if test -z "$ac_cv_prog_CC"; then
2823 # Extract the first word of "gcc", so it can be a program name with args.
2824 set dummy gcc; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2859 if test "x$ac_ct_CC" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866 ac_tool_warned=yes ;;
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}cc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CC="${ac_tool_prefix}cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2915 if test -z "$CC"; then
2916 # Extract the first word of "cc", so it can be a program name with args.
2917 set dummy cc; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935 ac_prog_rejected=yes
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 if test $ac_prog_rejected = yes; then
2947 # We found a bogon in the path, so make sure we never use it.
2948 set dummy $ac_cv_prog_CC
2950 if test $# != 0; then
2951 # We chose a different compiler from the bogus one.
2952 # However, it has the same basename, so the bogon will be chosen
2953 # first if we set CC to just the basename; use the full file name.
2955 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$CC" && break
3015 if test -z "$CC"; then
3017 for ac_prog in cl.exe
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_CC="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3049 $as_echo "$ac_ct_CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3056 test -n "$ac_ct_CC" && break
3059 if test "x$ac_ct_CC" = x; then
3062 case $cross_compiling:$ac_tool_warned in
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3075 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "no acceptable C compiler found in \$PATH
3078 See \`config.log' for more details" "$LINENO" 5; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3084 for ac_option in --version -v -V -qversion; do
3085 { { ac_try="$ac_compiler $ac_option >&5"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 if test -s conftest.err; then
3096 ... rest of stderr output deleted ...
3097 10q' conftest.err >conftest.er1
3098 cat conftest.er1 >&5
3100 rm -f conftest.er1 conftest.err
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 ac_clean_files_save=$ac_clean_files
3117 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118 # Try to create an executable without -o first, disregard a.out.
3119 # It will help us diagnose broken compilers, and finding out an intuition
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122 $as_echo_n "checking whether the C compiler works... " >&6; }
3123 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125 # The possible output files:
3126 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3129 for ac_file in $ac_files
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 if { { ac_try="$ac_link_default"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_link_default") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; then :
3149 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3150 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3151 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3152 # so that the user can short-circuit this test for compilers unknown to
3154 for ac_file in $ac_files ''
3156 test -f "$ac_file" || continue
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3161 # We found the default executable, but exeext='' is most
3165 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 # We set ac_cv_exeext here because the later test for it is not
3170 # safe: cross compilers may not add the suffix if given an `-o'
3171 # argument, so we may need to know it at that point already.
3172 # Even if this section looks crufty: it has the advantage of
3179 test "$ac_cv_exeext" = no && ac_cv_exeext=
3184 if test -z "$ac_file"; then :
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 $as_echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error 77 "C compiler cannot create executables
3193 See \`config.log' for more details" "$LINENO" 5; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201 $as_echo "$ac_file" >&6; }
3202 ac_exeext=$ac_cv_exeext
3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3205 ac_clean_files=$ac_clean_files_save
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3207 $as_echo_n "checking for suffix of executables... " >&6; }
3208 if { { ac_try="$ac_link"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_link") 2>&5
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest conftest$ac_cv_exeext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3240 $as_echo "$ac_cv_exeext" >&6; }
3242 rm -f conftest.$ac_ext
3243 EXEEXT=$ac_cv_exeext
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3251 FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3258 ac_clean_files="$ac_clean_files conftest.out"
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3288 if test "$cross_compiling" = maybe; then
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details" "$LINENO" 5; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3302 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303 ac_clean_files=$ac_clean_files_save
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3305 $as_echo_n "checking for suffix of object files... " >&6; }
3306 if ${ac_cv_objext+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3320 rm -f conftest.o conftest.obj
3321 if { { ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compile") 2>&5
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3341 $as_echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of object files: cannot compile
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3352 $as_echo "$ac_cv_objext" >&6; }
3353 OBJEXT=$ac_cv_objext
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3356 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3357 if ${ac_cv_c_compiler_gnu+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3374 if ac_fn_c_try_compile "$LINENO"; then :
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if ${ac_cv_prog_cc_g+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_c_werror_flag=$ac_save_c_werror_flag
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3454 $as_echo "$ac_cv_prog_cc_g" >&6; }
3455 if test "$ac_test_CFLAGS" = set; then
3456 CFLAGS=$ac_save_CFLAGS
3457 elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3464 if test "$GCC" = yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3472 if ${ac_cv_prog_cc_c89+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 ac_cv_prog_cc_c89=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3483 struct buf { int x; };
3484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485 static char *e (p, i)
3491 static char *f (char * (*g) (char **, int), char **p, ...)
3496 s = g (p, va_arg (v,int));
3501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3502 function prototypes and stuff, but not '\xHH' hex character constants.
3503 These don't provoke an error unfortunately, instead are silently treated
3504 as 'x'. The following induces an error, until -std is added to get
3505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3506 array size at least. It's necessary to write '\x00'==0 to get something
3507 that's true only with -std. */
3508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511 inside strings and character constants. */
3513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515 int test (int i, double x);
3516 struct s1 {int (*f) (int a);};
3517 struct s2 {int (*f) (double a);};
3518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_cv_prog_cc_c89=$ac_arg
3536 rm -f core conftest.err conftest.$ac_objext
3537 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 rm -f conftest.$ac_ext
3544 case "x$ac_cv_prog_cc_c89" in
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3547 $as_echo "none needed" >&6; } ;;
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550 $as_echo "unsupported" >&6; } ;;
3552 CC="$CC $ac_cv_prog_cc_c89"
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3573 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3574 # On Suns, sometimes $CPP names a directory.
3575 if test -n "$CPP" && test -d "$CPP"; then
3578 if test -z "$CPP"; then
3579 if ${ac_cv_prog_CPP+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 # Double quotes because CPP needs to be expanded
3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586 for ac_c_preproc_warn_flag in '' yes
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3597 # include <limits.h>
3599 # include <assert.h>
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3606 # Broken: fails on valid input.
3609 rm -f conftest.err conftest.i conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3618 # Broken: success on invalid input.
3621 # Passes both tests.
3625 rm -f conftest.err conftest.i conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.i conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then :
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3643 $as_echo "$CPP" >&6; }
3645 for ac_c_preproc_warn_flag in '' yes
3647 # Use a header file that comes with gcc, so configuring glibc
3648 # with a fresh cross-compiler works.
3649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650 # <limits.h> exists even on freestanding compilers.
3651 # On the NeXT, cc -E runs the code through the compiler's parser,
3652 # not just through cpp. "Syntax error" is here to catch this case.
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3656 # include <limits.h>
3658 # include <assert.h>
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3665 # Broken: fails on valid input.
3668 rm -f conftest.err conftest.i conftest.$ac_ext
3670 # OK, works on sane cases. Now check whether nonexistent headers
3671 # can be detected and how.
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674 #include <ac_nonexistent.h>
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3677 # Broken: success on invalid input.
3680 # Passes both tests.
3684 rm -f conftest.err conftest.i conftest.$ac_ext
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.i conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then :
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details" "$LINENO" 5; }
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3707 if ${ac_cv_path_GREP+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3721 as_fn_executable_p "$ac_path_GREP" || continue
3722 # Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724 case `"$ac_path_GREP" --version 2>&1` in
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3729 $as_echo_n 0123456789 >"conftest.in"
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'GREP' >> "conftest.nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 $ac_path_GREP_found && break 3
3755 if test -z "$ac_cv_path_GREP"; then
3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3759 ac_cv_path_GREP=$GREP
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764 $as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769 $as_echo_n "checking for egrep... " >&6; }
3770 if ${ac_cv_path_EGREP+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3787 as_fn_executable_p "$ac_path_EGREP" || continue
3788 # Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790 case `"$ac_path_EGREP" --version 2>&1` in
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3795 $as_echo_n 0123456789 >"conftest.in"
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo 'EGREP' >> "conftest.nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3816 $ac_path_EGREP_found && break 3
3821 if test -z "$ac_cv_path_EGREP"; then
3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3825 ac_cv_path_EGREP=$EGREP
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831 $as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836 $as_echo_n "checking for ANSI C header files... " >&6; }
3837 if ${ac_cv_header_stdc+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_header_stdc=yes
3858 ac_cv_header_stdc=no
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "memchr" >/dev/null 2>&1; then :
3873 ac_cv_header_stdc=no
3879 if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "free" >/dev/null 2>&1; then :
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898 if test "$cross_compiling" = yes; then :
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 #if ((' ' & 0x0FF) == 0x020)
3906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909 # define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3928 if ac_fn_c_try_run "$LINENO"; then :
3931 ac_cv_header_stdc=no
3933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934 conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940 $as_echo "$ac_cv_header_stdc" >&6; }
3941 if test $ac_cv_header_stdc = yes; then
3943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949 inttypes.h stdint.h unistd.h
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3955 cat >>confdefs.h <<_ACEOF
3956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3965 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3966 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3973 if test "$MINIX" = yes; then
3975 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3978 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3981 $as_echo "#define _MINIX 1" >>confdefs.h
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3987 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3988 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3994 # define __EXTENSIONS__ 1
3995 $ac_includes_default
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_safe_to_define___extensions__=yes
4007 ac_cv_safe_to_define___extensions__=no
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4012 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4013 test $ac_cv_safe_to_define___extensions__ = yes &&
4014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4026 if test "$ac_cv_header_minix_config_h" = "yes"; then
4028 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4039 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4041 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4042 else on_mingw="no"; fi
4046 # Determine configuration file
4047 # the eval is to evaluate shell expansion twice
4048 if test $on_mingw = "no"; then
4049 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4051 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4054 # Check whether --with-conf_file was given.
4055 if test "${with_conf_file+set}" = set; then :
4056 withval=$with_conf_file; ub_conf_file="$withval"
4060 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4063 cat >>confdefs.h <<_ACEOF
4064 #define CONFIGFILE "$hdr_config"
4067 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4068 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4069 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4070 X"$ub_conf_file" : 'X\(//\)$' \| \
4071 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4072 $as_echo X"$ub_conf_file" |
4073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4092 # Determine run, chroot directory and pidfile locations
4094 # Check whether --with-run-dir was given.
4095 if test "${with_run_dir+set}" = set; then :
4096 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4098 if test $on_mingw = no; then
4099 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4107 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4110 cat >>confdefs.h <<_ACEOF
4111 #define RUN_DIR "$hdr_run"
4116 # Check whether --with-chroot-dir was given.
4117 if test "${with_chroot_dir+set}" = set; then :
4118 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4120 if test $on_mingw = no; then
4121 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4123 UNBOUND_CHROOT_DIR=""
4129 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4132 cat >>confdefs.h <<_ACEOF
4133 #define CHROOT_DIR "$hdr_chroot"
4138 # Check whether --with-share-dir was given.
4139 if test "${with_share_dir+set}" = set; then :
4140 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4142 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4147 cat >>confdefs.h <<_ACEOF
4148 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4153 # Check whether --with-pidfile was given.
4154 if test "${with_pidfile+set}" = set; then :
4155 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4157 if test $on_mingw = no; then
4158 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4166 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4169 cat >>confdefs.h <<_ACEOF
4170 #define PIDFILE "$hdr_pid"
4175 # Check whether --with-rootkey-file was given.
4176 if test "${with_rootkey_file+set}" = set; then :
4177 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4179 if test $on_mingw = no; then
4180 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4182 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4188 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4191 cat >>confdefs.h <<_ACEOF
4192 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4197 # Check whether --with-rootcert-file was given.
4198 if test "${with_rootcert_file+set}" = set; then :
4199 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4201 if test $on_mingw = no; then
4202 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4204 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4210 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4213 cat >>confdefs.h <<_ACEOF
4214 #define ROOT_CERT_FILE "$hdr_rpem"
4219 # Check whether --with-username was given.
4220 if test "${with_username+set}" = set; then :
4221 withval=$with_username; UNBOUND_USERNAME="$withval"
4223 UNBOUND_USERNAME="unbound"
4228 cat >>confdefs.h <<_ACEOF
4229 #define UB_USERNAME "$UNBOUND_USERNAME"
4234 $as_echo "#define WINVER 0x0502" >>confdefs.h
4236 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/' `
4239 cat >>confdefs.h <<_ACEOF
4240 #define RSRC_PACKAGE_VERSION $wnvs
4244 # Checks for typedefs, structures, and compiler characteristics.
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4246 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4247 if ${ac_cv_c_const+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4258 /* Ultrix mips cc rejects this sort of thing. */
4259 typedef int charset[2];
4260 const charset cs = { 0, 0 };
4261 /* SunOS 4.1.1 cc rejects this. */
4262 char const *const *pcpcc;
4264 /* NEC SVR4.0.2 mips cc rejects this. */
4265 struct point {int x, y;};
4266 static struct point const zero = {0,0};
4267 /* AIX XL C 1.02.0.0 rejects this.
4268 It does not let you subtract one const X* pointer from another in
4269 an arm of an if-expression whose if-part is not a constant
4271 const char *g = "string";
4272 pcpcc = &g + (g ? g-g : 0);
4273 /* HPUX 7.0 cc rejects these. */
4275 ppc = (char**) pcpcc;
4276 pcpcc = (char const *const *) ppc;
4277 { /* SCO 3.2v4 cc rejects this sort of thing. */
4280 char const *s = 0 ? (char *) 0 : (char const *) 0;
4285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4287 const int *foo = &x[0];
4290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4291 typedef const int *iptr;
4295 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4297 struct s { int j; const int *ap[3]; } bx;
4298 struct s *b = &bx; b->j = 5;
4300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4304 return !cs[0] && !zero.x;
4311 if ac_fn_c_try_compile "$LINENO"; then :
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4319 $as_echo "$ac_cv_c_const" >&6; }
4320 if test $ac_cv_c_const = no; then
4322 $as_echo "#define const /**/" >>confdefs.h
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 # allow user to override the -g -O2 flags.
4333 if test "x$CFLAGS" = "x" ; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4337 $as_echo_n "checking whether $CC supports -g... " >&6; }
4338 cache=`echo g | sed 'y%.=/+-%___p_%'`
4339 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4340 $as_echo_n "(cached) " >&6
4343 echo 'void f(void){}' >conftest.c
4344 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4345 eval "cv_prog_cc_flag_$cache=yes"
4347 eval "cv_prog_cc_flag_$cache=no"
4349 rm -f conftest conftest.o conftest.c
4353 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4368 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4369 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4370 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4371 $as_echo_n "(cached) " >&6
4374 echo 'void f(void){}' >conftest.c
4375 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4376 eval "cv_prog_cc_flag_$cache=yes"
4378 eval "cv_prog_cc_flag_$cache=no"
4380 rm -f conftest conftest.o conftest.c
4384 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4386 $as_echo "yes" >&6; }
4388 CFLAGS="$CFLAGS -O2"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 if test -n "$ac_tool_prefix"; then
4403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_CC+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CC"; then
4411 ac_cv_prog_CC="$CC" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433 $as_echo "$CC" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4441 if test -z "$ac_cv_prog_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444 set dummy gcc; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 ac_cv_prog_ac_ct_CC="gcc"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4471 if test -n "$ac_ct_CC"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473 $as_echo "$ac_ct_CC" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4479 if test "x$ac_ct_CC" = x; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4494 if test -z "$CC"; then
4495 if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4497 set dummy ${ac_tool_prefix}cc; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_CC+:} false; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$CC"; then
4504 ac_cv_prog_CC="$CC" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_CC="${ac_tool_prefix}cc"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 if test -n "$CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4526 $as_echo "$CC" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4535 if test -z "$CC"; then
4536 # Extract the first word of "cc", so it can be a program name with args.
4537 set dummy cc; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_prog_CC+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$CC"; then
4544 ac_cv_prog_CC="$CC" # Let the user override the test.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4555 ac_prog_rejected=yes
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test $ac_prog_rejected = yes; then
4567 # We found a bogon in the path, so make sure we never use it.
4568 set dummy $ac_cv_prog_CC
4570 if test $# != 0; then
4571 # We chose a different compiler from the bogus one.
4572 # However, it has the same basename, so the bogon will be chosen
4573 # first if we set CC to just the basename; use the full file name.
4575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4581 if test -n "$CC"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4583 $as_echo "$CC" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$CC"; then
4592 if test -n "$ac_tool_prefix"; then
4593 for ac_prog in cl.exe
4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_CC+:} false; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC="$CC" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 if test -n "$CC"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4625 $as_echo "$CC" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4632 test -n "$CC" && break
4635 if test -z "$CC"; then
4637 for ac_prog in cl.exe
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$ac_ct_CC"; then
4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_ac_ct_CC="$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667 if test -n "$ac_ct_CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4669 $as_echo "$ac_ct_CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$ac_ct_CC" && break
4679 if test "x$ac_ct_CC" = x; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4695 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "no acceptable C compiler found in \$PATH
4698 See \`config.log' for more details" "$LINENO" 5; }
4700 # Provide some information about the compiler.
4701 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4704 for ac_option in --version -v -V -qversion; do
4705 { { ac_try="$ac_compiler $ac_option >&5"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4714 if test -s conftest.err; then
4716 ... rest of stderr output deleted ...
4717 10q' conftest.err >conftest.er1
4718 cat conftest.er1 >&5
4720 rm -f conftest.er1 conftest.err
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4726 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4727 if ${ac_cv_c_compiler_gnu+:} false; then :
4728 $as_echo_n "(cached) " >&6
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4744 if ac_fn_c_try_compile "$LINENO"; then :
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4755 if test $ac_compiler_gnu = yes; then
4760 ac_test_CFLAGS=${CFLAGS+set}
4761 ac_save_CFLAGS=$CFLAGS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4764 if ${ac_cv_prog_cc_g+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 ac_save_c_werror_flag=$ac_c_werror_flag
4768 ac_c_werror_flag=yes
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4782 if ac_fn_c_try_compile "$LINENO"; then :
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_c_werror_flag=$ac_save_c_werror_flag
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4824 $as_echo "$ac_cv_prog_cc_g" >&6; }
4825 if test "$ac_test_CFLAGS" = set; then
4826 CFLAGS=$ac_save_CFLAGS
4827 elif test $ac_cv_prog_cc_g = yes; then
4828 if test "$GCC" = yes; then
4834 if test "$GCC" = yes; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4842 if ${ac_cv_prog_cc_c89+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 ac_cv_prog_cc_c89=no
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4853 struct buf { int x; };
4854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4855 static char *e (p, i)
4861 static char *f (char * (*g) (char **, int), char **p, ...)
4866 s = g (p, va_arg (v,int));
4871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4872 function prototypes and stuff, but not '\xHH' hex character constants.
4873 These don't provoke an error unfortunately, instead are silently treated
4874 as 'x'. The following induces an error, until -std is added to get
4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4876 array size at least. It's necessary to write '\x00'==0 to get something
4877 that's true only with -std. */
4878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4881 inside strings and character constants. */
4883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4885 int test (int i, double x);
4886 struct s1 {int (*f) (int a);};
4887 struct s2 {int (*f) (double a);};
4888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904 ac_cv_prog_cc_c89=$ac_arg
4906 rm -f core conftest.err conftest.$ac_objext
4907 test "x$ac_cv_prog_cc_c89" != "xno" && break
4909 rm -f conftest.$ac_ext
4914 case "x$ac_cv_prog_cc_c89" in
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4917 $as_echo "none needed" >&6; } ;;
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4920 $as_echo "unsupported" >&6; } ;;
4922 CC="$CC $ac_cv_prog_cc_c89"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4926 if test "x$ac_cv_prog_cc_c89" != xno; then :
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4938 $as_echo_n "checking $CC dependency flag... " >&6; }
4939 echo 'void f(){}' >conftest.c
4940 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4943 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4946 DEPFLAG="-MM" # dunno do something
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4950 $as_echo "$DEPFLAG" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4958 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4959 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4960 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4961 $as_echo_n "(cached) " >&6
4964 echo 'void f(void){}' >conftest.c
4965 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4966 eval "cv_prog_cc_flag_$cache=yes"
4968 eval "cv_prog_cc_flag_$cache=no"
4970 rm -f conftest conftest.o conftest.c
4974 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4976 $as_echo "yes" >&6; }
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4989 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4990 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4991 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4992 $as_echo_n "(cached) " >&6
4995 echo 'void f(void){}' >conftest.c
4996 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4997 eval "cv_prog_cc_flag_$cache=yes"
4999 eval "cv_prog_cc_flag_$cache=no"
5001 rm -f conftest conftest.o conftest.c
5005 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5009 ERRFLAG="$ERRFLAG -Wall"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5014 ERRFLAG="$ERRFLAG -errfmt"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5022 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5023 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5024 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5025 $as_echo_n "(cached) " >&6
5028 echo 'void f(void){}' >conftest.c
5029 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5030 eval "cv_prog_cc_flag_$cache=yes"
5032 eval "cv_prog_cc_flag_$cache=no"
5034 rm -f conftest conftest.o conftest.c
5038 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5040 $as_echo "yes" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5053 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5054 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5055 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5056 $as_echo_n "(cached) " >&6
5059 echo 'void f(void){}' >conftest.c
5060 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5061 eval "cv_prog_cc_flag_$cache=yes"
5063 eval "cv_prog_cc_flag_$cache=no"
5065 rm -f conftest conftest.o conftest.c
5069 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5082 for ac_header in getopt.h time.h
5084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5087 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5088 cat >>confdefs.h <<_ACEOF
5089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5101 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5102 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5103 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5104 $as_echo_n "(cached) " >&6
5108 #include "confdefs.h"
5111 #include <sys/time.h>
5117 #ifdef HAVE_GETOPT_H
5128 const char* str = NULL;
5130 msg.msg_control = 0;
5131 t = ctime_r(&time, buf);
5134 a = getopt(2, opts, "a");
5136 str = gai_strerror(0);
5137 if(str && t && tv.tv_usec && msg.msg_control)
5142 echo 'void f(){}' >>conftest.c
5143 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5144 eval "cv_prog_cc_flag_needed_$cache=no"
5147 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_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
5148 eval "cv_prog_cc_flag_needed_$cache=yes"
5150 eval "cv_prog_cc_flag_needed_$cache=fail"
5151 #echo 'Test with flag fails too!'
5153 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5154 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5159 rm -f conftest conftest.c conftest.o
5163 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5165 $as_echo "yes" >&6; }
5167 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5169 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 #echo 'Test with flag is no!'
5174 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5175 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5181 $as_echo "failed" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5192 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5193 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5194 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5195 $as_echo_n "(cached) " >&6
5199 #include "confdefs.h"
5202 #include <sys/time.h>
5208 #ifdef HAVE_GETOPT_H
5219 const char* str = NULL;
5221 msg.msg_control = 0;
5222 t = ctime_r(&time, buf);
5225 a = getopt(2, opts, "a");
5227 str = gai_strerror(0);
5228 if(str && t && tv.tv_usec && msg.msg_control)
5233 echo 'void f(){}' >>conftest.c
5234 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5235 eval "cv_prog_cc_flag_needed_$cache=no"
5238 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5239 eval "cv_prog_cc_flag_needed_$cache=yes"
5241 eval "cv_prog_cc_flag_needed_$cache=fail"
5242 #echo 'Test with flag fails too!'
5244 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5245 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5250 rm -f conftest conftest.c conftest.o
5254 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256 $as_echo "yes" >&6; }
5258 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5260 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 #echo 'Test with flag is no!'
5265 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5266 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5272 $as_echo "failed" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5283 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5284 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5285 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5286 $as_echo_n "(cached) " >&6
5290 #include <stdbool.h>
5297 echo 'void f(){}' >>conftest.c
5298 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5299 eval "cv_prog_cc_flag_needed_$cache=no"
5302 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5303 eval "cv_prog_cc_flag_needed_$cache=yes"
5305 eval "cv_prog_cc_flag_needed_$cache=fail"
5306 #echo 'Test with flag fails too!'
5308 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5309 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5314 rm -f conftest conftest.c conftest.o
5318 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5322 CFLAGS="$CFLAGS $C99FLAG"
5324 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 #echo 'Test with flag is no!'
5329 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5330 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5336 $as_echo "failed" >&6; }
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5347 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5349 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5350 $as_echo_n "(cached) " >&6
5362 echo 'void f(){}' >>conftest.c
5363 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5364 eval "cv_prog_cc_flag_needed_$cache=no"
5367 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5368 eval "cv_prog_cc_flag_needed_$cache=yes"
5370 eval "cv_prog_cc_flag_needed_$cache=fail"
5371 #echo 'Test with flag fails too!'
5373 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5374 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5379 rm -f conftest conftest.c conftest.o
5383 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5387 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5389 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 #echo 'Test with flag is no!'
5394 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5395 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5401 $as_echo "failed" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5412 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5414 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5415 $as_echo_n "(cached) " >&6
5419 #include <netinet/in.h>
5422 struct in6_pktinfo inf;
5423 int a = (int)sizeof(inf);
5427 echo 'void f(){}' >>conftest.c
5428 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5429 eval "cv_prog_cc_flag_needed_$cache=no"
5432 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5433 eval "cv_prog_cc_flag_needed_$cache=yes"
5435 eval "cv_prog_cc_flag_needed_$cache=fail"
5436 #echo 'Test with flag fails too!'
5438 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5439 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5444 rm -f conftest conftest.c conftest.o
5448 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5452 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5454 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 #echo 'Test with flag is no!'
5459 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5460 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5466 $as_echo "failed" >&6; }
5473 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5474 # is not available at all. -D_FRSRESGID is to make this check unique.
5475 # otherwise we would get the previous cached result.
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5480 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5481 cache=_D_GNU_SOURCE__D_FRSRESGID
5482 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5483 $as_echo_n "(cached) " >&6
5490 int a = setresgid(0,0,0);
5491 a = setresuid(0,0,0);
5495 echo 'void f(){}' >>conftest.c
5496 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5497 eval "cv_prog_cc_flag_needed_$cache=no"
5500 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5501 eval "cv_prog_cc_flag_needed_$cache=yes"
5503 eval "cv_prog_cc_flag_needed_$cache=fail"
5504 #echo 'Test with flag fails too!'
5506 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5507 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5512 rm -f conftest conftest.c conftest.o
5516 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5518 $as_echo "yes" >&6; }
5520 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5522 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 #echo 'Test with flag is no!'
5527 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5528 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5534 $as_echo "failed" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5545 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5546 cache=_D_POSIX_C_SOURCE_200112
5547 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5548 $as_echo_n "(cached) " >&6
5552 #include "confdefs.h"
5563 const char* str = NULL;
5564 t = ctime_r(&time, buf);
5565 str = gai_strerror(0);
5571 echo 'void f(){}' >>conftest.c
5572 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5573 eval "cv_prog_cc_flag_needed_$cache=no"
5576 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5577 eval "cv_prog_cc_flag_needed_$cache=yes"
5579 eval "cv_prog_cc_flag_needed_$cache=fail"
5580 #echo 'Test with flag fails too!'
5582 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5583 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5588 rm -f conftest conftest.c conftest.o
5592 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5594 $as_echo "yes" >&6; }
5596 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5598 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 #echo 'Test with flag is no!'
5603 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5604 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5610 $as_echo "failed" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5621 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5622 cache=_D__EXTENSIONS__
5623 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5624 $as_echo_n "(cached) " >&6
5628 #include "confdefs.h"
5631 #include <sys/time.h>
5636 #ifdef HAVE_GETOPT_H
5646 a = getopt(2, opts, "a");
5653 echo 'void f(){}' >>conftest.c
5654 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5655 eval "cv_prog_cc_flag_needed_$cache=no"
5658 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5659 eval "cv_prog_cc_flag_needed_$cache=yes"
5661 eval "cv_prog_cc_flag_needed_$cache=fail"
5662 #echo 'Test with flag fails too!'
5664 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5665 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5670 rm -f conftest conftest.c conftest.o
5674 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5678 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5680 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 #echo 'Test with flag is no!'
5685 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5686 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5692 $as_echo "failed" >&6; }
5701 # debug mode flags warnings
5702 # Check whether --enable-checking was given.
5703 if test "${enable_checking+set}" = set; then :
5704 enableval=$enable_checking;
5707 # Check whether --enable-debug was given.
5708 if test "${enable_debug+set}" = set; then :
5709 enableval=$enable_debug;
5712 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5713 else debug_enabled="$enable_checking"; fi
5715 case "$debug_enabled" in
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5720 $as_echo_n "checking whether $CC supports -W... " >&6; }
5721 cache=`echo W | sed 'y%.=/+-%___p_%'`
5722 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5723 $as_echo_n "(cached) " >&6
5726 echo 'void f(void){}' >conftest.c
5727 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5728 eval "cv_prog_cc_flag_$cache=yes"
5730 eval "cv_prog_cc_flag_$cache=no"
5732 rm -f conftest conftest.o conftest.c
5736 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5751 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5752 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5753 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5754 $as_echo_n "(cached) " >&6
5757 echo 'void f(void){}' >conftest.c
5758 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5759 eval "cv_prog_cc_flag_$cache=yes"
5761 eval "cv_prog_cc_flag_$cache=no"
5763 rm -f conftest conftest.o conftest.c
5767 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 $as_echo "yes" >&6; }
5771 CFLAGS="$CFLAGS -Wall"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5782 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5783 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5784 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5785 $as_echo_n "(cached) " >&6
5788 echo 'void f(void){}' >conftest.c
5789 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5790 eval "cv_prog_cc_flag_$cache=yes"
5792 eval "cv_prog_cc_flag_$cache=no"
5794 rm -f conftest conftest.o conftest.c
5798 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800 $as_echo "yes" >&6; }
5802 CFLAGS="$CFLAGS -Wextra"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5813 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5814 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5815 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5816 $as_echo_n "(cached) " >&6
5819 echo 'void f(void){}' >conftest.c
5820 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5821 eval "cv_prog_cc_flag_$cache=yes"
5823 eval "cv_prog_cc_flag_$cache=no"
5825 rm -f conftest conftest.o conftest.c
5829 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5833 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5842 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5850 # Check whether --enable-flto was given.
5851 if test "${enable_flto+set}" = set; then :
5852 enableval=$enable_flto;
5855 if test "x$enable_flto" != "xno"; then :
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5858 $as_echo_n "checking if $CC supports -flto... " >&6; }
5860 CFLAGS="$CFLAGS -flto"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5872 if ac_fn_c_try_link "$LINENO"; then :
5874 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5880 $as_echo "yes" >&6; }
5882 rm -f conftest conftest.c conftest.o
5885 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5894 # Check whether --enable-pie was given.
5895 if test "${enable_pie+set}" = set; then :
5896 enableval=$enable_pie;
5899 if test "x$enable_pie" = "xyes"; then :
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5902 $as_echo_n "checking if $CC supports PIE... " >&6; }
5903 BAKLDFLAGS="$LDFLAGS"
5905 LDFLAGS="$LDFLAGS -pie"
5906 CFLAGS="$CFLAGS -fPIE"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5918 if ac_fn_c_try_link "$LINENO"; then :
5920 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5921 LDFLAGS="$BAKLDFLAGS"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5926 $as_echo "yes" >&6; }
5928 rm -f conftest conftest.c conftest.o
5931 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5934 rm -f core conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5940 # Check whether --enable-relro_now was given.
5941 if test "${enable_relro_now+set}" = set; then :
5942 enableval=$enable_relro_now;
5945 if test "x$enable_relro_now" = "xyes"; then :
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5948 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5949 BAKLDFLAGS="$LDFLAGS"
5950 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5962 if ac_fn_c_try_link "$LINENO"; then :
5964 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5965 LDFLAGS="$BAKLDFLAGS"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970 $as_echo "yes" >&6; }
5972 rm -f conftest conftest.c conftest.o
5975 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5978 rm -f core conftest.err conftest.$ac_objext \
5979 conftest$ac_exeext conftest.$ac_ext
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5985 $as_echo_n "checking for inline... " >&6; }
5986 if ${ac_cv_c_inline+:} false; then :
5987 $as_echo_n "(cached) " >&6
5990 for ac_kw in inline __inline__ __inline; do
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5995 static $ac_kw foo_t static_foo () {return 0; }
5996 $ac_kw foo_t foo () {return 0; }
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 ac_cv_c_inline=$ac_kw
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 test "$ac_cv_c_inline" != no && break
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6009 $as_echo "$ac_cv_c_inline" >&6; }
6011 case $ac_cv_c_inline in
6014 case $ac_cv_c_inline in
6016 *) ac_val=$ac_cv_c_inline;;
6018 cat >>confdefs.h <<_ACEOF
6020 #define inline $ac_val
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6028 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6029 if ${ac_cv_c_format_attribute+:} false; then :
6030 $as_echo_n "(cached) " >&6
6032 ac_cv_c_format_attribute=no
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6036 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6037 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 ac_cv_c_format_attribute="yes"
6052 ac_cv_c_format_attribute="no"
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6060 $as_echo "$ac_cv_c_format_attribute" >&6; }
6061 if test $ac_cv_c_format_attribute = yes; then
6063 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6069 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6070 if ${ac_cv_c_unused_attribute+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 ac_cv_c_unused_attribute=no
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 void f (char *u __attribute__((unused)));
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 ac_cv_c_unused_attribute="yes"
6092 ac_cv_c_unused_attribute="no"
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6102 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6103 if test $ac_cv_c_unused_attribute = yes; then
6105 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6110 if test "$srcdir" != "."; then
6111 CPPFLAGS="$CPPFLAGS -I$srcdir"
6116 for ac_prog in flex lex
6118 # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_LEX+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$LEX"; then
6126 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_LEX="$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 if test -n "$LEX"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6148 $as_echo "$LEX" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6155 test -n "$LEX" && break
6157 test -n "$LEX" || LEX=":"
6159 if test "x$LEX" != "x:"; then
6160 cat >conftest.l <<_ACEOF
6166 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6167 yyless ((input () != 0)); }
6168 f { unput (yytext[0]); }
6169 . { BEGIN INITIAL; }
6171 #ifdef YYTEXT_POINTER
6172 extern char *yytext;
6177 return ! yylex () + ! yywrap ();
6180 { { ac_try="$LEX conftest.l"
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6186 $as_echo "$ac_try_echo"; } >&5
6187 (eval "$LEX conftest.l") 2>&5
6189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190 test $ac_status = 0; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6192 $as_echo_n "checking lex output file root... " >&6; }
6193 if ${ac_cv_prog_lex_root+:} false; then :
6194 $as_echo_n "(cached) " >&6
6197 if test -f lex.yy.c; then
6198 ac_cv_prog_lex_root=lex.yy
6199 elif test -f lexyy.c; then
6200 ac_cv_prog_lex_root=lexyy
6202 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6206 $as_echo "$ac_cv_prog_lex_root" >&6; }
6207 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6209 if test -z "${LEXLIB+set}"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6211 $as_echo_n "checking lex library... " >&6; }
6212 if ${ac_cv_lib_lex+:} false; then :
6213 $as_echo_n "(cached) " >&6
6217 ac_cv_lib_lex='none needed'
6218 for ac_lib in '' -lfl -ll; do
6219 LIBS="$ac_lib $ac_save_LIBS"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 `cat $LEX_OUTPUT_ROOT.c`
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_lib_lex=$ac_lib
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229 test "$ac_cv_lib_lex" != 'none needed' && break
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6235 $as_echo "$ac_cv_lib_lex" >&6; }
6236 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6241 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6242 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 # POSIX says lex can declare yytext either as a pointer or an array; the
6246 # default is implementation-dependent. Figure out which it is, since
6247 # not all implementations provide the %pointer and %array declarations.
6248 ac_cv_prog_lex_yytext_pointer=no
6250 LIBS="$LEXLIB $ac_save_LIBS"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6254 #define YYTEXT_POINTER 1
6255 `cat $LEX_OUTPUT_ROOT.c`
6257 if ac_fn_c_try_link "$LINENO"; then :
6258 ac_cv_prog_lex_yytext_pointer=yes
6260 rm -f core conftest.err conftest.$ac_objext \
6261 conftest$ac_exeext conftest.$ac_ext
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6266 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6267 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6269 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6272 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6277 $as_echo_n "checking for yylex_destroy... " >&6; }
6278 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6280 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283 $as_echo "yes" >&6; }
6284 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }; fi
6287 for ac_prog in 'bison -y' byacc
6289 # Extract the first word of "$ac_prog", so it can be a program name with args.
6290 set dummy $ac_prog; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_YACC+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$YACC"; then
6297 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_YACC="$ac_prog"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 YACC=$ac_cv_prog_YACC
6317 if test -n "$YACC"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6319 $as_echo "$YACC" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6326 test -n "$YACC" && break
6328 test -n "$YACC" || YACC="yacc"
6330 # Extract the first word of "doxygen", so it can be a program name with args.
6331 set dummy doxygen; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_doxygen+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 if test -n "$doxygen"; then
6338 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_doxygen="doxygen"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 doxygen=$ac_cv_prog_doxygen
6358 if test -n "$doxygen"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6360 $as_echo "$doxygen" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$STRIP"; then
6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 STRIP=$ac_cv_prog_STRIP
6396 if test -n "$STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398 $as_echo "$STRIP" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_STRIP"; then
6408 # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438 $as_echo "$ac_ct_STRIP" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_STRIP" = x; then
6447 case $cross_compiling:$ac_tool_warned in
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6456 STRIP="$ac_cv_prog_STRIP"
6460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6461 if test -f "$ac_dir/install-sh"; then
6463 ac_install_sh="$ac_aux_dir/install-sh -c"
6465 elif test -f "$ac_dir/install.sh"; then
6467 ac_install_sh="$ac_aux_dir/install.sh -c"
6469 elif test -f "$ac_dir/shtool"; then
6471 ac_install_sh="$ac_aux_dir/shtool install -c"
6475 if test -z "$ac_aux_dir"; then
6476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6479 # These three variables are undocumented and unsupported,
6480 # and are intended to be withdrawn in a future Autoconf release.
6481 # They can cause serious problems if a builder's source tree is in a directory
6482 # whose full name contains unusual characters.
6483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6488 # Make sure we can run config.sub.
6489 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6493 $as_echo_n "checking build system type... " >&6; }
6494 if ${ac_cv_build+:} false; then :
6495 $as_echo_n "(cached) " >&6
6497 ac_build_alias=$build_alias
6498 test "x$ac_build_alias" = x &&
6499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6500 test "x$ac_build_alias" = x &&
6501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6502 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6507 $as_echo "$ac_cv_build" >&6; }
6508 case $ac_cv_build in
6510 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6513 ac_save_IFS=$IFS; IFS='-'
6519 # Remember, the first character of IFS is used to create $*,
6520 # except with old shells:
6523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6527 $as_echo_n "checking host system type... " >&6; }
6528 if ${ac_cv_host+:} false; then :
6529 $as_echo_n "(cached) " >&6
6531 if test "x$host_alias" = x; then
6532 ac_cv_host=$ac_cv_build
6534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6540 $as_echo "$ac_cv_host" >&6; }
6543 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6546 ac_save_IFS=$IFS; IFS='-'
6552 # Remember, the first character of IFS is used to create $*,
6553 # except with old shells:
6556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6560 # skip these tests, we do not need them.
6569 # always use ./libtool unless override from commandline (libtool=mylibtool)
6570 if test -z "$libtool"; then
6574 # avoid libtool max commandline length test on systems that fork slowly.
6576 if echo "$host_os" | grep "sunos4" >/dev/null; then
6577 lt_cv_sys_max_cmd_len=32750;
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}ar; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_path_AR+:} false; then :
6585 $as_echo_n "(cached) " >&6
6589 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 if test -n "$AR"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6613 $as_echo "$AR" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6621 if test -z "$ac_cv_path_AR"; then
6623 # Extract the first word of "ar", so it can be a program name with args.
6624 set dummy ar; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_path_ac_pt_AR+:} false; then :
6628 $as_echo_n "(cached) " >&6
6632 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 ac_pt_AR=$ac_cv_path_ac_pt_AR
6654 if test -n "$ac_pt_AR"; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6656 $as_echo "$ac_pt_AR" >&6; }
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 $as_echo "no" >&6; }
6662 if test "x$ac_pt_AR" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6677 if test $AR = false; then
6678 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6684 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6689 macro_version='2.4.2'
6690 macro_revision='1.3337'
6704 ltmain="$ac_aux_dir/ltmain.sh"
6706 # Backslashify metacharacters that are still active within
6707 # double-quoted strings.
6708 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6710 # Same as above, but do not quote variable references.
6711 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6713 # Sed substitution to delay expansion of an escaped shell variable in a
6714 # double_quote_subst'ed string.
6715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6717 # Sed substitution to delay expansion of an escaped single quote.
6718 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6720 # Sed substitution to avoid accidental globbing in evaled expressions
6721 no_glob_subst='s/\*/\\\*/g'
6723 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6728 $as_echo_n "checking how to print strings... " >&6; }
6729 # Test print first, because it will be a builtin if present.
6730 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6736 # Use this function as a fallback that always works.
6737 func_fallback_echo ()
6739 eval 'cat <<_LTECHO_EOF
6743 ECHO='func_fallback_echo'
6746 # func_echo_all arg...
6747 # Invoke $ECHO with all args, space-separated.
6754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6755 $as_echo "printf" >&6; } ;;
6756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6757 $as_echo "print -r" >&6; } ;;
6758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6759 $as_echo "cat" >&6; } ;;
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6776 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6777 if ${ac_cv_path_SED+:} false; then :
6778 $as_echo_n "(cached) " >&6
6780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6781 for ac_i in 1 2 3 4 5 6 7; do
6782 ac_script="$ac_script$as_nl$ac_script"
6784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6785 { ac_script=; unset ac_script;}
6786 if test -z "$SED"; then
6787 ac_path_SED_found=false
6788 # Loop through the user's path and test for each of PROGNAME-LIST
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_prog in sed gsed; do
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6797 as_fn_executable_p "$ac_path_SED" || continue
6798 # Check for GNU ac_path_SED and select it if it is found.
6799 # Check for GNU $ac_path_SED
6800 case `"$ac_path_SED" --version 2>&1` in
6802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6805 $as_echo_n 0123456789 >"conftest.in"
6808 cat "conftest.in" "conftest.in" >"conftest.tmp"
6809 mv "conftest.tmp" "conftest.in"
6810 cp "conftest.in" "conftest.nl"
6811 $as_echo '' >> "conftest.nl"
6812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6814 as_fn_arith $ac_count + 1 && ac_count=$as_val
6815 if test $ac_count -gt ${ac_path_SED_max-0}; then
6816 # Best one so far, save it but keep looking for a better one
6817 ac_cv_path_SED="$ac_path_SED"
6818 ac_path_SED_max=$ac_count
6820 # 10*(2^10) chars as input seems more than enough
6821 test $ac_count -gt 10 && break
6823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6826 $ac_path_SED_found && break 3
6831 if test -z "$ac_cv_path_SED"; then
6832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6840 $as_echo "$ac_cv_path_SED" >&6; }
6841 SED="$ac_cv_path_SED"
6844 test -z "$SED" && SED=sed
6845 Xsed="$SED -e 1s/^X//"
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6858 $as_echo_n "checking for fgrep... " >&6; }
6859 if ${ac_cv_path_FGREP+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6863 then ac_cv_path_FGREP="$GREP -F"
6865 if test -z "$FGREP"; then
6866 ac_path_FGREP_found=false
6867 # Loop through the user's path and test for each of PROGNAME-LIST
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6872 test -z "$as_dir" && as_dir=.
6873 for ac_prog in fgrep; do
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6876 as_fn_executable_p "$ac_path_FGREP" || continue
6877 # Check for GNU ac_path_FGREP and select it if it is found.
6878 # Check for GNU $ac_path_FGREP
6879 case `"$ac_path_FGREP" --version 2>&1` in
6881 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6884 $as_echo_n 0123456789 >"conftest.in"
6887 cat "conftest.in" "conftest.in" >"conftest.tmp"
6888 mv "conftest.tmp" "conftest.in"
6889 cp "conftest.in" "conftest.nl"
6890 $as_echo 'FGREP' >> "conftest.nl"
6891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6893 as_fn_arith $ac_count + 1 && ac_count=$as_val
6894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6895 # Best one so far, save it but keep looking for a better one
6896 ac_cv_path_FGREP="$ac_path_FGREP"
6897 ac_path_FGREP_max=$ac_count
6899 # 10*(2^10) chars as input seems more than enough
6900 test $ac_count -gt 10 && break
6902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6905 $ac_path_FGREP_found && break 3
6910 if test -z "$ac_cv_path_FGREP"; then
6911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6914 ac_cv_path_FGREP=$FGREP
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6920 $as_echo "$ac_cv_path_FGREP" >&6; }
6921 FGREP="$ac_cv_path_FGREP"
6924 test -z "$GREP" && GREP=grep
6944 # Check whether --with-gnu-ld was given.
6945 if test "${with_gnu_ld+set}" = set; then :
6946 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6952 if test "$GCC" = yes; then
6953 # Check if gcc -print-prog-name=ld gives a path.
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6955 $as_echo_n "checking for ld used by $CC... " >&6; }
6958 # gcc leaves a trailing carriage return which upsets mingw
6959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6964 # Accept absolute paths.
6966 re_direlt='/[^/][^/]*/\.\./'
6967 # Canonicalize the pathname of ld
6968 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6969 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6970 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6972 test -z "$LD" && LD="$ac_prog"
6975 # If it fails, then pretend we aren't using GCC.
6979 # If it is relative, then search for the first ld in PATH.
6983 elif test "$with_gnu_ld" = yes; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6985 $as_echo_n "checking for GNU ld... " >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6988 $as_echo_n "checking for non-GNU ld... " >&6; }
6990 if ${lt_cv_path_LD+:} false; then :
6991 $as_echo_n "(cached) " >&6
6993 if test -z "$LD"; then
6994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6995 for ac_dir in $PATH; do
6997 test -z "$ac_dir" && ac_dir=.
6998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6999 lt_cv_path_LD="$ac_dir/$ac_prog"
7000 # Check to see if the program is GNU ld. I'd rather use --version,
7001 # but apparently some variants of GNU ld only accept -v.
7002 # Break only if it was the GNU/non-GNU ld that we prefer.
7003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7004 *GNU* | *'with BFD'*)
7005 test "$with_gnu_ld" != no && break
7008 test "$with_gnu_ld" != yes && break
7015 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7020 if test -n "$LD"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7022 $as_echo "$LD" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7027 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7030 if ${lt_cv_prog_gnu_ld+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7034 case `$LD -v 2>&1 </dev/null` in
7035 *GNU* | *'with BFD'*)
7036 lt_cv_prog_gnu_ld=yes
7039 lt_cv_prog_gnu_ld=no
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7044 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7045 with_gnu_ld=$lt_cv_prog_gnu_ld
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7056 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7057 if ${lt_cv_path_NM+:} false; then :
7058 $as_echo_n "(cached) " >&6
7060 if test -n "$NM"; then
7061 # Let the user override the test.
7064 lt_nm_to_check="${ac_tool_prefix}nm"
7065 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7066 lt_nm_to_check="$lt_nm_to_check nm"
7068 for lt_tmp_nm in $lt_nm_to_check; do
7069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7070 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7072 test -z "$ac_dir" && ac_dir=.
7073 tmp_nm="$ac_dir/$lt_tmp_nm"
7074 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7075 # Check to see if the nm accepts a BSD-compat flag.
7076 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7077 # nm: unknown option "B" ignored
7078 # Tru64's nm complains that /dev/null is an invalid object file
7079 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7080 */dev/null* | *'Invalid file or object type'*)
7081 lt_cv_path_NM="$tmp_nm -B"
7085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7087 lt_cv_path_NM="$tmp_nm -p"
7091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7092 continue # so that we can try to find one that supports BSD flags
7101 : ${lt_cv_path_NM=no}
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7105 $as_echo "$lt_cv_path_NM" >&6; }
7106 if test "$lt_cv_path_NM" != "no"; then
7109 # Didn't find any BSD compatible name lister, look for dumpbin.
7110 if test -n "$DUMPBIN"; then :
7111 # Let the user override the test.
7113 if test -n "$ac_tool_prefix"; then
7114 for ac_prog in dumpbin "link -dump"
7116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_DUMPBIN+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 if test -n "$DUMPBIN"; then
7124 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 DUMPBIN=$ac_cv_prog_DUMPBIN
7144 if test -n "$DUMPBIN"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7146 $as_echo "$DUMPBIN" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7153 test -n "$DUMPBIN" && break
7156 if test -z "$DUMPBIN"; then
7157 ac_ct_DUMPBIN=$DUMPBIN
7158 for ac_prog in dumpbin "link -dump"
7160 # Extract the first word of "$ac_prog", so it can be a program name with args.
7161 set dummy $ac_prog; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 if test -n "$ac_ct_DUMPBIN"; then
7168 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7188 if test -n "$ac_ct_DUMPBIN"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7190 $as_echo "$ac_ct_DUMPBIN" >&6; }
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7197 test -n "$ac_ct_DUMPBIN" && break
7200 if test "x$ac_ct_DUMPBIN" = x; then
7203 case $cross_compiling:$ac_tool_warned in
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7207 ac_tool_warned=yes ;;
7209 DUMPBIN=$ac_ct_DUMPBIN
7213 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7215 DUMPBIN="$DUMPBIN -symbols"
7223 if test "$DUMPBIN" != ":"; then
7227 test -z "$NM" && NM=nm
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7236 if ${lt_cv_nm_interface+:} false; then :
7237 $as_echo_n "(cached) " >&6
7239 lt_cv_nm_interface="BSD nm"
7240 echo "int some_variable = 0;" > conftest.$ac_ext
7241 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7242 (eval "$ac_compile" 2>conftest.err)
7243 cat conftest.err >&5
7244 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7246 cat conftest.err >&5
7247 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7248 cat conftest.out >&5
7249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7250 lt_cv_nm_interface="MS dumpbin"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7255 $as_echo "$lt_cv_nm_interface" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7258 $as_echo_n "checking whether ln -s works... " >&6; }
7260 if test "$LN_S" = "ln -s"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7262 $as_echo "yes" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7265 $as_echo "no, using $LN_S" >&6; }
7268 # find the maximum length of command line arguments
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7271 if ${lt_cv_sys_max_cmd_len+:} false; then :
7272 $as_echo_n "(cached) " >&6
7279 # On DJGPP, this test can blow up pretty badly due to problems in libc
7280 # (any single argument exceeding 2000 bytes causes a buffer overrun
7281 # during glob expansion). Even if it were fixed, the result of this
7282 # check would be larger than it should be.
7283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7287 # Under GNU Hurd, this test is not required because there is
7288 # no limit to the length of command line arguments.
7289 # Libtool will interpret -1 as no limit whatsoever
7290 lt_cv_sys_max_cmd_len=-1;
7293 cygwin* | mingw* | cegcc*)
7294 # On Win9x/ME, this test blows up -- it succeeds, but takes
7295 # about 5 minutes as the teststring grows exponentially.
7296 # Worse, since 9x/ME are not pre-emptively multitasking,
7297 # you end up with a "frozen" computer, even though with patience
7298 # the test eventually succeeds (with a max line length of 256k).
7299 # Instead, let's just punt: use the minimum linelength reported by
7300 # all of the supported platforms: 8192 (on NT/2K/XP).
7301 lt_cv_sys_max_cmd_len=8192;
7305 # On MiNT this can take a long time and run out of memory.
7306 lt_cv_sys_max_cmd_len=8192;
7310 # On AmigaOS with pdksh, this test takes hours, literally.
7311 # So we just punt and use a minimum line length of 8192.
7312 lt_cv_sys_max_cmd_len=8192;
7315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7316 # This has been around since 386BSD, at least. Likely further.
7317 if test -x /sbin/sysctl; then
7318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7319 elif test -x /usr/sbin/sysctl; then
7320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7324 # And add a safety zone
7325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7330 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7331 lt_cv_sys_max_cmd_len=196608
7335 # The test takes a long time on OS/2.
7336 lt_cv_sys_max_cmd_len=8192
7340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7342 # nice to cause kernel panics so lets avoid the loop below.
7343 # First set a reasonable default.
7344 lt_cv_sys_max_cmd_len=16384
7346 if test -x /sbin/sysconfig; then
7347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7353 lt_cv_sys_max_cmd_len=102400
7355 sysv5* | sco5v6* | sysv4.2uw2*)
7356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7357 if test -n "$kargmax"; then
7358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7360 lt_cv_sys_max_cmd_len=32768
7364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7365 if test -n "$lt_cv_sys_max_cmd_len"; then
7366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7369 # Make teststring a little bigger before we do anything with it.
7370 # a 1K string should be a reasonable start.
7371 for i in 1 2 3 4 5 6 7 8 ; do
7372 teststring=$teststring$teststring
7374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7375 # If test is not a shell built-in, we'll probably end up computing a
7376 # maximum length that is only half of the actual maximum length, but
7378 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7379 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7380 test $i != 17 # 1/2 MB should be enough
7383 teststring=$teststring$teststring
7385 # Only check the string length outside the loop.
7386 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7388 # Add a significant safety factor because C++ compilers can tack on
7389 # massive amounts of additional arguments before passing them to the
7390 # linker. It appears as though 1/2 is a usable value.
7391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7398 if test -n $lt_cv_sys_max_cmd_len ; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7403 $as_echo "none" >&6; }
7405 max_cmd_len=$lt_cv_sys_max_cmd_len
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7418 # Try some XSI features
7421 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7423 && eval 'test $(( 1 + 1 )) -eq 2 \
7424 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7427 $as_echo "$xsi_shell" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7435 && lt_shell_append=yes
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7437 $as_echo "$lt_shell_append" >&6; }
7440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7450 # test EBCDIC or ASCII
7451 case `echo X|tr X '\101'` in
7452 A) # ASCII based system
7453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7454 lt_SP2NL='tr \040 \012'
7455 lt_NL2SP='tr \015\012 \040\040'
7457 *) # EBCDIC based system
7458 lt_SP2NL='tr \100 \n'
7459 lt_NL2SP='tr \r\n \100\100'
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7472 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7473 if ${lt_cv_to_host_file_cmd+:} false; then :
7474 $as_echo_n "(cached) " >&6
7479 *-*-mingw* ) # actually msys
7480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7483 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7485 * ) # otherwise, assume *nix
7486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7492 *-*-mingw* ) # actually msys
7493 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7496 lt_cv_to_host_file_cmd=func_convert_file_noop
7498 * ) # otherwise, assume *nix
7499 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7503 * ) # unhandled hosts (and "normal" native builds)
7504 lt_cv_to_host_file_cmd=func_convert_file_noop
7510 to_host_file_cmd=$lt_cv_to_host_file_cmd
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7512 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7519 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7520 if ${lt_cv_to_tool_file_cmd+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 #assume ordinary cross tools, or native build.
7524 lt_cv_to_tool_file_cmd=func_convert_file_noop
7528 *-*-mingw* ) # actually msys
7529 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7539 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7546 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7547 if ${lt_cv_ld_reload_flag+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 lt_cv_ld_reload_flag='-r'
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7553 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7554 reload_flag=$lt_cv_ld_reload_flag
7555 case $reload_flag in
7557 *) reload_flag=" $reload_flag" ;;
7559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7561 cygwin* | mingw* | pw32* | cegcc*)
7562 if test "$GCC" != yes; then
7567 if test "$GCC" = yes; then
7568 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_OBJDUMP+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$OBJDUMP"; then
7592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 OBJDUMP=$ac_cv_prog_OBJDUMP
7612 if test -n "$OBJDUMP"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7614 $as_echo "$OBJDUMP" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_OBJDUMP"; then
7623 ac_ct_OBJDUMP=$OBJDUMP
7624 # Extract the first word of "objdump", so it can be a program name with args.
7625 set dummy objdump; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$ac_ct_OBJDUMP"; then
7632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7652 if test -n "$ac_ct_OBJDUMP"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7654 $as_echo "$ac_ct_OBJDUMP" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_OBJDUMP" = x; then
7663 case $cross_compiling:$ac_tool_warned in
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7669 OBJDUMP=$ac_ct_OBJDUMP
7672 OBJDUMP="$ac_cv_prog_OBJDUMP"
7675 test -z "$OBJDUMP" && OBJDUMP=objdump
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7686 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7687 if ${lt_cv_deplibs_check_method+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 lt_cv_file_magic_cmd='$MAGIC_CMD'
7691 lt_cv_file_magic_test_file=
7692 lt_cv_deplibs_check_method='unknown'
7693 # Need to set the preceding variable on all platforms that support
7694 # interlibrary dependencies.
7695 # 'none' -- dependencies not supported.
7696 # `unknown' -- same as none, but documents that we really don't know.
7697 # 'pass_all' -- all dependencies passed with no checks.
7698 # 'test_compile' -- check by making test program.
7699 # 'file_magic [[regex]]' -- check by looking for files in library path
7700 # which responds to the $file_magic_cmd with a given extended regex.
7701 # If you have `file' or equivalent on your system and you're not sure
7702 # whether `pass_all' will *always* work, you probably want this one.
7706 lt_cv_deplibs_check_method=pass_all
7710 lt_cv_deplibs_check_method=pass_all
7714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7715 lt_cv_file_magic_cmd='/usr/bin/file -L'
7716 lt_cv_file_magic_test_file=/shlib/libc.so
7720 # func_win32_libid is a shell function defined in ltmain.sh
7721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7722 lt_cv_file_magic_cmd='func_win32_libid'
7726 # Base MSYS/MinGW do not provide the 'file' command needed by
7727 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7728 # unless we find 'file', for example because we are cross-compiling.
7729 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7730 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7732 lt_cv_file_magic_cmd='func_win32_libid'
7734 # Keep this pattern in sync with the one in func_win32_libid.
7735 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7736 lt_cv_file_magic_cmd='$OBJDUMP -f'
7741 # use the weaker test based on 'objdump'. See mingw*.
7742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7743 lt_cv_file_magic_cmd='$OBJDUMP -f'
7746 darwin* | rhapsody*)
7747 lt_cv_deplibs_check_method=pass_all
7750 freebsd* | dragonfly*)
7751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7754 # Not sure whether the presence of OpenBSD here was a mistake.
7755 # Let's accept both of them until this is cleared up.
7756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7757 lt_cv_file_magic_cmd=/usr/bin/file
7758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7762 lt_cv_deplibs_check_method=pass_all
7767 lt_cv_deplibs_check_method=pass_all
7771 lt_cv_deplibs_check_method=pass_all
7774 hpux10.20* | hpux11*)
7775 lt_cv_file_magic_cmd=/usr/bin/file
7778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7782 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]'
7783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7797 irix5* | irix6* | nonstopux*)
7799 *-32|*"-32 ") libmagic=32-bit;;
7800 *-n32|*"-n32 ") libmagic=N32;;
7801 *-64|*"-64 ") libmagic=64-bit;;
7802 *) libmagic=never-match;;
7804 lt_cv_deplibs_check_method=pass_all
7807 # This must be glibc/ELF.
7808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7809 lt_cv_deplibs_check_method=pass_all
7813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7822 lt_cv_file_magic_cmd=/usr/bin/file
7823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7827 lt_cv_deplibs_check_method=pass_all
7831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7838 osf3* | osf4* | osf5*)
7839 lt_cv_deplibs_check_method=pass_all
7843 lt_cv_deplibs_check_method=pass_all
7847 lt_cv_deplibs_check_method=pass_all
7850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7851 lt_cv_deplibs_check_method=pass_all
7855 case $host_vendor in
7857 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]'
7858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7861 lt_cv_deplibs_check_method=pass_all
7864 lt_cv_file_magic_cmd='/bin/file'
7865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7868 lt_cv_file_magic_cmd='/bin/file'
7869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7870 lt_cv_file_magic_test_file=/lib/libc.so
7873 lt_cv_deplibs_check_method=pass_all
7876 lt_cv_deplibs_check_method=pass_all
7882 lt_cv_deplibs_check_method=pass_all
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7888 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7892 if test "$build" = "$host"; then
7895 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7898 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7904 file_magic_cmd=$lt_cv_file_magic_cmd
7905 deplibs_check_method=$lt_cv_deplibs_check_method
7906 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_DLLTOOL+:} false; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$DLLTOOL"; then
7938 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 DLLTOOL=$ac_cv_prog_DLLTOOL
7958 if test -n "$DLLTOOL"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7960 $as_echo "$DLLTOOL" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_DLLTOOL"; then
7969 ac_ct_DLLTOOL=$DLLTOOL
7970 # Extract the first word of "dlltool", so it can be a program name with args.
7971 set dummy dlltool; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$ac_ct_DLLTOOL"; then
7978 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7998 if test -n "$ac_ct_DLLTOOL"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8000 $as_echo "$ac_ct_DLLTOOL" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_DLLTOOL" = x; then
8009 case $cross_compiling:$ac_tool_warned in
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8015 DLLTOOL=$ac_ct_DLLTOOL
8018 DLLTOOL="$ac_cv_prog_DLLTOOL"
8021 test -z "$DLLTOOL" && DLLTOOL=dlltool
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8033 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8034 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8035 $as_echo_n "(cached) " >&6
8037 lt_cv_sharedlib_from_linklib_cmd='unknown'
8040 cygwin* | mingw* | pw32* | cegcc*)
8041 # two different shell functions defined in ltmain.sh
8042 # decide which to use based on capabilities of $DLLTOOL
8043 case `$DLLTOOL --help 2>&1` in
8044 *--identify-strict*)
8045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8053 # fallback: assume linklib IS sharedlib
8054 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8060 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8061 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8062 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8070 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_AR+:} false; then :
8078 $as_echo_n "(cached) " >&6
8080 if test -n "$AR"; then
8081 ac_cv_prog_AR="$AR" # Let the user override the test.
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 if test -n "$AR"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8103 $as_echo "$AR" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8110 test -n "$AR" && break
8113 if test -z "$AR"; then
8117 # Extract the first word of "$ac_prog", so it can be a program name with args.
8118 set dummy $ac_prog; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8122 $as_echo_n "(cached) " >&6
8124 if test -n "$ac_ct_AR"; then
8125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_ac_ct_AR="$ac_prog"
8135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8145 if test -n "$ac_ct_AR"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8147 $as_echo "$ac_ct_AR" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 $as_echo "no" >&6; }
8154 test -n "$ac_ct_AR" && break
8157 if test "x$ac_ct_AR" = x; then
8160 case $cross_compiling:$ac_tool_warned in
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8184 $as_echo_n "checking for archiver @FILE support... " >&6; }
8185 if ${lt_cv_ar_at_file+:} false; then :
8186 $as_echo_n "(cached) " >&6
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 echo conftest.$ac_objext > conftest.lst
8202 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8204 (eval $lt_ar_try) 2>&5
8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8207 test $ac_status = 0; }
8208 if test "$ac_status" -eq 0; then
8209 # Ensure the archiver fails upon bogus file names.
8210 rm -f conftest.$ac_objext libconftest.a
8211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8212 (eval $lt_ar_try) 2>&5
8214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8215 test $ac_status = 0; }
8216 if test "$ac_status" -ne 0; then
8220 rm -f conftest.* libconftest.a
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8227 $as_echo "$lt_cv_ar_at_file" >&6; }
8229 if test "x$lt_cv_ar_at_file" = xno; then
8232 archiver_list_spec=$lt_cv_ar_at_file
8241 if test -n "$ac_tool_prefix"; then
8242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8243 set dummy ${ac_tool_prefix}strip; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if ${ac_cv_prog_STRIP+:} false; then :
8247 $as_echo_n "(cached) " >&6
8249 if test -n "$STRIP"; then
8250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 STRIP=$ac_cv_prog_STRIP
8270 if test -n "$STRIP"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8272 $as_echo "$STRIP" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8280 if test -z "$ac_cv_prog_STRIP"; then
8282 # Extract the first word of "strip", so it can be a program name with args.
8283 set dummy strip; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$ac_ct_STRIP"; then
8290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_ac_ct_STRIP="strip"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8310 if test -n "$ac_ct_STRIP"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8312 $as_echo "$ac_ct_STRIP" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8318 if test "x$ac_ct_STRIP" = x; then
8321 case $cross_compiling:$ac_tool_warned in
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8325 ac_tool_warned=yes ;;
8330 STRIP="$ac_cv_prog_STRIP"
8333 test -z "$STRIP" && STRIP=:
8340 if test -n "$ac_tool_prefix"; then
8341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_prog_RANLIB+:} false; then :
8346 $as_echo_n "(cached) " >&6
8348 if test -n "$RANLIB"; then
8349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 RANLIB=$ac_cv_prog_RANLIB
8369 if test -n "$RANLIB"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8371 $as_echo "$RANLIB" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8379 if test -z "$ac_cv_prog_RANLIB"; then
8380 ac_ct_RANLIB=$RANLIB
8381 # Extract the first word of "ranlib", so it can be a program name with args.
8382 set dummy ranlib; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 if test -n "$ac_ct_RANLIB"; then
8389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_ac_ct_RANLIB="ranlib"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8409 if test -n "$ac_ct_RANLIB"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8411 $as_echo "$ac_ct_RANLIB" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8417 if test "x$ac_ct_RANLIB" = x; then
8420 case $cross_compiling:$ac_tool_warned in
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8424 ac_tool_warned=yes ;;
8426 RANLIB=$ac_ct_RANLIB
8429 RANLIB="$ac_cv_prog_RANLIB"
8432 test -z "$RANLIB" && RANLIB=:
8439 # Determine commands to create old-style static archives.
8440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8441 old_postinstall_cmds='chmod 644 $oldlib'
8442 old_postuninstall_cmds=
8444 if test -n "$RANLIB"; then
8447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8458 lock_old_archive_extraction=yes ;;
8460 lock_old_archive_extraction=no ;;
8483 for ac_prog in gawk mawk nawk awk
8485 # Extract the first word of "$ac_prog", so it can be a program name with args.
8486 set dummy $ac_prog; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_AWK+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 if test -n "$AWK"; then
8493 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_AWK="$ac_prog"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 if test -n "$AWK"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8515 $as_echo "$AWK" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8522 test -n "$AWK" && break
8543 # If no C compiler was specified, use CC.
8546 # If no C compiler flags were specified, use CFLAGS.
8547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8549 # Allow CC to be a program name with arguments.
8553 # Check for command to grab the raw symbol name followed by C symbol from nm.
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8555 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8556 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8557 $as_echo_n "(cached) " >&6
8560 # These are sane defaults that work on at least a few old systems.
8561 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8563 # Character class describing NM global symbol codes.
8564 symcode='[BCDEGRST]'
8566 # Regexp to match symbols that can be accessed directly from C.
8567 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8569 # Define system-specific variables.
8574 cygwin* | mingw* | pw32* | cegcc*)
8575 symcode='[ABCDGISTW]'
8578 if test "$host_cpu" = ia64; then
8579 symcode='[ABCDEGRST]'
8583 symcode='[BCDEGRST]'
8586 symcode='[BCDEGQRST]'
8597 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8605 # If we're using GNU nm, then use its standard symbol codes.
8606 case `$NM -V 2>&1` in
8607 *GNU* | *'with BFD'*)
8608 symcode='[ABCDGIRSTW]' ;;
8611 # Transform an extracted symbol line into a proper C declaration.
8612 # Some systems (esp. on ia64) link data and code symbols differently,
8613 # so use this general approach.
8614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8616 # Transform an extracted symbol line into symbol name and symbol address
8617 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8620 # Handle CRLF in mingw tool chain
8624 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8628 # Try without a prefix underscore, then with it.
8629 for ac_symprfx in "" "_"; do
8631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8632 symxfrm="\\1 $ac_symprfx\\2 \\2"
8634 # Write the raw and C identifiers.
8635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8636 # Fake it for dumpbin and say T for any non-static function
8637 # and D for any global variable.
8638 # Also find C++ and __fastcall symbols from MSVC++,
8639 # which start with @ or ?.
8640 lt_cv_sys_global_symbol_pipe="$AWK '"\
8641 " {last_section=section; section=\$ 3};"\
8642 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8643 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8644 " \$ 0!~/External *\|/{next};"\
8645 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8646 " {if(hide[section]) next};"\
8647 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8648 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8649 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8650 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8651 " ' prfx=^$ac_symprfx"
8653 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8655 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8657 # Check to see that the pipe works correctly.
8661 cat > conftest.$ac_ext <<_LT_EOF
8666 void nm_test_func(void);
8667 void nm_test_func(void){}
8671 int main(){nm_test_var='a';nm_test_func();return(0);}
8674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675 (eval $ac_compile) 2>&5
8677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678 test $ac_status = 0; }; then
8679 # Now try to grab the symbols.
8681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8682 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8685 test $ac_status = 0; } && test -s "$nlist"; then
8686 # Try sorting and uniquifying the output.
8687 if sort "$nlist" | uniq > "$nlist"T; then
8688 mv -f "$nlist"T "$nlist"
8693 # Make sure that we snagged all the symbols we need.
8694 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8695 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8696 cat <<_LT_EOF > conftest.$ac_ext
8697 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8698 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8699 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8700 relocations are performed -- see ld's documentation on pseudo-relocs. */
8701 # define LT_DLSYM_CONST
8702 #elif defined(__osf__)
8703 /* This system does not cope well with relocations in const data. */
8704 # define LT_DLSYM_CONST
8706 # define LT_DLSYM_CONST const
8714 # Now generate the symbol file.
8715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8717 cat <<_LT_EOF >> conftest.$ac_ext
8719 /* The mapping between symbol names and symbols. */
8720 LT_DLSYM_CONST struct {
8724 lt__PROGRAM__LTX_preloaded_symbols[] =
8726 { "@PROGRAM@", (void *) 0 },
8728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8729 cat <<\_LT_EOF >> conftest.$ac_ext
8733 /* This works around a problem in FreeBSD linker */
8734 #ifdef FREEBSD_WORKAROUND
8735 static const void *lt_preloaded_setup() {
8736 return lt__PROGRAM__LTX_preloaded_symbols;
8744 # Now try linking the two files.
8745 mv conftest.$ac_objext conftstm.$ac_objext
8746 lt_globsym_save_LIBS=$LIBS
8747 lt_globsym_save_CFLAGS=$CFLAGS
8748 LIBS="conftstm.$ac_objext"
8749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8751 (eval $ac_link) 2>&5
8753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8757 LIBS=$lt_globsym_save_LIBS
8758 CFLAGS=$lt_globsym_save_CFLAGS
8760 echo "cannot find nm_test_func in $nlist" >&5
8763 echo "cannot find nm_test_var in $nlist" >&5
8766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8769 echo "$progname: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 rm -rf conftest* conftst*
8774 # Do not use the global_symbol_pipe unless it works.
8775 if test "$pipe_works" = yes; then
8778 lt_cv_sys_global_symbol_pipe=
8784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8785 lt_cv_sys_global_symbol_to_cdecl=
8787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8789 $as_echo "failed" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8792 $as_echo "ok" >&6; }
8795 # Response file support.
8796 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8797 nm_file_list_spec='@'
8798 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8799 nm_file_list_spec='@'
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8829 $as_echo_n "checking for sysroot... " >&6; }
8831 # Check whether --with-sysroot was given.
8832 if test "${with_sysroot+set}" = set; then :
8833 withval=$with_sysroot;
8840 case ${with_sysroot} in #(
8842 if test "$GCC" = yes; then
8843 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8847 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8853 $as_echo "${with_sysroot}" >&6; }
8854 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8859 $as_echo "${lt_sysroot:-no}" >&6; }
8865 # Check whether --enable-libtool-lock was given.
8866 if test "${enable_libtool_lock+set}" = set; then :
8867 enableval=$enable_libtool_lock;
8870 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8872 # Some flags need to be propagated to the compiler or linker for good
8876 # Find out which ABI we are using.
8877 echo 'int i;' > conftest.$ac_ext
8878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8879 (eval $ac_compile) 2>&5
8881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8882 test $ac_status = 0; }; then
8883 case `/usr/bin/file conftest.$ac_objext` in
8895 # Find out which ABI we are using.
8896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8898 (eval $ac_compile) 2>&5
8900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8901 test $ac_status = 0; }; then
8902 if test "$lt_cv_prog_gnu_ld" = yes; then
8903 case `/usr/bin/file conftest.$ac_objext` in
8905 LD="${LD-ld} -melf32bsmip"
8908 LD="${LD-ld} -melf32bmipn32"
8911 LD="${LD-ld} -melf64bmip"
8915 case `/usr/bin/file conftest.$ac_objext` in
8931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8933 # Find out which ABI we are using.
8934 echo 'int i;' > conftest.$ac_ext
8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8936 (eval $ac_compile) 2>&5
8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; }; then
8940 case `/usr/bin/file conftest.o` in
8943 x86_64-*kfreebsd*-gnu)
8944 LD="${LD-ld} -m elf_i386_fbsd"
8947 LD="${LD-ld} -m elf_i386"
8949 powerpc64le-*linux*)
8950 LD="${LD-ld} -m elf32lppclinux"
8953 LD="${LD-ld} -m elf32ppclinux"
8956 LD="${LD-ld} -m elf_s390"
8959 LD="${LD-ld} -m elf32_sparc"
8965 x86_64-*kfreebsd*-gnu)
8966 LD="${LD-ld} -m elf_x86_64_fbsd"
8969 LD="${LD-ld} -m elf_x86_64"
8972 LD="${LD-ld} -m elf64lppc"
8975 LD="${LD-ld} -m elf64ppc"
8977 s390*-*linux*|s390*-*tpf*)
8978 LD="${LD-ld} -m elf64_s390"
8981 LD="${LD-ld} -m elf64_sparc"
8991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8992 SAVE_CFLAGS="$CFLAGS"
8993 CFLAGS="$CFLAGS -belf"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8995 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8996 if ${lt_cv_cc_needs_belf+:} false; then :
8997 $as_echo_n "(cached) " >&6
9000 ac_cpp='$CPP $CPPFLAGS'
9001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 lt_cv_cc_needs_belf=yes
9019 lt_cv_cc_needs_belf=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9024 ac_cpp='$CPP $CPPFLAGS'
9025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9031 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9034 CFLAGS="$SAVE_CFLAGS"
9038 # Find out which ABI we are using.
9039 echo 'int i;' > conftest.$ac_ext
9040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9041 (eval $ac_compile) 2>&5
9043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9044 test $ac_status = 0; }; then
9045 case `/usr/bin/file conftest.o` in
9047 case $lt_cv_prog_gnu_ld in
9051 LD="${LD-ld} -m elf_x86_64"
9054 LD="${LD-ld} -m elf64_sparc"
9057 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9058 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9075 need_locks="$enable_libtool_lock"
9077 if test -n "$ac_tool_prefix"; then
9078 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9079 set dummy ${ac_tool_prefix}mt; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 if test -n "$MANIFEST_TOOL"; then
9086 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9106 if test -n "$MANIFEST_TOOL"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9108 $as_echo "$MANIFEST_TOOL" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9116 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9117 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9118 # Extract the first word of "mt", so it can be a program name with args.
9119 set dummy mt; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 if test -n "$ac_ct_MANIFEST_TOOL"; then
9126 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9146 if test -n "$ac_ct_MANIFEST_TOOL"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9148 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9154 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9157 case $cross_compiling:$ac_tool_warned in
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9161 ac_tool_warned=yes ;;
9163 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9166 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9169 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9171 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9172 if ${lt_cv_path_mainfest_tool+:} false; then :
9173 $as_echo_n "(cached) " >&6
9175 lt_cv_path_mainfest_tool=no
9176 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9177 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9178 cat conftest.err >&5
9179 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9180 lt_cv_path_mainfest_tool=yes
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9185 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9186 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9196 rhapsody* | darwin*)
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 if test -n "$DSYMUTIL"; then
9206 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9215 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9226 if test -n "$DSYMUTIL"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9228 $as_echo "$DSYMUTIL" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9236 if test -z "$ac_cv_prog_DSYMUTIL"; then
9237 ac_ct_DSYMUTIL=$DSYMUTIL
9238 # Extract the first word of "dsymutil", so it can be a program name with args.
9239 set dummy dsymutil; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9243 $as_echo_n "(cached) " >&6
9245 if test -n "$ac_ct_DSYMUTIL"; then
9246 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 test -z "$as_dir" && as_dir=.
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9255 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9266 if test -n "$ac_ct_DSYMUTIL"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9268 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9274 if test "x$ac_ct_DSYMUTIL" = x; then
9277 case $cross_compiling:$ac_tool_warned in
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9283 DSYMUTIL=$ac_ct_DSYMUTIL
9286 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9289 if test -n "$ac_tool_prefix"; then
9290 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9291 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if ${ac_cv_prog_NMEDIT+:} false; then :
9295 $as_echo_n "(cached) " >&6
9297 if test -n "$NMEDIT"; then
9298 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9307 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9317 NMEDIT=$ac_cv_prog_NMEDIT
9318 if test -n "$NMEDIT"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9320 $as_echo "$NMEDIT" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9328 if test -z "$ac_cv_prog_NMEDIT"; then
9329 ac_ct_NMEDIT=$NMEDIT
9330 # Extract the first word of "nmedit", so it can be a program name with args.
9331 set dummy nmedit; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9335 $as_echo_n "(cached) " >&6
9337 if test -n "$ac_ct_NMEDIT"; then
9338 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 test -z "$as_dir" && as_dir=.
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9358 if test -n "$ac_ct_NMEDIT"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9360 $as_echo "$ac_ct_NMEDIT" >&6; }
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9366 if test "x$ac_ct_NMEDIT" = x; then
9369 case $cross_compiling:$ac_tool_warned in
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373 ac_tool_warned=yes ;;
9375 NMEDIT=$ac_ct_NMEDIT
9378 NMEDIT="$ac_cv_prog_NMEDIT"
9381 if test -n "$ac_tool_prefix"; then
9382 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9383 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_prog_LIPO+:} false; then :
9387 $as_echo_n "(cached) " >&6
9389 if test -n "$LIPO"; then
9390 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 LIPO=$ac_cv_prog_LIPO
9410 if test -n "$LIPO"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9412 $as_echo "$LIPO" >&6; }
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9420 if test -z "$ac_cv_prog_LIPO"; then
9422 # Extract the first word of "lipo", so it can be a program name with args.
9423 set dummy lipo; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9427 $as_echo_n "(cached) " >&6
9429 if test -n "$ac_ct_LIPO"; then
9430 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_ac_ct_LIPO="lipo"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9450 if test -n "$ac_ct_LIPO"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9452 $as_echo "$ac_ct_LIPO" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9458 if test "x$ac_ct_LIPO" = x; then
9461 case $cross_compiling:$ac_tool_warned in
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9465 ac_tool_warned=yes ;;
9470 LIPO="$ac_cv_prog_LIPO"
9473 if test -n "$ac_tool_prefix"; then
9474 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9475 set dummy ${ac_tool_prefix}otool; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if ${ac_cv_prog_OTOOL+:} false; then :
9479 $as_echo_n "(cached) " >&6
9481 if test -n "$OTOOL"; then
9482 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 OTOOL=$ac_cv_prog_OTOOL
9502 if test -n "$OTOOL"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9504 $as_echo "$OTOOL" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9512 if test -z "$ac_cv_prog_OTOOL"; then
9514 # Extract the first word of "otool", so it can be a program name with args.
9515 set dummy otool; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 if test -n "$ac_ct_OTOOL"; then
9522 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_ac_ct_OTOOL="otool"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9542 if test -n "$ac_ct_OTOOL"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9544 $as_echo "$ac_ct_OTOOL" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9550 if test "x$ac_ct_OTOOL" = x; then
9553 case $cross_compiling:$ac_tool_warned in
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9557 ac_tool_warned=yes ;;
9562 OTOOL="$ac_cv_prog_OTOOL"
9565 if test -n "$ac_tool_prefix"; then
9566 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9567 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_prog_OTOOL64+:} false; then :
9571 $as_echo_n "(cached) " >&6
9573 if test -n "$OTOOL64"; then
9574 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 OTOOL64=$ac_cv_prog_OTOOL64
9594 if test -n "$OTOOL64"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9596 $as_echo "$OTOOL64" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9604 if test -z "$ac_cv_prog_OTOOL64"; then
9605 ac_ct_OTOOL64=$OTOOL64
9606 # Extract the first word of "otool64", so it can be a program name with args.
9607 set dummy otool64; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9611 $as_echo_n "(cached) " >&6
9613 if test -n "$ac_ct_OTOOL64"; then
9614 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_prog_ac_ct_OTOOL64="otool64"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9634 if test -n "$ac_ct_OTOOL64"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9636 $as_echo "$ac_ct_OTOOL64" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9642 if test "x$ac_ct_OTOOL64" = x; then
9645 case $cross_compiling:$ac_tool_warned in
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9649 ac_tool_warned=yes ;;
9651 OTOOL64=$ac_ct_OTOOL64
9654 OTOOL64="$ac_cv_prog_OTOOL64"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9684 $as_echo_n "checking for -single_module linker flag... " >&6; }
9685 if ${lt_cv_apple_cc_single_mod+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 lt_cv_apple_cc_single_mod=no
9689 if test -z "${LT_MULTI_MODULE}"; then
9690 # By default we will add the -single_module flag. You can override
9691 # by either setting the environment variable LT_MULTI_MODULE
9692 # non-empty at configure time, or by adding -multi_module to the
9694 rm -rf libconftest.dylib*
9695 echo "int foo(void){return 1;}" > conftest.c
9696 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9697 -dynamiclib -Wl,-single_module conftest.c" >&5
9698 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9699 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9701 # If there is a non-empty error log, and "single_module"
9702 # appears in it, assume the flag caused a linker warning
9703 if test -s conftest.err && $GREP single_module conftest.err; then
9704 cat conftest.err >&5
9705 # Otherwise, if the output was created with a 0 exit code from
9706 # the compiler, it worked.
9707 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9708 lt_cv_apple_cc_single_mod=yes
9710 cat conftest.err >&5
9712 rm -rf libconftest.dylib*
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9717 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9720 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9721 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 lt_cv_ld_exported_symbols_list=no
9725 save_LDFLAGS=$LDFLAGS
9726 echo "_main" > conftest.sym
9727 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9739 if ac_fn_c_try_link "$LINENO"; then :
9740 lt_cv_ld_exported_symbols_list=yes
9742 lt_cv_ld_exported_symbols_list=no
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LDFLAGS="$save_LDFLAGS"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9750 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9753 $as_echo_n "checking for -force_load linker flag... " >&6; }
9754 if ${lt_cv_ld_force_load+:} false; then :
9755 $as_echo_n "(cached) " >&6
9757 lt_cv_ld_force_load=no
9758 cat > conftest.c << _LT_EOF
9759 int forced_loaded() { return 2;}
9761 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9762 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9763 echo "$AR cru libconftest.a conftest.o" >&5
9764 $AR cru libconftest.a conftest.o 2>&5
9765 echo "$RANLIB libconftest.a" >&5
9766 $RANLIB libconftest.a 2>&5
9767 cat > conftest.c << _LT_EOF
9768 int main() { return 0;}
9770 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9771 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9773 if test -s conftest.err && $GREP force_load conftest.err; then
9774 cat conftest.err >&5
9775 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9776 lt_cv_ld_force_load=yes
9778 cat conftest.err >&5
9780 rm -f conftest.err libconftest.a conftest conftest.c
9781 rm -rf conftest.dSYM
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9785 $as_echo "$lt_cv_ld_force_load" >&6; }
9787 rhapsody* | darwin1.[012])
9788 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9791 darwin*) # darwin 5.x on
9792 # if running on 10.5 or later, the deployment target defaults
9793 # to the OS version, if on x86, and 10.4, the deployment
9794 # target defaults to 10.4. Don't you love it?
9795 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9796 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9799 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9801 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9805 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9806 _lt_dar_single_mod='$single_module'
9808 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9809 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9811 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9813 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9814 _lt_dsymutil='~$DSYMUTIL $lib || :'
9821 for ac_header in dlfcn.h
9823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9825 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9826 cat >>confdefs.h <<_ACEOF
9827 #define HAVE_DLFCN_H 1
9850 # Check whether --enable-shared was given.
9851 if test "${enable_shared+set}" = set; then :
9852 enableval=$enable_shared; p=${PACKAGE-default}
9854 yes) enable_shared=yes ;;
9855 no) enable_shared=no ;;
9858 # Look at the argument we got. We use all the common list separators.
9859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9860 for pkg in $enableval; do
9862 if test "X$pkg" = "X$p"; then
9881 # Check whether --enable-static was given.
9882 if test "${enable_static+set}" = set; then :
9883 enableval=$enable_static; p=${PACKAGE-default}
9885 yes) enable_static=yes ;;
9886 no) enable_static=no ;;
9889 # Look at the argument we got. We use all the common list separators.
9890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9891 for pkg in $enableval; do
9893 if test "X$pkg" = "X$p"; then
9913 # Check whether --with-pic was given.
9914 if test "${with_pic+set}" = set; then :
9915 withval=$with_pic; lt_p=${PACKAGE-default}
9917 yes|no) pic_mode=$withval ;;
9920 # Look at the argument we got. We use all the common list separators.
9921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9922 for lt_pkg in $withval; do
9924 if test "X$lt_pkg" = "X$lt_p"; then
9936 test -z "$pic_mode" && pic_mode=default
9944 # Check whether --enable-fast-install was given.
9945 if test "${enable_fast_install+set}" = set; then :
9946 enableval=$enable_fast_install; p=${PACKAGE-default}
9948 yes) enable_fast_install=yes ;;
9949 no) enable_fast_install=no ;;
9951 enable_fast_install=no
9952 # Look at the argument we got. We use all the common list separators.
9953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9954 for pkg in $enableval; do
9956 if test "X$pkg" = "X$p"; then
9957 enable_fast_install=yes
9964 enable_fast_install=yes
9977 # This can be used to rebuild libtool when needed
9978 LIBTOOL_DEPS="$ltmain"
9980 # Always use our own libtool.
9981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10012 test -z "$LN_S" && LN_S="ln -s"
10027 if test -n "${ZSH_VERSION+set}" ; then
10028 setopt NO_GLOB_SUBST
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10032 $as_echo_n "checking for objdir... " >&6; }
10033 if ${lt_cv_objdir+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 rm -f .libs 2>/dev/null
10037 mkdir .libs 2>/dev/null
10038 if test -d .libs; then
10041 # MS-DOS does not allow filenames that begin with a dot.
10044 rmdir .libs 2>/dev/null
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10047 $as_echo "$lt_cv_objdir" >&6; }
10048 objdir=$lt_cv_objdir
10054 cat >>confdefs.h <<_ACEOF
10055 #define LT_OBJDIR "$lt_cv_objdir/"
10063 # AIX sometimes has problems with the GCC collect2 program. For some
10064 # reason, if we set the COLLECT_NAMES environment variable, the problems
10065 # vanish in a puff of smoke.
10066 if test "X${COLLECT_NAMES+set}" != Xset; then
10068 export COLLECT_NAMES
10073 # Global variables:
10075 can_build_shared=yes
10077 # All known linkers require a `.a' archive for static linking (except MSVC,
10078 # which needs '.lib').
10081 with_gnu_ld="$lt_cv_prog_gnu_ld"
10084 old_CFLAGS="$CFLAGS"
10086 # Set sane defaults for various variables
10087 test -z "$CC" && CC=cc
10088 test -z "$LTCC" && LTCC=$CC
10089 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10090 test -z "$LD" && LD=ld
10091 test -z "$ac_objext" && ac_objext=o
10093 for cc_temp in $compiler""; do
10095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10101 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10104 # Only perform the check for file, if the check method requires it
10105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10106 case $deplibs_check_method in
10108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10110 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10111 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10112 $as_echo_n "(cached) " >&6
10116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10119 lt_save_MAGIC_CMD="$MAGIC_CMD"
10120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10122 for ac_dir in $ac_dummy; do
10124 test -z "$ac_dir" && ac_dir=.
10125 if test -f $ac_dir/${ac_tool_prefix}file; then
10126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10127 if test -n "$file_magic_test_file"; then
10128 case $deplibs_check_method in
10130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10133 $EGREP "$file_magic_regex" > /dev/null; then
10138 *** Warning: the command libtool uses to detect shared libraries,
10139 *** $file_magic_cmd, produces output that libtool cannot recognize.
10140 *** The result is that libtool may fail to recognize shared libraries
10141 *** as such. This will affect the creation of libtool libraries that
10142 *** depend on shared libraries, but programs linked with such libtool
10143 *** libraries will work regardless of this problem. Nevertheless, you
10144 *** may want to report the problem to your system manager and/or to
10145 *** bug-libtool@gnu.org
10155 MAGIC_CMD="$lt_save_MAGIC_CMD"
10160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10161 if test -n "$MAGIC_CMD"; then
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10163 $as_echo "$MAGIC_CMD" >&6; }
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166 $as_echo "no" >&6; }
10173 if test -z "$lt_cv_path_MAGIC_CMD"; then
10174 if test -n "$ac_tool_prefix"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10176 $as_echo_n "checking for file... " >&6; }
10177 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10178 $as_echo_n "(cached) " >&6
10182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10185 lt_save_MAGIC_CMD="$MAGIC_CMD"
10186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10187 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10188 for ac_dir in $ac_dummy; do
10190 test -z "$ac_dir" && ac_dir=.
10191 if test -f $ac_dir/file; then
10192 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10193 if test -n "$file_magic_test_file"; then
10194 case $deplibs_check_method in
10196 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10198 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10199 $EGREP "$file_magic_regex" > /dev/null; then
10204 *** Warning: the command libtool uses to detect shared libraries,
10205 *** $file_magic_cmd, produces output that libtool cannot recognize.
10206 *** The result is that libtool may fail to recognize shared libraries
10207 *** as such. This will affect the creation of libtool libraries that
10208 *** depend on shared libraries, but programs linked with such libtool
10209 *** libraries will work regardless of this problem. Nevertheless, you
10210 *** may want to report the problem to your system manager and/or to
10211 *** bug-libtool@gnu.org
10221 MAGIC_CMD="$lt_save_MAGIC_CMD"
10226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10227 if test -n "$MAGIC_CMD"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10229 $as_echo "$MAGIC_CMD" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10245 # Use C for the default configuration in the libtool script
10249 ac_cpp='$CPP $CPPFLAGS'
10250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10255 # Source file extension for C test sources.
10258 # Object file extension for compiled C test sources.
10262 # Code to be used in simple compile tests
10263 lt_simple_compile_test_code="int some_variable = 0;"
10265 # Code to be used in simple link tests
10266 lt_simple_link_test_code='int main(){return(0);}'
10274 # If no C compiler was specified, use CC.
10277 # If no C compiler flags were specified, use CFLAGS.
10278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10280 # Allow CC to be a program name with arguments.
10283 # Save the default compiler, since it gets overwritten when the other
10284 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10285 compiler_DEFAULT=$CC
10287 # save warnings/boilerplate of simple test code
10288 ac_outfile=conftest.$ac_objext
10289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10291 _lt_compiler_boilerplate=`cat conftest.err`
10294 ac_outfile=conftest.$ac_objext
10295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10297 _lt_linker_boilerplate=`cat conftest.err`
10301 if test -n "$compiler"; then
10303 lt_prog_compiler_no_builtin_flag=
10305 if test "$GCC" = yes; then
10306 case $cc_basename in
10308 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10310 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10314 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10315 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10316 $as_echo_n "(cached) " >&6
10318 lt_cv_prog_compiler_rtti_exceptions=no
10319 ac_outfile=conftest.$ac_objext
10320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10321 lt_compiler_flag="-fno-rtti -fno-exceptions"
10322 # Insert the option either (1) after the last *FLAGS variable, or
10323 # (2) before a word containing "conftest.", or (3) at the end.
10324 # Note that $ac_compile itself does not contain backslashes and begins
10325 # with a dollar sign (not a hyphen), so the echo should work correctly.
10326 # The option is referenced via a variable to avoid confusing sed.
10327 lt_compile=`echo "$ac_compile" | $SED \
10328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10330 -e 's:$: $lt_compiler_flag:'`
10331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10332 (eval "$lt_compile" 2>conftest.err)
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 if (exit $ac_status) && test -s "$ac_outfile"; then
10337 # The compiler can only warn and ignore the option if not recognized
10338 # So say no if there are warnings other than the usual output.
10339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10342 lt_cv_prog_compiler_rtti_exceptions=yes
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10349 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10351 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10352 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10364 lt_prog_compiler_wl=
10365 lt_prog_compiler_pic=
10366 lt_prog_compiler_static=
10369 if test "$GCC" = yes; then
10370 lt_prog_compiler_wl='-Wl,'
10371 lt_prog_compiler_static='-static'
10375 # All AIX code is PIC.
10376 if test "$host_cpu" = ia64; then
10377 # AIX 5 now supports IA64 processor
10378 lt_prog_compiler_static='-Bstatic'
10385 # see comment about AmigaOS4 .so support
10386 lt_prog_compiler_pic='-fPIC'
10389 # FIXME: we need at least 68020 code to build shared libraries, but
10390 # adding the `-m68020' flag to GCC prevents building anything better,
10392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10398 # PIC is the default for these OSes.
10401 mingw* | cygwin* | pw32* | os2* | cegcc*)
10402 # This hack is so that the source file can tell whether it is being
10403 # built for inclusion in a dll (and should export symbols for example).
10404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10405 # (--disable-auto-import) libraries
10406 lt_prog_compiler_pic='-DDLL_EXPORT'
10409 darwin* | rhapsody*)
10410 # PIC is the default on this platform
10411 # Common symbols not allowed in MH_DYLIB files
10412 lt_prog_compiler_pic='-fno-common'
10416 # PIC is the default for Haiku.
10417 # The "-static" flag exists, but is broken.
10418 lt_prog_compiler_static=
10422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10424 # sets the default TLS model and affects inlining.
10430 lt_prog_compiler_pic='-fPIC'
10436 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10437 # Instead, we relocate shared libraries at runtime.
10441 # Just because we use GCC doesn't mean we suddenly get shared libraries
10442 # on systems that don't support them.
10443 lt_prog_compiler_can_build_shared=no
10448 # QNX uses GNU C++, but need to define -shared option too, otherwise
10449 # it will coredump.
10450 lt_prog_compiler_pic='-fPIC -shared'
10454 if test -d /usr/nec; then
10455 lt_prog_compiler_pic=-Kconform_pic
10460 lt_prog_compiler_pic='-fPIC'
10464 case $cc_basename in
10465 nvcc*) # Cuda Compiler Driver 2.2
10466 lt_prog_compiler_wl='-Xlinker '
10467 if test -n "$lt_prog_compiler_pic"; then
10468 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10473 # PORTME Check for flag to pass linker flags through the system compiler.
10476 lt_prog_compiler_wl='-Wl,'
10477 if test "$host_cpu" = ia64; then
10478 # AIX 5 now supports IA64 processor
10479 lt_prog_compiler_static='-Bstatic'
10481 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10485 mingw* | cygwin* | pw32* | os2* | cegcc*)
10486 # This hack is so that the source file can tell whether it is being
10487 # built for inclusion in a dll (and should export symbols for example).
10488 lt_prog_compiler_pic='-DDLL_EXPORT'
10491 hpux9* | hpux10* | hpux11*)
10492 lt_prog_compiler_wl='-Wl,'
10493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10494 # not for PA HP-UX.
10500 lt_prog_compiler_pic='+Z'
10503 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10504 lt_prog_compiler_static='${wl}-a ${wl}archive'
10507 irix5* | irix6* | nonstopux*)
10508 lt_prog_compiler_wl='-Wl,'
10509 # PIC (with -KPIC) is the default.
10510 lt_prog_compiler_static='-non_shared'
10513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10514 case $cc_basename in
10515 # old Intel for x86_64 which still supported -KPIC.
10517 lt_prog_compiler_wl='-Wl,'
10518 lt_prog_compiler_pic='-KPIC'
10519 lt_prog_compiler_static='-static'
10521 # icc used to be incompatible with GCC.
10522 # ICC 10 doesn't accept -KPIC any more.
10524 lt_prog_compiler_wl='-Wl,'
10525 lt_prog_compiler_pic='-fPIC'
10526 lt_prog_compiler_static='-static'
10528 # Lahey Fortran 8.1.
10530 lt_prog_compiler_wl='-Wl,'
10531 lt_prog_compiler_pic='--shared'
10532 lt_prog_compiler_static='--static'
10535 # NAG Fortran compiler
10536 lt_prog_compiler_wl='-Wl,-Wl,,'
10537 lt_prog_compiler_pic='-PIC'
10538 lt_prog_compiler_static='-Bstatic'
10540 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10541 # Portland Group compilers (*not* the Pentium gcc compiler,
10542 # which looks to be a dead project)
10543 lt_prog_compiler_wl='-Wl,'
10544 lt_prog_compiler_pic='-fpic'
10545 lt_prog_compiler_static='-Bstatic'
10548 lt_prog_compiler_wl='-Wl,'
10549 # All Alpha code is PIC.
10550 lt_prog_compiler_static='-non_shared'
10552 xl* | bgxl* | bgf* | mpixl*)
10553 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_pic='-qpic'
10556 lt_prog_compiler_static='-qstaticlink'
10559 case `$CC -V 2>&1 | sed 5q` in
10560 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10561 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10562 lt_prog_compiler_pic='-KPIC'
10563 lt_prog_compiler_static='-Bstatic'
10564 lt_prog_compiler_wl=''
10566 *Sun\ F* | *Sun*Fortran*)
10567 lt_prog_compiler_pic='-KPIC'
10568 lt_prog_compiler_static='-Bstatic'
10569 lt_prog_compiler_wl='-Qoption ld '
10573 lt_prog_compiler_pic='-KPIC'
10574 lt_prog_compiler_static='-Bstatic'
10575 lt_prog_compiler_wl='-Wl,'
10577 *Intel*\ [CF]*Compiler*)
10578 lt_prog_compiler_wl='-Wl,'
10579 lt_prog_compiler_pic='-fPIC'
10580 lt_prog_compiler_static='-static'
10583 lt_prog_compiler_wl='-Wl,'
10584 lt_prog_compiler_pic='-fpic'
10585 lt_prog_compiler_static='-Bstatic'
10593 lt_prog_compiler_pic='-KPIC'
10594 lt_prog_compiler_static='-Bstatic'
10598 # QNX uses GNU C++, but need to define -shared option too, otherwise
10599 # it will coredump.
10600 lt_prog_compiler_pic='-fPIC -shared'
10603 osf3* | osf4* | osf5*)
10604 lt_prog_compiler_wl='-Wl,'
10605 # All OSF/1 code is PIC.
10606 lt_prog_compiler_static='-non_shared'
10610 lt_prog_compiler_static='-non_shared'
10614 lt_prog_compiler_pic='-KPIC'
10615 lt_prog_compiler_static='-Bstatic'
10616 case $cc_basename in
10617 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10618 lt_prog_compiler_wl='-Qoption ld ';;
10620 lt_prog_compiler_wl='-Wl,';;
10625 lt_prog_compiler_wl='-Qoption ld '
10626 lt_prog_compiler_pic='-PIC'
10627 lt_prog_compiler_static='-Bstatic'
10630 sysv4 | sysv4.2uw2* | sysv4.3*)
10631 lt_prog_compiler_wl='-Wl,'
10632 lt_prog_compiler_pic='-KPIC'
10633 lt_prog_compiler_static='-Bstatic'
10637 if test -d /usr/nec ;then
10638 lt_prog_compiler_pic='-Kconform_pic'
10639 lt_prog_compiler_static='-Bstatic'
10643 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10644 lt_prog_compiler_wl='-Wl,'
10645 lt_prog_compiler_pic='-KPIC'
10646 lt_prog_compiler_static='-Bstatic'
10650 lt_prog_compiler_wl='-Wl,'
10651 lt_prog_compiler_can_build_shared=no
10655 lt_prog_compiler_pic='-pic'
10656 lt_prog_compiler_static='-Bstatic'
10660 lt_prog_compiler_can_build_shared=no
10666 # For platforms which do not support PIC, -DPIC is meaningless:
10668 lt_prog_compiler_pic=
10671 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10676 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10677 if ${lt_cv_prog_compiler_pic+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10683 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10684 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10687 # Check to make sure the PIC flag actually works.
10689 if test -n "$lt_prog_compiler_pic"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10692 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10693 $as_echo_n "(cached) " >&6
10695 lt_cv_prog_compiler_pic_works=no
10696 ac_outfile=conftest.$ac_objext
10697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10699 # Insert the option either (1) after the last *FLAGS variable, or
10700 # (2) before a word containing "conftest.", or (3) at the end.
10701 # Note that $ac_compile itself does not contain backslashes and begins
10702 # with a dollar sign (not a hyphen), so the echo should work correctly.
10703 # The option is referenced via a variable to avoid confusing sed.
10704 lt_compile=`echo "$ac_compile" | $SED \
10705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10707 -e 's:$: $lt_compiler_flag:'`
10708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10709 (eval "$lt_compile" 2>conftest.err)
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 if (exit $ac_status) && test -s "$ac_outfile"; then
10714 # The compiler can only warn and ignore the option if not recognized
10715 # So say no if there are warnings other than the usual output.
10716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10719 lt_cv_prog_compiler_pic_works=yes
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10726 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10728 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10729 case $lt_prog_compiler_pic in
10731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10734 lt_prog_compiler_pic=
10735 lt_prog_compiler_can_build_shared=no
10751 # Check to make sure the static flag actually works.
10753 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10755 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10756 if ${lt_cv_prog_compiler_static_works+:} false; then :
10757 $as_echo_n "(cached) " >&6
10759 lt_cv_prog_compiler_static_works=no
10760 save_LDFLAGS="$LDFLAGS"
10761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10764 # The linker can only warn and ignore the option if not recognized
10765 # So say no if there are warnings
10766 if test -s conftest.err; then
10767 # Append any errors to the config.log.
10768 cat conftest.err 1>&5
10769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10771 if diff conftest.exp conftest.er2 >/dev/null; then
10772 lt_cv_prog_compiler_static_works=yes
10775 lt_cv_prog_compiler_static_works=yes
10779 LDFLAGS="$save_LDFLAGS"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10783 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10785 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10788 lt_prog_compiler_static=
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10799 if ${lt_cv_prog_compiler_c_o+:} false; then :
10800 $as_echo_n "(cached) " >&6
10802 lt_cv_prog_compiler_c_o=no
10803 $RM -r conftest 2>/dev/null
10807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809 lt_compiler_flag="-o out/conftest2.$ac_objext"
10810 # Insert the option either (1) after the last *FLAGS variable, or
10811 # (2) before a word containing "conftest.", or (3) at the end.
10812 # Note that $ac_compile itself does not contain backslashes and begins
10813 # with a dollar sign (not a hyphen), so the echo should work correctly.
10814 lt_compile=`echo "$ac_compile" | $SED \
10815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10817 -e 's:$: $lt_compiler_flag:'`
10818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10819 (eval "$lt_compile" 2>out/conftest.err)
10821 cat out/conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10825 # The compiler can only warn and ignore the option if not recognized
10826 # So say no if there are warnings
10827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10830 lt_cv_prog_compiler_c_o=yes
10835 # SGI C++ compiler will create directory out/ii_files/ for
10836 # template instantiation
10837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10838 $RM out/* && rmdir out
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10845 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10854 if ${lt_cv_prog_compiler_c_o+:} false; then :
10855 $as_echo_n "(cached) " >&6
10857 lt_cv_prog_compiler_c_o=no
10858 $RM -r conftest 2>/dev/null
10862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10864 lt_compiler_flag="-o out/conftest2.$ac_objext"
10865 # Insert the option either (1) after the last *FLAGS variable, or
10866 # (2) before a word containing "conftest.", or (3) at the end.
10867 # Note that $ac_compile itself does not contain backslashes and begins
10868 # with a dollar sign (not a hyphen), so the echo should work correctly.
10869 lt_compile=`echo "$ac_compile" | $SED \
10870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872 -e 's:$: $lt_compiler_flag:'`
10873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10874 (eval "$lt_compile" 2>out/conftest.err)
10876 cat out/conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10880 # The compiler can only warn and ignore the option if not recognized
10881 # So say no if there are warnings
10882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10885 lt_cv_prog_compiler_c_o=yes
10890 # SGI C++ compiler will create directory out/ii_files/ for
10891 # template instantiation
10892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10893 $RM out/* && rmdir out
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10905 hard_links="nottested"
10906 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10907 # do not overwrite the value of need_locks provided by the user
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10909 $as_echo_n "checking if we can lock with hard links... " >&6; }
10912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10914 ln conftest.a conftest.b 2>&5 || hard_links=no
10915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10917 $as_echo "$hard_links" >&6; }
10918 if test "$hard_links" = no; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10920 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10936 allow_undefined_flag=
10937 always_export_symbols=no
10939 archive_expsym_cmds=
10940 compiler_needs_object=no
10941 enable_shared_with_static_runtimes=no
10942 export_dynamic_flag_spec=
10943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10944 hardcode_automatic=no
10946 hardcode_direct_absolute=no
10947 hardcode_libdir_flag_spec=
10948 hardcode_libdir_separator=
10949 hardcode_minus_L=no
10950 hardcode_shlibpath_var=unsupported
10952 link_all_deplibs=unknown
10954 module_expsym_cmds=
10955 old_archive_from_new_cmds=
10956 old_archive_from_expsyms_cmds=
10957 thread_safe_flag_spec=
10958 whole_archive_flag_spec=
10959 # include_expsyms should be a list of space-separated symbols to be *always*
10960 # included in the symbol list
10962 # exclude_expsyms can be an extended regexp of symbols to exclude
10963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10965 # as well as any symbol that contains `d'.
10966 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10968 # platforms (ab)use it in PIC code, but their linkers get confused if
10969 # the symbol is explicitly referenced. Since portable code cannot
10970 # rely on this symbol name, it's probably fine to never include it in
10971 # preloaded symbol tables.
10972 # Exclude shared library initialization/finalization symbols.
10973 extract_expsyms_cmds=
10976 cygwin* | mingw* | pw32* | cegcc*)
10977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10978 # When not using gcc, we currently assume that we are using
10979 # Microsoft Visual C++.
10980 if test "$GCC" != yes; then
10985 # we just hope/assume this is gcc and not c89 (= MSVC++)
10995 # On some targets, GNU ld is compatible enough with the native linker
10996 # that we're better off using the native interface for both.
10997 lt_use_gnu_ld_interface=no
10998 if test "$with_gnu_ld" = yes; then
11001 # The AIX port of GNU ld has always aspired to compatibility
11002 # with the native linker. However, as the warning in the GNU ld
11003 # block says, versions before 2.19.5* couldn't really create working
11004 # shared libraries, regardless of the interface used.
11005 case `$LD -v 2>&1` in
11006 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11007 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11008 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11010 lt_use_gnu_ld_interface=yes
11015 lt_use_gnu_ld_interface=yes
11020 if test "$lt_use_gnu_ld_interface" = yes; then
11021 # If archive_cmds runs LD, not CC, wlarc should be empty
11024 # Set some defaults for GNU ld with shared library support. These
11025 # are reset later if shared libraries are not supported. Putting them
11026 # here allows them to be overridden if necessary.
11027 runpath_var=LD_RUN_PATH
11028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11029 export_dynamic_flag_spec='${wl}--export-dynamic'
11030 # ancient GNU ld didn't support --whole-archive et. al.
11031 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11032 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11034 whole_archive_flag_spec=
11036 supports_anon_versioning=no
11037 case `$LD -v 2>&1` in
11038 *GNU\ gold*) supports_anon_versioning=yes ;;
11039 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11042 *\ 2.11.*) ;; # other 2.11 versions
11043 *) supports_anon_versioning=yes ;;
11046 # See if GNU ld supports shared libraries.
11049 # On AIX/PPC, the GNU linker is very broken
11050 if test "$host_cpu" != ia64; then
11054 *** Warning: the GNU linker, at least up to release 2.19, is reported
11055 *** to be unable to reliably create shared libraries on AIX.
11056 *** Therefore, libtool is disabling shared libraries support. If you
11057 *** really care for shared libraries, you may want to install binutils
11058 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11059 *** You will then need to restart the configuration process.
11068 # see comment about AmigaOS4 .so support
11069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11070 archive_expsym_cmds=''
11073 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)'
11074 hardcode_libdir_flag_spec='-L$libdir'
11075 hardcode_minus_L=yes
11081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11082 allow_undefined_flag=unsupported
11083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11084 # support --undefined. This deserves some investigation. FIXME
11085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11091 cygwin* | mingw* | pw32* | cegcc*)
11092 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11093 # as there is no search path for DLLs.
11094 hardcode_libdir_flag_spec='-L$libdir'
11095 export_dynamic_flag_spec='${wl}--export-all-symbols'
11096 allow_undefined_flag=unsupported
11097 always_export_symbols=no
11098 enable_shared_with_static_runtimes=yes
11099 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'
11100 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11104 # If the export-symbols file already is a .def file (1st line
11105 # is EXPORTS), use it as is; otherwise, prepend...
11106 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11107 cp $export_symbols $output_objdir/$soname.def;
11109 echo EXPORTS > $output_objdir/$soname.def;
11110 cat $export_symbols >> $output_objdir/$soname.def;
11112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11120 link_all_deplibs=yes
11125 hardcode_shlibpath_var=no
11126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11127 export_dynamic_flag_spec='${wl}-E'
11128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11129 # Instead, shared libraries are loaded at an image base (0x10000000 by
11130 # default) and relocated if they conflict, which is a slow very memory
11131 # consuming and fragmenting process. To avoid this, we pick a random,
11132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11135 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'
11138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11140 if test "$host_os" = linux-dietlibc; then
11141 case $cc_basename in
11142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11146 && test "$tmp_diet" = no
11148 tmp_addflag=' $pic_flag'
11149 tmp_sharedflag='-shared'
11150 case $cc_basename,$host_cpu in
11151 pgcc*) # Portland Group C compiler
11152 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'
11153 tmp_addflag=' $pic_flag'
11155 pgf77* | pgf90* | pgf95* | pgfortran*)
11156 # Portland Group f77 and f90 compilers
11157 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'
11158 tmp_addflag=' $pic_flag -Mnomain' ;;
11159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11160 tmp_addflag=' -i_dynamic' ;;
11161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11162 tmp_addflag=' -i_dynamic -nofor_main' ;;
11163 ifc* | ifort*) # Intel Fortran compiler
11164 tmp_addflag=' -nofor_main' ;;
11165 lf95*) # Lahey Fortran 8.1
11166 whole_archive_flag_spec=
11167 tmp_sharedflag='--shared' ;;
11168 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11169 tmp_sharedflag='-qmkshrobj'
11171 nvcc*) # Cuda Compiler Driver 2.2
11172 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'
11173 compiler_needs_object=yes
11176 case `$CC -V 2>&1 | sed 5q` in
11177 *Sun\ C*) # Sun C 5.9
11178 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'
11179 compiler_needs_object=yes
11180 tmp_sharedflag='-G' ;;
11181 *Sun\ F*) # Sun Fortran 8.3
11182 tmp_sharedflag='-G' ;;
11184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11186 if test "x$supports_anon_versioning" = xyes; then
11187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11189 echo "local: *; };" >> $output_objdir/$libname.ver~
11190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11193 case $cc_basename in
11194 xlf* | bgf* | bgxlf* | mpixlf*)
11195 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11196 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11199 if test "x$supports_anon_versioning" = xyes; then
11200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11202 echo "local: *; };" >> $output_objdir/$libname.ver~
11203 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11223 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11228 *** create shared libraries on Solaris systems. Therefore, libtool
11229 *** is disabling shared libraries support. We urge you to upgrade GNU
11230 *** binutils to release 2.9.1 or newer. Another option is to modify
11231 *** your PATH or compiler configuration so that the native linker is
11232 *** used, and then restart.
11235 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11244 case `$LD -v 2>&1` in
11245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11250 *** reliably create shared libraries on SCO systems. Therefore, libtool
11251 *** is disabling shared libraries support. We urge you to upgrade GNU
11252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11253 *** your PATH or compiler configuration so that the native linker is
11254 *** used, and then restart.
11259 # For security reasons, it is highly recommended that you always
11260 # use absolute paths for naming shared libraries, and exclude the
11261 # DT_RUNPATH tag from executables and libraries. But doing so
11262 # requires that you compile everything twice, which is a pain.
11263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11275 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11277 hardcode_direct=yes
11278 hardcode_shlibpath_var=no
11282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11291 if test "$ld_shlibs" = no; then
11293 hardcode_libdir_flag_spec=
11294 export_dynamic_flag_spec=
11295 whole_archive_flag_spec=
11298 # PORTME fill in a description of your system's linker (not GNU ld)
11301 allow_undefined_flag=unsupported
11302 always_export_symbols=yes
11303 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'
11304 # Note: this linker hardcodes the directories in LIBPATH if there
11305 # are no directories specified by -L.
11306 hardcode_minus_L=yes
11307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11308 # Neither direct hardcoding nor static linking is supported with a
11310 hardcode_direct=unsupported
11315 if test "$host_cpu" = ia64; then
11316 # On IA64, the linker does run time linking by default, so we don't
11317 # have to do anything special.
11318 aix_use_runtimelinking=no
11319 exp_sym_flag='-Bexport'
11322 # If we're using GNU nm, then we don't want the "-C" option.
11323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11324 # Also, AIX nm treats weak defined symbols like other global
11325 # defined symbols, whereas GNU nm marks them as "W".
11326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11327 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11329 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11331 aix_use_runtimelinking=no
11333 # Test if we are trying to use run time linking or normal
11334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11335 # need to do runtime linking.
11336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11337 for ld_flag in $LDFLAGS; do
11338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11339 aix_use_runtimelinking=yes
11346 exp_sym_flag='-bexport'
11347 no_entry_flag='-bnoentry'
11350 # When large executables or shared objects are built, AIX ld can
11351 # have problems creating the table of contents. If linking a library
11352 # or program results in "error TOC overflow" add -mminimal-toc to
11353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11357 hardcode_direct=yes
11358 hardcode_direct_absolute=yes
11359 hardcode_libdir_separator=':'
11360 link_all_deplibs=yes
11361 file_list_spec='${wl}-f,'
11363 if test "$GCC" = yes; then
11364 case $host_os in aix4.[012]|aix4.[012].*)
11365 # We only want to do this on AIX 4.2 and lower, the check
11366 # below for broken collect2 doesn't work under 4.3+
11367 collect2name=`${CC} -print-prog-name=collect2`
11368 if test -f "$collect2name" &&
11369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11371 # We have reworked collect2
11374 # We have old collect2
11375 hardcode_direct=unsupported
11376 # It fails to find uninstalled libraries when the uninstalled
11377 # path is not listed in the libpath. Setting hardcode_minus_L
11378 # to unsupported forces relinking
11379 hardcode_minus_L=yes
11380 hardcode_libdir_flag_spec='-L$libdir'
11381 hardcode_libdir_separator=
11385 shared_flag='-shared'
11386 if test "$aix_use_runtimelinking" = yes; then
11387 shared_flag="$shared_flag "'${wl}-G'
11391 if test "$host_cpu" = ia64; then
11392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11393 # chokes on -Wl,-G. The following line is correct:
11396 if test "$aix_use_runtimelinking" = yes; then
11397 shared_flag='${wl}-G'
11399 shared_flag='${wl}-bM:SRE'
11404 export_dynamic_flag_spec='${wl}-bexpall'
11405 # It seems that -bexpall does not export symbols beginning with
11406 # underscore (_), so it is better to generate a list of symbols to export.
11407 always_export_symbols=yes
11408 if test "$aix_use_runtimelinking" = yes; then
11409 # Warning - without using the other runtime loading flags (-brtl),
11410 # -berok will link without error, but may produce a broken library.
11411 allow_undefined_flag='-berok'
11412 # Determine the default libpath from the value encoded in an
11413 # empty executable.
11414 if test "${lt_cv_aix_libpath+set}" = set; then
11415 aix_libpath=$lt_cv_aix_libpath
11417 if ${lt_cv_aix_libpath_+:} false; then :
11418 $as_echo_n "(cached) " >&6
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11431 if ac_fn_c_try_link "$LINENO"; then :
11433 lt_aix_libpath_sed='
11434 /Import File Strings/,/^$/ {
11436 s/^0 *\([^ ]*\) *$/\1/
11440 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$lt_cv_aix_libpath_"; then
11443 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 if test -z "$lt_cv_aix_libpath_"; then
11449 lt_cv_aix_libpath_="/usr/lib:/lib"
11454 aix_libpath=$lt_cv_aix_libpath_
11457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11458 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11460 if test "$host_cpu" = ia64; then
11461 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11462 allow_undefined_flag="-z nodefs"
11463 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"
11465 # Determine the default libpath from the value encoded in an
11466 # empty executable.
11467 if test "${lt_cv_aix_libpath+set}" = set; then
11468 aix_libpath=$lt_cv_aix_libpath
11470 if ${lt_cv_aix_libpath_+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11484 if ac_fn_c_try_link "$LINENO"; then :
11486 lt_aix_libpath_sed='
11487 /Import File Strings/,/^$/ {
11489 s/^0 *\([^ ]*\) *$/\1/
11493 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11494 # Check for a 64-bit object if we didn't find anything.
11495 if test -z "$lt_cv_aix_libpath_"; then
11496 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11499 rm -f core conftest.err conftest.$ac_objext \
11500 conftest$ac_exeext conftest.$ac_ext
11501 if test -z "$lt_cv_aix_libpath_"; then
11502 lt_cv_aix_libpath_="/usr/lib:/lib"
11507 aix_libpath=$lt_cv_aix_libpath_
11510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11511 # Warning - without using the other run time loading flags,
11512 # -berok will link without error, but may produce a broken library.
11513 no_undefined_flag=' ${wl}-bernotok'
11514 allow_undefined_flag=' ${wl}-berok'
11515 if test "$with_gnu_ld" = yes; then
11516 # We only use this code for GNU lds that support --whole-archive.
11517 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11519 # Exported symbols can be pulled into shared objects from archives
11520 whole_archive_flag_spec='$convenience'
11522 archive_cmds_need_lc=yes
11523 # This is similar to how AIX traditionally builds its shared libraries.
11524 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11532 # see comment about AmigaOS4 .so support
11533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11534 archive_expsym_cmds=''
11537 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)'
11538 hardcode_libdir_flag_spec='-L$libdir'
11539 hardcode_minus_L=yes
11545 export_dynamic_flag_spec=-rdynamic
11548 cygwin* | mingw* | pw32* | cegcc*)
11549 # When not using gcc, we currently assume that we are using
11550 # Microsoft Visual C++.
11551 # hardcode_libdir_flag_spec is actually meaningless, as there is
11552 # no search path for DLLs.
11553 case $cc_basename in
11556 hardcode_libdir_flag_spec=' '
11557 allow_undefined_flag=unsupported
11558 always_export_symbols=yes
11560 # Tell ltmain to make .lib files, not .a files.
11562 # Tell ltmain to make .dll files, not .so files.
11564 # FIXME: Setting linknames here is a bad hack.
11565 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11566 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11567 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11569 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11571 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11573 # The linker will not automatically build a static lib if we build a DLL.
11574 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11575 enable_shared_with_static_runtimes=yes
11576 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11579 old_postinstall_cmds='chmod 644 $oldlib'
11580 postlink_cmds='lt_outputfile="@OUTPUT@"~
11581 lt_tool_outputfile="@TOOL_OUTPUT@"~
11582 case $lt_outputfile in
11585 lt_outputfile="$lt_outputfile.exe"
11586 lt_tool_outputfile="$lt_tool_outputfile.exe"
11589 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11590 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11591 $RM "$lt_outputfile.manifest";
11595 # Assume MSVC wrapper
11596 hardcode_libdir_flag_spec=' '
11597 allow_undefined_flag=unsupported
11598 # Tell ltmain to make .lib files, not .a files.
11600 # Tell ltmain to make .dll files, not .so files.
11602 # FIXME: Setting linknames here is a bad hack.
11603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11604 # The linker will automatically build a .lib file if we build a DLL.
11605 old_archive_from_new_cmds='true'
11606 # FIXME: Should let the user specify the lib program.
11607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11608 enable_shared_with_static_runtimes=yes
11613 darwin* | rhapsody*)
11616 archive_cmds_need_lc=no
11618 hardcode_automatic=yes
11619 hardcode_shlibpath_var=unsupported
11620 if test "$lt_cv_ld_force_load" = "yes"; then
11621 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\"`'
11624 whole_archive_flag_spec=''
11626 link_all_deplibs=yes
11627 allow_undefined_flag="$_lt_dar_allow_undefined"
11628 case $cc_basename in
11629 ifort*) _lt_dar_can_shared=yes ;;
11630 *) _lt_dar_can_shared=$GCC ;;
11632 if test "$_lt_dar_can_shared" = "yes"; then
11633 output_verbose_link_cmd=func_echo_all
11634 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11635 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11636 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}"
11637 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}"
11646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11647 hardcode_libdir_flag_spec='-L$libdir'
11648 hardcode_shlibpath_var=no
11651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11652 # support. Future versions do this automatically, but an explicit c++rt0.o
11653 # does not break anything, and helps significantly (at the cost of a little
11656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11657 hardcode_libdir_flag_spec='-R$libdir'
11658 hardcode_direct=yes
11659 hardcode_shlibpath_var=no
11662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11665 hardcode_direct=yes
11666 hardcode_minus_L=yes
11667 hardcode_shlibpath_var=no
11670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11671 freebsd* | dragonfly*)
11672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11673 hardcode_libdir_flag_spec='-R$libdir'
11674 hardcode_direct=yes
11675 hardcode_shlibpath_var=no
11679 if test "$GCC" = yes; then
11680 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11682 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11685 hardcode_libdir_separator=:
11686 hardcode_direct=yes
11688 # hardcode_minus_L: Not really in the search PATH,
11689 # but as the default location of the library.
11690 hardcode_minus_L=yes
11691 export_dynamic_flag_spec='${wl}-E'
11695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11696 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11700 if test "$with_gnu_ld" = no; then
11701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11702 hardcode_libdir_separator=:
11703 hardcode_direct=yes
11704 hardcode_direct_absolute=yes
11705 export_dynamic_flag_spec='${wl}-E'
11706 # hardcode_minus_L: Not really in the search PATH,
11707 # but as the default location of the library.
11708 hardcode_minus_L=yes
11713 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11716 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11719 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11722 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11728 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11731 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11735 # Older versions of the 11.00 compiler do not understand -b yet
11736 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11738 $as_echo_n "checking if $CC understands -b... " >&6; }
11739 if ${lt_cv_prog_compiler__b+:} false; then :
11740 $as_echo_n "(cached) " >&6
11742 lt_cv_prog_compiler__b=no
11743 save_LDFLAGS="$LDFLAGS"
11744 LDFLAGS="$LDFLAGS -b"
11745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11747 # The linker can only warn and ignore the option if not recognized
11748 # So say no if there are warnings
11749 if test -s conftest.err; then
11750 # Append any errors to the config.log.
11751 cat conftest.err 1>&5
11752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11754 if diff conftest.exp conftest.er2 >/dev/null; then
11755 lt_cv_prog_compiler__b=yes
11758 lt_cv_prog_compiler__b=yes
11762 LDFLAGS="$save_LDFLAGS"
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11766 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11768 if test x"$lt_cv_prog_compiler__b" = xyes; then
11769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11777 if test "$with_gnu_ld" = no; then
11778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11779 hardcode_libdir_separator=:
11784 hardcode_shlibpath_var=no
11787 hardcode_direct=yes
11788 hardcode_direct_absolute=yes
11789 export_dynamic_flag_spec='${wl}-E'
11791 # hardcode_minus_L: Not really in the search PATH,
11792 # but as the default location of the library.
11793 hardcode_minus_L=yes
11799 irix5* | irix6* | nonstopux*)
11800 if test "$GCC" = yes; then
11801 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'
11802 # Try to use the -exported_symbol ld option, if it does not
11803 # work, assume that -exports_file does not work either and
11804 # implicitly export all symbols.
11805 # This should be the same for all languages, so no per-tag cache variable.
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11807 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11808 if ${lt_cv_irix_exported_symbol+:} false; then :
11809 $as_echo_n "(cached) " >&6
11811 save_LDFLAGS="$LDFLAGS"
11812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815 int foo (void) { return 0; }
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 lt_cv_irix_exported_symbol=yes
11820 lt_cv_irix_exported_symbol=no
11822 rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LDFLAGS="$save_LDFLAGS"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11827 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11828 if test "$lt_cv_irix_exported_symbol" = yes; then
11829 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'
11832 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'
11833 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'
11835 archive_cmds_need_lc='no'
11836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11837 hardcode_libdir_separator=:
11839 link_all_deplibs=yes
11843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11848 hardcode_libdir_flag_spec='-R$libdir'
11849 hardcode_direct=yes
11850 hardcode_shlibpath_var=no
11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855 hardcode_direct=yes
11856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11857 hardcode_libdir_separator=:
11858 hardcode_shlibpath_var=no
11865 if test -f /usr/libexec/ld.so; then
11866 hardcode_direct=yes
11867 hardcode_shlibpath_var=no
11868 hardcode_direct_absolute=yes
11869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11873 export_dynamic_flag_spec='${wl}-E'
11876 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11878 hardcode_libdir_flag_spec='-R$libdir'
11881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11892 hardcode_libdir_flag_spec='-L$libdir'
11893 hardcode_minus_L=yes
11894 allow_undefined_flag=unsupported
11895 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11900 if test "$GCC" = yes; then
11901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11902 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'
11904 allow_undefined_flag=' -expect_unresolved \*'
11905 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'
11907 archive_cmds_need_lc='no'
11908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11909 hardcode_libdir_separator=:
11912 osf4* | osf5*) # as osf3* with the addition of -msym flag
11913 if test "$GCC" = yes; then
11914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11915 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'
11916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11918 allow_undefined_flag=' -expect_unresolved \*'
11919 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'
11920 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~
11921 $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'
11923 # Both c and cxx compiler support -rpath directly
11924 hardcode_libdir_flag_spec='-rpath $libdir'
11926 archive_cmds_need_lc='no'
11927 hardcode_libdir_separator=:
11931 no_undefined_flag=' -z defs'
11932 if test "$GCC" = yes; then
11934 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11936 $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'
11938 case `$CC -V 2>&1` in
11941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11947 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11949 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11953 hardcode_libdir_flag_spec='-R$libdir'
11954 hardcode_shlibpath_var=no
11956 solaris2.[0-5] | solaris2.[0-5].*) ;;
11958 # The compiler driver will combine and reorder linker options,
11959 # but understands `-z linker_flag'. GCC discards it without `$wl',
11960 # but is careful enough not to reorder.
11961 # Supported since Solaris 2.6 (maybe 2.5.1?)
11962 if test "$GCC" = yes; then
11963 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11969 link_all_deplibs=yes
11973 if test "x$host_vendor" = xsequent; then
11974 # Use $CC to link under sequent, because it throws in some extra .o
11975 # files that make .init and .fini sections work.
11976 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11980 hardcode_libdir_flag_spec='-L$libdir'
11981 hardcode_direct=yes
11982 hardcode_minus_L=yes
11983 hardcode_shlibpath_var=no
11987 case $host_vendor in
11989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11990 hardcode_direct=yes # is this really true???
11993 ## LD is ld it makes a PLAMLIB
11994 ## CC just makes a GrossModule.
11995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11996 reload_cmds='$CC -r -o $output$reload_objs'
12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12004 runpath_var='LD_RUN_PATH'
12005 hardcode_shlibpath_var=no
12009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12010 hardcode_shlibpath_var=no
12011 export_dynamic_flag_spec='-Bexport'
12015 if test -d /usr/nec; then
12016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12017 hardcode_shlibpath_var=no
12018 runpath_var=LD_RUN_PATH
12019 hardcode_runpath_var=yes
12024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12025 no_undefined_flag='${wl}-z,text'
12026 archive_cmds_need_lc=no
12027 hardcode_shlibpath_var=no
12028 runpath_var='LD_RUN_PATH'
12030 if test "$GCC" = yes; then
12031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12039 sysv5* | sco3.2v5* | sco5v6*)
12040 # Note: We can NOT use -z defs as we might desire, because we do not
12041 # link with -lc, and that would cause any symbols used from libc to
12042 # always be unresolved, which means just about no library would
12043 # ever link correctly. If we're not using GNU ld we use -z text
12044 # though, which does catch some bad symbols but isn't as heavy-handed
12046 no_undefined_flag='${wl}-z,text'
12047 allow_undefined_flag='${wl}-z,nodefs'
12048 archive_cmds_need_lc=no
12049 hardcode_shlibpath_var=no
12050 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12051 hardcode_libdir_separator=':'
12052 link_all_deplibs=yes
12053 export_dynamic_flag_spec='${wl}-Bexport'
12054 runpath_var='LD_RUN_PATH'
12056 if test "$GCC" = yes; then
12057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12067 hardcode_libdir_flag_spec='-L$libdir'
12068 hardcode_shlibpath_var=no
12076 if test x$host_vendor = xsni; then
12078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12079 export_dynamic_flag_spec='${wl}-Blargedynsym'
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12086 $as_echo "$ld_shlibs" >&6; }
12087 test "$ld_shlibs" = no && can_build_shared=no
12089 with_gnu_ld=$with_gnu_ld
12106 # Do we need to explicitly link libc?
12108 case "x$archive_cmds_need_lc" in
12110 # Assume -lc should be added
12111 archive_cmds_need_lc=yes
12113 if test "$enable_shared" = yes && test "$GCC" = yes; then
12114 case $archive_cmds in
12116 # FIXME: we may have to deal with multi-command sequences.
12119 # Test whether the compiler implicitly links with -lc since on some
12120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12121 # to ld, don't add -lc before -lgcc.
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12123 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12124 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12125 $as_echo_n "(cached) " >&6
12128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12131 (eval $ac_compile) 2>&5
12133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12134 test $ac_status = 0; } 2>conftest.err; then
12137 libobjs=conftest.$ac_objext
12139 wl=$lt_prog_compiler_wl
12140 pic_flag=$lt_prog_compiler_pic
12146 lt_save_allow_undefined_flag=$allow_undefined_flag
12147 allow_undefined_flag=
12148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12149 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; }
12154 lt_cv_archive_cmds_need_lc=no
12156 lt_cv_archive_cmds_need_lc=yes
12158 allow_undefined_flag=$lt_save_allow_undefined_flag
12160 cat conftest.err 1>&5
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12166 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12167 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12326 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12328 if test "$GCC" = yes; then
12330 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12331 *) lt_awk_arg="/^libraries:/" ;;
12334 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12335 *) lt_sed_strip_eq="s,=/,/,g" ;;
12337 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12338 case $lt_search_path_spec in
12340 # if the path contains ";" then we assume it to be the separator
12341 # otherwise default to the standard path separator (i.e. ":") - it is
12342 # assumed that no part of a normal pathname contains ";" but that should
12343 # okay in the real world where ";" in dirpaths is itself problematic.
12344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12350 # Ok, now we have the path, separated by spaces, we can step through it
12351 # and add multilib dir if necessary.
12352 lt_tmp_lt_search_path_spec=
12353 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12354 for lt_sys_path in $lt_search_path_spec; do
12355 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12358 test -d "$lt_sys_path" && \
12359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12362 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12363 BEGIN {RS=" "; FS="/|\n";} {
12366 for (lt_i = NF; lt_i > 0; lt_i--) {
12367 if ($lt_i != "" && $lt_i != ".") {
12368 if ($lt_i == "..") {
12371 if (lt_count == 0) {
12372 lt_foo="/" $lt_i lt_foo;
12379 if (lt_foo != "") { lt_freq[lt_foo]++; }
12380 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12382 # AWK program above erroneously prepends '/' to C:/dos/paths
12385 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12386 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12388 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12392 library_names_spec=
12393 libname_spec='lib$name'
12397 postuninstall_cmds=
12401 shlibpath_overrides_runpath=unknown
12403 dynamic_linker="$host_os ld.so"
12404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12405 need_lib_prefix=unknown
12406 hardcode_into_libs=no
12408 # when you set need_version to no, make sure it does not cause -set_version
12409 # flags to be left without arguments
12410 need_version=unknown
12414 version_type=linux # correct to gnu/linux during the next big refactor
12415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12416 shlibpath_var=LIBPATH
12418 # AIX 3 has no versioning support, so we append a major version to the name.
12419 soname_spec='${libname}${release}${shared_ext}$major'
12423 version_type=linux # correct to gnu/linux during the next big refactor
12426 hardcode_into_libs=yes
12427 if test "$host_cpu" = ia64; then
12428 # AIX 5 supports IA64
12429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12430 shlibpath_var=LD_LIBRARY_PATH
12432 # With GCC up to 2.95.x, collect2 would create an import file
12433 # for dependence libraries. The import file would start with
12434 # the line `#! .'. This would cause the generated library to
12435 # depend on `.', always an invalid library. This was fixed in
12436 # development snapshots of GCC prior to 3.0.
12438 aix4 | aix4.[01] | aix4.[01].*)
12439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12444 can_build_shared=no
12448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12449 # soname into executable. Probably we can add versioning support to
12450 # collect2, so additional links can be useful in future.
12451 if test "$aix_use_runtimelinking" = yes; then
12452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12453 # instead of lib<name>.a to let people know that these are not
12454 # typical AIX shared libraries.
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12457 # We preserve .a as extension for shared libraries through AIX4.2
12458 # and later when we are not doing run time linking.
12459 library_names_spec='${libname}${release}.a $libname.a'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12462 shlibpath_var=LIBPATH
12469 # Since July 2007 AmigaOS4 officially supports .so libraries.
12470 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12474 library_names_spec='$libname.ixlibrary $libname.a'
12475 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12476 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12482 library_names_spec='${libname}${shared_ext}'
12483 dynamic_linker="$host_os ld.so"
12484 shlibpath_var=LIBRARY_PATH
12488 version_type=linux # correct to gnu/linux during the next big refactor
12490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12491 soname_spec='${libname}${release}${shared_ext}$major'
12492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12493 shlibpath_var=LD_LIBRARY_PATH
12494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12496 # the default ld.so.conf also contains /usr/contrib/lib and
12497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12498 # libtool to hard-code these into programs
12501 cygwin* | mingw* | pw32* | cegcc*)
12502 version_type=windows
12507 case $GCC,$cc_basename in
12510 library_names_spec='$libname.dll.a'
12511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12512 postinstall_cmds='base_file=`basename \${file}`~
12513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12514 dldir=$destdir/`dirname \$dlpath`~
12515 test -d \$dldir || mkdir -p \$dldir~
12516 $install_prog $dir/$dlname \$dldir/$dlname~
12517 chmod a+x \$dldir/$dlname~
12518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12522 dlpath=$dir/\$dldll~
12524 shlibpath_overrides_runpath=yes
12528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12534 # MinGW DLLs use traditional 'lib' prefix
12535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12538 # pw32 DLLs use 'pw' prefix rather than 'lib'
12539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12542 dynamic_linker='Win32 ld.exe'
12547 libname_spec='$name'
12548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12549 library_names_spec='${libname}.dll.lib'
12553 sys_lib_search_path_spec=
12556 for lt_path in $LIB
12559 # Let DOS variable expansion print the short 8.3 style file name.
12560 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12561 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12564 # Convert to MSYS style.
12565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12568 # Convert to unix form, then to dos form, then back to unix form
12569 # but this time dos style (no spaces!) so that the unix form looks
12570 # like /cygdrive/c/PROGRA~1:/cygdr...
12571 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12572 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12573 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12576 sys_lib_search_path_spec="$LIB"
12577 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12578 # It is most probably a Windows format PATH.
12579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12583 # FIXME: find the short name or the path components, as spaces are
12584 # common. (e.g. "Program Files" -> "PROGRA~1")
12588 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12589 postinstall_cmds='base_file=`basename \${file}`~
12590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12591 dldir=$destdir/`dirname \$dlpath`~
12592 test -d \$dldir || mkdir -p \$dldir~
12593 $install_prog $dir/$dlname \$dldir/$dlname'
12594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12595 dlpath=$dir/\$dldll~
12597 shlibpath_overrides_runpath=yes
12598 dynamic_linker='Win32 link.exe'
12602 # Assume MSVC wrapper
12603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12604 dynamic_linker='Win32 ld.exe'
12607 # FIXME: first we should search . and the directory the executable is in
12611 darwin* | rhapsody*)
12612 dynamic_linker="$host_os dyld"
12613 version_type=darwin
12616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12617 soname_spec='${libname}${release}${major}$shared_ext'
12618 shlibpath_overrides_runpath=yes
12619 shlibpath_var=DYLD_LIBRARY_PATH
12620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12622 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12627 version_type=linux # correct to gnu/linux during the next big refactor
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12635 freebsd* | dragonfly*)
12636 # DragonFly does not have aout. When/if they implement a new
12637 # versioning mechanism, adjust this.
12638 if test -x /usr/bin/objformat; then
12639 objformat=`/usr/bin/objformat`
12642 freebsd[23].*) objformat=aout ;;
12643 *) objformat=elf ;;
12646 version_type=freebsd-$objformat
12647 case $version_type in
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12658 shlibpath_var=LD_LIBRARY_PATH
12661 shlibpath_overrides_runpath=yes
12663 freebsd3.[01]* | freebsdelf3.[01]*)
12664 shlibpath_overrides_runpath=yes
12665 hardcode_into_libs=yes
12667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12669 shlibpath_overrides_runpath=no
12670 hardcode_into_libs=yes
12672 *) # from 4.6 on, and DragonFly
12673 shlibpath_overrides_runpath=yes
12674 hardcode_into_libs=yes
12680 version_type=linux # correct to gnu/linux during the next big refactor
12683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12684 soname_spec='${libname}${release}${shared_ext}$major'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=no
12687 hardcode_into_libs=yes
12691 version_type=linux # correct to gnu/linux during the next big refactor
12694 dynamic_linker="$host_os runtime_loader"
12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12696 soname_spec='${libname}${release}${shared_ext}$major'
12697 shlibpath_var=LIBRARY_PATH
12698 shlibpath_overrides_runpath=yes
12699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12700 hardcode_into_libs=yes
12703 hpux9* | hpux10* | hpux11*)
12704 # Give a soname corresponding to the major version so that dld.sl refuses to
12705 # link against other versions.
12712 hardcode_into_libs=yes
12713 dynamic_linker="$host_os dld.so"
12714 shlibpath_var=LD_LIBRARY_PATH
12715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12718 if test "X$HPUX_IA64_MODE" = X32; then
12719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12727 hardcode_into_libs=yes
12728 dynamic_linker="$host_os dld.sl"
12729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12738 dynamic_linker="$host_os dld.sl"
12739 shlibpath_var=SHLIB_PATH
12740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12745 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12746 postinstall_cmds='chmod 555 $lib'
12747 # or fails outright, so override atomically:
12748 install_override_mode=555
12752 version_type=linux # correct to gnu/linux during the next big refactor
12755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12756 soname_spec='${libname}${release}${shared_ext}$major'
12757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=no
12760 hardcode_into_libs=yes
12763 irix5* | irix6* | nonstopux*)
12765 nonstopux*) version_type=nonstopux ;;
12767 if test "$lt_cv_prog_gnu_ld" = yes; then
12768 version_type=linux # correct to gnu/linux during the next big refactor
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12778 irix5* | nonstopux*)
12779 libsuff= shlibsuff=
12782 case $LD in # libtool.m4 will add one of these switches to LD
12783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12784 libsuff= shlibsuff= libmagic=32-bit;;
12785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12786 libsuff=32 shlibsuff=N32 libmagic=N32;;
12787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12789 *) libsuff= shlibsuff= libmagic=never-match;;
12793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12794 shlibpath_overrides_runpath=no
12795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12797 hardcode_into_libs=yes
12800 # No shared lib support for Linux oldld, aout, or coff.
12801 linux*oldld* | linux*aout* | linux*coff*)
12805 # This must be glibc/ELF.
12806 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12807 version_type=linux # correct to gnu/linux during the next big refactor
12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=no
12816 # Some binutils ld are patched to set DT_RUNPATH
12817 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12818 $as_echo_n "(cached) " >&6
12820 lt_cv_shlibpath_overrides_runpath=no
12821 save_LDFLAGS=$LDFLAGS
12822 save_libdir=$libdir
12823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12836 if ac_fn_c_try_link "$LINENO"; then :
12837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12838 lt_cv_shlibpath_overrides_runpath=yes
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LDFLAGS=$save_LDFLAGS
12844 libdir=$save_libdir
12848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12850 # This implies no fast_install, which is unacceptable.
12851 # Some rework will be needed to allow for fast_install
12852 # before this can be enabled.
12853 hardcode_into_libs=yes
12855 # Add ABI-specific directories to the system library path.
12856 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12858 # Append ld.so.conf contents to the search path
12859 if test -f /etc/ld.so.conf; then
12860 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' ' '`
12861 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12865 # We used to test for /lib/ld.so.1 and disable shared libraries on
12866 # powerpc, because MkLinux only supported shared libraries with the
12867 # GNU dynamic linker. Since this was broken with cross compilers,
12868 # most powerpc-linux boxes support dynamic linking these days and
12869 # people can always --disable-shared, the test was removed, and we
12870 # assume the GNU/Linux dynamic linker is in use.
12871 dynamic_linker='GNU/Linux ld.so'
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12881 dynamic_linker='NetBSD (a.out) ld.so'
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 dynamic_linker='NetBSD ld.elf_so'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 shlibpath_overrides_runpath=yes
12889 hardcode_into_libs=yes
12893 version_type=linux # correct to gnu/linux during the next big refactor
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 shlibpath_overrides_runpath=yes
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12904 soname_spec='${libname}${release}${shared_ext}$major'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 shlibpath_overrides_runpath=no
12907 hardcode_into_libs=yes
12908 dynamic_linker='ldqnx.so'
12913 sys_lib_dlsearch_path_spec="/usr/lib"
12915 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12917 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12918 *) need_version=no ;;
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12925 openbsd2.[89] | openbsd2.[89].*)
12926 shlibpath_overrides_runpath=no
12929 shlibpath_overrides_runpath=yes
12933 shlibpath_overrides_runpath=yes
12938 libname_spec='$name'
12941 library_names_spec='$libname${shared_ext} $libname.a'
12942 dynamic_linker='OS/2 ld.exe'
12943 shlibpath_var=LIBPATH
12946 osf3* | osf4* | osf5*)
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12952 shlibpath_var=LD_LIBRARY_PATH
12953 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12954 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12962 version_type=linux # correct to gnu/linux during the next big refactor
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12969 hardcode_into_libs=yes
12970 # ldd complains unless libraries are executable
12971 postinstall_cmds='chmod +x $lib'
12976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12977 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=yes
12980 if test "$with_gnu_ld" = yes; then
12987 version_type=linux # correct to gnu/linux during the next big refactor
12988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 shlibpath_var=LD_LIBRARY_PATH
12991 case $host_vendor in
12993 shlibpath_overrides_runpath=no
12995 runpath_var=LD_RUN_PATH
13003 shlibpath_overrides_runpath=no
13004 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13010 if test -d /usr/nec ;then
13011 version_type=linux # correct to gnu/linux during the next big refactor
13012 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13013 soname_spec='$libname${shared_ext}.$major'
13014 shlibpath_var=LD_LIBRARY_PATH
13018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13019 version_type=freebsd-elf
13022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 shlibpath_var=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath=yes
13026 hardcode_into_libs=yes
13027 if test "$with_gnu_ld" = yes; then
13028 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13030 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13033 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13037 sys_lib_dlsearch_path_spec='/usr/lib'
13041 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13042 version_type=linux # correct to gnu/linux during the next big refactor
13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13046 shlibpath_var=LD_LIBRARY_PATH
13047 shlibpath_overrides_runpath=no
13048 hardcode_into_libs=yes
13052 version_type=linux # correct to gnu/linux during the next big refactor
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054 soname_spec='${libname}${release}${shared_ext}$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13063 $as_echo "$dynamic_linker" >&6; }
13064 test "$dynamic_linker" = no && can_build_shared=no
13066 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13067 if test "$GCC" = yes; then
13068 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13071 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13072 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13074 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13170 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13172 if test -n "$hardcode_libdir_flag_spec" ||
13173 test -n "$runpath_var" ||
13174 test "X$hardcode_automatic" = "Xyes" ; then
13176 # We can hardcode non-existent directories.
13177 if test "$hardcode_direct" != no &&
13178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13179 # have to relink, otherwise we might link with an installed library
13180 # when we should be linking with a yet-to-be-installed one
13181 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13182 test "$hardcode_minus_L" != no; then
13183 # Linking always hardcodes the temporary library directory.
13184 hardcode_action=relink
13186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13187 hardcode_action=immediate
13190 # We cannot hardcode anything, or else we can only hardcode existing
13192 hardcode_action=unsupported
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13195 $as_echo "$hardcode_action" >&6; }
13197 if test "$hardcode_action" = relink ||
13198 test "$inherit_rpath" = yes; then
13199 # Fast installation is not supported
13200 enable_fast_install=no
13201 elif test "$shlibpath_overrides_runpath" = yes ||
13202 test "$enable_shared" = no; then
13203 # Fast installation is not necessary
13204 enable_fast_install=needless
13212 if test "x$enable_dlopen" != xyes; then
13213 enable_dlopen=unknown
13214 enable_dlopen_self=unknown
13215 enable_dlopen_self_static=unknown
13222 lt_cv_dlopen="load_add_on"
13224 lt_cv_dlopen_self=yes
13227 mingw* | pw32* | cegcc*)
13228 lt_cv_dlopen="LoadLibrary"
13233 lt_cv_dlopen="dlopen"
13238 # if libdl is installed we need to link against it
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13241 if ${ac_cv_lib_dl_dlopen+:} false; then :
13242 $as_echo_n "(cached) " >&6
13244 ac_check_lib_save_LIBS=$LIBS
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13264 if ac_fn_c_try_link "$LINENO"; then :
13265 ac_cv_lib_dl_dlopen=yes
13267 ac_cv_lib_dl_dlopen=no
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13274 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13275 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13279 lt_cv_dlopen="dyld"
13281 lt_cv_dlopen_self=yes
13288 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13289 if test "x$ac_cv_func_shl_load" = xyes; then :
13290 lt_cv_dlopen="shl_load"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13293 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13294 if ${ac_cv_lib_dld_shl_load+:} false; then :
13295 $as_echo_n "(cached) " >&6
13297 ac_check_lib_save_LIBS=$LIBS
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13312 return shl_load ();
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 ac_cv_lib_dld_shl_load=yes
13320 ac_cv_lib_dld_shl_load=no
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13327 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13328 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13329 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13331 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13332 if test "x$ac_cv_func_dlopen" = xyes; then :
13333 lt_cv_dlopen="dlopen"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13336 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13337 if ${ac_cv_lib_dl_dlopen+:} false; then :
13338 $as_echo_n "(cached) " >&6
13340 ac_check_lib_save_LIBS=$LIBS
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 ac_cv_lib_dl_dlopen=yes
13363 ac_cv_lib_dl_dlopen=no
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS=$ac_check_lib_save_LIBS
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13370 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13371 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13372 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13375 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13376 if ${ac_cv_lib_svld_dlopen+:} false; then :
13377 $as_echo_n "(cached) " >&6
13379 ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lsvld $LIBS"
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 ac_cv_lib_svld_dlopen=yes
13402 ac_cv_lib_svld_dlopen=no
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13409 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13410 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13414 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13415 if ${ac_cv_lib_dld_dld_link+:} false; then :
13416 $as_echo_n "(cached) " >&6
13418 ac_check_lib_save_LIBS=$LIBS
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13433 return dld_link ();
13438 if ac_fn_c_try_link "$LINENO"; then :
13439 ac_cv_lib_dld_dld_link=yes
13441 ac_cv_lib_dld_dld_link=no
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13448 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13449 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13450 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13471 if test "x$lt_cv_dlopen" != xno; then
13477 case $lt_cv_dlopen in
13479 save_CPPFLAGS="$CPPFLAGS"
13480 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13482 save_LDFLAGS="$LDFLAGS"
13483 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13486 LIBS="$lt_cv_dlopen_libs $LIBS"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13489 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13490 if ${lt_cv_dlopen_self+:} false; then :
13491 $as_echo_n "(cached) " >&6
13493 if test "$cross_compiling" = yes; then :
13494 lt_cv_dlopen_self=cross
13496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13497 lt_status=$lt_dlunknown
13498 cat > conftest.$ac_ext <<_LT_EOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13509 # define LT_DLGLOBAL RTLD_GLOBAL
13512 # define LT_DLGLOBAL DL_GLOBAL
13514 # define LT_DLGLOBAL 0
13518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13519 find out it does not work in some platform. */
13520 #ifndef LT_DLLAZY_OR_NOW
13522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13525 # define LT_DLLAZY_OR_NOW DL_LAZY
13528 # define LT_DLLAZY_OR_NOW RTLD_NOW
13531 # define LT_DLLAZY_OR_NOW DL_NOW
13533 # define LT_DLLAZY_OR_NOW 0
13540 /* When -fvisbility=hidden is used, assume the code has been annotated
13541 correspondingly for the symbols needed. */
13542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13543 int fnord () __attribute__((visibility("default")));
13546 int fnord () { return 42; }
13549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13550 int status = $lt_dlunknown;
13554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13558 else puts (dlerror ());
13560 /* dlclose (self); */
13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13569 (eval $ac_link) 2>&5
13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13573 (./conftest; exit; ) >&5 2>/dev/null
13575 case x$lt_status in
13576 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13577 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13578 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13581 # compilation failed
13582 lt_cv_dlopen_self=no
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13590 $as_echo "$lt_cv_dlopen_self" >&6; }
13592 if test "x$lt_cv_dlopen_self" = xyes; then
13593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13595 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13596 if ${lt_cv_dlopen_self_static+:} false; then :
13597 $as_echo_n "(cached) " >&6
13599 if test "$cross_compiling" = yes; then :
13600 lt_cv_dlopen_self_static=cross
13602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13603 lt_status=$lt_dlunknown
13604 cat > conftest.$ac_ext <<_LT_EOF
13605 #line $LINENO "configure"
13606 #include "confdefs.h"
13615 # define LT_DLGLOBAL RTLD_GLOBAL
13618 # define LT_DLGLOBAL DL_GLOBAL
13620 # define LT_DLGLOBAL 0
13624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13625 find out it does not work in some platform. */
13626 #ifndef LT_DLLAZY_OR_NOW
13628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13631 # define LT_DLLAZY_OR_NOW DL_LAZY
13634 # define LT_DLLAZY_OR_NOW RTLD_NOW
13637 # define LT_DLLAZY_OR_NOW DL_NOW
13639 # define LT_DLLAZY_OR_NOW 0
13646 /* When -fvisbility=hidden is used, assume the code has been annotated
13647 correspondingly for the symbols needed. */
13648 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13649 int fnord () __attribute__((visibility("default")));
13652 int fnord () { return 42; }
13655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13656 int status = $lt_dlunknown;
13660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13664 else puts (dlerror ());
13666 /* dlclose (self); */
13674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13675 (eval $ac_link) 2>&5
13677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13678 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13679 (./conftest; exit; ) >&5 2>/dev/null
13681 case x$lt_status in
13682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13684 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13687 # compilation failed
13688 lt_cv_dlopen_self_static=no
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13696 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13699 CPPFLAGS="$save_CPPFLAGS"
13700 LDFLAGS="$save_LDFLAGS"
13705 case $lt_cv_dlopen_self in
13706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13707 *) enable_dlopen_self=unknown ;;
13710 case $lt_cv_dlopen_self_static in
13711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13712 *) enable_dlopen_self_static=unknown ;;
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13735 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13736 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13742 # FIXME - insert some real tests, host_os isn't really good enough
13745 if test -n "$STRIP" ; then
13746 striplib="$STRIP -x"
13747 old_striplib="$STRIP -S"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13749 $as_echo "yes" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13773 # Report which library types will actually be built
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13775 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13777 $as_echo "$can_build_shared" >&6; }
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13780 $as_echo_n "checking whether to build shared libraries... " >&6; }
13781 test "$can_build_shared" = "no" && enable_shared=no
13783 # On AIX, shared libraries and static libraries use the same namespace, and
13784 # are all built from PIC.
13787 test "$enable_shared" = yes && enable_static=no
13788 if test -n "$RANLIB"; then
13789 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13790 postinstall_cmds='$RANLIB $lib'
13795 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13796 test "$enable_shared" = yes && enable_static=no
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13801 $as_echo "$enable_shared" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13804 $as_echo_n "checking whether to build static libraries... " >&6; }
13805 # Make sure either enable_shared or enable_static is yes.
13806 test "$enable_shared" = yes || enable_static=yes
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13808 $as_echo "$enable_static" >&6; }
13815 ac_cpp='$CPP $CPPFLAGS'
13816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836 ac_config_commands="$ac_config_commands libtool"
13841 # Only expand once:
13846 # Checks for header files.
13847 for ac_header in stdarg.h stdbool.h netinet/in.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
13849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13850 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13863 # Using own tests for int64* because autoconf builtin only give 32bit.
13864 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13865 if test "x$ac_cv_type_int8_t" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define int8_t signed char
13875 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13876 if test "x$ac_cv_type_int16_t" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define int16_t short
13886 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13887 if test "x$ac_cv_type_int32_t" = xyes; then :
13891 cat >>confdefs.h <<_ACEOF
13892 #define int32_t int
13897 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13898 if test "x$ac_cv_type_int64_t" = xyes; then :
13902 cat >>confdefs.h <<_ACEOF
13903 #define int64_t long long
13908 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13909 if test "x$ac_cv_type_uint8_t" = xyes; then :
13913 cat >>confdefs.h <<_ACEOF
13914 #define uint8_t unsigned char
13919 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13920 if test "x$ac_cv_type_uint16_t" = xyes; then :
13924 cat >>confdefs.h <<_ACEOF
13925 #define uint16_t unsigned short
13930 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13931 if test "x$ac_cv_type_uint32_t" = xyes; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define uint32_t unsigned int
13941 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13942 if test "x$ac_cv_type_uint64_t" = xyes; then :
13946 cat >>confdefs.h <<_ACEOF
13947 #define uint64_t unsigned long long
13952 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13953 if test "x$ac_cv_type_size_t" = xyes; then :
13957 cat >>confdefs.h <<_ACEOF
13958 #define size_t unsigned int
13963 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13964 if test "x$ac_cv_type_ssize_t" = xyes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define ssize_t int
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13975 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13976 if ${ac_cv_type_uid_t+:} false; then :
13977 $as_echo_n "(cached) " >&6
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 #include <sys/types.h>
13984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "uid_t" >/dev/null 2>&1; then :
13986 ac_cv_type_uid_t=yes
13988 ac_cv_type_uid_t=no
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13994 $as_echo "$ac_cv_type_uid_t" >&6; }
13995 if test $ac_cv_type_uid_t = no; then
13997 $as_echo "#define uid_t int" >>confdefs.h
14000 $as_echo "#define gid_t int" >>confdefs.h
14004 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14005 if test "x$ac_cv_type_pid_t" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14015 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14016 if test "x$ac_cv_type_off_t" = xyes; then :
14020 cat >>confdefs.h <<_ACEOF
14021 #define off_t long int
14026 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14027 $ac_includes_default
14028 #ifdef HAVE_WINSOCK2_H
14029 # include <winsock2.h>
14033 if test "x$ac_cv_type_u_char" = xyes; then :
14037 $as_echo "#define u_char unsigned char" >>confdefs.h
14041 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14042 $ac_includes_default
14043 #ifdef HAVE_SYS_RESOURCE_H
14044 # include <sys/resource.h>
14048 if test "x$ac_cv_type_rlim_t" = xyes; then :
14052 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14057 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14058 $ac_includes_default
14059 #ifdef HAVE_SYS_SOCKET_H
14060 # include <sys/socket.h>
14062 #ifdef HAVE_WS2TCPIP_H
14063 # include <ws2tcpip.h>
14067 if test "x$ac_cv_type_socklen_t" = xyes; then :
14071 $as_echo "#define socklen_t int" >>confdefs.h
14075 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14076 $ac_includes_default
14077 #ifdef HAVE_SYS_TYPES_H
14078 # include <sys/types.h>
14080 #ifdef HAVE_NETINET_IN_H
14081 # include <netinet/in.h>
14085 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14089 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14093 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14094 $ac_includes_default
14095 #ifdef HAVE_SYS_TYPES_H
14096 # include <sys/types.h>
14098 #ifdef HAVE_NETINET_IN_H
14099 # include <netinet/in.h>
14103 if test "x$ac_cv_type_in_port_t" = xyes; then :
14107 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14112 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14113 if test "$cross_compiling" = yes; then :
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14115 $as_echo "cross-compile no" >&6; }
14117 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14119 case " $LIBOBJS " in
14120 *" memcmp.$ac_objext "* ) ;;
14121 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14131 #include <stdlib.h>
14132 #include <string.h>
14135 char a = 255, b = 0;
14136 if(memcmp(&a, &b, 1) < 0)
14142 if ac_fn_c_try_run "$LINENO"; then :
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14144 $as_echo "yes" >&6; }
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14147 $as_echo "no" >&6; }
14149 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14151 case " $LIBOBJS " in
14152 *" memcmp.$ac_objext "* ) ;;
14153 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14160 conftest.$ac_objext conftest.beam conftest.$ac_ext
14164 # The cast to long int works around a bug in the HP C Compiler
14165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14167 # This bug is HP SR number 8606223364.
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14169 $as_echo_n "checking size of time_t... " >&6; }
14170 if ${ac_cv_sizeof_time_t+:} false; then :
14171 $as_echo_n "(cached) " >&6
14173 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14174 $ac_includes_default
14175 #ifdef TIME_WITH_SYS_TIME
14176 # include <sys/time.h>
14179 # ifdef HAVE_SYS_TIME_H
14180 # include <sys/time.h>
14189 if test "$ac_cv_type_time_t" = yes; then
14190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14192 as_fn_error 77 "cannot compute sizeof (time_t)
14193 See \`config.log' for more details" "$LINENO" 5; }
14195 ac_cv_sizeof_time_t=0
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14201 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14205 cat >>confdefs.h <<_ACEOF
14206 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14211 # add option to disable the evil rpath
14213 # Check whether --enable-rpath was given.
14214 if test "${enable_rpath+set}" = set; then :
14215 enableval=$enable_rpath; enable_rpath=$enableval
14220 if test "x$enable_rpath" = xno; then
14221 ac_config_commands="$ac_config_commands disable-rpath"
14227 # check to see if libraries are needed for these functions.
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14229 $as_echo_n "checking for library containing inet_pton... " >&6; }
14230 if ${ac_cv_search_inet_pton+:} false; then :
14231 $as_echo_n "(cached) " >&6
14233 ac_func_search_save_LIBS=$LIBS
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14247 return inet_pton ();
14252 for ac_lib in '' nsl; do
14253 if test -z "$ac_lib"; then
14254 ac_res="none required"
14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14259 if ac_fn_c_try_link "$LINENO"; then :
14260 ac_cv_search_inet_pton=$ac_res
14262 rm -f core conftest.err conftest.$ac_objext \
14264 if ${ac_cv_search_inet_pton+:} false; then :
14268 if ${ac_cv_search_inet_pton+:} false; then :
14271 ac_cv_search_inet_pton=no
14273 rm conftest.$ac_ext
14274 LIBS=$ac_func_search_save_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14277 $as_echo "$ac_cv_search_inet_pton" >&6; }
14278 ac_res=$ac_cv_search_inet_pton
14279 if test "$ac_res" != no; then :
14280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14285 $as_echo_n "checking for library containing socket... " >&6; }
14286 if ${ac_cv_search_socket+:} false; then :
14287 $as_echo_n "(cached) " >&6
14289 ac_func_search_save_LIBS=$LIBS
14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14293 /* Override any GCC internal prototype to avoid an error.
14294 Use char because int might match the return type of a GCC
14295 builtin and then its argument prototype would still apply. */
14308 for ac_lib in '' socket; do
14309 if test -z "$ac_lib"; then
14310 ac_res="none required"
14313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14315 if ac_fn_c_try_link "$LINENO"; then :
14316 ac_cv_search_socket=$ac_res
14318 rm -f core conftest.err conftest.$ac_objext \
14320 if ${ac_cv_search_socket+:} false; then :
14324 if ${ac_cv_search_socket+:} false; then :
14327 ac_cv_search_socket=no
14329 rm conftest.$ac_ext
14330 LIBS=$ac_func_search_save_LIBS
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14333 $as_echo "$ac_cv_search_socket" >&6; }
14334 ac_res=$ac_cv_search_socket
14335 if test "$ac_res" != no; then :
14336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14341 # check wether strptime also works
14343 # check some functions of the OS before linking libs (while still runnable).
14344 for ac_header in unistd.h
14346 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14347 if test "x$ac_cv_header_unistd_h" = xyes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_UNISTD_H 1
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14357 $as_echo_n "checking for working chown... " >&6; }
14358 if ${ac_cv_func_chown_works+:} false; then :
14359 $as_echo_n "(cached) " >&6
14361 if test "$cross_compiling" = yes; then :
14362 ac_cv_func_chown_works=no
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 $ac_includes_default
14372 char *f = "conftest.chown";
14373 struct stat before, after;
14375 if (creat (f, 0600) < 0)
14377 if (stat (f, &before) < 0)
14379 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14381 if (stat (f, &after) < 0)
14383 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14389 if ac_fn_c_try_run "$LINENO"; then :
14390 ac_cv_func_chown_works=yes
14392 ac_cv_func_chown_works=no
14394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14395 conftest.$ac_objext conftest.beam conftest.$ac_ext
14398 rm -f conftest.chown
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14402 $as_echo "$ac_cv_func_chown_works" >&6; }
14403 if test $ac_cv_func_chown_works = yes; then
14405 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14409 for ac_header in vfork.h
14411 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14412 if test "x$ac_cv_header_vfork_h" = xyes; then :
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_VFORK_H 1
14421 for ac_func in fork vfork
14423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14425 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14426 cat >>confdefs.h <<_ACEOF
14427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14433 if test "x$ac_cv_func_fork" = xyes; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14435 $as_echo_n "checking for working fork... " >&6; }
14436 if ${ac_cv_func_fork_works+:} false; then :
14437 $as_echo_n "(cached) " >&6
14439 if test "$cross_compiling" = yes; then :
14440 ac_cv_func_fork_works=cross
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 $ac_includes_default
14449 /* By Ruediger Kuhlmann. */
14450 return fork () < 0;
14456 if ac_fn_c_try_run "$LINENO"; then :
14457 ac_cv_func_fork_works=yes
14459 ac_cv_func_fork_works=no
14461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14462 conftest.$ac_objext conftest.beam conftest.$ac_ext
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14467 $as_echo "$ac_cv_func_fork_works" >&6; }
14470 ac_cv_func_fork_works=$ac_cv_func_fork
14472 if test "x$ac_cv_func_fork_works" = xcross; then
14474 *-*-amigaos* | *-*-msdosdjgpp*)
14475 # Override, as these systems have only a dummy fork() stub
14476 ac_cv_func_fork_works=no
14479 ac_cv_func_fork_works=yes
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14483 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14485 ac_cv_func_vfork_works=$ac_cv_func_vfork
14486 if test "x$ac_cv_func_vfork" = xyes; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14488 $as_echo_n "checking for working vfork... " >&6; }
14489 if ${ac_cv_func_vfork_works+:} false; then :
14490 $as_echo_n "(cached) " >&6
14492 if test "$cross_compiling" = yes; then :
14493 ac_cv_func_vfork_works=cross
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 /* Thanks to Paul Eggert for this test. */
14498 $ac_includes_default
14499 #include <sys/wait.h>
14500 #ifdef HAVE_VFORK_H
14501 # include <vfork.h>
14503 /* On some sparc systems, changes by the child to local and incoming
14504 argument registers are propagated back to the parent. The compiler
14505 is told about this with #include <vfork.h>, but some compilers
14506 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14507 static variable whose address is put into a register that is
14508 clobbered by the vfork. */
14511 sparc_address_test (int arg)
14513 sparc_address_test (arg) int arg;
14516 static pid_t child;
14534 pid_t parent = getpid ();
14537 sparc_address_test (0);
14542 /* Here is another test for sparc vfork register problems. This
14543 test uses lots of local variables, at least as many local
14544 variables as main has allocated so far including compiler
14545 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14546 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14547 reuse the register of parent for one of the local variables,
14548 since it will think that parent can't possibly be used any more
14549 in this routine. Assigning to the local variable will thus
14550 munge parent in the parent process. */
14552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14554 /* Convince the compiler that p..p7 are live; otherwise, it might
14555 use the same hardware register for all 8 local variables. */
14556 if (p != p1 || p != p2 || p != p3 || p != p4
14557 || p != p5 || p != p6 || p != p7)
14560 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14561 from child file descriptors. If the child closes a descriptor
14562 before it execs or exits, this munges the parent's descriptor
14563 as well. Test for this by closing stdout in the child. */
14564 _exit(close(fileno(stdout)) != 0);
14569 while (wait(&status) != child)
14572 /* Was there some problem with vforking? */
14575 /* Did the child fail? (This shouldn't happen.) */
14578 /* Did the vfork/compiler bug occur? */
14579 || parent != getpid()
14581 /* Did the file descriptor bug occur? */
14582 || fstat(fileno(stdout), &st) != 0
14587 if ac_fn_c_try_run "$LINENO"; then :
14588 ac_cv_func_vfork_works=yes
14590 ac_cv_func_vfork_works=no
14592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14593 conftest.$ac_objext conftest.beam conftest.$ac_ext
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14598 $as_echo "$ac_cv_func_vfork_works" >&6; }
14601 if test "x$ac_cv_func_fork_works" = xcross; then
14602 ac_cv_func_vfork_works=$ac_cv_func_vfork
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14604 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14607 if test "x$ac_cv_func_vfork_works" = xyes; then
14609 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14613 $as_echo "#define vfork fork" >>confdefs.h
14616 if test "x$ac_cv_func_fork_works" = xyes; then
14618 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14623 $as_echo_n "checking return type of signal handlers... " >&6; }
14624 if ${ac_cv_type_signal+:} false; then :
14625 $as_echo_n "(cached) " >&6
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629 #include <sys/types.h>
14630 #include <signal.h>
14635 return *(signal (0, 0)) (0) == 1;
14640 if ac_fn_c_try_compile "$LINENO"; then :
14641 ac_cv_type_signal=int
14643 ac_cv_type_signal=void
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14648 $as_echo "$ac_cv_type_signal" >&6; }
14650 cat >>confdefs.h <<_ACEOF
14651 #define RETSIGTYPE $ac_cv_type_signal
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14656 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14657 if ${ac_cv_sys_largefile_source+:} false; then :
14658 $as_echo_n "(cached) " >&6
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663 #include <sys/types.h> /* for off_t */
14668 int (*fp) (FILE *, off_t, int) = fseeko;
14669 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14674 if ac_fn_c_try_link "$LINENO"; then :
14675 ac_cv_sys_largefile_source=no; break
14677 rm -f core conftest.err conftest.$ac_objext \
14678 conftest$ac_exeext conftest.$ac_ext
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 #define _LARGEFILE_SOURCE 1
14682 #include <sys/types.h> /* for off_t */
14687 int (*fp) (FILE *, off_t, int) = fseeko;
14688 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 ac_cv_sys_largefile_source=1; break
14696 rm -f core conftest.err conftest.$ac_objext \
14697 conftest$ac_exeext conftest.$ac_ext
14698 ac_cv_sys_largefile_source=unknown
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14703 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14704 case $ac_cv_sys_largefile_source in #(
14707 cat >>confdefs.h <<_ACEOF
14708 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14714 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14715 # in glibc 2.1.3, but that breaks too many other things.
14716 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14717 if test $ac_cv_sys_largefile_source != unknown; then
14719 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14724 # Check whether --enable-largefile was given.
14725 if test "${enable_largefile+set}" = set; then :
14726 enableval=$enable_largefile;
14729 if test "$enable_largefile" != no; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14732 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14733 if ${ac_cv_sys_largefile_CC+:} false; then :
14734 $as_echo_n "(cached) " >&6
14736 ac_cv_sys_largefile_CC=no
14737 if test "$GCC" != yes; then
14740 # IRIX 6.2 and later do not support large files by default,
14741 # so use the C compiler's -n32 option if that helps.
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 #include <sys/types.h>
14745 /* Check that off_t can represent 2**63 - 1 correctly.
14746 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14747 since some C++ compilers masquerading as C compilers
14748 incorrectly reject 9223372036854775807. */
14749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14750 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14751 && LARGE_OFF_T % 2147483647 == 1)
14761 if ac_fn_c_try_compile "$LINENO"; then :
14764 rm -f core conftest.err conftest.$ac_objext
14766 if ac_fn_c_try_compile "$LINENO"; then :
14767 ac_cv_sys_largefile_CC=' -n32'; break
14769 rm -f core conftest.err conftest.$ac_objext
14773 rm -f conftest.$ac_ext
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14777 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14778 if test "$ac_cv_sys_largefile_CC" != no; then
14779 CC=$CC$ac_cv_sys_largefile_CC
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14783 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14784 if ${ac_cv_sys_file_offset_bits+:} false; then :
14785 $as_echo_n "(cached) " >&6
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <sys/types.h>
14791 /* Check that off_t can represent 2**63 - 1 correctly.
14792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14793 since some C++ compilers masquerading as C compilers
14794 incorrectly reject 9223372036854775807. */
14795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14797 && LARGE_OFF_T % 2147483647 == 1)
14807 if ac_fn_c_try_compile "$LINENO"; then :
14808 ac_cv_sys_file_offset_bits=no; break
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 #define _FILE_OFFSET_BITS 64
14814 #include <sys/types.h>
14815 /* Check that off_t can represent 2**63 - 1 correctly.
14816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14817 since some C++ compilers masquerading as C compilers
14818 incorrectly reject 9223372036854775807. */
14819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14821 && LARGE_OFF_T % 2147483647 == 1)
14831 if ac_fn_c_try_compile "$LINENO"; then :
14832 ac_cv_sys_file_offset_bits=64; break
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 ac_cv_sys_file_offset_bits=unknown
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14840 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14841 case $ac_cv_sys_file_offset_bits in #(
14844 cat >>confdefs.h <<_ACEOF
14845 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14850 if test $ac_cv_sys_file_offset_bits = unknown; then
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14852 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14853 if ${ac_cv_sys_large_files+:} false; then :
14854 $as_echo_n "(cached) " >&6
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 #include <sys/types.h>
14860 /* Check that off_t can represent 2**63 - 1 correctly.
14861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14862 since some C++ compilers masquerading as C compilers
14863 incorrectly reject 9223372036854775807. */
14864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14866 && LARGE_OFF_T % 2147483647 == 1)
14876 if ac_fn_c_try_compile "$LINENO"; then :
14877 ac_cv_sys_large_files=no; break
14879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882 #define _LARGE_FILES 1
14883 #include <sys/types.h>
14884 /* Check that off_t can represent 2**63 - 1 correctly.
14885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14886 since some C++ compilers masquerading as C compilers
14887 incorrectly reject 9223372036854775807. */
14888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14890 && LARGE_OFF_T % 2147483647 == 1)
14900 if ac_fn_c_try_compile "$LINENO"; then :
14901 ac_cv_sys_large_files=1; break
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 ac_cv_sys_large_files=unknown
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14909 $as_echo "$ac_cv_sys_large_files" >&6; }
14910 case $ac_cv_sys_large_files in #(
14913 cat >>confdefs.h <<_ACEOF
14914 #define _LARGE_FILES $ac_cv_sys_large_files
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14928 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14929 cache=_D_LARGEFILE_SOURCE_1
14930 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14931 $as_echo_n "(cached) " >&6
14937 int a = fseeko(stdin, 0, 0);
14941 echo 'void f(){}' >>conftest.c
14942 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14943 eval "cv_prog_cc_flag_needed_$cache=no"
14946 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14947 eval "cv_prog_cc_flag_needed_$cache=yes"
14949 eval "cv_prog_cc_flag_needed_$cache=fail"
14950 #echo 'Test with flag fails too!'
14952 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14953 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14958 rm -f conftest conftest.c conftest.o
14962 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14964 $as_echo "yes" >&6; }
14966 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14968 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14970 $as_echo "no" >&6; }
14971 #echo 'Test with flag is no!'
14973 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14974 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14980 $as_echo "failed" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14989 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14990 if echo $target | grep mingw32 >/dev/null; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14992 $as_echo "no (windows)" >&6; }
14994 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14997 if test "$cross_compiling" = yes; then :
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15000 $as_echo "crosscompile(yes)" >&6; }
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15008 #include <string.h>
15009 #include <stdlib.h>
15012 #ifdef HAVE_SYS_TYPES_H
15013 #include <sys/types.h>
15015 #ifdef HAVE_SYS_SOCKET_H
15016 #include <sys/socket.h>
15018 #ifdef HAVE_NETINET_IN_H
15019 #include <netinet/in.h>
15021 #ifdef HAVE_ARPA_INET_H
15022 #include <arpa/inet.h>
15024 #ifdef HAVE_UNISTD_H
15025 #include <unistd.h>
15037 struct sockaddr_in a;
15038 /* test if select and nonblocking reads work well together */
15040 fork child to send 10 messages.
15042 then try to nonblocking read the 10 messages
15043 then, nonblocking read must give EAGAIN
15046 port = 12345 + (time(0)%32);
15047 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15052 memset(&a, 0, sizeof(a));
15053 a.sin_family = AF_INET;
15054 a.sin_port = htons(port);
15055 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15056 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15060 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15065 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15067 perror("client socket");
15071 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15072 perror("client bind");
15075 a.sin_port = htons(port);
15077 /* no handler, causes exit in 10 seconds */
15080 /* send and receive on the socket */
15081 if((p=fork()) == 0) {
15082 for(i=0; i<num; i++) {
15083 if(sendto(cfd, &i, sizeof(i), 0,
15084 (struct sockaddr*)&a, sizeof(a)) < 0) {
15098 FD_SET(sfd, &rset);
15099 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15105 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15106 if(errno == EAGAIN)
15113 /* now we want to get EAGAIN: nonblocking goodness */
15115 recv(sfd, &x, sizeof(x), 0);
15116 if(errno != EAGAIN) {
15117 perror("trying to recv again");
15120 /* EAGAIN encountered */
15129 if ac_fn_c_try_run "$LINENO"; then :
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132 $as_echo "yes" >&6; }
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15137 $as_echo "no" >&6; }
15139 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15144 conftest.$ac_objext conftest.beam conftest.$ac_ext
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15151 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15156 #include <unistd.h>
15157 #ifdef HAVE_WINSOCK2_H
15158 #include <winsock2.h>
15160 #ifdef HAVE_SYS_STAT_H
15161 #include <sys/stat.h>
15168 (void)mkdir("directory");
15174 if ac_fn_c_try_compile "$LINENO"; then :
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176 $as_echo "yes" >&6; }
15178 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15183 $as_echo "no" >&6; }
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 for ac_func in strptime
15190 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15191 if test "x$ac_cv_func_strptime" = xyes; then :
15192 cat >>confdefs.h <<_ACEOF
15193 #define HAVE_STRPTIME 1
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15197 $as_echo_n "checking whether strptime works... " >&6; }
15198 if test c${cross_compiling} = cno; then
15199 if test "$cross_compiling" = yes; then :
15200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15202 as_fn_error $? "cannot run test program while cross compiling
15203 See \`config.log' for more details" "$LINENO" 5; }
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15208 #define _XOPEN_SOURCE 600
15210 int main(void) { struct tm tm; char *res;
15211 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);
15212 if (!res) return 2;
15213 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15214 if (!res) return 1; return 0; }
15217 if ac_fn_c_try_run "$LINENO"; then :
15218 eval "ac_cv_c_strptime_works=yes"
15220 eval "ac_cv_c_strptime_works=no"
15222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15223 conftest.$ac_objext conftest.beam conftest.$ac_ext
15227 eval "ac_cv_c_strptime_works=maybe"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15230 $as_echo "$ac_cv_c_strptime_works" >&6; }
15231 if test $ac_cv_c_strptime_works = no; then
15232 case " $LIBOBJS " in
15233 *" strptime.$ac_objext "* ) ;;
15234 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15240 cat >>confdefs.h <<_ACEOF
15241 #define STRPTIME_WORKS 1
15247 case " $LIBOBJS " in
15248 *" strptime.$ac_objext "* ) ;;
15249 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15257 # set memory allocation checking if requested
15258 # Check whether --enable-alloc-checks was given.
15259 if test "${enable_alloc_checks+set}" = set; then :
15260 enableval=$enable_alloc_checks;
15263 # Check whether --enable-alloc-lite was given.
15264 if test "${enable_alloc_lite+set}" = set; then :
15265 enableval=$enable_alloc_lite;
15268 # Check whether --enable-alloc-nonregional was given.
15269 if test "${enable_alloc_nonregional+set}" = set; then :
15270 enableval=$enable_alloc_nonregional;
15273 if test x_$enable_alloc_nonregional = x_yes; then
15275 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15278 if test x_$enable_alloc_checks = x_yes; then
15280 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15283 if test x_$enable_alloc_lite = x_yes; then
15285 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15290 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15291 if test "$cross_compiling" = yes; then :
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15293 $as_echo "no (crosscompile)" >&6; }
15294 case " $LIBOBJS " in
15295 *" malloc.$ac_objext "* ) ;;
15296 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15301 cat >>confdefs.h <<_ACEOF
15302 #define malloc rpl_malloc_unbound
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15309 #include <stdlib.h>
15317 if(malloc(0) != 0) return 1;
15323 if ac_fn_c_try_run "$LINENO"; then :
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15326 case " $LIBOBJS " in
15327 *" malloc.$ac_objext "* ) ;;
15328 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15333 cat >>confdefs.h <<_ACEOF
15334 #define malloc rpl_malloc_unbound
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15339 $as_echo "yes" >&6; }
15341 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15345 conftest.$ac_objext conftest.beam conftest.$ac_ext
15352 # check windows threads (we use them, not pthreads, on windows).
15353 if test "$on_mingw" = "yes"; then
15354 # check windows threads
15355 for ac_header in windows.h
15357 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15359 if test "x$ac_cv_header_windows_h" = xyes; then :
15360 cat >>confdefs.h <<_ACEOF
15361 #define HAVE_WINDOWS_H 1
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15369 $as_echo_n "checking for CreateThread... " >&6; }
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15373 #ifdef HAVE_WINDOWS_H
15374 #include <windows.h>
15381 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15387 if ac_fn_c_try_compile "$LINENO"; then :
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15389 $as_echo "yes" >&6; }
15391 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15396 $as_echo "no" >&6; }
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15402 # not on mingw, check thread libraries.
15404 # check for thread library.
15405 # check this first, so that the pthread lib does not get linked in via
15406 # libssl or libpython, and thus distorts the tests, and we end up using
15407 # the non-threadsafe C libraries.
15409 # Check whether --with-pthreads was given.
15410 if test "${with_pthreads+set}" = set; then :
15411 withval=$with_pthreads;
15416 ub_have_pthreads=no
15417 if test x_$withval != x_no; then
15421 ac_cpp='$CPP $CPPFLAGS'
15422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428 # We used to check for pthread.h first, but this fails if pthread.h
15429 # requires special compiler flags (e.g. on True64 or Sequent).
15430 # It gets checked for in the link test anyway.
15432 # First of all, check if the user has set any of the PTHREAD_LIBS,
15433 # etcetera environment variables, and if threads linking works using
15435 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15436 save_CFLAGS="$CFLAGS"
15437 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15439 LIBS="$PTHREAD_LIBS $LIBS"
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15441 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15445 /* Override any GCC internal prototype to avoid an error.
15446 Use char because int might match the return type of a GCC
15447 builtin and then its argument prototype would still apply. */
15451 char pthread_join ();
15455 return pthread_join ();
15460 if ac_fn_c_try_link "$LINENO"; then :
15463 rm -f core conftest.err conftest.$ac_objext \
15464 conftest$ac_exeext conftest.$ac_ext
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15466 $as_echo "$ax_pthread_ok" >&6; }
15467 if test x"$ax_pthread_ok" = xno; then
15472 CFLAGS="$save_CFLAGS"
15475 # We must check for the threads library under a number of different
15476 # names; the ordering is very important because some systems
15477 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15478 # libraries is broken (non-POSIX).
15480 # Create a list of thread flags to try. Items starting with a "-" are
15481 # C compiler flags, and other items are library names, except for "none"
15482 # which indicates that we try without any flags at all, and "pthread-config"
15483 # which is a program returning the flags for the Pth emulation library.
15485 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15487 # The ordering *is* (sometimes) important. Some notes on the
15488 # individual items follow:
15490 # pthreads: AIX (must check this before -lpthread)
15491 # none: in case threads are in libc; should be tried before -Kthread and
15492 # other compiler flags to prevent continual compiler warnings
15493 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15494 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15495 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15496 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15497 # -pthreads: Solaris/gcc
15498 # -mthreads: Mingw32/gcc, Lynx/gcc
15499 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15500 # doesn't hurt to check since this sometimes defines pthreads too;
15501 # also defines -D_REENTRANT)
15502 # ... -mt is also the pthreads flag for HP/aCC
15503 # pthread: Linux, etcetera
15504 # --thread-safe: KAI C++
15505 # pthread-config: use pthread-config program (for GNU Pth library)
15510 # On Solaris (at least, for some versions), libc contains stubbed
15511 # (non-functional) versions of the pthreads routines, so link-based
15512 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15513 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15514 # a function called by this macro, so we could check for that, but
15515 # who knows whether they'll stub that too in a future libc.) So,
15516 # we'll just look for -pthreads and -lpthread first:
15518 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15522 ax_pthread_flags="-pthread $ax_pthread_flags"
15526 if test x"$ax_pthread_ok" = xno; then
15527 for flag in $ax_pthread_flags; do
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15532 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15537 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15538 PTHREAD_CFLAGS="$flag"
15542 # Extract the first word of "pthread-config", so it can be a program name with args.
15543 set dummy pthread-config; ac_word=$2
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15545 $as_echo_n "checking for $ac_word... " >&6; }
15546 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15547 $as_echo_n "(cached) " >&6
15549 if test -n "$ax_pthread_config"; then
15550 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15553 for as_dir in $PATH
15556 test -z "$as_dir" && as_dir=.
15557 for ac_exec_ext in '' $ac_executable_extensions; do
15558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15559 ac_cv_prog_ax_pthread_config="yes"
15560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15567 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15570 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15571 if test -n "$ax_pthread_config"; then
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15573 $as_echo "$ax_pthread_config" >&6; }
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15580 if test x"$ax_pthread_config" = xno; then continue; fi
15581 PTHREAD_CFLAGS="`pthread-config --cflags`"
15582 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15587 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15588 PTHREAD_LIBS="-l$flag"
15593 save_CFLAGS="$CFLAGS"
15594 LIBS="$PTHREAD_LIBS $LIBS"
15595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15597 # Check for various functions. We must include pthread.h,
15598 # since some functions may be macros. (On the Sequent, we
15599 # need a special flag -Kthread to make this header compile.)
15600 # We check for pthread_join because it is in -lpthread on IRIX
15601 # while pthread_create is in libc. We check for pthread_attr_init
15602 # due to DEC craziness with -lpthreads. We check for
15603 # pthread_cleanup_push because it is one of the few pthread
15604 # functions on Solaris that doesn't have a non-functional libc stub.
15605 # We try pthread_create on general principles.
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 #include <pthread.h>
15609 static void routine(void *a) { *((int*)a) = 0; }
15610 static void *start_routine(void *a) { return a; }
15614 pthread_t th; pthread_attr_t attr;
15615 pthread_create(&th, 0, start_routine, 0);
15616 pthread_join(th, 0);
15617 pthread_attr_init(&attr);
15618 pthread_cleanup_push(routine, 0);
15619 pthread_cleanup_pop(0) /* ; */
15624 if ac_fn_c_try_link "$LINENO"; then :
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15631 CFLAGS="$save_CFLAGS"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15634 $as_echo "$ax_pthread_ok" >&6; }
15635 if test "x$ax_pthread_ok" = xyes; then
15644 # Various other checks:
15645 if test "x$ax_pthread_ok" = xyes; then
15647 LIBS="$PTHREAD_LIBS $LIBS"
15648 save_CFLAGS="$CFLAGS"
15649 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15651 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15653 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15655 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <pthread.h>
15662 int attr = $attr; return attr /* ; */
15667 if ac_fn_c_try_link "$LINENO"; then :
15668 attr_name=$attr; break
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15674 $as_echo "$attr_name" >&6; }
15675 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15677 cat >>confdefs.h <<_ACEOF
15678 #define PTHREAD_CREATE_JOINABLE $attr_name
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15684 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15687 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15688 osf* | hpux*) flag="-D_REENTRANT";;
15690 if test "$GCC" = "yes"; then
15691 flag="-D_REENTRANT"
15693 flag="-mt -D_REENTRANT"
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15698 $as_echo "${flag}" >&6; }
15699 if test "x$flag" != xno; then
15700 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15704 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15705 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15706 $as_echo_n "(cached) " >&6
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15712 #include <pthread.h>
15716 int i = PTHREAD_PRIO_INHERIT;
15721 if ac_fn_c_try_link "$LINENO"; then :
15722 ax_cv_PTHREAD_PRIO_INHERIT=yes
15724 ax_cv_PTHREAD_PRIO_INHERIT=no
15726 rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15731 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15732 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15734 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15739 CFLAGS="$save_CFLAGS"
15741 # More AIX lossage: compile with *_r variant
15742 if test "x$GCC" != xyes; then
15746 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15747 #handle absolute path differently from PATH based program lookup
15750 if as_fn_executable_p ${CC}_r; then :
15751 PTHREAD_CC="${CC}_r"
15754 for ac_prog in ${CC}_r
15756 # Extract the first word of "$ac_prog", so it can be a program name with args.
15757 set dummy $ac_prog; ac_word=$2
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15759 $as_echo_n "checking for $ac_word... " >&6; }
15760 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15761 $as_echo_n "(cached) " >&6
15763 if test -n "$PTHREAD_CC"; then
15764 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15770 test -z "$as_dir" && as_dir=.
15771 for ac_exec_ext in '' $ac_executable_extensions; do
15772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15773 ac_cv_prog_PTHREAD_CC="$ac_prog"
15774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15784 if test -n "$PTHREAD_CC"; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15786 $as_echo "$PTHREAD_CC" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15793 test -n "$PTHREAD_CC" && break
15795 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15806 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15812 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15813 if test x"$ax_pthread_ok" = xyes; then
15816 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15818 LIBS="$PTHREAD_LIBS $LIBS"
15819 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15821 ub_have_pthreads=yes
15822 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15824 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15826 cat >>confdefs.h <<_ACEOF
15827 #define HAVE_PTHREAD_SPINLOCK_T 1
15832 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15834 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15836 cat >>confdefs.h <<_ACEOF
15837 #define HAVE_PTHREAD_RWLOCK_T 1
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15858 # check solaris thread library
15860 # Check whether --with-solaris-threads was given.
15861 if test "${with_solaris_threads+set}" = set; then :
15862 withval=$with_solaris_threads;
15867 ub_have_sol_threads=no
15868 if test x_$withval != x_no; then
15869 if test x_$ub_have_pthreads != x_no; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15871 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15874 $as_echo_n "checking for library containing thr_create... " >&6; }
15875 if ${ac_cv_search_thr_create+:} false; then :
15876 $as_echo_n "(cached) " >&6
15878 ac_func_search_save_LIBS=$LIBS
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15882 /* Override any GCC internal prototype to avoid an error.
15883 Use char because int might match the return type of a GCC
15884 builtin and then its argument prototype would still apply. */
15888 char thr_create ();
15892 return thr_create ();
15897 for ac_lib in '' thread; do
15898 if test -z "$ac_lib"; then
15899 ac_res="none required"
15902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15904 if ac_fn_c_try_link "$LINENO"; then :
15905 ac_cv_search_thr_create=$ac_res
15907 rm -f core conftest.err conftest.$ac_objext \
15909 if ${ac_cv_search_thr_create+:} false; then :
15913 if ${ac_cv_search_thr_create+:} false; then :
15916 ac_cv_search_thr_create=no
15918 rm conftest.$ac_ext
15919 LIBS=$ac_func_search_save_LIBS
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15922 $as_echo "$ac_cv_search_thr_create" >&6; }
15923 ac_res=$ac_cv_search_thr_create
15924 if test "$ac_res" != no; then :
15925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15928 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15934 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15935 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15936 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15937 $as_echo_n "(cached) " >&6
15940 echo 'void f(void){}' >conftest.c
15941 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15942 eval "cv_prog_cc_flag_$cache=yes"
15944 eval "cv_prog_cc_flag_$cache=no"
15946 rm -f conftest conftest.o conftest.c
15950 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15952 $as_echo "yes" >&6; }
15954 CFLAGS="$CFLAGS -mt"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15957 $as_echo "no" >&6; }
15959 CFLAGS="$CFLAGS -D_REENTRANT"
15962 ub_have_sol_threads=yes
15966 as_fn_error $? "no solaris threads found." "$LINENO" 5
15973 fi # end of non-mingw check of thread libraries
15975 # Check for PyUnbound
15977 # Check whether --with-pyunbound was given.
15978 if test "${with_pyunbound+set}" = set; then :
15979 withval=$with_pyunbound;
15986 ub_with_pyunbound=no
15987 if test x_$withval != x_no; then
15988 ub_with_pyunbound=yes
15992 # Check for Python module
15994 # Check whether --with-pythonmodule was given.
15995 if test "${with_pythonmodule+set}" = set; then :
15996 withval=$with_pythonmodule;
16002 ub_with_pythonmod=no
16003 if test x_$withval != x_no; then
16004 ub_with_pythonmod=yes
16008 # Check for Python & SWIG only on PyUnbound or PyModule
16009 if test x_$ub_test_python != x_no; then
16013 ac_save_LIBS="$LIBS"
16015 # Allow the use of a (user set) custom python version
16019 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16020 set dummy python$PYTHON_VERSION; ac_word=$2
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022 $as_echo_n "checking for $ac_word... " >&6; }
16023 if ${ac_cv_path_PYTHON+:} false; then :
16024 $as_echo_n "(cached) " >&6
16028 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16049 PYTHON=$ac_cv_path_PYTHON
16050 if test -n "$PYTHON"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16052 $as_echo "$PYTHON" >&6; }
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16059 if test -z "$PYTHON"; then
16060 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16064 if test -z "$PYTHON_VERSION"; then
16065 PYTHON_VERSION=`$PYTHON -c "import sys; \
16066 print(sys.version.split()[0])"`
16070 # Check if you have distutils, else fail
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16073 $as_echo_n "checking for the distutils Python package... " >&6; }
16074 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16075 if test -z "$ac_distutils_result"; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16077 $as_echo "yes" >&6; }
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16080 $as_echo "no" >&6; }
16081 as_fn_error $? "cannot import Python module \"distutils\".
16082 Please check your Python installation. The error was:
16083 $ac_distutils_result" "$LINENO" 5
16088 # Check for Python include path
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16091 $as_echo_n "checking for Python include path... " >&6; }
16092 if test -z "$PYTHON_CPPFLAGS"; then
16093 python_path=`$PYTHON -c "import distutils.sysconfig; \
16094 print(distutils.sysconfig.get_python_inc());"`
16095 if test -n "${python_path}"; then
16096 python_path="-I$python_path"
16098 PYTHON_CPPFLAGS=$python_path
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16101 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16105 # Check for Python library path
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16108 $as_echo_n "checking for Python library path... " >&6; }
16109 if test -z "$PYTHON_LDFLAGS"; then
16110 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16111 print(get_config_var('BLDLIBRARY'));"`
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16114 $as_echo "$PYTHON_LDFLAGS" >&6; }
16118 # Check for site packages
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16121 $as_echo_n "checking for Python site-packages path... " >&6; }
16122 if test -z "$PYTHON_SITE_PKG"; then
16123 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16124 print(distutils.sysconfig.get_python_lib(1,0));"`
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16127 $as_echo "$PYTHON_SITE_PKG" >&6; }
16131 # final check to see if everything compiles alright
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16134 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16136 ac_cpp='$CPP $CPPFLAGS'
16137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16141 # save current global flags
16142 ac_save_LIBS="$LIBS"
16143 ac_save_CPPFLAGS="$CPPFLAGS"
16145 LIBS="$LIBS $PYTHON_LDFLAGS"
16146 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16150 #include <Python.h>
16162 if ac_fn_c_try_link "$LINENO"; then :
16167 rm -f core conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16171 $as_echo "$pythonexists" >&6; }
16173 if test ! "$pythonexists" = "yes"; then
16175 Could not link test program to Python. Maybe the main Python library has been
16176 installed in some non-standard library path. If so, pass it to configure,
16177 via the LDFLAGS environment variable.
16178 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16179 ============================================================================
16181 You probably have to install the development version of the Python package
16182 for your distribution. The exact name of this package varies among them.
16183 ============================================================================
16188 ac_cpp='$CPP $CPPFLAGS'
16189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16193 # turn back to default flags
16194 CPPFLAGS="$ac_save_CPPFLAGS"
16195 LIBS="$ac_save_LIBS"
16201 if test ! -z "$PYTHON_VERSION"; then
16202 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16203 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16206 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16210 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16212 LIBS="$PYTHON_LDFLAGS $LIBS"
16213 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16219 # Extract the first word of "swig", so it can be a program name with args.
16220 set dummy swig; ac_word=$2
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16222 $as_echo_n "checking for $ac_word... " >&6; }
16223 if ${ac_cv_path_SWIG+:} false; then :
16224 $as_echo_n "(cached) " >&6
16228 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232 for as_dir in $PATH
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16249 SWIG=$ac_cv_path_SWIG
16250 if test -n "$SWIG"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16252 $as_echo "$SWIG" >&6; }
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16255 $as_echo "no" >&6; }
16259 if test -z "$SWIG" ; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16261 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16262 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16263 elif test -n "" ; then
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16265 $as_echo_n "checking for SWIG version... " >&6; }
16266 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'`
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16268 $as_echo "$swig_version" >&6; }
16269 if test -n "$swig_version" ; then
16270 # Calculate the required version number components
16272 required_major=`echo $required | sed 's/[^0-9].*//'`
16273 if test -z "$required_major" ; then
16276 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16277 required_minor=`echo $required | sed 's/[^0-9].*//'`
16278 if test -z "$required_minor" ; then
16281 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16282 required_patch=`echo $required | sed 's/[^0-9].*//'`
16283 if test -z "$required_patch" ; then
16286 # Calculate the available version number components
16287 available=$swig_version
16288 available_major=`echo $available | sed 's/[^0-9].*//'`
16289 if test -z "$available_major" ; then
16292 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16293 available_minor=`echo $available | sed 's/[^0-9].*//'`
16294 if test -z "$available_minor" ; then
16297 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16298 available_patch=`echo $available | sed 's/[^0-9].*//'`
16299 if test -z "$available_patch" ; then
16302 if test $available_major -ne $required_major \
16303 -o $available_minor -ne $required_minor \
16304 -o $available_patch -lt $required_patch ; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
16306 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16307 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16310 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16311 SWIG_LIB=`$SWIG -swiglib`
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16313 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16317 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16318 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16324 $as_echo_n "checking SWIG... " >&6; }
16325 if test ! -x "$SWIG"; then
16326 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16329 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16334 $as_echo "present" >&6; }
16336 # If have Python & SWIG
16337 # Declare PythonMod
16338 if test x_$ub_with_pythonmod != x_no; then
16340 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16342 WITH_PYTHONMODULE=yes
16344 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16346 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16348 PYTHONMOD_INSTALL=pythonmod-install
16350 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16354 # Declare PyUnbound
16355 if test x_$ub_with_pyunbound != x_no; then
16357 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16361 PYUNBOUND_OBJ="libunbound_wrap.lo"
16363 PYUNBOUND_TARGET="_unbound.la"
16365 PYUNBOUND_INSTALL=pyunbound-install
16367 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16373 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16374 ub_with_pyunbound=no
16375 ub_with_pythonmod=no
16379 if test "`uname`" = "NetBSD"; then
16380 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16383 CONFIG_DATE=`date +%Y%m%d`
16386 # Checks for libraries.
16391 # Check whether --with-nss was given.
16392 if test "${with_nss+set}" = set; then :
16396 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16398 if test "$withval" != "" -a "$withval" != "yes"; then
16399 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16400 LDFLAGS="$LDFLAGS -L$withval/lib"
16402 if test "x$enable_rpath" = xyes; then
16403 if echo "$withval/lib" | grep "^/" >/dev/null; then
16404 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16408 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16410 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16411 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16413 LIBS="$LIBS -lnss3 -lnspr4"
16423 # Check whether --with-nettle was given.
16424 if test "${with_nettle+set}" = set; then :
16425 withval=$with_nettle;
16428 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
16430 if test "$withval" != "" -a "$withval" != "yes"; then
16431 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
16432 LDFLAGS="$LDFLAGS -L$withval/lib"
16434 if test "x$enable_rpath" = xyes; then
16435 if echo "$withval/lib" | grep "^/" >/dev/null; then
16436 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16441 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
16443 LIBS="$LIBS -lhogweed -lnettle -lgmp"
16451 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
16454 # Check whether --with-ssl was given.
16455 if test "${with_ssl+set}" = set; then :
16464 if test x_$withval = x_no; then
16465 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16469 if test x_$withval != x_no; then
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16471 $as_echo_n "checking for SSL... " >&6; }
16472 if test x_$withval = x_ -o x_$withval = x_yes; then
16473 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16475 for dir in $withval; do
16477 if test -f "$dir/include/openssl/ssl.h"; then
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_SSL /**/
16484 if test "$ssldir" != "/usr"; then
16485 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16486 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16491 if test x_$found_ssl != x_yes; then
16492 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16495 $as_echo "found in $ssldir" >&6; }
16497 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16498 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16499 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16501 if test "x$enable_rpath" = xyes; then
16502 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16503 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16510 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16511 LIBS="$LIBS -lcrypto"
16512 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16520 int HMAC_CTX_init(void);
16521 (void)HMAC_CTX_init();
16527 if ac_fn_c_try_link "$LINENO"; then :
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16532 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16539 # check if -lwsock32 or -lgdi32 are needed.
16541 BAKSSLLIBS="$LIBSSL_LIBS"
16542 LIBS="$LIBS -lgdi32"
16543 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16545 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547 /* end confdefs.h. */
16553 int HMAC_CTX_init(void);
16554 (void)HMAC_CTX_init();
16560 if ac_fn_c_try_link "$LINENO"; then :
16563 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16573 LIBSSL_LIBS="$BAKSSLLIBS"
16575 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16577 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16585 int HMAC_CTX_init(void);
16586 (void)HMAC_CTX_init();
16592 if ac_fn_c_try_link "$LINENO"; then :
16595 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16598 $as_echo "yes" >&6; }
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16603 $as_echo "no" >&6; }
16604 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16607 rm -f core conftest.err conftest.$ac_objext \
16608 conftest$ac_exeext conftest.$ac_ext
16611 rm -f core conftest.err conftest.$ac_objext \
16612 conftest$ac_exeext conftest.$ac_ext
16615 rm -f core conftest.err conftest.$ac_objext \
16616 conftest$ac_exeext conftest.$ac_ext
16621 for ac_header in openssl/ssl.h
16623 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16625 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_OPENSSL_SSL_H 1
16634 for ac_header in openssl/err.h
16636 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16638 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16639 cat >>confdefs.h <<_ACEOF
16640 #define HAVE_OPENSSL_ERR_H 1
16647 for ac_header in openssl/rand.h
16649 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16651 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16652 cat >>confdefs.h <<_ACEOF
16653 #define HAVE_OPENSSL_RAND_H 1
16663 # check if libssl needs libdl
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16667 $as_echo_n "checking if libssl needs libdl... " >&6; }
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16671 /* Override any GCC internal prototype to avoid an error.
16672 Use char because int might match the return type of a GCC
16673 builtin and then its argument prototype would still apply. */
16677 char SSL_CTX_new ();
16681 return SSL_CTX_new ();
16686 if ac_fn_c_try_link "$LINENO"; then :
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16695 $as_echo "yes" >&6; }
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16698 $as_echo_n "checking for library containing dlopen... " >&6; }
16699 if ${ac_cv_search_dlopen+:} false; then :
16700 $as_echo_n "(cached) " >&6
16702 ac_func_search_save_LIBS=$LIBS
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16721 for ac_lib in '' dl; do
16722 if test -z "$ac_lib"; then
16723 ac_res="none required"
16726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 ac_cv_search_dlopen=$ac_res
16731 rm -f core conftest.err conftest.$ac_objext \
16733 if ${ac_cv_search_dlopen+:} false; then :
16737 if ${ac_cv_search_dlopen+:} false; then :
16740 ac_cv_search_dlopen=no
16742 rm conftest.$ac_ext
16743 LIBS=$ac_func_search_save_LIBS
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16746 $as_echo "$ac_cv_search_dlopen" >&6; }
16747 ac_res=$ac_cv_search_dlopen
16748 if test "$ac_res" != no; then :
16749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16755 rm -f core conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16759 $as_echo_n "checking for LibreSSL... " >&6; }
16760 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16762 $as_echo "yes" >&6; }
16764 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16766 # libressl provides these compat functions, but they may also be
16767 # declared by the OS in libc. See if they have been declared.
16768 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16769 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_DECL_STRLCPY $ac_have_decl
16778 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16779 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16785 cat >>confdefs.h <<_ACEOF
16786 #define HAVE_DECL_STRLCAT $ac_have_decl
16788 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16789 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16795 cat >>confdefs.h <<_ACEOF
16796 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16798 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16799 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16805 cat >>confdefs.h <<_ACEOF
16806 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16808 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
16809 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16823 for ac_header in openssl/conf.h
16825 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16827 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_OPENSSL_CONF_H 1
16836 for ac_header in openssl/engine.h
16838 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16840 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16841 cat >>confdefs.h <<_ACEOF
16842 #define HAVE_OPENSSL_ENGINE_H 1
16849 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16861 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16862 $ac_includes_default
16863 #ifdef HAVE_OPENSSL_ERR_H
16864 #include <openssl/err.h>
16867 #ifdef HAVE_OPENSSL_RAND_H
16868 #include <openssl/rand.h>
16871 #ifdef HAVE_OPENSSL_CONF_H
16872 #include <openssl/conf.h>
16875 #ifdef HAVE_OPENSSL_ENGINE_H
16876 #include <openssl/engine.h>
16878 #include <openssl/ssl.h>
16879 #include <openssl/evp.h>
16882 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16888 cat >>confdefs.h <<_ACEOF
16889 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16891 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16892 $ac_includes_default
16893 #ifdef HAVE_OPENSSL_ERR_H
16894 #include <openssl/err.h>
16897 #ifdef HAVE_OPENSSL_RAND_H
16898 #include <openssl/rand.h>
16901 #ifdef HAVE_OPENSSL_CONF_H
16902 #include <openssl/conf.h>
16905 #ifdef HAVE_OPENSSL_ENGINE_H
16906 #include <openssl/engine.h>
16908 #include <openssl/ssl.h>
16909 #include <openssl/evp.h>
16912 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16918 cat >>confdefs.h <<_ACEOF
16919 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16921 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
16922 $ac_includes_default
16923 #ifdef HAVE_OPENSSL_ERR_H
16924 #include <openssl/err.h>
16927 #ifdef HAVE_OPENSSL_RAND_H
16928 #include <openssl/rand.h>
16931 #ifdef HAVE_OPENSSL_CONF_H
16932 #include <openssl/conf.h>
16935 #ifdef HAVE_OPENSSL_ENGINE_H
16936 #include <openssl/engine.h>
16938 #include <openssl/ssl.h>
16939 #include <openssl/evp.h>
16942 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
16956 # Check whether --enable-sha2 was given.
16957 if test "${enable_sha2+set}" = set; then :
16958 enableval=$enable_sha2;
16961 case "$enable_sha2" in
16966 $as_echo "#define USE_SHA2 1" >>confdefs.h
16971 # check wether gost also works
16973 # Check whether --enable-gost was given.
16974 if test "${enable_gost+set}" = set; then :
16975 enableval=$enable_gost;
16979 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
16980 case "$enable_gost" in
16984 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16985 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16988 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16991 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16992 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16995 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17000 $as_echo_n "checking if GOST works... " >&6; }
17001 if test c${cross_compiling} = cno; then
17002 BAKCFLAGS="$CFLAGS"
17003 if test -n "$ssldir"; then
17004 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17006 if test "$cross_compiling" = yes; then :
17007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17009 as_fn_error $? "cannot run test program while cross compiling
17010 See \`config.log' for more details" "$LINENO" 5; }
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013 /* end confdefs.h. */
17015 #include <string.h>
17016 #include <openssl/ssl.h>
17017 #include <openssl/evp.h>
17018 #include <openssl/engine.h>
17019 #include <openssl/conf.h>
17020 /* routine to load gost (from sldns) */
17021 int load_gost_id(void)
17023 static int gost_id = 0;
17024 const EVP_PKEY_ASN1_METHOD* meth;
17027 if(gost_id) return gost_id;
17029 /* see if configuration loaded gost implementation from other engine*/
17030 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17032 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17036 /* see if engine can be loaded already */
17037 e = ENGINE_by_id("gost");
17039 /* load it ourself, in case statically linked */
17040 ENGINE_load_builtin_engines();
17041 ENGINE_load_dynamic();
17042 e = ENGINE_by_id("gost");
17045 /* no gost engine in openssl */
17048 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17054 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17056 /* algo not found */
17061 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17067 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17068 const char* str = "Hello world";
17069 const unsigned char check[] = {
17070 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17071 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17072 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17073 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17075 OPENSSL_config(NULL);
17076 (void)load_gost_id();
17077 md = EVP_get_digestbyname("md_gost94");
17079 memset(digest, 0, sizeof(digest));
17080 ctx = EVP_MD_CTX_create();
17082 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17083 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17084 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17085 /* uncomment to see the hash calculated.
17087 for(i=0; i<32; i++)
17088 printf(" %2.2x", (int)digest[i]);
17091 if(memcmp(digest, check, sizeof(check)) != 0)
17097 if ac_fn_c_try_run "$LINENO"; then :
17098 eval "ac_cv_c_gost_works=yes"
17100 eval "ac_cv_c_gost_works=no"
17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
17106 CFLAGS="$BAKCFLAGS"
17108 eval "ac_cv_c_gost_works=maybe"
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17111 $as_echo "$ac_cv_c_gost_works" >&6; }
17113 if test "$ac_cv_c_gost_works" != no; then
17116 $as_echo "#define USE_GOST 1" >>confdefs.h
17122 # Check whether --enable-ecdsa was given.
17123 if test "${enable_ecdsa+set}" = set; then :
17124 enableval=$enable_ecdsa;
17128 case "$enable_ecdsa" in
17132 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17133 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17134 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17137 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17140 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17141 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17144 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17147 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17148 #include <openssl/evp.h>
17151 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17157 cat >>confdefs.h <<_ACEOF
17158 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17160 if test $ac_have_decl = 1; then :
17163 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17165 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17166 #include <openssl/evp.h>
17169 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17175 cat >>confdefs.h <<_ACEOF
17176 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17178 if test $ac_have_decl = 1; then :
17181 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17184 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17186 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17187 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17188 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17190 $as_echo "no" >&6; }
17192 cat >>confdefs.h <<_ACEOF
17193 #define USE_ECDSA_EVP_WORKAROUND 1
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17201 # not OpenSSL, thus likely LibreSSL, which supports it
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17203 $as_echo "yes" >&6; }
17206 # we now know we have ECDSA and the required curves.
17208 cat >>confdefs.h <<_ACEOF
17209 #define USE_ECDSA 1
17216 # Check whether --enable-event-api was given.
17217 if test "${enable_event_api+set}" = set; then :
17218 enableval=$enable_event_api;
17221 use_unbound_event="no"
17222 case "$enable_event_api" in
17224 use_unbound_event="yes"
17230 # check for libevent
17232 # Check whether --with-libevent was given.
17233 if test "${with_libevent+set}" = set; then :
17234 withval=$with_libevent;
17239 if test x_$withval = x_yes -o x_$withval != x_no; then
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17241 $as_echo_n "checking for libevent... " >&6; }
17242 if test x_$withval = x_ -o x_$withval = x_yes; then
17243 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17245 for dir in $withval; do
17247 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17248 found_libevent="yes"
17249 if test "$thedir" != "/usr"; then
17250 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17255 if test x_$found_libevent != x_yes; then
17256 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17257 # libevent source directory
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17259 $as_echo "found in $thedir" >&6; }
17260 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17261 BAK_LDFLAGS_SET="1"
17262 BAK_LDFLAGS="$LDFLAGS"
17263 # remove evdns from linking
17264 mkdir build >/dev/null 2>&1
17265 mkdir build/libevent >/dev/null 2>&1
17266 mkdir build/libevent/.libs >/dev/null 2>&1
17267 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17268 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17269 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17270 cp $ev_files_o build/libevent
17271 cp $ev_files_lo build/libevent
17272 cp $ev_files_libso build/libevent/.libs
17273 LATE_LDFLAGS="build/libevent/*.lo -lm"
17274 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17276 as_fn_error $? "Cannot find the libevent library in $withval
17277 You can restart ./configure --with-libevent=no to use a builtin alternative.
17278 Please note that this alternative is not as capable as libevent when using
17279 large outgoing port ranges. " "$LINENO" 5
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17283 $as_echo "found in $thedir" >&6; }
17284 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17285 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17287 if test "x$enable_rpath" = xyes; then
17288 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17289 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17294 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17295 LDFLAGS="$LDFLAGS -L$thedir/lib"
17297 if test "x$enable_rpath" = xyes; then
17298 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17299 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17306 # check for library used by libevent after 1.3c
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17308 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17309 if ${ac_cv_search_clock_gettime+:} false; then :
17310 $as_echo_n "(cached) " >&6
17312 ac_func_search_save_LIBS=$LIBS
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17316 /* Override any GCC internal prototype to avoid an error.
17317 Use char because int might match the return type of a GCC
17318 builtin and then its argument prototype would still apply. */
17322 char clock_gettime ();
17326 return clock_gettime ();
17331 for ac_lib in '' rt; do
17332 if test -z "$ac_lib"; then
17333 ac_res="none required"
17336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17338 if ac_fn_c_try_link "$LINENO"; then :
17339 ac_cv_search_clock_gettime=$ac_res
17341 rm -f core conftest.err conftest.$ac_objext \
17343 if ${ac_cv_search_clock_gettime+:} false; then :
17347 if ${ac_cv_search_clock_gettime+:} false; then :
17350 ac_cv_search_clock_gettime=no
17352 rm conftest.$ac_ext
17353 LIBS=$ac_func_search_save_LIBS
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17356 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17357 ac_res=$ac_cv_search_clock_gettime
17358 if test "$ac_res" != no; then :
17359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17364 # is the event.h header libev or libevent?
17365 for ac_header in event.h
17367 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17369 if test "x$ac_cv_header_event_h" = xyes; then :
17370 cat >>confdefs.h <<_ACEOF
17371 #define HAVE_EVENT_H 1
17378 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17382 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17385 $as_echo_n "checking for library containing event_set... " >&6; }
17386 if ${ac_cv_search_event_set+:} false; then :
17387 $as_echo_n "(cached) " >&6
17389 ac_func_search_save_LIBS=$LIBS
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17403 return event_set ();
17408 for ac_lib in '' ev; do
17409 if test -z "$ac_lib"; then
17410 ac_res="none required"
17413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17415 if ac_fn_c_try_link "$LINENO"; then :
17416 ac_cv_search_event_set=$ac_res
17418 rm -f core conftest.err conftest.$ac_objext \
17420 if ${ac_cv_search_event_set+:} false; then :
17424 if ${ac_cv_search_event_set+:} false; then :
17427 ac_cv_search_event_set=no
17429 rm conftest.$ac_ext
17430 LIBS=$ac_func_search_save_LIBS
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17433 $as_echo "$ac_cv_search_event_set" >&6; }
17434 ac_res=$ac_cv_search_event_set
17435 if test "$ac_res" != no; then :
17436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17444 $as_echo_n "checking for library containing event_set... " >&6; }
17445 if ${ac_cv_search_event_set+:} false; then :
17446 $as_echo_n "(cached) " >&6
17448 ac_func_search_save_LIBS=$LIBS
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17462 return event_set ();
17467 for ac_lib in '' event; do
17468 if test -z "$ac_lib"; then
17469 ac_res="none required"
17472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 ac_cv_search_event_set=$ac_res
17477 rm -f core conftest.err conftest.$ac_objext \
17479 if ${ac_cv_search_event_set+:} false; then :
17483 if ${ac_cv_search_event_set+:} false; then :
17486 ac_cv_search_event_set=no
17488 rm conftest.$ac_ext
17489 LIBS=$ac_func_search_save_LIBS
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17492 $as_echo "$ac_cv_search_event_set" >&6; }
17493 ac_res=$ac_cv_search_event_set
17494 if test "$ac_res" != no; then :
17495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17502 for ac_func in event_base_free
17504 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17505 if test "x$ac_cv_func_event_base_free" = xyes; then :
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_EVENT_BASE_FREE 1
17512 # only in libevent 1.2 and later
17513 for ac_func in event_base_once
17515 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17516 if test "x$ac_cv_func_event_base_once" = xyes; then :
17517 cat >>confdefs.h <<_ACEOF
17518 #define HAVE_EVENT_BASE_ONCE 1
17523 # only in libevent 1.4.1 and later
17524 for ac_func in event_base_new
17526 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17527 if test "x$ac_cv_func_event_base_new" = xyes; then :
17528 cat >>confdefs.h <<_ACEOF
17529 #define HAVE_EVENT_BASE_NEW 1
17534 # only in libevent 1.4.1 and later
17535 for ac_func in event_base_get_method
17537 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17538 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17539 cat >>confdefs.h <<_ACEOF
17540 #define HAVE_EVENT_BASE_GET_METHOD 1
17545 # only in libevent 1.4.3 and later
17546 for ac_func in ev_loop
17548 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17549 if test "x$ac_cv_func_ev_loop" = xyes; then :
17550 cat >>confdefs.h <<_ACEOF
17551 #define HAVE_EV_LOOP 1
17556 # only in libev. (tested on 3.51)
17557 for ac_func in ev_default_loop
17559 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17560 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17561 cat >>confdefs.h <<_ACEOF
17562 #define HAVE_EV_DEFAULT_LOOP 1
17567 # only in libev. (tested on 4.00)
17568 if test -n "$BAK_LDFLAGS_SET"; then
17569 LDFLAGS="$BAK_LDFLAGS"
17571 if test "$use_unbound_event" = "yes"; then
17572 UNBOUND_EVENT_INSTALL=unbound-event-install
17574 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17579 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17583 # check for libexpat
17585 # Check whether --with-libexpat was given.
17586 if test "${with_libexpat+set}" = set; then :
17587 withval=$with_libexpat;
17589 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17593 $as_echo_n "checking for libexpat... " >&6; }
17594 found_libexpat="no"
17595 for dir in $withval ; do
17596 if test -f "$dir/include/expat.h"; then
17597 found_libexpat="yes"
17598 if test "$dir" != "/usr"; then
17599 CPPFLAGS="$CPPFLAGS -I$dir/include"
17600 LDFLAGS="$LDFLAGS -L$dir/lib"
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17603 $as_echo "found in $dir" >&6; }
17607 if test x_$found_libexpat != x_yes; then
17608 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17610 for ac_header in expat.h
17612 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17614 if test "x$ac_cv_header_expat_h" = xyes; then :
17615 cat >>confdefs.h <<_ACEOF
17616 #define HAVE_EXPAT_H 1
17623 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
17627 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
17633 cat >>confdefs.h <<_ACEOF
17634 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
17638 # set static linking if requested
17641 # Check whether --enable-static-exe was given.
17642 if test "${enable_static_exe+set}" = set; then :
17643 enableval=$enable_static_exe;
17646 if test x_$enable_static_exe = x_yes; then
17647 staticexe="-static"
17648 if test "$on_mingw" = yes; then
17649 staticexe="-all-static"
17650 # for static crosscompile, include gdi32 and zlib here.
17651 if test "`uname`" = "Linux"; then
17652 LIBS="$LIBS -lgdi32 -lz"
17657 # set lock checking if requested
17658 # Check whether --enable-lock_checks was given.
17659 if test "${enable_lock_checks+set}" = set; then :
17660 enableval=$enable_lock_checks;
17663 if test x_$enable_lock_checks = x_yes; then
17665 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17667 CHECKLOCK_OBJ="checklocks.lo"
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17673 $as_echo_n "checking for getaddrinfo... " >&6; }
17674 ac_cv_func_getaddrinfo=no
17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676 /* end confdefs.h. */
17682 char* getaddrinfo();
17683 char* (*f) () = getaddrinfo;
17693 if ac_fn_c_try_link "$LINENO"; then :
17694 ac_cv_func_getaddrinfo="yes"
17695 if test "$ac_cv_header_windows_h" = "yes"; then
17697 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17700 LIBS="$LIBS -lws2_32"
17705 LIBS="$LIBS -lws2_32"
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17709 #ifdef HAVE_WS2TCPIP_H
17710 #include <ws2tcpip.h>
17717 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17724 if ac_fn_c_try_link "$LINENO"; then :
17726 ac_cv_func_getaddrinfo="yes"
17728 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17734 ac_cv_func_getaddrinfo="no"
17738 rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17746 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17747 if test $ac_cv_func_getaddrinfo = yes; then
17749 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17753 if test "$USE_WINSOCK" = 1; then
17755 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17757 for ac_header in iphlpapi.h
17759 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17760 #include <windows.h>
17763 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17764 cat >>confdefs.h <<_ACEOF
17765 #define HAVE_IPHLPAPI_H 1
17772 if test -n "$ac_tool_prefix"; then
17773 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17774 set dummy ${ac_tool_prefix}windres; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if ${ac_cv_prog_WINDRES+:} false; then :
17778 $as_echo_n "(cached) " >&6
17780 if test -n "$WINDRES"; then
17781 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17784 for as_dir in $PATH
17787 test -z "$as_dir" && as_dir=.
17788 for ac_exec_ext in '' $ac_executable_extensions; do
17789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17790 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800 WINDRES=$ac_cv_prog_WINDRES
17801 if test -n "$WINDRES"; then
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17803 $as_echo "$WINDRES" >&6; }
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806 $as_echo "no" >&6; }
17811 if test -z "$ac_cv_prog_WINDRES"; then
17812 ac_ct_WINDRES=$WINDRES
17813 # Extract the first word of "windres", so it can be a program name with args.
17814 set dummy windres; ac_word=$2
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17816 $as_echo_n "checking for $ac_word... " >&6; }
17817 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17818 $as_echo_n "(cached) " >&6
17820 if test -n "$ac_ct_WINDRES"; then
17821 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17824 for as_dir in $PATH
17827 test -z "$as_dir" && as_dir=.
17828 for ac_exec_ext in '' $ac_executable_extensions; do
17829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17830 ac_cv_prog_ac_ct_WINDRES="windres"
17831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17840 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17841 if test -n "$ac_ct_WINDRES"; then
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17843 $as_echo "$ac_ct_WINDRES" >&6; }
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846 $as_echo "no" >&6; }
17849 if test "x$ac_ct_WINDRES" = x; then
17852 case $cross_compiling:$ac_tool_warned in
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17856 ac_tool_warned=yes ;;
17858 WINDRES=$ac_ct_WINDRES
17861 WINDRES="$ac_cv_prog_WINDRES"
17864 LIBS="$LIBS -liphlpapi"
17865 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17867 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17869 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17871 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17873 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17875 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17877 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17879 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17882 if test $ac_cv_func_getaddrinfo = no; then
17883 case " $LIBOBJS " in
17884 *" fake-rfc2553.$ac_objext "* ) ;;
17885 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17890 # check after getaddrinfo for its libraries
17892 # check ioctlsocket
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17894 $as_echo_n "checking for ioctlsocket... " >&6; }
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 #ifdef HAVE_WINSOCK2_H
17899 #include <winsock2.h>
17906 (void)ioctlsocket(0, 0, NULL);
17912 if ac_fn_c_try_link "$LINENO"; then :
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17917 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17922 $as_echo "no" >&6; }
17924 rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17928 # see if daemon(3) exists, and if it is deprecated.
17929 for ac_func in daemon
17931 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17932 if test "x$ac_cv_func_daemon" = xyes; then :
17933 cat >>confdefs.h <<_ACEOF
17934 #define HAVE_DAEMON 1
17940 if test $ac_cv_func_daemon = yes; then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17944 $as_echo_n "checking if daemon is deprecated... " >&6; }
17945 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17946 if eval \${cv_cc_deprecated_$cache+:} false; then :
17947 $as_echo_n "(cached) " >&6
17951 #include <stdlib.h>
17953 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17954 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17955 eval "cv_cc_deprecated_$cache=no"
17957 eval "cv_cc_deprecated_$cache=yes"
17959 rm -f conftest conftest.o conftest.c
17963 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17965 $as_echo "yes" >&6; }
17967 cat >>confdefs.h <<_ACEOF
17968 #define DEPRECATED_DAEMON 1
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17982 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17983 $ac_includes_default
17984 #ifdef HAVE_SYS_UN_H
17985 #include <sys/un.h>
17989 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
17991 cat >>confdefs.h <<_ACEOF
17992 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17998 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17999 $ac_includes_default
18000 #if HAVE_SYS_PARAM_H
18001 #include <sys/param.h>
18004 #ifdef HAVE_SYS_SOCKET_H
18005 #include <sys/socket.h>
18008 #ifdef HAVE_SYS_UIO_H
18009 #include <sys/uio.h>
18012 #ifdef HAVE_NETINET_IN_H
18013 #include <netinet/in.h>
18016 #ifdef HAVE_ARPA_INET_H
18017 #include <arpa/inet.h>
18020 #ifdef HAVE_WINSOCK2_H
18021 #include <winsock2.h>
18024 #ifdef HAVE_WS2TCPIP_H
18025 #include <ws2tcpip.h>
18029 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
18039 $as_echo_n "checking for library containing setusercontext... " >&6; }
18040 if ${ac_cv_search_setusercontext+:} false; then :
18041 $as_echo_n "(cached) " >&6
18043 ac_func_search_save_LIBS=$LIBS
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18053 char setusercontext ();
18057 return setusercontext ();
18062 for ac_lib in '' util; do
18063 if test -z "$ac_lib"; then
18064 ac_res="none required"
18067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18069 if ac_fn_c_try_link "$LINENO"; then :
18070 ac_cv_search_setusercontext=$ac_res
18072 rm -f core conftest.err conftest.$ac_objext \
18074 if ${ac_cv_search_setusercontext+:} false; then :
18078 if ${ac_cv_search_setusercontext+:} false; then :
18081 ac_cv_search_setusercontext=no
18083 rm conftest.$ac_ext
18084 LIBS=$ac_func_search_save_LIBS
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
18087 $as_echo "$ac_cv_search_setusercontext" >&6; }
18088 ac_res=$ac_cv_search_setusercontext
18089 if test "$ac_res" != no; then :
18090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18094 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync
18096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18099 cat >>confdefs.h <<_ACEOF
18100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18106 for ac_func in setresuid
18108 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18109 if test "x$ac_cv_func_setresuid" = xyes; then :
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_SETRESUID 1
18115 for ac_func in setreuid
18117 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18118 if test "x$ac_cv_func_setreuid" = xyes; then :
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_SETREUID 1
18129 for ac_func in setresgid
18131 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18132 if test "x$ac_cv_func_setresgid" = xyes; then :
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_SETRESGID 1
18138 for ac_func in setregid
18140 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18141 if test "x$ac_cv_func_setregid" = xyes; then :
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_SETREGID 1
18153 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18154 if echo $build_os | grep darwin8 > /dev/null; then
18156 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18159 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18160 if test "x$ac_cv_func_inet_aton" = xyes; then :
18161 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18164 case " $LIBOBJS " in
18165 *" inet_aton.$ac_objext "* ) ;;
18166 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18173 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18174 if test "x$ac_cv_func_inet_pton" = xyes; then :
18175 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18178 case " $LIBOBJS " in
18179 *" inet_pton.$ac_objext "* ) ;;
18180 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18187 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18188 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18189 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18192 case " $LIBOBJS " in
18193 *" inet_ntop.$ac_objext "* ) ;;
18194 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18201 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18202 if test "x$ac_cv_func_snprintf" = xyes; then :
18203 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18206 case " $LIBOBJS " in
18207 *" snprintf.$ac_objext "* ) ;;
18208 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18215 # test if snprintf return the proper length
18216 if test "x$ac_cv_func_snprintf" = xyes; then
18217 if test c${cross_compiling} = cno; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
18219 $as_echo_n "checking for correct snprintf return value... " >&6; }
18220 if test "$cross_compiling" = yes; then :
18221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18223 as_fn_error $? "cannot run test program while cross compiling
18224 See \`config.log' for more details" "$LINENO" 5; }
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18228 $ac_includes_default
18230 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
18233 if ac_fn_c_try_run "$LINENO"; then :
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235 $as_echo "yes" >&6; }
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18239 $as_echo "no" >&6; }
18241 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
18243 case " $LIBOBJS " in
18244 *" snprintf.$ac_objext "* ) ;;
18245 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18252 conftest.$ac_objext conftest.beam conftest.$ac_ext
18257 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18258 if test "x$ac_cv_func_strlcat" = xyes; then :
18259 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18262 case " $LIBOBJS " in
18263 *" strlcat.$ac_objext "* ) ;;
18264 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18271 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18272 if test "x$ac_cv_func_strlcpy" = xyes; then :
18273 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18276 case " $LIBOBJS " in
18277 *" strlcpy.$ac_objext "* ) ;;
18278 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18285 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18286 if test "x$ac_cv_func_memmove" = xyes; then :
18287 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18290 case " $LIBOBJS " in
18291 *" memmove.$ac_objext "* ) ;;
18292 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18299 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18300 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18301 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18304 case " $LIBOBJS " in
18305 *" gmtime_r.$ac_objext "* ) ;;
18306 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18313 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
18314 if test "x$ac_cv_func_isblank" = xyes; then :
18315 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
18318 case " $LIBOBJS " in
18319 *" isblank.$ac_objext "* ) ;;
18320 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
18327 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18329 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18330 if test "x$ac_cv_func_reallocarray" = xyes; then :
18331 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18334 case " $LIBOBJS " in
18335 *" reallocarray.$ac_objext "* ) ;;
18336 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
18343 if test "$USE_NSS" = "no"; then
18344 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18345 if test "x$ac_cv_func_arc4random" = xyes; then :
18346 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18349 case " $LIBOBJS " in
18350 *" arc4random.$ac_objext "* ) ;;
18351 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18358 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18359 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18360 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18363 case " $LIBOBJS " in
18364 *" arc4random_uniform.$ac_objext "* ) ;;
18365 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18372 if test "$ac_cv_func_arc4random" = "no"; then
18373 case " $LIBOBJS " in
18374 *" explicit_bzero.$ac_objext "* ) ;;
18375 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18379 case " $LIBOBJS " in
18380 *" arc4_lock.$ac_objext "* ) ;;
18381 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18385 for ac_func in getentropy
18387 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18388 if test "x$ac_cv_func_getentropy" = xyes; then :
18389 cat >>confdefs.h <<_ACEOF
18390 #define HAVE_GETENTROPY 1
18395 if test "$USE_WINSOCK" = 1; then
18396 case " $LIBOBJS " in
18397 *" getentropy_win.$ac_objext "* ) ;;
18398 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18405 case " $LIBOBJS " in
18406 *" getentropy_osx.$ac_objext "* ) ;;
18407 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18413 case " $LIBOBJS " in
18414 *" getentropy_solaris.$ac_objext "* ) ;;
18415 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18419 for ac_header in sys/sha2.h
18421 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18423 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_SYS_SHA2_H 1
18430 for ac_func in SHA512_Update
18432 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18433 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18434 cat >>confdefs.h <<_ACEOF
18435 #define HAVE_SHA512_UPDATE 1
18440 case " $LIBOBJS " in
18441 *" sha512.$ac_objext "* ) ;;
18442 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18455 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18456 # this lib needed for sha2 on solaris
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18460 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18461 if ${ac_cv_search_clock_gettime+:} false; then :
18462 $as_echo_n "(cached) " >&6
18464 ac_func_search_save_LIBS=$LIBS
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18474 char clock_gettime ();
18478 return clock_gettime ();
18483 for ac_lib in '' rt; do
18484 if test -z "$ac_lib"; then
18485 ac_res="none required"
18488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18490 if ac_fn_c_try_link "$LINENO"; then :
18491 ac_cv_search_clock_gettime=$ac_res
18493 rm -f core conftest.err conftest.$ac_objext \
18495 if ${ac_cv_search_clock_gettime+:} false; then :
18499 if ${ac_cv_search_clock_gettime+:} false; then :
18502 ac_cv_search_clock_gettime=no
18504 rm conftest.$ac_ext
18505 LIBS=$ac_func_search_save_LIBS
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18508 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18509 ac_res=$ac_cv_search_clock_gettime
18510 if test "$ac_res" != no; then :
18511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18517 case " $LIBOBJS " in
18518 *" getentropy_linux.$ac_objext "* ) ;;
18519 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18523 for ac_func in SHA512_Update
18525 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18526 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18527 cat >>confdefs.h <<_ACEOF
18528 #define HAVE_SHA512_UPDATE 1
18534 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18536 case " $LIBOBJS " in
18537 *" sha512.$ac_objext "* ) ;;
18538 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18546 for ac_header in sys/sysctl.h
18548 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18550 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18551 cat >>confdefs.h <<_ACEOF
18552 #define HAVE_SYS_SYSCTL_H 1
18559 for ac_func in getauxval
18561 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
18562 if test "x$ac_cv_func_getauxval" = xyes; then :
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_GETAUXVAL 1
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18571 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18572 if ${ac_cv_search_clock_gettime+:} false; then :
18573 $as_echo_n "(cached) " >&6
18575 ac_func_search_save_LIBS=$LIBS
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18579 /* Override any GCC internal prototype to avoid an error.
18580 Use char because int might match the return type of a GCC
18581 builtin and then its argument prototype would still apply. */
18585 char clock_gettime ();
18589 return clock_gettime ();
18594 for ac_lib in '' rt; do
18595 if test -z "$ac_lib"; then
18596 ac_res="none required"
18599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18601 if ac_fn_c_try_link "$LINENO"; then :
18602 ac_cv_search_clock_gettime=$ac_res
18604 rm -f core conftest.err conftest.$ac_objext \
18606 if ${ac_cv_search_clock_gettime+:} false; then :
18610 if ${ac_cv_search_clock_gettime+:} false; then :
18613 ac_cv_search_clock_gettime=no
18615 rm conftest.$ac_ext
18616 LIBS=$ac_func_search_save_LIBS
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18619 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18620 ac_res=$ac_cv_search_clock_gettime
18621 if test "$ac_res" != no; then :
18622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18635 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18637 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18638 if test "x$ac_cv_func_ctime_r" = xyes; then :
18639 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18642 case " $LIBOBJS " in
18643 *" ctime_r.$ac_objext "* ) ;;
18644 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18652 # Check whether --enable-allsymbols was given.
18653 if test "${enable_allsymbols+set}" = set; then :
18654 enableval=$enable_allsymbols;
18657 case "$enable_allsymbols" in
18659 COMMON_OBJ_ALL_SYMBOLS=""
18661 EXTRALINK="-L. -L.libs -lunbound"
18663 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18667 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18668 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18675 if test x_$enable_lock_checks = x_yes; then
18676 UBSYMS="-export-symbols clubsyms.def"
18677 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18678 echo lock_protect >> clubsyms.def
18679 echo lock_unprotect >> clubsyms.def
18680 echo lock_get_mem >> clubsyms.def
18681 echo checklock_start >> clubsyms.def
18682 echo checklock_stop >> clubsyms.def
18683 echo checklock_lock >> clubsyms.def
18684 echo checklock_unlock >> clubsyms.def
18685 echo checklock_init >> clubsyms.def
18686 echo checklock_thrcreate >> clubsyms.def
18687 echo checklock_thrjoin >> clubsyms.def
18690 # check for dnstap if requested
18692 # Check whether --enable-dnstap was given.
18693 if test "${enable_dnstap+set}" = set; then :
18694 enableval=$enable_dnstap; opt_dnstap=$enableval
18701 # Check whether --with-dnstap-socket-path was given.
18702 if test "${with_dnstap_socket_path+set}" = set; then :
18703 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18705 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18709 if test "x$opt_dnstap" != "xno"; then
18710 # Extract the first word of "protoc-c", so it can be a program name with args.
18711 set dummy protoc-c; ac_word=$2
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18713 $as_echo_n "checking for $ac_word... " >&6; }
18714 if ${ac_cv_path_PROTOC_C+:} false; then :
18715 $as_echo_n "(cached) " >&6
18719 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18726 test -z "$as_dir" && as_dir=.
18727 for ac_exec_ext in '' $ac_executable_extensions; do
18728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18740 PROTOC_C=$ac_cv_path_PROTOC_C
18741 if test -n "$PROTOC_C"; then
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18743 $as_echo "$PROTOC_C" >&6; }
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746 $as_echo "no" >&6; }
18750 if test -z "$PROTOC_C"; then
18751 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18754 # Check whether --with-protobuf-c was given.
18755 if test "${with_protobuf_c+set}" = set; then :
18756 withval=$with_protobuf_c;
18757 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18758 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18759 CFLAGS="$CFLAGS -I$withval/include/google"
18761 CFLAGS="$CFLAGS -I$withval/include"
18763 LDFLAGS="$LDFLAGS -L$withval/lib"
18767 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18768 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18769 CFLAGS="$CFLAGS -I/usr/include/google"
18771 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18772 CFLAGS="$CFLAGS -I/usr/local/include/google"
18773 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18780 # Check whether --with-libfstrm was given.
18781 if test "${with_libfstrm+set}" = set; then :
18782 withval=$with_libfstrm;
18783 CFLAGS="$CFLAGS -I$withval/include"
18784 LDFLAGS="$LDFLAGS -L$withval/lib"
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18789 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18790 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18791 $as_echo_n "(cached) " >&6
18793 ac_func_search_save_LIBS=$LIBS
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18803 char fstrm_iothr_init ();
18807 return fstrm_iothr_init ();
18812 for ac_lib in '' fstrm; do
18813 if test -z "$ac_lib"; then
18814 ac_res="none required"
18817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18819 if ac_fn_c_try_link "$LINENO"; then :
18820 ac_cv_search_fstrm_iothr_init=$ac_res
18822 rm -f core conftest.err conftest.$ac_objext \
18824 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18828 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18831 ac_cv_search_fstrm_iothr_init=no
18833 rm conftest.$ac_ext
18834 LIBS=$ac_func_search_save_LIBS
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18837 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18838 ac_res=$ac_cv_search_fstrm_iothr_init
18839 if test "$ac_res" != no; then :
18840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18843 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18847 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18848 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18849 $as_echo_n "(cached) " >&6
18851 ac_func_search_save_LIBS=$LIBS
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18855 /* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18861 char protobuf_c_message_pack ();
18865 return protobuf_c_message_pack ();
18870 for ac_lib in '' protobuf-c; do
18871 if test -z "$ac_lib"; then
18872 ac_res="none required"
18875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_search_protobuf_c_message_pack=$ac_res
18880 rm -f core conftest.err conftest.$ac_objext \
18882 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18886 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18889 ac_cv_search_protobuf_c_message_pack=no
18891 rm conftest.$ac_ext
18892 LIBS=$ac_func_search_save_LIBS
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18895 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18896 ac_res=$ac_cv_search_protobuf_c_message_pack
18897 if test "$ac_res" != no; then :
18898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18901 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18906 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18912 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18915 cat >>confdefs.h <<_ACEOF
18916 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18920 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18922 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18935 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18936 # on openBSD, the implicit rule make $< work.
18937 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18939 cat >conftest.make <<EOF
18942 conftest.lo foo.lo bla.lo:
18943 if test -f "\$<"; then touch \$@; fi
18947 if test -f "\$<"; then touch \$@; fi
18949 conftest.lo: conftest.dir/conftest.c
18952 touch conftest.dir/conftest.c
18953 rm -f conftest.lo conftest.c
18954 ${MAKE:-make} -f conftest.make >/dev/null
18955 rm -f conftest.make conftest.c conftest.dir/conftest.c
18956 rm -rf conftest.dir
18957 if test ! -f conftest.lo; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18960 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18961 SOURCEFILE='`cat .source`'
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964 $as_echo "yes" >&6; }
18965 SOURCEDETERMINE=':'
18972 # see if we want to build the library or everything
18973 ALLTARGET="alltargets"
18974 INSTALLTARGET="install-all"
18976 # Check whether --with-libunbound-only was given.
18977 if test "${with_libunbound_only+set}" = set; then :
18978 withval=$with_libunbound_only;
18979 if test "$withval" = "yes"; then
18981 INSTALLTARGET="install-lib"
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18991 $as_echo "$as_me: Stripping extension flags..." >&6;}
18993 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18994 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18996 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
19001 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
19002 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
19004 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
19009 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
19010 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
19012 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
19017 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
19018 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
19020 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
19025 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
19026 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
19028 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
19033 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
19034 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
19036 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
19041 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
19042 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
19044 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
19049 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
19050 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
19052 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
19057 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
19060 cat >>confdefs.h <<_ACEOF
19061 #define MAXSYSLOGMSGLEN 10240
19069 date=`date +'%b %e, %Y'`
19072 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"
19074 ac_config_headers="$ac_config_headers config.h"
19076 cat >confcache <<\_ACEOF
19077 # This file is a shell script that caches the results of configure
19078 # tests run on this system so they can be shared between configure
19079 # scripts and configure runs, see configure's option --config-cache.
19080 # It is not useful on other systems. If it contains results you don't
19081 # want to keep, you may remove or edit it.
19083 # config.status only pays attention to the cache file if you give it
19084 # the --recheck option to rerun configure.
19086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19088 # following values.
19092 # The following way of writing the cache mishandles newlines in values,
19093 # but we know of no workaround that is simple, portable, and efficient.
19094 # So, we kill variables containing newlines.
19095 # Ultrix sh set writes to stderr and can't be redirected directly,
19096 # and sets the high bit in the cache file unless we assign to the vars.
19098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19099 eval ac_val=\$$ac_var
19103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19107 _ | IFS | as_nl) ;; #(
19108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19109 *) { eval $ac_var=; unset $ac_var;} ;;
19115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19116 *${as_nl}ac_space=\ *)
19117 # `set' does not quote correctly, so add quotes: double-quote
19118 # substitution turns \\\\ into \\, and sed turns \\ into \.
19121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19124 # `set' quotes correctly as required by POSIX, so do not add quotes.
19125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19139 if test -w "$cache_file"; then
19140 if test "x$cache_file" != "x/dev/null"; then
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19142 $as_echo "$as_me: updating cache $cache_file" >&6;}
19143 if test ! -f "$cache_file" || test -h "$cache_file"; then
19144 cat confcache >"$cache_file"
19146 case $cache_file in #(
19148 mv -f confcache "$cache_file"$$ &&
19149 mv -f "$cache_file"$$ "$cache_file" ;; #(
19151 mv -f confcache "$cache_file" ;;
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19163 # Let make expand exec_prefix.
19164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19166 DEFS=-DHAVE_CONFIG_H
19171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19172 # 1. Remove the extension, and $U if already installed.
19173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19176 # will be set to the directory where LIBOBJS objects are built.
19177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19180 LIBOBJS=$ac_libobjs
19182 LTLIBOBJS=$ac_ltlibobjs
19186 : "${CONFIG_STATUS=./config.status}"
19188 ac_clean_files_save=$ac_clean_files
19189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19191 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19193 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19195 # Generated by $as_me.
19196 # Run this file to recreate the current configuration.
19197 # Compiler output produced by configure, useful for debugging
19198 # configure, is in config.log if it exists.
19201 ac_cs_recheck=false
19204 SHELL=\${CONFIG_SHELL-$SHELL}
19207 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19208 ## -------------------- ##
19209 ## M4sh Initialization. ##
19210 ## -------------------- ##
19212 # Be more Bourne compatible
19213 DUALCASE=1; export DUALCASE # for MKS sh
19214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19218 # is contrary to our usage. Disable this feature.
19219 alias -g '${1+"$@"}'='"$@"'
19220 setopt NO_GLOB_SUBST
19222 case `(set -o) 2>/dev/null` in #(
19234 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19235 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19236 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19237 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19238 # Prefer a ksh shell builtin over an external printf program on Solaris,
19239 # but without wasting forks for bash or zsh.
19240 if test -z "$BASH_VERSION$ZSH_VERSION" \
19241 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19242 as_echo='print -r --'
19243 as_echo_n='print -rn --'
19244 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19245 as_echo='printf %s\n'
19246 as_echo_n='printf %s'
19248 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19249 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19250 as_echo_n='/usr/ucb/echo -n'
19252 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19253 as_echo_n_body='eval
19257 expr "X$arg" : "X\\(.*\\)$as_nl";
19258 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19260 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19262 export as_echo_n_body
19263 as_echo_n='sh -c $as_echo_n_body as_echo'
19265 export as_echo_body
19266 as_echo='sh -c $as_echo_body as_echo'
19269 # The user is always right.
19270 if test "${PATH_SEPARATOR+set}" != set; then
19272 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19273 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19280 # We need space, tab and new line, in precisely that order. Quoting is
19281 # there to prevent editors from complaining about space-tab.
19282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19283 # splitting by setting IFS to empty value.)
19286 # Find who we are. Look in the path if we contain no directory separator.
19289 *[\\/]* ) as_myself=$0 ;;
19290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19291 for as_dir in $PATH
19294 test -z "$as_dir" && as_dir=.
19295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19301 # We did not find ourselves, most probably we were run as `sh COMMAND'
19302 # in which case we are not to be found in the path.
19303 if test "x$as_myself" = x; then
19306 if test ! -f "$as_myself"; then
19307 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19311 # Unset variables that we do not need and which cause bugs (e.g. in
19312 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19313 # suppresses any "Segmentation fault" message there. '((' could
19314 # trigger a bug in pdksh 5.2.14.
19315 for as_var in BASH_ENV ENV MAIL MAILPATH
19316 do eval test x\${$as_var+set} = xset \
19317 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19333 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19334 # ----------------------------------------
19335 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19336 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19337 # script with STATUS, using 1 if that was 0.
19340 as_status=$1; test $as_status -eq 0 && as_status=1
19342 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19343 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19345 $as_echo "$as_me: error: $2" >&2
19346 as_fn_exit $as_status
19350 # as_fn_set_status STATUS
19351 # -----------------------
19352 # Set $? to STATUS, without forking.
19353 as_fn_set_status ()
19356 } # as_fn_set_status
19358 # as_fn_exit STATUS
19359 # -----------------
19360 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19364 as_fn_set_status $1
19370 # Portably unset VAR.
19373 { eval $1=; unset $1;}
19375 as_unset=as_fn_unset
19376 # as_fn_append VAR VALUE
19377 # ----------------------
19378 # Append the text in VALUE to the end of the definition contained in VAR. Take
19379 # advantage of any shell optimizations that allow amortized linear growth over
19380 # repeated appends, instead of the typical quadratic growth present in naive
19382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19383 eval 'as_fn_append ()
19394 # as_fn_arith ARG...
19395 # ------------------
19396 # Perform arithmetic evaluation on the ARGs, and store the result in the
19397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19398 # must be portable across $(()) and expr.
19399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19400 eval 'as_fn_arith ()
19407 as_val=`expr "$@" || test $? -eq 1`
19412 if expr a : '\(a\)' >/dev/null 2>&1 &&
19413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19420 as_basename=basename
19425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19431 as_me=`$as_basename -- "$0" ||
19432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19433 X"$0" : 'X\(//\)$' \| \
19434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19436 sed '/^.*\/\([^/][^/]*\)\/*$/{
19450 # Avoid depending upon Character Ranges.
19451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19454 as_cr_digits='0123456789'
19455 as_cr_alnum=$as_cr_Letters$as_cr_digits
19457 ECHO_C= ECHO_N= ECHO_T=
19458 case `echo -n x` in #(((((
19460 case `echo 'xy\c'` in
19461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19470 rm -f conf$$ conf$$.exe conf$$.file
19471 if test -d conf$$.dir; then
19472 rm -f conf$$.dir/conf$$.file
19475 mkdir conf$$.dir 2>/dev/null
19477 if (echo >conf$$.file) 2>/dev/null; then
19478 if ln -s conf$$.file conf$$ 2>/dev/null; then
19480 # ... but there are two gotchas:
19481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19483 # In both cases, we have to default to `cp -pR'.
19484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19486 elif ln conf$$.file conf$$ 2>/dev/null; then
19494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19495 rmdir conf$$.dir 2>/dev/null
19500 # Create "$as_dir" as a directory, including parents if necessary.
19505 -*) as_dir=./$as_dir;;
19507 test -d "$as_dir" || eval $as_mkdir_p || {
19511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19512 *) as_qdir=$as_dir;;
19514 as_dirs="'$as_qdir' $as_dirs"
19515 as_dir=`$as_dirname -- "$as_dir" ||
19516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19517 X"$as_dir" : 'X\(//\)[^/]' \| \
19518 X"$as_dir" : 'X\(//\)$' \| \
19519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19520 $as_echo X"$as_dir" |
19521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19525 /^X\(\/\/\)[^/].*/{
19538 test -d "$as_dir" && break
19540 test -z "$as_dirs" || eval "mkdir $as_dirs"
19541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19545 if mkdir -p . 2>/dev/null; then
19546 as_mkdir_p='mkdir -p "$as_dir"'
19548 test -d ./-p && rmdir ./-p
19553 # as_fn_executable_p FILE
19554 # -----------------------
19555 # Test if FILE is an executable regular file.
19556 as_fn_executable_p ()
19558 test -f "$1" && test -x "$1"
19559 } # as_fn_executable_p
19560 as_test_x='test -x'
19561 as_executable_p=as_fn_executable_p
19563 # Sed expression to map a string onto a valid CPP name.
19564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19566 # Sed expression to map a string onto a valid variable name.
19567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19571 ## ----------------------------------- ##
19572 ## Main body of $CONFIG_STATUS script. ##
19573 ## ----------------------------------- ##
19575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19578 # Save the log message, to keep $0 and so on meaningful, and to
19579 # report actual input values of CONFIG_FILES etc. instead of their
19580 # values after options handling.
19582 This file was extended by unbound $as_me 1.5.7, which was
19583 generated by GNU Autoconf 2.69. Invocation command line was
19585 CONFIG_FILES = $CONFIG_FILES
19586 CONFIG_HEADERS = $CONFIG_HEADERS
19587 CONFIG_LINKS = $CONFIG_LINKS
19588 CONFIG_COMMANDS = $CONFIG_COMMANDS
19591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19596 case $ac_config_files in *"
19597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19600 case $ac_config_headers in *"
19601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19606 # Files that config.status was made for.
19607 config_files="$ac_config_files"
19608 config_headers="$ac_config_headers"
19609 config_commands="$ac_config_commands"
19613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19615 \`$as_me' instantiates files and other configuration actions
19616 from templates according to the current configuration. Unless the files
19617 and actions are specified as TAGs, all are instantiated by default.
19619 Usage: $0 [OPTION]... [TAG]...
19621 -h, --help print this help, then exit
19622 -V, --version print version number and configuration settings, then exit
19623 --config print configuration, then exit
19624 -q, --quiet, --silent
19625 do not print progress messages
19626 -d, --debug don't remove temporary files
19627 --recheck update $as_me by reconfiguring in the same conditions
19628 --file=FILE[:TEMPLATE]
19629 instantiate the configuration file FILE
19630 --header=FILE[:TEMPLATE]
19631 instantiate the configuration header FILE
19633 Configuration files:
19636 Configuration headers:
19639 Configuration commands:
19642 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19648 unbound config.status 1.5.7
19649 configured by $0, generated by GNU Autoconf 2.69,
19650 with options \\"\$ac_cs_config\\"
19652 Copyright (C) 2012 Free Software Foundation, Inc.
19653 This config.status script is free software; the Free Software Foundation
19654 gives unlimited permission to copy, distribute and modify it."
19659 test -n "\$AWK" || AWK=awk
19662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19663 # The default lists apply if the user does not specify any file.
19669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19686 # Handling of the options.
19687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19690 $as_echo "$ac_cs_version"; exit ;;
19691 --config | --confi | --conf | --con | --co | --c )
19692 $as_echo "$ac_cs_config"; exit ;;
19693 --debug | --debu | --deb | --de | --d | -d )
19695 --file | --fil | --fi | --f )
19698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19699 '') as_fn_error $? "missing file argument" ;;
19701 as_fn_append CONFIG_FILES " '$ac_optarg'"
19702 ac_need_defaults=false;;
19703 --header | --heade | --head | --hea )
19706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19708 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19709 ac_need_defaults=false;;
19711 # Conflict between --help and --header
19712 as_fn_error $? "ambiguous option: \`$1'
19713 Try \`$0 --help' for more information.";;
19714 --help | --hel | -h )
19715 $as_echo "$ac_cs_usage"; exit ;;
19716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19720 # This is an error.
19721 -*) as_fn_error $? "unrecognized option: \`$1'
19722 Try \`$0 --help' for more information." ;;
19724 *) as_fn_append ac_config_targets " $1"
19725 ac_need_defaults=false ;;
19731 ac_configure_extra_args=
19733 if $ac_cs_silent; then
19735 ac_configure_extra_args="$ac_configure_extra_args --silent"
19739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19740 if \$ac_cs_recheck; then
19741 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19744 CONFIG_SHELL='$SHELL'
19745 export CONFIG_SHELL
19750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19755 ## Running $as_me. ##
19761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767 # The HP-UX ksh and POSIX shell print the target directory to stdout
19768 # if CDPATH is set.
19769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19771 sed_quote_subst='$sed_quote_subst'
19772 double_quote_subst='$double_quote_subst'
19773 delay_variable_subst='$delay_variable_subst'
19774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19776 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19777 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19778 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19779 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19780 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19781 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19782 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19783 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19784 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19785 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19786 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19787 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19788 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19789 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19790 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19791 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19792 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19793 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19794 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19795 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19796 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19797 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19798 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19799 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19800 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19801 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19802 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19803 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19804 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19805 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19806 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19807 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19808 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19809 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19810 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19811 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19812 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19813 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19814 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19815 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19816 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19817 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19818 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19819 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19820 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19821 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19822 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19823 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19824 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19825 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19826 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19827 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19828 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19829 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19830 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"`'
19831 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19832 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19833 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19834 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19835 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19836 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19837 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19838 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19839 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19840 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19841 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19842 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19843 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19844 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19845 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19846 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19847 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19848 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19849 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19850 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19851 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19852 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19853 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19854 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19855 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19856 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19857 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19858 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19859 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19860 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19861 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19862 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19863 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19864 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19865 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19866 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19867 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19868 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19869 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19870 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19871 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19872 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19873 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19874 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19875 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19876 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19877 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19878 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19879 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19880 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19881 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19882 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19883 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19884 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19885 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19886 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19887 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19888 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19889 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19890 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19891 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19892 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19893 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19894 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19895 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19896 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19897 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19898 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19899 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19900 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19901 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19902 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19903 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19906 LTCFLAGS='$LTCFLAGS'
19907 compiler='$compiler_DEFAULT'
19909 # A function that is used when there is no print builtin or printf.
19910 func_fallback_echo ()
19912 eval 'cat <<_LTECHO_EOF
19917 # Quote evaled strings.
19932 deplibs_check_method \
19937 sharedlib_from_linklib_cmd \
19940 archiver_list_spec \
19946 lt_cv_sys_global_symbol_pipe \
19947 lt_cv_sys_global_symbol_to_cdecl \
19948 lt_cv_sys_global_symbol_to_c_name_address \
19949 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19950 nm_file_list_spec \
19951 lt_prog_compiler_no_builtin_flag \
19952 lt_prog_compiler_pic \
19953 lt_prog_compiler_wl \
19954 lt_prog_compiler_static \
19955 lt_cv_prog_compiler_c_o \
19964 export_dynamic_flag_spec \
19965 whole_archive_flag_spec \
19966 compiler_needs_object \
19968 allow_undefined_flag \
19969 no_undefined_flag \
19970 hardcode_libdir_flag_spec \
19971 hardcode_libdir_separator \
19975 variables_saved_for_relink \
19977 library_names_spec \
19979 install_override_mode \
19983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19984 *[\\\\\\\`\\"\\\$]*)
19985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19993 # Double-quote double-evaled strings.
19994 for var in reload_cmds \
19995 old_postinstall_cmds \
19996 old_postuninstall_cmds \
19998 extract_expsyms_cmds \
19999 old_archive_from_new_cmds \
20000 old_archive_from_expsyms_cmds \
20002 archive_expsym_cmds \
20004 module_expsym_cmds \
20005 export_symbols_cmds \
20009 postuninstall_cmds \
20011 sys_lib_search_path_spec \
20012 sys_lib_dlsearch_path_spec; do
20013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20014 *[\\\\\\\`\\"\\\$]*)
20015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20023 ac_aux_dir='$ac_aux_dir'
20024 xsi_shell='$xsi_shell'
20025 lt_shell_append='$lt_shell_append'
20027 # See if we are running on zsh, and set the options which allow our
20028 # commands through without removal of \ escapes INIT.
20029 if test -n "\${ZSH_VERSION+set}" ; then
20030 setopt NO_GLOB_SUBST
20036 TIMESTAMP='$TIMESTAMP'
20045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047 # Handling of arguments.
20048 for ac_config_target in $ac_config_targets
20050 case $ac_config_target in
20051 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20052 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20054 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
20055 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
20056 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
20057 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
20058 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
20059 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
20060 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
20061 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
20062 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
20063 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
20064 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20066 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20071 # If the user did not use the arguments to specify the items to instantiate,
20072 # then the envvar interface is used. Set only those that are not.
20073 # We use the long form for the default assignment because of an extremely
20074 # bizarre bug on SunOS 4.1.3.
20075 if $ac_need_defaults; then
20076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20081 # Have a temporary directory for convenience. Make it in the build tree
20082 # simply because there is no reason against having it here, and in addition,
20083 # creating and moving files from /tmp can sometimes cause problems.
20084 # Hook for its removal unless debugging.
20085 # Note that there is a small window in which the directory will not be cleaned:
20086 # after its creation but before its name has been assigned to `$tmp'.
20090 trap 'exit_status=$?
20091 : "${ac_tmp:=$tmp}"
20092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20094 trap 'as_fn_exit 1' 1 2 13 15
20096 # Create a (secure) tmp directory for tmp files.
20099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20103 tmp=./conf$$-$RANDOM
20104 (umask 077 && mkdir "$tmp")
20105 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20108 # Set up the scripts for CONFIG_FILES section.
20109 # No need to generate them if there are no CONFIG_FILES.
20110 # This happens for instance with `./config.status config.h'.
20111 if test -n "$CONFIG_FILES"; then
20114 ac_cr=`echo X | tr X '\015'`
20115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20116 # But we know of no other shell where ac_cr would be empty at this
20117 # point, so we can use a bashism as a fallback.
20118 if test "x$ac_cr" = x; then
20119 eval ac_cr=\$\'\\r\'
20121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20125 ac_cs_awk_cr=$ac_cr
20128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20133 echo "cat >conf$$subs.awk <<_ACEOF" &&
20134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20136 } >conf$$subs.sh ||
20137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20140 for ac_last_try in false false false false false :; do
20141 . ./conf$$subs.sh ||
20142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20145 if test $ac_delim_n = $ac_delim_num; then
20147 elif $ac_last_try; then
20148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20153 rm -f conf$$subs.sh
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20160 s/^/S["/; s/!.*/"]=/
20170 s/\(.\{148\}\)..*/\1/
20172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20184 s/\(.\{148\}\)..*/\1/
20186 s/["\\]/\\&/g; s/^/"/; s/$/"/
20190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20195 ' <conf$$subs.awk | sed '
20200 ' >>$CONFIG_STATUS || ac_write_fail=1
20201 rm -f conf$$subs.awk
20202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20205 for (key in S) S_is_set[key] = 1
20211 nfields = split(line, field, "@")
20213 len = length(field[1])
20214 for (i = 2; i < nfields; i++) {
20216 keylen = length(key)
20217 if (S_is_set[key]) {
20219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20220 len += length(value) + length(field[++i])
20231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20232 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20236 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20240 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20241 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20242 # trailing colons and then remove the whole line if VPATH becomes empty
20243 # (actually we leave an empty line to preserve line numbers).
20244 if test "x$srcdir" = x.; then
20245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20264 fi # test -n "$CONFIG_FILES"
20266 # Set up the scripts for CONFIG_HEADERS section.
20267 # No need to generate them if there are no CONFIG_HEADERS.
20268 # This happens for instance with `./config.status Makefile'.
20269 if test -n "$CONFIG_HEADERS"; then
20270 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20274 # Transform confdefs.h into an awk script `defines.awk', embedded as
20275 # here-document in config.status, that substitutes the proper values into
20276 # config.h.in to produce config.h.
20278 # Create a delimiter string that does not exist in confdefs.h, to ease
20279 # handling of long lines.
20281 for ac_last_try in false false :; do
20282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20283 if test -z "$ac_tt"; then
20285 elif $ac_last_try; then
20286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20292 # For the awk script, D is an array of macro values keyed by name,
20293 # likewise P contains macro parameters if any. Preserve backslash
20294 # newline sequences.
20296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20298 s/.\{148\}/&'"$ac_delim"'/g
20301 s/^[ ]*#[ ]*define[ ][ ]*/ /
20308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20315 D["\1"]=" \3\\\\\\n"\\/p
20317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20322 s/.\{148\}/&'"$ac_delim"'/g
20327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20332 ' <confdefs.h | sed '
20333 s/'"$ac_delim"'/"\\\
20334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337 for (key in D) D_is_set[key] = 1
20340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20342 split(line, arg, " ")
20343 if (arg[1] == "#") {
20347 defundef = substr(arg[1], 2)
20350 split(mac1, mac2, "(") #)
20352 prefix = substr(line, 1, index(line, defundef) - 1)
20353 if (D_is_set[macro]) {
20354 # Preserve the white space surrounding the "#".
20355 print prefix "define", macro P[macro] D[macro]
20358 # Replace #undef with comments. This is necessary, for example,
20359 # in the case of _POSIX_SOURCE, which is predefined and required
20360 # on some systems where configure will not decide to define it.
20361 if (defundef == "undef") {
20362 print "/*", prefix defundef, macro, "*/"
20370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20372 fi # test -n "$CONFIG_HEADERS"
20375 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20380 :[FHLC]) ac_mode=$ac_tag; continue;;
20382 case $ac_mode$ac_tag in
20384 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20385 :[FH]-) ac_tag=-:-;;
20386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20403 -) ac_f="$ac_tmp/stdin";;
20404 *) # Look for the file first in the build tree, then in the source tree
20405 # (if the path is not absolute). The absolute path cannot be DOS-style,
20406 # because $ac_f cannot contain `:'.
20410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20412 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20414 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20415 as_fn_append ac_file_inputs " '$ac_f'"
20418 # Let's still pretend it is `configure' which instantiates (i.e., don't
20419 # use $as_me), people would be surprised to read:
20420 # /* config.h. Generated by config.status. */
20421 configure_input='Generated from '`
20422 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20424 if test x"$ac_file" != x-; then
20425 configure_input="$ac_file. $configure_input"
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20427 $as_echo "$as_me: creating $ac_file" >&6;}
20429 # Neutralize special characters interpreted by sed in replacement strings.
20430 case $configure_input in #(
20431 *\&* | *\|* | *\\* )
20432 ac_sed_conf_input=`$as_echo "$configure_input" |
20433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20434 *) ac_sed_conf_input=$configure_input;;
20438 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20444 ac_dir=`$as_dirname -- "$ac_file" ||
20445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20446 X"$ac_file" : 'X\(//\)[^/]' \| \
20447 X"$ac_file" : 'X\(//\)$' \| \
20448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20449 $as_echo X"$ac_file" |
20450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20454 /^X\(\/\/\)[^/].*/{
20467 as_dir="$ac_dir"; as_fn_mkdir_p
20471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20474 # A ".." for each directory in $ac_dir_suffix.
20475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20476 case $ac_top_builddir_sub in
20477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20481 ac_abs_top_builddir=$ac_pwd
20482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20483 # for backward compatibility:
20484 ac_top_builddir=$ac_top_build_prefix
20487 .) # We are building in place.
20489 ac_top_srcdir=$ac_top_builddir_sub
20490 ac_abs_top_srcdir=$ac_pwd ;;
20491 [\\/]* | ?:[\\/]* ) # Absolute name.
20492 ac_srcdir=$srcdir$ac_dir_suffix;
20493 ac_top_srcdir=$srcdir
20494 ac_abs_top_srcdir=$srcdir ;;
20495 *) # Relative name.
20496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20497 ac_top_srcdir=$ac_top_build_prefix$srcdir
20498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20512 # If the template does not know about datarootdir, expand it.
20513 # FIXME: This hack should be removed a few years after 2.60.
20514 ac_datarootdir_hack=; ac_datarootdir_seen=
20525 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20526 *datarootdir*) ac_datarootdir_seen=yes;;
20527 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20529 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20532 ac_datarootdir_hack='
20533 s&@datadir@&$datadir&g
20534 s&@docdir@&$docdir&g
20535 s&@infodir@&$infodir&g
20536 s&@localedir@&$localedir&g
20537 s&@mandir@&$mandir&g
20538 s&\\\${datarootdir}&$datarootdir&g' ;;
20542 # Neutralize VPATH when `$srcdir' = `.'.
20543 # Shell code in configure.ac might set extrasub.
20544 # FIXME: do we really want to maintain this feature?
20545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20546 ac_sed_extra="$ac_vpsub
20549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20552 s|@configure_input@|$ac_sed_conf_input|;t t
20553 s&@top_builddir@&$ac_top_builddir_sub&;t t
20554 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20555 s&@srcdir@&$ac_srcdir&;t t
20556 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20557 s&@top_srcdir@&$ac_top_srcdir&;t t
20558 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20559 s&@builddir@&$ac_builddir&;t t
20560 s&@abs_builddir@&$ac_abs_builddir&;t t
20561 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20562 $ac_datarootdir_hack
20564 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20565 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20567 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20568 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20569 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20570 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20572 which seems to be undefined. Please make sure it is defined" >&5
20573 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20574 which seems to be undefined. Please make sure it is defined" >&2;}
20576 rm -f "$ac_tmp/stdin"
20578 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20579 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20587 if test x"$ac_file" != x-; then
20589 $as_echo "/* $configure_input */" \
20590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20591 } >"$ac_tmp/config.h" \
20592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20593 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20595 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20598 mv "$ac_tmp/config.h" "$ac_file" \
20599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20602 $as_echo "/* $configure_input */" \
20603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20604 || as_fn_error $? "could not create -" "$LINENO" 5
20608 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20609 $as_echo "$as_me: executing $ac_file commands" >&6;}
20614 case $ac_file$ac_mode in
20617 # See if we are running on zsh, and set the options which allow our
20618 # commands through without removal of \ escapes.
20619 if test -n "${ZSH_VERSION+set}" ; then
20620 setopt NO_GLOB_SUBST
20623 cfgfile="${ofile}T"
20624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20627 cat <<_LT_EOF >> "$cfgfile"
20630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20635 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20636 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20638 # Written by Gordon Matzigkeit, 1996
20640 # This file is part of GNU Libtool.
20642 # GNU Libtool is free software; you can redistribute it and/or
20643 # modify it under the terms of the GNU General Public License as
20644 # published by the Free Software Foundation; either version 2 of
20645 # the License, or (at your option) any later version.
20647 # As a special exception to the GNU General Public License,
20648 # if you distribute this file as part of a program or library that
20649 # is built using GNU Libtool, you may include this file under the
20650 # same distribution terms that you use for the rest of that program.
20652 # GNU Libtool is distributed in the hope that it will be useful,
20653 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20655 # GNU General Public License for more details.
20657 # You should have received a copy of the GNU General Public License
20658 # along with GNU Libtool; see the file COPYING. If not, a copy
20659 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20660 # obtained by writing to the Free Software Foundation, Inc.,
20661 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20664 # The names of the tagged configurations supported by this script.
20667 # ### BEGIN LIBTOOL CONFIG
20669 # Which release of libtool.m4 was used?
20670 macro_version=$macro_version
20671 macro_revision=$macro_revision
20673 # Whether or not to build shared libraries.
20674 build_libtool_libs=$enable_shared
20676 # Whether or not to build static libraries.
20677 build_old_libs=$enable_static
20679 # What type of objects to build.
20682 # Whether or not to optimize for fast installation.
20683 fast_install=$enable_fast_install
20685 # Shell to use when invoking shell scripts.
20688 # An echo program that protects backslashes.
20691 # The PATH separator for the build system.
20692 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20695 host_alias=$host_alias
20699 # The build system.
20700 build_alias=$build_alias
20704 # A sed program that does not truncate output.
20707 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20708 Xsed="\$SED -e 1s/^X//"
20710 # A grep program that handles long lines.
20716 # A literal string matcher.
20719 # A BSD- or MS-compatible name lister.
20722 # Whether we need soft or hard links.
20725 # What is the maximum length of a command?
20726 max_cmd_len=$max_cmd_len
20728 # Object file suffix (normally "o").
20731 # Executable file suffix (normally "").
20734 # whether the shell understands "unset".
20737 # turn spaces into newlines.
20740 # turn newlines into spaces.
20743 # convert \$build file names to \$host format.
20744 to_host_file_cmd=$lt_cv_to_host_file_cmd
20746 # convert \$build files to toolchain format.
20747 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20749 # An object symbol dumper.
20750 OBJDUMP=$lt_OBJDUMP
20752 # Method to check whether dependent libraries are shared objects.
20753 deplibs_check_method=$lt_deplibs_check_method
20755 # Command to use when deplibs_check_method = "file_magic".
20756 file_magic_cmd=$lt_file_magic_cmd
20758 # How to find potential files when deplibs_check_method = "file_magic".
20759 file_magic_glob=$lt_file_magic_glob
20761 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20762 want_nocaseglob=$lt_want_nocaseglob
20764 # DLL creation program.
20765 DLLTOOL=$lt_DLLTOOL
20767 # Command to associate shared and link libraries.
20768 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20773 # Flags to create an archive.
20774 AR_FLAGS=$lt_AR_FLAGS
20776 # How to feed a file listing to the archiver.
20777 archiver_list_spec=$lt_archiver_list_spec
20779 # A symbol stripping program.
20782 # Commands used to install an old-style archive.
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20787 # Whether to use a lock for old archive extraction.
20788 lock_old_archive_extraction=$lock_old_archive_extraction
20793 # LTCC compiler flags.
20794 LTCFLAGS=$lt_CFLAGS
20796 # Take the output of nm and produce a listing of raw symbols and C names.
20797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20799 # Transform the output of nm in a proper C declaration.
20800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20802 # Transform the output of nm in a C name address pair.
20803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20805 # Transform the output of nm in a C name address pair when lib prefix is needed.
20806 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20808 # Specify filename containing input files for \$NM.
20809 nm_file_list_spec=$lt_nm_file_list_spec
20811 # The root where to search for dependent libraries,and in which our libraries should be installed.
20812 lt_sysroot=$lt_sysroot
20814 # The name of the directory that contains temporary libtool files.
20817 # Used to examine libraries when file_magic_cmd begins with "file".
20818 MAGIC_CMD=$MAGIC_CMD
20820 # Must we lock files when doing compilation?
20821 need_locks=$lt_need_locks
20824 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20826 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20827 DSYMUTIL=$lt_DSYMUTIL
20829 # Tool to change global to local symbols on Mac OS X.
20832 # Tool to manipulate fat objects and archives on Mac OS X.
20835 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20838 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20839 OTOOL64=$lt_OTOOL64
20841 # Old archive suffix (normally "a").
20844 # Shared library suffix (normally ".so").
20845 shrext_cmds=$lt_shrext_cmds
20847 # The commands to extract the exported symbol list from a shared archive.
20848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20850 # Variables whose values should be saved in libtool wrapper scripts and
20851 # restored at link time.
20852 variables_saved_for_relink=$lt_variables_saved_for_relink
20854 # Do we need the "lib" prefix for modules?
20855 need_lib_prefix=$need_lib_prefix
20857 # Do we need a version for libraries?
20858 need_version=$need_version
20860 # Library versioning type.
20861 version_type=$version_type
20863 # Shared library runtime path variable.
20864 runpath_var=$runpath_var
20866 # Shared library path variable.
20867 shlibpath_var=$shlibpath_var
20869 # Is shlibpath searched before the hard-coded library search path?
20870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20872 # Format of library name prefix.
20873 libname_spec=$lt_libname_spec
20875 # List of archive names. First name is the real one, the rest are links.
20876 # The last name is the one that the linker finds with -lNAME
20877 library_names_spec=$lt_library_names_spec
20879 # The coded name of the library, if different from the real name.
20880 soname_spec=$lt_soname_spec
20882 # Permission mode override for installation of shared libraries.
20883 install_override_mode=$lt_install_override_mode
20885 # Command to use after installation of a shared archive.
20886 postinstall_cmds=$lt_postinstall_cmds
20888 # Command to use after uninstallation of a shared archive.
20889 postuninstall_cmds=$lt_postuninstall_cmds
20891 # Commands used to finish a libtool library installation in a directory.
20892 finish_cmds=$lt_finish_cmds
20894 # As "finish_cmds", except a single script fragment to be evaled but
20896 finish_eval=$lt_finish_eval
20898 # Whether we should hardcode library paths into libraries.
20899 hardcode_into_libs=$hardcode_into_libs
20901 # Compile-time system search path for libraries.
20902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20904 # Run-time system search path for libraries.
20905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20907 # Whether dlopen is supported.
20908 dlopen_support=$enable_dlopen
20910 # Whether dlopen of programs is supported.
20911 dlopen_self=$enable_dlopen_self
20913 # Whether dlopen of statically linked programs is supported.
20914 dlopen_self_static=$enable_dlopen_self_static
20916 # Commands to strip libraries.
20917 old_striplib=$lt_old_striplib
20918 striplib=$lt_striplib
20921 # The linker used to build libraries.
20924 # How to create reloadable object files.
20925 reload_flag=$lt_reload_flag
20926 reload_cmds=$lt_reload_cmds
20928 # Commands used to build an old-style archive.
20929 old_archive_cmds=$lt_old_archive_cmds
20931 # A language specific compiler.
20934 # Is the compiler the GNU compiler?
20937 # Compiler flag to turn off builtin functions.
20938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20940 # Additional compiler flags for building library objects.
20941 pic_flag=$lt_lt_prog_compiler_pic
20943 # How to pass a linker flag through the compiler.
20944 wl=$lt_lt_prog_compiler_wl
20946 # Compiler flag to prevent dynamic linking.
20947 link_static_flag=$lt_lt_prog_compiler_static
20949 # Does compiler simultaneously support -c and -o options?
20950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20952 # Whether or not to add -lc for building shared libraries.
20953 build_libtool_need_lc=$archive_cmds_need_lc
20955 # Whether or not to disallow shared libs when runtime libs are static.
20956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20958 # Compiler flag to allow reflexive dlopens.
20959 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20961 # Compiler flag to generate shared objects directly from archives.
20962 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20964 # Whether the compiler copes with passing no objects directly.
20965 compiler_needs_object=$lt_compiler_needs_object
20967 # Create an old-style archive from a shared archive.
20968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20970 # Create a temporary old-style archive to link instead of a shared archive.
20971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20973 # Commands used to build a shared archive.
20974 archive_cmds=$lt_archive_cmds
20975 archive_expsym_cmds=$lt_archive_expsym_cmds
20977 # Commands used to build a loadable module if different from building
20978 # a shared archive.
20979 module_cmds=$lt_module_cmds
20980 module_expsym_cmds=$lt_module_expsym_cmds
20982 # Whether we are building with GNU ld or not.
20983 with_gnu_ld=$lt_with_gnu_ld
20985 # Flag that allows shared libraries with undefined symbols to be built.
20986 allow_undefined_flag=$lt_allow_undefined_flag
20988 # Flag that enforces no undefined symbols.
20989 no_undefined_flag=$lt_no_undefined_flag
20991 # Flag to hardcode \$libdir into a binary during linking.
20992 # This must work even if \$libdir does not exist
20993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20995 # Whether we need a single "-rpath" flag with a separated argument.
20996 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20998 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20999 # DIR into the resulting binary.
21000 hardcode_direct=$hardcode_direct
21002 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21003 # DIR into the resulting binary and the resulting library dependency is
21004 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21005 # library is relocated.
21006 hardcode_direct_absolute=$hardcode_direct_absolute
21008 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21009 # into the resulting binary.
21010 hardcode_minus_L=$hardcode_minus_L
21012 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21013 # into the resulting binary.
21014 hardcode_shlibpath_var=$hardcode_shlibpath_var
21016 # Set to "yes" if building a shared library automatically hardcodes DIR
21017 # into the library and all subsequent libraries and executables linked
21019 hardcode_automatic=$hardcode_automatic
21021 # Set to yes if linker adds runtime paths of dependent libraries
21022 # to runtime path list.
21023 inherit_rpath=$inherit_rpath
21025 # Whether libtool must link a program against all its dependency libraries.
21026 link_all_deplibs=$link_all_deplibs
21028 # Set to "yes" if exported symbols are required.
21029 always_export_symbols=$always_export_symbols
21031 # The commands to list exported symbols.
21032 export_symbols_cmds=$lt_export_symbols_cmds
21034 # Symbols that should not be listed in the preloaded symbols.
21035 exclude_expsyms=$lt_exclude_expsyms
21037 # Symbols that must always be exported.
21038 include_expsyms=$lt_include_expsyms
21040 # Commands necessary for linking programs (against libraries) with templates.
21041 prelink_cmds=$lt_prelink_cmds
21043 # Commands necessary for finishing linking programs.
21044 postlink_cmds=$lt_postlink_cmds
21046 # Specify filename containing input files.
21047 file_list_spec=$lt_file_list_spec
21049 # How to hardcode a shared library path into an executable.
21050 hardcode_action=$hardcode_action
21052 # ### END LIBTOOL CONFIG
21058 cat <<\_LT_EOF >> "$cfgfile"
21059 # AIX sometimes has problems with the GCC collect2 program. For some
21060 # reason, if we set the COLLECT_NAMES environment variable, the problems
21061 # vanish in a puff of smoke.
21062 if test "X${COLLECT_NAMES+set}" != Xset; then
21064 export COLLECT_NAMES
21071 ltmain="$ac_aux_dir/ltmain.sh"
21074 # We use sed instead of cat because bash on DJGPP gets confused if
21075 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21076 # text mode, it properly converts lines to CR/LF. This bash problem
21077 # is reportedly fixed, but why not run on old versions too?
21078 sed '$q' "$ltmain" >> "$cfgfile" \
21079 || (rm -f "$cfgfile"; exit 1)
21081 if test x"$xsi_shell" = xyes; then
21082 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21086 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21087 \ * ) func_dirname_result="${3}" ;;\
21089 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21090 && mv -f "$cfgfile.tmp" "$cfgfile" \
21091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21092 test 0 -eq $? || _lt_function_replace_fail=:
21095 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21098 \ func_basename_result="${1##*/}"\
21099 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21100 && mv -f "$cfgfile.tmp" "$cfgfile" \
21101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21102 test 0 -eq $? || _lt_function_replace_fail=:
21105 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21106 func_dirname_and_basename ()\
21109 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21110 \ * ) func_dirname_result="${3}" ;;\
21112 \ func_basename_result="${1##*/}"\
21113 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21114 && mv -f "$cfgfile.tmp" "$cfgfile" \
21115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21116 test 0 -eq $? || _lt_function_replace_fail=:
21119 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21122 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21123 \ # positional parameters, so assign one to ordinary parameter first.\
21124 \ func_stripname_result=${3}\
21125 \ func_stripname_result=${func_stripname_result#"${1}"}\
21126 \ func_stripname_result=${func_stripname_result%"${2}"}\
21127 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21128 && mv -f "$cfgfile.tmp" "$cfgfile" \
21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21130 test 0 -eq $? || _lt_function_replace_fail=:
21133 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21134 func_split_long_opt ()\
21136 \ func_split_long_opt_name=${1%%=*}\
21137 \ func_split_long_opt_arg=${1#*=}\
21138 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21139 && mv -f "$cfgfile.tmp" "$cfgfile" \
21140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21141 test 0 -eq $? || _lt_function_replace_fail=:
21144 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21145 func_split_short_opt ()\
21147 \ func_split_short_opt_arg=${1#??}\
21148 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21149 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21150 && mv -f "$cfgfile.tmp" "$cfgfile" \
21151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21152 test 0 -eq $? || _lt_function_replace_fail=:
21155 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21159 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21160 \ *) func_lo2o_result=${1} ;;\
21162 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21163 && mv -f "$cfgfile.tmp" "$cfgfile" \
21164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21165 test 0 -eq $? || _lt_function_replace_fail=:
21168 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21171 func_xform_result=${1%.*}.lo\
21172 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21173 && mv -f "$cfgfile.tmp" "$cfgfile" \
21174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21175 test 0 -eq $? || _lt_function_replace_fail=:
21178 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21181 func_arith_result=$(( $* ))\
21182 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21183 && mv -f "$cfgfile.tmp" "$cfgfile" \
21184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21185 test 0 -eq $? || _lt_function_replace_fail=:
21188 sed -e '/^func_len ()$/,/^} # func_len /c\
21191 func_len_result=${#1}\
21192 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21193 && mv -f "$cfgfile.tmp" "$cfgfile" \
21194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21195 test 0 -eq $? || _lt_function_replace_fail=:
21199 if test x"$lt_shell_append" = xyes; then
21200 sed -e '/^func_append ()$/,/^} # func_append /c\
21203 eval "${1}+=\\${2}"\
21204 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21205 && mv -f "$cfgfile.tmp" "$cfgfile" \
21206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21207 test 0 -eq $? || _lt_function_replace_fail=:
21210 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21211 func_append_quoted ()\
21213 \ func_quote_for_eval "${2}"\
21214 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21215 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21216 && mv -f "$cfgfile.tmp" "$cfgfile" \
21217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21218 test 0 -eq $? || _lt_function_replace_fail=:
21221 # Save a `func_append' function call where possible by direct use of '+='
21222 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21223 && mv -f "$cfgfile.tmp" "$cfgfile" \
21224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21225 test 0 -eq $? || _lt_function_replace_fail=:
21227 # Save a `func_append' function call even when '+=' is not available
21228 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21229 && mv -f "$cfgfile.tmp" "$cfgfile" \
21230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21231 test 0 -eq $? || _lt_function_replace_fail=:
21234 if test x"$_lt_function_replace_fail" = x":"; then
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21236 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21240 mv -f "$cfgfile" "$ofile" ||
21241 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21246 sed < libtool > libtool-2 \
21247 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21248 mv libtool-2 libtool
21250 libtool="./libtool"
21259 ac_clean_files=$ac_clean_files_save
21261 test $ac_write_fail = 0 ||
21262 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21265 # configure is writing to config.log, and then calls config.status.
21266 # config.status does its own redirection, appending to config.log.
21267 # Unfortunately, on DOS this fails, as config.log is still kept open
21268 # by configure, so config.status won't be able to write to it; its
21269 # output is simply discarded. So we exec the FD to /dev/null,
21270 # effectively closing config.log, so it can be properly (re)opened and
21271 # appended to by config.status. When coming back to configure, we
21272 # need to make the FD available again.
21273 if test "$no_create" != yes; then
21275 ac_config_status_args=
21276 test "$silent" = yes &&
21277 ac_config_status_args="$ac_config_status_args --quiet"
21279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21282 # would make configure fail if this is the last instruction.
21283 $ac_cs_success || as_fn_exit 1
21285 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21287 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}