2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.3.
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.3'
594 PACKAGE_STRING='unbound 1.5.3'
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
730 UNBOUND_ROOTCERT_FILE
751 UNBOUND_VERSION_MICRO
752 UNBOUND_VERSION_MINOR
753 UNBOUND_VERSION_MAJOR
781 program_transform_name
794 enable_option_checking
817 enable_alloc_nonregional
834 with_dnstap_socket_path
839 ac_precious_vars='build_alias
853 # Initialize some variables set by options.
855 ac_init_version=false
856 ac_unrecognized_opts=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
970 eval enable_$ac_useropt=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=\$ac_optarg ;;
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 htmldir=$ac_optarg ;;
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1041 -libdir | --libdir | --libdi | --libd)
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1132 -psdir | --psdir | --psdi | --psd | --ps)
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 sbindir=$ac_optarg ;;
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 sharedstatedir=$ac_optarg ;;
1158 -site | --site | --sit)
1160 -site=* | --site=* | --sit=*)
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval with_$ac_useropt=\$ac_optarg ;;
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1216 eval with_$ac_useropt=no ;;
1219 # Obsolete; use --with-x.
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures unbound 1.5.3 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of unbound 1.5.3:";;
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-checking Enable warnings, asserts, makefile-dependencies
1465 --enable-debug same as enable-checking
1466 --disable-flto Disable link-time optimization (gcc specific option)
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --disable-rpath disable hardcoded rpath (default=enabled)
1473 --disable-largefile omit support for large files
1474 --enable-alloc-checks enable to memory allocation statistics, for debug
1476 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1478 --enable-alloc-nonregional
1479 enable nonregional allocs, slow but exposes regional
1480 allocations to other memory purifiers, for debug
1482 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1483 --disable-gost Disable GOST support
1484 --disable-ecdsa Disable ECDSA support
1485 --enable-event-api Enable (experimental) libevent-based libunbound API
1486 installed to unbound-event.h
1487 --enable-static-exe enable to compile executables statically against
1488 (event) libs, for debug purposes
1489 --enable-lock-checks enable to check lock and unlock calls, for debug
1491 --enable-allsymbols export all symbols from libunbound and link binaries
1492 to it, smaller install size but libunbound export
1493 table is polluted by internal symbols
1494 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-conf-file=path Pathname to the Unbound configuration file
1500 --with-run-dir=path set default directory to chdir to (by default dir
1502 --with-chroot-dir=path set default directory to chroot to (by default same
1504 --with-share-dir=path set default directory with shared data (by default
1505 same as share/unbound)
1506 --with-pidfile=filename set default pathname to unbound pidfile (default
1507 run-dir/unbound.pid)
1508 --with-rootkey-file=filename
1509 set default pathname to root key file (default
1510 run-dir/root.key). This file is read and written.
1511 --with-rootcert-file=filename
1512 set default pathname to root update certificate file
1513 (default run-dir/icannbundle.pem). This file need
1514 not exist if you are content with the builtin.
1515 --with-username=user set default user that unbound changes to (default
1517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1520 --with-sysroot=DIR Search for dependent libraries within DIR
1521 (or the compiler's sysroot if not specified).
1522 --with-pthreads use pthreads library, or --without-pthreads to
1523 disable threading support.
1524 --with-solaris-threads use solaris native thread library.
1525 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1527 --with-pythonmodule build Python module, or --without-pythonmodule to
1528 disable script engine. (default=no)
1529 --with-nss=path use libnss instead of openssl, installed at path.
1530 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1531 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1533 --with-libevent=pathname
1534 use libevent (will check /usr/local /opt/local
1535 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1536 an explicit path). Slower, but allows use of large
1537 outgoing port ranges.
1538 --with-libexpat=path specify explicit path for libexpat.
1539 --with-dnstap-socket-path=pathname
1540 set default dnstap socket path
1541 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1542 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1543 --with-libunbound-only do not build daemon and tool programs
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 YACC The `Yet Another Compiler Compiler' implementation to use.
1555 Defaults to the first program found out of: `bison -y', `byacc',
1557 YFLAGS The list of arguments that will be passed by default to $YACC.
1558 This script will default YFLAGS to the empty string to avoid a
1559 default value of `-d' given by some make applications.
1561 The installed Python version to use, for example '2.3'. This
1562 string will be appended to the Python interpreter canonical
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 unbound configure 1.5.3
1632 generated by GNU Autoconf 2.69
1634 Copyright (C) 2012 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext
1652 if { { ac_try="$ac_compile"
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext; then :
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_compile
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1720 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721 # -------------------------------------------------------
1722 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723 # the include files in INCLUDES and setting the cache variable VAR
1725 ac_fn_c_check_header_mongrel ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1738 # Is the header compilable?
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740 $as_echo_n "checking $2 usability... " >&6; }
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1749 ac_header_compiler=no
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753 $as_echo "$ac_header_compiler" >&6; }
1755 # Is the header present?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757 $as_echo_n "checking $2 presence... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1762 if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1765 ac_header_preproc=no
1767 rm -f conftest.err conftest.i conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769 $as_echo "$ac_header_preproc" >&6; }
1771 # So? What about this header?
1772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ( $as_echo "## ---------------------------------------- ##
1791 ## Report this to unbound-bugs@nlnetlabs.nl ##
1792 ## ---------------------------------------- ##"
1793 ) | sed "s/^/$as_me: WARNING: /" >&2
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
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_try") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1945 #define $2 innocuous_$2
1947 /* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $2 (); below.
1949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950 <limits.h> exists even on freestanding compilers. */
1953 # include <limits.h>
1955 # include <assert.h>
1960 /* Override any GCC internal prototype to avoid an error.
1961 Use char because int might match the return type of a GCC
1962 builtin and then its argument prototype would still apply. */
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined __stub_$2 || defined __stub___$2
1982 if ac_fn_c_try_link "$LINENO"; then :
1987 rm -f core conftest.err conftest.$ac_objext \
1988 conftest$ac_exeext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_func
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2035 if ac_fn_c_try_compile "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_type
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 ac_fn_c_compute_int ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2069 return test_array [0];
2075 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 return test_array [0];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_hi=$ac_mid; break
2095 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096 if test $ac_lo -le $ac_mid; then
2100 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) < 0)];
2113 return test_array [0];
2119 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 return test_array [0];
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2165 return test_array [0];
2171 if ac_fn_c_try_compile "$LINENO"; then :
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2194 FILE *f = fopen ("conftest.val", "w");
2199 long int i = longval ();
2202 fprintf (f, "%ld", i);
2206 unsigned long int i = ulongval ();
2209 fprintf (f, "%lu", i);
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2219 if ac_fn_c_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 as_fn_set_status $ac_retval
2232 } # ac_fn_c_compute_int
2234 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2235 # ---------------------------------------------
2236 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2238 ac_fn_c_check_decl ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 as_decl_name=`echo $2|sed 's/ *(.*//'`
2242 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2244 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2245 if eval \${$3+:} false; then :
2246 $as_echo_n "(cached) " >&6
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 #ifndef $as_decl_name
2256 (void) $as_decl_use;
2258 (void) $as_decl_name;
2266 if ac_fn_c_try_compile "$LINENO"; then :
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278 } # ac_fn_c_check_decl
2280 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2281 # ----------------------------------------------------
2282 # Tries to find if the field MEMBER exists in type AGGR, after including
2283 # INCLUDES, setting cache variable VAR accordingly.
2284 ac_fn_c_check_member ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2288 $as_echo_n "checking for $2.$3... " >&6; }
2289 if eval \${$4+:} false; then :
2290 $as_echo_n "(cached) " >&6
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2305 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2315 if (sizeof ac_aggr.$3)
2321 if ac_fn_c_try_compile "$LINENO"; then :
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 } # ac_fn_c_check_member
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2340 It was created by unbound $as_me 1.5.3, which was
2341 generated by GNU Autoconf 2.69. Invocation command line was
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2401 ac_must_keep_next=false
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2430 -* ) ac_must_keep_next=true ;;
2433 as_fn_append ac_configure_args " '$ac_arg'"
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2451 $as_echo "## ---------------- ##
2452 ## Cache variables. ##
2453 ## ---------------- ##"
2455 # The following way of writing the cache mishandles newlines in values,
2457 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2458 eval ac_val=\$$ac_var
2462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2463 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2466 _ | IFS | as_nl) ;; #(
2467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2468 *) { eval $ac_var=; unset $ac_var;} ;;
2473 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2474 *${as_nl}ac_space=\ *)
2476 "s/'\''/'\''\\\\'\'''\''/g;
2477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2487 $as_echo "## ----------------- ##
2488 ## Output variables. ##
2489 ## ----------------- ##"
2491 for ac_var in $ac_subst_vars
2493 eval ac_val=\$$ac_var
2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2497 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -n "$ac_subst_files"; then
2502 $as_echo "## ------------------- ##
2503 ## File substitutions. ##
2504 ## ------------------- ##"
2506 for ac_var in $ac_subst_files
2508 eval ac_val=\$$ac_var
2510 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2512 $as_echo "$ac_var='\''$ac_val'\''"
2517 if test -s confdefs.h; then
2518 $as_echo "## ----------- ##
2525 test "$ac_signal" != 0 &&
2526 $as_echo "$as_me: caught signal $ac_signal"
2527 $as_echo "$as_me: exit $exit_status"
2529 rm -f core *.core core.conftest.* &&
2530 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2533 for ac_signal in 1 2 13 15; do
2534 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2538 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2539 rm -f -r conftest* confdefs.h
2541 $as_echo "/* confdefs.h */" > confdefs.h
2543 # Predefined preprocessor variables.
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_NAME "$PACKAGE_NAME"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_STRING "$PACKAGE_STRING"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_URL "$PACKAGE_URL"
2570 # Let the site file select an alternate cache file if it wants to.
2571 # Prefer an explicitly selected file to automatically selected ones.
2574 if test -n "$CONFIG_SITE"; then
2575 # We do not want a PATH search for config.site.
2576 case $CONFIG_SITE in #((
2577 -*) ac_site_file1=./$CONFIG_SITE;;
2578 */*) ac_site_file1=$CONFIG_SITE;;
2579 *) ac_site_file1=./$CONFIG_SITE;;
2581 elif test "x$prefix" != xNONE; then
2582 ac_site_file1=$prefix/share/config.site
2583 ac_site_file2=$prefix/etc/config.site
2585 ac_site_file1=$ac_default_prefix/share/config.site
2586 ac_site_file2=$ac_default_prefix/etc/config.site
2588 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2590 test "x$ac_site_file" = xNONE && continue
2591 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2593 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2594 sed 's/^/| /' "$ac_site_file" >&5
2596 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error $? "failed to load site script $ac_site_file
2599 See \`config.log' for more details" "$LINENO" 5; }
2603 if test -r "$cache_file"; then
2604 # Some versions of bash will fail to source /dev/null (special files
2605 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2606 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2608 $as_echo "$as_me: loading cache $cache_file" >&6;}
2610 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2611 *) . "./$cache_file";;
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2616 $as_echo "$as_me: creating cache $cache_file" >&6;}
2620 # Check that the precious variables saved in the cache have kept the same
2622 ac_cache_corrupted=false
2623 for ac_var in $ac_precious_vars; do
2624 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2625 eval ac_new_set=\$ac_env_${ac_var}_set
2626 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2627 eval ac_new_val=\$ac_env_${ac_var}_value
2628 case $ac_old_set,$ac_new_set in
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2631 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2632 ac_cache_corrupted=: ;;
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2639 if test "x$ac_old_val" != "x$ac_new_val"; then
2640 # differences in whitespace do not lead to failure.
2641 ac_old_val_w=`echo x $ac_old_val`
2642 ac_new_val_w=`echo x $ac_new_val`
2643 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2645 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2646 ac_cache_corrupted=:
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2649 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2650 eval $ac_var=\$ac_old_val
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2653 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2655 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2658 # Pass precious variables to config.status.
2659 if test "$ac_new_set" = set; then
2661 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 *) ac_arg=$ac_var=$ac_new_val ;;
2664 case " $ac_configure_args " in
2665 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2666 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2670 if $ac_cache_corrupted; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2674 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2675 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2677 ## -------------------- ##
2678 ## Main body of script. ##
2679 ## -------------------- ##
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 UNBOUND_VERSION_MAJOR=1
2690 UNBOUND_VERSION_MINOR=5
2692 UNBOUND_VERSION_MICRO=3
2695 LIBUNBOUND_CURRENT=5
2696 LIBUNBOUND_REVISION=6
2705 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2710 # 1.4.0-snapshots had 1:5:0
2711 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2725 # and 1.4.13p1 and 1.4.13.p2
2727 # 1.4.15 had 3:0:1 # adds ub_version()
2732 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2735 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2740 # Current -- the number of the binary API that we're implementing
2741 # Revision -- which iteration of the implementation of the binary
2742 # API are we supplying?
2743 # Age -- How many previous binary API versions do we also
2746 # If we release a new version that does not change the binary API,
2747 # increment Revision.
2749 # If we release a new version that changes the binary API, but does
2750 # not break programs compiled against the old binary API, increment
2751 # Current and Age. Set Revision to 0, since this is the first
2752 # implementation of the new API.
2754 # Otherwise, we're changing the binary API and breaking bakward
2755 # compatibility with old binaries. Increment Current. Set Age to 0,
2756 # since we're backward compatible with no previous APIs. Set Revision
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="gcc"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2845 if test "x$ac_ct_CC" = x; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_CC="${ac_tool_prefix}cc"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921 ac_prog_rejected=yes
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test $ac_prog_rejected = yes; then
2933 # We found a bogon in the path, so make sure we never use it.
2934 set dummy $ac_cv_prog_CC
2936 if test $# != 0; then
2937 # We chose a different compiler from the bogus one.
2938 # However, it has the same basename, so the bogon will be chosen
2939 # first if we set CC to just the basename; use the full file name.
2941 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$CC"; then
2958 if test -n "$ac_tool_prefix"; then
2959 for ac_prog in cl.exe
2961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$CC" && break
3001 if test -z "$CC"; then
3003 for ac_prog in cl.exe
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$ac_ct_CC"; then
3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_ac_ct_CC="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3042 test -n "$ac_ct_CC" && break
3045 if test "x$ac_ct_CC" = x; then
3048 case $cross_compiling:$ac_tool_warned in
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error $? "no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details" "$LINENO" 5; }
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3070 for ac_option in --version -v -V -qversion; do
3071 { { ac_try="$ac_compiler $ac_option >&5"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3080 if test -s conftest.err; then
3082 ... rest of stderr output deleted ...
3083 10q' conftest.err >conftest.er1
3084 cat conftest.er1 >&5
3086 rm -f conftest.er1 conftest.err
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3102 ac_clean_files_save=$ac_clean_files
3103 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3104 # Try to create an executable without -o first, disregard a.out.
3105 # It will help us diagnose broken compilers, and finding out an intuition
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3108 $as_echo_n "checking whether the C compiler works... " >&6; }
3109 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3111 # The possible output files:
3112 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3115 for ac_file in $ac_files
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124 if { { ac_try="$ac_link_default"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link_default") 2>&5
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3140 for ac_file in $ac_files ''
3142 test -f "$ac_file" || continue
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3147 # We found the default executable, but exeext='' is most
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3170 if test -z "$ac_file"; then :
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error 77 "C compiler cannot create executables
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 $as_echo "$ac_file" >&6; }
3188 ac_exeext=$ac_cv_exeext
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 $as_echo_n "checking for suffix of executables... " >&6; }
3194 if { { ac_try="$ac_link"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest$ac_cv_exeext
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 $as_echo "$ac_cv_exeext" >&6; }
3228 rm -f conftest.$ac_ext
3229 EXEEXT=$ac_cv_exeext
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3244 ac_clean_files="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try="$ac_link"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3274 if test "$cross_compiling" = maybe; then
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3288 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if ${ac_cv_objext+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 rm -f conftest.o conftest.obj
3307 if { { ac_try="$ac_compile"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compile") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 for ac_file in conftest.o conftest.obj conftest.*; do
3319 test -f "$ac_file" || continue;
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error $? "cannot compute suffix of object files: cannot compile
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3338 $as_echo "$ac_cv_objext" >&6; }
3339 OBJEXT=$ac_cv_objext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if ${ac_cv_c_compiler_gnu+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if ${ac_cv_prog_cc_g+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 ac_save_c_werror_flag=$ac_c_werror_flag
3384 ac_c_werror_flag=yes
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 if ac_fn_c_try_compile "$LINENO"; then :
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442 CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444 if test "$GCC" = yes; then
3450 if test "$GCC" = yes; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if ${ac_cv_prog_cc_c89+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_cv_prog_cc_c89=no
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3482 s = g (p, va_arg (v,int));
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 rm -f conftest.$ac_ext
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3559 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3560 # On Suns, sometimes $CPP names a directory.
3561 if test -n "$CPP" && test -d "$CPP"; then
3564 if test -z "$CPP"; then
3565 if ${ac_cv_prog_CPP+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 # Double quotes because CPP needs to be expanded
3569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3572 for ac_c_preproc_warn_flag in '' yes
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3583 # include <limits.h>
3585 # include <assert.h>
3589 if ac_fn_c_try_cpp "$LINENO"; then :
3592 # Broken: fails on valid input.
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604 # Broken: success on invalid input.
3607 # Passes both tests.
3611 rm -f conftest.err conftest.i conftest.$ac_ext
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.i conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then :
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3629 $as_echo "$CPP" >&6; }
3631 for ac_c_preproc_warn_flag in '' yes
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3642 # include <limits.h>
3644 # include <assert.h>
3648 if ac_fn_c_try_cpp "$LINENO"; then :
3651 # Broken: fails on valid input.
3654 rm -f conftest.err conftest.i conftest.$ac_ext
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #include <ac_nonexistent.h>
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663 # Broken: success on invalid input.
3666 # Passes both tests.
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.i conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then :
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details" "$LINENO" 5; }
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3692 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3693 if ${ac_cv_path_GREP+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 if test -z "$GREP"; then
3697 ac_path_GREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in grep ggrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3707 as_fn_executable_p "$ac_path_GREP" || continue
3708 # Check for GNU ac_path_GREP and select it if it is found.
3709 # Check for GNU $ac_path_GREP
3710 case `"$ac_path_GREP" --version 2>&1` in
3712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3715 $as_echo_n 0123456789 >"conftest.in"
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo 'GREP' >> "conftest.nl"
3722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_GREP="$ac_path_GREP"
3728 ac_path_GREP_max=$ac_count
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 $ac_path_GREP_found && break 3
3741 if test -z "$ac_cv_path_GREP"; then
3742 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3745 ac_cv_path_GREP=$GREP
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3750 $as_echo "$ac_cv_path_GREP" >&6; }
3751 GREP="$ac_cv_path_GREP"
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3755 $as_echo_n "checking for egrep... " >&6; }
3756 if ${ac_cv_path_EGREP+:} false; then :
3757 $as_echo_n "(cached) " >&6
3759 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3760 then ac_cv_path_EGREP="$GREP -E"
3762 if test -z "$EGREP"; then
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 as_fn_executable_p "$ac_path_EGREP" || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3781 $as_echo_n 0123456789 >"conftest.in"
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 $as_echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 as_fn_arith $ac_count + 1 && ac_count=$as_val
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3802 $ac_path_EGREP_found && break 3
3807 if test -z "$ac_cv_path_EGREP"; then
3808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3811 ac_cv_path_EGREP=$EGREP
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3817 $as_echo "$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3822 $as_echo_n "checking for ANSI C header files... " >&6; }
3823 if ${ac_cv_header_stdc+:} false; then :
3824 $as_echo_n "(cached) " >&6
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_header_stdc=yes
3844 ac_cv_header_stdc=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 if test $ac_cv_header_stdc = yes; then
3849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "memchr" >/dev/null 2>&1; then :
3859 ac_cv_header_stdc=no
3865 if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "free" >/dev/null 2>&1; then :
3876 ac_cv_header_stdc=no
3882 if test $ac_cv_header_stdc = yes; then
3883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3884 if test "$cross_compiling" = yes; then :
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3891 #if ((' ' & 0x0FF) == 0x020)
3892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3895 # define ISLOWER(c) \
3896 (('a' <= (c) && (c) <= 'i') \
3897 || ('j' <= (c) && (c) <= 'r') \
3898 || ('s' <= (c) && (c) <= 'z'))
3899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3907 for (i = 0; i < 256; i++)
3908 if (XOR (islower (i), ISLOWER (i))
3909 || toupper (i) != TOUPPER (i))
3914 if ac_fn_c_try_run "$LINENO"; then :
3917 ac_cv_header_stdc=no
3919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3920 conftest.$ac_objext conftest.beam conftest.$ac_ext
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3926 $as_echo "$ac_cv_header_stdc" >&6; }
3927 if test $ac_cv_header_stdc = yes; then
3929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935 inttypes.h stdint.h unistd.h
3937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3941 cat >>confdefs.h <<_ACEOF
3942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3952 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3959 if test "$MINIX" = yes; then
3961 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3964 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3967 $as_echo "#define _MINIX 1" >>confdefs.h
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3973 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3974 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3975 $as_echo_n "(cached) " >&6
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3980 # define __EXTENSIONS__ 1
3981 $ac_includes_default
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_safe_to_define___extensions__=yes
3993 ac_cv_safe_to_define___extensions__=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3998 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3999 test $ac_cv_safe_to_define___extensions__ = yes &&
4000 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4002 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4004 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4006 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4008 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4012 if test "$ac_cv_header_minix_config_h" = "yes"; then
4014 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4025 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4027 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4028 else on_mingw="no"; fi
4032 # Determine configuration file
4033 # the eval is to evaluate shell expansion twice
4034 if test $on_mingw = "no"; then
4035 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4037 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4040 # Check whether --with-conf_file was given.
4041 if test "${with_conf_file+set}" = set; then :
4042 withval=$with_conf_file; ub_conf_file="$withval"
4046 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4049 cat >>confdefs.h <<_ACEOF
4050 #define CONFIGFILE "$hdr_config"
4053 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4054 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4055 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4056 X"$ub_conf_file" : 'X\(//\)$' \| \
4057 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4058 $as_echo X"$ub_conf_file" |
4059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4078 # Determine run, chroot directory and pidfile locations
4080 # Check whether --with-run-dir was given.
4081 if test "${with_run_dir+set}" = set; then :
4082 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4084 if test $on_mingw = no; then
4085 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4093 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4096 cat >>confdefs.h <<_ACEOF
4097 #define RUN_DIR "$hdr_run"
4102 # Check whether --with-chroot-dir was given.
4103 if test "${with_chroot_dir+set}" = set; then :
4104 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4106 if test $on_mingw = no; then
4107 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4109 UNBOUND_CHROOT_DIR=""
4115 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4118 cat >>confdefs.h <<_ACEOF
4119 #define CHROOT_DIR "$hdr_chroot"
4124 # Check whether --with-share-dir was given.
4125 if test "${with_share_dir+set}" = set; then :
4126 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4128 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4133 cat >>confdefs.h <<_ACEOF
4134 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4139 # Check whether --with-pidfile was given.
4140 if test "${with_pidfile+set}" = set; then :
4141 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4143 if test $on_mingw = no; then
4144 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4152 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4155 cat >>confdefs.h <<_ACEOF
4156 #define PIDFILE "$hdr_pid"
4161 # Check whether --with-rootkey-file was given.
4162 if test "${with_rootkey_file+set}" = set; then :
4163 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4165 if test $on_mingw = no; then
4166 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4168 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4174 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4177 cat >>confdefs.h <<_ACEOF
4178 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4183 # Check whether --with-rootcert-file was given.
4184 if test "${with_rootcert_file+set}" = set; then :
4185 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4187 if test $on_mingw = no; then
4188 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4190 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4196 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4199 cat >>confdefs.h <<_ACEOF
4200 #define ROOT_CERT_FILE "$hdr_rpem"
4205 # Check whether --with-username was given.
4206 if test "${with_username+set}" = set; then :
4207 withval=$with_username; UNBOUND_USERNAME="$withval"
4209 UNBOUND_USERNAME="unbound"
4214 cat >>confdefs.h <<_ACEOF
4215 #define UB_USERNAME "$UNBOUND_USERNAME"
4220 $as_echo "#define WINVER 0x0502" >>confdefs.h
4222 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/' `
4225 cat >>confdefs.h <<_ACEOF
4226 #define RSRC_PACKAGE_VERSION $wnvs
4230 # Checks for typedefs, structures, and compiler characteristics.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4232 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4233 if ${ac_cv_c_const+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4244 /* Ultrix mips cc rejects this sort of thing. */
4245 typedef int charset[2];
4246 const charset cs = { 0, 0 };
4247 /* SunOS 4.1.1 cc rejects this. */
4248 char const *const *pcpcc;
4250 /* NEC SVR4.0.2 mips cc rejects this. */
4251 struct point {int x, y;};
4252 static struct point const zero = {0,0};
4253 /* AIX XL C 1.02.0.0 rejects this.
4254 It does not let you subtract one const X* pointer from another in
4255 an arm of an if-expression whose if-part is not a constant
4257 const char *g = "string";
4258 pcpcc = &g + (g ? g-g : 0);
4259 /* HPUX 7.0 cc rejects these. */
4261 ppc = (char**) pcpcc;
4262 pcpcc = (char const *const *) ppc;
4263 { /* SCO 3.2v4 cc rejects this sort of thing. */
4266 char const *s = 0 ? (char *) 0 : (char const *) 0;
4271 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4273 const int *foo = &x[0];
4276 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4277 typedef const int *iptr;
4281 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4282 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4283 struct s { int j; const int *ap[3]; } bx;
4284 struct s *b = &bx; b->j = 5;
4286 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4290 return !cs[0] && !zero.x;
4297 if ac_fn_c_try_compile "$LINENO"; then :
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4305 $as_echo "$ac_cv_c_const" >&6; }
4306 if test $ac_cv_c_const = no; then
4308 $as_echo "#define const /**/" >>confdefs.h
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 # allow user to override the -g -O2 flags.
4319 if test "x$CFLAGS" = "x" ; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4323 $as_echo_n "checking whether $CC supports -g... " >&6; }
4324 cache=`echo g | sed 'y%.=/+-%___p_%'`
4325 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4326 $as_echo_n "(cached) " >&6
4329 echo 'void f(void){}' >conftest.c
4330 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4331 eval "cv_prog_cc_flag_$cache=yes"
4333 eval "cv_prog_cc_flag_$cache=no"
4335 rm -f conftest conftest.o conftest.c
4339 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4341 $as_echo "yes" >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4354 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4355 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4356 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4357 $as_echo_n "(cached) " >&6
4360 echo 'void f(void){}' >conftest.c
4361 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4362 eval "cv_prog_cc_flag_$cache=yes"
4364 eval "cv_prog_cc_flag_$cache=no"
4366 rm -f conftest conftest.o conftest.c
4370 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4374 CFLAGS="$CFLAGS -O2"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 if test -n "$ac_tool_prefix"; then
4389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$CC"; then
4397 ac_cv_prog_CC="$CC" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 if test -n "$CC"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4419 $as_echo "$CC" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4427 if test -z "$ac_cv_prog_CC"; then
4429 # Extract the first word of "gcc", so it can be a program name with args.
4430 set dummy gcc; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 if test -n "$ac_ct_CC"; then
4437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_ac_ct_CC="gcc"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4457 if test -n "$ac_ct_CC"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4459 $as_echo "$ac_ct_CC" >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4465 if test "x$ac_ct_CC" = x; then
4468 case $cross_compiling:$ac_tool_warned in
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_CC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 if test -n "$CC"; then
4490 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_CC="${ac_tool_prefix}cc"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 if test -n "$CC"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 $as_echo "$CC" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4521 if test -z "$CC"; then
4522 # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541 ac_prog_rejected=yes
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 if test $ac_prog_rejected = yes; then
4553 # We found a bogon in the path, so make sure we never use it.
4554 set dummy $ac_cv_prog_CC
4556 if test $# != 0; then
4557 # We chose a different compiler from the bogus one.
4558 # However, it has the same basename, so the bogon will be chosen
4559 # first if we set CC to just the basename; use the full file name.
4561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4567 if test -n "$CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4577 if test -z "$CC"; then
4578 if test -n "$ac_tool_prefix"; then
4579 for ac_prog in cl.exe
4581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 if test -n "$CC"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4611 $as_echo "$CC" >&6; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4618 test -n "$CC" && break
4621 if test -z "$CC"; then
4623 for ac_prog in cl.exe
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$ac_ct_CC"; then
4633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_ac_ct_CC="$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4655 $as_echo "$ac_ct_CC" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 test -n "$ac_ct_CC" && break
4665 if test "x$ac_ct_CC" = x; then
4668 case $cross_compiling:$ac_tool_warned in
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4683 as_fn_error $? "no acceptable C compiler found in \$PATH
4684 See \`config.log' for more details" "$LINENO" 5; }
4686 # Provide some information about the compiler.
4687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4690 for ac_option in --version -v -V -qversion; do
4691 { { ac_try="$ac_compiler $ac_option >&5"
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
4698 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4700 if test -s conftest.err; then
4702 ... rest of stderr output deleted ...
4703 10q' conftest.err >conftest.er1
4704 cat conftest.er1 >&5
4706 rm -f conftest.er1 conftest.err
4707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4708 test $ac_status = 0; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4730 if ac_fn_c_try_compile "$LINENO"; then :
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4768 if ac_fn_c_try_compile "$LINENO"; then :
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4783 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4799 if ac_fn_c_try_compile "$LINENO"; then :
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4820 if test "$GCC" = yes; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 ac_cv_prog_cc_c89=no
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4852 s = g (p, va_arg (v,int));
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
4860 as 'x'. The following induces an error, until -std is added to get
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
4863 that's true only with -std. */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 rm -f conftest.$ac_ext
4900 case "x$ac_cv_prog_cc_c89" in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4924 $as_echo_n "checking $CC dependency flag... " >&6; }
4925 echo 'void f(){}' >conftest.c
4926 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4929 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4932 DEPFLAG="-MM" # dunno do something
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4936 $as_echo "$DEPFLAG" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4944 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4945 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4946 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4947 $as_echo_n "(cached) " >&6
4950 echo 'void f(void){}' >conftest.c
4951 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4952 eval "cv_prog_cc_flag_$cache=yes"
4954 eval "cv_prog_cc_flag_$cache=no"
4956 rm -f conftest conftest.o conftest.c
4960 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4962 $as_echo "yes" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4975 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4976 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4977 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4978 $as_echo_n "(cached) " >&6
4981 echo 'void f(void){}' >conftest.c
4982 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4983 eval "cv_prog_cc_flag_$cache=yes"
4985 eval "cv_prog_cc_flag_$cache=no"
4987 rm -f conftest conftest.o conftest.c
4991 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4993 $as_echo "yes" >&6; }
4995 ERRFLAG="$ERRFLAG -Wall"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5000 ERRFLAG="$ERRFLAG -errfmt"
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5008 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5009 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5010 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5011 $as_echo_n "(cached) " >&6
5014 echo 'void f(void){}' >conftest.c
5015 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5016 eval "cv_prog_cc_flag_$cache=yes"
5018 eval "cv_prog_cc_flag_$cache=no"
5020 rm -f conftest conftest.o conftest.c
5024 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5039 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5040 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5041 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5042 $as_echo_n "(cached) " >&6
5045 echo 'void f(void){}' >conftest.c
5046 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5047 eval "cv_prog_cc_flag_$cache=yes"
5049 eval "cv_prog_cc_flag_$cache=no"
5051 rm -f conftest conftest.o conftest.c
5055 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057 $as_echo "yes" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5068 for ac_header in getopt.h time.h
5070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5071 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5074 cat >>confdefs.h <<_ACEOF
5075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 { $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
5087 $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; }
5088 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`
5089 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5090 $as_echo_n "(cached) " >&6
5094 #include "confdefs.h"
5097 #include <sys/time.h>
5103 #ifdef HAVE_GETOPT_H
5114 const char* str = NULL;
5116 msg.msg_control = 0;
5117 t = ctime_r(&time, buf);
5120 a = getopt(2, opts, "a");
5122 str = gai_strerror(0);
5123 if(str && t && tv.tv_usec && msg.msg_control)
5128 echo 'void f(){}' >>conftest.c
5129 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5130 eval "cv_prog_cc_flag_needed_$cache=no"
5133 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
5134 eval "cv_prog_cc_flag_needed_$cache=yes"
5136 eval "cv_prog_cc_flag_needed_$cache=fail"
5137 #echo 'Test with flag fails too!'
5139 #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"
5140 #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`
5145 rm -f conftest conftest.c conftest.o
5149 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5151 $as_echo "yes" >&6; }
5153 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"
5155 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 #echo 'Test with flag is no!'
5160 #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"
5161 #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`
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5167 $as_echo "failed" >&6; }
5177 { $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
5178 $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; }
5179 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5180 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5181 $as_echo_n "(cached) " >&6
5185 #include "confdefs.h"
5188 #include <sys/time.h>
5194 #ifdef HAVE_GETOPT_H
5205 const char* str = NULL;
5207 msg.msg_control = 0;
5208 t = ctime_r(&time, buf);
5211 a = getopt(2, opts, "a");
5213 str = gai_strerror(0);
5214 if(str && t && tv.tv_usec && msg.msg_control)
5219 echo 'void f(){}' >>conftest.c
5220 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5221 eval "cv_prog_cc_flag_needed_$cache=no"
5224 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
5225 eval "cv_prog_cc_flag_needed_$cache=yes"
5227 eval "cv_prog_cc_flag_needed_$cache=fail"
5228 #echo 'Test with flag fails too!'
5230 #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"
5231 #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`
5236 rm -f conftest conftest.c conftest.o
5240 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5244 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5246 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 #echo 'Test with flag is no!'
5251 #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"
5252 #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`
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5258 $as_echo "failed" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5269 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5270 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5271 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5272 $as_echo_n "(cached) " >&6
5276 #include <stdbool.h>
5283 echo 'void f(){}' >>conftest.c
5284 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5285 eval "cv_prog_cc_flag_needed_$cache=no"
5288 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5289 eval "cv_prog_cc_flag_needed_$cache=yes"
5291 eval "cv_prog_cc_flag_needed_$cache=fail"
5292 #echo 'Test with flag fails too!'
5294 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5295 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5300 rm -f conftest conftest.c conftest.o
5304 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5308 CFLAGS="$CFLAGS $C99FLAG"
5310 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 #echo 'Test with flag is no!'
5315 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5316 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5322 $as_echo "failed" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5333 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5335 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5336 $as_echo_n "(cached) " >&6
5348 echo 'void f(){}' >>conftest.c
5349 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5350 eval "cv_prog_cc_flag_needed_$cache=no"
5353 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5354 eval "cv_prog_cc_flag_needed_$cache=yes"
5356 eval "cv_prog_cc_flag_needed_$cache=fail"
5357 #echo 'Test with flag fails too!'
5359 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5360 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5365 rm -f conftest conftest.c conftest.o
5369 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 $as_echo "yes" >&6; }
5373 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5375 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5378 #echo 'Test with flag is no!'
5380 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5381 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5387 $as_echo "failed" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5398 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5400 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5401 $as_echo_n "(cached) " >&6
5405 #include <netinet/in.h>
5408 struct in6_pktinfo inf;
5409 int a = (int)sizeof(inf);
5413 echo 'void f(){}' >>conftest.c
5414 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5415 eval "cv_prog_cc_flag_needed_$cache=no"
5418 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5419 eval "cv_prog_cc_flag_needed_$cache=yes"
5421 eval "cv_prog_cc_flag_needed_$cache=fail"
5422 #echo 'Test with flag fails too!'
5424 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5425 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5430 rm -f conftest conftest.c conftest.o
5434 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 $as_echo "yes" >&6; }
5438 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5440 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 #echo 'Test with flag is no!'
5445 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5446 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5452 $as_echo "failed" >&6; }
5459 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5460 # is not available at all. -D_FRSRESGID is to make this check unique.
5461 # otherwise we would get the previous cached result.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5466 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5467 cache=_D_GNU_SOURCE__D_FRSRESGID
5468 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5469 $as_echo_n "(cached) " >&6
5476 int a = setresgid(0,0,0);
5477 a = setresuid(0,0,0);
5481 echo 'void f(){}' >>conftest.c
5482 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5483 eval "cv_prog_cc_flag_needed_$cache=no"
5486 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5487 eval "cv_prog_cc_flag_needed_$cache=yes"
5489 eval "cv_prog_cc_flag_needed_$cache=fail"
5490 #echo 'Test with flag fails too!'
5492 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5493 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5498 rm -f conftest conftest.c conftest.o
5502 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5506 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5508 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 #echo 'Test with flag is no!'
5513 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5514 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5520 $as_echo "failed" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5531 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5532 cache=_D_POSIX_C_SOURCE_200112
5533 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5534 $as_echo_n "(cached) " >&6
5538 #include "confdefs.h"
5549 const char* str = NULL;
5550 t = ctime_r(&time, buf);
5551 str = gai_strerror(0);
5557 echo 'void f(){}' >>conftest.c
5558 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5559 eval "cv_prog_cc_flag_needed_$cache=no"
5562 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5563 eval "cv_prog_cc_flag_needed_$cache=yes"
5565 eval "cv_prog_cc_flag_needed_$cache=fail"
5566 #echo 'Test with flag fails too!'
5568 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5569 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5574 rm -f conftest conftest.c conftest.o
5578 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5582 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5584 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 #echo 'Test with flag is no!'
5589 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5590 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5596 $as_echo "failed" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5607 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5608 cache=_D__EXTENSIONS__
5609 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5610 $as_echo_n "(cached) " >&6
5614 #include "confdefs.h"
5617 #include <sys/time.h>
5622 #ifdef HAVE_GETOPT_H
5632 a = getopt(2, opts, "a");
5639 echo 'void f(){}' >>conftest.c
5640 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5641 eval "cv_prog_cc_flag_needed_$cache=no"
5644 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5645 eval "cv_prog_cc_flag_needed_$cache=yes"
5647 eval "cv_prog_cc_flag_needed_$cache=fail"
5648 #echo 'Test with flag fails too!'
5650 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5651 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5656 rm -f conftest conftest.c conftest.o
5660 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5662 $as_echo "yes" >&6; }
5664 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5666 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 #echo 'Test with flag is no!'
5671 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5672 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5678 $as_echo "failed" >&6; }
5687 # debug mode flags warnings
5688 # Check whether --enable-checking was given.
5689 if test "${enable_checking+set}" = set; then :
5690 enableval=$enable_checking;
5693 # Check whether --enable-debug was given.
5694 if test "${enable_debug+set}" = set; then :
5695 enableval=$enable_debug;
5698 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5699 else debug_enabled="$enable_checking"; fi
5701 case "$debug_enabled" in
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5706 $as_echo_n "checking whether $CC supports -W... " >&6; }
5707 cache=`echo W | sed 'y%.=/+-%___p_%'`
5708 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5709 $as_echo_n "(cached) " >&6
5712 echo 'void f(void){}' >conftest.c
5713 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5714 eval "cv_prog_cc_flag_$cache=yes"
5716 eval "cv_prog_cc_flag_$cache=no"
5718 rm -f conftest conftest.o conftest.c
5722 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5737 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5738 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5739 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5740 $as_echo_n "(cached) " >&6
5743 echo 'void f(void){}' >conftest.c
5744 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5745 eval "cv_prog_cc_flag_$cache=yes"
5747 eval "cv_prog_cc_flag_$cache=no"
5749 rm -f conftest conftest.o conftest.c
5753 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5757 CFLAGS="$CFLAGS -Wall"
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5768 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5769 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5770 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5771 $as_echo_n "(cached) " >&6
5774 echo 'void f(void){}' >conftest.c
5775 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5776 eval "cv_prog_cc_flag_$cache=yes"
5778 eval "cv_prog_cc_flag_$cache=no"
5780 rm -f conftest conftest.o conftest.c
5784 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5786 $as_echo "yes" >&6; }
5788 CFLAGS="$CFLAGS -Wextra"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5799 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5800 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5801 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5802 $as_echo_n "(cached) " >&6
5805 echo 'void f(void){}' >conftest.c
5806 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5807 eval "cv_prog_cc_flag_$cache=yes"
5809 eval "cv_prog_cc_flag_$cache=no"
5811 rm -f conftest conftest.o conftest.c
5815 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5817 $as_echo "yes" >&6; }
5819 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5828 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5836 # Check whether --enable-flto was given.
5837 if test "${enable_flto+set}" = set; then :
5838 enableval=$enable_flto;
5841 if test "x$enable_flto" != "xno"; then :
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5844 $as_echo_n "checking if $CC supports -flto... " >&6; }
5846 CFLAGS="$CFLAGS -flto"
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5858 if ac_fn_c_try_link "$LINENO"; then :
5860 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5868 rm -f conftest conftest.c conftest.o
5871 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5874 rm -f core conftest.err conftest.$ac_objext \
5875 conftest$ac_exeext conftest.$ac_ext
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5881 $as_echo_n "checking for inline... " >&6; }
5882 if ${ac_cv_c_inline+:} false; then :
5883 $as_echo_n "(cached) " >&6
5886 for ac_kw in inline __inline__ __inline; do
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5891 static $ac_kw foo_t static_foo () {return 0; }
5892 $ac_kw foo_t foo () {return 0; }
5896 if ac_fn_c_try_compile "$LINENO"; then :
5897 ac_cv_c_inline=$ac_kw
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 test "$ac_cv_c_inline" != no && break
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5905 $as_echo "$ac_cv_c_inline" >&6; }
5907 case $ac_cv_c_inline in
5910 case $ac_cv_c_inline in
5912 *) ac_val=$ac_cv_c_inline;;
5914 cat >>confdefs.h <<_ACEOF
5916 #define inline $ac_val
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5924 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5925 if ${ac_cv_c_format_attribute+:} false; then :
5926 $as_echo_n "(cached) " >&6
5928 ac_cv_c_format_attribute=no
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5932 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5933 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 ac_cv_c_format_attribute="yes"
5948 ac_cv_c_format_attribute="no"
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5956 $as_echo "$ac_cv_c_format_attribute" >&6; }
5957 if test $ac_cv_c_format_attribute = yes; then
5959 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5965 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5966 if ${ac_cv_c_unused_attribute+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 ac_cv_c_unused_attribute=no
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5973 void f (char *u __attribute__((unused)));
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 ac_cv_c_unused_attribute="yes"
5988 ac_cv_c_unused_attribute="no"
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5998 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5999 if test $ac_cv_c_unused_attribute = yes; then
6001 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6006 if test "$srcdir" != "."; then
6007 CPPFLAGS="$CPPFLAGS -I$srcdir"
6012 for ac_prog in flex lex
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_LEX+:} false; then :
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$LEX"; then
6022 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_LEX="$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 if test -n "$LEX"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6044 $as_echo "$LEX" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6051 test -n "$LEX" && break
6053 test -n "$LEX" || LEX=":"
6055 if test "x$LEX" != "x:"; then
6056 cat >conftest.l <<_ACEOF
6062 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6063 yyless ((input () != 0)); }
6064 f { unput (yytext[0]); }
6065 . { BEGIN INITIAL; }
6067 #ifdef YYTEXT_POINTER
6068 extern char *yytext;
6073 return ! yylex () + ! yywrap ();
6076 { { ac_try="$LEX conftest.l"
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6082 $as_echo "$ac_try_echo"; } >&5
6083 (eval "$LEX conftest.l") 2>&5
6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6086 test $ac_status = 0; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6088 $as_echo_n "checking lex output file root... " >&6; }
6089 if ${ac_cv_prog_lex_root+:} false; then :
6090 $as_echo_n "(cached) " >&6
6093 if test -f lex.yy.c; then
6094 ac_cv_prog_lex_root=lex.yy
6095 elif test -f lexyy.c; then
6096 ac_cv_prog_lex_root=lexyy
6098 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6102 $as_echo "$ac_cv_prog_lex_root" >&6; }
6103 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6105 if test -z "${LEXLIB+set}"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6107 $as_echo_n "checking lex library... " >&6; }
6108 if ${ac_cv_lib_lex+:} false; then :
6109 $as_echo_n "(cached) " >&6
6113 ac_cv_lib_lex='none needed'
6114 for ac_lib in '' -lfl -ll; do
6115 LIBS="$ac_lib $ac_save_LIBS"
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 `cat $LEX_OUTPUT_ROOT.c`
6120 if ac_fn_c_try_link "$LINENO"; then :
6121 ac_cv_lib_lex=$ac_lib
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6125 test "$ac_cv_lib_lex" != 'none needed' && break
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6131 $as_echo "$ac_cv_lib_lex" >&6; }
6132 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6137 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6138 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 # POSIX says lex can declare yytext either as a pointer or an array; the
6142 # default is implementation-dependent. Figure out which it is, since
6143 # not all implementations provide the %pointer and %array declarations.
6144 ac_cv_prog_lex_yytext_pointer=no
6146 LIBS="$LEXLIB $ac_save_LIBS"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6150 #define YYTEXT_POINTER 1
6151 `cat $LEX_OUTPUT_ROOT.c`
6153 if ac_fn_c_try_link "$LINENO"; then :
6154 ac_cv_prog_lex_yytext_pointer=yes
6156 rm -f core conftest.err conftest.$ac_objext \
6157 conftest$ac_exeext conftest.$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6162 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6163 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6165 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6168 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6173 $as_echo_n "checking for yylex_destroy... " >&6; }
6174 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6176 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }; fi
6183 for ac_prog in 'bison -y' byacc
6185 # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_YACC+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 if test -n "$YACC"; then
6193 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_YACC="$ac_prog"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 YACC=$ac_cv_prog_YACC
6213 if test -n "$YACC"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6215 $as_echo "$YACC" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6222 test -n "$YACC" && break
6224 test -n "$YACC" || YACC="yacc"
6226 # Extract the first word of "doxygen", so it can be a program name with args.
6227 set dummy doxygen; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_doxygen+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if test -n "$doxygen"; then
6234 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243 ac_cv_prog_doxygen="doxygen"
6244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 doxygen=$ac_cv_prog_doxygen
6254 if test -n "$doxygen"; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6256 $as_echo "$doxygen" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}strip; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_STRIP+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$STRIP"; then
6272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 STRIP=$ac_cv_prog_STRIP
6292 if test -n "$STRIP"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6294 $as_echo "$STRIP" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6302 if test -z "$ac_cv_prog_STRIP"; then
6304 # Extract the first word of "strip", so it can be a program name with args.
6305 set dummy strip; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$ac_ct_STRIP"; then
6312 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_ac_ct_STRIP="strip"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6332 if test -n "$ac_ct_STRIP"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6334 $as_echo "$ac_ct_STRIP" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6340 if test "x$ac_ct_STRIP" = x; then
6343 case $cross_compiling:$ac_tool_warned in
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6352 STRIP="$ac_cv_prog_STRIP"
6356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6357 if test -f "$ac_dir/install-sh"; then
6359 ac_install_sh="$ac_aux_dir/install-sh -c"
6361 elif test -f "$ac_dir/install.sh"; then
6363 ac_install_sh="$ac_aux_dir/install.sh -c"
6365 elif test -f "$ac_dir/shtool"; then
6367 ac_install_sh="$ac_aux_dir/shtool install -c"
6371 if test -z "$ac_aux_dir"; then
6372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6375 # These three variables are undocumented and unsupported,
6376 # and are intended to be withdrawn in a future Autoconf release.
6377 # They can cause serious problems if a builder's source tree is in a directory
6378 # whose full name contains unusual characters.
6379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6384 # Make sure we can run config.sub.
6385 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6386 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6389 $as_echo_n "checking build system type... " >&6; }
6390 if ${ac_cv_build+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 ac_build_alias=$build_alias
6394 test "x$ac_build_alias" = x &&
6395 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6396 test "x$ac_build_alias" = x &&
6397 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6398 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6399 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6403 $as_echo "$ac_cv_build" >&6; }
6404 case $ac_cv_build in
6406 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6409 ac_save_IFS=$IFS; IFS='-'
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if ${ac_cv_host+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test "x$host_alias" = x; then
6428 ac_cv_host=$ac_cv_build
6430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6436 $as_echo "$ac_cv_host" >&6; }
6439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6442 ac_save_IFS=$IFS; IFS='-'
6448 # Remember, the first character of IFS is used to create $*,
6449 # except with old shells:
6452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6456 # skip these tests, we do not need them.
6465 # always use ./libtool unless override from commandline (libtool=mylibtool)
6466 if test -z "$libtool"; then
6470 # avoid libtool max commandline length test on systems that fork slowly.
6472 if echo "$host_os" | grep "sunos4" >/dev/null; then
6473 lt_cv_sys_max_cmd_len=32750;
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6477 set dummy ${ac_tool_prefix}ar; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_path_AR+:} false; then :
6481 $as_echo_n "(cached) " >&6
6485 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 if test -n "$AR"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6509 $as_echo "$AR" >&6; }
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6517 if test -z "$ac_cv_path_AR"; then
6519 # Extract the first word of "ar", so it can be a program name with args.
6520 set dummy ar; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_ac_pt_AR+:} false; then :
6524 $as_echo_n "(cached) " >&6
6528 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 ac_pt_AR=$ac_cv_path_ac_pt_AR
6550 if test -n "$ac_pt_AR"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6552 $as_echo "$ac_pt_AR" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6558 if test "x$ac_pt_AR" = x; then
6561 case $cross_compiling:$ac_tool_warned in
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6573 if test $AR = false; then
6574 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6585 macro_version='2.4.2'
6586 macro_revision='1.3337'
6600 ltmain="$ac_aux_dir/ltmain.sh"
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6627 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6632 # Use this function as a fallback that always works.
6633 func_fallback_echo ()
6635 eval 'cat <<_LTECHO_EOF
6639 ECHO='func_fallback_echo'
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6650 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677 for ac_i in 1 2 3 4 5 6 7; do
6678 ac_script="$ac_script$as_nl$ac_script"
6680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681 { ac_script=; unset ac_script;}
6682 if test -z "$SED"; then
6683 ac_path_SED_found=false
6684 # Loop through the user's path and test for each of PROGNAME-LIST
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_prog in sed gsed; do
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693 as_fn_executable_p "$ac_path_SED" || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695 # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6701 $as_echo_n 0123456789 >"conftest.in"
6704 cat "conftest.in" "conftest.in" >"conftest.tmp"
6705 mv "conftest.tmp" "conftest.in"
6706 cp "conftest.in" "conftest.nl"
6707 $as_echo '' >> "conftest.nl"
6708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710 as_fn_arith $ac_count + 1 && ac_count=$as_val
6711 if test $ac_count -gt ${ac_path_SED_max-0}; then
6712 # Best one so far, save it but keep looking for a better one
6713 ac_cv_path_SED="$ac_path_SED"
6714 ac_path_SED_max=$ac_count
6716 # 10*(2^10) chars as input seems more than enough
6717 test $ac_count -gt 10 && break
6719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6722 $ac_path_SED_found && break 3
6727 if test -z "$ac_cv_path_SED"; then
6728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737 SED="$ac_cv_path_SED"
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759 then ac_cv_path_FGREP="$GREP -F"
6761 if test -z "$FGREP"; then
6762 ac_path_FGREP_found=false
6763 # Loop through the user's path and test for each of PROGNAME-LIST
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6768 test -z "$as_dir" && as_dir=.
6769 for ac_prog in fgrep; do
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772 as_fn_executable_p "$ac_path_FGREP" || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774 # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6780 $as_echo_n 0123456789 >"conftest.in"
6783 cat "conftest.in" "conftest.in" >"conftest.tmp"
6784 mv "conftest.tmp" "conftest.in"
6785 cp "conftest.in" "conftest.nl"
6786 $as_echo 'FGREP' >> "conftest.nl"
6787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789 as_fn_arith $ac_count + 1 && ac_count=$as_val
6790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791 # Best one so far, save it but keep looking for a better one
6792 ac_cv_path_FGREP="$ac_path_FGREP"
6793 ac_path_FGREP_max=$ac_count
6795 # 10*(2^10) chars as input seems more than enough
6796 test $ac_count -gt 10 && break
6798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801 $ac_path_FGREP_found && break 3
6806 if test -z "$ac_cv_path_FGREP"; then
6807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810 ac_cv_path_FGREP=$FGREP
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817 FGREP="$ac_cv_path_FGREP"
6820 test -z "$GREP" && GREP=grep
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6848 if test "$GCC" = yes; then
6849 # Check if gcc -print-prog-name=ld gives a path.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6854 # gcc leaves a trailing carriage return which upsets mingw
6855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6860 # Accept absolute paths.
6862 re_direlt='/[^/][^/]*/\.\./'
6863 # Canonicalize the pathname of ld
6864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6868 test -z "$LD" && LD="$ac_prog"
6871 # If it fails, then pretend we aren't using GCC.
6875 # If it is relative, then search for the first ld in PATH.
6879 elif test "$with_gnu_ld" = yes; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6886 if ${lt_cv_path_LD+:} false; then :
6887 $as_echo_n "(cached) " >&6
6889 if test -z "$LD"; then
6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891 for ac_dir in $PATH; do
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895 lt_cv_path_LD="$ac_dir/$ac_prog"
6896 # Check to see if the program is GNU ld. I'd rather use --version,
6897 # but apparently some variants of GNU ld only accept -v.
6898 # Break only if it was the GNU/non-GNU ld that we prefer.
6899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900 *GNU* | *'with BFD'*)
6901 test "$with_gnu_ld" != no && break
6904 test "$with_gnu_ld" != yes && break
6911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6916 if test -n "$LD"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927 $as_echo_n "(cached) " >&6
6929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932 lt_cv_prog_gnu_ld=yes
6935 lt_cv_prog_gnu_ld=no
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$NM"; then
6957 # Let the user override the test.
6960 lt_nm_to_check="${ac_tool_prefix}nm"
6961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962 lt_nm_to_check="$lt_nm_to_check nm"
6964 for lt_tmp_nm in $lt_nm_to_check; do
6965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6968 test -z "$ac_dir" && ac_dir=.
6969 tmp_nm="$ac_dir/$lt_tmp_nm"
6970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6971 # Check to see if the nm accepts a BSD-compat flag.
6972 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6973 # nm: unknown option "B" ignored
6974 # Tru64's nm complains that /dev/null is an invalid object file
6975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6976 */dev/null* | *'Invalid file or object type'*)
6977 lt_cv_path_NM="$tmp_nm -B"
6981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6983 lt_cv_path_NM="$tmp_nm -p"
6987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6988 continue # so that we can try to find one that supports BSD flags
6997 : ${lt_cv_path_NM=no}
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7001 $as_echo "$lt_cv_path_NM" >&6; }
7002 if test "$lt_cv_path_NM" != "no"; then
7005 # Didn't find any BSD compatible name lister, look for dumpbin.
7006 if test -n "$DUMPBIN"; then :
7007 # Let the user override the test.
7009 if test -n "$ac_tool_prefix"; then
7010 for ac_prog in dumpbin "link -dump"
7012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_DUMPBIN+:} false; then :
7017 $as_echo_n "(cached) " >&6
7019 if test -n "$DUMPBIN"; then
7020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 DUMPBIN=$ac_cv_prog_DUMPBIN
7040 if test -n "$DUMPBIN"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7042 $as_echo "$DUMPBIN" >&6; }
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7049 test -n "$DUMPBIN" && break
7052 if test -z "$DUMPBIN"; then
7053 ac_ct_DUMPBIN=$DUMPBIN
7054 for ac_prog in dumpbin "link -dump"
7056 # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$ac_ct_DUMPBIN"; then
7064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7084 if test -n "$ac_ct_DUMPBIN"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7086 $as_echo "$ac_ct_DUMPBIN" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7093 test -n "$ac_ct_DUMPBIN" && break
7096 if test "x$ac_ct_DUMPBIN" = x; then
7099 case $cross_compiling:$ac_tool_warned in
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7105 DUMPBIN=$ac_ct_DUMPBIN
7109 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7111 DUMPBIN="$DUMPBIN -symbols"
7119 if test "$DUMPBIN" != ":"; then
7123 test -z "$NM" && NM=nm
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7132 if ${lt_cv_nm_interface+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 lt_cv_nm_interface="BSD nm"
7136 echo "int some_variable = 0;" > conftest.$ac_ext
7137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7138 (eval "$ac_compile" 2>conftest.err)
7139 cat conftest.err >&5
7140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7142 cat conftest.err >&5
7143 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7144 cat conftest.out >&5
7145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7146 lt_cv_nm_interface="MS dumpbin"
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7151 $as_echo "$lt_cv_nm_interface" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7154 $as_echo_n "checking whether ln -s works... " >&6; }
7156 if test "$LN_S" = "ln -s"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7158 $as_echo "yes" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7161 $as_echo "no, using $LN_S" >&6; }
7164 # find the maximum length of command line arguments
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7167 if ${lt_cv_sys_max_cmd_len+:} false; then :
7168 $as_echo_n "(cached) " >&6
7175 # On DJGPP, this test can blow up pretty badly due to problems in libc
7176 # (any single argument exceeding 2000 bytes causes a buffer overrun
7177 # during glob expansion). Even if it were fixed, the result of this
7178 # check would be larger than it should be.
7179 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7183 # Under GNU Hurd, this test is not required because there is
7184 # no limit to the length of command line arguments.
7185 # Libtool will interpret -1 as no limit whatsoever
7186 lt_cv_sys_max_cmd_len=-1;
7189 cygwin* | mingw* | cegcc*)
7190 # On Win9x/ME, this test blows up -- it succeeds, but takes
7191 # about 5 minutes as the teststring grows exponentially.
7192 # Worse, since 9x/ME are not pre-emptively multitasking,
7193 # you end up with a "frozen" computer, even though with patience
7194 # the test eventually succeeds (with a max line length of 256k).
7195 # Instead, let's just punt: use the minimum linelength reported by
7196 # all of the supported platforms: 8192 (on NT/2K/XP).
7197 lt_cv_sys_max_cmd_len=8192;
7201 # On MiNT this can take a long time and run out of memory.
7202 lt_cv_sys_max_cmd_len=8192;
7206 # On AmigaOS with pdksh, this test takes hours, literally.
7207 # So we just punt and use a minimum line length of 8192.
7208 lt_cv_sys_max_cmd_len=8192;
7211 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7212 # This has been around since 386BSD, at least. Likely further.
7213 if test -x /sbin/sysctl; then
7214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7215 elif test -x /usr/sbin/sysctl; then
7216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7220 # And add a safety zone
7221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7226 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7227 lt_cv_sys_max_cmd_len=196608
7231 # The test takes a long time on OS/2.
7232 lt_cv_sys_max_cmd_len=8192
7236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238 # nice to cause kernel panics so lets avoid the loop below.
7239 # First set a reasonable default.
7240 lt_cv_sys_max_cmd_len=16384
7242 if test -x /sbin/sysconfig; then
7243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7249 lt_cv_sys_max_cmd_len=102400
7251 sysv5* | sco5v6* | sysv4.2uw2*)
7252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253 if test -n "$kargmax"; then
7254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 lt_cv_sys_max_cmd_len=32768
7260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261 if test -n "$lt_cv_sys_max_cmd_len"; then
7262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265 # Make teststring a little bigger before we do anything with it.
7266 # a 1K string should be a reasonable start.
7267 for i in 1 2 3 4 5 6 7 8 ; do
7268 teststring=$teststring$teststring
7270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7271 # If test is not a shell built-in, we'll probably end up computing a
7272 # maximum length that is only half of the actual maximum length, but
7274 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7275 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7276 test $i != 17 # 1/2 MB should be enough
7279 teststring=$teststring$teststring
7281 # Only check the string length outside the loop.
7282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284 # Add a significant safety factor because C++ compilers can tack on
7285 # massive amounts of additional arguments before passing them to the
7286 # linker. It appears as though 1/2 is a usable value.
7287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7294 if test -n $lt_cv_sys_max_cmd_len ; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7299 $as_echo "none" >&6; }
7301 max_cmd_len=$lt_cv_sys_max_cmd_len
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7314 # Try some XSI features
7317 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7319 && eval 'test $(( 1 + 1 )) -eq 2 \
7320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7323 $as_echo "$xsi_shell" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331 && lt_shell_append=yes
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7333 $as_echo "$lt_shell_append" >&6; }
7336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7346 # test EBCDIC or ASCII
7347 case `echo X|tr X '\101'` in
7348 A) # ASCII based system
7349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7350 lt_SP2NL='tr \040 \012'
7351 lt_NL2SP='tr \015\012 \040\040'
7353 *) # EBCDIC based system
7354 lt_SP2NL='tr \100 \n'
7355 lt_NL2SP='tr \r\n \100\100'
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7368 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7369 if ${lt_cv_to_host_file_cmd+:} false; then :
7370 $as_echo_n "(cached) " >&6
7375 *-*-mingw* ) # actually msys
7376 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7379 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7381 * ) # otherwise, assume *nix
7382 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7388 *-*-mingw* ) # actually msys
7389 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7392 lt_cv_to_host_file_cmd=func_convert_file_noop
7394 * ) # otherwise, assume *nix
7395 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7399 * ) # unhandled hosts (and "normal" native builds)
7400 lt_cv_to_host_file_cmd=func_convert_file_noop
7406 to_host_file_cmd=$lt_cv_to_host_file_cmd
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7408 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7415 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7416 if ${lt_cv_to_tool_file_cmd+:} false; then :
7417 $as_echo_n "(cached) " >&6
7419 #assume ordinary cross tools, or native build.
7420 lt_cv_to_tool_file_cmd=func_convert_file_noop
7424 *-*-mingw* ) # actually msys
7425 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7433 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7435 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7443 if ${lt_cv_ld_reload_flag+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 lt_cv_ld_reload_flag='-r'
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7450 reload_flag=$lt_cv_ld_reload_flag
7451 case $reload_flag in
7453 *) reload_flag=" $reload_flag" ;;
7455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7457 cygwin* | mingw* | pw32* | cegcc*)
7458 if test "$GCC" != yes; then
7463 if test "$GCC" = yes; then
7464 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7466 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7479 if test -n "$ac_tool_prefix"; then
7480 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_OBJDUMP+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$OBJDUMP"; then
7488 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 OBJDUMP=$ac_cv_prog_OBJDUMP
7508 if test -n "$OBJDUMP"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7510 $as_echo "$OBJDUMP" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7518 if test -z "$ac_cv_prog_OBJDUMP"; then
7519 ac_ct_OBJDUMP=$OBJDUMP
7520 # Extract the first word of "objdump", so it can be a program name with args.
7521 set dummy objdump; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 if test -n "$ac_ct_OBJDUMP"; then
7528 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7548 if test -n "$ac_ct_OBJDUMP"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7550 $as_echo "$ac_ct_OBJDUMP" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7556 if test "x$ac_ct_OBJDUMP" = x; then
7559 case $cross_compiling:$ac_tool_warned in
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7565 OBJDUMP=$ac_ct_OBJDUMP
7568 OBJDUMP="$ac_cv_prog_OBJDUMP"
7571 test -z "$OBJDUMP" && OBJDUMP=objdump
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7582 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7583 if ${lt_cv_deplibs_check_method+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 lt_cv_file_magic_cmd='$MAGIC_CMD'
7587 lt_cv_file_magic_test_file=
7588 lt_cv_deplibs_check_method='unknown'
7589 # Need to set the preceding variable on all platforms that support
7590 # interlibrary dependencies.
7591 # 'none' -- dependencies not supported.
7592 # `unknown' -- same as none, but documents that we really don't know.
7593 # 'pass_all' -- all dependencies passed with no checks.
7594 # 'test_compile' -- check by making test program.
7595 # 'file_magic [[regex]]' -- check by looking for files in library path
7596 # which responds to the $file_magic_cmd with a given extended regex.
7597 # If you have `file' or equivalent on your system and you're not sure
7598 # whether `pass_all' will *always* work, you probably want this one.
7602 lt_cv_deplibs_check_method=pass_all
7606 lt_cv_deplibs_check_method=pass_all
7610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7611 lt_cv_file_magic_cmd='/usr/bin/file -L'
7612 lt_cv_file_magic_test_file=/shlib/libc.so
7616 # func_win32_libid is a shell function defined in ltmain.sh
7617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7618 lt_cv_file_magic_cmd='func_win32_libid'
7622 # Base MSYS/MinGW do not provide the 'file' command needed by
7623 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7624 # unless we find 'file', for example because we are cross-compiling.
7625 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7626 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7627 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7628 lt_cv_file_magic_cmd='func_win32_libid'
7630 # Keep this pattern in sync with the one in func_win32_libid.
7631 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7632 lt_cv_file_magic_cmd='$OBJDUMP -f'
7637 # use the weaker test based on 'objdump'. See mingw*.
7638 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7639 lt_cv_file_magic_cmd='$OBJDUMP -f'
7642 darwin* | rhapsody*)
7643 lt_cv_deplibs_check_method=pass_all
7646 freebsd* | dragonfly*)
7647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7650 # Not sure whether the presence of OpenBSD here was a mistake.
7651 # Let's accept both of them until this is cleared up.
7652 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7653 lt_cv_file_magic_cmd=/usr/bin/file
7654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7658 lt_cv_deplibs_check_method=pass_all
7663 lt_cv_deplibs_check_method=pass_all
7667 lt_cv_deplibs_check_method=pass_all
7670 hpux10.20* | hpux11*)
7671 lt_cv_file_magic_cmd=/usr/bin/file
7674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7675 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7678 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]'
7679 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7683 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7689 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7693 irix5* | irix6* | nonstopux*)
7695 *-32|*"-32 ") libmagic=32-bit;;
7696 *-n32|*"-n32 ") libmagic=N32;;
7697 *-64|*"-64 ") libmagic=64-bit;;
7698 *) libmagic=never-match;;
7700 lt_cv_deplibs_check_method=pass_all
7703 # This must be glibc/ELF.
7704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7705 lt_cv_deplibs_check_method=pass_all
7709 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7718 lt_cv_file_magic_cmd=/usr/bin/file
7719 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7723 lt_cv_deplibs_check_method=pass_all
7727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7734 osf3* | osf4* | osf5*)
7735 lt_cv_deplibs_check_method=pass_all
7739 lt_cv_deplibs_check_method=pass_all
7743 lt_cv_deplibs_check_method=pass_all
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7747 lt_cv_deplibs_check_method=pass_all
7751 case $host_vendor in
7753 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]'
7754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7757 lt_cv_deplibs_check_method=pass_all
7760 lt_cv_file_magic_cmd='/bin/file'
7761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7764 lt_cv_file_magic_cmd='/bin/file'
7765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7766 lt_cv_file_magic_test_file=/lib/libc.so
7769 lt_cv_deplibs_check_method=pass_all
7772 lt_cv_deplibs_check_method=pass_all
7778 lt_cv_deplibs_check_method=pass_all
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7784 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7788 if test "$build" = "$host"; then
7791 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7794 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7800 file_magic_cmd=$lt_cv_file_magic_cmd
7801 deplibs_check_method=$lt_cv_deplibs_check_method
7802 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7827 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_DLLTOOL+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$DLLTOOL"; then
7834 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 DLLTOOL=$ac_cv_prog_DLLTOOL
7854 if test -n "$DLLTOOL"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7856 $as_echo "$DLLTOOL" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7864 if test -z "$ac_cv_prog_DLLTOOL"; then
7865 ac_ct_DLLTOOL=$DLLTOOL
7866 # Extract the first word of "dlltool", so it can be a program name with args.
7867 set dummy dlltool; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$ac_ct_DLLTOOL"; then
7874 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7894 if test -n "$ac_ct_DLLTOOL"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7896 $as_echo "$ac_ct_DLLTOOL" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7902 if test "x$ac_ct_DLLTOOL" = x; then
7905 case $cross_compiling:$ac_tool_warned in
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned=yes ;;
7911 DLLTOOL=$ac_ct_DLLTOOL
7914 DLLTOOL="$ac_cv_prog_DLLTOOL"
7917 test -z "$DLLTOOL" && DLLTOOL=dlltool
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7929 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7930 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 lt_cv_sharedlib_from_linklib_cmd='unknown'
7936 cygwin* | mingw* | pw32* | cegcc*)
7937 # two different shell functions defined in ltmain.sh
7938 # decide which to use based on capabilities of $DLLTOOL
7939 case `$DLLTOOL --help 2>&1` in
7940 *--identify-strict*)
7941 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7944 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7949 # fallback: assume linklib IS sharedlib
7950 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7956 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7957 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7958 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7966 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_prog_AR+:} false; then :
7974 $as_echo_n "(cached) " >&6
7976 if test -n "$AR"; then
7977 ac_cv_prog_AR="$AR" # Let the user override the test.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 if test -n "$AR"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7999 $as_echo "$AR" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 test -n "$AR" && break
8009 if test -z "$AR"; then
8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
8014 set dummy $ac_prog; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 if test -n "$ac_ct_AR"; then
8021 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_AR="$ac_prog"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8041 if test -n "$ac_ct_AR"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8043 $as_echo "$ac_ct_AR" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 test -n "$ac_ct_AR" && break
8053 if test "x$ac_ct_AR" = x; then
8056 case $cross_compiling:$ac_tool_warned in
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060 ac_tool_warned=yes ;;
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8080 $as_echo_n "checking for archiver @FILE support... " >&6; }
8081 if ${lt_cv_ar_at_file+:} false; then :
8082 $as_echo_n "(cached) " >&6
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 echo conftest.$ac_objext > conftest.lst
8098 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8100 (eval $lt_ar_try) 2>&5
8102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8103 test $ac_status = 0; }
8104 if test "$ac_status" -eq 0; then
8105 # Ensure the archiver fails upon bogus file names.
8106 rm -f conftest.$ac_objext libconftest.a
8107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8108 (eval $lt_ar_try) 2>&5
8110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8111 test $ac_status = 0; }
8112 if test "$ac_status" -ne 0; then
8116 rm -f conftest.* libconftest.a
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8123 $as_echo "$lt_cv_ar_at_file" >&6; }
8125 if test "x$lt_cv_ar_at_file" = xno; then
8128 archiver_list_spec=$lt_cv_ar_at_file
8137 if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}strip; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_STRIP+:} false; then :
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$STRIP"; then
8146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 STRIP=$ac_cv_prog_STRIP
8166 if test -n "$STRIP"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8168 $as_echo "$STRIP" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8176 if test -z "$ac_cv_prog_STRIP"; then
8178 # Extract the first word of "strip", so it can be a program name with args.
8179 set dummy strip; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8183 $as_echo_n "(cached) " >&6
8185 if test -n "$ac_ct_STRIP"; then
8186 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_ac_ct_STRIP="strip"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8206 if test -n "$ac_ct_STRIP"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8208 $as_echo "$ac_ct_STRIP" >&6; }
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8214 if test "x$ac_ct_STRIP" = x; then
8217 case $cross_compiling:$ac_tool_warned in
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8226 STRIP="$ac_cv_prog_STRIP"
8229 test -z "$STRIP" && STRIP=:
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_RANLIB+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$RANLIB"; then
8245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 RANLIB=$ac_cv_prog_RANLIB
8265 if test -n "$RANLIB"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267 $as_echo "$RANLIB" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8275 if test -z "$ac_cv_prog_RANLIB"; then
8276 ac_ct_RANLIB=$RANLIB
8277 # Extract the first word of "ranlib", so it can be a program name with args.
8278 set dummy ranlib; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$ac_ct_RANLIB"; then
8285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_RANLIB="ranlib"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8305 if test -n "$ac_ct_RANLIB"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307 $as_echo "$ac_ct_RANLIB" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 if test "x$ac_ct_RANLIB" = x; then
8316 case $cross_compiling:$ac_tool_warned in
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8322 RANLIB=$ac_ct_RANLIB
8325 RANLIB="$ac_cv_prog_RANLIB"
8328 test -z "$RANLIB" && RANLIB=:
8335 # Determine commands to create old-style static archives.
8336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8337 old_postinstall_cmds='chmod 644 $oldlib'
8338 old_postuninstall_cmds=
8340 if test -n "$RANLIB"; then
8343 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8349 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8354 lock_old_archive_extraction=yes ;;
8356 lock_old_archive_extraction=no ;;
8379 for ac_prog in gawk mawk nawk awk
8381 # Extract the first word of "$ac_prog", so it can be a program name with args.
8382 set dummy $ac_prog; 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_AWK+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 if test -n "$AWK"; then
8389 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 if test -n "$AWK"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8411 $as_echo "$AWK" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8418 test -n "$AWK" && break
8439 # If no C compiler was specified, use CC.
8442 # If no C compiler flags were specified, use CFLAGS.
8443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8445 # Allow CC to be a program name with arguments.
8449 # Check for command to grab the raw symbol name followed by C symbol from nm.
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8451 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8452 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8453 $as_echo_n "(cached) " >&6
8456 # These are sane defaults that work on at least a few old systems.
8457 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8459 # Character class describing NM global symbol codes.
8460 symcode='[BCDEGRST]'
8462 # Regexp to match symbols that can be accessed directly from C.
8463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8465 # Define system-specific variables.
8470 cygwin* | mingw* | pw32* | cegcc*)
8471 symcode='[ABCDGISTW]'
8474 if test "$host_cpu" = ia64; then
8475 symcode='[ABCDEGRST]'
8479 symcode='[BCDEGRST]'
8482 symcode='[BCDEGQRST]'
8493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8501 # If we're using GNU nm, then use its standard symbol codes.
8502 case `$NM -V 2>&1` in
8503 *GNU* | *'with BFD'*)
8504 symcode='[ABCDGIRSTW]' ;;
8507 # Transform an extracted symbol line into a proper C declaration.
8508 # Some systems (esp. on ia64) link data and code symbols differently,
8509 # so use this general approach.
8510 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8512 # Transform an extracted symbol line into symbol name and symbol address
8513 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8514 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'"
8516 # Handle CRLF in mingw tool chain
8520 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8524 # Try without a prefix underscore, then with it.
8525 for ac_symprfx in "" "_"; do
8527 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8528 symxfrm="\\1 $ac_symprfx\\2 \\2"
8530 # Write the raw and C identifiers.
8531 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8532 # Fake it for dumpbin and say T for any non-static function
8533 # and D for any global variable.
8534 # Also find C++ and __fastcall symbols from MSVC++,
8535 # which start with @ or ?.
8536 lt_cv_sys_global_symbol_pipe="$AWK '"\
8537 " {last_section=section; section=\$ 3};"\
8538 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8539 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8540 " \$ 0!~/External *\|/{next};"\
8541 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8542 " {if(hide[section]) next};"\
8543 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8544 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8545 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8546 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8547 " ' prfx=^$ac_symprfx"
8549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8551 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8553 # Check to see that the pipe works correctly.
8557 cat > conftest.$ac_ext <<_LT_EOF
8562 void nm_test_func(void);
8563 void nm_test_func(void){}
8567 int main(){nm_test_var='a';nm_test_func();return(0);}
8570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8571 (eval $ac_compile) 2>&5
8573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574 test $ac_status = 0; }; then
8575 # Now try to grab the symbols.
8577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8578 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8581 test $ac_status = 0; } && test -s "$nlist"; then
8582 # Try sorting and uniquifying the output.
8583 if sort "$nlist" | uniq > "$nlist"T; then
8584 mv -f "$nlist"T "$nlist"
8589 # Make sure that we snagged all the symbols we need.
8590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8592 cat <<_LT_EOF > conftest.$ac_ext
8593 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8594 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8595 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8596 relocations are performed -- see ld's documentation on pseudo-relocs. */
8597 # define LT_DLSYM_CONST
8598 #elif defined(__osf__)
8599 /* This system does not cope well with relocations in const data. */
8600 # define LT_DLSYM_CONST
8602 # define LT_DLSYM_CONST const
8610 # Now generate the symbol file.
8611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8613 cat <<_LT_EOF >> conftest.$ac_ext
8615 /* The mapping between symbol names and symbols. */
8616 LT_DLSYM_CONST struct {
8620 lt__PROGRAM__LTX_preloaded_symbols[] =
8622 { "@PROGRAM@", (void *) 0 },
8624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8625 cat <<\_LT_EOF >> conftest.$ac_ext
8629 /* This works around a problem in FreeBSD linker */
8630 #ifdef FREEBSD_WORKAROUND
8631 static const void *lt_preloaded_setup() {
8632 return lt__PROGRAM__LTX_preloaded_symbols;
8640 # Now try linking the two files.
8641 mv conftest.$ac_objext conftstm.$ac_objext
8642 lt_globsym_save_LIBS=$LIBS
8643 lt_globsym_save_CFLAGS=$CFLAGS
8644 LIBS="conftstm.$ac_objext"
8645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8647 (eval $ac_link) 2>&5
8649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8653 LIBS=$lt_globsym_save_LIBS
8654 CFLAGS=$lt_globsym_save_CFLAGS
8656 echo "cannot find nm_test_func in $nlist" >&5
8659 echo "cannot find nm_test_var in $nlist" >&5
8662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8665 echo "$progname: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 rm -rf conftest* conftst*
8670 # Do not use the global_symbol_pipe unless it works.
8671 if test "$pipe_works" = yes; then
8674 lt_cv_sys_global_symbol_pipe=
8680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8681 lt_cv_sys_global_symbol_to_cdecl=
8683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8685 $as_echo "failed" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8688 $as_echo "ok" >&6; }
8691 # Response file support.
8692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8693 nm_file_list_spec='@'
8694 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8695 nm_file_list_spec='@'
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8725 $as_echo_n "checking for sysroot... " >&6; }
8727 # Check whether --with-sysroot was given.
8728 if test "${with_sysroot+set}" = set; then :
8729 withval=$with_sysroot;
8736 case ${with_sysroot} in #(
8738 if test "$GCC" = yes; then
8739 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8743 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8749 $as_echo "${with_sysroot}" >&6; }
8750 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8755 $as_echo "${lt_sysroot:-no}" >&6; }
8761 # Check whether --enable-libtool-lock was given.
8762 if test "${enable_libtool_lock+set}" = set; then :
8763 enableval=$enable_libtool_lock;
8766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8768 # Some flags need to be propagated to the compiler or linker for good
8772 # Find out which ABI we are using.
8773 echo 'int i;' > conftest.$ac_ext
8774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8775 (eval $ac_compile) 2>&5
8777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8778 test $ac_status = 0; }; then
8779 case `/usr/bin/file conftest.$ac_objext` in
8791 # Find out which ABI we are using.
8792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8794 (eval $ac_compile) 2>&5
8796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8797 test $ac_status = 0; }; then
8798 if test "$lt_cv_prog_gnu_ld" = yes; then
8799 case `/usr/bin/file conftest.$ac_objext` in
8801 LD="${LD-ld} -melf32bsmip"
8804 LD="${LD-ld} -melf32bmipn32"
8807 LD="${LD-ld} -melf64bmip"
8811 case `/usr/bin/file conftest.$ac_objext` in
8827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8829 # Find out which ABI we are using.
8830 echo 'int i;' > conftest.$ac_ext
8831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8832 (eval $ac_compile) 2>&5
8834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8835 test $ac_status = 0; }; then
8836 case `/usr/bin/file conftest.o` in
8839 x86_64-*kfreebsd*-gnu)
8840 LD="${LD-ld} -m elf_i386_fbsd"
8843 LD="${LD-ld} -m elf_i386"
8845 powerpc64le-*linux*)
8846 LD="${LD-ld} -m elf32lppclinux"
8849 LD="${LD-ld} -m elf32ppclinux"
8852 LD="${LD-ld} -m elf_s390"
8855 LD="${LD-ld} -m elf32_sparc"
8861 x86_64-*kfreebsd*-gnu)
8862 LD="${LD-ld} -m elf_x86_64_fbsd"
8865 LD="${LD-ld} -m elf_x86_64"
8868 LD="${LD-ld} -m elf64lppc"
8871 LD="${LD-ld} -m elf64ppc"
8873 s390*-*linux*|s390*-*tpf*)
8874 LD="${LD-ld} -m elf64_s390"
8877 LD="${LD-ld} -m elf64_sparc"
8887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8888 SAVE_CFLAGS="$CFLAGS"
8889 CFLAGS="$CFLAGS -belf"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8892 if ${lt_cv_cc_needs_belf+:} false; then :
8893 $as_echo_n "(cached) " >&6
8896 ac_cpp='$CPP $CPPFLAGS'
8897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 lt_cv_cc_needs_belf=yes
8915 lt_cv_cc_needs_belf=no
8917 rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8928 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8929 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8930 CFLAGS="$SAVE_CFLAGS"
8934 # Find out which ABI we are using.
8935 echo 'int i;' > conftest.$ac_ext
8936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8937 (eval $ac_compile) 2>&5
8939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940 test $ac_status = 0; }; then
8941 case `/usr/bin/file conftest.o` in
8943 case $lt_cv_prog_gnu_ld in
8947 LD="${LD-ld} -m elf_x86_64"
8950 LD="${LD-ld} -m elf64_sparc"
8953 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8954 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8959 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8971 need_locks="$enable_libtool_lock"
8973 if test -n "$ac_tool_prefix"; then
8974 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8975 set dummy ${ac_tool_prefix}mt; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8979 $as_echo_n "(cached) " >&6
8981 if test -n "$MANIFEST_TOOL"; then
8982 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9001 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9002 if test -n "$MANIFEST_TOOL"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9004 $as_echo "$MANIFEST_TOOL" >&6; }
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9013 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9014 # Extract the first word of "mt", so it can be a program name with args.
9015 set dummy mt; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9019 $as_echo_n "(cached) " >&6
9021 if test -n "$ac_ct_MANIFEST_TOOL"; then
9022 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9042 if test -n "$ac_ct_MANIFEST_TOOL"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9044 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9050 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9053 case $cross_compiling:$ac_tool_warned in
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9057 ac_tool_warned=yes ;;
9059 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9062 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9065 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9067 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9068 if ${lt_cv_path_mainfest_tool+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 lt_cv_path_mainfest_tool=no
9072 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9073 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9074 cat conftest.err >&5
9075 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9076 lt_cv_path_mainfest_tool=yes
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9081 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9082 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9092 rhapsody* | darwin*)
9093 if test -n "$ac_tool_prefix"; then
9094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 if test -n "$DSYMUTIL"; then
9102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9122 if test -n "$DSYMUTIL"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9124 $as_echo "$DSYMUTIL" >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 if test -z "$ac_cv_prog_DSYMUTIL"; then
9133 ac_ct_DSYMUTIL=$DSYMUTIL
9134 # Extract the first word of "dsymutil", so it can be a program name with args.
9135 set dummy dsymutil; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$ac_ct_DSYMUTIL"; then
9142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9162 if test -n "$ac_ct_DSYMUTIL"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9170 if test "x$ac_ct_DSYMUTIL" = x; then
9173 case $cross_compiling:$ac_tool_warned in
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9177 ac_tool_warned=yes ;;
9179 DSYMUTIL=$ac_ct_DSYMUTIL
9182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9185 if test -n "$ac_tool_prefix"; then
9186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_NMEDIT+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 if test -n "$NMEDIT"; then
9194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 NMEDIT=$ac_cv_prog_NMEDIT
9214 if test -n "$NMEDIT"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9216 $as_echo "$NMEDIT" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9224 if test -z "$ac_cv_prog_NMEDIT"; then
9225 ac_ct_NMEDIT=$NMEDIT
9226 # Extract the first word of "nmedit", so it can be a program name with args.
9227 set dummy nmedit; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$ac_ct_NMEDIT"; then
9234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9254 if test -n "$ac_ct_NMEDIT"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9256 $as_echo "$ac_ct_NMEDIT" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9262 if test "x$ac_ct_NMEDIT" = x; then
9265 case $cross_compiling:$ac_tool_warned in
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9271 NMEDIT=$ac_ct_NMEDIT
9274 NMEDIT="$ac_cv_prog_NMEDIT"
9277 if test -n "$ac_tool_prefix"; then
9278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9281 $as_echo_n "checking for $ac_word... " >&6; }
9282 if ${ac_cv_prog_LIPO+:} false; then :
9283 $as_echo_n "(cached) " >&6
9285 if test -n "$LIPO"; then
9286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 LIPO=$ac_cv_prog_LIPO
9306 if test -n "$LIPO"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9308 $as_echo "$LIPO" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9316 if test -z "$ac_cv_prog_LIPO"; then
9318 # Extract the first word of "lipo", so it can be a program name with args.
9319 set dummy lipo; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 if test -n "$ac_ct_LIPO"; then
9326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9335 ac_cv_prog_ac_ct_LIPO="lipo"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9346 if test -n "$ac_ct_LIPO"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9348 $as_echo "$ac_ct_LIPO" >&6; }
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9354 if test "x$ac_ct_LIPO" = x; then
9357 case $cross_compiling:$ac_tool_warned in
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9361 ac_tool_warned=yes ;;
9366 LIPO="$ac_cv_prog_LIPO"
9369 if test -n "$ac_tool_prefix"; then
9370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9371 set dummy ${ac_tool_prefix}otool; ac_word=$2
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9373 $as_echo_n "checking for $ac_word... " >&6; }
9374 if ${ac_cv_prog_OTOOL+:} false; then :
9375 $as_echo_n "(cached) " >&6
9377 if test -n "$OTOOL"; then
9378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 OTOOL=$ac_cv_prog_OTOOL
9398 if test -n "$OTOOL"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9400 $as_echo "$OTOOL" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403 $as_echo "no" >&6; }
9408 if test -z "$ac_cv_prog_OTOOL"; then
9410 # Extract the first word of "otool", so it can be a program name with args.
9411 set dummy otool; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9415 $as_echo_n "(cached) " >&6
9417 if test -n "$ac_ct_OTOOL"; then
9418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9427 ac_cv_prog_ac_ct_OTOOL="otool"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9438 if test -n "$ac_ct_OTOOL"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9440 $as_echo "$ac_ct_OTOOL" >&6; }
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9446 if test "x$ac_ct_OTOOL" = x; then
9449 case $cross_compiling:$ac_tool_warned in
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9453 ac_tool_warned=yes ;;
9458 OTOOL="$ac_cv_prog_OTOOL"
9461 if test -n "$ac_tool_prefix"; then
9462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_OTOOL64+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 if test -n "$OTOOL64"; then
9470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 OTOOL64=$ac_cv_prog_OTOOL64
9490 if test -n "$OTOOL64"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9492 $as_echo "$OTOOL64" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 if test -z "$ac_cv_prog_OTOOL64"; then
9501 ac_ct_OTOOL64=$OTOOL64
9502 # Extract the first word of "otool64", so it can be a program name with args.
9503 set dummy otool64; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9507 $as_echo_n "(cached) " >&6
9509 if test -n "$ac_ct_OTOOL64"; then
9510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519 ac_cv_prog_ac_ct_OTOOL64="otool64"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9530 if test -n "$ac_ct_OTOOL64"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9532 $as_echo "$ac_ct_OTOOL64" >&6; }
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9538 if test "x$ac_ct_OTOOL64" = x; then
9541 case $cross_compiling:$ac_tool_warned in
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545 ac_tool_warned=yes ;;
9547 OTOOL64=$ac_ct_OTOOL64
9550 OTOOL64="$ac_cv_prog_OTOOL64"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9580 $as_echo_n "checking for -single_module linker flag... " >&6; }
9581 if ${lt_cv_apple_cc_single_mod+:} false; then :
9582 $as_echo_n "(cached) " >&6
9584 lt_cv_apple_cc_single_mod=no
9585 if test -z "${LT_MULTI_MODULE}"; then
9586 # By default we will add the -single_module flag. You can override
9587 # by either setting the environment variable LT_MULTI_MODULE
9588 # non-empty at configure time, or by adding -multi_module to the
9590 rm -rf libconftest.dylib*
9591 echo "int foo(void){return 1;}" > conftest.c
9592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9593 -dynamiclib -Wl,-single_module conftest.c" >&5
9594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9597 # If there is a non-empty error log, and "single_module"
9598 # appears in it, assume the flag caused a linker warning
9599 if test -s conftest.err && $GREP single_module conftest.err; then
9600 cat conftest.err >&5
9601 # Otherwise, if the output was created with a 0 exit code from
9602 # the compiler, it worked.
9603 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9604 lt_cv_apple_cc_single_mod=yes
9606 cat conftest.err >&5
9608 rm -rf libconftest.dylib*
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9616 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9617 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9618 $as_echo_n "(cached) " >&6
9620 lt_cv_ld_exported_symbols_list=no
9621 save_LDFLAGS=$LDFLAGS
9622 echo "_main" > conftest.sym
9623 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9635 if ac_fn_c_try_link "$LINENO"; then :
9636 lt_cv_ld_exported_symbols_list=yes
9638 lt_cv_ld_exported_symbols_list=no
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LDFLAGS="$save_LDFLAGS"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9646 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9649 $as_echo_n "checking for -force_load linker flag... " >&6; }
9650 if ${lt_cv_ld_force_load+:} false; then :
9651 $as_echo_n "(cached) " >&6
9653 lt_cv_ld_force_load=no
9654 cat > conftest.c << _LT_EOF
9655 int forced_loaded() { return 2;}
9657 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9658 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9659 echo "$AR cru libconftest.a conftest.o" >&5
9660 $AR cru libconftest.a conftest.o 2>&5
9661 echo "$RANLIB libconftest.a" >&5
9662 $RANLIB libconftest.a 2>&5
9663 cat > conftest.c << _LT_EOF
9664 int main() { return 0;}
9666 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9667 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9669 if test -s conftest.err && $GREP force_load conftest.err; then
9670 cat conftest.err >&5
9671 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9672 lt_cv_ld_force_load=yes
9674 cat conftest.err >&5
9676 rm -f conftest.err libconftest.a conftest conftest.c
9677 rm -rf conftest.dSYM
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9681 $as_echo "$lt_cv_ld_force_load" >&6; }
9683 rhapsody* | darwin1.[012])
9684 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9687 darwin*) # darwin 5.x on
9688 # if running on 10.5 or later, the deployment target defaults
9689 # to the OS version, if on x86, and 10.4, the deployment
9690 # target defaults to 10.4. Don't you love it?
9691 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9692 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9693 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9695 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9697 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9701 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9702 _lt_dar_single_mod='$single_module'
9704 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9705 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9707 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9709 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9710 _lt_dsymutil='~$DSYMUTIL $lib || :'
9717 for ac_header in dlfcn.h
9719 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9721 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9722 cat >>confdefs.h <<_ACEOF
9723 #define HAVE_DLFCN_H 1
9746 # Check whether --enable-shared was given.
9747 if test "${enable_shared+set}" = set; then :
9748 enableval=$enable_shared; p=${PACKAGE-default}
9750 yes) enable_shared=yes ;;
9751 no) enable_shared=no ;;
9754 # Look at the argument we got. We use all the common list separators.
9755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9756 for pkg in $enableval; do
9758 if test "X$pkg" = "X$p"; then
9777 # Check whether --enable-static was given.
9778 if test "${enable_static+set}" = set; then :
9779 enableval=$enable_static; p=${PACKAGE-default}
9781 yes) enable_static=yes ;;
9782 no) enable_static=no ;;
9785 # Look at the argument we got. We use all the common list separators.
9786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9787 for pkg in $enableval; do
9789 if test "X$pkg" = "X$p"; then
9809 # Check whether --with-pic was given.
9810 if test "${with_pic+set}" = set; then :
9811 withval=$with_pic; lt_p=${PACKAGE-default}
9813 yes|no) pic_mode=$withval ;;
9816 # Look at the argument we got. We use all the common list separators.
9817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9818 for lt_pkg in $withval; do
9820 if test "X$lt_pkg" = "X$lt_p"; then
9832 test -z "$pic_mode" && pic_mode=default
9840 # Check whether --enable-fast-install was given.
9841 if test "${enable_fast_install+set}" = set; then :
9842 enableval=$enable_fast_install; p=${PACKAGE-default}
9844 yes) enable_fast_install=yes ;;
9845 no) enable_fast_install=no ;;
9847 enable_fast_install=no
9848 # Look at the argument we got. We use all the common list separators.
9849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9850 for pkg in $enableval; do
9852 if test "X$pkg" = "X$p"; then
9853 enable_fast_install=yes
9860 enable_fast_install=yes
9873 # This can be used to rebuild libtool when needed
9874 LIBTOOL_DEPS="$ltmain"
9876 # Always use our own libtool.
9877 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9908 test -z "$LN_S" && LN_S="ln -s"
9923 if test -n "${ZSH_VERSION+set}" ; then
9924 setopt NO_GLOB_SUBST
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9928 $as_echo_n "checking for objdir... " >&6; }
9929 if ${lt_cv_objdir+:} false; then :
9930 $as_echo_n "(cached) " >&6
9932 rm -f .libs 2>/dev/null
9933 mkdir .libs 2>/dev/null
9934 if test -d .libs; then
9937 # MS-DOS does not allow filenames that begin with a dot.
9940 rmdir .libs 2>/dev/null
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9943 $as_echo "$lt_cv_objdir" >&6; }
9944 objdir=$lt_cv_objdir
9950 cat >>confdefs.h <<_ACEOF
9951 #define LT_OBJDIR "$lt_cv_objdir/"
9959 # AIX sometimes has problems with the GCC collect2 program. For some
9960 # reason, if we set the COLLECT_NAMES environment variable, the problems
9961 # vanish in a puff of smoke.
9962 if test "X${COLLECT_NAMES+set}" != Xset; then
9964 export COLLECT_NAMES
9971 can_build_shared=yes
9973 # All known linkers require a `.a' archive for static linking (except MSVC,
9974 # which needs '.lib').
9977 with_gnu_ld="$lt_cv_prog_gnu_ld"
9980 old_CFLAGS="$CFLAGS"
9982 # Set sane defaults for various variables
9983 test -z "$CC" && CC=cc
9984 test -z "$LTCC" && LTCC=$CC
9985 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9986 test -z "$LD" && LD=ld
9987 test -z "$ac_objext" && ac_objext=o
9989 for cc_temp in $compiler""; do
9991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9997 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10000 # Only perform the check for file, if the check method requires it
10001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10002 case $deplibs_check_method in
10004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10006 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10007 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10008 $as_echo_n "(cached) " >&6
10012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10015 lt_save_MAGIC_CMD="$MAGIC_CMD"
10016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10018 for ac_dir in $ac_dummy; do
10020 test -z "$ac_dir" && ac_dir=.
10021 if test -f $ac_dir/${ac_tool_prefix}file; then
10022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10023 if test -n "$file_magic_test_file"; then
10024 case $deplibs_check_method in
10026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10029 $EGREP "$file_magic_regex" > /dev/null; then
10034 *** Warning: the command libtool uses to detect shared libraries,
10035 *** $file_magic_cmd, produces output that libtool cannot recognize.
10036 *** The result is that libtool may fail to recognize shared libraries
10037 *** as such. This will affect the creation of libtool libraries that
10038 *** depend on shared libraries, but programs linked with such libtool
10039 *** libraries will work regardless of this problem. Nevertheless, you
10040 *** may want to report the problem to your system manager and/or to
10041 *** bug-libtool@gnu.org
10051 MAGIC_CMD="$lt_save_MAGIC_CMD"
10056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10057 if test -n "$MAGIC_CMD"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10059 $as_echo "$MAGIC_CMD" >&6; }
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10069 if test -z "$lt_cv_path_MAGIC_CMD"; then
10070 if test -n "$ac_tool_prefix"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10072 $as_echo_n "checking for file... " >&6; }
10073 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10074 $as_echo_n "(cached) " >&6
10078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10081 lt_save_MAGIC_CMD="$MAGIC_CMD"
10082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10084 for ac_dir in $ac_dummy; do
10086 test -z "$ac_dir" && ac_dir=.
10087 if test -f $ac_dir/file; then
10088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10089 if test -n "$file_magic_test_file"; then
10090 case $deplibs_check_method in
10092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10095 $EGREP "$file_magic_regex" > /dev/null; then
10100 *** Warning: the command libtool uses to detect shared libraries,
10101 *** $file_magic_cmd, produces output that libtool cannot recognize.
10102 *** The result is that libtool may fail to recognize shared libraries
10103 *** as such. This will affect the creation of libtool libraries that
10104 *** depend on shared libraries, but programs linked with such libtool
10105 *** libraries will work regardless of this problem. Nevertheless, you
10106 *** may want to report the problem to your system manager and/or to
10107 *** bug-libtool@gnu.org
10117 MAGIC_CMD="$lt_save_MAGIC_CMD"
10122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10123 if test -n "$MAGIC_CMD"; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10125 $as_echo "$MAGIC_CMD" >&6; }
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10141 # Use C for the default configuration in the libtool script
10145 ac_cpp='$CPP $CPPFLAGS'
10146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10151 # Source file extension for C test sources.
10154 # Object file extension for compiled C test sources.
10158 # Code to be used in simple compile tests
10159 lt_simple_compile_test_code="int some_variable = 0;"
10161 # Code to be used in simple link tests
10162 lt_simple_link_test_code='int main(){return(0);}'
10170 # If no C compiler was specified, use CC.
10173 # If no C compiler flags were specified, use CFLAGS.
10174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10176 # Allow CC to be a program name with arguments.
10179 # Save the default compiler, since it gets overwritten when the other
10180 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10181 compiler_DEFAULT=$CC
10183 # save warnings/boilerplate of simple test code
10184 ac_outfile=conftest.$ac_objext
10185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10187 _lt_compiler_boilerplate=`cat conftest.err`
10190 ac_outfile=conftest.$ac_objext
10191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10193 _lt_linker_boilerplate=`cat conftest.err`
10197 if test -n "$compiler"; then
10199 lt_prog_compiler_no_builtin_flag=
10201 if test "$GCC" = yes; then
10202 case $cc_basename in
10204 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10206 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10210 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10211 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10212 $as_echo_n "(cached) " >&6
10214 lt_cv_prog_compiler_rtti_exceptions=no
10215 ac_outfile=conftest.$ac_objext
10216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10217 lt_compiler_flag="-fno-rtti -fno-exceptions"
10218 # Insert the option either (1) after the last *FLAGS variable, or
10219 # (2) before a word containing "conftest.", or (3) at the end.
10220 # Note that $ac_compile itself does not contain backslashes and begins
10221 # with a dollar sign (not a hyphen), so the echo should work correctly.
10222 # The option is referenced via a variable to avoid confusing sed.
10223 lt_compile=`echo "$ac_compile" | $SED \
10224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10226 -e 's:$: $lt_compiler_flag:'`
10227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10228 (eval "$lt_compile" 2>conftest.err)
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 if (exit $ac_status) && test -s "$ac_outfile"; then
10233 # The compiler can only warn and ignore the option if not recognized
10234 # So say no if there are warnings other than the usual output.
10235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10238 lt_cv_prog_compiler_rtti_exceptions=yes
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10245 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10247 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10248 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10260 lt_prog_compiler_wl=
10261 lt_prog_compiler_pic=
10262 lt_prog_compiler_static=
10265 if test "$GCC" = yes; then
10266 lt_prog_compiler_wl='-Wl,'
10267 lt_prog_compiler_static='-static'
10271 # All AIX code is PIC.
10272 if test "$host_cpu" = ia64; then
10273 # AIX 5 now supports IA64 processor
10274 lt_prog_compiler_static='-Bstatic'
10281 # see comment about AmigaOS4 .so support
10282 lt_prog_compiler_pic='-fPIC'
10285 # FIXME: we need at least 68020 code to build shared libraries, but
10286 # adding the `-m68020' flag to GCC prevents building anything better,
10288 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10294 # PIC is the default for these OSes.
10297 mingw* | cygwin* | pw32* | os2* | cegcc*)
10298 # This hack is so that the source file can tell whether it is being
10299 # built for inclusion in a dll (and should export symbols for example).
10300 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10301 # (--disable-auto-import) libraries
10302 lt_prog_compiler_pic='-DDLL_EXPORT'
10305 darwin* | rhapsody*)
10306 # PIC is the default on this platform
10307 # Common symbols not allowed in MH_DYLIB files
10308 lt_prog_compiler_pic='-fno-common'
10312 # PIC is the default for Haiku.
10313 # The "-static" flag exists, but is broken.
10314 lt_prog_compiler_static=
10318 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10319 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10320 # sets the default TLS model and affects inlining.
10326 lt_prog_compiler_pic='-fPIC'
10332 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10333 # Instead, we relocate shared libraries at runtime.
10337 # Just because we use GCC doesn't mean we suddenly get shared libraries
10338 # on systems that don't support them.
10339 lt_prog_compiler_can_build_shared=no
10344 # QNX uses GNU C++, but need to define -shared option too, otherwise
10345 # it will coredump.
10346 lt_prog_compiler_pic='-fPIC -shared'
10350 if test -d /usr/nec; then
10351 lt_prog_compiler_pic=-Kconform_pic
10356 lt_prog_compiler_pic='-fPIC'
10360 case $cc_basename in
10361 nvcc*) # Cuda Compiler Driver 2.2
10362 lt_prog_compiler_wl='-Xlinker '
10363 if test -n "$lt_prog_compiler_pic"; then
10364 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10369 # PORTME Check for flag to pass linker flags through the system compiler.
10372 lt_prog_compiler_wl='-Wl,'
10373 if test "$host_cpu" = ia64; then
10374 # AIX 5 now supports IA64 processor
10375 lt_prog_compiler_static='-Bstatic'
10377 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10381 mingw* | cygwin* | pw32* | os2* | cegcc*)
10382 # This hack is so that the source file can tell whether it is being
10383 # built for inclusion in a dll (and should export symbols for example).
10384 lt_prog_compiler_pic='-DDLL_EXPORT'
10387 hpux9* | hpux10* | hpux11*)
10388 lt_prog_compiler_wl='-Wl,'
10389 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10390 # not for PA HP-UX.
10396 lt_prog_compiler_pic='+Z'
10399 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10400 lt_prog_compiler_static='${wl}-a ${wl}archive'
10403 irix5* | irix6* | nonstopux*)
10404 lt_prog_compiler_wl='-Wl,'
10405 # PIC (with -KPIC) is the default.
10406 lt_prog_compiler_static='-non_shared'
10409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10410 case $cc_basename in
10411 # old Intel for x86_64 which still supported -KPIC.
10413 lt_prog_compiler_wl='-Wl,'
10414 lt_prog_compiler_pic='-KPIC'
10415 lt_prog_compiler_static='-static'
10417 # icc used to be incompatible with GCC.
10418 # ICC 10 doesn't accept -KPIC any more.
10420 lt_prog_compiler_wl='-Wl,'
10421 lt_prog_compiler_pic='-fPIC'
10422 lt_prog_compiler_static='-static'
10424 # Lahey Fortran 8.1.
10426 lt_prog_compiler_wl='-Wl,'
10427 lt_prog_compiler_pic='--shared'
10428 lt_prog_compiler_static='--static'
10431 # NAG Fortran compiler
10432 lt_prog_compiler_wl='-Wl,-Wl,,'
10433 lt_prog_compiler_pic='-PIC'
10434 lt_prog_compiler_static='-Bstatic'
10436 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10437 # Portland Group compilers (*not* the Pentium gcc compiler,
10438 # which looks to be a dead project)
10439 lt_prog_compiler_wl='-Wl,'
10440 lt_prog_compiler_pic='-fpic'
10441 lt_prog_compiler_static='-Bstatic'
10444 lt_prog_compiler_wl='-Wl,'
10445 # All Alpha code is PIC.
10446 lt_prog_compiler_static='-non_shared'
10448 xl* | bgxl* | bgf* | mpixl*)
10449 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10450 lt_prog_compiler_wl='-Wl,'
10451 lt_prog_compiler_pic='-qpic'
10452 lt_prog_compiler_static='-qstaticlink'
10455 case `$CC -V 2>&1 | sed 5q` in
10456 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10458 lt_prog_compiler_pic='-KPIC'
10459 lt_prog_compiler_static='-Bstatic'
10460 lt_prog_compiler_wl=''
10462 *Sun\ F* | *Sun*Fortran*)
10463 lt_prog_compiler_pic='-KPIC'
10464 lt_prog_compiler_static='-Bstatic'
10465 lt_prog_compiler_wl='-Qoption ld '
10469 lt_prog_compiler_pic='-KPIC'
10470 lt_prog_compiler_static='-Bstatic'
10471 lt_prog_compiler_wl='-Wl,'
10473 *Intel*\ [CF]*Compiler*)
10474 lt_prog_compiler_wl='-Wl,'
10475 lt_prog_compiler_pic='-fPIC'
10476 lt_prog_compiler_static='-static'
10479 lt_prog_compiler_wl='-Wl,'
10480 lt_prog_compiler_pic='-fpic'
10481 lt_prog_compiler_static='-Bstatic'
10489 lt_prog_compiler_pic='-KPIC'
10490 lt_prog_compiler_static='-Bstatic'
10494 # QNX uses GNU C++, but need to define -shared option too, otherwise
10495 # it will coredump.
10496 lt_prog_compiler_pic='-fPIC -shared'
10499 osf3* | osf4* | osf5*)
10500 lt_prog_compiler_wl='-Wl,'
10501 # All OSF/1 code is PIC.
10502 lt_prog_compiler_static='-non_shared'
10506 lt_prog_compiler_static='-non_shared'
10510 lt_prog_compiler_pic='-KPIC'
10511 lt_prog_compiler_static='-Bstatic'
10512 case $cc_basename in
10513 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10514 lt_prog_compiler_wl='-Qoption ld ';;
10516 lt_prog_compiler_wl='-Wl,';;
10521 lt_prog_compiler_wl='-Qoption ld '
10522 lt_prog_compiler_pic='-PIC'
10523 lt_prog_compiler_static='-Bstatic'
10526 sysv4 | sysv4.2uw2* | sysv4.3*)
10527 lt_prog_compiler_wl='-Wl,'
10528 lt_prog_compiler_pic='-KPIC'
10529 lt_prog_compiler_static='-Bstatic'
10533 if test -d /usr/nec ;then
10534 lt_prog_compiler_pic='-Kconform_pic'
10535 lt_prog_compiler_static='-Bstatic'
10539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10540 lt_prog_compiler_wl='-Wl,'
10541 lt_prog_compiler_pic='-KPIC'
10542 lt_prog_compiler_static='-Bstatic'
10546 lt_prog_compiler_wl='-Wl,'
10547 lt_prog_compiler_can_build_shared=no
10551 lt_prog_compiler_pic='-pic'
10552 lt_prog_compiler_static='-Bstatic'
10556 lt_prog_compiler_can_build_shared=no
10562 # For platforms which do not support PIC, -DPIC is meaningless:
10564 lt_prog_compiler_pic=
10567 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10573 if ${lt_cv_prog_compiler_pic+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10579 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10580 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10583 # Check to make sure the PIC flag actually works.
10585 if test -n "$lt_prog_compiler_pic"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10587 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10588 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10589 $as_echo_n "(cached) " >&6
10591 lt_cv_prog_compiler_pic_works=no
10592 ac_outfile=conftest.$ac_objext
10593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10594 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10595 # Insert the option either (1) after the last *FLAGS variable, or
10596 # (2) before a word containing "conftest.", or (3) at the end.
10597 # Note that $ac_compile itself does not contain backslashes and begins
10598 # with a dollar sign (not a hyphen), so the echo should work correctly.
10599 # The option is referenced via a variable to avoid confusing sed.
10600 lt_compile=`echo "$ac_compile" | $SED \
10601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10603 -e 's:$: $lt_compiler_flag:'`
10604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10605 (eval "$lt_compile" 2>conftest.err)
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 if (exit $ac_status) && test -s "$ac_outfile"; then
10610 # The compiler can only warn and ignore the option if not recognized
10611 # So say no if there are warnings other than the usual output.
10612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10615 lt_cv_prog_compiler_pic_works=yes
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10622 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10624 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10625 case $lt_prog_compiler_pic in
10627 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10630 lt_prog_compiler_pic=
10631 lt_prog_compiler_can_build_shared=no
10647 # Check to make sure the static flag actually works.
10649 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10652 if ${lt_cv_prog_compiler_static_works+:} false; then :
10653 $as_echo_n "(cached) " >&6
10655 lt_cv_prog_compiler_static_works=no
10656 save_LDFLAGS="$LDFLAGS"
10657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10658 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10660 # The linker can only warn and ignore the option if not recognized
10661 # So say no if there are warnings
10662 if test -s conftest.err; then
10663 # Append any errors to the config.log.
10664 cat conftest.err 1>&5
10665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10667 if diff conftest.exp conftest.er2 >/dev/null; then
10668 lt_cv_prog_compiler_static_works=yes
10671 lt_cv_prog_compiler_static_works=yes
10675 LDFLAGS="$save_LDFLAGS"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10681 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10684 lt_prog_compiler_static=
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10694 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10695 if ${lt_cv_prog_compiler_c_o+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 lt_cv_prog_compiler_c_o=no
10699 $RM -r conftest 2>/dev/null
10703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10705 lt_compiler_flag="-o out/conftest2.$ac_objext"
10706 # Insert the option either (1) after the last *FLAGS variable, or
10707 # (2) before a word containing "conftest.", or (3) at the end.
10708 # Note that $ac_compile itself does not contain backslashes and begins
10709 # with a dollar sign (not a hyphen), so the echo should work correctly.
10710 lt_compile=`echo "$ac_compile" | $SED \
10711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713 -e 's:$: $lt_compiler_flag:'`
10714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10715 (eval "$lt_compile" 2>out/conftest.err)
10717 cat out/conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10721 # The compiler can only warn and ignore the option if not recognized
10722 # So say no if there are warnings
10723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10726 lt_cv_prog_compiler_c_o=yes
10731 # SGI C++ compiler will create directory out/ii_files/ for
10732 # template instantiation
10733 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10734 $RM out/* && rmdir out
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10741 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10749 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10750 if ${lt_cv_prog_compiler_c_o+:} false; then :
10751 $as_echo_n "(cached) " >&6
10753 lt_cv_prog_compiler_c_o=no
10754 $RM -r conftest 2>/dev/null
10758 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10760 lt_compiler_flag="-o out/conftest2.$ac_objext"
10761 # Insert the option either (1) after the last *FLAGS variable, or
10762 # (2) before a word containing "conftest.", or (3) at the end.
10763 # Note that $ac_compile itself does not contain backslashes and begins
10764 # with a dollar sign (not a hyphen), so the echo should work correctly.
10765 lt_compile=`echo "$ac_compile" | $SED \
10766 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10768 -e 's:$: $lt_compiler_flag:'`
10769 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10770 (eval "$lt_compile" 2>out/conftest.err)
10772 cat out/conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10776 # The compiler can only warn and ignore the option if not recognized
10777 # So say no if there are warnings
10778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10779 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10780 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10781 lt_cv_prog_compiler_c_o=yes
10786 # SGI C++ compiler will create directory out/ii_files/ for
10787 # template instantiation
10788 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10789 $RM out/* && rmdir out
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10796 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10801 hard_links="nottested"
10802 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10803 # do not overwrite the value of need_locks provided by the user
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10805 $as_echo_n "checking if we can lock with hard links... " >&6; }
10808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10810 ln conftest.a conftest.b 2>&5 || hard_links=no
10811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10813 $as_echo "$hard_links" >&6; }
10814 if test "$hard_links" = no; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10816 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10829 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10832 allow_undefined_flag=
10833 always_export_symbols=no
10835 archive_expsym_cmds=
10836 compiler_needs_object=no
10837 enable_shared_with_static_runtimes=no
10838 export_dynamic_flag_spec=
10839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10840 hardcode_automatic=no
10842 hardcode_direct_absolute=no
10843 hardcode_libdir_flag_spec=
10844 hardcode_libdir_separator=
10845 hardcode_minus_L=no
10846 hardcode_shlibpath_var=unsupported
10848 link_all_deplibs=unknown
10850 module_expsym_cmds=
10851 old_archive_from_new_cmds=
10852 old_archive_from_expsyms_cmds=
10853 thread_safe_flag_spec=
10854 whole_archive_flag_spec=
10855 # include_expsyms should be a list of space-separated symbols to be *always*
10856 # included in the symbol list
10858 # exclude_expsyms can be an extended regexp of symbols to exclude
10859 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10860 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10861 # as well as any symbol that contains `d'.
10862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10864 # platforms (ab)use it in PIC code, but their linkers get confused if
10865 # the symbol is explicitly referenced. Since portable code cannot
10866 # rely on this symbol name, it's probably fine to never include it in
10867 # preloaded symbol tables.
10868 # Exclude shared library initialization/finalization symbols.
10869 extract_expsyms_cmds=
10872 cygwin* | mingw* | pw32* | cegcc*)
10873 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10874 # When not using gcc, we currently assume that we are using
10875 # Microsoft Visual C++.
10876 if test "$GCC" != yes; then
10881 # we just hope/assume this is gcc and not c89 (= MSVC++)
10891 # On some targets, GNU ld is compatible enough with the native linker
10892 # that we're better off using the native interface for both.
10893 lt_use_gnu_ld_interface=no
10894 if test "$with_gnu_ld" = yes; then
10897 # The AIX port of GNU ld has always aspired to compatibility
10898 # with the native linker. However, as the warning in the GNU ld
10899 # block says, versions before 2.19.5* couldn't really create working
10900 # shared libraries, regardless of the interface used.
10901 case `$LD -v 2>&1` in
10902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10904 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10906 lt_use_gnu_ld_interface=yes
10911 lt_use_gnu_ld_interface=yes
10916 if test "$lt_use_gnu_ld_interface" = yes; then
10917 # If archive_cmds runs LD, not CC, wlarc should be empty
10920 # Set some defaults for GNU ld with shared library support. These
10921 # are reset later if shared libraries are not supported. Putting them
10922 # here allows them to be overridden if necessary.
10923 runpath_var=LD_RUN_PATH
10924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10925 export_dynamic_flag_spec='${wl}--export-dynamic'
10926 # ancient GNU ld didn't support --whole-archive et. al.
10927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10930 whole_archive_flag_spec=
10932 supports_anon_versioning=no
10933 case `$LD -v 2>&1` in
10934 *GNU\ gold*) supports_anon_versioning=yes ;;
10935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10938 *\ 2.11.*) ;; # other 2.11 versions
10939 *) supports_anon_versioning=yes ;;
10942 # See if GNU ld supports shared libraries.
10945 # On AIX/PPC, the GNU linker is very broken
10946 if test "$host_cpu" != ia64; then
10950 *** Warning: the GNU linker, at least up to release 2.19, is reported
10951 *** to be unable to reliably create shared libraries on AIX.
10952 *** Therefore, libtool is disabling shared libraries support. If you
10953 *** really care for shared libraries, you may want to install binutils
10954 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10955 *** You will then need to restart the configuration process.
10964 # see comment about AmigaOS4 .so support
10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966 archive_expsym_cmds=''
10969 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)'
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 hardcode_minus_L=yes
10977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10978 allow_undefined_flag=unsupported
10979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10980 # support --undefined. This deserves some investigation. FIXME
10981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987 cygwin* | mingw* | pw32* | cegcc*)
10988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10989 # as there is no search path for DLLs.
10990 hardcode_libdir_flag_spec='-L$libdir'
10991 export_dynamic_flag_spec='${wl}--export-all-symbols'
10992 allow_undefined_flag=unsupported
10993 always_export_symbols=no
10994 enable_shared_with_static_runtimes=yes
10995 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'
10996 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10998 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11000 # If the export-symbols file already is a .def file (1st line
11001 # is EXPORTS), use it as is; otherwise, prepend...
11002 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11003 cp $export_symbols $output_objdir/$soname.def;
11005 echo EXPORTS > $output_objdir/$soname.def;
11006 cat $export_symbols >> $output_objdir/$soname.def;
11008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11016 link_all_deplibs=yes
11021 hardcode_shlibpath_var=no
11022 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11023 export_dynamic_flag_spec='${wl}-E'
11024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11025 # Instead, shared libraries are loaded at an image base (0x10000000 by
11026 # default) and relocated if they conflict, which is a slow very memory
11027 # consuming and fragmenting process. To avoid this, we pick a random,
11028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11030 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11031 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'
11034 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11036 if test "$host_os" = linux-dietlibc; then
11037 case $cc_basename in
11038 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11041 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11042 && test "$tmp_diet" = no
11044 tmp_addflag=' $pic_flag'
11045 tmp_sharedflag='-shared'
11046 case $cc_basename,$host_cpu in
11047 pgcc*) # Portland Group C compiler
11048 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'
11049 tmp_addflag=' $pic_flag'
11051 pgf77* | pgf90* | pgf95* | pgfortran*)
11052 # Portland Group f77 and f90 compilers
11053 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'
11054 tmp_addflag=' $pic_flag -Mnomain' ;;
11055 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11056 tmp_addflag=' -i_dynamic' ;;
11057 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11058 tmp_addflag=' -i_dynamic -nofor_main' ;;
11059 ifc* | ifort*) # Intel Fortran compiler
11060 tmp_addflag=' -nofor_main' ;;
11061 lf95*) # Lahey Fortran 8.1
11062 whole_archive_flag_spec=
11063 tmp_sharedflag='--shared' ;;
11064 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11065 tmp_sharedflag='-qmkshrobj'
11067 nvcc*) # Cuda Compiler Driver 2.2
11068 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'
11069 compiler_needs_object=yes
11072 case `$CC -V 2>&1 | sed 5q` in
11073 *Sun\ C*) # Sun C 5.9
11074 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'
11075 compiler_needs_object=yes
11076 tmp_sharedflag='-G' ;;
11077 *Sun\ F*) # Sun Fortran 8.3
11078 tmp_sharedflag='-G' ;;
11080 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11082 if test "x$supports_anon_versioning" = xyes; then
11083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11085 echo "local: *; };" >> $output_objdir/$libname.ver~
11086 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11089 case $cc_basename in
11090 xlf* | bgf* | bgxlf* | mpixlf*)
11091 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11092 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11095 if test "x$supports_anon_versioning" = xyes; then
11096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11098 echo "local: *; };" >> $output_objdir/$libname.ver~
11099 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11119 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11124 *** create shared libraries on Solaris systems. Therefore, libtool
11125 *** is disabling shared libraries support. We urge you to upgrade GNU
11126 *** binutils to release 2.9.1 or newer. Another option is to modify
11127 *** your PATH or compiler configuration so that the native linker is
11128 *** used, and then restart.
11131 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11140 case `$LD -v 2>&1` in
11141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11146 *** reliably create shared libraries on SCO systems. Therefore, libtool
11147 *** is disabling shared libraries support. We urge you to upgrade GNU
11148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11149 *** your PATH or compiler configuration so that the native linker is
11150 *** used, and then restart.
11155 # For security reasons, it is highly recommended that you always
11156 # use absolute paths for naming shared libraries, and exclude the
11157 # DT_RUNPATH tag from executables and libraries. But doing so
11158 # requires that you compile everything twice, which is a pain.
11159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11171 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11173 hardcode_direct=yes
11174 hardcode_shlibpath_var=no
11178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11180 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11187 if test "$ld_shlibs" = no; then
11189 hardcode_libdir_flag_spec=
11190 export_dynamic_flag_spec=
11191 whole_archive_flag_spec=
11194 # PORTME fill in a description of your system's linker (not GNU ld)
11197 allow_undefined_flag=unsupported
11198 always_export_symbols=yes
11199 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'
11200 # Note: this linker hardcodes the directories in LIBPATH if there
11201 # are no directories specified by -L.
11202 hardcode_minus_L=yes
11203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11204 # Neither direct hardcoding nor static linking is supported with a
11206 hardcode_direct=unsupported
11211 if test "$host_cpu" = ia64; then
11212 # On IA64, the linker does run time linking by default, so we don't
11213 # have to do anything special.
11214 aix_use_runtimelinking=no
11215 exp_sym_flag='-Bexport'
11218 # If we're using GNU nm, then we don't want the "-C" option.
11219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11220 # Also, AIX nm treats weak defined symbols like other global
11221 # defined symbols, whereas GNU nm marks them as "W".
11222 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11223 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'
11225 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'
11227 aix_use_runtimelinking=no
11229 # Test if we are trying to use run time linking or normal
11230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11231 # need to do runtime linking.
11232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11233 for ld_flag in $LDFLAGS; do
11234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11235 aix_use_runtimelinking=yes
11242 exp_sym_flag='-bexport'
11243 no_entry_flag='-bnoentry'
11246 # When large executables or shared objects are built, AIX ld can
11247 # have problems creating the table of contents. If linking a library
11248 # or program results in "error TOC overflow" add -mminimal-toc to
11249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11253 hardcode_direct=yes
11254 hardcode_direct_absolute=yes
11255 hardcode_libdir_separator=':'
11256 link_all_deplibs=yes
11257 file_list_spec='${wl}-f,'
11259 if test "$GCC" = yes; then
11260 case $host_os in aix4.[012]|aix4.[012].*)
11261 # We only want to do this on AIX 4.2 and lower, the check
11262 # below for broken collect2 doesn't work under 4.3+
11263 collect2name=`${CC} -print-prog-name=collect2`
11264 if test -f "$collect2name" &&
11265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11267 # We have reworked collect2
11270 # We have old collect2
11271 hardcode_direct=unsupported
11272 # It fails to find uninstalled libraries when the uninstalled
11273 # path is not listed in the libpath. Setting hardcode_minus_L
11274 # to unsupported forces relinking
11275 hardcode_minus_L=yes
11276 hardcode_libdir_flag_spec='-L$libdir'
11277 hardcode_libdir_separator=
11281 shared_flag='-shared'
11282 if test "$aix_use_runtimelinking" = yes; then
11283 shared_flag="$shared_flag "'${wl}-G'
11287 if test "$host_cpu" = ia64; then
11288 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11289 # chokes on -Wl,-G. The following line is correct:
11292 if test "$aix_use_runtimelinking" = yes; then
11293 shared_flag='${wl}-G'
11295 shared_flag='${wl}-bM:SRE'
11300 export_dynamic_flag_spec='${wl}-bexpall'
11301 # It seems that -bexpall does not export symbols beginning with
11302 # underscore (_), so it is better to generate a list of symbols to export.
11303 always_export_symbols=yes
11304 if test "$aix_use_runtimelinking" = yes; then
11305 # Warning - without using the other runtime loading flags (-brtl),
11306 # -berok will link without error, but may produce a broken library.
11307 allow_undefined_flag='-berok'
11308 # Determine the default libpath from the value encoded in an
11309 # empty executable.
11310 if test "${lt_cv_aix_libpath+set}" = set; then
11311 aix_libpath=$lt_cv_aix_libpath
11313 if ${lt_cv_aix_libpath_+:} false; then :
11314 $as_echo_n "(cached) " >&6
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11327 if ac_fn_c_try_link "$LINENO"; then :
11329 lt_aix_libpath_sed='
11330 /Import File Strings/,/^$/ {
11332 s/^0 *\([^ ]*\) *$/\1/
11336 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337 # Check for a 64-bit object if we didn't find anything.
11338 if test -z "$lt_cv_aix_libpath_"; then
11339 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 if test -z "$lt_cv_aix_libpath_"; then
11345 lt_cv_aix_libpath_="/usr/lib:/lib"
11350 aix_libpath=$lt_cv_aix_libpath_
11353 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11354 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"
11356 if test "$host_cpu" = ia64; then
11357 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11358 allow_undefined_flag="-z nodefs"
11359 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"
11361 # Determine the default libpath from the value encoded in an
11362 # empty executable.
11363 if test "${lt_cv_aix_libpath+set}" = set; then
11364 aix_libpath=$lt_cv_aix_libpath
11366 if ${lt_cv_aix_libpath_+:} false; then :
11367 $as_echo_n "(cached) " >&6
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11380 if ac_fn_c_try_link "$LINENO"; then :
11382 lt_aix_libpath_sed='
11383 /Import File Strings/,/^$/ {
11385 s/^0 *\([^ ]*\) *$/\1/
11389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11390 # Check for a 64-bit object if we didn't find anything.
11391 if test -z "$lt_cv_aix_libpath_"; then
11392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 if test -z "$lt_cv_aix_libpath_"; then
11398 lt_cv_aix_libpath_="/usr/lib:/lib"
11403 aix_libpath=$lt_cv_aix_libpath_
11406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11407 # Warning - without using the other run time loading flags,
11408 # -berok will link without error, but may produce a broken library.
11409 no_undefined_flag=' ${wl}-bernotok'
11410 allow_undefined_flag=' ${wl}-berok'
11411 if test "$with_gnu_ld" = yes; then
11412 # We only use this code for GNU lds that support --whole-archive.
11413 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11415 # Exported symbols can be pulled into shared objects from archives
11416 whole_archive_flag_spec='$convenience'
11418 archive_cmds_need_lc=yes
11419 # This is similar to how AIX traditionally builds its shared libraries.
11420 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'
11428 # see comment about AmigaOS4 .so support
11429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11430 archive_expsym_cmds=''
11433 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)'
11434 hardcode_libdir_flag_spec='-L$libdir'
11435 hardcode_minus_L=yes
11441 export_dynamic_flag_spec=-rdynamic
11444 cygwin* | mingw* | pw32* | cegcc*)
11445 # When not using gcc, we currently assume that we are using
11446 # Microsoft Visual C++.
11447 # hardcode_libdir_flag_spec is actually meaningless, as there is
11448 # no search path for DLLs.
11449 case $cc_basename in
11452 hardcode_libdir_flag_spec=' '
11453 allow_undefined_flag=unsupported
11454 always_export_symbols=yes
11456 # Tell ltmain to make .lib files, not .a files.
11458 # Tell ltmain to make .dll files, not .so files.
11460 # FIXME: Setting linknames here is a bad hack.
11461 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11462 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11463 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11465 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11467 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11469 # The linker will not automatically build a static lib if we build a DLL.
11470 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11471 enable_shared_with_static_runtimes=yes
11472 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11473 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11475 old_postinstall_cmds='chmod 644 $oldlib'
11476 postlink_cmds='lt_outputfile="@OUTPUT@"~
11477 lt_tool_outputfile="@TOOL_OUTPUT@"~
11478 case $lt_outputfile in
11481 lt_outputfile="$lt_outputfile.exe"
11482 lt_tool_outputfile="$lt_tool_outputfile.exe"
11485 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11486 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11487 $RM "$lt_outputfile.manifest";
11491 # Assume MSVC wrapper
11492 hardcode_libdir_flag_spec=' '
11493 allow_undefined_flag=unsupported
11494 # Tell ltmain to make .lib files, not .a files.
11496 # Tell ltmain to make .dll files, not .so files.
11498 # FIXME: Setting linknames here is a bad hack.
11499 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11500 # The linker will automatically build a .lib file if we build a DLL.
11501 old_archive_from_new_cmds='true'
11502 # FIXME: Should let the user specify the lib program.
11503 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11504 enable_shared_with_static_runtimes=yes
11509 darwin* | rhapsody*)
11512 archive_cmds_need_lc=no
11514 hardcode_automatic=yes
11515 hardcode_shlibpath_var=unsupported
11516 if test "$lt_cv_ld_force_load" = "yes"; then
11517 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\"`'
11520 whole_archive_flag_spec=''
11522 link_all_deplibs=yes
11523 allow_undefined_flag="$_lt_dar_allow_undefined"
11524 case $cc_basename in
11525 ifort*) _lt_dar_can_shared=yes ;;
11526 *) _lt_dar_can_shared=$GCC ;;
11528 if test "$_lt_dar_can_shared" = "yes"; then
11529 output_verbose_link_cmd=func_echo_all
11530 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11531 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11532 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}"
11533 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}"
11542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11543 hardcode_libdir_flag_spec='-L$libdir'
11544 hardcode_shlibpath_var=no
11547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11548 # support. Future versions do this automatically, but an explicit c++rt0.o
11549 # does not break anything, and helps significantly (at the cost of a little
11552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_direct=yes
11555 hardcode_shlibpath_var=no
11558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11561 hardcode_direct=yes
11562 hardcode_minus_L=yes
11563 hardcode_shlibpath_var=no
11566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11567 freebsd* | dragonfly*)
11568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11569 hardcode_libdir_flag_spec='-R$libdir'
11570 hardcode_direct=yes
11571 hardcode_shlibpath_var=no
11575 if test "$GCC" = yes; then
11576 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'
11578 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'
11580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11581 hardcode_libdir_separator=:
11582 hardcode_direct=yes
11584 # hardcode_minus_L: Not really in the search PATH,
11585 # but as the default location of the library.
11586 hardcode_minus_L=yes
11587 export_dynamic_flag_spec='${wl}-E'
11591 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11592 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11596 if test "$with_gnu_ld" = no; then
11597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11598 hardcode_libdir_separator=:
11599 hardcode_direct=yes
11600 hardcode_direct_absolute=yes
11601 export_dynamic_flag_spec='${wl}-E'
11602 # hardcode_minus_L: Not really in the search PATH,
11603 # but as the default location of the library.
11604 hardcode_minus_L=yes
11609 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11612 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11615 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11624 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11631 # Older versions of the 11.00 compiler do not understand -b yet
11632 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11634 $as_echo_n "checking if $CC understands -b... " >&6; }
11635 if ${lt_cv_prog_compiler__b+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 lt_cv_prog_compiler__b=no
11639 save_LDFLAGS="$LDFLAGS"
11640 LDFLAGS="$LDFLAGS -b"
11641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11643 # The linker can only warn and ignore the option if not recognized
11644 # So say no if there are warnings
11645 if test -s conftest.err; then
11646 # Append any errors to the config.log.
11647 cat conftest.err 1>&5
11648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11650 if diff conftest.exp conftest.er2 >/dev/null; then
11651 lt_cv_prog_compiler__b=yes
11654 lt_cv_prog_compiler__b=yes
11658 LDFLAGS="$save_LDFLAGS"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11662 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11664 if test x"$lt_cv_prog_compiler__b" = xyes; then
11665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11673 if test "$with_gnu_ld" = no; then
11674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11675 hardcode_libdir_separator=:
11680 hardcode_shlibpath_var=no
11683 hardcode_direct=yes
11684 hardcode_direct_absolute=yes
11685 export_dynamic_flag_spec='${wl}-E'
11687 # hardcode_minus_L: Not really in the search PATH,
11688 # but as the default location of the library.
11689 hardcode_minus_L=yes
11695 irix5* | irix6* | nonstopux*)
11696 if test "$GCC" = yes; then
11697 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'
11698 # Try to use the -exported_symbol ld option, if it does not
11699 # work, assume that -exports_file does not work either and
11700 # implicitly export all symbols.
11701 # This should be the same for all languages, so no per-tag cache variable.
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11703 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11704 if ${lt_cv_irix_exported_symbol+:} false; then :
11705 $as_echo_n "(cached) " >&6
11707 save_LDFLAGS="$LDFLAGS"
11708 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 int foo (void) { return 0; }
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 lt_cv_irix_exported_symbol=yes
11716 lt_cv_irix_exported_symbol=no
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LDFLAGS="$save_LDFLAGS"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11723 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11724 if test "$lt_cv_irix_exported_symbol" = yes; then
11725 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'
11728 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'
11729 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'
11731 archive_cmds_need_lc='no'
11732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11733 hardcode_libdir_separator=:
11735 link_all_deplibs=yes
11739 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11742 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11744 hardcode_libdir_flag_spec='-R$libdir'
11745 hardcode_direct=yes
11746 hardcode_shlibpath_var=no
11750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11751 hardcode_direct=yes
11752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11753 hardcode_libdir_separator=:
11754 hardcode_shlibpath_var=no
11761 if test -f /usr/libexec/ld.so; then
11762 hardcode_direct=yes
11763 hardcode_shlibpath_var=no
11764 hardcode_direct_absolute=yes
11765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11769 export_dynamic_flag_spec='${wl}-E'
11772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11774 hardcode_libdir_flag_spec='-R$libdir'
11777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11788 hardcode_libdir_flag_spec='-L$libdir'
11789 hardcode_minus_L=yes
11790 allow_undefined_flag=unsupported
11791 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'
11792 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11796 if test "$GCC" = yes; then
11797 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11798 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'
11800 allow_undefined_flag=' -expect_unresolved \*'
11801 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'
11803 archive_cmds_need_lc='no'
11804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11805 hardcode_libdir_separator=:
11808 osf4* | osf5*) # as osf3* with the addition of -msym flag
11809 if test "$GCC" = yes; then
11810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11811 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'
11812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11814 allow_undefined_flag=' -expect_unresolved \*'
11815 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'
11816 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~
11817 $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'
11819 # Both c and cxx compiler support -rpath directly
11820 hardcode_libdir_flag_spec='-rpath $libdir'
11822 archive_cmds_need_lc='no'
11823 hardcode_libdir_separator=:
11827 no_undefined_flag=' -z defs'
11828 if test "$GCC" = yes; then
11830 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11832 $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'
11834 case `$CC -V 2>&1` in
11837 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11843 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11845 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11849 hardcode_libdir_flag_spec='-R$libdir'
11850 hardcode_shlibpath_var=no
11852 solaris2.[0-5] | solaris2.[0-5].*) ;;
11854 # The compiler driver will combine and reorder linker options,
11855 # but understands `-z linker_flag'. GCC discards it without `$wl',
11856 # but is careful enough not to reorder.
11857 # Supported since Solaris 2.6 (maybe 2.5.1?)
11858 if test "$GCC" = yes; then
11859 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11865 link_all_deplibs=yes
11869 if test "x$host_vendor" = xsequent; then
11870 # Use $CC to link under sequent, because it throws in some extra .o
11871 # files that make .init and .fini sections work.
11872 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11874 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11876 hardcode_libdir_flag_spec='-L$libdir'
11877 hardcode_direct=yes
11878 hardcode_minus_L=yes
11879 hardcode_shlibpath_var=no
11883 case $host_vendor in
11885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886 hardcode_direct=yes # is this really true???
11889 ## LD is ld it makes a PLAMLIB
11890 ## CC just makes a GrossModule.
11891 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11892 reload_cmds='$CC -r -o $output$reload_objs'
11896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11900 runpath_var='LD_RUN_PATH'
11901 hardcode_shlibpath_var=no
11905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906 hardcode_shlibpath_var=no
11907 export_dynamic_flag_spec='-Bexport'
11911 if test -d /usr/nec; then
11912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913 hardcode_shlibpath_var=no
11914 runpath_var=LD_RUN_PATH
11915 hardcode_runpath_var=yes
11920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11921 no_undefined_flag='${wl}-z,text'
11922 archive_cmds_need_lc=no
11923 hardcode_shlibpath_var=no
11924 runpath_var='LD_RUN_PATH'
11926 if test "$GCC" = yes; then
11927 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 sysv5* | sco3.2v5* | sco5v6*)
11936 # Note: We can NOT use -z defs as we might desire, because we do not
11937 # link with -lc, and that would cause any symbols used from libc to
11938 # always be unresolved, which means just about no library would
11939 # ever link correctly. If we're not using GNU ld we use -z text
11940 # though, which does catch some bad symbols but isn't as heavy-handed
11942 no_undefined_flag='${wl}-z,text'
11943 allow_undefined_flag='${wl}-z,nodefs'
11944 archive_cmds_need_lc=no
11945 hardcode_shlibpath_var=no
11946 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11947 hardcode_libdir_separator=':'
11948 link_all_deplibs=yes
11949 export_dynamic_flag_spec='${wl}-Bexport'
11950 runpath_var='LD_RUN_PATH'
11952 if test "$GCC" = yes; then
11953 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11957 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11963 hardcode_libdir_flag_spec='-L$libdir'
11964 hardcode_shlibpath_var=no
11972 if test x$host_vendor = xsni; then
11974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11975 export_dynamic_flag_spec='${wl}-Blargedynsym'
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11982 $as_echo "$ld_shlibs" >&6; }
11983 test "$ld_shlibs" = no && can_build_shared=no
11985 with_gnu_ld=$with_gnu_ld
12002 # Do we need to explicitly link libc?
12004 case "x$archive_cmds_need_lc" in
12006 # Assume -lc should be added
12007 archive_cmds_need_lc=yes
12009 if test "$enable_shared" = yes && test "$GCC" = yes; then
12010 case $archive_cmds in
12012 # FIXME: we may have to deal with multi-command sequences.
12015 # Test whether the compiler implicitly links with -lc since on some
12016 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12017 # to ld, don't add -lc before -lgcc.
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12019 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12020 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12021 $as_echo_n "(cached) " >&6
12024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12027 (eval $ac_compile) 2>&5
12029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030 test $ac_status = 0; } 2>conftest.err; then
12033 libobjs=conftest.$ac_objext
12035 wl=$lt_prog_compiler_wl
12036 pic_flag=$lt_prog_compiler_pic
12042 lt_save_allow_undefined_flag=$allow_undefined_flag
12043 allow_undefined_flag=
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12045 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; }
12050 lt_cv_archive_cmds_need_lc=no
12052 lt_cv_archive_cmds_need_lc=yes
12054 allow_undefined_flag=$lt_save_allow_undefined_flag
12056 cat conftest.err 1>&5
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12062 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12063 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12222 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12224 if test "$GCC" = yes; then
12226 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12227 *) lt_awk_arg="/^libraries:/" ;;
12230 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12231 *) lt_sed_strip_eq="s,=/,/,g" ;;
12233 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12234 case $lt_search_path_spec in
12236 # if the path contains ";" then we assume it to be the separator
12237 # otherwise default to the standard path separator (i.e. ":") - it is
12238 # assumed that no part of a normal pathname contains ";" but that should
12239 # okay in the real world where ";" in dirpaths is itself problematic.
12240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12246 # Ok, now we have the path, separated by spaces, we can step through it
12247 # and add multilib dir if necessary.
12248 lt_tmp_lt_search_path_spec=
12249 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12250 for lt_sys_path in $lt_search_path_spec; do
12251 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12252 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12254 test -d "$lt_sys_path" && \
12255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12258 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12259 BEGIN {RS=" "; FS="/|\n";} {
12262 for (lt_i = NF; lt_i > 0; lt_i--) {
12263 if ($lt_i != "" && $lt_i != ".") {
12264 if ($lt_i == "..") {
12267 if (lt_count == 0) {
12268 lt_foo="/" $lt_i lt_foo;
12275 if (lt_foo != "") { lt_freq[lt_foo]++; }
12276 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12278 # AWK program above erroneously prepends '/' to C:/dos/paths
12281 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12282 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12284 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12288 library_names_spec=
12289 libname_spec='lib$name'
12293 postuninstall_cmds=
12297 shlibpath_overrides_runpath=unknown
12299 dynamic_linker="$host_os ld.so"
12300 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12301 need_lib_prefix=unknown
12302 hardcode_into_libs=no
12304 # when you set need_version to no, make sure it does not cause -set_version
12305 # flags to be left without arguments
12306 need_version=unknown
12310 version_type=linux # correct to gnu/linux during the next big refactor
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12312 shlibpath_var=LIBPATH
12314 # AIX 3 has no versioning support, so we append a major version to the name.
12315 soname_spec='${libname}${release}${shared_ext}$major'
12319 version_type=linux # correct to gnu/linux during the next big refactor
12322 hardcode_into_libs=yes
12323 if test "$host_cpu" = ia64; then
12324 # AIX 5 supports IA64
12325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12326 shlibpath_var=LD_LIBRARY_PATH
12328 # With GCC up to 2.95.x, collect2 would create an import file
12329 # for dependence libraries. The import file would start with
12330 # the line `#! .'. This would cause the generated library to
12331 # depend on `.', always an invalid library. This was fixed in
12332 # development snapshots of GCC prior to 3.0.
12334 aix4 | aix4.[01] | aix4.[01].*)
12335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12337 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12340 can_build_shared=no
12344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12345 # soname into executable. Probably we can add versioning support to
12346 # collect2, so additional links can be useful in future.
12347 if test "$aix_use_runtimelinking" = yes; then
12348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12349 # instead of lib<name>.a to let people know that these are not
12350 # typical AIX shared libraries.
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 # We preserve .a as extension for shared libraries through AIX4.2
12354 # and later when we are not doing run time linking.
12355 library_names_spec='${libname}${release}.a $libname.a'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12358 shlibpath_var=LIBPATH
12365 # Since July 2007 AmigaOS4 officially supports .so libraries.
12366 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12370 library_names_spec='$libname.ixlibrary $libname.a'
12371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12372 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'
12378 library_names_spec='${libname}${shared_ext}'
12379 dynamic_linker="$host_os ld.so"
12380 shlibpath_var=LIBRARY_PATH
12384 version_type=linux # correct to gnu/linux during the next big refactor
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387 soname_spec='${libname}${release}${shared_ext}$major'
12388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12392 # the default ld.so.conf also contains /usr/contrib/lib and
12393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12394 # libtool to hard-code these into programs
12397 cygwin* | mingw* | pw32* | cegcc*)
12398 version_type=windows
12403 case $GCC,$cc_basename in
12406 library_names_spec='$libname.dll.a'
12407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12408 postinstall_cmds='base_file=`basename \${file}`~
12409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12410 dldir=$destdir/`dirname \$dlpath`~
12411 test -d \$dldir || mkdir -p \$dldir~
12412 $install_prog $dir/$dlname \$dldir/$dlname~
12413 chmod a+x \$dldir/$dlname~
12414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12418 dlpath=$dir/\$dldll~
12420 shlibpath_overrides_runpath=yes
12424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12427 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12430 # MinGW DLLs use traditional 'lib' prefix
12431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434 # pw32 DLLs use 'pw' prefix rather than 'lib'
12435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12438 dynamic_linker='Win32 ld.exe'
12443 libname_spec='$name'
12444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12445 library_names_spec='${libname}.dll.lib'
12449 sys_lib_search_path_spec=
12452 for lt_path in $LIB
12455 # Let DOS variable expansion print the short 8.3 style file name.
12456 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12457 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12460 # Convert to MSYS style.
12461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12464 # Convert to unix form, then to dos form, then back to unix form
12465 # but this time dos style (no spaces!) so that the unix form looks
12466 # like /cygdrive/c/PROGRA~1:/cygdr...
12467 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12468 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12469 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12472 sys_lib_search_path_spec="$LIB"
12473 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12474 # It is most probably a Windows format PATH.
12475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12479 # FIXME: find the short name or the path components, as spaces are
12480 # common. (e.g. "Program Files" -> "PROGRA~1")
12484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12485 postinstall_cmds='base_file=`basename \${file}`~
12486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12487 dldir=$destdir/`dirname \$dlpath`~
12488 test -d \$dldir || mkdir -p \$dldir~
12489 $install_prog $dir/$dlname \$dldir/$dlname'
12490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12491 dlpath=$dir/\$dldll~
12493 shlibpath_overrides_runpath=yes
12494 dynamic_linker='Win32 link.exe'
12498 # Assume MSVC wrapper
12499 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12500 dynamic_linker='Win32 ld.exe'
12503 # FIXME: first we should search . and the directory the executable is in
12507 darwin* | rhapsody*)
12508 dynamic_linker="$host_os dyld"
12509 version_type=darwin
12512 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12513 soname_spec='${libname}${release}${major}$shared_ext'
12514 shlibpath_overrides_runpath=yes
12515 shlibpath_var=DYLD_LIBRARY_PATH
12516 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12518 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12523 version_type=linux # correct to gnu/linux during the next big refactor
12526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12527 soname_spec='${libname}${release}${shared_ext}$major'
12528 shlibpath_var=LD_LIBRARY_PATH
12531 freebsd* | dragonfly*)
12532 # DragonFly does not have aout. When/if they implement a new
12533 # versioning mechanism, adjust this.
12534 if test -x /usr/bin/objformat; then
12535 objformat=`/usr/bin/objformat`
12538 freebsd[23].*) objformat=aout ;;
12539 *) objformat=elf ;;
12542 version_type=freebsd-$objformat
12543 case $version_type in
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12554 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12559 freebsd3.[01]* | freebsdelf3.[01]*)
12560 shlibpath_overrides_runpath=yes
12561 hardcode_into_libs=yes
12563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12565 shlibpath_overrides_runpath=no
12566 hardcode_into_libs=yes
12568 *) # from 4.6 on, and DragonFly
12569 shlibpath_overrides_runpath=yes
12570 hardcode_into_libs=yes
12576 version_type=linux # correct to gnu/linux during the next big refactor
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 shlibpath_var=LD_LIBRARY_PATH
12582 shlibpath_overrides_runpath=no
12583 hardcode_into_libs=yes
12587 version_type=linux # correct to gnu/linux during the next big refactor
12590 dynamic_linker="$host_os runtime_loader"
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12592 soname_spec='${libname}${release}${shared_ext}$major'
12593 shlibpath_var=LIBRARY_PATH
12594 shlibpath_overrides_runpath=yes
12595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12596 hardcode_into_libs=yes
12599 hpux9* | hpux10* | hpux11*)
12600 # Give a soname corresponding to the major version so that dld.sl refuses to
12601 # link against other versions.
12608 hardcode_into_libs=yes
12609 dynamic_linker="$host_os dld.so"
12610 shlibpath_var=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12613 soname_spec='${libname}${release}${shared_ext}$major'
12614 if test "X$HPUX_IA64_MODE" = X32; then
12615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12623 hardcode_into_libs=yes
12624 dynamic_linker="$host_os dld.sl"
12625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12628 soname_spec='${libname}${release}${shared_ext}$major'
12629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12634 dynamic_linker="$host_os dld.sl"
12635 shlibpath_var=SHLIB_PATH
12636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12641 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12642 postinstall_cmds='chmod 555 $lib'
12643 # or fails outright, so override atomically:
12644 install_override_mode=555
12648 version_type=linux # correct to gnu/linux during the next big refactor
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 shlibpath_overrides_runpath=no
12656 hardcode_into_libs=yes
12659 irix5* | irix6* | nonstopux*)
12661 nonstopux*) version_type=nonstopux ;;
12663 if test "$lt_cv_prog_gnu_ld" = yes; then
12664 version_type=linux # correct to gnu/linux during the next big refactor
12671 soname_spec='${libname}${release}${shared_ext}$major'
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12674 irix5* | nonstopux*)
12675 libsuff= shlibsuff=
12678 case $LD in # libtool.m4 will add one of these switches to LD
12679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12680 libsuff= shlibsuff= libmagic=32-bit;;
12681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12682 libsuff=32 shlibsuff=N32 libmagic=N32;;
12683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12685 *) libsuff= shlibsuff= libmagic=never-match;;
12689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12690 shlibpath_overrides_runpath=no
12691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12693 hardcode_into_libs=yes
12696 # No shared lib support for Linux oldld, aout, or coff.
12697 linux*oldld* | linux*aout* | linux*coff*)
12701 # This must be glibc/ELF.
12702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12703 version_type=linux # correct to gnu/linux during the next big refactor
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12707 soname_spec='${libname}${release}${shared_ext}$major'
12708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12709 shlibpath_var=LD_LIBRARY_PATH
12710 shlibpath_overrides_runpath=no
12712 # Some binutils ld are patched to set DT_RUNPATH
12713 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12714 $as_echo_n "(cached) " >&6
12716 lt_cv_shlibpath_overrides_runpath=no
12717 save_LDFLAGS=$LDFLAGS
12718 save_libdir=$libdir
12719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12734 lt_cv_shlibpath_overrides_runpath=yes
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LDFLAGS=$save_LDFLAGS
12740 libdir=$save_libdir
12744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12746 # This implies no fast_install, which is unacceptable.
12747 # Some rework will be needed to allow for fast_install
12748 # before this can be enabled.
12749 hardcode_into_libs=yes
12751 # Add ABI-specific directories to the system library path.
12752 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12754 # Append ld.so.conf contents to the search path
12755 if test -f /etc/ld.so.conf; then
12756 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' ' '`
12757 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12761 # We used to test for /lib/ld.so.1 and disable shared libraries on
12762 # powerpc, because MkLinux only supported shared libraries with the
12763 # GNU dynamic linker. Since this was broken with cross compilers,
12764 # most powerpc-linux boxes support dynamic linking these days and
12765 # people can always --disable-shared, the test was removed, and we
12766 # assume the GNU/Linux dynamic linker is in use.
12767 dynamic_linker='GNU/Linux ld.so'
12774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12777 dynamic_linker='NetBSD (a.out) ld.so'
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12781 dynamic_linker='NetBSD ld.elf_so'
12783 shlibpath_var=LD_LIBRARY_PATH
12784 shlibpath_overrides_runpath=yes
12785 hardcode_into_libs=yes
12789 version_type=linux # correct to gnu/linux during the next big refactor
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791 shlibpath_var=LD_LIBRARY_PATH
12792 shlibpath_overrides_runpath=yes
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 shlibpath_overrides_runpath=no
12803 hardcode_into_libs=yes
12804 dynamic_linker='ldqnx.so'
12809 sys_lib_dlsearch_path_spec="/usr/lib"
12811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12814 *) need_version=no ;;
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12818 shlibpath_var=LD_LIBRARY_PATH
12819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12821 openbsd2.[89] | openbsd2.[89].*)
12822 shlibpath_overrides_runpath=no
12825 shlibpath_overrides_runpath=yes
12829 shlibpath_overrides_runpath=yes
12834 libname_spec='$name'
12837 library_names_spec='$libname${shared_ext} $libname.a'
12838 dynamic_linker='OS/2 ld.exe'
12839 shlibpath_var=LIBPATH
12842 osf3* | osf4* | osf5*)
12846 soname_spec='${libname}${release}${shared_ext}$major'
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848 shlibpath_var=LD_LIBRARY_PATH
12849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12858 version_type=linux # correct to gnu/linux during the next big refactor
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12866 # ldd complains unless libraries are executable
12867 postinstall_cmds='chmod +x $lib'
12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes
12876 if test "$with_gnu_ld" = yes; then
12883 version_type=linux # correct to gnu/linux during the next big refactor
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 case $host_vendor in
12889 shlibpath_overrides_runpath=no
12891 runpath_var=LD_RUN_PATH
12899 shlibpath_overrides_runpath=no
12900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12906 if test -d /usr/nec ;then
12907 version_type=linux # correct to gnu/linux during the next big refactor
12908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12909 soname_spec='$libname${shared_ext}.$major'
12910 shlibpath_var=LD_LIBRARY_PATH
12914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12915 version_type=freebsd-elf
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=yes
12922 hardcode_into_libs=yes
12923 if test "$with_gnu_ld" = yes; then
12924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12933 sys_lib_dlsearch_path_spec='/usr/lib'
12937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12938 version_type=linux # correct to gnu/linux during the next big refactor
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942 shlibpath_var=LD_LIBRARY_PATH
12943 shlibpath_overrides_runpath=no
12944 hardcode_into_libs=yes
12948 version_type=linux # correct to gnu/linux during the next big refactor
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LD_LIBRARY_PATH
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12959 $as_echo "$dynamic_linker" >&6; }
12960 test "$dynamic_linker" = no && can_build_shared=no
12962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963 if test "$GCC" = yes; then
12964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13068 if test -n "$hardcode_libdir_flag_spec" ||
13069 test -n "$runpath_var" ||
13070 test "X$hardcode_automatic" = "Xyes" ; then
13072 # We can hardcode non-existent directories.
13073 if test "$hardcode_direct" != no &&
13074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13075 # have to relink, otherwise we might link with an installed library
13076 # when we should be linking with a yet-to-be-installed one
13077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13078 test "$hardcode_minus_L" != no; then
13079 # Linking always hardcodes the temporary library directory.
13080 hardcode_action=relink
13082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13083 hardcode_action=immediate
13086 # We cannot hardcode anything, or else we can only hardcode existing
13088 hardcode_action=unsupported
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13091 $as_echo "$hardcode_action" >&6; }
13093 if test "$hardcode_action" = relink ||
13094 test "$inherit_rpath" = yes; then
13095 # Fast installation is not supported
13096 enable_fast_install=no
13097 elif test "$shlibpath_overrides_runpath" = yes ||
13098 test "$enable_shared" = no; then
13099 # Fast installation is not necessary
13100 enable_fast_install=needless
13108 if test "x$enable_dlopen" != xyes; then
13109 enable_dlopen=unknown
13110 enable_dlopen_self=unknown
13111 enable_dlopen_self_static=unknown
13118 lt_cv_dlopen="load_add_on"
13120 lt_cv_dlopen_self=yes
13123 mingw* | pw32* | cegcc*)
13124 lt_cv_dlopen="LoadLibrary"
13129 lt_cv_dlopen="dlopen"
13134 # if libdl is installed we need to link against it
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13137 if ${ac_cv_lib_dl_dlopen+:} false; then :
13138 $as_echo_n "(cached) " >&6
13140 ac_check_lib_save_LIBS=$LIBS
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13160 if ac_fn_c_try_link "$LINENO"; then :
13161 ac_cv_lib_dl_dlopen=yes
13163 ac_cv_lib_dl_dlopen=no
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13175 lt_cv_dlopen="dyld"
13177 lt_cv_dlopen_self=yes
13184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13185 if test "x$ac_cv_func_shl_load" = xyes; then :
13186 lt_cv_dlopen="shl_load"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13189 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13190 if ${ac_cv_lib_dld_shl_load+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 ac_check_lib_save_LIBS=$LIBS
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13208 return shl_load ();
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_lib_dld_shl_load=yes
13216 ac_cv_lib_dld_shl_load=no
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13223 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13224 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13228 if test "x$ac_cv_func_dlopen" = xyes; then :
13229 lt_cv_dlopen="dlopen"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13233 if ${ac_cv_lib_dl_dlopen+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 ac_check_lib_save_LIBS=$LIBS
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13241 /* Override any GCC internal prototype to avoid an error.
13242 Use char because int might match the return type of a GCC
13243 builtin and then its argument prototype would still apply. */
13256 if ac_fn_c_try_link "$LINENO"; then :
13257 ac_cv_lib_dl_dlopen=yes
13259 ac_cv_lib_dl_dlopen=no
13261 rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13272 if ${ac_cv_lib_svld_dlopen+:} false; then :
13273 $as_echo_n "(cached) " >&6
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-lsvld $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_svld_dlopen=yes
13298 ac_cv_lib_svld_dlopen=no
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13310 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13311 if ${ac_cv_lib_dld_dld_link+:} false; then :
13312 $as_echo_n "(cached) " >&6
13314 ac_check_lib_save_LIBS=$LIBS
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13319 /* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13329 return dld_link ();
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 ac_cv_lib_dld_dld_link=yes
13337 ac_cv_lib_dld_dld_link=no
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 LIBS=$ac_check_lib_save_LIBS
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13345 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13367 if test "x$lt_cv_dlopen" != xno; then
13373 case $lt_cv_dlopen in
13375 save_CPPFLAGS="$CPPFLAGS"
13376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13378 save_LDFLAGS="$LDFLAGS"
13379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13382 LIBS="$lt_cv_dlopen_libs $LIBS"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13386 if ${lt_cv_dlopen_self+:} false; then :
13387 $as_echo_n "(cached) " >&6
13389 if test "$cross_compiling" = yes; then :
13390 lt_cv_dlopen_self=cross
13392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13393 lt_status=$lt_dlunknown
13394 cat > conftest.$ac_ext <<_LT_EOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13405 # define LT_DLGLOBAL RTLD_GLOBAL
13408 # define LT_DLGLOBAL DL_GLOBAL
13410 # define LT_DLGLOBAL 0
13414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13415 find out it does not work in some platform. */
13416 #ifndef LT_DLLAZY_OR_NOW
13418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13421 # define LT_DLLAZY_OR_NOW DL_LAZY
13424 # define LT_DLLAZY_OR_NOW RTLD_NOW
13427 # define LT_DLLAZY_OR_NOW DL_NOW
13429 # define LT_DLLAZY_OR_NOW 0
13436 /* When -fvisbility=hidden is used, assume the code has been annotated
13437 correspondingly for the symbols needed. */
13438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13439 int fnord () __attribute__((visibility("default")));
13442 int fnord () { return 42; }
13445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13446 int status = $lt_dlunknown;
13450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13454 else puts (dlerror ());
13456 /* dlclose (self); */
13464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13465 (eval $ac_link) 2>&5
13467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13469 (./conftest; exit; ) >&5 2>/dev/null
13471 case x$lt_status in
13472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13477 # compilation failed
13478 lt_cv_dlopen_self=no
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13486 $as_echo "$lt_cv_dlopen_self" >&6; }
13488 if test "x$lt_cv_dlopen_self" = xyes; then
13489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13492 if ${lt_cv_dlopen_self_static+:} false; then :
13493 $as_echo_n "(cached) " >&6
13495 if test "$cross_compiling" = yes; then :
13496 lt_cv_dlopen_self_static=cross
13498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13499 lt_status=$lt_dlunknown
13500 cat > conftest.$ac_ext <<_LT_EOF
13501 #line $LINENO "configure"
13502 #include "confdefs.h"
13511 # define LT_DLGLOBAL RTLD_GLOBAL
13514 # define LT_DLGLOBAL DL_GLOBAL
13516 # define LT_DLGLOBAL 0
13520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13521 find out it does not work in some platform. */
13522 #ifndef LT_DLLAZY_OR_NOW
13524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13527 # define LT_DLLAZY_OR_NOW DL_LAZY
13530 # define LT_DLLAZY_OR_NOW RTLD_NOW
13533 # define LT_DLLAZY_OR_NOW DL_NOW
13535 # define LT_DLLAZY_OR_NOW 0
13542 /* When -fvisbility=hidden is used, assume the code has been annotated
13543 correspondingly for the symbols needed. */
13544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13545 int fnord () __attribute__((visibility("default")));
13548 int fnord () { return 42; }
13551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13552 int status = $lt_dlunknown;
13556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13560 else puts (dlerror ());
13562 /* dlclose (self); */
13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13571 (eval $ac_link) 2>&5
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13575 (./conftest; exit; ) >&5 2>/dev/null
13577 case x$lt_status in
13578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13583 # compilation failed
13584 lt_cv_dlopen_self_static=no
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13595 CPPFLAGS="$save_CPPFLAGS"
13596 LDFLAGS="$save_LDFLAGS"
13601 case $lt_cv_dlopen_self in
13602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13603 *) enable_dlopen_self=unknown ;;
13606 case $lt_cv_dlopen_self_static in
13607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13608 *) enable_dlopen_self_static=unknown ;;
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13638 # FIXME - insert some real tests, host_os isn't really good enough
13641 if test -n "$STRIP" ; then
13642 striplib="$STRIP -x"
13643 old_striplib="$STRIP -S"
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 $as_echo "yes" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13669 # Report which library types will actually be built
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13673 $as_echo "$can_build_shared" >&6; }
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13676 $as_echo_n "checking whether to build shared libraries... " >&6; }
13677 test "$can_build_shared" = "no" && enable_shared=no
13679 # On AIX, shared libraries and static libraries use the same namespace, and
13680 # are all built from PIC.
13683 test "$enable_shared" = yes && enable_static=no
13684 if test -n "$RANLIB"; then
13685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13686 postinstall_cmds='$RANLIB $lib'
13691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13692 test "$enable_shared" = yes && enable_static=no
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13697 $as_echo "$enable_shared" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13700 $as_echo_n "checking whether to build static libraries... " >&6; }
13701 # Make sure either enable_shared or enable_static is yes.
13702 test "$enable_shared" = yes || enable_static=yes
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13704 $as_echo "$enable_static" >&6; }
13711 ac_cpp='$CPP $CPPFLAGS'
13712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732 ac_config_commands="$ac_config_commands libtool"
13737 # Only expand once:
13742 # Checks for header files.
13743 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
13745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13749 cat >>confdefs.h <<_ACEOF
13750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13759 # Using own tests for int64* because autoconf builtin only give 32bit.
13760 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13761 if test "x$ac_cv_type_int8_t" = xyes; then :
13765 cat >>confdefs.h <<_ACEOF
13766 #define int8_t signed char
13771 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13772 if test "x$ac_cv_type_int16_t" = xyes; then :
13776 cat >>confdefs.h <<_ACEOF
13777 #define int16_t short
13782 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13783 if test "x$ac_cv_type_int32_t" = xyes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define int32_t int
13793 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13794 if test "x$ac_cv_type_int64_t" = xyes; then :
13798 cat >>confdefs.h <<_ACEOF
13799 #define int64_t long long
13804 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13805 if test "x$ac_cv_type_uint8_t" = xyes; then :
13809 cat >>confdefs.h <<_ACEOF
13810 #define uint8_t unsigned char
13815 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13816 if test "x$ac_cv_type_uint16_t" = xyes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define uint16_t unsigned short
13826 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13827 if test "x$ac_cv_type_uint32_t" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define uint32_t unsigned int
13837 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13838 if test "x$ac_cv_type_uint64_t" = xyes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define uint64_t unsigned long long
13848 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13849 if test "x$ac_cv_type_size_t" = xyes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define size_t unsigned int
13859 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13860 if test "x$ac_cv_type_ssize_t" = xyes; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define ssize_t int
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13871 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13872 if ${ac_cv_type_uid_t+:} false; then :
13873 $as_echo_n "(cached) " >&6
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <sys/types.h>
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "uid_t" >/dev/null 2>&1; then :
13882 ac_cv_type_uid_t=yes
13884 ac_cv_type_uid_t=no
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13890 $as_echo "$ac_cv_type_uid_t" >&6; }
13891 if test $ac_cv_type_uid_t = no; then
13893 $as_echo "#define uid_t int" >>confdefs.h
13896 $as_echo "#define gid_t int" >>confdefs.h
13900 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13901 if test "x$ac_cv_type_pid_t" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13911 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13912 if test "x$ac_cv_type_off_t" = xyes; then :
13916 cat >>confdefs.h <<_ACEOF
13917 #define off_t long int
13922 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13923 $ac_includes_default
13924 #ifdef HAVE_WINSOCK2_H
13925 # include <winsock2.h>
13929 if test "x$ac_cv_type_u_char" = xyes; then :
13933 $as_echo "#define u_char unsigned char" >>confdefs.h
13937 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13938 $ac_includes_default
13939 #ifdef HAVE_SYS_RESOURCE_H
13940 # include <sys/resource.h>
13944 if test "x$ac_cv_type_rlim_t" = xyes; then :
13948 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13953 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13954 $ac_includes_default
13955 #ifdef HAVE_SYS_SOCKET_H
13956 # include <sys/socket.h>
13958 #ifdef HAVE_WS2TCPIP_H
13959 # include <ws2tcpip.h>
13963 if test "x$ac_cv_type_socklen_t" = xyes; then :
13967 $as_echo "#define socklen_t int" >>confdefs.h
13971 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13972 $ac_includes_default
13973 #ifdef HAVE_SYS_TYPES_H
13974 # include <sys/types.h>
13976 #ifdef HAVE_NETINET_IN_H
13977 # include <netinet/in.h>
13981 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13985 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13989 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13990 $ac_includes_default
13991 #ifdef HAVE_SYS_TYPES_H
13992 # include <sys/types.h>
13994 #ifdef HAVE_NETINET_IN_H
13995 # include <netinet/in.h>
13999 if test "x$ac_cv_type_in_port_t" = xyes; then :
14003 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14008 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14009 if test "$cross_compiling" = yes; then :
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14011 $as_echo "cross-compile no" >&6; }
14013 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14015 case " $LIBOBJS " in
14016 *" memcmp.$ac_objext "* ) ;;
14017 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14027 #include <stdlib.h>
14028 #include <string.h>
14031 char a = 255, b = 0;
14032 if(memcmp(&a, &b, 1) < 0)
14038 if ac_fn_c_try_run "$LINENO"; then :
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14040 $as_echo "yes" >&6; }
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14045 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14047 case " $LIBOBJS " in
14048 *" memcmp.$ac_objext "* ) ;;
14049 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14056 conftest.$ac_objext conftest.beam conftest.$ac_ext
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14065 $as_echo_n "checking size of time_t... " >&6; }
14066 if ${ac_cv_sizeof_time_t+:} false; then :
14067 $as_echo_n "(cached) " >&6
14069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14070 $ac_includes_default
14071 #ifdef TIME_WITH_SYS_TIME
14072 # include <sys/time.h>
14075 # ifdef HAVE_SYS_TIME_H
14076 # include <sys/time.h>
14085 if test "$ac_cv_type_time_t" = yes; then
14086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14088 as_fn_error 77 "cannot compute sizeof (time_t)
14089 See \`config.log' for more details" "$LINENO" 5; }
14091 ac_cv_sizeof_time_t=0
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14097 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14101 cat >>confdefs.h <<_ACEOF
14102 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14107 # add option to disable the evil rpath
14109 # Check whether --enable-rpath was given.
14110 if test "${enable_rpath+set}" = set; then :
14111 enableval=$enable_rpath; enable_rpath=$enableval
14116 if test "x$enable_rpath" = xno; then
14117 ac_config_commands="$ac_config_commands disable-rpath"
14123 # check to see if libraries are needed for these functions.
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14125 $as_echo_n "checking for library containing inet_pton... " >&6; }
14126 if ${ac_cv_search_inet_pton+:} false; then :
14127 $as_echo_n "(cached) " >&6
14129 ac_func_search_save_LIBS=$LIBS
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14133 /* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14143 return inet_pton ();
14148 for ac_lib in '' nsl; do
14149 if test -z "$ac_lib"; then
14150 ac_res="none required"
14153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14155 if ac_fn_c_try_link "$LINENO"; then :
14156 ac_cv_search_inet_pton=$ac_res
14158 rm -f core conftest.err conftest.$ac_objext \
14160 if ${ac_cv_search_inet_pton+:} false; then :
14164 if ${ac_cv_search_inet_pton+:} false; then :
14167 ac_cv_search_inet_pton=no
14169 rm conftest.$ac_ext
14170 LIBS=$ac_func_search_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14173 $as_echo "$ac_cv_search_inet_pton" >&6; }
14174 ac_res=$ac_cv_search_inet_pton
14175 if test "$ac_res" != no; then :
14176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14181 $as_echo_n "checking for library containing socket... " >&6; }
14182 if ${ac_cv_search_socket+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 ac_func_search_save_LIBS=$LIBS
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14189 /* Override any GCC internal prototype to avoid an error.
14190 Use char because int might match the return type of a GCC
14191 builtin and then its argument prototype would still apply. */
14204 for ac_lib in '' socket; do
14205 if test -z "$ac_lib"; then
14206 ac_res="none required"
14209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 ac_cv_search_socket=$ac_res
14214 rm -f core conftest.err conftest.$ac_objext \
14216 if ${ac_cv_search_socket+:} false; then :
14220 if ${ac_cv_search_socket+:} false; then :
14223 ac_cv_search_socket=no
14225 rm conftest.$ac_ext
14226 LIBS=$ac_func_search_save_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14229 $as_echo "$ac_cv_search_socket" >&6; }
14230 ac_res=$ac_cv_search_socket
14231 if test "$ac_res" != no; then :
14232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14237 # check wether strptime also works
14239 # check some functions of the OS before linking libs (while still runnable).
14240 for ac_header in unistd.h
14242 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_unistd_h" = xyes; then :
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_UNISTD_H 1
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14253 $as_echo_n "checking for working chown... " >&6; }
14254 if ${ac_cv_func_chown_works+:} false; then :
14255 $as_echo_n "(cached) " >&6
14257 if test "$cross_compiling" = yes; then :
14258 ac_cv_func_chown_works=no
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 $ac_includes_default
14268 char *f = "conftest.chown";
14269 struct stat before, after;
14271 if (creat (f, 0600) < 0)
14273 if (stat (f, &before) < 0)
14275 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14277 if (stat (f, &after) < 0)
14279 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14285 if ac_fn_c_try_run "$LINENO"; then :
14286 ac_cv_func_chown_works=yes
14288 ac_cv_func_chown_works=no
14290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14291 conftest.$ac_objext conftest.beam conftest.$ac_ext
14294 rm -f conftest.chown
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14298 $as_echo "$ac_cv_func_chown_works" >&6; }
14299 if test $ac_cv_func_chown_works = yes; then
14301 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14305 for ac_header in vfork.h
14307 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14308 if test "x$ac_cv_header_vfork_h" = xyes; then :
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_VFORK_H 1
14317 for ac_func in fork vfork
14319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14329 if test "x$ac_cv_func_fork" = xyes; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14331 $as_echo_n "checking for working fork... " >&6; }
14332 if ${ac_cv_func_fork_works+:} false; then :
14333 $as_echo_n "(cached) " >&6
14335 if test "$cross_compiling" = yes; then :
14336 ac_cv_func_fork_works=cross
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 $ac_includes_default
14345 /* By Ruediger Kuhlmann. */
14346 return fork () < 0;
14352 if ac_fn_c_try_run "$LINENO"; then :
14353 ac_cv_func_fork_works=yes
14355 ac_cv_func_fork_works=no
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14358 conftest.$ac_objext conftest.beam conftest.$ac_ext
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14363 $as_echo "$ac_cv_func_fork_works" >&6; }
14366 ac_cv_func_fork_works=$ac_cv_func_fork
14368 if test "x$ac_cv_func_fork_works" = xcross; then
14370 *-*-amigaos* | *-*-msdosdjgpp*)
14371 # Override, as these systems have only a dummy fork() stub
14372 ac_cv_func_fork_works=no
14375 ac_cv_func_fork_works=yes
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14379 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14381 ac_cv_func_vfork_works=$ac_cv_func_vfork
14382 if test "x$ac_cv_func_vfork" = xyes; then
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14384 $as_echo_n "checking for working vfork... " >&6; }
14385 if ${ac_cv_func_vfork_works+:} false; then :
14386 $as_echo_n "(cached) " >&6
14388 if test "$cross_compiling" = yes; then :
14389 ac_cv_func_vfork_works=cross
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 /* Thanks to Paul Eggert for this test. */
14394 $ac_includes_default
14395 #include <sys/wait.h>
14396 #ifdef HAVE_VFORK_H
14397 # include <vfork.h>
14399 /* On some sparc systems, changes by the child to local and incoming
14400 argument registers are propagated back to the parent. The compiler
14401 is told about this with #include <vfork.h>, but some compilers
14402 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14403 static variable whose address is put into a register that is
14404 clobbered by the vfork. */
14407 sparc_address_test (int arg)
14409 sparc_address_test (arg) int arg;
14412 static pid_t child;
14430 pid_t parent = getpid ();
14433 sparc_address_test (0);
14438 /* Here is another test for sparc vfork register problems. This
14439 test uses lots of local variables, at least as many local
14440 variables as main has allocated so far including compiler
14441 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14442 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14443 reuse the register of parent for one of the local variables,
14444 since it will think that parent can't possibly be used any more
14445 in this routine. Assigning to the local variable will thus
14446 munge parent in the parent process. */
14448 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14449 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14450 /* Convince the compiler that p..p7 are live; otherwise, it might
14451 use the same hardware register for all 8 local variables. */
14452 if (p != p1 || p != p2 || p != p3 || p != p4
14453 || p != p5 || p != p6 || p != p7)
14456 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14457 from child file descriptors. If the child closes a descriptor
14458 before it execs or exits, this munges the parent's descriptor
14459 as well. Test for this by closing stdout in the child. */
14460 _exit(close(fileno(stdout)) != 0);
14465 while (wait(&status) != child)
14468 /* Was there some problem with vforking? */
14471 /* Did the child fail? (This shouldn't happen.) */
14474 /* Did the vfork/compiler bug occur? */
14475 || parent != getpid()
14477 /* Did the file descriptor bug occur? */
14478 || fstat(fileno(stdout), &st) != 0
14483 if ac_fn_c_try_run "$LINENO"; then :
14484 ac_cv_func_vfork_works=yes
14486 ac_cv_func_vfork_works=no
14488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14489 conftest.$ac_objext conftest.beam conftest.$ac_ext
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14494 $as_echo "$ac_cv_func_vfork_works" >&6; }
14497 if test "x$ac_cv_func_fork_works" = xcross; then
14498 ac_cv_func_vfork_works=$ac_cv_func_vfork
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14500 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14503 if test "x$ac_cv_func_vfork_works" = xyes; then
14505 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14509 $as_echo "#define vfork fork" >>confdefs.h
14512 if test "x$ac_cv_func_fork_works" = xyes; then
14514 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14519 $as_echo_n "checking return type of signal handlers... " >&6; }
14520 if ${ac_cv_type_signal+:} false; then :
14521 $as_echo_n "(cached) " >&6
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 #include <sys/types.h>
14526 #include <signal.h>
14531 return *(signal (0, 0)) (0) == 1;
14536 if ac_fn_c_try_compile "$LINENO"; then :
14537 ac_cv_type_signal=int
14539 ac_cv_type_signal=void
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14544 $as_echo "$ac_cv_type_signal" >&6; }
14546 cat >>confdefs.h <<_ACEOF
14547 #define RETSIGTYPE $ac_cv_type_signal
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14553 if ${ac_cv_sys_largefile_source+:} false; then :
14554 $as_echo_n "(cached) " >&6
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <sys/types.h> /* for off_t */
14564 int (*fp) (FILE *, off_t, int) = fseeko;
14565 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_sys_largefile_source=no; break
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #define _LARGEFILE_SOURCE 1
14578 #include <sys/types.h> /* for off_t */
14583 int (*fp) (FILE *, off_t, int) = fseeko;
14584 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14589 if ac_fn_c_try_link "$LINENO"; then :
14590 ac_cv_sys_largefile_source=1; break
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 ac_cv_sys_largefile_source=unknown
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14600 case $ac_cv_sys_largefile_source in #(
14603 cat >>confdefs.h <<_ACEOF
14604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14611 # in glibc 2.1.3, but that breaks too many other things.
14612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14613 if test $ac_cv_sys_largefile_source != unknown; then
14615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14620 # Check whether --enable-largefile was given.
14621 if test "${enable_largefile+set}" = set; then :
14622 enableval=$enable_largefile;
14625 if test "$enable_largefile" != no; then
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14628 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14629 if ${ac_cv_sys_largefile_CC+:} false; then :
14630 $as_echo_n "(cached) " >&6
14632 ac_cv_sys_largefile_CC=no
14633 if test "$GCC" != yes; then
14636 # IRIX 6.2 and later do not support large files by default,
14637 # so use the C compiler's -n32 option if that helps.
14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h. */
14640 #include <sys/types.h>
14641 /* Check that off_t can represent 2**63 - 1 correctly.
14642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14643 since some C++ compilers masquerading as C compilers
14644 incorrectly reject 9223372036854775807. */
14645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14647 && LARGE_OFF_T % 2147483647 == 1)
14657 if ac_fn_c_try_compile "$LINENO"; then :
14660 rm -f core conftest.err conftest.$ac_objext
14662 if ac_fn_c_try_compile "$LINENO"; then :
14663 ac_cv_sys_largefile_CC=' -n32'; break
14665 rm -f core conftest.err conftest.$ac_objext
14669 rm -f conftest.$ac_ext
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14673 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14674 if test "$ac_cv_sys_largefile_CC" != no; then
14675 CC=$CC$ac_cv_sys_largefile_CC
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14679 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14680 if ${ac_cv_sys_file_offset_bits+:} false; then :
14681 $as_echo_n "(cached) " >&6
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 #include <sys/types.h>
14687 /* Check that off_t can represent 2**63 - 1 correctly.
14688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14689 since some C++ compilers masquerading as C compilers
14690 incorrectly reject 9223372036854775807. */
14691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14693 && LARGE_OFF_T % 2147483647 == 1)
14703 if ac_fn_c_try_compile "$LINENO"; then :
14704 ac_cv_sys_file_offset_bits=no; break
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #define _FILE_OFFSET_BITS 64
14710 #include <sys/types.h>
14711 /* Check that off_t can represent 2**63 - 1 correctly.
14712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14713 since some C++ compilers masquerading as C compilers
14714 incorrectly reject 9223372036854775807. */
14715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14717 && LARGE_OFF_T % 2147483647 == 1)
14727 if ac_fn_c_try_compile "$LINENO"; then :
14728 ac_cv_sys_file_offset_bits=64; break
14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731 ac_cv_sys_file_offset_bits=unknown
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14736 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14737 case $ac_cv_sys_file_offset_bits in #(
14740 cat >>confdefs.h <<_ACEOF
14741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14746 if test $ac_cv_sys_file_offset_bits = unknown; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14748 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14749 if ${ac_cv_sys_large_files+:} false; then :
14750 $as_echo_n "(cached) " >&6
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 #include <sys/types.h>
14756 /* Check that off_t can represent 2**63 - 1 correctly.
14757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14758 since some C++ compilers masquerading as C compilers
14759 incorrectly reject 9223372036854775807. */
14760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14762 && LARGE_OFF_T % 2147483647 == 1)
14772 if ac_fn_c_try_compile "$LINENO"; then :
14773 ac_cv_sys_large_files=no; break
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 #define _LARGE_FILES 1
14779 #include <sys/types.h>
14780 /* Check that off_t can represent 2**63 - 1 correctly.
14781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14782 since some C++ compilers masquerading as C compilers
14783 incorrectly reject 9223372036854775807. */
14784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14786 && LARGE_OFF_T % 2147483647 == 1)
14796 if ac_fn_c_try_compile "$LINENO"; then :
14797 ac_cv_sys_large_files=1; break
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 ac_cv_sys_large_files=unknown
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14805 $as_echo "$ac_cv_sys_large_files" >&6; }
14806 case $ac_cv_sys_large_files in #(
14809 cat >>confdefs.h <<_ACEOF
14810 #define _LARGE_FILES $ac_cv_sys_large_files
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14824 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14825 cache=_D_LARGEFILE_SOURCE_1
14826 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14827 $as_echo_n "(cached) " >&6
14833 int a = fseeko(stdin, 0, 0);
14837 echo 'void f(){}' >>conftest.c
14838 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14839 eval "cv_prog_cc_flag_needed_$cache=no"
14842 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14843 eval "cv_prog_cc_flag_needed_$cache=yes"
14845 eval "cv_prog_cc_flag_needed_$cache=fail"
14846 #echo 'Test with flag fails too!'
14848 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14849 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14854 rm -f conftest conftest.c conftest.o
14858 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14860 $as_echo "yes" >&6; }
14862 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14864 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867 #echo 'Test with flag is no!'
14869 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14870 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14876 $as_echo "failed" >&6; }
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14885 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14886 if echo $target | grep mingw32 >/dev/null; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14888 $as_echo "no (windows)" >&6; }
14890 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14893 if test "$cross_compiling" = yes; then :
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14896 $as_echo "crosscompile(yes)" >&6; }
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14904 #include <string.h>
14905 #include <stdlib.h>
14908 #ifdef HAVE_SYS_TYPES_H
14909 #include <sys/types.h>
14911 #ifdef HAVE_SYS_SOCKET_H
14912 #include <sys/socket.h>
14914 #ifdef HAVE_NETINET_IN_H
14915 #include <netinet/in.h>
14917 #ifdef HAVE_ARPA_INET_H
14918 #include <arpa/inet.h>
14920 #ifdef HAVE_UNISTD_H
14921 #include <unistd.h>
14933 struct sockaddr_in a;
14934 /* test if select and nonblocking reads work well together */
14936 fork child to send 10 messages.
14938 then try to nonblocking read the 10 messages
14939 then, nonblocking read must give EAGAIN
14942 port = 12345 + (time(0)%32);
14943 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14948 memset(&a, 0, sizeof(a));
14949 a.sin_family = AF_INET;
14950 a.sin_port = htons(port);
14951 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14952 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14956 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14961 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14963 perror("client socket");
14967 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14968 perror("client bind");
14971 a.sin_port = htons(port);
14973 /* no handler, causes exit in 10 seconds */
14976 /* send and receive on the socket */
14977 if((p=fork()) == 0) {
14978 for(i=0; i<num; i++) {
14979 if(sendto(cfd, &i, sizeof(i), 0,
14980 (struct sockaddr*)&a, sizeof(a)) < 0) {
14994 FD_SET(sfd, &rset);
14995 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15001 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15002 if(errno == EAGAIN)
15009 /* now we want to get EAGAIN: nonblocking goodness */
15011 recv(sfd, &x, sizeof(x), 0);
15012 if(errno != EAGAIN) {
15013 perror("trying to recv again");
15016 /* EAGAIN encountered */
15025 if ac_fn_c_try_run "$LINENO"; then :
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15035 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15040 conftest.$ac_objext conftest.beam conftest.$ac_ext
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15047 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h. */
15052 #include <unistd.h>
15053 #ifdef HAVE_WINSOCK2_H
15054 #include <winsock2.h>
15056 #ifdef HAVE_SYS_STAT_H
15057 #include <sys/stat.h>
15064 (void)mkdir("directory");
15070 if ac_fn_c_try_compile "$LINENO"; then :
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15072 $as_echo "yes" >&6; }
15074 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084 for ac_func in strptime
15086 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15087 if test "x$ac_cv_func_strptime" = xyes; then :
15088 cat >>confdefs.h <<_ACEOF
15089 #define HAVE_STRPTIME 1
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15093 $as_echo_n "checking whether strptime works... " >&6; }
15094 if test c${cross_compiling} = cno; then
15095 if test "$cross_compiling" = yes; then :
15096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15098 as_fn_error $? "cannot run test program while cross compiling
15099 See \`config.log' for more details" "$LINENO" 5; }
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15104 #define _XOPEN_SOURCE 600
15106 int main(void) { struct tm tm; char *res;
15107 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);
15108 if (!res) return 2;
15109 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15110 if (!res) return 1; return 0; }
15113 if ac_fn_c_try_run "$LINENO"; then :
15114 eval "ac_cv_c_strptime_works=yes"
15116 eval "ac_cv_c_strptime_works=no"
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15123 eval "ac_cv_c_strptime_works=maybe"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15126 $as_echo "$ac_cv_c_strptime_works" >&6; }
15127 if test $ac_cv_c_strptime_works = no; then
15128 case " $LIBOBJS " in
15129 *" strptime.$ac_objext "* ) ;;
15130 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15136 cat >>confdefs.h <<_ACEOF
15137 #define STRPTIME_WORKS 1
15143 case " $LIBOBJS " in
15144 *" strptime.$ac_objext "* ) ;;
15145 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15153 # set memory allocation checking if requested
15154 # Check whether --enable-alloc-checks was given.
15155 if test "${enable_alloc_checks+set}" = set; then :
15156 enableval=$enable_alloc_checks;
15159 # Check whether --enable-alloc-lite was given.
15160 if test "${enable_alloc_lite+set}" = set; then :
15161 enableval=$enable_alloc_lite;
15164 # Check whether --enable-alloc-nonregional was given.
15165 if test "${enable_alloc_nonregional+set}" = set; then :
15166 enableval=$enable_alloc_nonregional;
15169 if test x_$enable_alloc_nonregional = x_yes; then
15171 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15174 if test x_$enable_alloc_checks = x_yes; then
15176 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15179 if test x_$enable_alloc_lite = x_yes; then
15181 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15186 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15187 if test "$cross_compiling" = yes; then :
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15189 $as_echo "no (crosscompile)" >&6; }
15190 case " $LIBOBJS " in
15191 *" malloc.$ac_objext "* ) ;;
15192 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15197 cat >>confdefs.h <<_ACEOF
15198 #define malloc rpl_malloc_unbound
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15205 #include <stdlib.h>
15213 if(malloc(0) != 0) return 1;
15219 if ac_fn_c_try_run "$LINENO"; then :
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15222 case " $LIBOBJS " in
15223 *" malloc.$ac_objext "* ) ;;
15224 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15229 cat >>confdefs.h <<_ACEOF
15230 #define malloc rpl_malloc_unbound
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15235 $as_echo "yes" >&6; }
15237 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15241 conftest.$ac_objext conftest.beam conftest.$ac_ext
15248 # check windows threads (we use them, not pthreads, on windows).
15249 if test "$on_mingw" = "yes"; then
15250 # check windows threads
15251 for ac_header in windows.h
15253 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15255 if test "x$ac_cv_header_windows_h" = xyes; then :
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_WINDOWS_H 1
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15265 $as_echo_n "checking for CreateThread... " >&6; }
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267 /* end confdefs.h. */
15269 #ifdef HAVE_WINDOWS_H
15270 #include <windows.h>
15277 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15285 $as_echo "yes" >&6; }
15287 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298 # not on mingw, check thread libraries.
15300 # check for thread library.
15301 # check this first, so that the pthread lib does not get linked in via
15302 # libssl or libpython, and thus distorts the tests, and we end up using
15303 # the non-threadsafe C libraries.
15305 # Check whether --with-pthreads was given.
15306 if test "${with_pthreads+set}" = set; then :
15307 withval=$with_pthreads;
15312 ub_have_pthreads=no
15313 if test x_$withval != x_no; then
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15324 # We used to check for pthread.h first, but this fails if pthread.h
15325 # requires special compiler flags (e.g. on True64 or Sequent).
15326 # It gets checked for in the link test anyway.
15328 # First of all, check if the user has set any of the PTHREAD_LIBS,
15329 # etcetera environment variables, and if threads linking works using
15331 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15332 save_CFLAGS="$CFLAGS"
15333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15335 LIBS="$PTHREAD_LIBS $LIBS"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15337 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15347 char pthread_join ();
15351 return pthread_join ();
15356 if ac_fn_c_try_link "$LINENO"; then :
15359 rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15362 $as_echo "$ax_pthread_ok" >&6; }
15363 if test x"$ax_pthread_ok" = xno; then
15368 CFLAGS="$save_CFLAGS"
15371 # We must check for the threads library under a number of different
15372 # names; the ordering is very important because some systems
15373 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15374 # libraries is broken (non-POSIX).
15376 # Create a list of thread flags to try. Items starting with a "-" are
15377 # C compiler flags, and other items are library names, except for "none"
15378 # which indicates that we try without any flags at all, and "pthread-config"
15379 # which is a program returning the flags for the Pth emulation library.
15381 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15383 # The ordering *is* (sometimes) important. Some notes on the
15384 # individual items follow:
15386 # pthreads: AIX (must check this before -lpthread)
15387 # none: in case threads are in libc; should be tried before -Kthread and
15388 # other compiler flags to prevent continual compiler warnings
15389 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15390 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15391 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15392 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15393 # -pthreads: Solaris/gcc
15394 # -mthreads: Mingw32/gcc, Lynx/gcc
15395 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15396 # doesn't hurt to check since this sometimes defines pthreads too;
15397 # also defines -D_REENTRANT)
15398 # ... -mt is also the pthreads flag for HP/aCC
15399 # pthread: Linux, etcetera
15400 # --thread-safe: KAI C++
15401 # pthread-config: use pthread-config program (for GNU Pth library)
15406 # On Solaris (at least, for some versions), libc contains stubbed
15407 # (non-functional) versions of the pthreads routines, so link-based
15408 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15409 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15410 # a function called by this macro, so we could check for that, but
15411 # who knows whether they'll stub that too in a future libc.) So,
15412 # we'll just look for -pthreads and -lpthread first:
15414 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15418 ax_pthread_flags="-pthread $ax_pthread_flags"
15422 if test x"$ax_pthread_ok" = xno; then
15423 for flag in $ax_pthread_flags; do
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15428 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15433 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15434 PTHREAD_CFLAGS="$flag"
15438 # Extract the first word of "pthread-config", so it can be a program name with args.
15439 set dummy pthread-config; ac_word=$2
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15441 $as_echo_n "checking for $ac_word... " >&6; }
15442 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15443 $as_echo_n "(cached) " >&6
15445 if test -n "$ax_pthread_config"; then
15446 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15449 for as_dir in $PATH
15452 test -z "$as_dir" && as_dir=.
15453 for ac_exec_ext in '' $ac_executable_extensions; do
15454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15455 ac_cv_prog_ax_pthread_config="yes"
15456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15463 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15466 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15467 if test -n "$ax_pthread_config"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15469 $as_echo "$ax_pthread_config" >&6; }
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472 $as_echo "no" >&6; }
15476 if test x"$ax_pthread_config" = xno; then continue; fi
15477 PTHREAD_CFLAGS="`pthread-config --cflags`"
15478 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15483 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15484 PTHREAD_LIBS="-l$flag"
15489 save_CFLAGS="$CFLAGS"
15490 LIBS="$PTHREAD_LIBS $LIBS"
15491 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15493 # Check for various functions. We must include pthread.h,
15494 # since some functions may be macros. (On the Sequent, we
15495 # need a special flag -Kthread to make this header compile.)
15496 # We check for pthread_join because it is in -lpthread on IRIX
15497 # while pthread_create is in libc. We check for pthread_attr_init
15498 # due to DEC craziness with -lpthreads. We check for
15499 # pthread_cleanup_push because it is one of the few pthread
15500 # functions on Solaris that doesn't have a non-functional libc stub.
15501 # We try pthread_create on general principles.
15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503 /* end confdefs.h. */
15504 #include <pthread.h>
15505 static void routine(void *a) { *((int*)a) = 0; }
15506 static void *start_routine(void *a) { return a; }
15510 pthread_t th; pthread_attr_t attr;
15511 pthread_create(&th, 0, start_routine, 0);
15512 pthread_join(th, 0);
15513 pthread_attr_init(&attr);
15514 pthread_cleanup_push(routine, 0);
15515 pthread_cleanup_pop(0) /* ; */
15520 if ac_fn_c_try_link "$LINENO"; then :
15523 rm -f core conftest.err conftest.$ac_objext \
15524 conftest$ac_exeext conftest.$ac_ext
15527 CFLAGS="$save_CFLAGS"
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15530 $as_echo "$ax_pthread_ok" >&6; }
15531 if test "x$ax_pthread_ok" = xyes; then
15540 # Various other checks:
15541 if test "x$ax_pthread_ok" = xyes; then
15543 LIBS="$PTHREAD_LIBS $LIBS"
15544 save_CFLAGS="$CFLAGS"
15545 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15547 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15549 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15551 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554 #include <pthread.h>
15558 int attr = $attr; return attr /* ; */
15563 if ac_fn_c_try_link "$LINENO"; then :
15564 attr_name=$attr; break
15566 rm -f core conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15570 $as_echo "$attr_name" >&6; }
15571 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15573 cat >>confdefs.h <<_ACEOF
15574 #define PTHREAD_CREATE_JOINABLE $attr_name
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15580 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15583 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15584 osf* | hpux*) flag="-D_REENTRANT";;
15586 if test "$GCC" = "yes"; then
15587 flag="-D_REENTRANT"
15589 flag="-mt -D_REENTRANT"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15594 $as_echo "${flag}" >&6; }
15595 if test "x$flag" != xno; then
15596 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15600 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15601 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15602 $as_echo_n "(cached) " >&6
15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h. */
15608 #include <pthread.h>
15612 int i = PTHREAD_PRIO_INHERIT;
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 ax_cv_PTHREAD_PRIO_INHERIT=yes
15620 ax_cv_PTHREAD_PRIO_INHERIT=no
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15627 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15628 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15630 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15635 CFLAGS="$save_CFLAGS"
15637 # More AIX lossage: compile with *_r variant
15638 if test "x$GCC" != xyes; then
15642 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15643 #handle absolute path differently from PATH based program lookup
15646 if as_fn_executable_p ${CC}_r; then :
15647 PTHREAD_CC="${CC}_r"
15650 for ac_prog in ${CC}_r
15652 # Extract the first word of "$ac_prog", so it can be a program name with args.
15653 set dummy $ac_prog; ac_word=$2
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 $as_echo_n "checking for $ac_word... " >&6; }
15656 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15657 $as_echo_n "(cached) " >&6
15659 if test -n "$PTHREAD_CC"; then
15660 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15666 test -z "$as_dir" && as_dir=.
15667 for ac_exec_ext in '' $ac_executable_extensions; do
15668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_prog_PTHREAD_CC="$ac_prog"
15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15679 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15680 if test -n "$PTHREAD_CC"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15682 $as_echo "$PTHREAD_CC" >&6; }
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 $as_echo "no" >&6; }
15689 test -n "$PTHREAD_CC" && break
15691 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15702 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15708 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15709 if test x"$ax_pthread_ok" = xyes; then
15712 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15714 LIBS="$PTHREAD_LIBS $LIBS"
15715 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15717 ub_have_pthreads=yes
15718 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15720 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15722 cat >>confdefs.h <<_ACEOF
15723 #define HAVE_PTHREAD_SPINLOCK_T 1
15728 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15730 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15732 cat >>confdefs.h <<_ACEOF
15733 #define HAVE_PTHREAD_RWLOCK_T 1
15746 ac_cpp='$CPP $CPPFLAGS'
15747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15754 # check solaris thread library
15756 # Check whether --with-solaris-threads was given.
15757 if test "${with_solaris_threads+set}" = set; then :
15758 withval=$with_solaris_threads;
15763 ub_have_sol_threads=no
15764 if test x_$withval != x_no; then
15765 if test x_$ub_have_pthreads != x_no; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15767 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15770 $as_echo_n "checking for library containing thr_create... " >&6; }
15771 if ${ac_cv_search_thr_create+:} false; then :
15772 $as_echo_n "(cached) " >&6
15774 ac_func_search_save_LIBS=$LIBS
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15778 /* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15784 char thr_create ();
15788 return thr_create ();
15793 for ac_lib in '' thread; do
15794 if test -z "$ac_lib"; then
15795 ac_res="none required"
15798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15800 if ac_fn_c_try_link "$LINENO"; then :
15801 ac_cv_search_thr_create=$ac_res
15803 rm -f core conftest.err conftest.$ac_objext \
15805 if ${ac_cv_search_thr_create+:} false; then :
15809 if ${ac_cv_search_thr_create+:} false; then :
15812 ac_cv_search_thr_create=no
15814 rm conftest.$ac_ext
15815 LIBS=$ac_func_search_save_LIBS
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15818 $as_echo "$ac_cv_search_thr_create" >&6; }
15819 ac_res=$ac_cv_search_thr_create
15820 if test "$ac_res" != no; then :
15821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15824 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15830 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15831 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15832 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15833 $as_echo_n "(cached) " >&6
15836 echo 'void f(void){}' >conftest.c
15837 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15838 eval "cv_prog_cc_flag_$cache=yes"
15840 eval "cv_prog_cc_flag_$cache=no"
15842 rm -f conftest conftest.o conftest.c
15846 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15848 $as_echo "yes" >&6; }
15850 CFLAGS="$CFLAGS -mt"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853 $as_echo "no" >&6; }
15855 CFLAGS="$CFLAGS -D_REENTRANT"
15858 ub_have_sol_threads=yes
15862 as_fn_error $? "no solaris threads found." "$LINENO" 5
15869 fi # end of non-mingw check of thread libraries
15871 # Check for PyUnbound
15873 # Check whether --with-pyunbound was given.
15874 if test "${with_pyunbound+set}" = set; then :
15875 withval=$with_pyunbound;
15882 ub_with_pyunbound=no
15883 if test x_$withval != x_no; then
15884 ub_with_pyunbound=yes
15888 # Check for Python module
15890 # Check whether --with-pythonmodule was given.
15891 if test "${with_pythonmodule+set}" = set; then :
15892 withval=$with_pythonmodule;
15898 ub_with_pythonmod=no
15899 if test x_$withval != x_no; then
15900 ub_with_pythonmod=yes
15904 # Check for Python & SWIG only on PyUnbound or PyModule
15905 if test x_$ub_test_python != x_no; then
15909 ac_save_LIBS="$LIBS"
15911 # Allow the use of a (user set) custom python version
15915 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15916 set dummy python$PYTHON_VERSION; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_path_PYTHON+:} false; then :
15920 $as_echo_n "(cached) " >&6
15924 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $PATH
15931 test -z "$as_dir" && as_dir=.
15932 for ac_exec_ext in '' $ac_executable_extensions; do
15933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15934 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15945 PYTHON=$ac_cv_path_PYTHON
15946 if test -n "$PYTHON"; then
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15948 $as_echo "$PYTHON" >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 $as_echo "no" >&6; }
15955 if test -z "$PYTHON"; then
15956 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15960 if test -z "$PYTHON_VERSION"; then
15961 PYTHON_VERSION=`$PYTHON -c "import sys; \
15962 print(sys.version.split()[0])"`
15966 # Check if you have distutils, else fail
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15969 $as_echo_n "checking for the distutils Python package... " >&6; }
15970 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15971 if test -z "$ac_distutils_result"; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15977 as_fn_error $? "cannot import Python module \"distutils\".
15978 Please check your Python installation. The error was:
15979 $ac_distutils_result" "$LINENO" 5
15984 # Check for Python include path
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15987 $as_echo_n "checking for Python include path... " >&6; }
15988 if test -z "$PYTHON_CPPFLAGS"; then
15989 python_path=`$PYTHON -c "import distutils.sysconfig; \
15990 print(distutils.sysconfig.get_python_inc());"`
15991 if test -n "${python_path}"; then
15992 python_path="-I$python_path"
15994 PYTHON_CPPFLAGS=$python_path
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15997 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16001 # Check for Python library path
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16004 $as_echo_n "checking for Python library path... " >&6; }
16005 if test -z "$PYTHON_LDFLAGS"; then
16006 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16007 print(get_config_var('BLDLIBRARY'));"`
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16010 $as_echo "$PYTHON_LDFLAGS" >&6; }
16014 # Check for site packages
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16017 $as_echo_n "checking for Python site-packages path... " >&6; }
16018 if test -z "$PYTHON_SITE_PKG"; then
16019 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16020 print(distutils.sysconfig.get_python_lib(1,0));"`
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16023 $as_echo "$PYTHON_SITE_PKG" >&6; }
16027 # final check to see if everything compiles alright
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16030 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16032 ac_cpp='$CPP $CPPFLAGS'
16033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16037 # save current global flags
16038 ac_save_LIBS="$LIBS"
16039 ac_save_CPPFLAGS="$CPPFLAGS"
16041 LIBS="$LIBS $PYTHON_LDFLAGS"
16042 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 #include <Python.h>
16058 if ac_fn_c_try_link "$LINENO"; then :
16063 rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16067 $as_echo "$pythonexists" >&6; }
16069 if test ! "$pythonexists" = "yes"; then
16071 Could not link test program to Python. Maybe the main Python library has been
16072 installed in some non-standard library path. If so, pass it to configure,
16073 via the LDFLAGS environment variable.
16074 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16075 ============================================================================
16077 You probably have to install the development version of the Python package
16078 for your distribution. The exact name of this package varies among them.
16079 ============================================================================
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16089 # turn back to default flags
16090 CPPFLAGS="$ac_save_CPPFLAGS"
16091 LIBS="$ac_save_LIBS"
16097 if test ! -z "$PYTHON_VERSION"; then
16098 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16099 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16104 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16106 LIBS="$PYTHON_LDFLAGS $LIBS"
16107 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16113 # Extract the first word of "swig", so it can be a program name with args.
16114 set dummy swig; ac_word=$2
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16116 $as_echo_n "checking for $ac_word... " >&6; }
16117 if ${ac_cv_path_SWIG+:} false; then :
16118 $as_echo_n "(cached) " >&6
16122 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16143 SWIG=$ac_cv_path_SWIG
16144 if test -n "$SWIG"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16146 $as_echo "$SWIG" >&6; }
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16153 if test -z "$SWIG" ; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16155 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16156 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16157 elif test -n "" ; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16159 $as_echo_n "checking for SWIG version... " >&6; }
16160 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'`
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16162 $as_echo "$swig_version" >&6; }
16163 if test -n "$swig_version" ; then
16164 # Calculate the required version number components
16166 required_major=`echo $required | sed 's/[^0-9].*//'`
16167 if test -z "$required_major" ; then
16170 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16171 required_minor=`echo $required | sed 's/[^0-9].*//'`
16172 if test -z "$required_minor" ; then
16175 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16176 required_patch=`echo $required | sed 's/[^0-9].*//'`
16177 if test -z "$required_patch" ; then
16180 # Calculate the available version number components
16181 available=$swig_version
16182 available_major=`echo $available | sed 's/[^0-9].*//'`
16183 if test -z "$available_major" ; then
16186 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16187 available_minor=`echo $available | sed 's/[^0-9].*//'`
16188 if test -z "$available_minor" ; then
16191 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16192 available_patch=`echo $available | sed 's/[^0-9].*//'`
16193 if test -z "$available_patch" ; then
16196 if test $available_major -ne $required_major \
16197 -o $available_minor -ne $required_minor \
16198 -o $available_patch -lt $required_patch ; then
16199 { $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
16200 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16201 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16204 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16205 SWIG_LIB=`$SWIG -swiglib`
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16207 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16211 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16212 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16218 $as_echo_n "checking SWIG... " >&6; }
16219 if test ! -x "$SWIG"; then
16220 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16223 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16228 $as_echo "present" >&6; }
16230 # If have Python & SWIG
16231 # Declare PythonMod
16232 if test x_$ub_with_pythonmod != x_no; then
16234 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16236 WITH_PYTHONMODULE=yes
16238 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16240 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16242 PYTHONMOD_INSTALL=pythonmod-install
16244 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16248 # Declare PyUnbound
16249 if test x_$ub_with_pyunbound != x_no; then
16251 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16255 PYUNBOUND_OBJ="libunbound_wrap.lo"
16257 PYUNBOUND_TARGET="_unbound.la"
16259 PYUNBOUND_INSTALL=pyunbound-install
16261 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16267 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16268 ub_with_pyunbound=no
16269 ub_with_pythonmod=no
16273 if test "`uname`" = "NetBSD"; then
16274 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16277 CONFIG_DATE=`date +%Y%m%d`
16280 # Checks for libraries.
16285 # Check whether --with-nss was given.
16286 if test "${with_nss+set}" = set; then :
16290 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16292 if test "$withval" != "" -a "$withval" != "yes"; then
16293 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16294 LDFLAGS="$LDFLAGS -L$withval/lib"
16296 if test "x$enable_rpath" = xyes; then
16297 if echo "$withval/lib" | grep "^/" >/dev/null; then
16298 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16302 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16304 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16305 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16307 LIBS="$LIBS -lnss3 -lnspr4"
16314 if test $USE_NSS = "no"; then
16317 # Check whether --with-ssl was given.
16318 if test "${with_ssl+set}" = set; then :
16327 if test x_$withval = x_no; then
16328 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16332 if test x_$withval != x_no; then
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16334 $as_echo_n "checking for SSL... " >&6; }
16335 if test x_$withval = x_ -o x_$withval = x_yes; then
16336 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16338 for dir in $withval; do
16340 if test -f "$dir/include/openssl/ssl.h"; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define HAVE_SSL /**/
16347 if test "$ssldir" != "/usr"; then
16348 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16349 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16354 if test x_$found_ssl != x_yes; then
16355 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16358 $as_echo "found in $ssldir" >&6; }
16360 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16361 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16362 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16364 if test "x$enable_rpath" = xyes; then
16365 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16366 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16373 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16374 LIBS="$LIBS -lcrypto"
16375 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16383 int HMAC_CTX_init(void);
16384 (void)HMAC_CTX_init();
16390 if ac_fn_c_try_link "$LINENO"; then :
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393 $as_echo "yes" >&6; }
16395 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401 $as_echo "no" >&6; }
16402 # check if -lwsock32 or -lgdi32 are needed.
16404 BAKSSLLIBS="$LIBSSL_LIBS"
16405 LIBS="$LIBS -lgdi32"
16406 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16408 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16416 int HMAC_CTX_init(void);
16417 (void)HMAC_CTX_init();
16423 if ac_fn_c_try_link "$LINENO"; then :
16426 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16429 $as_echo "yes" >&6; }
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16436 LIBSSL_LIBS="$BAKSSLLIBS"
16438 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16440 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16448 int HMAC_CTX_init(void);
16449 (void)HMAC_CTX_init();
16455 if ac_fn_c_try_link "$LINENO"; then :
16458 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16461 $as_echo "yes" >&6; }
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16466 $as_echo "no" >&6; }
16467 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16470 rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext conftest.$ac_ext
16474 rm -f core conftest.err conftest.$ac_objext \
16475 conftest$ac_exeext conftest.$ac_ext
16478 rm -f core conftest.err conftest.$ac_objext \
16479 conftest$ac_exeext conftest.$ac_ext
16483 # openssl engine functionality needs dlopen().
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16486 $as_echo_n "checking for library containing dlopen... " >&6; }
16487 if ${ac_cv_search_dlopen+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 ac_func_search_save_LIBS=$LIBS
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16509 for ac_lib in '' dl; do
16510 if test -z "$ac_lib"; then
16511 ac_res="none required"
16514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 ac_cv_search_dlopen=$ac_res
16519 rm -f core conftest.err conftest.$ac_objext \
16521 if ${ac_cv_search_dlopen+:} false; then :
16525 if ${ac_cv_search_dlopen+:} false; then :
16528 ac_cv_search_dlopen=no
16530 rm conftest.$ac_ext
16531 LIBS=$ac_func_search_save_LIBS
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16534 $as_echo "$ac_cv_search_dlopen" >&6; }
16535 ac_res=$ac_cv_search_dlopen
16536 if test "$ac_res" != no; then :
16537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16541 if test "$LIBS" != "$BAKLIBS"; then
16542 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16545 for ac_header in openssl/ssl.h
16547 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16549 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16550 cat >>confdefs.h <<_ACEOF
16551 #define HAVE_OPENSSL_SSL_H 1
16558 for ac_header in openssl/err.h
16560 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16562 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16563 cat >>confdefs.h <<_ACEOF
16564 #define HAVE_OPENSSL_ERR_H 1
16571 for ac_header in openssl/rand.h
16573 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16575 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16576 cat >>confdefs.h <<_ACEOF
16577 #define HAVE_OPENSSL_RAND_H 1
16587 # check if libssl needs libdl
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16591 $as_echo_n "checking if libssl needs libdl... " >&6; }
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16601 char SSL_CTX_new ();
16605 return SSL_CTX_new ();
16610 if ac_fn_c_try_link "$LINENO"; then :
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16619 $as_echo "yes" >&6; }
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16622 $as_echo_n "checking for library containing dlopen... " >&6; }
16623 if ${ac_cv_search_dlopen+:} false; then :
16624 $as_echo_n "(cached) " >&6
16626 ac_func_search_save_LIBS=$LIBS
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16630 /* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
16645 for ac_lib in '' dl; do
16646 if test -z "$ac_lib"; then
16647 ac_res="none required"
16650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16652 if ac_fn_c_try_link "$LINENO"; then :
16653 ac_cv_search_dlopen=$ac_res
16655 rm -f core conftest.err conftest.$ac_objext \
16657 if ${ac_cv_search_dlopen+:} false; then :
16661 if ${ac_cv_search_dlopen+:} false; then :
16664 ac_cv_search_dlopen=no
16666 rm conftest.$ac_ext
16667 LIBS=$ac_func_search_save_LIBS
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16670 $as_echo "$ac_cv_search_dlopen" >&6; }
16671 ac_res=$ac_cv_search_dlopen
16672 if test "$ac_res" != no; then :
16673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16679 rm -f core conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16682 $as_echo_n "checking for LibreSSL... " >&6; }
16683 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16685 $as_echo "yes" >&6; }
16687 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16689 # libressl provides these compat functions, but they may also be
16690 # declared by the OS in libc. See if they have been declared.
16691 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16692 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_DECL_STRLCPY $ac_have_decl
16701 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16702 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16708 cat >>confdefs.h <<_ACEOF
16709 #define HAVE_DECL_STRLCAT $ac_have_decl
16711 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16712 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16718 cat >>confdefs.h <<_ACEOF
16719 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16721 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16722 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16736 for ac_header in openssl/conf.h
16738 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16740 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_OPENSSL_CONF_H 1
16749 for ac_header in openssl/engine.h
16751 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16753 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16754 cat >>confdefs.h <<_ACEOF
16755 #define HAVE_OPENSSL_ENGINE_H 1
16762 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16766 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16767 cat >>confdefs.h <<_ACEOF
16768 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16774 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16775 $ac_includes_default
16776 #ifdef HAVE_OPENSSL_ERR_H
16777 #include <openssl/err.h>
16780 #ifdef HAVE_OPENSSL_RAND_H
16781 #include <openssl/rand.h>
16784 #ifdef HAVE_OPENSSL_CONF_H
16785 #include <openssl/conf.h>
16788 #ifdef HAVE_OPENSSL_ENGINE_H
16789 #include <openssl/engine.h>
16791 #include <openssl/ssl.h>
16792 #include <openssl/evp.h>
16795 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16801 cat >>confdefs.h <<_ACEOF
16802 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16804 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16805 $ac_includes_default
16806 #ifdef HAVE_OPENSSL_ERR_H
16807 #include <openssl/err.h>
16810 #ifdef HAVE_OPENSSL_RAND_H
16811 #include <openssl/rand.h>
16814 #ifdef HAVE_OPENSSL_CONF_H
16815 #include <openssl/conf.h>
16818 #ifdef HAVE_OPENSSL_ENGINE_H
16819 #include <openssl/engine.h>
16821 #include <openssl/ssl.h>
16822 #include <openssl/evp.h>
16825 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16831 cat >>confdefs.h <<_ACEOF
16832 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16838 # Check whether --enable-sha2 was given.
16839 if test "${enable_sha2+set}" = set; then :
16840 enableval=$enable_sha2;
16843 case "$enable_sha2" in
16848 $as_echo "#define USE_SHA2 1" >>confdefs.h
16853 # check wether gost also works
16855 # Check whether --enable-gost was given.
16856 if test "${enable_gost+set}" = set; then :
16857 enableval=$enable_gost;
16861 if test $USE_NSS = "no"; then
16862 case "$enable_gost" in
16866 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16867 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16870 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16873 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16874 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16877 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16882 $as_echo_n "checking if GOST works... " >&6; }
16883 if test c${cross_compiling} = cno; then
16884 BAKCFLAGS="$CFLAGS"
16885 if test -n "$ssldir"; then
16886 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16888 if test "$cross_compiling" = yes; then :
16889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16891 as_fn_error $? "cannot run test program while cross compiling
16892 See \`config.log' for more details" "$LINENO" 5; }
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16897 #include <string.h>
16898 #include <openssl/ssl.h>
16899 #include <openssl/evp.h>
16900 #include <openssl/engine.h>
16901 #include <openssl/conf.h>
16902 /* routine to load gost (from sldns) */
16903 int load_gost_id(void)
16905 static int gost_id = 0;
16906 const EVP_PKEY_ASN1_METHOD* meth;
16909 if(gost_id) return gost_id;
16911 /* see if configuration loaded gost implementation from other engine*/
16912 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16914 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16918 /* see if engine can be loaded already */
16919 e = ENGINE_by_id("gost");
16921 /* load it ourself, in case statically linked */
16922 ENGINE_load_builtin_engines();
16923 ENGINE_load_dynamic();
16924 e = ENGINE_by_id("gost");
16927 /* no gost engine in openssl */
16930 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16936 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16938 /* algo not found */
16943 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16949 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16950 const char* str = "Hello world";
16951 const unsigned char check[] = {
16952 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16953 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16954 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16955 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16957 OPENSSL_config(NULL);
16958 (void)load_gost_id();
16959 md = EVP_get_digestbyname("md_gost94");
16961 memset(digest, 0, sizeof(digest));
16962 ctx = EVP_MD_CTX_create();
16964 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16965 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16966 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16967 /* uncomment to see the hash calculated.
16969 for(i=0; i<32; i++)
16970 printf(" %2.2x", (int)digest[i]);
16973 if(memcmp(digest, check, sizeof(check)) != 0)
16979 if ac_fn_c_try_run "$LINENO"; then :
16980 eval "ac_cv_c_gost_works=yes"
16982 eval "ac_cv_c_gost_works=no"
16984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16985 conftest.$ac_objext conftest.beam conftest.$ac_ext
16988 CFLAGS="$BAKCFLAGS"
16990 eval "ac_cv_c_gost_works=maybe"
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16993 $as_echo "$ac_cv_c_gost_works" >&6; }
16995 if test "$ac_cv_c_gost_works" != no; then
16998 $as_echo "#define USE_GOST 1" >>confdefs.h
17004 # Check whether --enable-ecdsa was given.
17005 if test "${enable_ecdsa+set}" = set; then :
17006 enableval=$enable_ecdsa;
17010 case "$enable_ecdsa" in
17014 if test $USE_NSS = "no"; then
17015 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17016 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17019 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17022 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17023 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17026 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17029 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17030 #include <openssl/evp.h>
17033 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17039 cat >>confdefs.h <<_ACEOF
17040 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17042 if test $ac_have_decl = 1; then :
17045 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17047 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17048 #include <openssl/evp.h>
17051 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17057 cat >>confdefs.h <<_ACEOF
17058 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17060 if test $ac_have_decl = 1; then :
17063 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17066 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17068 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17069 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17070 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17074 cat >>confdefs.h <<_ACEOF
17075 #define USE_ECDSA_EVP_WORKAROUND 1
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17080 $as_echo "yes" >&6; }
17083 # not OpenSSL, thus likely LibreSSL, which supports it
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17085 $as_echo "yes" >&6; }
17088 # we now know we have ECDSA and the required curves.
17090 cat >>confdefs.h <<_ACEOF
17091 #define USE_ECDSA 1
17098 # Check whether --enable-event-api was given.
17099 if test "${enable_event_api+set}" = set; then :
17100 enableval=$enable_event_api;
17103 use_unbound_event="no"
17104 case "$enable_event_api" in
17106 use_unbound_event="yes"
17112 # check for libevent
17114 # Check whether --with-libevent was given.
17115 if test "${with_libevent+set}" = set; then :
17116 withval=$with_libevent;
17121 if test x_$withval = x_yes -o x_$withval != x_no; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17123 $as_echo_n "checking for libevent... " >&6; }
17124 if test x_$withval = x_ -o x_$withval = x_yes; then
17125 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17127 for dir in $withval; do
17129 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17130 found_libevent="yes"
17131 if test "$thedir" != "/usr"; then
17132 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17137 if test x_$found_libevent != x_yes; then
17138 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17139 # libevent source directory
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17141 $as_echo "found in $thedir" >&6; }
17142 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17143 BAK_LDFLAGS_SET="1"
17144 BAK_LDFLAGS="$LDFLAGS"
17145 # remove evdns from linking
17146 mkdir build >/dev/null 2>&1
17147 mkdir build/libevent >/dev/null 2>&1
17148 mkdir build/libevent/.libs >/dev/null 2>&1
17149 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17150 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17151 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17152 cp $ev_files_o build/libevent
17153 cp $ev_files_lo build/libevent
17154 cp $ev_files_libso build/libevent/.libs
17155 LATE_LDFLAGS="build/libevent/*.lo -lm"
17156 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17158 as_fn_error $? "Cannot find the libevent library in $withval
17159 You can restart ./configure --with-libevent=no to use a builtin alternative.
17160 Please note that this alternative is not as capable as libevent when using
17161 large outgoing port ranges. " "$LINENO" 5
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17165 $as_echo "found in $thedir" >&6; }
17166 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17167 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17169 if test "x$enable_rpath" = xyes; then
17170 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17171 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17176 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17177 LDFLAGS="$LDFLAGS -L$thedir/lib"
17179 if test "x$enable_rpath" = xyes; then
17180 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17181 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17188 # check for library used by libevent after 1.3c
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17190 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17191 if ${ac_cv_search_clock_gettime+:} false; then :
17192 $as_echo_n "(cached) " >&6
17194 ac_func_search_save_LIBS=$LIBS
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17198 /* Override any GCC internal prototype to avoid an error.
17199 Use char because int might match the return type of a GCC
17200 builtin and then its argument prototype would still apply. */
17204 char clock_gettime ();
17208 return clock_gettime ();
17213 for ac_lib in '' rt; do
17214 if test -z "$ac_lib"; then
17215 ac_res="none required"
17218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17220 if ac_fn_c_try_link "$LINENO"; then :
17221 ac_cv_search_clock_gettime=$ac_res
17223 rm -f core conftest.err conftest.$ac_objext \
17225 if ${ac_cv_search_clock_gettime+:} false; then :
17229 if ${ac_cv_search_clock_gettime+:} false; then :
17232 ac_cv_search_clock_gettime=no
17234 rm conftest.$ac_ext
17235 LIBS=$ac_func_search_save_LIBS
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17238 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17239 ac_res=$ac_cv_search_clock_gettime
17240 if test "$ac_res" != no; then :
17241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17246 # is the event.h header libev or libevent?
17247 for ac_header in event.h
17249 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17251 if test "x$ac_cv_header_event_h" = xyes; then :
17252 cat >>confdefs.h <<_ACEOF
17253 #define HAVE_EVENT_H 1
17260 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17264 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17267 $as_echo_n "checking for library containing event_set... " >&6; }
17268 if ${ac_cv_search_event_set+:} false; then :
17269 $as_echo_n "(cached) " >&6
17271 ac_func_search_save_LIBS=$LIBS
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17275 /* Override any GCC internal prototype to avoid an error.
17276 Use char because int might match the return type of a GCC
17277 builtin and then its argument prototype would still apply. */
17285 return event_set ();
17290 for ac_lib in '' ev; do
17291 if test -z "$ac_lib"; then
17292 ac_res="none required"
17295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17297 if ac_fn_c_try_link "$LINENO"; then :
17298 ac_cv_search_event_set=$ac_res
17300 rm -f core conftest.err conftest.$ac_objext \
17302 if ${ac_cv_search_event_set+:} false; then :
17306 if ${ac_cv_search_event_set+:} false; then :
17309 ac_cv_search_event_set=no
17311 rm conftest.$ac_ext
17312 LIBS=$ac_func_search_save_LIBS
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17315 $as_echo "$ac_cv_search_event_set" >&6; }
17316 ac_res=$ac_cv_search_event_set
17317 if test "$ac_res" != no; then :
17318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17326 $as_echo_n "checking for library containing event_set... " >&6; }
17327 if ${ac_cv_search_event_set+:} false; then :
17328 $as_echo_n "(cached) " >&6
17330 ac_func_search_save_LIBS=$LIBS
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17334 /* Override any GCC internal prototype to avoid an error.
17335 Use char because int might match the return type of a GCC
17336 builtin and then its argument prototype would still apply. */
17344 return event_set ();
17349 for ac_lib in '' event; do
17350 if test -z "$ac_lib"; then
17351 ac_res="none required"
17354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 ac_cv_search_event_set=$ac_res
17359 rm -f core conftest.err conftest.$ac_objext \
17361 if ${ac_cv_search_event_set+:} false; then :
17365 if ${ac_cv_search_event_set+:} false; then :
17368 ac_cv_search_event_set=no
17370 rm conftest.$ac_ext
17371 LIBS=$ac_func_search_save_LIBS
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17374 $as_echo "$ac_cv_search_event_set" >&6; }
17375 ac_res=$ac_cv_search_event_set
17376 if test "$ac_res" != no; then :
17377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17384 for ac_func in event_base_free
17386 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17387 if test "x$ac_cv_func_event_base_free" = xyes; then :
17388 cat >>confdefs.h <<_ACEOF
17389 #define HAVE_EVENT_BASE_FREE 1
17394 # only in libevent 1.2 and later
17395 for ac_func in event_base_once
17397 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17398 if test "x$ac_cv_func_event_base_once" = xyes; then :
17399 cat >>confdefs.h <<_ACEOF
17400 #define HAVE_EVENT_BASE_ONCE 1
17405 # only in libevent 1.4.1 and later
17406 for ac_func in event_base_new
17408 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17409 if test "x$ac_cv_func_event_base_new" = xyes; then :
17410 cat >>confdefs.h <<_ACEOF
17411 #define HAVE_EVENT_BASE_NEW 1
17416 # only in libevent 1.4.1 and later
17417 for ac_func in event_base_get_method
17419 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17420 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17421 cat >>confdefs.h <<_ACEOF
17422 #define HAVE_EVENT_BASE_GET_METHOD 1
17427 # only in libevent 1.4.3 and later
17428 for ac_func in ev_loop
17430 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17431 if test "x$ac_cv_func_ev_loop" = xyes; then :
17432 cat >>confdefs.h <<_ACEOF
17433 #define HAVE_EV_LOOP 1
17438 # only in libev. (tested on 3.51)
17439 for ac_func in ev_default_loop
17441 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17442 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17443 cat >>confdefs.h <<_ACEOF
17444 #define HAVE_EV_DEFAULT_LOOP 1
17449 # only in libev. (tested on 4.00)
17450 if test -n "$BAK_LDFLAGS_SET"; then
17451 LDFLAGS="$BAK_LDFLAGS"
17453 if test "$use_unbound_event" = "yes"; then
17454 UNBOUND_EVENT_INSTALL=unbound-event-install
17456 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17461 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17465 # check for libexpat
17467 # Check whether --with-libexpat was given.
17468 if test "${with_libexpat+set}" = set; then :
17469 withval=$with_libexpat;
17471 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17475 $as_echo_n "checking for libexpat... " >&6; }
17476 found_libexpat="no"
17477 for dir in $withval ; do
17478 if test -f "$dir/include/expat.h"; then
17479 found_libexpat="yes"
17480 if test "$dir" != "/usr"; then
17481 CPPFLAGS="$CPPFLAGS -I$dir/include"
17482 LDFLAGS="$LDFLAGS -L$dir/lib"
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17485 $as_echo "found in $dir" >&6; }
17489 if test x_$found_libexpat != x_yes; then
17490 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17492 for ac_header in expat.h
17494 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17496 if test "x$ac_cv_header_expat_h" = xyes; then :
17497 cat >>confdefs.h <<_ACEOF
17498 #define HAVE_EXPAT_H 1
17506 # set static linking if requested
17509 # Check whether --enable-static-exe was given.
17510 if test "${enable_static_exe+set}" = set; then :
17511 enableval=$enable_static_exe;
17514 if test x_$enable_static_exe = x_yes; then
17515 staticexe="-static"
17516 if test "$on_mingw" = yes; then
17517 staticexe="-all-static"
17518 # for static crosscompile, include gdi32 and zlib here.
17519 if test "`uname`" = "Linux"; then
17520 LIBS="$LIBS -lgdi32 -lz"
17525 # set lock checking if requested
17526 # Check whether --enable-lock_checks was given.
17527 if test "${enable_lock_checks+set}" = set; then :
17528 enableval=$enable_lock_checks;
17531 if test x_$enable_lock_checks = x_yes; then
17533 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17535 CHECKLOCK_OBJ="checklocks.lo"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17541 $as_echo_n "checking for getaddrinfo... " >&6; }
17542 ac_cv_func_getaddrinfo=no
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17550 char* getaddrinfo();
17551 char* (*f) () = getaddrinfo;
17561 if ac_fn_c_try_link "$LINENO"; then :
17562 ac_cv_func_getaddrinfo="yes"
17563 if test "$ac_cv_header_windows_h" = "yes"; then
17565 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17568 LIBS="$LIBS -lws2_32"
17573 LIBS="$LIBS -lws2_32"
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17577 #ifdef HAVE_WS2TCPIP_H
17578 #include <ws2tcpip.h>
17585 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17592 if ac_fn_c_try_link "$LINENO"; then :
17594 ac_cv_func_getaddrinfo="yes"
17596 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17602 ac_cv_func_getaddrinfo="no"
17606 rm -f core conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
17610 rm -f core conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17614 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17615 if test $ac_cv_func_getaddrinfo = yes; then
17617 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17621 if test "$USE_WINSOCK" = 1; then
17623 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17625 for ac_header in iphlpapi.h
17627 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17628 #include <windows.h>
17631 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17632 cat >>confdefs.h <<_ACEOF
17633 #define HAVE_IPHLPAPI_H 1
17640 if test -n "$ac_tool_prefix"; then
17641 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17642 set dummy ${ac_tool_prefix}windres; ac_word=$2
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17644 $as_echo_n "checking for $ac_word... " >&6; }
17645 if ${ac_cv_prog_WINDRES+:} false; then :
17646 $as_echo_n "(cached) " >&6
17648 if test -n "$WINDRES"; then
17649 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17652 for as_dir in $PATH
17655 test -z "$as_dir" && as_dir=.
17656 for ac_exec_ext in '' $ac_executable_extensions; do
17657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17658 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17668 WINDRES=$ac_cv_prog_WINDRES
17669 if test -n "$WINDRES"; then
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17671 $as_echo "$WINDRES" >&6; }
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674 $as_echo "no" >&6; }
17679 if test -z "$ac_cv_prog_WINDRES"; then
17680 ac_ct_WINDRES=$WINDRES
17681 # Extract the first word of "windres", so it can be a program name with args.
17682 set dummy windres; ac_word=$2
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17684 $as_echo_n "checking for $ac_word... " >&6; }
17685 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17686 $as_echo_n "(cached) " >&6
17688 if test -n "$ac_ct_WINDRES"; then
17689 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17692 for as_dir in $PATH
17695 test -z "$as_dir" && as_dir=.
17696 for ac_exec_ext in '' $ac_executable_extensions; do
17697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17698 ac_cv_prog_ac_ct_WINDRES="windres"
17699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17708 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17709 if test -n "$ac_ct_WINDRES"; then
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17711 $as_echo "$ac_ct_WINDRES" >&6; }
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17717 if test "x$ac_ct_WINDRES" = x; then
17720 case $cross_compiling:$ac_tool_warned in
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17724 ac_tool_warned=yes ;;
17726 WINDRES=$ac_ct_WINDRES
17729 WINDRES="$ac_cv_prog_WINDRES"
17732 LIBS="$LIBS -liphlpapi"
17733 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17735 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17737 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17739 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17741 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17743 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17745 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17747 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17750 if test $ac_cv_func_getaddrinfo = no; then
17751 case " $LIBOBJS " in
17752 *" fake-rfc2553.$ac_objext "* ) ;;
17753 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17758 # check after getaddrinfo for its libraries
17760 # check ioctlsocket
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17762 $as_echo_n "checking for ioctlsocket... " >&6; }
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17766 #ifdef HAVE_WINSOCK2_H
17767 #include <winsock2.h>
17774 (void)ioctlsocket(0, 0, NULL);
17780 if ac_fn_c_try_link "$LINENO"; then :
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17783 $as_echo "yes" >&6; }
17785 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17790 $as_echo "no" >&6; }
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17796 # see if daemon(3) exists, and if it is deprecated.
17797 for ac_func in daemon
17799 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17800 if test "x$ac_cv_func_daemon" = xyes; then :
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_DAEMON 1
17808 if test $ac_cv_func_daemon = yes; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17812 $as_echo_n "checking if daemon is deprecated... " >&6; }
17813 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17814 if eval \${cv_cc_deprecated_$cache+:} false; then :
17815 $as_echo_n "(cached) " >&6
17819 #include <stdlib.h>
17821 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17822 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17823 eval "cv_cc_deprecated_$cache=no"
17825 eval "cv_cc_deprecated_$cache=yes"
17827 rm -f conftest conftest.o conftest.c
17831 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17835 cat >>confdefs.h <<_ACEOF
17836 #define DEPRECATED_DAEMON 1
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17843 $as_echo "no" >&6; }
17850 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17851 $ac_includes_default
17852 #ifdef HAVE_SYS_UN_H
17853 #include <sys/un.h>
17857 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
17866 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17867 $ac_includes_default
17868 #if HAVE_SYS_PARAM_H
17869 #include <sys/param.h>
17872 #ifdef HAVE_SYS_SOCKET_H
17873 #include <sys/socket.h>
17876 #ifdef HAVE_SYS_UIO_H
17877 #include <sys/uio.h>
17880 #ifdef HAVE_NETINET_IN_H
17881 #include <netinet/in.h>
17884 #ifdef HAVE_ARPA_INET_H
17885 #include <arpa/inet.h>
17888 #ifdef HAVE_WINSOCK2_H
17889 #include <winsock2.h>
17892 #ifdef HAVE_WS2TCPIP_H
17893 #include <ws2tcpip.h>
17897 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17907 $as_echo_n "checking for library containing setusercontext... " >&6; }
17908 if ${ac_cv_search_setusercontext+:} false; then :
17909 $as_echo_n "(cached) " >&6
17911 ac_func_search_save_LIBS=$LIBS
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17915 /* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17921 char setusercontext ();
17925 return setusercontext ();
17930 for ac_lib in '' util; do
17931 if test -z "$ac_lib"; then
17932 ac_res="none required"
17935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17937 if ac_fn_c_try_link "$LINENO"; then :
17938 ac_cv_search_setusercontext=$ac_res
17940 rm -f core conftest.err conftest.$ac_objext \
17942 if ${ac_cv_search_setusercontext+:} false; then :
17946 if ${ac_cv_search_setusercontext+:} false; then :
17949 ac_cv_search_setusercontext=no
17951 rm conftest.$ac_ext
17952 LIBS=$ac_func_search_save_LIBS
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17955 $as_echo "$ac_cv_search_setusercontext" >&6; }
17956 ac_res=$ac_cv_search_setusercontext
17957 if test "$ac_res" != no; then :
17958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17962 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
17964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17967 cat >>confdefs.h <<_ACEOF
17968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17974 for ac_func in setresuid
17976 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17977 if test "x$ac_cv_func_setresuid" = xyes; then :
17978 cat >>confdefs.h <<_ACEOF
17979 #define HAVE_SETRESUID 1
17983 for ac_func in setreuid
17985 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17986 if test "x$ac_cv_func_setreuid" = xyes; then :
17987 cat >>confdefs.h <<_ACEOF
17988 #define HAVE_SETREUID 1
17997 for ac_func in setresgid
17999 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18000 if test "x$ac_cv_func_setresgid" = xyes; then :
18001 cat >>confdefs.h <<_ACEOF
18002 #define HAVE_SETRESGID 1
18006 for ac_func in setregid
18008 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18009 if test "x$ac_cv_func_setregid" = xyes; then :
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_SETREGID 1
18021 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18022 if echo $build_os | grep darwin8 > /dev/null; then
18024 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18027 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18028 if test "x$ac_cv_func_inet_aton" = xyes; then :
18029 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18032 case " $LIBOBJS " in
18033 *" inet_aton.$ac_objext "* ) ;;
18034 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18041 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18042 if test "x$ac_cv_func_inet_pton" = xyes; then :
18043 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18046 case " $LIBOBJS " in
18047 *" inet_pton.$ac_objext "* ) ;;
18048 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18055 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18056 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18057 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18060 case " $LIBOBJS " in
18061 *" inet_ntop.$ac_objext "* ) ;;
18062 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18069 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18070 if test "x$ac_cv_func_snprintf" = xyes; then :
18071 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18074 case " $LIBOBJS " in
18075 *" snprintf.$ac_objext "* ) ;;
18076 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18083 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18084 if test "x$ac_cv_func_strlcat" = xyes; then :
18085 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18088 case " $LIBOBJS " in
18089 *" strlcat.$ac_objext "* ) ;;
18090 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18097 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18098 if test "x$ac_cv_func_strlcpy" = xyes; then :
18099 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18102 case " $LIBOBJS " in
18103 *" strlcpy.$ac_objext "* ) ;;
18104 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18111 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18112 if test "x$ac_cv_func_memmove" = xyes; then :
18113 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18116 case " $LIBOBJS " in
18117 *" memmove.$ac_objext "* ) ;;
18118 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18125 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18126 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18127 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18130 case " $LIBOBJS " in
18131 *" gmtime_r.$ac_objext "* ) ;;
18132 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18139 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18141 if test "$USE_NSS" = "no"; then
18142 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18143 if test "x$ac_cv_func_arc4random" = xyes; then :
18144 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18147 case " $LIBOBJS " in
18148 *" arc4random.$ac_objext "* ) ;;
18149 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18156 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18157 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18158 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18161 case " $LIBOBJS " in
18162 *" arc4random_uniform.$ac_objext "* ) ;;
18163 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18170 if test "$ac_cv_func_arc4random" = "no"; then
18171 case " $LIBOBJS " in
18172 *" explicit_bzero.$ac_objext "* ) ;;
18173 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18177 case " $LIBOBJS " in
18178 *" arc4_lock.$ac_objext "* ) ;;
18179 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18183 for ac_func in getentropy
18185 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18186 if test "x$ac_cv_func_getentropy" = xyes; then :
18187 cat >>confdefs.h <<_ACEOF
18188 #define HAVE_GETENTROPY 1
18193 if test "$USE_WINSOCK" = 1; then
18194 case " $LIBOBJS " in
18195 *" getentropy_win.$ac_objext "* ) ;;
18196 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18203 case " $LIBOBJS " in
18204 *" getentropy_osx.$ac_objext "* ) ;;
18205 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18211 case " $LIBOBJS " in
18212 *" getentropy_solaris.$ac_objext "* ) ;;
18213 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18217 for ac_header in sys/sha2.h
18219 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18221 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18222 cat >>confdefs.h <<_ACEOF
18223 #define HAVE_SYS_SHA2_H 1
18228 for ac_func in SHA512_Update
18230 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18231 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18232 cat >>confdefs.h <<_ACEOF
18233 #define HAVE_SHA512_UPDATE 1
18238 case " $LIBOBJS " in
18239 *" sha512.$ac_objext "* ) ;;
18240 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18253 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18254 # this lib needed for sha2 on solaris
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18258 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18259 if ${ac_cv_search_clock_gettime+:} false; then :
18260 $as_echo_n "(cached) " >&6
18262 ac_func_search_save_LIBS=$LIBS
18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18272 char clock_gettime ();
18276 return clock_gettime ();
18281 for ac_lib in '' rt; do
18282 if test -z "$ac_lib"; then
18283 ac_res="none required"
18286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 ac_cv_search_clock_gettime=$ac_res
18291 rm -f core conftest.err conftest.$ac_objext \
18293 if ${ac_cv_search_clock_gettime+:} false; then :
18297 if ${ac_cv_search_clock_gettime+:} false; then :
18300 ac_cv_search_clock_gettime=no
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18306 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18307 ac_res=$ac_cv_search_clock_gettime
18308 if test "$ac_res" != no; then :
18309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18315 case " $LIBOBJS " in
18316 *" getentropy_linux.$ac_objext "* ) ;;
18317 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18321 for ac_func in SHA512_Update
18323 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18324 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18325 cat >>confdefs.h <<_ACEOF
18326 #define HAVE_SHA512_UPDATE 1
18332 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18334 case " $LIBOBJS " in
18335 *" sha512.$ac_objext "* ) ;;
18336 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18344 for ac_header in sys/sysctl.h
18346 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18348 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_SYS_SYSCTL_H 1
18357 for ac_func in getauxval
18359 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
18360 if test "x$ac_cv_func_getauxval" = xyes; then :
18361 cat >>confdefs.h <<_ACEOF
18362 #define HAVE_GETAUXVAL 1
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18369 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18370 if ${ac_cv_search_clock_gettime+:} false; then :
18371 $as_echo_n "(cached) " >&6
18373 ac_func_search_save_LIBS=$LIBS
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18383 char clock_gettime ();
18387 return clock_gettime ();
18392 for ac_lib in '' rt; do
18393 if test -z "$ac_lib"; then
18394 ac_res="none required"
18397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18399 if ac_fn_c_try_link "$LINENO"; then :
18400 ac_cv_search_clock_gettime=$ac_res
18402 rm -f core conftest.err conftest.$ac_objext \
18404 if ${ac_cv_search_clock_gettime+:} false; then :
18408 if ${ac_cv_search_clock_gettime+:} false; then :
18411 ac_cv_search_clock_gettime=no
18413 rm conftest.$ac_ext
18414 LIBS=$ac_func_search_save_LIBS
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18417 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18418 ac_res=$ac_cv_search_clock_gettime
18419 if test "$ac_res" != no; then :
18420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18433 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18435 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18436 if test "x$ac_cv_func_ctime_r" = xyes; then :
18437 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18440 case " $LIBOBJS " in
18441 *" ctime_r.$ac_objext "* ) ;;
18442 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18450 # Check whether --enable-allsymbols was given.
18451 if test "${enable_allsymbols+set}" = set; then :
18452 enableval=$enable_allsymbols;
18455 case "$enable_allsymbols" in
18457 COMMON_OBJ_ALL_SYMBOLS=""
18459 EXTRALINK="-L. -L.libs -lunbound"
18461 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18465 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18466 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18473 if test x_$enable_lock_checks = x_yes; then
18474 UBSYMS="-export-symbols clubsyms.def"
18475 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18476 echo lock_protect >> clubsyms.def
18477 echo lock_unprotect >> clubsyms.def
18478 echo lock_get_mem >> clubsyms.def
18479 echo checklock_start >> clubsyms.def
18480 echo checklock_stop >> clubsyms.def
18481 echo checklock_lock >> clubsyms.def
18482 echo checklock_unlock >> clubsyms.def
18483 echo checklock_init >> clubsyms.def
18484 echo checklock_thrcreate >> clubsyms.def
18485 echo checklock_thrjoin >> clubsyms.def
18488 # check for dnstap if requested
18490 # Check whether --enable-dnstap was given.
18491 if test "${enable_dnstap+set}" = set; then :
18492 enableval=$enable_dnstap; opt_dnstap=$enableval
18499 # Check whether --with-dnstap-socket-path was given.
18500 if test "${with_dnstap_socket_path+set}" = set; then :
18501 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18503 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18507 if test "x$opt_dnstap" != "xno"; then
18508 # Extract the first word of "protoc-c", so it can be a program name with args.
18509 set dummy protoc-c; ac_word=$2
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18511 $as_echo_n "checking for $ac_word... " >&6; }
18512 if ${ac_cv_path_PROTOC_C+:} false; then :
18513 $as_echo_n "(cached) " >&6
18517 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18521 for as_dir in $PATH
18524 test -z "$as_dir" && as_dir=.
18525 for ac_exec_ext in '' $ac_executable_extensions; do
18526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18527 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18538 PROTOC_C=$ac_cv_path_PROTOC_C
18539 if test -n "$PROTOC_C"; then
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18541 $as_echo "$PROTOC_C" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18548 if test -z "$PROTOC_C"; then
18549 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18552 # Check whether --with-protobuf-c was given.
18553 if test "${with_protobuf_c+set}" = set; then :
18554 withval=$with_protobuf_c;
18555 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18556 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18557 CFLAGS="$CFLAGS -I$withval/include/google"
18559 CFLAGS="$CFLAGS -I$withval/include"
18561 LDFLAGS="$LDFLAGS -L$withval/lib"
18565 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18566 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18567 CFLAGS="$CFLAGS -I/usr/include/google"
18569 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18570 CFLAGS="$CFLAGS -I/usr/local/include/google"
18571 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18578 # Check whether --with-libfstrm was given.
18579 if test "${with_libfstrm+set}" = set; then :
18580 withval=$with_libfstrm;
18581 CFLAGS="$CFLAGS -I$withval/include"
18582 LDFLAGS="$LDFLAGS -L$withval/lib"
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18587 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18588 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18589 $as_echo_n "(cached) " >&6
18591 ac_func_search_save_LIBS=$LIBS
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18595 /* Override any GCC internal prototype to avoid an error.
18596 Use char because int might match the return type of a GCC
18597 builtin and then its argument prototype would still apply. */
18601 char fstrm_iothr_init ();
18605 return fstrm_iothr_init ();
18610 for ac_lib in '' fstrm; do
18611 if test -z "$ac_lib"; then
18612 ac_res="none required"
18615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18617 if ac_fn_c_try_link "$LINENO"; then :
18618 ac_cv_search_fstrm_iothr_init=$ac_res
18620 rm -f core conftest.err conftest.$ac_objext \
18622 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18626 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18629 ac_cv_search_fstrm_iothr_init=no
18631 rm conftest.$ac_ext
18632 LIBS=$ac_func_search_save_LIBS
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18635 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18636 ac_res=$ac_cv_search_fstrm_iothr_init
18637 if test "$ac_res" != no; then :
18638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18641 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18645 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18646 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18647 $as_echo_n "(cached) " >&6
18649 ac_func_search_save_LIBS=$LIBS
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18659 char protobuf_c_message_pack ();
18663 return protobuf_c_message_pack ();
18668 for ac_lib in '' protobuf-c; do
18669 if test -z "$ac_lib"; then
18670 ac_res="none required"
18673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18675 if ac_fn_c_try_link "$LINENO"; then :
18676 ac_cv_search_protobuf_c_message_pack=$ac_res
18678 rm -f core conftest.err conftest.$ac_objext \
18680 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18684 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18687 ac_cv_search_protobuf_c_message_pack=no
18689 rm conftest.$ac_ext
18690 LIBS=$ac_func_search_save_LIBS
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18693 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18694 ac_res=$ac_cv_search_protobuf_c_message_pack
18695 if test "$ac_res" != no; then :
18696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18699 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18704 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18710 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18713 cat >>confdefs.h <<_ACEOF
18714 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18718 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18720 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18733 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18734 # on openBSD, the implicit rule make $< work.
18735 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18737 cat >conftest.make <<EOF
18740 conftest.lo foo.lo bla.lo:
18741 if test -f "\$<"; then touch \$@; fi
18745 if test -f "\$<"; then touch \$@; fi
18747 conftest.lo: conftest.dir/conftest.c
18750 touch conftest.dir/conftest.c
18751 rm -f conftest.lo conftest.c
18752 ${MAKE:-make} -f conftest.make >/dev/null
18753 rm -f conftest.make conftest.c conftest.dir/conftest.c
18754 rm -rf conftest.dir
18755 if test ! -f conftest.lo; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18757 $as_echo "no" >&6; }
18758 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18759 SOURCEFILE='`cat .source`'
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18762 $as_echo "yes" >&6; }
18763 SOURCEDETERMINE=':'
18770 # see if we want to build the library or everything
18771 ALLTARGET="alltargets"
18772 INSTALLTARGET="install-all"
18774 # Check whether --with-libunbound-only was given.
18775 if test "${with_libunbound_only+set}" = set; then :
18776 withval=$with_libunbound_only;
18777 if test "$withval" = "yes"; then
18779 INSTALLTARGET="install-lib"
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18789 $as_echo "$as_me: Stripping extension flags..." >&6;}
18791 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18792 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18794 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18799 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18800 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18802 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18807 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18808 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18810 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18815 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18816 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18818 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18823 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18824 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18826 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18831 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18832 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18834 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18839 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18840 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18842 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18847 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18848 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18850 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18855 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18858 cat >>confdefs.h <<_ACEOF
18859 #define MAXSYSLOGMSGLEN 10240
18867 date=`date +'%b %e, %Y'`
18870 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"
18872 ac_config_headers="$ac_config_headers config.h"
18874 cat >confcache <<\_ACEOF
18875 # This file is a shell script that caches the results of configure
18876 # tests run on this system so they can be shared between configure
18877 # scripts and configure runs, see configure's option --config-cache.
18878 # It is not useful on other systems. If it contains results you don't
18879 # want to keep, you may remove or edit it.
18881 # config.status only pays attention to the cache file if you give it
18882 # the --recheck option to rerun configure.
18884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18886 # following values.
18890 # The following way of writing the cache mishandles newlines in values,
18891 # but we know of no workaround that is simple, portable, and efficient.
18892 # So, we kill variables containing newlines.
18893 # Ultrix sh set writes to stderr and can't be redirected directly,
18894 # and sets the high bit in the cache file unless we assign to the vars.
18896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18897 eval ac_val=\$$ac_var
18901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18902 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18905 _ | IFS | as_nl) ;; #(
18906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18907 *) { eval $ac_var=; unset $ac_var;} ;;
18913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18914 *${as_nl}ac_space=\ *)
18915 # `set' does not quote correctly, so add quotes: double-quote
18916 # substitution turns \\\\ into \\, and sed turns \\ into \.
18919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18922 # `set' quotes correctly as required by POSIX, so do not add quotes.
18923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18937 if test -w "$cache_file"; then
18938 if test "x$cache_file" != "x/dev/null"; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18940 $as_echo "$as_me: updating cache $cache_file" >&6;}
18941 if test ! -f "$cache_file" || test -h "$cache_file"; then
18942 cat confcache >"$cache_file"
18944 case $cache_file in #(
18946 mv -f confcache "$cache_file"$$ &&
18947 mv -f "$cache_file"$$ "$cache_file" ;; #(
18949 mv -f confcache "$cache_file" ;;
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18961 # Let make expand exec_prefix.
18962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18964 DEFS=-DHAVE_CONFIG_H
18969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18970 # 1. Remove the extension, and $U if already installed.
18971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18972 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18974 # will be set to the directory where LIBOBJS objects are built.
18975 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18976 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18978 LIBOBJS=$ac_libobjs
18980 LTLIBOBJS=$ac_ltlibobjs
18984 : "${CONFIG_STATUS=./config.status}"
18986 ac_clean_files_save=$ac_clean_files
18987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18993 # Generated by $as_me.
18994 # Run this file to recreate the current configuration.
18995 # Compiler output produced by configure, useful for debugging
18996 # configure, is in config.log if it exists.
18999 ac_cs_recheck=false
19002 SHELL=\${CONFIG_SHELL-$SHELL}
19005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19006 ## -------------------- ##
19007 ## M4sh Initialization. ##
19008 ## -------------------- ##
19010 # Be more Bourne compatible
19011 DUALCASE=1; export DUALCASE # for MKS sh
19012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19015 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19016 # is contrary to our usage. Disable this feature.
19017 alias -g '${1+"$@"}'='"$@"'
19018 setopt NO_GLOB_SUBST
19020 case `(set -o) 2>/dev/null` in #(
19032 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19033 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19036 # Prefer a ksh shell builtin over an external printf program on Solaris,
19037 # but without wasting forks for bash or zsh.
19038 if test -z "$BASH_VERSION$ZSH_VERSION" \
19039 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19040 as_echo='print -r --'
19041 as_echo_n='print -rn --'
19042 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19043 as_echo='printf %s\n'
19044 as_echo_n='printf %s'
19046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19048 as_echo_n='/usr/ucb/echo -n'
19050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19051 as_echo_n_body='eval
19055 expr "X$arg" : "X\\(.*\\)$as_nl";
19056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19060 export as_echo_n_body
19061 as_echo_n='sh -c $as_echo_n_body as_echo'
19063 export as_echo_body
19064 as_echo='sh -c $as_echo_body as_echo'
19067 # The user is always right.
19068 if test "${PATH_SEPARATOR+set}" != set; then
19070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19078 # We need space, tab and new line, in precisely that order. Quoting is
19079 # there to prevent editors from complaining about space-tab.
19080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19081 # splitting by setting IFS to empty value.)
19084 # Find who we are. Look in the path if we contain no directory separator.
19087 *[\\/]* ) as_myself=$0 ;;
19088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19089 for as_dir in $PATH
19092 test -z "$as_dir" && as_dir=.
19093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19099 # We did not find ourselves, most probably we were run as `sh COMMAND'
19100 # in which case we are not to be found in the path.
19101 if test "x$as_myself" = x; then
19104 if test ! -f "$as_myself"; then
19105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19109 # Unset variables that we do not need and which cause bugs (e.g. in
19110 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19111 # suppresses any "Segmentation fault" message there. '((' could
19112 # trigger a bug in pdksh 5.2.14.
19113 for as_var in BASH_ENV ENV MAIL MAILPATH
19114 do eval test x\${$as_var+set} = xset \
19115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19131 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19132 # ----------------------------------------
19133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19135 # script with STATUS, using 1 if that was 0.
19138 as_status=$1; test $as_status -eq 0 && as_status=1
19140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19143 $as_echo "$as_me: error: $2" >&2
19144 as_fn_exit $as_status
19148 # as_fn_set_status STATUS
19149 # -----------------------
19150 # Set $? to STATUS, without forking.
19151 as_fn_set_status ()
19154 } # as_fn_set_status
19156 # as_fn_exit STATUS
19157 # -----------------
19158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19162 as_fn_set_status $1
19168 # Portably unset VAR.
19171 { eval $1=; unset $1;}
19173 as_unset=as_fn_unset
19174 # as_fn_append VAR VALUE
19175 # ----------------------
19176 # Append the text in VALUE to the end of the definition contained in VAR. Take
19177 # advantage of any shell optimizations that allow amortized linear growth over
19178 # repeated appends, instead of the typical quadratic growth present in naive
19180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19181 eval 'as_fn_append ()
19192 # as_fn_arith ARG...
19193 # ------------------
19194 # Perform arithmetic evaluation on the ARGs, and store the result in the
19195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19196 # must be portable across $(()) and expr.
19197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19198 eval 'as_fn_arith ()
19205 as_val=`expr "$@" || test $? -eq 1`
19210 if expr a : '\(a\)' >/dev/null 2>&1 &&
19211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19218 as_basename=basename
19223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19229 as_me=`$as_basename -- "$0" ||
19230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19231 X"$0" : 'X\(//\)$' \| \
19232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19234 sed '/^.*\/\([^/][^/]*\)\/*$/{
19248 # Avoid depending upon Character Ranges.
19249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19252 as_cr_digits='0123456789'
19253 as_cr_alnum=$as_cr_Letters$as_cr_digits
19255 ECHO_C= ECHO_N= ECHO_T=
19256 case `echo -n x` in #(((((
19258 case `echo 'xy\c'` in
19259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19268 rm -f conf$$ conf$$.exe conf$$.file
19269 if test -d conf$$.dir; then
19270 rm -f conf$$.dir/conf$$.file
19273 mkdir conf$$.dir 2>/dev/null
19275 if (echo >conf$$.file) 2>/dev/null; then
19276 if ln -s conf$$.file conf$$ 2>/dev/null; then
19278 # ... but there are two gotchas:
19279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19281 # In both cases, we have to default to `cp -pR'.
19282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19284 elif ln conf$$.file conf$$ 2>/dev/null; then
19292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19293 rmdir conf$$.dir 2>/dev/null
19298 # Create "$as_dir" as a directory, including parents if necessary.
19303 -*) as_dir=./$as_dir;;
19305 test -d "$as_dir" || eval $as_mkdir_p || {
19309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19310 *) as_qdir=$as_dir;;
19312 as_dirs="'$as_qdir' $as_dirs"
19313 as_dir=`$as_dirname -- "$as_dir" ||
19314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19315 X"$as_dir" : 'X\(//\)[^/]' \| \
19316 X"$as_dir" : 'X\(//\)$' \| \
19317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19318 $as_echo X"$as_dir" |
19319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19323 /^X\(\/\/\)[^/].*/{
19336 test -d "$as_dir" && break
19338 test -z "$as_dirs" || eval "mkdir $as_dirs"
19339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19343 if mkdir -p . 2>/dev/null; then
19344 as_mkdir_p='mkdir -p "$as_dir"'
19346 test -d ./-p && rmdir ./-p
19351 # as_fn_executable_p FILE
19352 # -----------------------
19353 # Test if FILE is an executable regular file.
19354 as_fn_executable_p ()
19356 test -f "$1" && test -x "$1"
19357 } # as_fn_executable_p
19358 as_test_x='test -x'
19359 as_executable_p=as_fn_executable_p
19361 # Sed expression to map a string onto a valid CPP name.
19362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19364 # Sed expression to map a string onto a valid variable name.
19365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19369 ## ----------------------------------- ##
19370 ## Main body of $CONFIG_STATUS script. ##
19371 ## ----------------------------------- ##
19373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19376 # Save the log message, to keep $0 and so on meaningful, and to
19377 # report actual input values of CONFIG_FILES etc. instead of their
19378 # values after options handling.
19380 This file was extended by unbound $as_me 1.5.3, which was
19381 generated by GNU Autoconf 2.69. Invocation command line was
19383 CONFIG_FILES = $CONFIG_FILES
19384 CONFIG_HEADERS = $CONFIG_HEADERS
19385 CONFIG_LINKS = $CONFIG_LINKS
19386 CONFIG_COMMANDS = $CONFIG_COMMANDS
19389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19394 case $ac_config_files in *"
19395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19398 case $ac_config_headers in *"
19399 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19404 # Files that config.status was made for.
19405 config_files="$ac_config_files"
19406 config_headers="$ac_config_headers"
19407 config_commands="$ac_config_commands"
19411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19413 \`$as_me' instantiates files and other configuration actions
19414 from templates according to the current configuration. Unless the files
19415 and actions are specified as TAGs, all are instantiated by default.
19417 Usage: $0 [OPTION]... [TAG]...
19419 -h, --help print this help, then exit
19420 -V, --version print version number and configuration settings, then exit
19421 --config print configuration, then exit
19422 -q, --quiet, --silent
19423 do not print progress messages
19424 -d, --debug don't remove temporary files
19425 --recheck update $as_me by reconfiguring in the same conditions
19426 --file=FILE[:TEMPLATE]
19427 instantiate the configuration file FILE
19428 --header=FILE[:TEMPLATE]
19429 instantiate the configuration header FILE
19431 Configuration files:
19434 Configuration headers:
19437 Configuration commands:
19440 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19446 unbound config.status 1.5.3
19447 configured by $0, generated by GNU Autoconf 2.69,
19448 with options \\"\$ac_cs_config\\"
19450 Copyright (C) 2012 Free Software Foundation, Inc.
19451 This config.status script is free software; the Free Software Foundation
19452 gives unlimited permission to copy, distribute and modify it."
19457 test -n "\$AWK" || AWK=awk
19460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19461 # The default lists apply if the user does not specify any file.
19467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19484 # Handling of the options.
19485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19488 $as_echo "$ac_cs_version"; exit ;;
19489 --config | --confi | --conf | --con | --co | --c )
19490 $as_echo "$ac_cs_config"; exit ;;
19491 --debug | --debu | --deb | --de | --d | -d )
19493 --file | --fil | --fi | --f )
19496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19497 '') as_fn_error $? "missing file argument" ;;
19499 as_fn_append CONFIG_FILES " '$ac_optarg'"
19500 ac_need_defaults=false;;
19501 --header | --heade | --head | --hea )
19504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19506 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19507 ac_need_defaults=false;;
19509 # Conflict between --help and --header
19510 as_fn_error $? "ambiguous option: \`$1'
19511 Try \`$0 --help' for more information.";;
19512 --help | --hel | -h )
19513 $as_echo "$ac_cs_usage"; exit ;;
19514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19518 # This is an error.
19519 -*) as_fn_error $? "unrecognized option: \`$1'
19520 Try \`$0 --help' for more information." ;;
19522 *) as_fn_append ac_config_targets " $1"
19523 ac_need_defaults=false ;;
19529 ac_configure_extra_args=
19531 if $ac_cs_silent; then
19533 ac_configure_extra_args="$ac_configure_extra_args --silent"
19537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19538 if \$ac_cs_recheck; then
19539 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19541 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19542 CONFIG_SHELL='$SHELL'
19543 export CONFIG_SHELL
19548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19553 ## Running $as_me. ##
19559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19565 # The HP-UX ksh and POSIX shell print the target directory to stdout
19566 # if CDPATH is set.
19567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19569 sed_quote_subst='$sed_quote_subst'
19570 double_quote_subst='$double_quote_subst'
19571 delay_variable_subst='$delay_variable_subst'
19572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19575 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19576 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19577 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19578 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19579 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19580 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19581 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19582 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19583 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19584 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19585 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19586 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19587 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19588 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19589 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19590 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19591 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19592 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19593 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19594 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19595 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19596 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19597 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19598 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19599 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19600 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19601 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19602 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19603 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19604 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19605 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19606 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19607 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19608 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19609 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19610 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19611 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19612 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19613 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19614 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19615 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19616 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19617 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19618 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19619 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19620 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19621 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19622 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19623 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19624 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19625 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19626 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19627 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19628 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"`'
19629 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19630 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19631 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19632 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19633 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19634 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19635 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19636 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19637 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19638 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19639 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19640 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19641 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19642 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19643 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19644 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19645 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19646 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19647 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19648 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19649 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19650 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19651 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19652 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19653 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19654 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19655 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19656 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19657 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19658 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19659 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19660 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19661 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19662 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19663 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19664 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19665 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19666 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19667 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19668 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19669 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19670 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19671 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19672 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19673 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19674 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19675 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19676 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19677 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19678 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19679 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19680 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19681 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19682 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19683 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19684 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19685 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19686 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19687 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19688 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19689 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19690 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19691 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19692 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19693 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19694 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19695 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19696 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19697 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19698 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19699 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19700 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19701 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19704 LTCFLAGS='$LTCFLAGS'
19705 compiler='$compiler_DEFAULT'
19707 # A function that is used when there is no print builtin or printf.
19708 func_fallback_echo ()
19710 eval 'cat <<_LTECHO_EOF
19715 # Quote evaled strings.
19730 deplibs_check_method \
19735 sharedlib_from_linklib_cmd \
19738 archiver_list_spec \
19744 lt_cv_sys_global_symbol_pipe \
19745 lt_cv_sys_global_symbol_to_cdecl \
19746 lt_cv_sys_global_symbol_to_c_name_address \
19747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19748 nm_file_list_spec \
19749 lt_prog_compiler_no_builtin_flag \
19750 lt_prog_compiler_pic \
19751 lt_prog_compiler_wl \
19752 lt_prog_compiler_static \
19753 lt_cv_prog_compiler_c_o \
19762 export_dynamic_flag_spec \
19763 whole_archive_flag_spec \
19764 compiler_needs_object \
19766 allow_undefined_flag \
19767 no_undefined_flag \
19768 hardcode_libdir_flag_spec \
19769 hardcode_libdir_separator \
19773 variables_saved_for_relink \
19775 library_names_spec \
19777 install_override_mode \
19781 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19782 *[\\\\\\\`\\"\\\$]*)
19783 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19786 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19791 # Double-quote double-evaled strings.
19792 for var in reload_cmds \
19793 old_postinstall_cmds \
19794 old_postuninstall_cmds \
19796 extract_expsyms_cmds \
19797 old_archive_from_new_cmds \
19798 old_archive_from_expsyms_cmds \
19800 archive_expsym_cmds \
19802 module_expsym_cmds \
19803 export_symbols_cmds \
19807 postuninstall_cmds \
19809 sys_lib_search_path_spec \
19810 sys_lib_dlsearch_path_spec; do
19811 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19812 *[\\\\\\\`\\"\\\$]*)
19813 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19816 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19821 ac_aux_dir='$ac_aux_dir'
19822 xsi_shell='$xsi_shell'
19823 lt_shell_append='$lt_shell_append'
19825 # See if we are running on zsh, and set the options which allow our
19826 # commands through without removal of \ escapes INIT.
19827 if test -n "\${ZSH_VERSION+set}" ; then
19828 setopt NO_GLOB_SUBST
19834 TIMESTAMP='$TIMESTAMP'
19843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19845 # Handling of arguments.
19846 for ac_config_target in $ac_config_targets
19848 case $ac_config_target in
19849 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19850 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19852 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19853 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19854 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19855 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19856 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19857 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19858 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19859 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
19860 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19861 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
19862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19869 # If the user did not use the arguments to specify the items to instantiate,
19870 # then the envvar interface is used. Set only those that are not.
19871 # We use the long form for the default assignment because of an extremely
19872 # bizarre bug on SunOS 4.1.3.
19873 if $ac_need_defaults; then
19874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19879 # Have a temporary directory for convenience. Make it in the build tree
19880 # simply because there is no reason against having it here, and in addition,
19881 # creating and moving files from /tmp can sometimes cause problems.
19882 # Hook for its removal unless debugging.
19883 # Note that there is a small window in which the directory will not be cleaned:
19884 # after its creation but before its name has been assigned to `$tmp'.
19888 trap 'exit_status=$?
19889 : "${ac_tmp:=$tmp}"
19890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19892 trap 'as_fn_exit 1' 1 2 13 15
19894 # Create a (secure) tmp directory for tmp files.
19897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19901 tmp=./conf$$-$RANDOM
19902 (umask 077 && mkdir "$tmp")
19903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19906 # Set up the scripts for CONFIG_FILES section.
19907 # No need to generate them if there are no CONFIG_FILES.
19908 # This happens for instance with `./config.status config.h'.
19909 if test -n "$CONFIG_FILES"; then
19912 ac_cr=`echo X | tr X '\015'`
19913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19914 # But we know of no other shell where ac_cr would be empty at this
19915 # point, so we can use a bashism as a fallback.
19916 if test "x$ac_cr" = x; then
19917 eval ac_cr=\$\'\\r\'
19919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19923 ac_cs_awk_cr=$ac_cr
19926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19931 echo "cat >conf$$subs.awk <<_ACEOF" &&
19932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19934 } >conf$$subs.sh ||
19935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19938 for ac_last_try in false false false false false :; do
19939 . ./conf$$subs.sh ||
19940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19943 if test $ac_delim_n = $ac_delim_num; then
19945 elif $ac_last_try; then
19946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19951 rm -f conf$$subs.sh
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19958 s/^/S["/; s/!.*/"]=/
19968 s/\(.\{148\}\)..*/\1/
19970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19982 s/\(.\{148\}\)..*/\1/
19984 s/["\\]/\\&/g; s/^/"/; s/$/"/
19988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19993 ' <conf$$subs.awk | sed '
19998 ' >>$CONFIG_STATUS || ac_write_fail=1
19999 rm -f conf$$subs.awk
20000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20003 for (key in S) S_is_set[key] = 1
20009 nfields = split(line, field, "@")
20011 len = length(field[1])
20012 for (i = 2; i < nfields; i++) {
20014 keylen = length(key)
20015 if (S_is_set[key]) {
20017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20018 len += length(value) + length(field[++i])
20029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20040 # trailing colons and then remove the whole line if VPATH becomes empty
20041 # (actually we leave an empty line to preserve line numbers).
20042 if test "x$srcdir" = x.; then
20043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20062 fi # test -n "$CONFIG_FILES"
20064 # Set up the scripts for CONFIG_HEADERS section.
20065 # No need to generate them if there are no CONFIG_HEADERS.
20066 # This happens for instance with `./config.status Makefile'.
20067 if test -n "$CONFIG_HEADERS"; then
20068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20072 # Transform confdefs.h into an awk script `defines.awk', embedded as
20073 # here-document in config.status, that substitutes the proper values into
20074 # config.h.in to produce config.h.
20076 # Create a delimiter string that does not exist in confdefs.h, to ease
20077 # handling of long lines.
20079 for ac_last_try in false false :; do
20080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20081 if test -z "$ac_tt"; then
20083 elif $ac_last_try; then
20084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20090 # For the awk script, D is an array of macro values keyed by name,
20091 # likewise P contains macro parameters if any. Preserve backslash
20092 # newline sequences.
20094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20096 s/.\{148\}/&'"$ac_delim"'/g
20099 s/^[ ]*#[ ]*define[ ][ ]*/ /
20106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20113 D["\1"]=" \3\\\\\\n"\\/p
20115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20120 s/.\{148\}/&'"$ac_delim"'/g
20125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20130 ' <confdefs.h | sed '
20131 s/'"$ac_delim"'/"\\\
20132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20135 for (key in D) D_is_set[key] = 1
20138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20140 split(line, arg, " ")
20141 if (arg[1] == "#") {
20145 defundef = substr(arg[1], 2)
20148 split(mac1, mac2, "(") #)
20150 prefix = substr(line, 1, index(line, defundef) - 1)
20151 if (D_is_set[macro]) {
20152 # Preserve the white space surrounding the "#".
20153 print prefix "define", macro P[macro] D[macro]
20156 # Replace #undef with comments. This is necessary, for example,
20157 # in the case of _POSIX_SOURCE, which is predefined and required
20158 # on some systems where configure will not decide to define it.
20159 if (defundef == "undef") {
20160 print "/*", prefix defundef, macro, "*/"
20168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20170 fi # test -n "$CONFIG_HEADERS"
20173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20178 :[FHLC]) ac_mode=$ac_tag; continue;;
20180 case $ac_mode$ac_tag in
20182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20183 :[FH]-) ac_tag=-:-;;
20184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20201 -) ac_f="$ac_tmp/stdin";;
20202 *) # Look for the file first in the build tree, then in the source tree
20203 # (if the path is not absolute). The absolute path cannot be DOS-style,
20204 # because $ac_f cannot contain `:'.
20208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20213 as_fn_append ac_file_inputs " '$ac_f'"
20216 # Let's still pretend it is `configure' which instantiates (i.e., don't
20217 # use $as_me), people would be surprised to read:
20218 # /* config.h. Generated by config.status. */
20219 configure_input='Generated from '`
20220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20222 if test x"$ac_file" != x-; then
20223 configure_input="$ac_file. $configure_input"
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20225 $as_echo "$as_me: creating $ac_file" >&6;}
20227 # Neutralize special characters interpreted by sed in replacement strings.
20228 case $configure_input in #(
20229 *\&* | *\|* | *\\* )
20230 ac_sed_conf_input=`$as_echo "$configure_input" |
20231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20232 *) ac_sed_conf_input=$configure_input;;
20236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20242 ac_dir=`$as_dirname -- "$ac_file" ||
20243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20244 X"$ac_file" : 'X\(//\)[^/]' \| \
20245 X"$ac_file" : 'X\(//\)$' \| \
20246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20247 $as_echo X"$ac_file" |
20248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20252 /^X\(\/\/\)[^/].*/{
20265 as_dir="$ac_dir"; as_fn_mkdir_p
20269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20272 # A ".." for each directory in $ac_dir_suffix.
20273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20274 case $ac_top_builddir_sub in
20275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20279 ac_abs_top_builddir=$ac_pwd
20280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20281 # for backward compatibility:
20282 ac_top_builddir=$ac_top_build_prefix
20285 .) # We are building in place.
20287 ac_top_srcdir=$ac_top_builddir_sub
20288 ac_abs_top_srcdir=$ac_pwd ;;
20289 [\\/]* | ?:[\\/]* ) # Absolute name.
20290 ac_srcdir=$srcdir$ac_dir_suffix;
20291 ac_top_srcdir=$srcdir
20292 ac_abs_top_srcdir=$srcdir ;;
20293 *) # Relative name.
20294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20295 ac_top_srcdir=$ac_top_build_prefix$srcdir
20296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20310 # If the template does not know about datarootdir, expand it.
20311 # FIXME: This hack should be removed a few years after 2.60.
20312 ac_datarootdir_hack=; ac_datarootdir_seen=
20323 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20324 *datarootdir*) ac_datarootdir_seen=yes;;
20325 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20327 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20330 ac_datarootdir_hack='
20331 s&@datadir@&$datadir&g
20332 s&@docdir@&$docdir&g
20333 s&@infodir@&$infodir&g
20334 s&@localedir@&$localedir&g
20335 s&@mandir@&$mandir&g
20336 s&\\\${datarootdir}&$datarootdir&g' ;;
20340 # Neutralize VPATH when `$srcdir' = `.'.
20341 # Shell code in configure.ac might set extrasub.
20342 # FIXME: do we really want to maintain this feature?
20343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20344 ac_sed_extra="$ac_vpsub
20347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20350 s|@configure_input@|$ac_sed_conf_input|;t t
20351 s&@top_builddir@&$ac_top_builddir_sub&;t t
20352 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20353 s&@srcdir@&$ac_srcdir&;t t
20354 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20355 s&@top_srcdir@&$ac_top_srcdir&;t t
20356 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20357 s&@builddir@&$ac_builddir&;t t
20358 s&@abs_builddir@&$ac_abs_builddir&;t t
20359 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20360 $ac_datarootdir_hack
20362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20368 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20370 which seems to be undefined. Please make sure it is defined" >&5
20371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20372 which seems to be undefined. Please make sure it is defined" >&2;}
20374 rm -f "$ac_tmp/stdin"
20376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20385 if test x"$ac_file" != x-; then
20387 $as_echo "/* $configure_input */" \
20388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20389 } >"$ac_tmp/config.h" \
20390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20396 mv "$ac_tmp/config.h" "$ac_file" \
20397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20400 $as_echo "/* $configure_input */" \
20401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20402 || as_fn_error $? "could not create -" "$LINENO" 5
20406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20407 $as_echo "$as_me: executing $ac_file commands" >&6;}
20412 case $ac_file$ac_mode in
20415 # See if we are running on zsh, and set the options which allow our
20416 # commands through without removal of \ escapes.
20417 if test -n "${ZSH_VERSION+set}" ; then
20418 setopt NO_GLOB_SUBST
20421 cfgfile="${ofile}T"
20422 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20425 cat <<_LT_EOF >> "$cfgfile"
20428 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20429 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20433 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20434 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20436 # Written by Gordon Matzigkeit, 1996
20438 # This file is part of GNU Libtool.
20440 # GNU Libtool is free software; you can redistribute it and/or
20441 # modify it under the terms of the GNU General Public License as
20442 # published by the Free Software Foundation; either version 2 of
20443 # the License, or (at your option) any later version.
20445 # As a special exception to the GNU General Public License,
20446 # if you distribute this file as part of a program or library that
20447 # is built using GNU Libtool, you may include this file under the
20448 # same distribution terms that you use for the rest of that program.
20450 # GNU Libtool is distributed in the hope that it will be useful,
20451 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20453 # GNU General Public License for more details.
20455 # You should have received a copy of the GNU General Public License
20456 # along with GNU Libtool; see the file COPYING. If not, a copy
20457 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20458 # obtained by writing to the Free Software Foundation, Inc.,
20459 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20462 # The names of the tagged configurations supported by this script.
20465 # ### BEGIN LIBTOOL CONFIG
20467 # Which release of libtool.m4 was used?
20468 macro_version=$macro_version
20469 macro_revision=$macro_revision
20471 # Whether or not to build shared libraries.
20472 build_libtool_libs=$enable_shared
20474 # Whether or not to build static libraries.
20475 build_old_libs=$enable_static
20477 # What type of objects to build.
20480 # Whether or not to optimize for fast installation.
20481 fast_install=$enable_fast_install
20483 # Shell to use when invoking shell scripts.
20486 # An echo program that protects backslashes.
20489 # The PATH separator for the build system.
20490 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20493 host_alias=$host_alias
20497 # The build system.
20498 build_alias=$build_alias
20502 # A sed program that does not truncate output.
20505 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20506 Xsed="\$SED -e 1s/^X//"
20508 # A grep program that handles long lines.
20514 # A literal string matcher.
20517 # A BSD- or MS-compatible name lister.
20520 # Whether we need soft or hard links.
20523 # What is the maximum length of a command?
20524 max_cmd_len=$max_cmd_len
20526 # Object file suffix (normally "o").
20529 # Executable file suffix (normally "").
20532 # whether the shell understands "unset".
20535 # turn spaces into newlines.
20538 # turn newlines into spaces.
20541 # convert \$build file names to \$host format.
20542 to_host_file_cmd=$lt_cv_to_host_file_cmd
20544 # convert \$build files to toolchain format.
20545 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20547 # An object symbol dumper.
20548 OBJDUMP=$lt_OBJDUMP
20550 # Method to check whether dependent libraries are shared objects.
20551 deplibs_check_method=$lt_deplibs_check_method
20553 # Command to use when deplibs_check_method = "file_magic".
20554 file_magic_cmd=$lt_file_magic_cmd
20556 # How to find potential files when deplibs_check_method = "file_magic".
20557 file_magic_glob=$lt_file_magic_glob
20559 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20560 want_nocaseglob=$lt_want_nocaseglob
20562 # DLL creation program.
20563 DLLTOOL=$lt_DLLTOOL
20565 # Command to associate shared and link libraries.
20566 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20571 # Flags to create an archive.
20572 AR_FLAGS=$lt_AR_FLAGS
20574 # How to feed a file listing to the archiver.
20575 archiver_list_spec=$lt_archiver_list_spec
20577 # A symbol stripping program.
20580 # Commands used to install an old-style archive.
20582 old_postinstall_cmds=$lt_old_postinstall_cmds
20583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20585 # Whether to use a lock for old archive extraction.
20586 lock_old_archive_extraction=$lock_old_archive_extraction
20591 # LTCC compiler flags.
20592 LTCFLAGS=$lt_CFLAGS
20594 # Take the output of nm and produce a listing of raw symbols and C names.
20595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20597 # Transform the output of nm in a proper C declaration.
20598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20600 # Transform the output of nm in a C name address pair.
20601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20603 # Transform the output of nm in a C name address pair when lib prefix is needed.
20604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20606 # Specify filename containing input files for \$NM.
20607 nm_file_list_spec=$lt_nm_file_list_spec
20609 # The root where to search for dependent libraries,and in which our libraries should be installed.
20610 lt_sysroot=$lt_sysroot
20612 # The name of the directory that contains temporary libtool files.
20615 # Used to examine libraries when file_magic_cmd begins with "file".
20616 MAGIC_CMD=$MAGIC_CMD
20618 # Must we lock files when doing compilation?
20619 need_locks=$lt_need_locks
20622 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20624 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20625 DSYMUTIL=$lt_DSYMUTIL
20627 # Tool to change global to local symbols on Mac OS X.
20630 # Tool to manipulate fat objects and archives on Mac OS X.
20633 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20636 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20637 OTOOL64=$lt_OTOOL64
20639 # Old archive suffix (normally "a").
20642 # Shared library suffix (normally ".so").
20643 shrext_cmds=$lt_shrext_cmds
20645 # The commands to extract the exported symbol list from a shared archive.
20646 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20648 # Variables whose values should be saved in libtool wrapper scripts and
20649 # restored at link time.
20650 variables_saved_for_relink=$lt_variables_saved_for_relink
20652 # Do we need the "lib" prefix for modules?
20653 need_lib_prefix=$need_lib_prefix
20655 # Do we need a version for libraries?
20656 need_version=$need_version
20658 # Library versioning type.
20659 version_type=$version_type
20661 # Shared library runtime path variable.
20662 runpath_var=$runpath_var
20664 # Shared library path variable.
20665 shlibpath_var=$shlibpath_var
20667 # Is shlibpath searched before the hard-coded library search path?
20668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20670 # Format of library name prefix.
20671 libname_spec=$lt_libname_spec
20673 # List of archive names. First name is the real one, the rest are links.
20674 # The last name is the one that the linker finds with -lNAME
20675 library_names_spec=$lt_library_names_spec
20677 # The coded name of the library, if different from the real name.
20678 soname_spec=$lt_soname_spec
20680 # Permission mode override for installation of shared libraries.
20681 install_override_mode=$lt_install_override_mode
20683 # Command to use after installation of a shared archive.
20684 postinstall_cmds=$lt_postinstall_cmds
20686 # Command to use after uninstallation of a shared archive.
20687 postuninstall_cmds=$lt_postuninstall_cmds
20689 # Commands used to finish a libtool library installation in a directory.
20690 finish_cmds=$lt_finish_cmds
20692 # As "finish_cmds", except a single script fragment to be evaled but
20694 finish_eval=$lt_finish_eval
20696 # Whether we should hardcode library paths into libraries.
20697 hardcode_into_libs=$hardcode_into_libs
20699 # Compile-time system search path for libraries.
20700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20702 # Run-time system search path for libraries.
20703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20705 # Whether dlopen is supported.
20706 dlopen_support=$enable_dlopen
20708 # Whether dlopen of programs is supported.
20709 dlopen_self=$enable_dlopen_self
20711 # Whether dlopen of statically linked programs is supported.
20712 dlopen_self_static=$enable_dlopen_self_static
20714 # Commands to strip libraries.
20715 old_striplib=$lt_old_striplib
20716 striplib=$lt_striplib
20719 # The linker used to build libraries.
20722 # How to create reloadable object files.
20723 reload_flag=$lt_reload_flag
20724 reload_cmds=$lt_reload_cmds
20726 # Commands used to build an old-style archive.
20727 old_archive_cmds=$lt_old_archive_cmds
20729 # A language specific compiler.
20732 # Is the compiler the GNU compiler?
20735 # Compiler flag to turn off builtin functions.
20736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20738 # Additional compiler flags for building library objects.
20739 pic_flag=$lt_lt_prog_compiler_pic
20741 # How to pass a linker flag through the compiler.
20742 wl=$lt_lt_prog_compiler_wl
20744 # Compiler flag to prevent dynamic linking.
20745 link_static_flag=$lt_lt_prog_compiler_static
20747 # Does compiler simultaneously support -c and -o options?
20748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20750 # Whether or not to add -lc for building shared libraries.
20751 build_libtool_need_lc=$archive_cmds_need_lc
20753 # Whether or not to disallow shared libs when runtime libs are static.
20754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20756 # Compiler flag to allow reflexive dlopens.
20757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20759 # Compiler flag to generate shared objects directly from archives.
20760 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20762 # Whether the compiler copes with passing no objects directly.
20763 compiler_needs_object=$lt_compiler_needs_object
20765 # Create an old-style archive from a shared archive.
20766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20768 # Create a temporary old-style archive to link instead of a shared archive.
20769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20771 # Commands used to build a shared archive.
20772 archive_cmds=$lt_archive_cmds
20773 archive_expsym_cmds=$lt_archive_expsym_cmds
20775 # Commands used to build a loadable module if different from building
20776 # a shared archive.
20777 module_cmds=$lt_module_cmds
20778 module_expsym_cmds=$lt_module_expsym_cmds
20780 # Whether we are building with GNU ld or not.
20781 with_gnu_ld=$lt_with_gnu_ld
20783 # Flag that allows shared libraries with undefined symbols to be built.
20784 allow_undefined_flag=$lt_allow_undefined_flag
20786 # Flag that enforces no undefined symbols.
20787 no_undefined_flag=$lt_no_undefined_flag
20789 # Flag to hardcode \$libdir into a binary during linking.
20790 # This must work even if \$libdir does not exist
20791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20793 # Whether we need a single "-rpath" flag with a separated argument.
20794 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20797 # DIR into the resulting binary.
20798 hardcode_direct=$hardcode_direct
20800 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20801 # DIR into the resulting binary and the resulting library dependency is
20802 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20803 # library is relocated.
20804 hardcode_direct_absolute=$hardcode_direct_absolute
20806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20807 # into the resulting binary.
20808 hardcode_minus_L=$hardcode_minus_L
20810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20811 # into the resulting binary.
20812 hardcode_shlibpath_var=$hardcode_shlibpath_var
20814 # Set to "yes" if building a shared library automatically hardcodes DIR
20815 # into the library and all subsequent libraries and executables linked
20817 hardcode_automatic=$hardcode_automatic
20819 # Set to yes if linker adds runtime paths of dependent libraries
20820 # to runtime path list.
20821 inherit_rpath=$inherit_rpath
20823 # Whether libtool must link a program against all its dependency libraries.
20824 link_all_deplibs=$link_all_deplibs
20826 # Set to "yes" if exported symbols are required.
20827 always_export_symbols=$always_export_symbols
20829 # The commands to list exported symbols.
20830 export_symbols_cmds=$lt_export_symbols_cmds
20832 # Symbols that should not be listed in the preloaded symbols.
20833 exclude_expsyms=$lt_exclude_expsyms
20835 # Symbols that must always be exported.
20836 include_expsyms=$lt_include_expsyms
20838 # Commands necessary for linking programs (against libraries) with templates.
20839 prelink_cmds=$lt_prelink_cmds
20841 # Commands necessary for finishing linking programs.
20842 postlink_cmds=$lt_postlink_cmds
20844 # Specify filename containing input files.
20845 file_list_spec=$lt_file_list_spec
20847 # How to hardcode a shared library path into an executable.
20848 hardcode_action=$hardcode_action
20850 # ### END LIBTOOL CONFIG
20856 cat <<\_LT_EOF >> "$cfgfile"
20857 # AIX sometimes has problems with the GCC collect2 program. For some
20858 # reason, if we set the COLLECT_NAMES environment variable, the problems
20859 # vanish in a puff of smoke.
20860 if test "X${COLLECT_NAMES+set}" != Xset; then
20862 export COLLECT_NAMES
20869 ltmain="$ac_aux_dir/ltmain.sh"
20872 # We use sed instead of cat because bash on DJGPP gets confused if
20873 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20874 # text mode, it properly converts lines to CR/LF. This bash problem
20875 # is reportedly fixed, but why not run on old versions too?
20876 sed '$q' "$ltmain" >> "$cfgfile" \
20877 || (rm -f "$cfgfile"; exit 1)
20879 if test x"$xsi_shell" = xyes; then
20880 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20884 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20885 \ * ) func_dirname_result="${3}" ;;\
20887 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20888 && mv -f "$cfgfile.tmp" "$cfgfile" \
20889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20890 test 0 -eq $? || _lt_function_replace_fail=:
20893 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20896 \ func_basename_result="${1##*/}"\
20897 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20898 && mv -f "$cfgfile.tmp" "$cfgfile" \
20899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20900 test 0 -eq $? || _lt_function_replace_fail=:
20903 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20904 func_dirname_and_basename ()\
20907 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20908 \ * ) func_dirname_result="${3}" ;;\
20910 \ func_basename_result="${1##*/}"\
20911 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20912 && mv -f "$cfgfile.tmp" "$cfgfile" \
20913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20914 test 0 -eq $? || _lt_function_replace_fail=:
20917 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20920 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20921 \ # positional parameters, so assign one to ordinary parameter first.\
20922 \ func_stripname_result=${3}\
20923 \ func_stripname_result=${func_stripname_result#"${1}"}\
20924 \ func_stripname_result=${func_stripname_result%"${2}"}\
20925 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20926 && mv -f "$cfgfile.tmp" "$cfgfile" \
20927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20928 test 0 -eq $? || _lt_function_replace_fail=:
20931 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20932 func_split_long_opt ()\
20934 \ func_split_long_opt_name=${1%%=*}\
20935 \ func_split_long_opt_arg=${1#*=}\
20936 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20937 && mv -f "$cfgfile.tmp" "$cfgfile" \
20938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20939 test 0 -eq $? || _lt_function_replace_fail=:
20942 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20943 func_split_short_opt ()\
20945 \ func_split_short_opt_arg=${1#??}\
20946 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20947 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20948 && mv -f "$cfgfile.tmp" "$cfgfile" \
20949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20950 test 0 -eq $? || _lt_function_replace_fail=:
20953 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20957 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20958 \ *) func_lo2o_result=${1} ;;\
20960 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20961 && mv -f "$cfgfile.tmp" "$cfgfile" \
20962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20963 test 0 -eq $? || _lt_function_replace_fail=:
20966 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20969 func_xform_result=${1%.*}.lo\
20970 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20971 && mv -f "$cfgfile.tmp" "$cfgfile" \
20972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20973 test 0 -eq $? || _lt_function_replace_fail=:
20976 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20979 func_arith_result=$(( $* ))\
20980 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20981 && mv -f "$cfgfile.tmp" "$cfgfile" \
20982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20983 test 0 -eq $? || _lt_function_replace_fail=:
20986 sed -e '/^func_len ()$/,/^} # func_len /c\
20989 func_len_result=${#1}\
20990 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20991 && mv -f "$cfgfile.tmp" "$cfgfile" \
20992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20993 test 0 -eq $? || _lt_function_replace_fail=:
20997 if test x"$lt_shell_append" = xyes; then
20998 sed -e '/^func_append ()$/,/^} # func_append /c\
21001 eval "${1}+=\\${2}"\
21002 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21003 && mv -f "$cfgfile.tmp" "$cfgfile" \
21004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21005 test 0 -eq $? || _lt_function_replace_fail=:
21008 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21009 func_append_quoted ()\
21011 \ func_quote_for_eval "${2}"\
21012 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21013 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21014 && mv -f "$cfgfile.tmp" "$cfgfile" \
21015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21016 test 0 -eq $? || _lt_function_replace_fail=:
21019 # Save a `func_append' function call where possible by direct use of '+='
21020 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21021 && mv -f "$cfgfile.tmp" "$cfgfile" \
21022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21023 test 0 -eq $? || _lt_function_replace_fail=:
21025 # Save a `func_append' function call even when '+=' is not available
21026 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21027 && mv -f "$cfgfile.tmp" "$cfgfile" \
21028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21029 test 0 -eq $? || _lt_function_replace_fail=:
21032 if test x"$_lt_function_replace_fail" = x":"; then
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21034 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21038 mv -f "$cfgfile" "$ofile" ||
21039 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21044 sed < libtool > libtool-2 \
21045 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21046 mv libtool-2 libtool
21048 libtool="./libtool"
21057 ac_clean_files=$ac_clean_files_save
21059 test $ac_write_fail = 0 ||
21060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21063 # configure is writing to config.log, and then calls config.status.
21064 # config.status does its own redirection, appending to config.log.
21065 # Unfortunately, on DOS this fails, as config.log is still kept open
21066 # by configure, so config.status won't be able to write to it; its
21067 # output is simply discarded. So we exec the FD to /dev/null,
21068 # effectively closing config.log, so it can be properly (re)opened and
21069 # appended to by config.status. When coming back to configure, we
21070 # need to make the FD available again.
21071 if test "$no_create" != yes; then
21073 ac_config_status_args=
21074 test "$silent" = yes &&
21075 ac_config_status_args="$ac_config_status_args --quiet"
21077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21080 # would make configure fail if this is the last instruction.
21081 $ac_cs_success || as_fn_exit 1
21083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}