2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.8.
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.8'
594 PACKAGE_STRING='unbound 1.5.8'
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
734 UNBOUND_ROOTCERT_FILE
755 UNBOUND_VERSION_MICRO
756 UNBOUND_VERSION_MINOR
757 UNBOUND_VERSION_MAJOR
785 program_transform_name
798 enable_option_checking
824 enable_alloc_nonregional
842 with_dnstap_socket_path
847 ac_precious_vars='build_alias
862 # Initialize some variables set by options.
864 ac_init_version=false
865 ac_unrecognized_opts=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name=s,x,x,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures unbound 1.5.8 to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of unbound 1.5.8:";;
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-checking Enable warnings, asserts, makefile-dependencies
1474 --enable-debug same as enable-checking
1475 --disable-flto Disable link-time optimization (gcc specific option)
1476 --enable-pie Enable Position-Independent Executable (eg. to fully
1477 benefit from ASLR, small performance penalty)
1478 --enable-relro-now Enable full relocation binding at load-time (RELRO
1479 NOW, to protect GOT and .dtor areas)
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-rpath disable hardcoded rpath (default=enabled)
1486 --disable-largefile omit support for large files
1487 --enable-alloc-checks enable to memory allocation statistics, for debug
1489 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1491 --enable-alloc-nonregional
1492 enable nonregional allocs, slow but exposes regional
1493 allocations to other memory purifiers, for debug
1495 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1496 --disable-gost Disable GOST support
1497 --disable-ecdsa Disable ECDSA support
1498 --enable-event-api Enable (experimental) libevent-based libunbound API
1499 installed to unbound-event.h
1500 --enable-static-exe enable to compile executables statically against
1501 (event) libs, for debug purposes
1502 --enable-lock-checks enable to check lock and unlock calls, for debug
1504 --enable-allsymbols export all symbols from libunbound and link binaries
1505 to it, smaller install size but libunbound export
1506 table is polluted by internal symbols
1507 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-conf-file=path Pathname to the Unbound configuration file
1513 --with-run-dir=path set default directory to chdir to (by default dir
1515 --with-chroot-dir=path set default directory to chroot to (by default same
1517 --with-share-dir=path set default directory with shared data (by default
1518 same as share/unbound)
1519 --with-pidfile=filename set default pathname to unbound pidfile (default
1520 run-dir/unbound.pid)
1521 --with-rootkey-file=filename
1522 set default pathname to root key file (default
1523 run-dir/root.key). This file is read and written.
1524 --with-rootcert-file=filename
1525 set default pathname to root update certificate file
1526 (default run-dir/icannbundle.pem). This file need
1527 not exist if you are content with the builtin.
1528 --with-username=user set default user that unbound changes to (default
1530 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 --with-aix-soname=aix|svr4|both
1533 shared library versioning (aka "SONAME") variant to
1534 provide on AIX, [default=aix].
1535 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1536 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1537 compiler's sysroot if not specified).
1538 --with-pthreads use pthreads library, or --without-pthreads to
1539 disable threading support.
1540 --with-solaris-threads use solaris native thread library.
1541 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1543 --with-pythonmodule build Python module, or --without-pythonmodule to
1544 disable script engine. (default=no)
1545 --with-nss=path use libnss instead of openssl, installed at path.
1546 --with-nettle=path use libnettle as crypto library, installed at path.
1547 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1548 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1550 --with-libevent=pathname
1551 use libevent (will check /usr/local /opt/local
1552 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1553 an explicit path). Slower, but allows use of large
1554 outgoing port ranges.
1555 --with-libexpat=path specify explicit path for libexpat.
1556 --with-dnstap-socket-path=pathname
1557 set default dnstap socket path
1558 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1559 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1560 --with-libunbound-only do not build daemon and tool programs
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1571 YACC The `Yet Another Compiler Compiler' implementation to use.
1572 Defaults to the first program found out of: `bison -y', `byacc',
1574 YFLAGS The list of arguments that will be passed by default to $YACC.
1575 This script will default YFLAGS to the empty string to avoid a
1576 default value of `-d' given by some make applications.
1578 User-defined run-time library search path.
1580 The installed Python version to use, for example '2.3'. This
1581 string will be appended to the Python interpreter canonical
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1587 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1617 .) # We are building in place.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1650 unbound configure 1.5.8
1651 generated by GNU Autoconf 2.69
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } > conftest.i && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1740 # -------------------------------------------------------
1741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1742 # the include files in INCLUDES and setting the cache variable VAR
1744 ac_fn_c_check_header_mongrel ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if eval \${$3+:} false; then :
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1757 # Is the header compilable?
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1759 $as_echo_n "checking $2 usability... " >&6; }
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_header_compiler=yes
1768 ac_header_compiler=no
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1772 $as_echo "$ac_header_compiler" >&6; }
1774 # Is the header present?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1776 $as_echo_n "checking $2 presence... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1781 if ac_fn_c_try_cpp "$LINENO"; then :
1782 ac_header_preproc=yes
1784 ac_header_preproc=no
1786 rm -f conftest.err conftest.i conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1788 $as_echo "$ac_header_preproc" >&6; }
1790 # So? What about this header?
1791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1802 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1806 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 ( $as_echo "## ---------------------------------------- ##
1810 ## Report this to unbound-bugs@nlnetlabs.nl ##
1811 ## ---------------------------------------- ##"
1812 ) | sed "s/^/$as_me: WARNING: /" >&2
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1820 eval "$3=\$ac_header_compiler"
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 } # ac_fn_c_check_header_mongrel
1830 # ac_fn_c_try_run LINENO
1831 # ----------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1833 # that executables *can* be run.
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_link"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>&5
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1848 { { case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_try") 2>&5
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; }; }; then :
1860 $as_echo "$as_me: program exited with status $ac_status" >&5
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=$ac_status
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1872 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists and can be compiled using the include files in
1875 # INCLUDES, setting the cache variable VAR accordingly.
1876 ac_fn_c_check_header_compile ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_header_compile
1903 # ac_fn_c_try_link LINENO
1904 # -----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext conftest$ac_exeext
1910 if { { ac_try="$ac_link"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>conftest.err
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_c_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest$ac_exeext && {
1929 test "$cross_compiling" = yes ||
1930 test -x conftest$ac_exeext
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1941 # interfere with the next link command; also delete a directory that is
1942 # left behind by Apple's compiler. We do this before executing the actions.
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1947 } # ac_fn_c_try_link
1949 # ac_fn_c_check_func LINENO FUNC VAR
1950 # ----------------------------------
1951 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1952 ac_fn_c_check_func ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1964 #define $2 innocuous_$2
1966 /* System header to define __stub macros and hopefully few prototypes,
1967 which can conflict with char $2 (); below.
1968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1969 <limits.h> exists even on freestanding compilers. */
1972 # include <limits.h>
1974 # include <assert.h>
1979 /* Override any GCC internal prototype to avoid an error.
1980 Use char because int might match the return type of a GCC
1981 builtin and then its argument prototype would still apply. */
1986 /* The GNU C library defines this for functions which it implements
1987 to always fail with ENOSYS. Some functions are actually named
1988 something starting with __ and the normal name is an alias. */
1989 #if defined __stub_$2 || defined __stub___$2
2001 if ac_fn_c_try_link "$LINENO"; then :
2006 rm -f core conftest.err conftest.$ac_objext \
2007 conftest$ac_exeext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_func
2016 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2017 # -------------------------------------------
2018 # Tests whether TYPE exists after having included INCLUDES, setting cache
2019 # variable VAR accordingly.
2020 ac_fn_c_check_type ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2054 if ac_fn_c_try_compile "$LINENO"; then :
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 } # ac_fn_c_check_type
2070 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071 # --------------------------------------------
2072 # Tries to find the compile-time value of EXPR in a program that includes
2073 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2075 ac_fn_c_compute_int ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) >= 0)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 return test_array [0];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2130 static int test_array [1 - 2 * !(($2) < 0)];
2132 return test_array [0];
2138 if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2149 return test_array [0];
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_lo=$ac_mid; break
2158 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2159 if test $ac_mid -le $ac_hi; then
2163 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 # Binary search between lo and hi bounds.
2174 while test "x$ac_lo" != "x$ac_hi"; do
2175 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 return test_array [0];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2213 FILE *f = fopen ("conftest.val", "w");
2218 long int i = longval ();
2221 fprintf (f, "%ld", i);
2225 unsigned long int i = ulongval ();
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2254 # ---------------------------------------------
2255 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2257 ac_fn_c_check_decl ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 as_decl_name=`echo $2|sed 's/ *(.*//'`
2261 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2263 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2264 if eval \${$3+:} false; then :
2265 $as_echo_n "(cached) " >&6
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 #ifndef $as_decl_name
2275 (void) $as_decl_use;
2277 (void) $as_decl_name;
2285 if ac_fn_c_try_compile "$LINENO"; then :
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_decl
2299 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2300 # ----------------------------------------------------
2301 # Tries to find if the field MEMBER exists in type AGGR, after including
2302 # INCLUDES, setting cache variable VAR accordingly.
2303 ac_fn_c_check_member ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2307 $as_echo_n "checking for $2.$3... " >&6; }
2308 if eval \${$4+:} false; then :
2309 $as_echo_n "(cached) " >&6
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2324 if ac_fn_c_try_compile "$LINENO"; then :
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2334 if (sizeof ac_aggr.$3)
2340 if ac_fn_c_try_compile "$LINENO"; then :
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 } # ac_fn_c_check_member
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2359 It was created by unbound $as_me 1.5.8, which was
2360 generated by GNU Autoconf 2.69. Invocation command line was
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2420 ac_must_keep_next=false
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 -* ) ac_must_keep_next=true ;;
2452 as_fn_append ac_configure_args " '$ac_arg'"
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2470 $as_echo "## ---------------- ##
2471 ## Cache variables. ##
2472 ## ---------------- ##"
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2506 $as_echo "## ----------------- ##
2507 ## Output variables. ##
2508 ## ----------------- ##"
2510 for ac_var in $ac_subst_vars
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2520 if test -n "$ac_subst_files"; then
2521 $as_echo "## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##"
2525 for ac_var in $ac_subst_files
2527 eval ac_val=\$$ac_var
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -s confdefs.h; then
2537 $as_echo "## ----------- ##
2544 test "$ac_signal" != 0 &&
2545 $as_echo "$as_me: caught signal $ac_signal"
2546 $as_echo "$as_me: exit $exit_status"
2548 rm -f core *.core core.conftest.* &&
2549 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 for ac_signal in 1 2 13 15; do
2553 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2558 rm -f -r conftest* confdefs.h
2560 $as_echo "/* confdefs.h */" > confdefs.h
2562 # Predefined preprocessor variables.
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_NAME "$PACKAGE_NAME"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_STRING "$PACKAGE_STRING"
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_URL "$PACKAGE_URL"
2589 # Let the site file select an alternate cache file if it wants to.
2590 # Prefer an explicitly selected file to automatically selected ones.
2593 if test -n "$CONFIG_SITE"; then
2594 # We do not want a PATH search for config.site.
2595 case $CONFIG_SITE in #((
2596 -*) ac_site_file1=./$CONFIG_SITE;;
2597 */*) ac_site_file1=$CONFIG_SITE;;
2598 *) ac_site_file1=./$CONFIG_SITE;;
2600 elif test "x$prefix" != xNONE; then
2601 ac_site_file1=$prefix/share/config.site
2602 ac_site_file2=$prefix/etc/config.site
2604 ac_site_file1=$ac_default_prefix/share/config.site
2605 ac_site_file2=$ac_default_prefix/etc/config.site
2607 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 test "x$ac_site_file" = xNONE && continue
2610 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2612 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2613 sed 's/^/| /' "$ac_site_file" >&5
2615 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 as_fn_error $? "failed to load site script $ac_site_file
2618 See \`config.log' for more details" "$LINENO" 5; }
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2639 # Check that the precious variables saved in the cache have kept the same
2641 ac_cache_corrupted=false
2642 for ac_var in $ac_precious_vars; do
2643 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644 eval ac_new_set=\$ac_env_${ac_var}_set
2645 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646 eval ac_new_val=\$ac_env_${ac_var}_value
2647 case $ac_old_set,$ac_new_set in
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651 ac_cache_corrupted=: ;;
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2658 if test "x$ac_old_val" != "x$ac_new_val"; then
2659 # differences in whitespace do not lead to failure.
2660 ac_old_val_w=`echo x $ac_old_val`
2661 ac_new_val_w=`echo x $ac_new_val`
2662 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665 ac_cache_corrupted=:
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669 eval $ac_var=\$ac_old_val
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 # Pass precious variables to config.status.
2678 if test "$ac_new_set" = set; then
2680 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681 *) ac_arg=$ac_var=$ac_new_val ;;
2683 case " $ac_configure_args " in
2684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2685 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2689 if $ac_cache_corrupted; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 UNBOUND_VERSION_MAJOR=1
2709 UNBOUND_VERSION_MINOR=5
2711 UNBOUND_VERSION_MICRO=8
2714 LIBUNBOUND_CURRENT=6
2715 LIBUNBOUND_REVISION=0
2724 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2729 # 1.4.0-snapshots had 1:5:0
2730 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2744 # and 1.4.13p1 and 1.4.13.p2
2746 # 1.4.15 had 3:0:1 # adds ub_version()
2751 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2754 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2762 # 1.5.8 had 6:0:4 # adds ub_ctx_set_stub
2764 # Current -- the number of the binary API that we're implementing
2765 # Revision -- which iteration of the implementation of the binary
2766 # API are we supplying?
2767 # Age -- How many previous binary API versions do we also
2770 # If we release a new version that does not change the binary API,
2771 # increment Revision.
2773 # If we release a new version that changes the binary API, but does
2774 # not break programs compiled against the old binary API, increment
2775 # Current and Age. Set Revision to 0, since this is the first
2776 # implementation of the new API.
2778 # Otherwise, we're changing the binary API and breaking bakward
2779 # compatibility with old binaries. Increment Current. Set Age to 0,
2780 # since we're backward compatible with no previous APIs. Set Revision
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_CC+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$CC"; then
2801 ac_cv_prog_CC="$CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823 $as_echo "$CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2831 if test -z "$ac_cv_prog_CC"; then
2833 # Extract the first word of "gcc", so it can be a program name with args.
2834 set dummy gcc; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_CC="gcc"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2869 if test "x$ac_ct_CC" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2884 if test -z "$CC"; then
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2925 if test -z "$CC"; then
2926 # Extract the first word of "cc", so it can be a program name with args.
2927 set dummy cc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2945 ac_prog_rejected=yes
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test $ac_prog_rejected = yes; then
2957 # We found a bogon in the path, so make sure we never use it.
2958 set dummy $ac_cv_prog_CC
2960 if test $# != 0; then
2961 # We chose a different compiler from the bogus one.
2962 # However, it has the same basename, so the bogon will be chosen
2963 # first if we set CC to just the basename; use the full file name.
2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 for ac_prog in cl.exe
2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3022 test -n "$CC" && break
3025 if test -z "$CC"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$ac_ct_CC"; then
3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_ac_ct_CC="$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3057 if test -n "$ac_ct_CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3059 $as_echo "$ac_ct_CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$ac_ct_CC" && break
3069 if test "x$ac_ct_CC" = x; then
3072 case $cross_compiling:$ac_tool_warned in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "no acceptable C compiler found in \$PATH
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 # Provide some information about the compiler.
3091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3094 for ac_option in --version -v -V -qversion; do
3095 { { ac_try="$ac_compiler $ac_option >&5"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3104 if test -s conftest.err; then
3106 ... rest of stderr output deleted ...
3107 10q' conftest.err >conftest.er1
3108 cat conftest.er1 >&5
3110 rm -f conftest.er1 conftest.err
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132 $as_echo_n "checking whether the C compiler works... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139 for ac_file in $ac_files
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 if { { ac_try="$ac_link_default"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_link_default") 2>&5
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; then :
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3164 for ac_file in $ac_files ''
3166 test -f "$ac_file" || continue
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 # We found the default executable, but exeext='' is most
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3194 if test -z "$ac_file"; then :
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error 77 "C compiler cannot create executables
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206 $as_echo "yes" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3209 $as_echo_n "checking for C compiler default output file name... " >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3211 $as_echo "$ac_file" >&6; }
3212 ac_exeext=$ac_cv_exeext
3214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3217 $as_echo_n "checking for suffix of executables... " >&6; }
3218 if { { ac_try="$ac_link"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3230 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3231 # work properly (i.e., refer to `conftest.exe'), while it won't with
3233 for ac_file in conftest.exe conftest conftest.*; do
3234 test -f "$ac_file" || continue
3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 rm -f conftest conftest$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3250 $as_echo "$ac_cv_exeext" >&6; }
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3261 FILE *f = fopen ("conftest.out", "w");
3262 return ferror (f) || fclose (f) != 0;
3268 ac_clean_files="$ac_clean_files conftest.out"
3269 # Check that the compiler produces executables we can run. If not, either
3270 # the compiler is broken, or we cross compile.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3272 $as_echo_n "checking whether we are cross compiling... " >&6; }
3273 if test "$cross_compiling" != yes; then
3274 { { ac_try="$ac_link"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }
3285 if { ac_try='./conftest$ac_cv_exeext'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3298 if test "$cross_compiling" = maybe; then
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details" "$LINENO" 5; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3312 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3315 $as_echo_n "checking for suffix of object files... " >&6; }
3316 if ${ac_cv_objext+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3330 rm -f conftest.o conftest.obj
3331 if { { ac_try="$ac_compile"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_compile") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details" "$LINENO" 5; }
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 $as_echo "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3366 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3367 if ${ac_cv_c_compiler_gnu+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3384 if ac_fn_c_try_compile "$LINENO"; then :
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3394 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3395 if test $ac_compiler_gnu = yes; then
3400 ac_test_CFLAGS=${CFLAGS+set}
3401 ac_save_CFLAGS=$CFLAGS
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3404 if ${ac_cv_prog_cc_g+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 ac_save_c_werror_flag=$ac_c_werror_flag
3408 ac_c_werror_flag=yes
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3437 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 if ac_fn_c_try_compile "$LINENO"; then :
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3464 $as_echo "$ac_cv_prog_cc_g" >&6; }
3465 if test "$ac_test_CFLAGS" = set; then
3466 CFLAGS=$ac_save_CFLAGS
3467 elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3474 if test "$GCC" = yes; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3481 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3482 if ${ac_cv_prog_cc_c89+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 ac_cv_prog_cc_c89=no
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3506 s = g (p, va_arg (v,int));
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 rm -f conftest.$ac_ext
3554 case "x$ac_cv_prog_cc_c89" in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3584 # On Suns, sometimes $CPP names a directory.
3585 if test -n "$CPP" && test -d "$CPP"; then
3588 if test -z "$CPP"; then
3589 if ${ac_cv_prog_CPP+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 # Double quotes because CPP needs to be expanded
3593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3607 # include <limits.h>
3609 # include <assert.h>
3613 if ac_fn_c_try_cpp "$LINENO"; then :
3616 # Broken: fails on valid input.
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3628 # Broken: success on invalid input.
3631 # Passes both tests.
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.i conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then :
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3653 $as_echo "$CPP" >&6; }
3655 for ac_c_preproc_warn_flag in '' yes
3657 # Use a header file that comes with gcc, so configuring glibc
3658 # with a fresh cross-compiler works.
3659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660 # <limits.h> exists even on freestanding compilers.
3661 # On the NeXT, cc -E runs the code through the compiler's parser,
3662 # not just through cpp. "Syntax error" is here to catch this case.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3666 # include <limits.h>
3668 # include <assert.h>
3672 if ac_fn_c_try_cpp "$LINENO"; then :
3675 # Broken: fails on valid input.
3678 rm -f conftest.err conftest.i conftest.$ac_ext
3680 # OK, works on sane cases. Now check whether nonexistent headers
3681 # can be detected and how.
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <ac_nonexistent.h>
3686 if ac_fn_c_try_cpp "$LINENO"; then :
3687 # Broken: success on invalid input.
3690 # Passes both tests.
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698 rm -f conftest.i conftest.err conftest.$ac_ext
3699 if $ac_preproc_ok; then :
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3705 See \`config.log' for more details" "$LINENO" 5; }
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3717 if ${ac_cv_path_GREP+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -z "$GREP"; then
3721 ac_path_GREP_found=false
3722 # Loop through the user's path and test for each of PROGNAME-LIST
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3727 test -z "$as_dir" && as_dir=.
3728 for ac_prog in grep ggrep; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3731 as_fn_executable_p "$ac_path_GREP" || continue
3732 # Check for GNU ac_path_GREP and select it if it is found.
3733 # Check for GNU $ac_path_GREP
3734 case `"$ac_path_GREP" --version 2>&1` in
3736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3739 $as_echo_n 0123456789 >"conftest.in"
3742 cat "conftest.in" "conftest.in" >"conftest.tmp"
3743 mv "conftest.tmp" "conftest.in"
3744 cp "conftest.in" "conftest.nl"
3745 $as_echo 'GREP' >> "conftest.nl"
3746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748 as_fn_arith $ac_count + 1 && ac_count=$as_val
3749 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3750 # Best one so far, save it but keep looking for a better one
3751 ac_cv_path_GREP="$ac_path_GREP"
3752 ac_path_GREP_max=$ac_count
3754 # 10*(2^10) chars as input seems more than enough
3755 test $ac_count -gt 10 && break
3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760 $ac_path_GREP_found && break 3
3765 if test -z "$ac_cv_path_GREP"; then
3766 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3769 ac_cv_path_GREP=$GREP
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3774 $as_echo "$ac_cv_path_GREP" >&6; }
3775 GREP="$ac_cv_path_GREP"
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3779 $as_echo_n "checking for egrep... " >&6; }
3780 if ${ac_cv_path_EGREP+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3784 then ac_cv_path_EGREP="$GREP -E"
3786 if test -z "$EGREP"; then
3787 ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 as_fn_executable_p "$ac_path_EGREP" || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3805 $as_echo_n 0123456789 >"conftest.in"
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 $as_echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 as_fn_arith $ac_count + 1 && ac_count=$as_val
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 $ac_path_EGREP_found && break 3
3831 if test -z "$ac_cv_path_EGREP"; then
3832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3835 ac_cv_path_EGREP=$EGREP
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3841 $as_echo "$ac_cv_path_EGREP" >&6; }
3842 EGREP="$ac_cv_path_EGREP"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3846 $as_echo_n "checking for ANSI C header files... " >&6; }
3847 if ${ac_cv_header_stdc+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_header_stdc=yes
3868 ac_cv_header_stdc=no
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 if test $ac_cv_header_stdc = yes; then
3873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "memchr" >/dev/null 2>&1; then :
3883 ac_cv_header_stdc=no
3889 if test $ac_cv_header_stdc = yes; then
3890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then :
3900 ac_cv_header_stdc=no
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 #if ((' ' & 0x0FF) == 0x020)
3916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3919 # define ISLOWER(c) \
3920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
3923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
3933 || toupper (i) != TOUPPER (i))
3938 if ac_fn_c_try_run "$LINENO"; then :
3941 ac_cv_header_stdc=no
3943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3944 conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3950 $as_echo "$ac_cv_header_stdc" >&6; }
3951 if test $ac_cv_header_stdc = yes; then
3953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3959 inttypes.h stdint.h unistd.h
3961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3965 cat >>confdefs.h <<_ACEOF
3966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3976 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3983 if test "$MINIX" = yes; then
3985 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3988 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3991 $as_echo "#define _MINIX 1" >>confdefs.h
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3997 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3998 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4004 # define __EXTENSIONS__ 1
4005 $ac_includes_default
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_safe_to_define___extensions__=yes
4017 ac_cv_safe_to_define___extensions__=no
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4022 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4023 test $ac_cv_safe_to_define___extensions__ = yes &&
4024 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4026 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4028 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4030 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4032 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4036 if test "$ac_cv_header_minix_config_h" = "yes"; then
4038 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4049 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4051 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4052 else on_mingw="no"; fi
4056 # Determine configuration file
4057 # the eval is to evaluate shell expansion twice
4058 if test $on_mingw = "no"; then
4059 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4061 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4064 # Check whether --with-conf_file was given.
4065 if test "${with_conf_file+set}" = set; then :
4066 withval=$with_conf_file; ub_conf_file="$withval"
4070 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4073 cat >>confdefs.h <<_ACEOF
4074 #define CONFIGFILE "$hdr_config"
4077 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4078 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4079 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4080 X"$ub_conf_file" : 'X\(//\)$' \| \
4081 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4082 $as_echo X"$ub_conf_file" |
4083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4102 # Determine run, chroot directory and pidfile locations
4104 # Check whether --with-run-dir was given.
4105 if test "${with_run_dir+set}" = set; then :
4106 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4108 if test $on_mingw = no; then
4109 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4117 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4120 cat >>confdefs.h <<_ACEOF
4121 #define RUN_DIR "$hdr_run"
4126 # Check whether --with-chroot-dir was given.
4127 if test "${with_chroot_dir+set}" = set; then :
4128 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4130 if test $on_mingw = no; then
4131 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4133 UNBOUND_CHROOT_DIR=""
4139 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4142 cat >>confdefs.h <<_ACEOF
4143 #define CHROOT_DIR "$hdr_chroot"
4148 # Check whether --with-share-dir was given.
4149 if test "${with_share_dir+set}" = set; then :
4150 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4152 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4157 cat >>confdefs.h <<_ACEOF
4158 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4163 # Check whether --with-pidfile was given.
4164 if test "${with_pidfile+set}" = set; then :
4165 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4167 if test $on_mingw = no; then
4168 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4176 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4179 cat >>confdefs.h <<_ACEOF
4180 #define PIDFILE "$hdr_pid"
4185 # Check whether --with-rootkey-file was given.
4186 if test "${with_rootkey_file+set}" = set; then :
4187 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4189 if test $on_mingw = no; then
4190 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4192 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4198 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4201 cat >>confdefs.h <<_ACEOF
4202 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4207 # Check whether --with-rootcert-file was given.
4208 if test "${with_rootcert_file+set}" = set; then :
4209 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4211 if test $on_mingw = no; then
4212 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4214 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4220 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4223 cat >>confdefs.h <<_ACEOF
4224 #define ROOT_CERT_FILE "$hdr_rpem"
4229 # Check whether --with-username was given.
4230 if test "${with_username+set}" = set; then :
4231 withval=$with_username; UNBOUND_USERNAME="$withval"
4233 UNBOUND_USERNAME="unbound"
4238 cat >>confdefs.h <<_ACEOF
4239 #define UB_USERNAME "$UNBOUND_USERNAME"
4244 $as_echo "#define WINVER 0x0502" >>confdefs.h
4246 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/' `
4249 cat >>confdefs.h <<_ACEOF
4250 #define RSRC_PACKAGE_VERSION $wnvs
4254 # Checks for typedefs, structures, and compiler characteristics.
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4256 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4257 if ${ac_cv_c_const+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4268 /* Ultrix mips cc rejects this sort of thing. */
4269 typedef int charset[2];
4270 const charset cs = { 0, 0 };
4271 /* SunOS 4.1.1 cc rejects this. */
4272 char const *const *pcpcc;
4274 /* NEC SVR4.0.2 mips cc rejects this. */
4275 struct point {int x, y;};
4276 static struct point const zero = {0,0};
4277 /* AIX XL C 1.02.0.0 rejects this.
4278 It does not let you subtract one const X* pointer from another in
4279 an arm of an if-expression whose if-part is not a constant
4281 const char *g = "string";
4282 pcpcc = &g + (g ? g-g : 0);
4283 /* HPUX 7.0 cc rejects these. */
4285 ppc = (char**) pcpcc;
4286 pcpcc = (char const *const *) ppc;
4287 { /* SCO 3.2v4 cc rejects this sort of thing. */
4290 char const *s = 0 ? (char *) 0 : (char const *) 0;
4295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4297 const int *foo = &x[0];
4300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4301 typedef const int *iptr;
4305 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4307 struct s { int j; const int *ap[3]; } bx;
4308 struct s *b = &bx; b->j = 5;
4310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4314 return !cs[0] && !zero.x;
4321 if ac_fn_c_try_compile "$LINENO"; then :
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4329 $as_echo "$ac_cv_c_const" >&6; }
4330 if test $ac_cv_c_const = no; then
4332 $as_echo "#define const /**/" >>confdefs.h
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 # allow user to override the -g -O2 flags.
4343 if test "x$CFLAGS" = "x" ; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4347 $as_echo_n "checking whether $CC supports -g... " >&6; }
4348 cache=`echo g | sed 'y%.=/+-%___p_%'`
4349 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4350 $as_echo_n "(cached) " >&6
4353 echo 'void f(void){}' >conftest.c
4354 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4355 eval "cv_prog_cc_flag_$cache=yes"
4357 eval "cv_prog_cc_flag_$cache=no"
4359 rm -f conftest conftest.o conftest.c
4363 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4378 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4379 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4380 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4381 $as_echo_n "(cached) " >&6
4384 echo 'void f(void){}' >conftest.c
4385 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4386 eval "cv_prog_cc_flag_$cache=yes"
4388 eval "cv_prog_cc_flag_$cache=no"
4390 rm -f conftest conftest.o conftest.c
4394 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4398 CFLAGS="$CFLAGS -O2"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_CC+:} false; then :
4418 $as_echo_n "(cached) " >&6
4420 if test -n "$CC"; then
4421 ac_cv_prog_CC="$CC" # Let the user override the test.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 if test -n "$CC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443 $as_echo "$CC" >&6; }
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4451 if test -z "$ac_cv_prog_CC"; then
4453 # Extract the first word of "gcc", so it can be a program name with args.
4454 set dummy gcc; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -n "$ac_ct_CC"; then
4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_ac_ct_CC="gcc"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4481 if test -n "$ac_ct_CC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4483 $as_echo "$ac_ct_CC" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4489 if test "x$ac_ct_CC" = x; then
4492 case $cross_compiling:$ac_tool_warned in
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4504 if test -z "$CC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}cc; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_CC+:} false; then :
4511 $as_echo_n "(cached) " >&6
4513 if test -n "$CC"; then
4514 ac_cv_prog_CC="$CC" # Let the user override the test.
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_CC="${ac_tool_prefix}cc"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 if test -n "$CC"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4536 $as_echo "$CC" >&6; }
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4545 if test -z "$CC"; then
4546 # Extract the first word of "cc", so it can be a program name with args.
4547 set dummy cc; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_CC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4565 ac_prog_rejected=yes
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 if test $ac_prog_rejected = yes; then
4577 # We found a bogon in the path, so make sure we never use it.
4578 set dummy $ac_cv_prog_CC
4580 if test $# != 0; then
4581 # We chose a different compiler from the bogus one.
4582 # However, it has the same basename, so the bogon will be chosen
4583 # first if we set CC to just the basename; use the full file name.
4585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4591 if test -n "$CC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4593 $as_echo "$CC" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4601 if test -z "$CC"; then
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in cl.exe
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_prog_CC+:} false; then :
4610 $as_echo_n "(cached) " >&6
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4642 test -n "$CC" && break
4645 if test -z "$CC"; then
4647 for ac_prog in cl.exe
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 if test -n "$ac_ct_CC"; then
4657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_CC="$ac_prog"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4677 if test -n "$ac_ct_CC"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4679 $as_echo "$ac_ct_CC" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4686 test -n "$ac_ct_CC" && break
4689 if test "x$ac_ct_CC" = x; then
4692 case $cross_compiling:$ac_tool_warned in
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned=yes ;;
4705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error $? "no acceptable C compiler found in \$PATH
4708 See \`config.log' for more details" "$LINENO" 5; }
4710 # Provide some information about the compiler.
4711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4714 for ac_option in --version -v -V -qversion; do
4715 { { ac_try="$ac_compiler $ac_option >&5"
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 $as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4724 if test -s conftest.err; then
4726 ... rest of stderr output deleted ...
4727 10q' conftest.err >conftest.er1
4728 cat conftest.er1 >&5
4730 rm -f conftest.er1 conftest.err
4731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732 test $ac_status = 0; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4736 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4737 if ${ac_cv_c_compiler_gnu+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4764 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4765 if test $ac_compiler_gnu = yes; then
4770 ac_test_CFLAGS=${CFLAGS+set}
4771 ac_save_CFLAGS=$CFLAGS
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4773 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4774 if ${ac_cv_prog_cc_g+:} false; then :
4775 $as_echo_n "(cached) " >&6
4777 ac_save_c_werror_flag=$ac_c_werror_flag
4778 ac_c_werror_flag=yes
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4792 if ac_fn_c_try_compile "$LINENO"; then :
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4807 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_c_werror_flag=$ac_save_c_werror_flag
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4823 if ac_fn_c_try_compile "$LINENO"; then :
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_c_werror_flag=$ac_save_c_werror_flag
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4834 $as_echo "$ac_cv_prog_cc_g" >&6; }
4835 if test "$ac_test_CFLAGS" = set; then
4836 CFLAGS=$ac_save_CFLAGS
4837 elif test $ac_cv_prog_cc_g = yes; then
4838 if test "$GCC" = yes; then
4844 if test "$GCC" = yes; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4851 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4852 if ${ac_cv_prog_cc_c89+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 ac_cv_prog_cc_c89=no
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4863 struct buf { int x; };
4864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4865 static char *e (p, i)
4871 static char *f (char * (*g) (char **, int), char **p, ...)
4876 s = g (p, va_arg (v,int));
4881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4882 function prototypes and stuff, but not '\xHH' hex character constants.
4883 These don't provoke an error unfortunately, instead are silently treated
4884 as 'x'. The following induces an error, until -std is added to get
4885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4886 array size at least. It's necessary to write '\x00'==0 to get something
4887 that's true only with -std. */
4888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4891 inside strings and character constants. */
4893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4895 int test (int i, double x);
4896 struct s1 {int (*f) (int a);};
4897 struct s2 {int (*f) (double a);};
4898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4904 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4912 CC="$ac_save_CC $ac_arg"
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914 ac_cv_prog_cc_c89=$ac_arg
4916 rm -f core conftest.err conftest.$ac_objext
4917 test "x$ac_cv_prog_cc_c89" != "xno" && break
4919 rm -f conftest.$ac_ext
4924 case "x$ac_cv_prog_cc_c89" in
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4927 $as_echo "none needed" >&6; } ;;
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4930 $as_echo "unsupported" >&6; } ;;
4932 CC="$CC $ac_cv_prog_cc_c89"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4936 if test "x$ac_cv_prog_cc_c89" != xno; then :
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4948 $as_echo_n "checking $CC dependency flag... " >&6; }
4949 echo 'void f(){}' >conftest.c
4950 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4953 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4956 DEPFLAG="-MM" # dunno do something
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4960 $as_echo "$DEPFLAG" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4968 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4969 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4970 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4971 $as_echo_n "(cached) " >&6
4974 echo 'void f(void){}' >conftest.c
4975 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4976 eval "cv_prog_cc_flag_$cache=yes"
4978 eval "cv_prog_cc_flag_$cache=no"
4980 rm -f conftest conftest.o conftest.c
4984 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4986 $as_echo "yes" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4999 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5000 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5001 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5002 $as_echo_n "(cached) " >&6
5005 echo 'void f(void){}' >conftest.c
5006 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5007 eval "cv_prog_cc_flag_$cache=yes"
5009 eval "cv_prog_cc_flag_$cache=no"
5011 rm -f conftest conftest.o conftest.c
5015 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5017 $as_echo "yes" >&6; }
5019 ERRFLAG="$ERRFLAG -Wall"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5024 ERRFLAG="$ERRFLAG -errfmt"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5032 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5033 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5034 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5035 $as_echo_n "(cached) " >&6
5038 echo 'void f(void){}' >conftest.c
5039 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5040 eval "cv_prog_cc_flag_$cache=yes"
5042 eval "cv_prog_cc_flag_$cache=no"
5044 rm -f conftest conftest.o conftest.c
5048 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050 $as_echo "yes" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5063 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5064 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5065 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5066 $as_echo_n "(cached) " >&6
5069 echo 'void f(void){}' >conftest.c
5070 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5071 eval "cv_prog_cc_flag_$cache=yes"
5073 eval "cv_prog_cc_flag_$cache=no"
5075 rm -f conftest conftest.o conftest.c
5079 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081 $as_echo "yes" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5092 for ac_header in getopt.h time.h
5094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5098 cat >>confdefs.h <<_ACEOF
5099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5111 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5112 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5113 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5114 $as_echo_n "(cached) " >&6
5118 #include "confdefs.h"
5121 #include <sys/time.h>
5127 #ifdef HAVE_GETOPT_H
5138 const char* str = NULL;
5140 msg.msg_control = 0;
5141 t = ctime_r(&time, buf);
5144 a = getopt(2, opts, "a");
5146 str = gai_strerror(0);
5147 if(str && t && tv.tv_usec && msg.msg_control)
5152 echo 'void f(){}' >>conftest.c
5153 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5154 eval "cv_prog_cc_flag_needed_$cache=no"
5157 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5158 eval "cv_prog_cc_flag_needed_$cache=yes"
5160 eval "cv_prog_cc_flag_needed_$cache=fail"
5161 #echo 'Test with flag fails too!'
5163 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5164 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5169 rm -f conftest conftest.c conftest.o
5173 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5177 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5179 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 #echo 'Test with flag is no!'
5184 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5185 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5191 $as_echo "failed" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5202 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5203 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5204 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5205 $as_echo_n "(cached) " >&6
5209 #include "confdefs.h"
5212 #include <sys/time.h>
5218 #ifdef HAVE_GETOPT_H
5229 const char* str = NULL;
5231 msg.msg_control = 0;
5232 t = ctime_r(&time, buf);
5235 a = getopt(2, opts, "a");
5237 str = gai_strerror(0);
5238 if(str && t && tv.tv_usec && msg.msg_control)
5243 echo 'void f(){}' >>conftest.c
5244 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5245 eval "cv_prog_cc_flag_needed_$cache=no"
5248 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5249 eval "cv_prog_cc_flag_needed_$cache=yes"
5251 eval "cv_prog_cc_flag_needed_$cache=fail"
5252 #echo 'Test with flag fails too!'
5254 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5255 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5260 rm -f conftest conftest.c conftest.o
5264 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5266 $as_echo "yes" >&6; }
5268 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5270 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 #echo 'Test with flag is no!'
5275 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5276 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5282 $as_echo "failed" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5293 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5294 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5295 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5296 $as_echo_n "(cached) " >&6
5300 #include <stdbool.h>
5307 echo 'void f(){}' >>conftest.c
5308 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5309 eval "cv_prog_cc_flag_needed_$cache=no"
5312 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5313 eval "cv_prog_cc_flag_needed_$cache=yes"
5315 eval "cv_prog_cc_flag_needed_$cache=fail"
5316 #echo 'Test with flag fails too!'
5318 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5319 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5324 rm -f conftest conftest.c conftest.o
5328 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5332 CFLAGS="$CFLAGS $C99FLAG"
5334 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5337 #echo 'Test with flag is no!'
5339 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5340 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5346 $as_echo "failed" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
5357 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
5358 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
5359 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5360 $as_echo_n "(cached) " >&6
5372 echo 'void f(){}' >>conftest.c
5373 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5374 eval "cv_prog_cc_flag_needed_$cache=no"
5377 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5378 eval "cv_prog_cc_flag_needed_$cache=yes"
5380 eval "cv_prog_cc_flag_needed_$cache=fail"
5381 #echo 'Test with flag fails too!'
5383 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5384 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5389 rm -f conftest conftest.c conftest.o
5393 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5395 $as_echo "yes" >&6; }
5397 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
5399 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 #echo 'Test with flag is no!'
5404 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
5405 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5411 $as_echo "failed" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5422 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5424 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5425 $as_echo_n "(cached) " >&6
5429 #include <netinet/in.h>
5432 struct in6_pktinfo inf;
5433 int a = (int)sizeof(inf);
5437 echo 'void f(){}' >>conftest.c
5438 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5439 eval "cv_prog_cc_flag_needed_$cache=no"
5442 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5443 eval "cv_prog_cc_flag_needed_$cache=yes"
5445 eval "cv_prog_cc_flag_needed_$cache=fail"
5446 #echo 'Test with flag fails too!'
5448 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5449 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5454 rm -f conftest conftest.c conftest.o
5458 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 $as_echo "yes" >&6; }
5462 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5464 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 #echo 'Test with flag is no!'
5469 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5470 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5476 $as_echo "failed" >&6; }
5483 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5484 # is not available at all. -D_FRSRESGID is to make this check unique.
5485 # otherwise we would get the previous cached result.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5490 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5491 cache=_D_GNU_SOURCE__D_FRSRESGID
5492 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5493 $as_echo_n "(cached) " >&6
5500 int a = setresgid(0,0,0);
5501 a = setresuid(0,0,0);
5505 echo 'void f(){}' >>conftest.c
5506 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5507 eval "cv_prog_cc_flag_needed_$cache=no"
5510 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5511 eval "cv_prog_cc_flag_needed_$cache=yes"
5513 eval "cv_prog_cc_flag_needed_$cache=fail"
5514 #echo 'Test with flag fails too!'
5516 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5517 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5522 rm -f conftest conftest.c conftest.o
5526 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5530 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5532 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 #echo 'Test with flag is no!'
5537 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5538 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5544 $as_echo "failed" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5555 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5556 cache=_D_POSIX_C_SOURCE_200112
5557 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5558 $as_echo_n "(cached) " >&6
5562 #include "confdefs.h"
5573 const char* str = NULL;
5574 t = ctime_r(&time, buf);
5575 str = gai_strerror(0);
5581 echo 'void f(){}' >>conftest.c
5582 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5583 eval "cv_prog_cc_flag_needed_$cache=no"
5586 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5587 eval "cv_prog_cc_flag_needed_$cache=yes"
5589 eval "cv_prog_cc_flag_needed_$cache=fail"
5590 #echo 'Test with flag fails too!'
5592 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5593 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5598 rm -f conftest conftest.c conftest.o
5602 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5604 $as_echo "yes" >&6; }
5606 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5608 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 #echo 'Test with flag is no!'
5613 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5614 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5620 $as_echo "failed" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5631 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5632 cache=_D__EXTENSIONS__
5633 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5634 $as_echo_n "(cached) " >&6
5638 #include "confdefs.h"
5641 #include <sys/time.h>
5646 #ifdef HAVE_GETOPT_H
5656 a = getopt(2, opts, "a");
5663 echo 'void f(){}' >>conftest.c
5664 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5665 eval "cv_prog_cc_flag_needed_$cache=no"
5668 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5669 eval "cv_prog_cc_flag_needed_$cache=yes"
5671 eval "cv_prog_cc_flag_needed_$cache=fail"
5672 #echo 'Test with flag fails too!'
5674 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5675 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5680 rm -f conftest conftest.c conftest.o
5684 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5688 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5690 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 #echo 'Test with flag is no!'
5695 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5696 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5702 $as_echo "failed" >&6; }
5711 # debug mode flags warnings
5712 # Check whether --enable-checking was given.
5713 if test "${enable_checking+set}" = set; then :
5714 enableval=$enable_checking;
5717 # Check whether --enable-debug was given.
5718 if test "${enable_debug+set}" = set; then :
5719 enableval=$enable_debug;
5722 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5723 else debug_enabled="$enable_checking"; fi
5725 case "$debug_enabled" in
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5730 $as_echo_n "checking whether $CC supports -W... " >&6; }
5731 cache=`echo W | sed 'y%.=/+-%___p_%'`
5732 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5733 $as_echo_n "(cached) " >&6
5736 echo 'void f(void){}' >conftest.c
5737 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5738 eval "cv_prog_cc_flag_$cache=yes"
5740 eval "cv_prog_cc_flag_$cache=no"
5742 rm -f conftest conftest.o conftest.c
5746 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748 $as_echo "yes" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5761 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5762 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5763 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5764 $as_echo_n "(cached) " >&6
5767 echo 'void f(void){}' >conftest.c
5768 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5769 eval "cv_prog_cc_flag_$cache=yes"
5771 eval "cv_prog_cc_flag_$cache=no"
5773 rm -f conftest conftest.o conftest.c
5777 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 $as_echo "yes" >&6; }
5781 CFLAGS="$CFLAGS -Wall"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5792 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5793 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5794 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5795 $as_echo_n "(cached) " >&6
5798 echo 'void f(void){}' >conftest.c
5799 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5800 eval "cv_prog_cc_flag_$cache=yes"
5802 eval "cv_prog_cc_flag_$cache=no"
5804 rm -f conftest conftest.o conftest.c
5808 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5810 $as_echo "yes" >&6; }
5812 CFLAGS="$CFLAGS -Wextra"
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5823 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5824 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5825 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5826 $as_echo_n "(cached) " >&6
5829 echo 'void f(void){}' >conftest.c
5830 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5831 eval "cv_prog_cc_flag_$cache=yes"
5833 eval "cv_prog_cc_flag_$cache=no"
5835 rm -f conftest conftest.o conftest.c
5839 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5841 $as_echo "yes" >&6; }
5843 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5852 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5860 # Check whether --enable-flto was given.
5861 if test "${enable_flto+set}" = set; then :
5862 enableval=$enable_flto;
5865 if test "x$enable_flto" != "xno"; then :
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5868 $as_echo_n "checking if $CC supports -flto... " >&6; }
5870 CFLAGS="$CFLAGS -flto"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5882 if ac_fn_c_try_link "$LINENO"; then :
5884 if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e "warning: object" >/dev/null; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5890 $as_echo "yes" >&6; }
5892 rm -f conftest conftest.c conftest.o
5895 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5898 rm -f core conftest.err conftest.$ac_objext \
5899 conftest$ac_exeext conftest.$ac_ext
5904 # Check whether --enable-pie was given.
5905 if test "${enable_pie+set}" = set; then :
5906 enableval=$enable_pie;
5909 if test "x$enable_pie" = "xyes"; then :
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5912 $as_echo_n "checking if $CC supports PIE... " >&6; }
5913 BAKLDFLAGS="$LDFLAGS"
5915 LDFLAGS="$LDFLAGS -pie"
5916 CFLAGS="$CFLAGS -fPIE"
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5928 if ac_fn_c_try_link "$LINENO"; then :
5930 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5931 LDFLAGS="$BAKLDFLAGS"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 $as_echo "yes" >&6; }
5938 rm -f conftest conftest.c conftest.o
5941 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5944 rm -f core conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5950 # Check whether --enable-relro_now was given.
5951 if test "${enable_relro_now+set}" = set; then :
5952 enableval=$enable_relro_now;
5955 if test "x$enable_relro_now" = "xyes"; then :
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5958 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5959 BAKLDFLAGS="$LDFLAGS"
5960 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5972 if ac_fn_c_try_link "$LINENO"; then :
5974 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5975 LDFLAGS="$BAKLDFLAGS"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5980 $as_echo "yes" >&6; }
5982 rm -f conftest conftest.c conftest.o
5985 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5988 rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5995 $as_echo_n "checking for inline... " >&6; }
5996 if ${ac_cv_c_inline+:} false; then :
5997 $as_echo_n "(cached) " >&6
6000 for ac_kw in inline __inline__ __inline; do
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6005 static $ac_kw foo_t static_foo () {return 0; }
6006 $ac_kw foo_t foo () {return 0; }
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 ac_cv_c_inline=$ac_kw
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 test "$ac_cv_c_inline" != no && break
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6019 $as_echo "$ac_cv_c_inline" >&6; }
6021 case $ac_cv_c_inline in
6024 case $ac_cv_c_inline in
6026 *) ac_val=$ac_cv_c_inline;;
6028 cat >>confdefs.h <<_ACEOF
6030 #define inline $ac_val
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6038 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6039 if ${ac_cv_c_format_attribute+:} false; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_cv_c_format_attribute=no
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6046 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6047 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 ac_cv_c_format_attribute="yes"
6062 ac_cv_c_format_attribute="no"
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6070 $as_echo "$ac_cv_c_format_attribute" >&6; }
6071 if test $ac_cv_c_format_attribute = yes; then
6073 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6079 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6080 if ${ac_cv_c_unused_attribute+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 ac_cv_c_unused_attribute=no
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 void f (char *u __attribute__((unused)));
6099 if ac_fn_c_try_compile "$LINENO"; then :
6100 ac_cv_c_unused_attribute="yes"
6102 ac_cv_c_unused_attribute="no"
6104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6112 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6113 if test $ac_cv_c_unused_attribute = yes; then
6115 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6120 if test "$srcdir" != "."; then
6121 CPPFLAGS="$CPPFLAGS -I$srcdir"
6126 for ac_prog in flex lex
6128 # Extract the first word of "$ac_prog", so it can be a program name with args.
6129 set dummy $ac_prog; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_LEX+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 if test -n "$LEX"; then
6136 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_LEX="$ac_prog"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 if test -n "$LEX"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6158 $as_echo "$LEX" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6165 test -n "$LEX" && break
6167 test -n "$LEX" || LEX=":"
6169 if test "x$LEX" != "x:"; then
6170 cat >conftest.l <<_ACEOF
6176 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6177 yyless ((input () != 0)); }
6178 f { unput (yytext[0]); }
6179 . { BEGIN INITIAL; }
6181 #ifdef YYTEXT_POINTER
6182 extern char *yytext;
6187 return ! yylex () + ! yywrap ();
6190 { { ac_try="$LEX conftest.l"
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6196 $as_echo "$ac_try_echo"; } >&5
6197 (eval "$LEX conftest.l") 2>&5
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6202 $as_echo_n "checking lex output file root... " >&6; }
6203 if ${ac_cv_prog_lex_root+:} false; then :
6204 $as_echo_n "(cached) " >&6
6207 if test -f lex.yy.c; then
6208 ac_cv_prog_lex_root=lex.yy
6209 elif test -f lexyy.c; then
6210 ac_cv_prog_lex_root=lexyy
6212 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6216 $as_echo "$ac_cv_prog_lex_root" >&6; }
6217 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6219 if test -z "${LEXLIB+set}"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6221 $as_echo_n "checking lex library... " >&6; }
6222 if ${ac_cv_lib_lex+:} false; then :
6223 $as_echo_n "(cached) " >&6
6227 ac_cv_lib_lex='none needed'
6228 for ac_lib in '' -lfl -ll; do
6229 LIBS="$ac_lib $ac_save_LIBS"
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 `cat $LEX_OUTPUT_ROOT.c`
6234 if ac_fn_c_try_link "$LINENO"; then :
6235 ac_cv_lib_lex=$ac_lib
6237 rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 test "$ac_cv_lib_lex" != 'none needed' && break
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6245 $as_echo "$ac_cv_lib_lex" >&6; }
6246 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6251 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6252 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6253 $as_echo_n "(cached) " >&6
6255 # POSIX says lex can declare yytext either as a pointer or an array; the
6256 # default is implementation-dependent. Figure out which it is, since
6257 # not all implementations provide the %pointer and %array declarations.
6258 ac_cv_prog_lex_yytext_pointer=no
6260 LIBS="$LEXLIB $ac_save_LIBS"
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6264 #define YYTEXT_POINTER 1
6265 `cat $LEX_OUTPUT_ROOT.c`
6267 if ac_fn_c_try_link "$LINENO"; then :
6268 ac_cv_prog_lex_yytext_pointer=yes
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6276 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6277 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6279 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6282 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6287 $as_echo_n "checking for yylex_destroy... " >&6; }
6288 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6290 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6293 $as_echo "yes" >&6; }
6294 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }; fi
6297 for ac_prog in 'bison -y' byacc
6299 # Extract the first word of "$ac_prog", so it can be a program name with args.
6300 set dummy $ac_prog; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_YACC+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$YACC"; then
6307 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_YACC="$ac_prog"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 YACC=$ac_cv_prog_YACC
6327 if test -n "$YACC"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6329 $as_echo "$YACC" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6336 test -n "$YACC" && break
6338 test -n "$YACC" || YACC="yacc"
6340 # Extract the first word of "doxygen", so it can be a program name with args.
6341 set dummy doxygen; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_doxygen+:} false; then :
6345 $as_echo_n "(cached) " >&6
6347 if test -n "$doxygen"; then
6348 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_doxygen="doxygen"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 doxygen=$ac_cv_prog_doxygen
6368 if test -n "$doxygen"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6370 $as_echo "$doxygen" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6379 set dummy ${ac_tool_prefix}strip; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_STRIP+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$STRIP"; then
6386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 STRIP=$ac_cv_prog_STRIP
6406 if test -n "$STRIP"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6408 $as_echo "$STRIP" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6416 if test -z "$ac_cv_prog_STRIP"; then
6418 # Extract the first word of "strip", so it can be a program name with args.
6419 set dummy strip; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6423 $as_echo_n "(cached) " >&6
6425 if test -n "$ac_ct_STRIP"; then
6426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_ac_ct_STRIP="strip"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6446 if test -n "$ac_ct_STRIP"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6448 $as_echo "$ac_ct_STRIP" >&6; }
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6454 if test "x$ac_ct_STRIP" = x; then
6457 case $cross_compiling:$ac_tool_warned in
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6466 STRIP="$ac_cv_prog_STRIP"
6470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6471 if test -f "$ac_dir/install-sh"; then
6473 ac_install_sh="$ac_aux_dir/install-sh -c"
6475 elif test -f "$ac_dir/install.sh"; then
6477 ac_install_sh="$ac_aux_dir/install.sh -c"
6479 elif test -f "$ac_dir/shtool"; then
6481 ac_install_sh="$ac_aux_dir/shtool install -c"
6485 if test -z "$ac_aux_dir"; then
6486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6489 # These three variables are undocumented and unsupported,
6490 # and are intended to be withdrawn in a future Autoconf release.
6491 # They can cause serious problems if a builder's source tree is in a directory
6492 # whose full name contains unusual characters.
6493 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6494 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6495 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6498 # Make sure we can run config.sub.
6499 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6503 $as_echo_n "checking build system type... " >&6; }
6504 if ${ac_cv_build+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 ac_build_alias=$build_alias
6508 test "x$ac_build_alias" = x &&
6509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6510 test "x$ac_build_alias" = x &&
6511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6517 $as_echo "$ac_cv_build" >&6; }
6518 case $ac_cv_build in
6520 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6523 ac_save_IFS=$IFS; IFS='-'
6529 # Remember, the first character of IFS is used to create $*,
6530 # except with old shells:
6533 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6537 $as_echo_n "checking host system type... " >&6; }
6538 if ${ac_cv_host+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test "x$host_alias" = x; then
6542 ac_cv_host=$ac_cv_build
6544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6550 $as_echo "$ac_cv_host" >&6; }
6553 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6556 ac_save_IFS=$IFS; IFS='-'
6562 # Remember, the first character of IFS is used to create $*,
6563 # except with old shells:
6566 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6570 # skip these tests, we do not need them.
6579 # always use ./libtool unless override from commandline (libtool=mylibtool)
6580 if test -z "$libtool"; then
6584 # avoid libtool max commandline length test on systems that fork slowly.
6586 if echo "$host_os" | grep "sunos4" >/dev/null; then
6587 lt_cv_sys_max_cmd_len=32750;
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}ar; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_path_AR+:} false; then :
6595 $as_echo_n "(cached) " >&6
6599 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 if test -n "$AR"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6623 $as_echo "$AR" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6631 if test -z "$ac_cv_path_AR"; then
6633 # Extract the first word of "ar", so it can be a program name with args.
6634 set dummy ar; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_path_ac_pt_AR+:} false; then :
6638 $as_echo_n "(cached) " >&6
6642 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_pt_AR=$ac_cv_path_ac_pt_AR
6664 if test -n "$ac_pt_AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6666 $as_echo "$ac_pt_AR" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$ac_pt_AR" = x; then
6675 case $cross_compiling:$ac_tool_warned in
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6687 if test $AR = false; then
6688 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6694 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6699 macro_version='2.4.6'
6700 macro_revision='2.4.6'
6714 ltmain=$ac_aux_dir/ltmain.sh
6716 # Backslashify metacharacters that are still active within
6717 # double-quoted strings.
6718 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6720 # Same as above, but do not quote variable references.
6721 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6723 # Sed substitution to delay expansion of an escaped shell variable in a
6724 # double_quote_subst'ed string.
6725 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6727 # Sed substitution to delay expansion of an escaped single quote.
6728 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6730 # Sed substitution to avoid accidental globbing in evaled expressions
6731 no_glob_subst='s/\*/\\\*/g'
6733 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6734 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6735 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6738 $as_echo_n "checking how to print strings... " >&6; }
6739 # Test print first, because it will be a builtin if present.
6740 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6741 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6743 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6746 # Use this function as a fallback that always works.
6747 func_fallback_echo ()
6749 eval 'cat <<_LTECHO_EOF
6753 ECHO='func_fallback_echo'
6756 # func_echo_all arg...
6757 # Invoke $ECHO with all args, space-separated.
6764 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6765 $as_echo "printf" >&6; } ;;
6766 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6767 $as_echo "print -r" >&6; } ;;
6768 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6769 $as_echo "cat" >&6; } ;;
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6786 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6787 if ${ac_cv_path_SED+:} false; then :
6788 $as_echo_n "(cached) " >&6
6790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6791 for ac_i in 1 2 3 4 5 6 7; do
6792 ac_script="$ac_script$as_nl$ac_script"
6794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6795 { ac_script=; unset ac_script;}
6796 if test -z "$SED"; then
6797 ac_path_SED_found=false
6798 # Loop through the user's path and test for each of PROGNAME-LIST
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 for ac_prog in sed gsed; do
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6807 as_fn_executable_p "$ac_path_SED" || continue
6808 # Check for GNU ac_path_SED and select it if it is found.
6809 # Check for GNU $ac_path_SED
6810 case `"$ac_path_SED" --version 2>&1` in
6812 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6815 $as_echo_n 0123456789 >"conftest.in"
6818 cat "conftest.in" "conftest.in" >"conftest.tmp"
6819 mv "conftest.tmp" "conftest.in"
6820 cp "conftest.in" "conftest.nl"
6821 $as_echo '' >> "conftest.nl"
6822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6824 as_fn_arith $ac_count + 1 && ac_count=$as_val
6825 if test $ac_count -gt ${ac_path_SED_max-0}; then
6826 # Best one so far, save it but keep looking for a better one
6827 ac_cv_path_SED="$ac_path_SED"
6828 ac_path_SED_max=$ac_count
6830 # 10*(2^10) chars as input seems more than enough
6831 test $ac_count -gt 10 && break
6833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6836 $ac_path_SED_found && break 3
6841 if test -z "$ac_cv_path_SED"; then
6842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6850 $as_echo "$ac_cv_path_SED" >&6; }
6851 SED="$ac_cv_path_SED"
6854 test -z "$SED" && SED=sed
6855 Xsed="$SED -e 1s/^X//"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6868 $as_echo_n "checking for fgrep... " >&6; }
6869 if ${ac_cv_path_FGREP+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6873 then ac_cv_path_FGREP="$GREP -F"
6875 if test -z "$FGREP"; then
6876 ac_path_FGREP_found=false
6877 # Loop through the user's path and test for each of PROGNAME-LIST
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6882 test -z "$as_dir" && as_dir=.
6883 for ac_prog in fgrep; do
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6886 as_fn_executable_p "$ac_path_FGREP" || continue
6887 # Check for GNU ac_path_FGREP and select it if it is found.
6888 # Check for GNU $ac_path_FGREP
6889 case `"$ac_path_FGREP" --version 2>&1` in
6891 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6894 $as_echo_n 0123456789 >"conftest.in"
6897 cat "conftest.in" "conftest.in" >"conftest.tmp"
6898 mv "conftest.tmp" "conftest.in"
6899 cp "conftest.in" "conftest.nl"
6900 $as_echo 'FGREP' >> "conftest.nl"
6901 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6903 as_fn_arith $ac_count + 1 && ac_count=$as_val
6904 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6905 # Best one so far, save it but keep looking for a better one
6906 ac_cv_path_FGREP="$ac_path_FGREP"
6907 ac_path_FGREP_max=$ac_count
6909 # 10*(2^10) chars as input seems more than enough
6910 test $ac_count -gt 10 && break
6912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6915 $ac_path_FGREP_found && break 3
6920 if test -z "$ac_cv_path_FGREP"; then
6921 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6924 ac_cv_path_FGREP=$FGREP
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6930 $as_echo "$ac_cv_path_FGREP" >&6; }
6931 FGREP="$ac_cv_path_FGREP"
6934 test -z "$GREP" && GREP=grep
6954 # Check whether --with-gnu-ld was given.
6955 if test "${with_gnu_ld+set}" = set; then :
6956 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6962 if test yes = "$GCC"; then
6963 # Check if gcc -print-prog-name=ld gives a path.
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6965 $as_echo_n "checking for ld used by $CC... " >&6; }
6968 # gcc leaves a trailing carriage return, which upsets mingw
6969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6974 # Accept absolute paths.
6976 re_direlt='/[^/][^/]*/\.\./'
6977 # Canonicalize the pathname of ld
6978 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6979 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6980 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6982 test -z "$LD" && LD=$ac_prog
6985 # If it fails, then pretend we aren't using GCC.
6989 # If it is relative, then search for the first ld in PATH.
6993 elif test yes = "$with_gnu_ld"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6995 $as_echo_n "checking for GNU ld... " >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6998 $as_echo_n "checking for non-GNU ld... " >&6; }
7000 if ${lt_cv_path_LD+:} false; then :
7001 $as_echo_n "(cached) " >&6
7003 if test -z "$LD"; then
7004 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7005 for ac_dir in $PATH; do
7007 test -z "$ac_dir" && ac_dir=.
7008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7009 lt_cv_path_LD=$ac_dir/$ac_prog
7010 # Check to see if the program is GNU ld. I'd rather use --version,
7011 # but apparently some variants of GNU ld only accept -v.
7012 # Break only if it was the GNU/non-GNU ld that we prefer.
7013 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7014 *GNU* | *'with BFD'*)
7015 test no != "$with_gnu_ld" && break
7018 test yes != "$with_gnu_ld" && break
7025 lt_cv_path_LD=$LD # Let the user override the test with a path.
7030 if test -n "$LD"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7032 $as_echo "$LD" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7037 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7040 if ${lt_cv_prog_gnu_ld+:} false; then :
7041 $as_echo_n "(cached) " >&6
7043 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7044 case `$LD -v 2>&1 </dev/null` in
7045 *GNU* | *'with BFD'*)
7046 lt_cv_prog_gnu_ld=yes
7049 lt_cv_prog_gnu_ld=no
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7054 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7055 with_gnu_ld=$lt_cv_prog_gnu_ld
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7066 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7067 if ${lt_cv_path_NM+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -n "$NM"; then
7071 # Let the user override the test.
7074 lt_nm_to_check=${ac_tool_prefix}nm
7075 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7076 lt_nm_to_check="$lt_nm_to_check nm"
7078 for lt_tmp_nm in $lt_nm_to_check; do
7079 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7080 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7082 test -z "$ac_dir" && ac_dir=.
7083 tmp_nm=$ac_dir/$lt_tmp_nm
7084 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7085 # Check to see if the nm accepts a BSD-compat flag.
7086 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7087 # nm: unknown option "B" ignored
7088 # Tru64's nm complains that /dev/null is an invalid object file
7089 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7091 mingw*) lt_bad_file=conftest.nm/nofile ;;
7092 *) lt_bad_file=/dev/null ;;
7094 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7095 *$lt_bad_file* | *'Invalid file or object type'*)
7096 lt_cv_path_NM="$tmp_nm -B"
7100 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7102 lt_cv_path_NM="$tmp_nm -p"
7106 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7107 continue # so that we can try to find one that supports BSD flags
7116 : ${lt_cv_path_NM=no}
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7120 $as_echo "$lt_cv_path_NM" >&6; }
7121 if test no != "$lt_cv_path_NM"; then
7124 # Didn't find any BSD compatible name lister, look for dumpbin.
7125 if test -n "$DUMPBIN"; then :
7126 # Let the user override the test.
7128 if test -n "$ac_tool_prefix"; then
7129 for ac_prog in dumpbin "link -dump"
7131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_DUMPBIN+:} false; then :
7136 $as_echo_n "(cached) " >&6
7138 if test -n "$DUMPBIN"; then
7139 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 DUMPBIN=$ac_cv_prog_DUMPBIN
7159 if test -n "$DUMPBIN"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7161 $as_echo "$DUMPBIN" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7168 test -n "$DUMPBIN" && break
7171 if test -z "$DUMPBIN"; then
7172 ac_ct_DUMPBIN=$DUMPBIN
7173 for ac_prog in dumpbin "link -dump"
7175 # Extract the first word of "$ac_prog", so it can be a program name with args.
7176 set dummy $ac_prog; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$ac_ct_DUMPBIN"; then
7183 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7203 if test -n "$ac_ct_DUMPBIN"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7205 $as_echo "$ac_ct_DUMPBIN" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7212 test -n "$ac_ct_DUMPBIN" && break
7215 if test "x$ac_ct_DUMPBIN" = x; then
7218 case $cross_compiling:$ac_tool_warned in
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7224 DUMPBIN=$ac_ct_DUMPBIN
7228 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7230 DUMPBIN="$DUMPBIN -symbols -headers"
7238 if test : != "$DUMPBIN"; then
7242 test -z "$NM" && NM=nm
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7250 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7251 if ${lt_cv_nm_interface+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 lt_cv_nm_interface="BSD nm"
7255 echo "int some_variable = 0;" > conftest.$ac_ext
7256 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7257 (eval "$ac_compile" 2>conftest.err)
7258 cat conftest.err >&5
7259 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7260 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7261 cat conftest.err >&5
7262 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7263 cat conftest.out >&5
7264 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7265 lt_cv_nm_interface="MS dumpbin"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7270 $as_echo "$lt_cv_nm_interface" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7273 $as_echo_n "checking whether ln -s works... " >&6; }
7275 if test "$LN_S" = "ln -s"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7280 $as_echo "no, using $LN_S" >&6; }
7283 # find the maximum length of command line arguments
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7285 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7286 if ${lt_cv_sys_max_cmd_len+:} false; then :
7287 $as_echo_n "(cached) " >&6
7294 # On DJGPP, this test can blow up pretty badly due to problems in libc
7295 # (any single argument exceeding 2000 bytes causes a buffer overrun
7296 # during glob expansion). Even if it were fixed, the result of this
7297 # check would be larger than it should be.
7298 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7302 # Under GNU Hurd, this test is not required because there is
7303 # no limit to the length of command line arguments.
7304 # Libtool will interpret -1 as no limit whatsoever
7305 lt_cv_sys_max_cmd_len=-1;
7308 cygwin* | mingw* | cegcc*)
7309 # On Win9x/ME, this test blows up -- it succeeds, but takes
7310 # about 5 minutes as the teststring grows exponentially.
7311 # Worse, since 9x/ME are not pre-emptively multitasking,
7312 # you end up with a "frozen" computer, even though with patience
7313 # the test eventually succeeds (with a max line length of 256k).
7314 # Instead, let's just punt: use the minimum linelength reported by
7315 # all of the supported platforms: 8192 (on NT/2K/XP).
7316 lt_cv_sys_max_cmd_len=8192;
7320 # On MiNT this can take a long time and run out of memory.
7321 lt_cv_sys_max_cmd_len=8192;
7325 # On AmigaOS with pdksh, this test takes hours, literally.
7326 # So we just punt and use a minimum line length of 8192.
7327 lt_cv_sys_max_cmd_len=8192;
7330 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7331 # This has been around since 386BSD, at least. Likely further.
7332 if test -x /sbin/sysctl; then
7333 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7334 elif test -x /usr/sbin/sysctl; then
7335 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7337 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7339 # And add a safety zone
7340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7345 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7346 lt_cv_sys_max_cmd_len=196608
7350 # The test takes a long time on OS/2.
7351 lt_cv_sys_max_cmd_len=8192
7355 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7356 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7357 # nice to cause kernel panics so lets avoid the loop below.
7358 # First set a reasonable default.
7359 lt_cv_sys_max_cmd_len=16384
7361 if test -x /sbin/sysconfig; then
7362 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7363 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7368 lt_cv_sys_max_cmd_len=102400
7370 sysv5* | sco5v6* | sysv4.2uw2*)
7371 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7372 if test -n "$kargmax"; then
7373 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7375 lt_cv_sys_max_cmd_len=32768
7379 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7380 if test -n "$lt_cv_sys_max_cmd_len" && \
7381 test undefined != "$lt_cv_sys_max_cmd_len"; then
7382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7385 # Make teststring a little bigger before we do anything with it.
7386 # a 1K string should be a reasonable start.
7387 for i in 1 2 3 4 5 6 7 8; do
7388 teststring=$teststring$teststring
7390 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7391 # If test is not a shell built-in, we'll probably end up computing a
7392 # maximum length that is only half of the actual maximum length, but
7394 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7395 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7396 test 17 != "$i" # 1/2 MB should be enough
7399 teststring=$teststring$teststring
7401 # Only check the string length outside the loop.
7402 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7404 # Add a significant safety factor because C++ compilers can tack on
7405 # massive amounts of additional arguments before passing them to the
7406 # linker. It appears as though 1/2 is a usable value.
7407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7414 if test -n "$lt_cv_sys_max_cmd_len"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7416 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7419 $as_echo "none" >&6; }
7421 max_cmd_len=$lt_cv_sys_max_cmd_len
7432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7442 # test EBCDIC or ASCII
7443 case `echo X|tr X '\101'` in
7444 A) # ASCII based system
7445 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7446 lt_SP2NL='tr \040 \012'
7447 lt_NL2SP='tr \015\012 \040\040'
7449 *) # EBCDIC based system
7450 lt_SP2NL='tr \100 \n'
7451 lt_NL2SP='tr \r\n \100\100'
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7464 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7465 if ${lt_cv_to_host_file_cmd+:} false; then :
7466 $as_echo_n "(cached) " >&6
7471 *-*-mingw* ) # actually msys
7472 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7475 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7477 * ) # otherwise, assume *nix
7478 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7484 *-*-mingw* ) # actually msys
7485 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7488 lt_cv_to_host_file_cmd=func_convert_file_noop
7490 * ) # otherwise, assume *nix
7491 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7495 * ) # unhandled hosts (and "normal" native builds)
7496 lt_cv_to_host_file_cmd=func_convert_file_noop
7502 to_host_file_cmd=$lt_cv_to_host_file_cmd
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7504 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7511 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7512 if ${lt_cv_to_tool_file_cmd+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 #assume ordinary cross tools, or native build.
7516 lt_cv_to_tool_file_cmd=func_convert_file_noop
7520 *-*-mingw* ) # actually msys
7521 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7531 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7538 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7539 if ${lt_cv_ld_reload_flag+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 lt_cv_ld_reload_flag='-r'
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7545 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7546 reload_flag=$lt_cv_ld_reload_flag
7547 case $reload_flag in
7549 *) reload_flag=" $reload_flag" ;;
7551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7553 cygwin* | mingw* | pw32* | cegcc*)
7554 if test yes != "$GCC"; then
7559 if test yes = "$GCC"; then
7560 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7562 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OBJDUMP+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$OBJDUMP"; then
7584 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 OBJDUMP=$ac_cv_prog_OBJDUMP
7604 if test -n "$OBJDUMP"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7606 $as_echo "$OBJDUMP" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_OBJDUMP"; then
7615 ac_ct_OBJDUMP=$OBJDUMP
7616 # Extract the first word of "objdump", so it can be a program name with args.
7617 set dummy objdump; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$ac_ct_OBJDUMP"; then
7624 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7644 if test -n "$ac_ct_OBJDUMP"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7646 $as_echo "$ac_ct_OBJDUMP" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_OBJDUMP" = x; then
7655 case $cross_compiling:$ac_tool_warned in
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7661 OBJDUMP=$ac_ct_OBJDUMP
7664 OBJDUMP="$ac_cv_prog_OBJDUMP"
7667 test -z "$OBJDUMP" && OBJDUMP=objdump
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7678 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7679 if ${lt_cv_deplibs_check_method+:} false; then :
7680 $as_echo_n "(cached) " >&6
7682 lt_cv_file_magic_cmd='$MAGIC_CMD'
7683 lt_cv_file_magic_test_file=
7684 lt_cv_deplibs_check_method='unknown'
7685 # Need to set the preceding variable on all platforms that support
7686 # interlibrary dependencies.
7687 # 'none' -- dependencies not supported.
7688 # 'unknown' -- same as none, but documents that we really don't know.
7689 # 'pass_all' -- all dependencies passed with no checks.
7690 # 'test_compile' -- check by making test program.
7691 # 'file_magic [[regex]]' -- check by looking for files in library path
7692 # that responds to the $file_magic_cmd with a given extended regex.
7693 # If you have 'file' or equivalent on your system and you're not sure
7694 # whether 'pass_all' will *always* work, you probably want this one.
7698 lt_cv_deplibs_check_method=pass_all
7702 lt_cv_deplibs_check_method=pass_all
7706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7707 lt_cv_file_magic_cmd='/usr/bin/file -L'
7708 lt_cv_file_magic_test_file=/shlib/libc.so
7712 # func_win32_libid is a shell function defined in ltmain.sh
7713 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7714 lt_cv_file_magic_cmd='func_win32_libid'
7718 # Base MSYS/MinGW do not provide the 'file' command needed by
7719 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7720 # unless we find 'file', for example because we are cross-compiling.
7721 if ( file / ) >/dev/null 2>&1; then
7722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7723 lt_cv_file_magic_cmd='func_win32_libid'
7725 # Keep this pattern in sync with the one in func_win32_libid.
7726 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7727 lt_cv_file_magic_cmd='$OBJDUMP -f'
7732 # use the weaker test based on 'objdump'. See mingw*.
7733 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7734 lt_cv_file_magic_cmd='$OBJDUMP -f'
7737 darwin* | rhapsody*)
7738 lt_cv_deplibs_check_method=pass_all
7741 freebsd* | dragonfly*)
7742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7745 # Not sure whether the presence of OpenBSD here was a mistake.
7746 # Let's accept both of them until this is cleared up.
7747 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7748 lt_cv_file_magic_cmd=/usr/bin/file
7749 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7753 lt_cv_deplibs_check_method=pass_all
7758 lt_cv_deplibs_check_method=pass_all
7761 hpux10.20* | hpux11*)
7762 lt_cv_file_magic_cmd=/usr/bin/file
7765 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7766 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7769 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]'
7770 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7774 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7780 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7784 irix5* | irix6* | nonstopux*)
7786 *-32|*"-32 ") libmagic=32-bit;;
7787 *-n32|*"-n32 ") libmagic=N32;;
7788 *-64|*"-64 ") libmagic=64-bit;;
7789 *) libmagic=never-match;;
7791 lt_cv_deplibs_check_method=pass_all
7794 # This must be glibc/ELF.
7795 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7796 lt_cv_deplibs_check_method=pass_all
7800 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7809 lt_cv_file_magic_cmd=/usr/bin/file
7810 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7814 lt_cv_deplibs_check_method=pass_all
7818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7825 osf3* | osf4* | osf5*)
7826 lt_cv_deplibs_check_method=pass_all
7830 lt_cv_deplibs_check_method=pass_all
7834 lt_cv_deplibs_check_method=pass_all
7837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7838 lt_cv_deplibs_check_method=pass_all
7842 case $host_vendor in
7844 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]'
7845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7848 lt_cv_deplibs_check_method=pass_all
7851 lt_cv_file_magic_cmd='/bin/file'
7852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7855 lt_cv_file_magic_cmd='/bin/file'
7856 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7857 lt_cv_file_magic_test_file=/lib/libc.so
7860 lt_cv_deplibs_check_method=pass_all
7863 lt_cv_deplibs_check_method=pass_all
7869 lt_cv_deplibs_check_method=pass_all
7872 lt_cv_deplibs_check_method=pass_all
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7882 if test "$build" = "$host"; then
7885 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7888 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7894 file_magic_cmd=$lt_cv_file_magic_cmd
7895 deplibs_check_method=$lt_cv_deplibs_check_method
7896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7919 if test -n "$ac_tool_prefix"; then
7920 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7921 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_prog_DLLTOOL+:} false; then :
7925 $as_echo_n "(cached) " >&6
7927 if test -n "$DLLTOOL"; then
7928 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 DLLTOOL=$ac_cv_prog_DLLTOOL
7948 if test -n "$DLLTOOL"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7950 $as_echo "$DLLTOOL" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7958 if test -z "$ac_cv_prog_DLLTOOL"; then
7959 ac_ct_DLLTOOL=$DLLTOOL
7960 # Extract the first word of "dlltool", so it can be a program name with args.
7961 set dummy dlltool; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 if test -n "$ac_ct_DLLTOOL"; then
7968 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7988 if test -n "$ac_ct_DLLTOOL"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7990 $as_echo "$ac_ct_DLLTOOL" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7996 if test "x$ac_ct_DLLTOOL" = x; then
7999 case $cross_compiling:$ac_tool_warned in
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8005 DLLTOOL=$ac_ct_DLLTOOL
8008 DLLTOOL="$ac_cv_prog_DLLTOOL"
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8023 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8024 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8025 $as_echo_n "(cached) " >&6
8027 lt_cv_sharedlib_from_linklib_cmd='unknown'
8030 cygwin* | mingw* | pw32* | cegcc*)
8031 # two different shell functions defined in ltmain.sh;
8032 # decide which one to use based on capabilities of $DLLTOOL
8033 case `$DLLTOOL --help 2>&1` in
8034 *--identify-strict*)
8035 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8038 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8043 # fallback: assume linklib IS sharedlib
8044 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8050 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8051 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8052 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8060 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_AR+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 if test -n "$AR"; then
8071 ac_cv_prog_AR="$AR" # Let the user override the test.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 if test -n "$AR"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8093 $as_echo "$AR" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8100 test -n "$AR" && break
8103 if test -z "$AR"; then
8107 # Extract the first word of "$ac_prog", so it can be a program name with args.
8108 set dummy $ac_prog; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$ac_ct_AR"; then
8115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_ac_ct_AR="$ac_prog"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8135 if test -n "$ac_ct_AR"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8137 $as_echo "$ac_ct_AR" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 test -n "$ac_ct_AR" && break
8147 if test "x$ac_ct_AR" = x; then
8150 case $cross_compiling:$ac_tool_warned in
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8174 $as_echo_n "checking for archiver @FILE support... " >&6; }
8175 if ${lt_cv_ar_at_file+:} false; then :
8176 $as_echo_n "(cached) " >&6
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 echo conftest.$ac_objext > conftest.lst
8192 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8194 (eval $lt_ar_try) 2>&5
8196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8197 test $ac_status = 0; }
8198 if test 0 -eq "$ac_status"; then
8199 # Ensure the archiver fails upon bogus file names.
8200 rm -f conftest.$ac_objext libconftest.a
8201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8202 (eval $lt_ar_try) 2>&5
8204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205 test $ac_status = 0; }
8206 if test 0 -ne "$ac_status"; then
8210 rm -f conftest.* libconftest.a
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8217 $as_echo "$lt_cv_ar_at_file" >&6; }
8219 if test no = "$lt_cv_ar_at_file"; then
8222 archiver_list_spec=$lt_cv_ar_at_file
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}strip; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_prog_STRIP+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 if test -n "$STRIP"; then
8240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 STRIP=$ac_cv_prog_STRIP
8260 if test -n "$STRIP"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8262 $as_echo "$STRIP" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8270 if test -z "$ac_cv_prog_STRIP"; then
8272 # Extract the first word of "strip", so it can be a program name with args.
8273 set dummy strip; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8277 $as_echo_n "(cached) " >&6
8279 if test -n "$ac_ct_STRIP"; then
8280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_ac_ct_STRIP="strip"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8300 if test -n "$ac_ct_STRIP"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8302 $as_echo "$ac_ct_STRIP" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8308 if test "x$ac_ct_STRIP" = x; then
8311 case $cross_compiling:$ac_tool_warned in
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8320 STRIP="$ac_cv_prog_STRIP"
8323 test -z "$STRIP" && STRIP=:
8330 if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_RANLIB+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 RANLIB=$ac_cv_prog_RANLIB
8359 if test -n "$RANLIB"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361 $as_echo "$RANLIB" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8369 if test -z "$ac_cv_prog_RANLIB"; then
8370 ac_ct_RANLIB=$RANLIB
8371 # Extract the first word of "ranlib", so it can be a program name with args.
8372 set dummy ranlib; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8376 $as_echo_n "(cached) " >&6
8378 if test -n "$ac_ct_RANLIB"; then
8379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_ac_ct_RANLIB="ranlib"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8399 if test -n "$ac_ct_RANLIB"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8401 $as_echo "$ac_ct_RANLIB" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8407 if test "x$ac_ct_RANLIB" = x; then
8410 case $cross_compiling:$ac_tool_warned in
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8416 RANLIB=$ac_ct_RANLIB
8419 RANLIB="$ac_cv_prog_RANLIB"
8422 test -z "$RANLIB" && RANLIB=:
8429 # Determine commands to create old-style static archives.
8430 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8431 old_postinstall_cmds='chmod 644 $oldlib'
8432 old_postuninstall_cmds=
8434 if test -n "$RANLIB"; then
8437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8443 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8448 lock_old_archive_extraction=yes ;;
8450 lock_old_archive_extraction=no ;;
8473 for ac_prog in gawk mawk nawk awk
8475 # Extract the first word of "$ac_prog", so it can be a program name with args.
8476 set dummy $ac_prog; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if ${ac_cv_prog_AWK+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 if test -n "$AWK"; then
8483 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_prog_AWK="$ac_prog"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 if test -n "$AWK"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8505 $as_echo "$AWK" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8512 test -n "$AWK" && break
8533 # If no C compiler was specified, use CC.
8536 # If no C compiler flags were specified, use CFLAGS.
8537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8539 # Allow CC to be a program name with arguments.
8543 # Check for command to grab the raw symbol name followed by C symbol from nm.
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8546 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8547 $as_echo_n "(cached) " >&6
8550 # These are sane defaults that work on at least a few old systems.
8551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8553 # Character class describing NM global symbol codes.
8554 symcode='[BCDEGRST]'
8556 # Regexp to match symbols that can be accessed directly from C.
8557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8559 # Define system-specific variables.
8564 cygwin* | mingw* | pw32* | cegcc*)
8565 symcode='[ABCDGISTW]'
8568 if test ia64 = "$host_cpu"; then
8569 symcode='[ABCDEGRST]'
8573 symcode='[BCDEGRST]'
8576 symcode='[BCDEGQRST]'
8587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8595 # If we're using GNU nm, then use its standard symbol codes.
8596 case `$NM -V 2>&1` in
8597 *GNU* | *'with BFD'*)
8598 symcode='[ABCDGIRSTW]' ;;
8601 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8602 # Gets list of data symbols to import.
8603 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8604 # Adjust the below global symbol transforms to fixup imported variables.
8605 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8606 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8607 lt_c_name_lib_hook="\
8608 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8609 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8611 # Disable hooks by default.
8612 lt_cv_sys_global_symbol_to_import=
8618 # Transform an extracted symbol line into a proper C declaration.
8619 # Some systems (esp. on ia64) link data and code symbols differently,
8620 # so use this general approach.
8621 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8623 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8624 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8626 # Transform an extracted symbol line into symbol name and symbol address
8627 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8629 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8630 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8632 # Transform an extracted symbol line into symbol name with lib prefix and
8634 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8635 $lt_c_name_lib_hook\
8636 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8637 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8638 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8640 # Handle CRLF in mingw tool chain
8644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8648 # Try without a prefix underscore, then with it.
8649 for ac_symprfx in "" "_"; do
8651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8652 symxfrm="\\1 $ac_symprfx\\2 \\2"
8654 # Write the raw and C identifiers.
8655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8656 # Fake it for dumpbin and say T for any non-static function,
8657 # D for any global variable and I for any imported variable.
8658 # Also find C++ and __fastcall symbols from MSVC++,
8659 # which start with @ or ?.
8660 lt_cv_sys_global_symbol_pipe="$AWK '"\
8661 " {last_section=section; section=\$ 3};"\
8662 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8664 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8665 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8666 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8667 " \$ 0!~/External *\|/{next};"\
8668 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8669 " {if(hide[section]) next};"\
8670 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8671 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8672 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8673 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8674 " ' prfx=^$ac_symprfx"
8676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8678 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8680 # Check to see that the pipe works correctly.
8684 cat > conftest.$ac_ext <<_LT_EOF
8689 void nm_test_func(void);
8690 void nm_test_func(void){}
8694 int main(){nm_test_var='a';nm_test_func();return(0);}
8697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8698 (eval $ac_compile) 2>&5
8700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701 test $ac_status = 0; }; then
8702 # Now try to grab the symbols.
8704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8708 test $ac_status = 0; } && test -s "$nlist"; then
8709 # Try sorting and uniquifying the output.
8710 if sort "$nlist" | uniq > "$nlist"T; then
8711 mv -f "$nlist"T "$nlist"
8716 # Make sure that we snagged all the symbols we need.
8717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8719 cat <<_LT_EOF > conftest.$ac_ext
8720 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8721 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8722 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8723 relocations are performed -- see ld's documentation on pseudo-relocs. */
8724 # define LT_DLSYM_CONST
8725 #elif defined __osf__
8726 /* This system does not cope well with relocations in const data. */
8727 # define LT_DLSYM_CONST
8729 # define LT_DLSYM_CONST const
8737 # Now generate the symbol file.
8738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8740 cat <<_LT_EOF >> conftest.$ac_ext
8742 /* The mapping between symbol names and symbols. */
8743 LT_DLSYM_CONST struct {
8747 lt__PROGRAM__LTX_preloaded_symbols[] =
8749 { "@PROGRAM@", (void *) 0 },
8751 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8752 cat <<\_LT_EOF >> conftest.$ac_ext
8756 /* This works around a problem in FreeBSD linker */
8757 #ifdef FREEBSD_WORKAROUND
8758 static const void *lt_preloaded_setup() {
8759 return lt__PROGRAM__LTX_preloaded_symbols;
8767 # Now try linking the two files.
8768 mv conftest.$ac_objext conftstm.$ac_objext
8769 lt_globsym_save_LIBS=$LIBS
8770 lt_globsym_save_CFLAGS=$CFLAGS
8771 LIBS=conftstm.$ac_objext
8772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8774 (eval $ac_link) 2>&5
8776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8777 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8780 LIBS=$lt_globsym_save_LIBS
8781 CFLAGS=$lt_globsym_save_CFLAGS
8783 echo "cannot find nm_test_func in $nlist" >&5
8786 echo "cannot find nm_test_var in $nlist" >&5
8789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8792 echo "$progname: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8795 rm -rf conftest* conftst*
8797 # Do not use the global_symbol_pipe unless it works.
8798 if test yes = "$pipe_works"; then
8801 lt_cv_sys_global_symbol_pipe=
8807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8808 lt_cv_sys_global_symbol_to_cdecl=
8810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8812 $as_echo "failed" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8815 $as_echo "ok" >&6; }
8818 # Response file support.
8819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8820 nm_file_list_spec='@'
8821 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8822 nm_file_list_spec='@'
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8862 $as_echo_n "checking for sysroot... " >&6; }
8864 # Check whether --with-sysroot was given.
8865 if test "${with_sysroot+set}" = set; then :
8866 withval=$with_sysroot;
8873 case $with_sysroot in #(
8875 if test yes = "$GCC"; then
8876 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8880 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8886 $as_echo "$with_sysroot" >&6; }
8887 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8892 $as_echo "${lt_sysroot:-no}" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8899 $as_echo_n "checking for a working dd... " >&6; }
8900 if ${ac_cv_path_lt_DD+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 printf 0123456789abcdef0123456789abcdef >conftest.i
8904 cat conftest.i conftest.i >conftest2.i
8906 if test -z "$lt_DD"; then
8907 ac_path_lt_DD_found=false
8908 # Loop through the user's path and test for each of PROGNAME-LIST
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 test -z "$as_dir" && as_dir=.
8914 for ac_prog in dd; do
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8917 as_fn_executable_p "$ac_path_lt_DD" || continue
8918 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8919 cmp -s conftest.i conftest.out \
8920 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8922 $ac_path_lt_DD_found && break 3
8927 if test -z "$ac_cv_path_lt_DD"; then
8931 ac_cv_path_lt_DD=$lt_DD
8934 rm -f conftest.i conftest2.i conftest.out
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8937 $as_echo "$ac_cv_path_lt_DD" >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8941 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8942 if ${lt_cv_truncate_bin+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 printf 0123456789abcdef0123456789abcdef >conftest.i
8946 cat conftest.i conftest.i >conftest2.i
8948 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8949 cmp -s conftest.i conftest.out \
8950 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8952 rm -f conftest.i conftest2.i conftest.out
8953 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8956 $as_echo "$lt_cv_truncate_bin" >&6; }
8964 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8967 for cc_temp in $*""; do
8969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8975 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8978 # Check whether --enable-libtool-lock was given.
8979 if test "${enable_libtool_lock+set}" = set; then :
8980 enableval=$enable_libtool_lock;
8983 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8985 # Some flags need to be propagated to the compiler or linker for good
8989 # Find out what ABI is being produced by ac_compile, and set mode
8990 # options accordingly.
8991 echo 'int i;' > conftest.$ac_ext
8992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8993 (eval $ac_compile) 2>&5
8995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8996 test $ac_status = 0; }; then
8997 case `/usr/bin/file conftest.$ac_objext` in
9009 # Find out what ABI is being produced by ac_compile, and set linker
9010 # options accordingly.
9011 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9013 (eval $ac_compile) 2>&5
9015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9016 test $ac_status = 0; }; then
9017 if test yes = "$lt_cv_prog_gnu_ld"; then
9018 case `/usr/bin/file conftest.$ac_objext` in
9020 LD="${LD-ld} -melf32bsmip"
9023 LD="${LD-ld} -melf32bmipn32"
9026 LD="${LD-ld} -melf64bmip"
9030 case `/usr/bin/file conftest.$ac_objext` in
9047 # Find out what ABI is being produced by ac_compile, and set linker
9048 # options accordingly.
9049 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9051 (eval $ac_compile) 2>&5
9053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9054 test $ac_status = 0; }; then
9056 case `/usr/bin/file conftest.$ac_objext` in
9064 case `/usr/bin/file conftest.$ac_objext` in
9066 emul="${emul}btsmip"
9069 emul="${emul}ltsmip"
9072 case `/usr/bin/file conftest.$ac_objext` in
9077 LD="${LD-ld} -m $emul"
9082 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9083 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9084 # Find out what ABI is being produced by ac_compile, and set linker
9085 # options accordingly. Note that the listed cases only cover the
9086 # situations where additional linker options are needed (such as when
9087 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9088 # vice versa); the common cases where no linker options are needed do
9089 # not appear in the list.
9090 echo 'int i;' > conftest.$ac_ext
9091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9092 (eval $ac_compile) 2>&5
9094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9095 test $ac_status = 0; }; then
9096 case `/usr/bin/file conftest.o` in
9099 x86_64-*kfreebsd*-gnu)
9100 LD="${LD-ld} -m elf_i386_fbsd"
9103 case `/usr/bin/file conftest.o` in
9105 LD="${LD-ld} -m elf32_x86_64"
9108 LD="${LD-ld} -m elf_i386"
9112 powerpc64le-*linux*)
9113 LD="${LD-ld} -m elf32lppclinux"
9116 LD="${LD-ld} -m elf32ppclinux"
9119 LD="${LD-ld} -m elf_s390"
9122 LD="${LD-ld} -m elf32_sparc"
9128 x86_64-*kfreebsd*-gnu)
9129 LD="${LD-ld} -m elf_x86_64_fbsd"
9132 LD="${LD-ld} -m elf_x86_64"
9135 LD="${LD-ld} -m elf64lppc"
9138 LD="${LD-ld} -m elf64ppc"
9140 s390*-*linux*|s390*-*tpf*)
9141 LD="${LD-ld} -m elf64_s390"
9144 LD="${LD-ld} -m elf64_sparc"
9154 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9156 CFLAGS="$CFLAGS -belf"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9158 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9159 if ${lt_cv_cc_needs_belf+:} false; then :
9160 $as_echo_n "(cached) " >&6
9163 ac_cpp='$CPP $CPPFLAGS'
9164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9179 if ac_fn_c_try_link "$LINENO"; then :
9180 lt_cv_cc_needs_belf=yes
9182 lt_cv_cc_needs_belf=no
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9195 if test yes != "$lt_cv_cc_needs_belf"; then
9196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9201 # Find out what ABI is being produced by ac_compile, and set linker
9202 # options accordingly.
9203 echo 'int i;' > conftest.$ac_ext
9204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9205 (eval $ac_compile) 2>&5
9207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9208 test $ac_status = 0; }; then
9209 case `/usr/bin/file conftest.o` in
9211 case $lt_cv_prog_gnu_ld in
9214 i?86-*-solaris*|x86_64-*-solaris*)
9215 LD="${LD-ld} -m elf_x86_64"
9218 LD="${LD-ld} -m elf64_sparc"
9221 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9222 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9239 need_locks=$enable_libtool_lock
9241 if test -n "$ac_tool_prefix"; then
9242 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9243 set dummy ${ac_tool_prefix}mt; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9247 $as_echo_n "(cached) " >&6
9249 if test -n "$MANIFEST_TOOL"; then
9250 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9259 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9270 if test -n "$MANIFEST_TOOL"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9272 $as_echo "$MANIFEST_TOOL" >&6; }
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9280 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9281 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9282 # Extract the first word of "mt", so it can be a program name with args.
9283 set dummy mt; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9287 $as_echo_n "(cached) " >&6
9289 if test -n "$ac_ct_MANIFEST_TOOL"; then
9290 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9310 if test -n "$ac_ct_MANIFEST_TOOL"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9312 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9318 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9321 case $cross_compiling:$ac_tool_warned in
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9325 ac_tool_warned=yes ;;
9327 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9330 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9333 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9335 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9336 if ${lt_cv_path_mainfest_tool+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 lt_cv_path_mainfest_tool=no
9340 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9341 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9342 cat conftest.err >&5
9343 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9344 lt_cv_path_mainfest_tool=yes
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9349 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9350 if test yes != "$lt_cv_path_mainfest_tool"; then
9360 rhapsody* | darwin*)
9361 if test -n "$ac_tool_prefix"; then
9362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9365 $as_echo_n "checking for $ac_word... " >&6; }
9366 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9367 $as_echo_n "(cached) " >&6
9369 if test -n "$DSYMUTIL"; then
9370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9390 if test -n "$DSYMUTIL"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9392 $as_echo "$DSYMUTIL" >&6; }
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395 $as_echo "no" >&6; }
9400 if test -z "$ac_cv_prog_DSYMUTIL"; then
9401 ac_ct_DSYMUTIL=$DSYMUTIL
9402 # Extract the first word of "dsymutil", so it can be a program name with args.
9403 set dummy dsymutil; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9407 $as_echo_n "(cached) " >&6
9409 if test -n "$ac_ct_DSYMUTIL"; then
9410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9430 if test -n "$ac_ct_DSYMUTIL"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9438 if test "x$ac_ct_DSYMUTIL" = x; then
9441 case $cross_compiling:$ac_tool_warned in
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9445 ac_tool_warned=yes ;;
9447 DSYMUTIL=$ac_ct_DSYMUTIL
9450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9453 if test -n "$ac_tool_prefix"; then
9454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if ${ac_cv_prog_NMEDIT+:} false; then :
9459 $as_echo_n "(cached) " >&6
9461 if test -n "$NMEDIT"; then
9462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 NMEDIT=$ac_cv_prog_NMEDIT
9482 if test -n "$NMEDIT"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9484 $as_echo "$NMEDIT" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9492 if test -z "$ac_cv_prog_NMEDIT"; then
9493 ac_ct_NMEDIT=$NMEDIT
9494 # Extract the first word of "nmedit", so it can be a program name with args.
9495 set dummy nmedit; ac_word=$2
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9497 $as_echo_n "checking for $ac_word... " >&6; }
9498 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9499 $as_echo_n "(cached) " >&6
9501 if test -n "$ac_ct_NMEDIT"; then
9502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9522 if test -n "$ac_ct_NMEDIT"; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9524 $as_echo "$ac_ct_NMEDIT" >&6; }
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9530 if test "x$ac_ct_NMEDIT" = x; then
9533 case $cross_compiling:$ac_tool_warned in
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9537 ac_tool_warned=yes ;;
9539 NMEDIT=$ac_ct_NMEDIT
9542 NMEDIT="$ac_cv_prog_NMEDIT"
9545 if test -n "$ac_tool_prefix"; then
9546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if ${ac_cv_prog_LIPO+:} false; then :
9551 $as_echo_n "(cached) " >&6
9553 if test -n "$LIPO"; then
9554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 LIPO=$ac_cv_prog_LIPO
9574 if test -n "$LIPO"; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9576 $as_echo "$LIPO" >&6; }
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9579 $as_echo "no" >&6; }
9584 if test -z "$ac_cv_prog_LIPO"; then
9586 # Extract the first word of "lipo", so it can be a program name with args.
9587 set dummy lipo; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9591 $as_echo_n "(cached) " >&6
9593 if test -n "$ac_ct_LIPO"; then
9594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9603 ac_cv_prog_ac_ct_LIPO="lipo"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9614 if test -n "$ac_ct_LIPO"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9616 $as_echo "$ac_ct_LIPO" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9622 if test "x$ac_ct_LIPO" = x; then
9625 case $cross_compiling:$ac_tool_warned in
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9629 ac_tool_warned=yes ;;
9634 LIPO="$ac_cv_prog_LIPO"
9637 if test -n "$ac_tool_prefix"; then
9638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9639 set dummy ${ac_tool_prefix}otool; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_prog_OTOOL+:} false; then :
9643 $as_echo_n "(cached) " >&6
9645 if test -n "$OTOOL"; then
9646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 OTOOL=$ac_cv_prog_OTOOL
9666 if test -n "$OTOOL"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9668 $as_echo "$OTOOL" >&6; }
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9676 if test -z "$ac_cv_prog_OTOOL"; then
9678 # Extract the first word of "otool", so it can be a program name with args.
9679 set dummy otool; ac_word=$2
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681 $as_echo_n "checking for $ac_word... " >&6; }
9682 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9683 $as_echo_n "(cached) " >&6
9685 if test -n "$ac_ct_OTOOL"; then
9686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 test -z "$as_dir" && as_dir=.
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9695 ac_cv_prog_ac_ct_OTOOL="otool"
9696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9706 if test -n "$ac_ct_OTOOL"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9708 $as_echo "$ac_ct_OTOOL" >&6; }
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9714 if test "x$ac_ct_OTOOL" = x; then
9717 case $cross_compiling:$ac_tool_warned in
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9721 ac_tool_warned=yes ;;
9726 OTOOL="$ac_cv_prog_OTOOL"
9729 if test -n "$ac_tool_prefix"; then
9730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if ${ac_cv_prog_OTOOL64+:} false; then :
9735 $as_echo_n "(cached) " >&6
9737 if test -n "$OTOOL64"; then
9738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 OTOOL64=$ac_cv_prog_OTOOL64
9758 if test -n "$OTOOL64"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9760 $as_echo "$OTOOL64" >&6; }
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763 $as_echo "no" >&6; }
9768 if test -z "$ac_cv_prog_OTOOL64"; then
9769 ac_ct_OTOOL64=$OTOOL64
9770 # Extract the first word of "otool64", so it can be a program name with args.
9771 set dummy otool64; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9775 $as_echo_n "(cached) " >&6
9777 if test -n "$ac_ct_OTOOL64"; then
9778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 test -z "$as_dir" && as_dir=.
9785 for ac_exec_ext in '' $ac_executable_extensions; do
9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9787 ac_cv_prog_ac_ct_OTOOL64="otool64"
9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9798 if test -n "$ac_ct_OTOOL64"; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9800 $as_echo "$ac_ct_OTOOL64" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9806 if test "x$ac_ct_OTOOL64" = x; then
9809 case $cross_compiling:$ac_tool_warned in
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9813 ac_tool_warned=yes ;;
9815 OTOOL64=$ac_ct_OTOOL64
9818 OTOOL64="$ac_cv_prog_OTOOL64"
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9848 $as_echo_n "checking for -single_module linker flag... " >&6; }
9849 if ${lt_cv_apple_cc_single_mod+:} false; then :
9850 $as_echo_n "(cached) " >&6
9852 lt_cv_apple_cc_single_mod=no
9853 if test -z "$LT_MULTI_MODULE"; then
9854 # By default we will add the -single_module flag. You can override
9855 # by either setting the environment variable LT_MULTI_MODULE
9856 # non-empty at configure time, or by adding -multi_module to the
9858 rm -rf libconftest.dylib*
9859 echo "int foo(void){return 1;}" > conftest.c
9860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9861 -dynamiclib -Wl,-single_module conftest.c" >&5
9862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9865 # If there is a non-empty error log, and "single_module"
9866 # appears in it, assume the flag caused a linker warning
9867 if test -s conftest.err && $GREP single_module conftest.err; then
9868 cat conftest.err >&5
9869 # Otherwise, if the output was created with a 0 exit code from
9870 # the compiler, it worked.
9871 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9872 lt_cv_apple_cc_single_mod=yes
9874 cat conftest.err >&5
9876 rm -rf libconftest.dylib*
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9881 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9884 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9885 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9886 $as_echo_n "(cached) " >&6
9888 lt_cv_ld_exported_symbols_list=no
9889 save_LDFLAGS=$LDFLAGS
9890 echo "_main" > conftest.sym
9891 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 lt_cv_ld_exported_symbols_list=yes
9906 lt_cv_ld_exported_symbols_list=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LDFLAGS=$save_LDFLAGS
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9914 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9917 $as_echo_n "checking for -force_load linker flag... " >&6; }
9918 if ${lt_cv_ld_force_load+:} false; then :
9919 $as_echo_n "(cached) " >&6
9921 lt_cv_ld_force_load=no
9922 cat > conftest.c << _LT_EOF
9923 int forced_loaded() { return 2;}
9925 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9926 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9927 echo "$AR cru libconftest.a conftest.o" >&5
9928 $AR cru libconftest.a conftest.o 2>&5
9929 echo "$RANLIB libconftest.a" >&5
9930 $RANLIB libconftest.a 2>&5
9931 cat > conftest.c << _LT_EOF
9932 int main() { return 0;}
9934 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9935 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9937 if test -s conftest.err && $GREP force_load conftest.err; then
9938 cat conftest.err >&5
9939 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9940 lt_cv_ld_force_load=yes
9942 cat conftest.err >&5
9944 rm -f conftest.err libconftest.a conftest conftest.c
9945 rm -rf conftest.dSYM
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9949 $as_echo "$lt_cv_ld_force_load" >&6; }
9951 rhapsody* | darwin1.[012])
9952 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9954 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9955 darwin*) # darwin 5.x on
9956 # if running on 10.5 or later, the deployment target defaults
9957 # to the OS version, if on x86, and 10.4, the deployment
9958 # target defaults to 10.4. Don't you love it?
9959 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9960 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9961 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9963 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9965 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9969 if test yes = "$lt_cv_apple_cc_single_mod"; then
9970 _lt_dar_single_mod='$single_module'
9972 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9973 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9975 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9977 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9978 _lt_dsymutil='~$DSYMUTIL $lib || :'
9985 # func_munge_path_list VARIABLE PATH
9986 # -----------------------------------
9987 # VARIABLE is name of variable containing _space_ separated list of
9988 # directories to be munged by the contents of PATH, which is string
9991 # string "DIR[ DIR]" will be prepended to VARIABLE
9993 # string "DIR[ DIR]" will be appended to VARIABLE
9994 # "DIRP[:DIRP]::[DIRA:]DIRA"
9995 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9996 # "DIRA[ DIRA]" will be appended to VARIABLE
9998 # VARIABLE will be replaced by "DIR[ DIR]"
9999 func_munge_path_list ()
10005 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10008 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10011 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10012 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10015 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10020 for ac_header in dlfcn.h
10022 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10024 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DLFCN_H 1
10046 enable_win32_dll=no
10049 # Check whether --enable-shared was given.
10050 if test "${enable_shared+set}" = set; then :
10051 enableval=$enable_shared; p=${PACKAGE-default}
10053 yes) enable_shared=yes ;;
10054 no) enable_shared=no ;;
10057 # Look at the argument we got. We use all the common list separators.
10058 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10059 for pkg in $enableval; do
10061 if test "X$pkg" = "X$p"; then
10080 # Check whether --enable-static was given.
10081 if test "${enable_static+set}" = set; then :
10082 enableval=$enable_static; p=${PACKAGE-default}
10084 yes) enable_static=yes ;;
10085 no) enable_static=no ;;
10088 # Look at the argument we got. We use all the common list separators.
10089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10090 for pkg in $enableval; do
10092 if test "X$pkg" = "X$p"; then
10112 # Check whether --with-pic was given.
10113 if test "${with_pic+set}" = set; then :
10114 withval=$with_pic; lt_p=${PACKAGE-default}
10116 yes|no) pic_mode=$withval ;;
10119 # Look at the argument we got. We use all the common list separators.
10120 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10121 for lt_pkg in $withval; do
10123 if test "X$lt_pkg" = "X$lt_p"; then
10141 # Check whether --enable-fast-install was given.
10142 if test "${enable_fast_install+set}" = set; then :
10143 enableval=$enable_fast_install; p=${PACKAGE-default}
10145 yes) enable_fast_install=yes ;;
10146 no) enable_fast_install=no ;;
10148 enable_fast_install=no
10149 # Look at the argument we got. We use all the common list separators.
10150 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10151 for pkg in $enableval; do
10153 if test "X$pkg" = "X$p"; then
10154 enable_fast_install=yes
10161 enable_fast_install=yes
10171 shared_archive_member_spec=
10172 case $host,$enable_shared in
10173 power*-*-aix[5-9]*,yes)
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10175 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10177 # Check whether --with-aix-soname was given.
10178 if test "${with_aix_soname+set}" = set; then :
10179 withval=$with_aix_soname; case $withval in
10183 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10186 lt_cv_with_aix_soname=$with_aix_soname
10188 if ${lt_cv_with_aix_soname+:} false; then :
10189 $as_echo_n "(cached) " >&6
10191 lt_cv_with_aix_soname=aix
10194 with_aix_soname=$lt_cv_with_aix_soname
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10198 $as_echo "$with_aix_soname" >&6; }
10199 if test aix != "$with_aix_soname"; then
10200 # For the AIX way of multilib, we name the shared archive member
10201 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10202 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10203 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10204 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10205 if test 64 = "${OBJECT_MODE-32}"; then
10206 shared_archive_member_spec=shr_64
10208 shared_archive_member_spec=shr
10213 with_aix_soname=aix
10226 # This can be used to rebuild libtool when needed
10227 LIBTOOL_DEPS=$ltmain
10229 # Always use our own libtool.
10230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10261 test -z "$LN_S" && LN_S="ln -s"
10276 if test -n "${ZSH_VERSION+set}"; then
10277 setopt NO_GLOB_SUBST
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10281 $as_echo_n "checking for objdir... " >&6; }
10282 if ${lt_cv_objdir+:} false; then :
10283 $as_echo_n "(cached) " >&6
10285 rm -f .libs 2>/dev/null
10286 mkdir .libs 2>/dev/null
10287 if test -d .libs; then
10290 # MS-DOS does not allow filenames that begin with a dot.
10293 rmdir .libs 2>/dev/null
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10296 $as_echo "$lt_cv_objdir" >&6; }
10297 objdir=$lt_cv_objdir
10303 cat >>confdefs.h <<_ACEOF
10304 #define LT_OBJDIR "$lt_cv_objdir/"
10312 # AIX sometimes has problems with the GCC collect2 program. For some
10313 # reason, if we set the COLLECT_NAMES environment variable, the problems
10314 # vanish in a puff of smoke.
10315 if test set != "${COLLECT_NAMES+set}"; then
10317 export COLLECT_NAMES
10322 # Global variables:
10324 can_build_shared=yes
10326 # All known linkers require a '.a' archive for static linking (except MSVC,
10327 # which needs '.lib').
10330 with_gnu_ld=$lt_cv_prog_gnu_ld
10335 # Set sane defaults for various variables
10336 test -z "$CC" && CC=cc
10337 test -z "$LTCC" && LTCC=$CC
10338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10339 test -z "$LD" && LD=ld
10340 test -z "$ac_objext" && ac_objext=o
10342 func_cc_basename $compiler
10343 cc_basename=$func_cc_basename_result
10346 # Only perform the check for file, if the check method requires it
10347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10348 case $deplibs_check_method in
10350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10352 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10354 $as_echo_n "(cached) " >&6
10358 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10361 lt_save_MAGIC_CMD=$MAGIC_CMD
10362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10364 for ac_dir in $ac_dummy; do
10366 test -z "$ac_dir" && ac_dir=.
10367 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10368 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10369 if test -n "$file_magic_test_file"; then
10370 case $deplibs_check_method in
10372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10373 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10375 $EGREP "$file_magic_regex" > /dev/null; then
10380 *** Warning: the command libtool uses to detect shared libraries,
10381 *** $file_magic_cmd, produces output that libtool cannot recognize.
10382 *** The result is that libtool may fail to recognize shared libraries
10383 *** as such. This will affect the creation of libtool libraries that
10384 *** depend on shared libraries, but programs linked with such libtool
10385 *** libraries will work regardless of this problem. Nevertheless, you
10386 *** may want to report the problem to your system manager and/or to
10387 *** bug-libtool@gnu.org
10397 MAGIC_CMD=$lt_save_MAGIC_CMD
10402 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10403 if test -n "$MAGIC_CMD"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10405 $as_echo "$MAGIC_CMD" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10415 if test -z "$lt_cv_path_MAGIC_CMD"; then
10416 if test -n "$ac_tool_prefix"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10418 $as_echo_n "checking for file... " >&6; }
10419 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10420 $as_echo_n "(cached) " >&6
10424 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10427 lt_save_MAGIC_CMD=$MAGIC_CMD
10428 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10430 for ac_dir in $ac_dummy; do
10432 test -z "$ac_dir" && ac_dir=.
10433 if test -f "$ac_dir/file"; then
10434 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10435 if test -n "$file_magic_test_file"; then
10436 case $deplibs_check_method in
10438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10439 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10441 $EGREP "$file_magic_regex" > /dev/null; then
10446 *** Warning: the command libtool uses to detect shared libraries,
10447 *** $file_magic_cmd, produces output that libtool cannot recognize.
10448 *** The result is that libtool may fail to recognize shared libraries
10449 *** as such. This will affect the creation of libtool libraries that
10450 *** depend on shared libraries, but programs linked with such libtool
10451 *** libraries will work regardless of this problem. Nevertheless, you
10452 *** may want to report the problem to your system manager and/or to
10453 *** bug-libtool@gnu.org
10463 MAGIC_CMD=$lt_save_MAGIC_CMD
10468 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10469 if test -n "$MAGIC_CMD"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10471 $as_echo "$MAGIC_CMD" >&6; }
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10487 # Use C for the default configuration in the libtool script
10491 ac_cpp='$CPP $CPPFLAGS'
10492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497 # Source file extension for C test sources.
10500 # Object file extension for compiled C test sources.
10504 # Code to be used in simple compile tests
10505 lt_simple_compile_test_code="int some_variable = 0;"
10507 # Code to be used in simple link tests
10508 lt_simple_link_test_code='int main(){return(0);}'
10516 # If no C compiler was specified, use CC.
10519 # If no C compiler flags were specified, use CFLAGS.
10520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10522 # Allow CC to be a program name with arguments.
10525 # Save the default compiler, since it gets overwritten when the other
10526 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10527 compiler_DEFAULT=$CC
10529 # save warnings/boilerplate of simple test code
10530 ac_outfile=conftest.$ac_objext
10531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10533 _lt_compiler_boilerplate=`cat conftest.err`
10536 ac_outfile=conftest.$ac_objext
10537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10539 _lt_linker_boilerplate=`cat conftest.err`
10543 if test -n "$compiler"; then
10545 lt_prog_compiler_no_builtin_flag=
10547 if test yes = "$GCC"; then
10548 case $cc_basename in
10550 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10552 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10556 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10557 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10558 $as_echo_n "(cached) " >&6
10560 lt_cv_prog_compiler_rtti_exceptions=no
10561 ac_outfile=conftest.$ac_objext
10562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10563 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10564 # Insert the option either (1) after the last *FLAGS variable, or
10565 # (2) before a word containing "conftest.", or (3) at the end.
10566 # Note that $ac_compile itself does not contain backslashes and begins
10567 # with a dollar sign (not a hyphen), so the echo should work correctly.
10568 # The option is referenced via a variable to avoid confusing sed.
10569 lt_compile=`echo "$ac_compile" | $SED \
10570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10572 -e 's:$: $lt_compiler_flag:'`
10573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10574 (eval "$lt_compile" 2>conftest.err)
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 if (exit $ac_status) && test -s "$ac_outfile"; then
10579 # The compiler can only warn and ignore the option if not recognized
10580 # So say no if there are warnings other than the usual output.
10581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10584 lt_cv_prog_compiler_rtti_exceptions=yes
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10593 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10606 lt_prog_compiler_wl=
10607 lt_prog_compiler_pic=
10608 lt_prog_compiler_static=
10611 if test yes = "$GCC"; then
10612 lt_prog_compiler_wl='-Wl,'
10613 lt_prog_compiler_static='-static'
10617 # All AIX code is PIC.
10618 if test ia64 = "$host_cpu"; then
10619 # AIX 5 now supports IA64 processor
10620 lt_prog_compiler_static='-Bstatic'
10622 lt_prog_compiler_pic='-fPIC'
10628 # see comment about AmigaOS4 .so support
10629 lt_prog_compiler_pic='-fPIC'
10632 # FIXME: we need at least 68020 code to build shared libraries, but
10633 # adding the '-m68020' flag to GCC prevents building anything better,
10635 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10641 # PIC is the default for these OSes.
10644 mingw* | cygwin* | pw32* | os2* | cegcc*)
10645 # This hack is so that the source file can tell whether it is being
10646 # built for inclusion in a dll (and should export symbols for example).
10647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10648 # (--disable-auto-import) libraries
10649 lt_prog_compiler_pic='-DDLL_EXPORT'
10652 lt_prog_compiler_static='$wl-static'
10657 darwin* | rhapsody*)
10658 # PIC is the default on this platform
10659 # Common symbols not allowed in MH_DYLIB files
10660 lt_prog_compiler_pic='-fno-common'
10664 # PIC is the default for Haiku.
10665 # The "-static" flag exists, but is broken.
10666 lt_prog_compiler_static=
10670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10672 # sets the default TLS model and affects inlining.
10678 lt_prog_compiler_pic='-fPIC'
10684 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10685 # Instead, we relocate shared libraries at runtime.
10689 # Just because we use GCC doesn't mean we suddenly get shared libraries
10690 # on systems that don't support them.
10691 lt_prog_compiler_can_build_shared=no
10696 # QNX uses GNU C++, but need to define -shared option too, otherwise
10697 # it will coredump.
10698 lt_prog_compiler_pic='-fPIC -shared'
10702 if test -d /usr/nec; then
10703 lt_prog_compiler_pic=-Kconform_pic
10708 lt_prog_compiler_pic='-fPIC'
10712 case $cc_basename in
10713 nvcc*) # Cuda Compiler Driver 2.2
10714 lt_prog_compiler_wl='-Xlinker '
10715 if test -n "$lt_prog_compiler_pic"; then
10716 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10721 # PORTME Check for flag to pass linker flags through the system compiler.
10724 lt_prog_compiler_wl='-Wl,'
10725 if test ia64 = "$host_cpu"; then
10726 # AIX 5 now supports IA64 processor
10727 lt_prog_compiler_static='-Bstatic'
10729 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10733 darwin* | rhapsody*)
10734 # PIC is the default on this platform
10735 # Common symbols not allowed in MH_DYLIB files
10736 lt_prog_compiler_pic='-fno-common'
10737 case $cc_basename in
10739 # NAG Fortran compiler
10740 lt_prog_compiler_wl='-Wl,-Wl,,'
10741 lt_prog_compiler_pic='-PIC'
10742 lt_prog_compiler_static='-Bstatic'
10747 mingw* | cygwin* | pw32* | os2* | cegcc*)
10748 # This hack is so that the source file can tell whether it is being
10749 # built for inclusion in a dll (and should export symbols for example).
10750 lt_prog_compiler_pic='-DDLL_EXPORT'
10753 lt_prog_compiler_static='$wl-static'
10758 hpux9* | hpux10* | hpux11*)
10759 lt_prog_compiler_wl='-Wl,'
10760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10761 # not for PA HP-UX.
10767 lt_prog_compiler_pic='+Z'
10770 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10771 lt_prog_compiler_static='$wl-a ${wl}archive'
10774 irix5* | irix6* | nonstopux*)
10775 lt_prog_compiler_wl='-Wl,'
10776 # PIC (with -KPIC) is the default.
10777 lt_prog_compiler_static='-non_shared'
10780 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10781 case $cc_basename in
10782 # old Intel for x86_64, which still supported -KPIC.
10784 lt_prog_compiler_wl='-Wl,'
10785 lt_prog_compiler_pic='-KPIC'
10786 lt_prog_compiler_static='-static'
10788 # icc used to be incompatible with GCC.
10789 # ICC 10 doesn't accept -KPIC any more.
10791 lt_prog_compiler_wl='-Wl,'
10792 lt_prog_compiler_pic='-fPIC'
10793 lt_prog_compiler_static='-static'
10795 # Lahey Fortran 8.1.
10797 lt_prog_compiler_wl='-Wl,'
10798 lt_prog_compiler_pic='--shared'
10799 lt_prog_compiler_static='--static'
10802 # NAG Fortran compiler
10803 lt_prog_compiler_wl='-Wl,-Wl,,'
10804 lt_prog_compiler_pic='-PIC'
10805 lt_prog_compiler_static='-Bstatic'
10808 # Fabrice Bellard et al's Tiny C Compiler
10809 lt_prog_compiler_wl='-Wl,'
10810 lt_prog_compiler_pic='-fPIC'
10811 lt_prog_compiler_static='-static'
10813 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10814 # Portland Group compilers (*not* the Pentium gcc compiler,
10815 # which looks to be a dead project)
10816 lt_prog_compiler_wl='-Wl,'
10817 lt_prog_compiler_pic='-fpic'
10818 lt_prog_compiler_static='-Bstatic'
10821 lt_prog_compiler_wl='-Wl,'
10822 # All Alpha code is PIC.
10823 lt_prog_compiler_static='-non_shared'
10825 xl* | bgxl* | bgf* | mpixl*)
10826 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10827 lt_prog_compiler_wl='-Wl,'
10828 lt_prog_compiler_pic='-qpic'
10829 lt_prog_compiler_static='-qstaticlink'
10832 case `$CC -V 2>&1 | sed 5q` in
10833 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10834 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10835 lt_prog_compiler_pic='-KPIC'
10836 lt_prog_compiler_static='-Bstatic'
10837 lt_prog_compiler_wl=''
10839 *Sun\ F* | *Sun*Fortran*)
10840 lt_prog_compiler_pic='-KPIC'
10841 lt_prog_compiler_static='-Bstatic'
10842 lt_prog_compiler_wl='-Qoption ld '
10846 lt_prog_compiler_pic='-KPIC'
10847 lt_prog_compiler_static='-Bstatic'
10848 lt_prog_compiler_wl='-Wl,'
10850 *Intel*\ [CF]*Compiler*)
10851 lt_prog_compiler_wl='-Wl,'
10852 lt_prog_compiler_pic='-fPIC'
10853 lt_prog_compiler_static='-static'
10856 lt_prog_compiler_wl='-Wl,'
10857 lt_prog_compiler_pic='-fpic'
10858 lt_prog_compiler_static='-Bstatic'
10866 lt_prog_compiler_pic='-KPIC'
10867 lt_prog_compiler_static='-Bstatic'
10871 # QNX uses GNU C++, but need to define -shared option too, otherwise
10872 # it will coredump.
10873 lt_prog_compiler_pic='-fPIC -shared'
10876 osf3* | osf4* | osf5*)
10877 lt_prog_compiler_wl='-Wl,'
10878 # All OSF/1 code is PIC.
10879 lt_prog_compiler_static='-non_shared'
10883 lt_prog_compiler_static='-non_shared'
10887 lt_prog_compiler_pic='-KPIC'
10888 lt_prog_compiler_static='-Bstatic'
10889 case $cc_basename in
10890 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10891 lt_prog_compiler_wl='-Qoption ld ';;
10893 lt_prog_compiler_wl='-Wl,';;
10898 lt_prog_compiler_wl='-Qoption ld '
10899 lt_prog_compiler_pic='-PIC'
10900 lt_prog_compiler_static='-Bstatic'
10903 sysv4 | sysv4.2uw2* | sysv4.3*)
10904 lt_prog_compiler_wl='-Wl,'
10905 lt_prog_compiler_pic='-KPIC'
10906 lt_prog_compiler_static='-Bstatic'
10910 if test -d /usr/nec; then
10911 lt_prog_compiler_pic='-Kconform_pic'
10912 lt_prog_compiler_static='-Bstatic'
10916 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10917 lt_prog_compiler_wl='-Wl,'
10918 lt_prog_compiler_pic='-KPIC'
10919 lt_prog_compiler_static='-Bstatic'
10923 lt_prog_compiler_wl='-Wl,'
10924 lt_prog_compiler_can_build_shared=no
10928 lt_prog_compiler_pic='-pic'
10929 lt_prog_compiler_static='-Bstatic'
10933 lt_prog_compiler_can_build_shared=no
10939 # For platforms that do not support PIC, -DPIC is meaningless:
10941 lt_prog_compiler_pic=
10944 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10950 if ${lt_cv_prog_compiler_pic+:} false; then :
10951 $as_echo_n "(cached) " >&6
10953 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10956 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10960 # Check to make sure the PIC flag actually works.
10962 if test -n "$lt_prog_compiler_pic"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10966 $as_echo_n "(cached) " >&6
10968 lt_cv_prog_compiler_pic_works=no
10969 ac_outfile=conftest.$ac_objext
10970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10972 # Insert the option either (1) after the last *FLAGS variable, or
10973 # (2) before a word containing "conftest.", or (3) at the end.
10974 # Note that $ac_compile itself does not contain backslashes and begins
10975 # with a dollar sign (not a hyphen), so the echo should work correctly.
10976 # The option is referenced via a variable to avoid confusing sed.
10977 lt_compile=`echo "$ac_compile" | $SED \
10978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980 -e 's:$: $lt_compiler_flag:'`
10981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10982 (eval "$lt_compile" 2>conftest.err)
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 if (exit $ac_status) && test -s "$ac_outfile"; then
10987 # The compiler can only warn and ignore the option if not recognized
10988 # So say no if there are warnings other than the usual output.
10989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10992 lt_cv_prog_compiler_pic_works=yes
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11001 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11002 case $lt_prog_compiler_pic in
11004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11007 lt_prog_compiler_pic=
11008 lt_prog_compiler_can_build_shared=no
11024 # Check to make sure the static flag actually works.
11026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11028 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11029 if ${lt_cv_prog_compiler_static_works+:} false; then :
11030 $as_echo_n "(cached) " >&6
11032 lt_cv_prog_compiler_static_works=no
11033 save_LDFLAGS=$LDFLAGS
11034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11035 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11037 # The linker can only warn and ignore the option if not recognized
11038 # So say no if there are warnings
11039 if test -s conftest.err; then
11040 # Append any errors to the config.log.
11041 cat conftest.err 1>&5
11042 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11044 if diff conftest.exp conftest.er2 >/dev/null; then
11045 lt_cv_prog_compiler_static_works=yes
11048 lt_cv_prog_compiler_static_works=yes
11052 LDFLAGS=$save_LDFLAGS
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11056 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11058 if test yes = "$lt_cv_prog_compiler_static_works"; then
11061 lt_prog_compiler_static=
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11072 if ${lt_cv_prog_compiler_c_o+:} false; then :
11073 $as_echo_n "(cached) " >&6
11075 lt_cv_prog_compiler_c_o=no
11076 $RM -r conftest 2>/dev/null
11080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11082 lt_compiler_flag="-o out/conftest2.$ac_objext"
11083 # Insert the option either (1) after the last *FLAGS variable, or
11084 # (2) before a word containing "conftest.", or (3) at the end.
11085 # Note that $ac_compile itself does not contain backslashes and begins
11086 # with a dollar sign (not a hyphen), so the echo should work correctly.
11087 lt_compile=`echo "$ac_compile" | $SED \
11088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090 -e 's:$: $lt_compiler_flag:'`
11091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11092 (eval "$lt_compile" 2>out/conftest.err)
11094 cat out/conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11098 # The compiler can only warn and ignore the option if not recognized
11099 # So say no if there are warnings
11100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11103 lt_cv_prog_compiler_c_o=yes
11108 # SGI C++ compiler will create directory out/ii_files/ for
11109 # template instantiation
11110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11111 $RM out/* && rmdir out
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11127 if ${lt_cv_prog_compiler_c_o+:} false; then :
11128 $as_echo_n "(cached) " >&6
11130 lt_cv_prog_compiler_c_o=no
11131 $RM -r conftest 2>/dev/null
11135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11137 lt_compiler_flag="-o out/conftest2.$ac_objext"
11138 # Insert the option either (1) after the last *FLAGS variable, or
11139 # (2) before a word containing "conftest.", or (3) at the end.
11140 # Note that $ac_compile itself does not contain backslashes and begins
11141 # with a dollar sign (not a hyphen), so the echo should work correctly.
11142 lt_compile=`echo "$ac_compile" | $SED \
11143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11145 -e 's:$: $lt_compiler_flag:'`
11146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11147 (eval "$lt_compile" 2>out/conftest.err)
11149 cat out/conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11153 # The compiler can only warn and ignore the option if not recognized
11154 # So say no if there are warnings
11155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11156 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11157 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11158 lt_cv_prog_compiler_c_o=yes
11163 # SGI C++ compiler will create directory out/ii_files/ for
11164 # template instantiation
11165 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11166 $RM out/* && rmdir out
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11173 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11178 hard_links=nottested
11179 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11180 # do not overwrite the value of need_locks provided by the user
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11182 $as_echo_n "checking if we can lock with hard links... " >&6; }
11185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11187 ln conftest.a conftest.b 2>&5 || hard_links=no
11188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11190 $as_echo "$hard_links" >&6; }
11191 if test no = "$hard_links"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11193 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11209 allow_undefined_flag=
11210 always_export_symbols=no
11212 archive_expsym_cmds=
11213 compiler_needs_object=no
11214 enable_shared_with_static_runtimes=no
11215 export_dynamic_flag_spec=
11216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11217 hardcode_automatic=no
11219 hardcode_direct_absolute=no
11220 hardcode_libdir_flag_spec=
11221 hardcode_libdir_separator=
11222 hardcode_minus_L=no
11223 hardcode_shlibpath_var=unsupported
11225 link_all_deplibs=unknown
11227 module_expsym_cmds=
11228 old_archive_from_new_cmds=
11229 old_archive_from_expsyms_cmds=
11230 thread_safe_flag_spec=
11231 whole_archive_flag_spec=
11232 # include_expsyms should be a list of space-separated symbols to be *always*
11233 # included in the symbol list
11235 # exclude_expsyms can be an extended regexp of symbols to exclude
11236 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11237 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11238 # as well as any symbol that contains 'd'.
11239 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11240 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11241 # platforms (ab)use it in PIC code, but their linkers get confused if
11242 # the symbol is explicitly referenced. Since portable code cannot
11243 # rely on this symbol name, it's probably fine to never include it in
11244 # preloaded symbol tables.
11245 # Exclude shared library initialization/finalization symbols.
11246 extract_expsyms_cmds=
11249 cygwin* | mingw* | pw32* | cegcc*)
11250 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11251 # When not using gcc, we currently assume that we are using
11252 # Microsoft Visual C++.
11253 if test yes != "$GCC"; then
11258 # we just hope/assume this is gcc and not c89 (= MSVC++)
11261 openbsd* | bitrig*)
11268 # On some targets, GNU ld is compatible enough with the native linker
11269 # that we're better off using the native interface for both.
11270 lt_use_gnu_ld_interface=no
11271 if test yes = "$with_gnu_ld"; then
11274 # The AIX port of GNU ld has always aspired to compatibility
11275 # with the native linker. However, as the warning in the GNU ld
11276 # block says, versions before 2.19.5* couldn't really create working
11277 # shared libraries, regardless of the interface used.
11278 case `$LD -v 2>&1` in
11279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11283 lt_use_gnu_ld_interface=yes
11288 lt_use_gnu_ld_interface=yes
11293 if test yes = "$lt_use_gnu_ld_interface"; then
11294 # If archive_cmds runs LD, not CC, wlarc should be empty
11297 # Set some defaults for GNU ld with shared library support. These
11298 # are reset later if shared libraries are not supported. Putting them
11299 # here allows them to be overridden if necessary.
11300 runpath_var=LD_RUN_PATH
11301 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11302 export_dynamic_flag_spec='$wl--export-dynamic'
11303 # ancient GNU ld didn't support --whole-archive et. al.
11304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11305 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11307 whole_archive_flag_spec=
11309 supports_anon_versioning=no
11310 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11311 *GNU\ gold*) supports_anon_versioning=yes ;;
11312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11315 *\ 2.11.*) ;; # other 2.11 versions
11316 *) supports_anon_versioning=yes ;;
11319 # See if GNU ld supports shared libraries.
11322 # On AIX/PPC, the GNU linker is very broken
11323 if test ia64 != "$host_cpu"; then
11327 *** Warning: the GNU linker, at least up to release 2.19, is reported
11328 *** to be unable to reliably create shared libraries on AIX.
11329 *** Therefore, libtool is disabling shared libraries support. If you
11330 *** really care for shared libraries, you may want to install binutils
11331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11332 *** You will then need to restart the configuration process.
11341 # see comment about AmigaOS4 .so support
11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11343 archive_expsym_cmds=''
11346 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)'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_minus_L=yes
11354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11355 allow_undefined_flag=unsupported
11356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11357 # support --undefined. This deserves some investigation. FIXME
11358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11364 cygwin* | mingw* | pw32* | cegcc*)
11365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11366 # as there is no search path for DLLs.
11367 hardcode_libdir_flag_spec='-L$libdir'
11368 export_dynamic_flag_spec='$wl--export-all-symbols'
11369 allow_undefined_flag=unsupported
11370 always_export_symbols=no
11371 enable_shared_with_static_runtimes=yes
11372 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'
11373 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11375 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11377 # If the export-symbols file already is a .def file, use it as
11378 # is; otherwise, prepend EXPORTS...
11379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11380 cp $export_symbols $output_objdir/$soname.def;
11382 echo EXPORTS > $output_objdir/$soname.def;
11383 cat $export_symbols >> $output_objdir/$soname.def;
11385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11393 link_all_deplibs=yes
11397 hardcode_libdir_flag_spec='-L$libdir'
11398 hardcode_minus_L=yes
11399 allow_undefined_flag=unsupported
11401 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11402 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11403 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11404 $ECHO EXPORTS >> $output_objdir/$libname.def~
11405 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11407 emximp -o $lib $output_objdir/$libname.def'
11408 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11409 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11410 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11411 $ECHO EXPORTS >> $output_objdir/$libname.def~
11412 prefix_cmds="$SED"~
11413 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11414 prefix_cmds="$prefix_cmds -e 1d";
11416 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11417 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11418 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11419 emximp -o $lib $output_objdir/$libname.def'
11420 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11421 enable_shared_with_static_runtimes=yes
11426 hardcode_shlibpath_var=no
11427 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11428 export_dynamic_flag_spec='$wl-E'
11429 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11430 # Instead, shared libraries are loaded at an image base (0x10000000 by
11431 # default) and relocated if they conflict, which is a slow very memory
11432 # consuming and fragmenting process. To avoid this, we pick a random,
11433 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11434 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11436 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'
11439 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11441 if test linux-dietlibc = "$host_os"; then
11442 case $cc_basename in
11443 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11446 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11447 && test no = "$tmp_diet"
11449 tmp_addflag=' $pic_flag'
11450 tmp_sharedflag='-shared'
11451 case $cc_basename,$host_cpu in
11452 pgcc*) # Portland Group C compiler
11453 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'
11454 tmp_addflag=' $pic_flag'
11456 pgf77* | pgf90* | pgf95* | pgfortran*)
11457 # Portland Group f77 and f90 compilers
11458 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'
11459 tmp_addflag=' $pic_flag -Mnomain' ;;
11460 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11461 tmp_addflag=' -i_dynamic' ;;
11462 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11463 tmp_addflag=' -i_dynamic -nofor_main' ;;
11464 ifc* | ifort*) # Intel Fortran compiler
11465 tmp_addflag=' -nofor_main' ;;
11466 lf95*) # Lahey Fortran 8.1
11467 whole_archive_flag_spec=
11468 tmp_sharedflag='--shared' ;;
11469 nagfor*) # NAGFOR 5.3
11470 tmp_sharedflag='-Wl,-shared' ;;
11471 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11472 tmp_sharedflag='-qmkshrobj'
11474 nvcc*) # Cuda Compiler Driver 2.2
11475 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'
11476 compiler_needs_object=yes
11479 case `$CC -V 2>&1 | sed 5q` in
11480 *Sun\ C*) # Sun C 5.9
11481 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'
11482 compiler_needs_object=yes
11483 tmp_sharedflag='-G' ;;
11484 *Sun\ F*) # Sun Fortran 8.3
11485 tmp_sharedflag='-G' ;;
11487 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11489 if test yes = "$supports_anon_versioning"; then
11490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11492 echo "local: *; };" >> $output_objdir/$libname.ver~
11493 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11496 case $cc_basename in
11498 export_dynamic_flag_spec='-rdynamic'
11500 xlf* | bgf* | bgxlf* | mpixlf*)
11501 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11502 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11504 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11505 if test yes = "$supports_anon_versioning"; then
11506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11508 echo "local: *; };" >> $output_objdir/$libname.ver~
11509 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11520 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11524 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11534 *** create shared libraries on Solaris systems. Therefore, libtool
11535 *** is disabling shared libraries support. We urge you to upgrade GNU
11536 *** binutils to release 2.9.1 or newer. Another option is to modify
11537 *** your PATH or compiler configuration so that the native linker is
11538 *** used, and then restart.
11541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11550 case `$LD -v 2>&1` in
11551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11556 *** reliably create shared libraries on SCO systems. Therefore, libtool
11557 *** is disabling shared libraries support. We urge you to upgrade GNU
11558 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11559 *** your PATH or compiler configuration so that the native linker is
11560 *** used, and then restart.
11565 # For security reasons, it is highly recommended that you always
11566 # use absolute paths for naming shared libraries, and exclude the
11567 # DT_RUNPATH tag from executables and libraries. But doing so
11568 # requires that you compile everything twice, which is a pain.
11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11581 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11583 hardcode_direct=yes
11584 hardcode_shlibpath_var=no
11588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11589 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11590 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11597 if test no = "$ld_shlibs"; then
11599 hardcode_libdir_flag_spec=
11600 export_dynamic_flag_spec=
11601 whole_archive_flag_spec=
11604 # PORTME fill in a description of your system's linker (not GNU ld)
11607 allow_undefined_flag=unsupported
11608 always_export_symbols=yes
11609 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'
11610 # Note: this linker hardcodes the directories in LIBPATH if there
11611 # are no directories specified by -L.
11612 hardcode_minus_L=yes
11613 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11614 # Neither direct hardcoding nor static linking is supported with a
11616 hardcode_direct=unsupported
11621 if test ia64 = "$host_cpu"; then
11622 # On IA64, the linker does run time linking by default, so we don't
11623 # have to do anything special.
11624 aix_use_runtimelinking=no
11625 exp_sym_flag='-Bexport'
11628 # If we're using GNU nm, then we don't want the "-C" option.
11629 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11630 # Without the "-l" option, or with the "-B" option, AIX nm treats
11631 # weak defined symbols like other global defined symbols, whereas
11632 # GNU nm marks them as "W".
11633 # While the 'weak' keyword is ignored in the Export File, we need
11634 # it in the Import File for the 'aix-soname' feature, so we have
11635 # to replace the "-B" option with "-P" for AIX nm.
11636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11637 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11639 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11641 aix_use_runtimelinking=no
11643 # Test if we are trying to use run time linking or normal
11644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11645 # have runtime linking enabled, and use it for executables.
11646 # For shared libraries, we enable/disable runtime linking
11647 # depending on the kind of the shared library created -
11648 # when "with_aix_soname,aix_use_runtimelinking" is:
11649 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11650 # "aix,yes" lib.so shared, rtl:yes, for executables
11651 # lib.a static archive
11652 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11653 # lib.a(lib.so.V) shared, rtl:no, for executables
11654 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11655 # lib.a(lib.so.V) shared, rtl:no
11656 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11657 # lib.a static archive
11658 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11659 for ld_flag in $LDFLAGS; do
11660 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11661 aix_use_runtimelinking=yes
11665 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11666 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11667 # so we don't have lib.a shared libs to link our executables.
11668 # We have to force runtime linking in this case.
11669 aix_use_runtimelinking=yes
11670 LDFLAGS="$LDFLAGS -Wl,-brtl"
11675 exp_sym_flag='-bexport'
11676 no_entry_flag='-bnoentry'
11679 # When large executables or shared objects are built, AIX ld can
11680 # have problems creating the table of contents. If linking a library
11681 # or program results in "error TOC overflow" add -mminimal-toc to
11682 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11683 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11686 hardcode_direct=yes
11687 hardcode_direct_absolute=yes
11688 hardcode_libdir_separator=':'
11689 link_all_deplibs=yes
11690 file_list_spec='$wl-f,'
11691 case $with_aix_soname,$aix_use_runtimelinking in
11692 aix,*) ;; # traditional, no import file
11693 svr4,* | *,yes) # use import file
11694 # The Import File defines what to hardcode.
11696 hardcode_direct_absolute=no
11700 if test yes = "$GCC"; then
11701 case $host_os in aix4.[012]|aix4.[012].*)
11702 # We only want to do this on AIX 4.2 and lower, the check
11703 # below for broken collect2 doesn't work under 4.3+
11704 collect2name=`$CC -print-prog-name=collect2`
11705 if test -f "$collect2name" &&
11706 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11708 # We have reworked collect2
11711 # We have old collect2
11712 hardcode_direct=unsupported
11713 # It fails to find uninstalled libraries when the uninstalled
11714 # path is not listed in the libpath. Setting hardcode_minus_L
11715 # to unsupported forces relinking
11716 hardcode_minus_L=yes
11717 hardcode_libdir_flag_spec='-L$libdir'
11718 hardcode_libdir_separator=
11722 shared_flag='-shared'
11723 if test yes = "$aix_use_runtimelinking"; then
11724 shared_flag="$shared_flag "'$wl-G'
11726 # Need to ensure runtime linking is disabled for the traditional
11727 # shared library, or the linker may eventually find shared libraries
11728 # /with/ Import File - we do not want to mix them.
11729 shared_flag_aix='-shared'
11730 shared_flag_svr4='-shared $wl-G'
11733 if test ia64 = "$host_cpu"; then
11734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11735 # chokes on -Wl,-G. The following line is correct:
11738 if test yes = "$aix_use_runtimelinking"; then
11739 shared_flag='$wl-G'
11741 shared_flag='$wl-bM:SRE'
11743 shared_flag_aix='$wl-bM:SRE'
11744 shared_flag_svr4='$wl-G'
11748 export_dynamic_flag_spec='$wl-bexpall'
11749 # It seems that -bexpall does not export symbols beginning with
11750 # underscore (_), so it is better to generate a list of symbols to export.
11751 always_export_symbols=yes
11752 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11753 # Warning - without using the other runtime loading flags (-brtl),
11754 # -berok will link without error, but may produce a broken library.
11755 allow_undefined_flag='-berok'
11756 # Determine the default libpath from the value encoded in an
11757 # empty executable.
11758 if test set = "${lt_cv_aix_libpath+set}"; then
11759 aix_libpath=$lt_cv_aix_libpath
11761 if ${lt_cv_aix_libpath_+:} false; then :
11762 $as_echo_n "(cached) " >&6
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11775 if ac_fn_c_try_link "$LINENO"; then :
11777 lt_aix_libpath_sed='
11778 /Import File Strings/,/^$/ {
11780 s/^0 *\([^ ]*\) *$/\1/
11784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11785 # Check for a 64-bit object if we didn't find anything.
11786 if test -z "$lt_cv_aix_libpath_"; then
11787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 if test -z "$lt_cv_aix_libpath_"; then
11793 lt_cv_aix_libpath_=/usr/lib:/lib
11798 aix_libpath=$lt_cv_aix_libpath_
11801 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11802 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11804 if test ia64 = "$host_cpu"; then
11805 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11806 allow_undefined_flag="-z nodefs"
11807 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"
11809 # Determine the default libpath from the value encoded in an
11810 # empty executable.
11811 if test set = "${lt_cv_aix_libpath+set}"; then
11812 aix_libpath=$lt_cv_aix_libpath
11814 if ${lt_cv_aix_libpath_+:} false; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11828 if ac_fn_c_try_link "$LINENO"; then :
11830 lt_aix_libpath_sed='
11831 /Import File Strings/,/^$/ {
11833 s/^0 *\([^ ]*\) *$/\1/
11837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11838 # Check for a 64-bit object if we didn't find anything.
11839 if test -z "$lt_cv_aix_libpath_"; then
11840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11843 rm -f core conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845 if test -z "$lt_cv_aix_libpath_"; then
11846 lt_cv_aix_libpath_=/usr/lib:/lib
11851 aix_libpath=$lt_cv_aix_libpath_
11854 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11855 # Warning - without using the other run time loading flags,
11856 # -berok will link without error, but may produce a broken library.
11857 no_undefined_flag=' $wl-bernotok'
11858 allow_undefined_flag=' $wl-berok'
11859 if test yes = "$with_gnu_ld"; then
11860 # We only use this code for GNU lds that support --whole-archive.
11861 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11863 # Exported symbols can be pulled into shared objects from archives
11864 whole_archive_flag_spec='$convenience'
11866 archive_cmds_need_lc=yes
11867 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11868 # -brtl affects multiple linker settings, -berok does not and is overridden later
11869 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11870 if test svr4 != "$with_aix_soname"; then
11871 # This is similar to how AIX traditionally builds its shared libraries.
11872 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11874 if test aix != "$with_aix_soname"; then
11875 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11877 # used by -dlpreopen to get the symbols
11878 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11880 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11888 # see comment about AmigaOS4 .so support
11889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11890 archive_expsym_cmds=''
11893 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)'
11894 hardcode_libdir_flag_spec='-L$libdir'
11895 hardcode_minus_L=yes
11901 export_dynamic_flag_spec=-rdynamic
11904 cygwin* | mingw* | pw32* | cegcc*)
11905 # When not using gcc, we currently assume that we are using
11906 # Microsoft Visual C++.
11907 # hardcode_libdir_flag_spec is actually meaningless, as there is
11908 # no search path for DLLs.
11909 case $cc_basename in
11912 hardcode_libdir_flag_spec=' '
11913 allow_undefined_flag=unsupported
11914 always_export_symbols=yes
11916 # Tell ltmain to make .lib files, not .a files.
11918 # Tell ltmain to make .dll files, not .so files.
11920 # FIXME: Setting linknames here is a bad hack.
11921 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11922 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11923 cp "$export_symbols" "$output_objdir/$soname.def";
11924 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11926 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11928 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11930 # The linker will not automatically build a static lib if we build a DLL.
11931 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11932 enable_shared_with_static_runtimes=yes
11933 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11936 old_postinstall_cmds='chmod 644 $oldlib'
11937 postlink_cmds='lt_outputfile="@OUTPUT@"~
11938 lt_tool_outputfile="@TOOL_OUTPUT@"~
11939 case $lt_outputfile in
11942 lt_outputfile=$lt_outputfile.exe
11943 lt_tool_outputfile=$lt_tool_outputfile.exe
11946 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11947 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11948 $RM "$lt_outputfile.manifest";
11952 # Assume MSVC wrapper
11953 hardcode_libdir_flag_spec=' '
11954 allow_undefined_flag=unsupported
11955 # Tell ltmain to make .lib files, not .a files.
11957 # Tell ltmain to make .dll files, not .so files.
11959 # FIXME: Setting linknames here is a bad hack.
11960 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11961 # The linker will automatically build a .lib file if we build a DLL.
11962 old_archive_from_new_cmds='true'
11963 # FIXME: Should let the user specify the lib program.
11964 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11965 enable_shared_with_static_runtimes=yes
11970 darwin* | rhapsody*)
11973 archive_cmds_need_lc=no
11975 hardcode_automatic=yes
11976 hardcode_shlibpath_var=unsupported
11977 if test yes = "$lt_cv_ld_force_load"; then
11978 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\"`'
11981 whole_archive_flag_spec=''
11983 link_all_deplibs=yes
11984 allow_undefined_flag=$_lt_dar_allow_undefined
11985 case $cc_basename in
11986 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11987 *) _lt_dar_can_shared=$GCC ;;
11989 if test yes = "$_lt_dar_can_shared"; then
11990 output_verbose_link_cmd=func_echo_all
11991 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11992 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11993 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"
11994 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"
12003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12004 hardcode_libdir_flag_spec='-L$libdir'
12005 hardcode_shlibpath_var=no
12008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12009 # support. Future versions do this automatically, but an explicit c++rt0.o
12010 # does not break anything, and helps significantly (at the cost of a little
12013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12014 hardcode_libdir_flag_spec='-R$libdir'
12015 hardcode_direct=yes
12016 hardcode_shlibpath_var=no
12019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12022 hardcode_direct=yes
12023 hardcode_minus_L=yes
12024 hardcode_shlibpath_var=no
12027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12028 freebsd* | dragonfly*)
12029 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12030 hardcode_libdir_flag_spec='-R$libdir'
12031 hardcode_direct=yes
12032 hardcode_shlibpath_var=no
12036 if test yes = "$GCC"; then
12037 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12039 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12041 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12042 hardcode_libdir_separator=:
12043 hardcode_direct=yes
12045 # hardcode_minus_L: Not really in the search PATH,
12046 # but as the default location of the library.
12047 hardcode_minus_L=yes
12048 export_dynamic_flag_spec='$wl-E'
12052 if test yes,no = "$GCC,$with_gnu_ld"; then
12053 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12057 if test no = "$with_gnu_ld"; then
12058 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12059 hardcode_libdir_separator=:
12060 hardcode_direct=yes
12061 hardcode_direct_absolute=yes
12062 export_dynamic_flag_spec='$wl-E'
12063 # hardcode_minus_L: Not really in the search PATH,
12064 # but as the default location of the library.
12065 hardcode_minus_L=yes
12070 if test yes,no = "$GCC,$with_gnu_ld"; then
12073 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12076 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12079 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12088 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12092 # Older versions of the 11.00 compiler do not understand -b yet
12093 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12095 $as_echo_n "checking if $CC understands -b... " >&6; }
12096 if ${lt_cv_prog_compiler__b+:} false; then :
12097 $as_echo_n "(cached) " >&6
12099 lt_cv_prog_compiler__b=no
12100 save_LDFLAGS=$LDFLAGS
12101 LDFLAGS="$LDFLAGS -b"
12102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12104 # The linker can only warn and ignore the option if not recognized
12105 # So say no if there are warnings
12106 if test -s conftest.err; then
12107 # Append any errors to the config.log.
12108 cat conftest.err 1>&5
12109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12111 if diff conftest.exp conftest.er2 >/dev/null; then
12112 lt_cv_prog_compiler__b=yes
12115 lt_cv_prog_compiler__b=yes
12119 LDFLAGS=$save_LDFLAGS
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12123 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12125 if test yes = "$lt_cv_prog_compiler__b"; then
12126 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12134 if test no = "$with_gnu_ld"; then
12135 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12136 hardcode_libdir_separator=:
12141 hardcode_shlibpath_var=no
12144 hardcode_direct=yes
12145 hardcode_direct_absolute=yes
12146 export_dynamic_flag_spec='$wl-E'
12148 # hardcode_minus_L: Not really in the search PATH,
12149 # but as the default location of the library.
12150 hardcode_minus_L=yes
12156 irix5* | irix6* | nonstopux*)
12157 if test yes = "$GCC"; then
12158 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'
12159 # Try to use the -exported_symbol ld option, if it does not
12160 # work, assume that -exports_file does not work either and
12161 # implicitly export all symbols.
12162 # This should be the same for all languages, so no per-tag cache variable.
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12164 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12165 if ${lt_cv_irix_exported_symbol+:} false; then :
12166 $as_echo_n "(cached) " >&6
12168 save_LDFLAGS=$LDFLAGS
12169 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 int foo (void) { return 0; }
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 lt_cv_irix_exported_symbol=yes
12177 lt_cv_irix_exported_symbol=no
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LDFLAGS=$save_LDFLAGS
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12184 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12185 if test yes = "$lt_cv_irix_exported_symbol"; then
12186 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'
12189 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'
12190 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'
12192 archive_cmds_need_lc='no'
12193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12194 hardcode_libdir_separator=:
12196 link_all_deplibs=yes
12200 case $cc_basename in
12202 # Fabrice Bellard et al's Tiny C Compiler
12204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12215 hardcode_libdir_flag_spec='-R$libdir'
12216 hardcode_direct=yes
12217 hardcode_shlibpath_var=no
12221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12222 hardcode_direct=yes
12223 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12224 hardcode_libdir_separator=:
12225 hardcode_shlibpath_var=no
12231 openbsd* | bitrig*)
12232 if test -f /usr/libexec/ld.so; then
12233 hardcode_direct=yes
12234 hardcode_shlibpath_var=no
12235 hardcode_direct_absolute=yes
12236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12239 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12240 export_dynamic_flag_spec='$wl-E'
12242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12243 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 hardcode_minus_L=yes
12253 allow_undefined_flag=unsupported
12255 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12258 $ECHO EXPORTS >> $output_objdir/$libname.def~
12259 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12261 emximp -o $lib $output_objdir/$libname.def'
12262 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12263 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12264 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12265 $ECHO EXPORTS >> $output_objdir/$libname.def~
12266 prefix_cmds="$SED"~
12267 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12268 prefix_cmds="$prefix_cmds -e 1d";
12270 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12271 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12273 emximp -o $lib $output_objdir/$libname.def'
12274 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12275 enable_shared_with_static_runtimes=yes
12279 if test yes = "$GCC"; then
12280 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12281 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'
12283 allow_undefined_flag=' -expect_unresolved \*'
12284 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'
12286 archive_cmds_need_lc='no'
12287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12288 hardcode_libdir_separator=:
12291 osf4* | osf5*) # as osf3* with the addition of -msym flag
12292 if test yes = "$GCC"; then
12293 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12294 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'
12295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12297 allow_undefined_flag=' -expect_unresolved \*'
12298 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'
12299 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~
12300 $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'
12302 # Both c and cxx compiler support -rpath directly
12303 hardcode_libdir_flag_spec='-rpath $libdir'
12305 archive_cmds_need_lc='no'
12306 hardcode_libdir_separator=:
12310 no_undefined_flag=' -z defs'
12311 if test yes = "$GCC"; then
12313 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12315 $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'
12317 case `$CC -V 2>&1` in
12320 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12322 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12326 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12328 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12332 hardcode_libdir_flag_spec='-R$libdir'
12333 hardcode_shlibpath_var=no
12335 solaris2.[0-5] | solaris2.[0-5].*) ;;
12337 # The compiler driver will combine and reorder linker options,
12338 # but understands '-z linker_flag'. GCC discards it without '$wl',
12339 # but is careful enough not to reorder.
12340 # Supported since Solaris 2.6 (maybe 2.5.1?)
12341 if test yes = "$GCC"; then
12342 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12348 link_all_deplibs=yes
12352 if test sequent = "$host_vendor"; then
12353 # Use $CC to link under sequent, because it throws in some extra .o
12354 # files that make .init and .fini sections work.
12355 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12359 hardcode_libdir_flag_spec='-L$libdir'
12360 hardcode_direct=yes
12361 hardcode_minus_L=yes
12362 hardcode_shlibpath_var=no
12366 case $host_vendor in
12368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12369 hardcode_direct=yes # is this really true???
12372 ## LD is ld it makes a PLAMLIB
12373 ## CC just makes a GrossModule.
12374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12375 reload_cmds='$CC -r -o $output$reload_objs'
12379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12383 runpath_var='LD_RUN_PATH'
12384 hardcode_shlibpath_var=no
12388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12389 hardcode_shlibpath_var=no
12390 export_dynamic_flag_spec='-Bexport'
12394 if test -d /usr/nec; then
12395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12396 hardcode_shlibpath_var=no
12397 runpath_var=LD_RUN_PATH
12398 hardcode_runpath_var=yes
12403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12404 no_undefined_flag='$wl-z,text'
12405 archive_cmds_need_lc=no
12406 hardcode_shlibpath_var=no
12407 runpath_var='LD_RUN_PATH'
12409 if test yes = "$GCC"; then
12410 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12411 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12413 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 sysv5* | sco3.2v5* | sco5v6*)
12419 # Note: We CANNOT use -z defs as we might desire, because we do not
12420 # link with -lc, and that would cause any symbols used from libc to
12421 # always be unresolved, which means just about no library would
12422 # ever link correctly. If we're not using GNU ld we use -z text
12423 # though, which does catch some bad symbols but isn't as heavy-handed
12425 no_undefined_flag='$wl-z,text'
12426 allow_undefined_flag='$wl-z,nodefs'
12427 archive_cmds_need_lc=no
12428 hardcode_shlibpath_var=no
12429 hardcode_libdir_flag_spec='$wl-R,$libdir'
12430 hardcode_libdir_separator=':'
12431 link_all_deplibs=yes
12432 export_dynamic_flag_spec='$wl-Bexport'
12433 runpath_var='LD_RUN_PATH'
12435 if test yes = "$GCC"; then
12436 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12446 hardcode_libdir_flag_spec='-L$libdir'
12447 hardcode_shlibpath_var=no
12455 if test sni = "$host_vendor"; then
12457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12458 export_dynamic_flag_spec='$wl-Blargedynsym'
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12465 $as_echo "$ld_shlibs" >&6; }
12466 test no = "$ld_shlibs" && can_build_shared=no
12468 with_gnu_ld=$with_gnu_ld
12485 # Do we need to explicitly link libc?
12487 case "x$archive_cmds_need_lc" in
12489 # Assume -lc should be added
12490 archive_cmds_need_lc=yes
12492 if test yes,yes = "$GCC,$enable_shared"; then
12493 case $archive_cmds in
12495 # FIXME: we may have to deal with multi-command sequences.
12498 # Test whether the compiler implicitly links with -lc since on some
12499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12500 # to ld, don't add -lc before -lgcc.
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12503 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12504 $as_echo_n "(cached) " >&6
12507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12510 (eval $ac_compile) 2>&5
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; } 2>conftest.err; then
12516 libobjs=conftest.$ac_objext
12518 wl=$lt_prog_compiler_wl
12519 pic_flag=$lt_prog_compiler_pic
12525 lt_save_allow_undefined_flag=$allow_undefined_flag
12526 allow_undefined_flag=
12527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; }
12533 lt_cv_archive_cmds_need_lc=no
12535 lt_cv_archive_cmds_need_lc=yes
12537 allow_undefined_flag=$lt_save_allow_undefined_flag
12539 cat conftest.err 1>&5
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12707 if test yes = "$GCC"; then
12709 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12710 *) lt_awk_arg='/^libraries:/' ;;
12713 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12714 *) lt_sed_strip_eq='s|=/|/|g' ;;
12716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12717 case $lt_search_path_spec in
12719 # if the path contains ";" then we assume it to be the separator
12720 # otherwise default to the standard path separator (i.e. ":") - it is
12721 # assumed that no part of a normal pathname contains ";" but that should
12722 # okay in the real world where ";" in dirpaths is itself problematic.
12723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12729 # Ok, now we have the path, separated by spaces, we can step through it
12730 # and add multilib dir if necessary...
12731 lt_tmp_lt_search_path_spec=
12732 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12733 # ...but if some path component already ends with the multilib dir we assume
12734 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12735 case "$lt_multi_os_dir; $lt_search_path_spec " in
12736 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12740 for lt_sys_path in $lt_search_path_spec; do
12741 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12742 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12743 elif test -n "$lt_multi_os_dir"; then
12744 test -d "$lt_sys_path" && \
12745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12748 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12749 BEGIN {RS = " "; FS = "/|\n";} {
12752 for (lt_i = NF; lt_i > 0; lt_i--) {
12753 if ($lt_i != "" && $lt_i != ".") {
12754 if ($lt_i == "..") {
12757 if (lt_count == 0) {
12758 lt_foo = "/" $lt_i lt_foo;
12765 if (lt_foo != "") { lt_freq[lt_foo]++; }
12766 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12768 # AWK program above erroneously prepends '/' to C:/dos/paths
12771 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12772 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12774 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12778 library_names_spec=
12779 libname_spec='lib$name'
12783 postuninstall_cmds=
12787 shlibpath_overrides_runpath=unknown
12789 dynamic_linker="$host_os ld.so"
12790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12791 need_lib_prefix=unknown
12792 hardcode_into_libs=no
12794 # when you set need_version to no, make sure it does not cause -set_version
12795 # flags to be left without arguments
12796 need_version=unknown
12802 version_type=linux # correct to gnu/linux during the next big refactor
12803 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12804 shlibpath_var=LIBPATH
12806 # AIX 3 has no versioning support, so we append a major version to the name.
12807 soname_spec='$libname$release$shared_ext$major'
12811 version_type=linux # correct to gnu/linux during the next big refactor
12814 hardcode_into_libs=yes
12815 if test ia64 = "$host_cpu"; then
12816 # AIX 5 supports IA64
12817 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12818 shlibpath_var=LD_LIBRARY_PATH
12820 # With GCC up to 2.95.x, collect2 would create an import file
12821 # for dependence libraries. The import file would start with
12822 # the line '#! .'. This would cause the generated library to
12823 # depend on '.', always an invalid library. This was fixed in
12824 # development snapshots of GCC prior to 3.0.
12826 aix4 | aix4.[01] | aix4.[01].*)
12827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12829 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12832 can_build_shared=no
12836 # Using Import Files as archive members, it is possible to support
12837 # filename-based versioning of shared library archives on AIX. While
12838 # this would work for both with and without runtime linking, it will
12839 # prevent static linking of such archives. So we do filename-based
12840 # shared library versioning with .so extension only, which is used
12841 # when both runtime linking and shared linking is enabled.
12842 # Unfortunately, runtime linking may impact performance, so we do
12843 # not want this to be the default eventually. Also, we use the
12844 # versioned .so libs for executables only if there is the -brtl
12845 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12846 # To allow for filename-based versioning support, we need to create
12847 # libNAME.so.V as an archive file, containing:
12848 # *) an Import File, referring to the versioned filename of the
12849 # archive as well as the shared archive member, telling the
12850 # bitwidth (32 or 64) of that shared object, and providing the
12851 # list of exported symbols of that shared object, eventually
12852 # decorated with the 'weak' keyword
12853 # *) the shared object with the F_LOADONLY flag set, to really avoid
12854 # it being seen by the linker.
12855 # At run time we better use the real file rather than another symlink,
12856 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12858 case $with_aix_soname,$aix_use_runtimelinking in
12859 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12860 # soname into executable. Probably we can add versioning support to
12861 # collect2, so additional links can be useful in future.
12862 aix,yes) # traditional libtool
12863 dynamic_linker='AIX unversionable lib.so'
12864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12865 # instead of lib<name>.a to let people know that these are not
12866 # typical AIX shared libraries.
12867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12869 aix,no) # traditional AIX only
12870 dynamic_linker='AIX lib.a(lib.so.V)'
12871 # We preserve .a as extension for shared libraries through AIX4.2
12872 # and later when we are not doing run time linking.
12873 library_names_spec='$libname$release.a $libname.a'
12874 soname_spec='$libname$release$shared_ext$major'
12876 svr4,*) # full svr4 only
12877 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12878 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12879 # We do not specify a path in Import Files, so LIBPATH fires.
12880 shlibpath_overrides_runpath=yes
12882 *,yes) # both, prefer svr4
12883 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12884 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12885 # unpreferred sharedlib libNAME.a needs extra handling
12886 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12887 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12888 # We do not specify a path in Import Files, so LIBPATH fires.
12889 shlibpath_overrides_runpath=yes
12891 *,no) # both, prefer aix
12892 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12893 library_names_spec='$libname$release.a $libname.a'
12894 soname_spec='$libname$release$shared_ext$major'
12895 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12896 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12897 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12900 shlibpath_var=LIBPATH
12907 # Since July 2007 AmigaOS4 officially supports .so libraries.
12908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12912 library_names_spec='$libname.ixlibrary $libname.a'
12913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12914 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12920 library_names_spec='$libname$shared_ext'
12921 dynamic_linker="$host_os ld.so"
12922 shlibpath_var=LIBRARY_PATH
12926 version_type=linux # correct to gnu/linux during the next big refactor
12928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12929 soname_spec='$libname$release$shared_ext$major'
12930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12934 # the default ld.so.conf also contains /usr/contrib/lib and
12935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12936 # libtool to hard-code these into programs
12939 cygwin* | mingw* | pw32* | cegcc*)
12940 version_type=windows
12945 case $GCC,$cc_basename in
12948 library_names_spec='$libname.dll.a'
12949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12950 postinstall_cmds='base_file=`basename \$file`~
12951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12952 dldir=$destdir/`dirname \$dlpath`~
12953 test -d \$dldir || mkdir -p \$dldir~
12954 $install_prog $dir/$dlname \$dldir/$dlname~
12955 chmod a+x \$dldir/$dlname~
12956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12960 dlpath=$dir/\$dldll~
12962 shlibpath_overrides_runpath=yes
12966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12967 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12972 # MinGW DLLs use traditional 'lib' prefix
12973 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12976 # pw32 DLLs use 'pw' prefix rather than 'lib'
12977 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12980 dynamic_linker='Win32 ld.exe'
12985 libname_spec='$name'
12986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12987 library_names_spec='$libname.dll.lib'
12991 sys_lib_search_path_spec=
12994 for lt_path in $LIB
12997 # Let DOS variable expansion print the short 8.3 style file name.
12998 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12999 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13002 # Convert to MSYS style.
13003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13006 # Convert to unix form, then to dos form, then back to unix form
13007 # but this time dos style (no spaces!) so that the unix form looks
13008 # like /cygdrive/c/PROGRA~1:/cygdr...
13009 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13010 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13011 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13014 sys_lib_search_path_spec=$LIB
13015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13016 # It is most probably a Windows format PATH.
13017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13021 # FIXME: find the short name or the path components, as spaces are
13022 # common. (e.g. "Program Files" -> "PROGRA~1")
13026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13027 postinstall_cmds='base_file=`basename \$file`~
13028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13029 dldir=$destdir/`dirname \$dlpath`~
13030 test -d \$dldir || mkdir -p \$dldir~
13031 $install_prog $dir/$dlname \$dldir/$dlname'
13032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13033 dlpath=$dir/\$dldll~
13035 shlibpath_overrides_runpath=yes
13036 dynamic_linker='Win32 link.exe'
13040 # Assume MSVC wrapper
13041 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13042 dynamic_linker='Win32 ld.exe'
13045 # FIXME: first we should search . and the directory the executable is in
13049 darwin* | rhapsody*)
13050 dynamic_linker="$host_os dyld"
13051 version_type=darwin
13054 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13055 soname_spec='$libname$release$major$shared_ext'
13056 shlibpath_overrides_runpath=yes
13057 shlibpath_var=DYLD_LIBRARY_PATH
13058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13065 version_type=linux # correct to gnu/linux during the next big refactor
13068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13069 soname_spec='$libname$release$shared_ext$major'
13070 shlibpath_var=LD_LIBRARY_PATH
13073 freebsd* | dragonfly*)
13074 # DragonFly does not have aout. When/if they implement a new
13075 # versioning mechanism, adjust this.
13076 if test -x /usr/bin/objformat; then
13077 objformat=`/usr/bin/objformat`
13080 freebsd[23].*) objformat=aout ;;
13081 *) objformat=elf ;;
13084 version_type=freebsd-$objformat
13085 case $version_type in
13087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13088 soname_spec='$libname$release$shared_ext$major'
13093 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13097 shlibpath_var=LD_LIBRARY_PATH
13100 shlibpath_overrides_runpath=yes
13102 freebsd3.[01]* | freebsdelf3.[01]*)
13103 shlibpath_overrides_runpath=yes
13104 hardcode_into_libs=yes
13106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13108 shlibpath_overrides_runpath=no
13109 hardcode_into_libs=yes
13111 *) # from 4.6 on, and DragonFly
13112 shlibpath_overrides_runpath=yes
13113 hardcode_into_libs=yes
13119 version_type=linux # correct to gnu/linux during the next big refactor
13122 dynamic_linker="$host_os runtime_loader"
13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13124 soname_spec='$libname$release$shared_ext$major'
13125 shlibpath_var=LIBRARY_PATH
13126 shlibpath_overrides_runpath=no
13127 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13128 hardcode_into_libs=yes
13131 hpux9* | hpux10* | hpux11*)
13132 # Give a soname corresponding to the major version so that dld.sl refuses to
13133 # link against other versions.
13140 hardcode_into_libs=yes
13141 dynamic_linker="$host_os dld.so"
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13145 soname_spec='$libname$release$shared_ext$major'
13146 if test 32 = "$HPUX_IA64_MODE"; then
13147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13148 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13151 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13156 hardcode_into_libs=yes
13157 dynamic_linker="$host_os dld.sl"
13158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13161 soname_spec='$libname$release$shared_ext$major'
13162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13167 dynamic_linker="$host_os dld.sl"
13168 shlibpath_var=SHLIB_PATH
13169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13171 soname_spec='$libname$release$shared_ext$major'
13174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13175 postinstall_cmds='chmod 555 $lib'
13176 # or fails outright, so override atomically:
13177 install_override_mode=555
13181 version_type=linux # correct to gnu/linux during the next big refactor
13184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13185 soname_spec='$libname$release$shared_ext$major'
13186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath=no
13189 hardcode_into_libs=yes
13192 irix5* | irix6* | nonstopux*)
13194 nonstopux*) version_type=nonstopux ;;
13196 if test yes = "$lt_cv_prog_gnu_ld"; then
13197 version_type=linux # correct to gnu/linux during the next big refactor
13204 soname_spec='$libname$release$shared_ext$major'
13205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13207 irix5* | nonstopux*)
13208 libsuff= shlibsuff=
13211 case $LD in # libtool.m4 will add one of these switches to LD
13212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13213 libsuff= shlibsuff= libmagic=32-bit;;
13214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13215 libsuff=32 shlibsuff=N32 libmagic=N32;;
13216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13218 *) libsuff= shlibsuff= libmagic=never-match;;
13222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13223 shlibpath_overrides_runpath=no
13224 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13225 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13226 hardcode_into_libs=yes
13229 # No shared lib support for Linux oldld, aout, or coff.
13230 linux*oldld* | linux*aout* | linux*coff*)
13235 version_type=none # Android doesn't support versioned libraries.
13238 library_names_spec='$libname$release$shared_ext'
13239 soname_spec='$libname$release$shared_ext'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 shlibpath_overrides_runpath=yes
13244 # This implies no fast_install, which is unacceptable.
13245 # Some rework will be needed to allow for fast_install
13246 # before this can be enabled.
13247 hardcode_into_libs=yes
13249 dynamic_linker='Android linker'
13250 # Don't embed -rpath directories since the linker doesn't support them.
13251 hardcode_libdir_flag_spec='-L$libdir'
13254 # This must be glibc/ELF.
13255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13256 version_type=linux # correct to gnu/linux during the next big refactor
13259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13260 soname_spec='$libname$release$shared_ext$major'
13261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 shlibpath_overrides_runpath=no
13265 # Some binutils ld are patched to set DT_RUNPATH
13266 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13267 $as_echo_n "(cached) " >&6
13269 lt_cv_shlibpath_overrides_runpath=no
13270 save_LDFLAGS=$LDFLAGS
13271 save_libdir=$libdir
13272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13285 if ac_fn_c_try_link "$LINENO"; then :
13286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13287 lt_cv_shlibpath_overrides_runpath=yes
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 LDFLAGS=$save_LDFLAGS
13293 libdir=$save_libdir
13297 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13299 # This implies no fast_install, which is unacceptable.
13300 # Some rework will be needed to allow for fast_install
13301 # before this can be enabled.
13302 hardcode_into_libs=yes
13304 # Add ABI-specific directories to the system library path.
13305 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13307 # Ideally, we could use ldconfig to report *all* directores which are
13308 # searched for libraries, however this is still not possible. Aside from not
13309 # being certain /sbin/ldconfig is available, command
13310 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13311 # even though it is searched at run-time. Try to do the best guess by
13312 # appending ld.so.conf contents (and includes) to the search path.
13313 if test -f /etc/ld.so.conf; then
13314 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' ' '`
13315 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13318 # We used to test for /lib/ld.so.1 and disable shared libraries on
13319 # powerpc, because MkLinux only supported shared libraries with the
13320 # GNU dynamic linker. Since this was broken with cross compilers,
13321 # most powerpc-linux boxes support dynamic linking these days and
13322 # people can always --disable-shared, the test was removed, and we
13323 # assume the GNU/Linux dynamic linker is in use.
13324 dynamic_linker='GNU/Linux ld.so'
13331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13334 dynamic_linker='NetBSD (a.out) ld.so'
13336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13337 soname_spec='$libname$release$shared_ext$major'
13338 dynamic_linker='NetBSD ld.elf_so'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=yes
13342 hardcode_into_libs=yes
13346 version_type=linux # correct to gnu/linux during the next big refactor
13347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13348 shlibpath_var=LD_LIBRARY_PATH
13349 shlibpath_overrides_runpath=yes
13356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13357 soname_spec='$libname$release$shared_ext$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=no
13360 hardcode_into_libs=yes
13361 dynamic_linker='ldqnx.so'
13364 openbsd* | bitrig*)
13366 sys_lib_dlsearch_path_spec=/usr/lib
13368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13373 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 shlibpath_overrides_runpath=yes
13380 libname_spec='$name'
13381 version_type=windows
13385 # OS/2 can only load a DLL with a base name of 8 characters or less.
13386 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13387 v=$($ECHO $release$versuffix | tr -d .-);
13388 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13389 $ECHO $n$v`$shared_ext'
13390 library_names_spec='${libname}_dll.$libext'
13391 dynamic_linker='OS/2 ld.exe'
13392 shlibpath_var=BEGINLIBPATH
13393 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395 postinstall_cmds='base_file=`basename \$file`~
13396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13397 dldir=$destdir/`dirname \$dlpath`~
13398 test -d \$dldir || mkdir -p \$dldir~
13399 $install_prog $dir/$dlname \$dldir/$dlname~
13400 chmod a+x \$dldir/$dlname~
13401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13405 dlpath=$dir/\$dldll~
13409 osf3* | osf4* | osf5*)
13413 soname_spec='$libname$release$shared_ext$major'
13414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13415 shlibpath_var=LD_LIBRARY_PATH
13416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13425 version_type=linux # correct to gnu/linux during the next big refactor
13428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13429 soname_spec='$libname$release$shared_ext$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 # ldd complains unless libraries are executable
13434 postinstall_cmds='chmod +x $lib'
13439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13443 if test yes = "$with_gnu_ld"; then
13450 version_type=linux # correct to gnu/linux during the next big refactor
13451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13452 soname_spec='$libname$release$shared_ext$major'
13453 shlibpath_var=LD_LIBRARY_PATH
13454 case $host_vendor in
13456 shlibpath_overrides_runpath=no
13458 runpath_var=LD_RUN_PATH
13466 shlibpath_overrides_runpath=no
13467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13473 if test -d /usr/nec; then
13474 version_type=linux # correct to gnu/linux during the next big refactor
13475 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13476 soname_spec='$libname$shared_ext.$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13486 soname_spec='$libname$release$shared_ext$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13489 hardcode_into_libs=yes
13490 if test yes = "$with_gnu_ld"; then
13491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13500 sys_lib_dlsearch_path_spec='/usr/lib'
13504 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13505 version_type=linux # correct to gnu/linux during the next big refactor
13508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=no
13511 hardcode_into_libs=yes
13515 version_type=linux # correct to gnu/linux during the next big refactor
13516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13517 soname_spec='$libname$release$shared_ext$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13526 $as_echo "$dynamic_linker" >&6; }
13527 test no = "$dynamic_linker" && can_build_shared=no
13529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13530 if test yes = "$GCC"; then
13531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13534 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13535 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13538 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13539 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13542 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13543 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13545 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13546 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13548 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13549 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13650 if test -n "$hardcode_libdir_flag_spec" ||
13651 test -n "$runpath_var" ||
13652 test yes = "$hardcode_automatic"; then
13654 # We can hardcode non-existent directories.
13655 if test no != "$hardcode_direct" &&
13656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13657 # have to relink, otherwise we might link with an installed library
13658 # when we should be linking with a yet-to-be-installed one
13659 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13660 test no != "$hardcode_minus_L"; then
13661 # Linking always hardcodes the temporary library directory.
13662 hardcode_action=relink
13664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13665 hardcode_action=immediate
13668 # We cannot hardcode anything, or else we can only hardcode existing
13670 hardcode_action=unsupported
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13673 $as_echo "$hardcode_action" >&6; }
13675 if test relink = "$hardcode_action" ||
13676 test yes = "$inherit_rpath"; then
13677 # Fast installation is not supported
13678 enable_fast_install=no
13679 elif test yes = "$shlibpath_overrides_runpath" ||
13680 test no = "$enable_shared"; then
13681 # Fast installation is not necessary
13682 enable_fast_install=needless
13690 if test yes != "$enable_dlopen"; then
13691 enable_dlopen=unknown
13692 enable_dlopen_self=unknown
13693 enable_dlopen_self_static=unknown
13700 lt_cv_dlopen=load_add_on
13702 lt_cv_dlopen_self=yes
13705 mingw* | pw32* | cegcc*)
13706 lt_cv_dlopen=LoadLibrary
13711 lt_cv_dlopen=dlopen
13716 # if libdl is installed we need to link against it
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13719 if ${ac_cv_lib_dl_dlopen+:} false; then :
13720 $as_echo_n "(cached) " >&6
13722 ac_check_lib_save_LIBS=$LIBS
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_lib_dl_dlopen=yes
13745 ac_cv_lib_dl_dlopen=no
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13754 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13759 lt_cv_dlopen_self=yes
13766 # Don't try to run any link tests for TPF. We know it's impossible
13767 # because TPF is a cross-compiler, and we know how we open DSOs.
13768 lt_cv_dlopen=dlopen
13770 lt_cv_dlopen_self=no
13774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13775 if test "x$ac_cv_func_shl_load" = xyes; then :
13776 lt_cv_dlopen=shl_load
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13780 if ${ac_cv_lib_dld_shl_load+:} false; then :
13781 $as_echo_n "(cached) " >&6
13783 ac_check_lib_save_LIBS=$LIBS
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13798 return shl_load ();
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 ac_cv_lib_dld_shl_load=yes
13806 ac_cv_lib_dld_shl_load=no
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13814 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13815 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13817 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13818 if test "x$ac_cv_func_dlopen" = xyes; then :
13819 lt_cv_dlopen=dlopen
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13822 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13823 if ${ac_cv_lib_dl_dlopen+:} false; then :
13824 $as_echo_n "(cached) " >&6
13826 ac_check_lib_save_LIBS=$LIBS
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13831 /* Override any GCC internal prototype to avoid an error.
13832 Use char because int might match the return type of a GCC
13833 builtin and then its argument prototype would still apply. */
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_lib_dl_dlopen=yes
13849 ac_cv_lib_dl_dlopen=no
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13856 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13857 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13858 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13861 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13862 if ${ac_cv_lib_svld_dlopen+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 ac_check_lib_save_LIBS=$LIBS
13866 LIBS="-lsvld $LIBS"
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 /* Override any GCC internal prototype to avoid an error.
13871 Use char because int might match the return type of a GCC
13872 builtin and then its argument prototype would still apply. */
13885 if ac_fn_c_try_link "$LINENO"; then :
13886 ac_cv_lib_svld_dlopen=yes
13888 ac_cv_lib_svld_dlopen=no
13890 rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13895 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13896 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13900 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13901 if ${ac_cv_lib_dld_dld_link+:} false; then :
13902 $as_echo_n "(cached) " >&6
13904 ac_check_lib_save_LIBS=$LIBS
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13919 return dld_link ();
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 ac_cv_lib_dld_dld_link=yes
13927 ac_cv_lib_dld_dld_link=no
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS=$ac_check_lib_save_LIBS
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13934 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13935 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13936 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13957 if test no = "$lt_cv_dlopen"; then
13963 case $lt_cv_dlopen in
13965 save_CPPFLAGS=$CPPFLAGS
13966 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13968 save_LDFLAGS=$LDFLAGS
13969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13972 LIBS="$lt_cv_dlopen_libs $LIBS"
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13975 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13976 if ${lt_cv_dlopen_self+:} false; then :
13977 $as_echo_n "(cached) " >&6
13979 if test yes = "$cross_compiling"; then :
13980 lt_cv_dlopen_self=cross
13982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13983 lt_status=$lt_dlunknown
13984 cat > conftest.$ac_ext <<_LT_EOF
13985 #line $LINENO "configure"
13986 #include "confdefs.h"
13995 # define LT_DLGLOBAL RTLD_GLOBAL
13998 # define LT_DLGLOBAL DL_GLOBAL
14000 # define LT_DLGLOBAL 0
14004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14005 find out it does not work in some platform. */
14006 #ifndef LT_DLLAZY_OR_NOW
14008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14011 # define LT_DLLAZY_OR_NOW DL_LAZY
14014 # define LT_DLLAZY_OR_NOW RTLD_NOW
14017 # define LT_DLLAZY_OR_NOW DL_NOW
14019 # define LT_DLLAZY_OR_NOW 0
14026 /* When -fvisibility=hidden is used, assume the code has been annotated
14027 correspondingly for the symbols needed. */
14028 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14029 int fnord () __attribute__((visibility("default")));
14032 int fnord () { return 42; }
14035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14036 int status = $lt_dlunknown;
14040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14044 else puts (dlerror ());
14046 /* dlclose (self); */
14054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14055 (eval $ac_link) 2>&5
14057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14058 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14059 (./conftest; exit; ) >&5 2>/dev/null
14061 case x$lt_status in
14062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14064 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14067 # compilation failed
14068 lt_cv_dlopen_self=no
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14076 $as_echo "$lt_cv_dlopen_self" >&6; }
14078 if test yes = "$lt_cv_dlopen_self"; then
14079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14081 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14082 if ${lt_cv_dlopen_self_static+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 if test yes = "$cross_compiling"; then :
14086 lt_cv_dlopen_self_static=cross
14088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14089 lt_status=$lt_dlunknown
14090 cat > conftest.$ac_ext <<_LT_EOF
14091 #line $LINENO "configure"
14092 #include "confdefs.h"
14101 # define LT_DLGLOBAL RTLD_GLOBAL
14104 # define LT_DLGLOBAL DL_GLOBAL
14106 # define LT_DLGLOBAL 0
14110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14111 find out it does not work in some platform. */
14112 #ifndef LT_DLLAZY_OR_NOW
14114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14117 # define LT_DLLAZY_OR_NOW DL_LAZY
14120 # define LT_DLLAZY_OR_NOW RTLD_NOW
14123 # define LT_DLLAZY_OR_NOW DL_NOW
14125 # define LT_DLLAZY_OR_NOW 0
14132 /* When -fvisibility=hidden is used, assume the code has been annotated
14133 correspondingly for the symbols needed. */
14134 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14135 int fnord () __attribute__((visibility("default")));
14138 int fnord () { return 42; }
14141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14142 int status = $lt_dlunknown;
14146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14150 else puts (dlerror ());
14152 /* dlclose (self); */
14160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14161 (eval $ac_link) 2>&5
14163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14164 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14165 (./conftest; exit; ) >&5 2>/dev/null
14167 case x$lt_status in
14168 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14169 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14170 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14173 # compilation failed
14174 lt_cv_dlopen_self_static=no
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14182 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14185 CPPFLAGS=$save_CPPFLAGS
14186 LDFLAGS=$save_LDFLAGS
14191 case $lt_cv_dlopen_self in
14192 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14193 *) enable_dlopen_self=unknown ;;
14196 case $lt_cv_dlopen_self_static in
14197 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14198 *) enable_dlopen_self_static=unknown ;;
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14221 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14222 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14223 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14224 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14226 $as_echo "yes" >&6; }
14228 # FIXME - insert some real tests, host_os isn't really good enough
14231 if test -n "$STRIP"; then
14232 striplib="$STRIP -x"
14233 old_striplib="$STRIP -S"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235 $as_echo "yes" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14243 $as_echo "no" >&6; }
14259 # Report what library types will actually be built
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14261 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14263 $as_echo "$can_build_shared" >&6; }
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14266 $as_echo_n "checking whether to build shared libraries... " >&6; }
14267 test no = "$can_build_shared" && enable_shared=no
14269 # On AIX, shared libraries and static libraries use the same namespace, and
14270 # are all built from PIC.
14273 test yes = "$enable_shared" && enable_static=no
14274 if test -n "$RANLIB"; then
14275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14276 postinstall_cmds='$RANLIB $lib'
14281 if test ia64 != "$host_cpu"; then
14282 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14283 yes,aix,yes) ;; # shared object as lib.so file only
14284 yes,svr4,*) ;; # shared object as lib.so archive member only
14285 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14291 $as_echo "$enable_shared" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14294 $as_echo_n "checking whether to build static libraries... " >&6; }
14295 # Make sure either enable_shared or enable_static is yes.
14296 test yes = "$enable_shared" || enable_static=yes
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14298 $as_echo "$enable_static" >&6; }
14305 ac_cpp='$CPP $CPPFLAGS'
14306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14326 ac_config_commands="$ac_config_commands libtool"
14331 # Only expand once:
14336 # Checks for header files.
14337 for ac_header in stdarg.h stdbool.h netinet/in.h netinet/tcp.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h
14339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14343 cat >>confdefs.h <<_ACEOF
14344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14353 # Using own tests for int64* because autoconf builtin only give 32bit.
14354 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
14355 if test "x$ac_cv_type_int8_t" = xyes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 #define int8_t signed char
14365 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
14366 if test "x$ac_cv_type_int16_t" = xyes; then :
14370 cat >>confdefs.h <<_ACEOF
14371 #define int16_t short
14376 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
14377 if test "x$ac_cv_type_int32_t" = xyes; then :
14381 cat >>confdefs.h <<_ACEOF
14382 #define int32_t int
14387 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
14388 if test "x$ac_cv_type_int64_t" = xyes; then :
14392 cat >>confdefs.h <<_ACEOF
14393 #define int64_t long long
14398 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
14399 if test "x$ac_cv_type_uint8_t" = xyes; then :
14403 cat >>confdefs.h <<_ACEOF
14404 #define uint8_t unsigned char
14409 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
14410 if test "x$ac_cv_type_uint16_t" = xyes; then :
14414 cat >>confdefs.h <<_ACEOF
14415 #define uint16_t unsigned short
14420 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
14421 if test "x$ac_cv_type_uint32_t" = xyes; then :
14425 cat >>confdefs.h <<_ACEOF
14426 #define uint32_t unsigned int
14431 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
14432 if test "x$ac_cv_type_uint64_t" = xyes; then :
14436 cat >>confdefs.h <<_ACEOF
14437 #define uint64_t unsigned long long
14442 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14443 if test "x$ac_cv_type_size_t" = xyes; then :
14447 cat >>confdefs.h <<_ACEOF
14448 #define size_t unsigned int
14453 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14454 if test "x$ac_cv_type_ssize_t" = xyes; then :
14458 cat >>confdefs.h <<_ACEOF
14459 #define ssize_t int
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14465 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14466 if ${ac_cv_type_uid_t+:} false; then :
14467 $as_echo_n "(cached) " >&6
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 #include <sys/types.h>
14474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14475 $EGREP "uid_t" >/dev/null 2>&1; then :
14476 ac_cv_type_uid_t=yes
14478 ac_cv_type_uid_t=no
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14484 $as_echo "$ac_cv_type_uid_t" >&6; }
14485 if test $ac_cv_type_uid_t = no; then
14487 $as_echo "#define uid_t int" >>confdefs.h
14490 $as_echo "#define gid_t int" >>confdefs.h
14494 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14495 if test "x$ac_cv_type_pid_t" = xyes; then :
14499 cat >>confdefs.h <<_ACEOF
14505 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14506 if test "x$ac_cv_type_off_t" = xyes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define off_t long int
14516 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14517 $ac_includes_default
14518 #ifdef HAVE_WINSOCK2_H
14519 # include <winsock2.h>
14523 if test "x$ac_cv_type_u_char" = xyes; then :
14527 $as_echo "#define u_char unsigned char" >>confdefs.h
14531 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14532 $ac_includes_default
14533 #ifdef HAVE_SYS_RESOURCE_H
14534 # include <sys/resource.h>
14538 if test "x$ac_cv_type_rlim_t" = xyes; then :
14542 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14547 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14548 $ac_includes_default
14549 #ifdef HAVE_SYS_SOCKET_H
14550 # include <sys/socket.h>
14552 #ifdef HAVE_WS2TCPIP_H
14553 # include <ws2tcpip.h>
14557 if test "x$ac_cv_type_socklen_t" = xyes; then :
14561 $as_echo "#define socklen_t int" >>confdefs.h
14565 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14566 $ac_includes_default
14567 #ifdef HAVE_SYS_TYPES_H
14568 # include <sys/types.h>
14570 #ifdef HAVE_NETINET_IN_H
14571 # include <netinet/in.h>
14575 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14579 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14583 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14584 $ac_includes_default
14585 #ifdef HAVE_SYS_TYPES_H
14586 # include <sys/types.h>
14588 #ifdef HAVE_NETINET_IN_H
14589 # include <netinet/in.h>
14593 if test "x$ac_cv_type_in_port_t" = xyes; then :
14597 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14602 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14603 if test "$cross_compiling" = yes; then :
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14605 $as_echo "cross-compile no" >&6; }
14607 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14609 case " $LIBOBJS " in
14610 *" memcmp.$ac_objext "* ) ;;
14611 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14621 #include <stdlib.h>
14622 #include <string.h>
14625 char a = 255, b = 0;
14626 if(memcmp(&a, &b, 1) < 0)
14632 if ac_fn_c_try_run "$LINENO"; then :
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14634 $as_echo "yes" >&6; }
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14639 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14641 case " $LIBOBJS " in
14642 *" memcmp.$ac_objext "* ) ;;
14643 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14650 conftest.$ac_objext conftest.beam conftest.$ac_ext
14654 # The cast to long int works around a bug in the HP C Compiler
14655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14657 # This bug is HP SR number 8606223364.
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14659 $as_echo_n "checking size of time_t... " >&6; }
14660 if ${ac_cv_sizeof_time_t+:} false; then :
14661 $as_echo_n "(cached) " >&6
14663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14664 $ac_includes_default
14665 #ifdef TIME_WITH_SYS_TIME
14666 # include <sys/time.h>
14669 # ifdef HAVE_SYS_TIME_H
14670 # include <sys/time.h>
14679 if test "$ac_cv_type_time_t" = yes; then
14680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14682 as_fn_error 77 "cannot compute sizeof (time_t)
14683 See \`config.log' for more details" "$LINENO" 5; }
14685 ac_cv_sizeof_time_t=0
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14691 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14695 cat >>confdefs.h <<_ACEOF
14696 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14701 # add option to disable the evil rpath
14703 # Check whether --enable-rpath was given.
14704 if test "${enable_rpath+set}" = set; then :
14705 enableval=$enable_rpath; enable_rpath=$enableval
14710 if test "x$enable_rpath" = xno; then
14711 ac_config_commands="$ac_config_commands disable-rpath"
14717 # check to see if libraries are needed for these functions.
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14719 $as_echo_n "checking for library containing inet_pton... " >&6; }
14720 if ${ac_cv_search_inet_pton+:} false; then :
14721 $as_echo_n "(cached) " >&6
14723 ac_func_search_save_LIBS=$LIBS
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14737 return inet_pton ();
14742 for ac_lib in '' nsl; do
14743 if test -z "$ac_lib"; then
14744 ac_res="none required"
14747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14749 if ac_fn_c_try_link "$LINENO"; then :
14750 ac_cv_search_inet_pton=$ac_res
14752 rm -f core conftest.err conftest.$ac_objext \
14754 if ${ac_cv_search_inet_pton+:} false; then :
14758 if ${ac_cv_search_inet_pton+:} false; then :
14761 ac_cv_search_inet_pton=no
14763 rm conftest.$ac_ext
14764 LIBS=$ac_func_search_save_LIBS
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14767 $as_echo "$ac_cv_search_inet_pton" >&6; }
14768 ac_res=$ac_cv_search_inet_pton
14769 if test "$ac_res" != no; then :
14770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14775 $as_echo_n "checking for library containing socket... " >&6; }
14776 if ${ac_cv_search_socket+:} false; then :
14777 $as_echo_n "(cached) " >&6
14779 ac_func_search_save_LIBS=$LIBS
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14783 /* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14798 for ac_lib in '' socket; do
14799 if test -z "$ac_lib"; then
14800 ac_res="none required"
14803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 ac_cv_search_socket=$ac_res
14808 rm -f core conftest.err conftest.$ac_objext \
14810 if ${ac_cv_search_socket+:} false; then :
14814 if ${ac_cv_search_socket+:} false; then :
14817 ac_cv_search_socket=no
14819 rm conftest.$ac_ext
14820 LIBS=$ac_func_search_save_LIBS
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14823 $as_echo "$ac_cv_search_socket" >&6; }
14824 ac_res=$ac_cv_search_socket
14825 if test "$ac_res" != no; then :
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14831 # check wether strptime also works
14833 # check some functions of the OS before linking libs (while still runnable).
14834 for ac_header in unistd.h
14836 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14837 if test "x$ac_cv_header_unistd_h" = xyes; then :
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_UNISTD_H 1
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14847 $as_echo_n "checking for working chown... " >&6; }
14848 if ${ac_cv_func_chown_works+:} false; then :
14849 $as_echo_n "(cached) " >&6
14851 if test "$cross_compiling" = yes; then :
14852 ac_cv_func_chown_works=no
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856 $ac_includes_default
14862 char *f = "conftest.chown";
14863 struct stat before, after;
14865 if (creat (f, 0600) < 0)
14867 if (stat (f, &before) < 0)
14869 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14871 if (stat (f, &after) < 0)
14873 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14879 if ac_fn_c_try_run "$LINENO"; then :
14880 ac_cv_func_chown_works=yes
14882 ac_cv_func_chown_works=no
14884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14885 conftest.$ac_objext conftest.beam conftest.$ac_ext
14888 rm -f conftest.chown
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14892 $as_echo "$ac_cv_func_chown_works" >&6; }
14893 if test $ac_cv_func_chown_works = yes; then
14895 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14899 for ac_header in vfork.h
14901 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14902 if test "x$ac_cv_header_vfork_h" = xyes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_VFORK_H 1
14911 for ac_func in fork vfork
14913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14916 cat >>confdefs.h <<_ACEOF
14917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14923 if test "x$ac_cv_func_fork" = xyes; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14925 $as_echo_n "checking for working fork... " >&6; }
14926 if ${ac_cv_func_fork_works+:} false; then :
14927 $as_echo_n "(cached) " >&6
14929 if test "$cross_compiling" = yes; then :
14930 ac_cv_func_fork_works=cross
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 $ac_includes_default
14939 /* By Ruediger Kuhlmann. */
14940 return fork () < 0;
14946 if ac_fn_c_try_run "$LINENO"; then :
14947 ac_cv_func_fork_works=yes
14949 ac_cv_func_fork_works=no
14951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14952 conftest.$ac_objext conftest.beam conftest.$ac_ext
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14957 $as_echo "$ac_cv_func_fork_works" >&6; }
14960 ac_cv_func_fork_works=$ac_cv_func_fork
14962 if test "x$ac_cv_func_fork_works" = xcross; then
14964 *-*-amigaos* | *-*-msdosdjgpp*)
14965 # Override, as these systems have only a dummy fork() stub
14966 ac_cv_func_fork_works=no
14969 ac_cv_func_fork_works=yes
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14973 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14975 ac_cv_func_vfork_works=$ac_cv_func_vfork
14976 if test "x$ac_cv_func_vfork" = xyes; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14978 $as_echo_n "checking for working vfork... " >&6; }
14979 if ${ac_cv_func_vfork_works+:} false; then :
14980 $as_echo_n "(cached) " >&6
14982 if test "$cross_compiling" = yes; then :
14983 ac_cv_func_vfork_works=cross
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 /* Thanks to Paul Eggert for this test. */
14988 $ac_includes_default
14989 #include <sys/wait.h>
14990 #ifdef HAVE_VFORK_H
14991 # include <vfork.h>
14993 /* On some sparc systems, changes by the child to local and incoming
14994 argument registers are propagated back to the parent. The compiler
14995 is told about this with #include <vfork.h>, but some compilers
14996 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14997 static variable whose address is put into a register that is
14998 clobbered by the vfork. */
15001 sparc_address_test (int arg)
15003 sparc_address_test (arg) int arg;
15006 static pid_t child;
15024 pid_t parent = getpid ();
15027 sparc_address_test (0);
15032 /* Here is another test for sparc vfork register problems. This
15033 test uses lots of local variables, at least as many local
15034 variables as main has allocated so far including compiler
15035 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15036 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15037 reuse the register of parent for one of the local variables,
15038 since it will think that parent can't possibly be used any more
15039 in this routine. Assigning to the local variable will thus
15040 munge parent in the parent process. */
15042 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15043 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15044 /* Convince the compiler that p..p7 are live; otherwise, it might
15045 use the same hardware register for all 8 local variables. */
15046 if (p != p1 || p != p2 || p != p3 || p != p4
15047 || p != p5 || p != p6 || p != p7)
15050 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15051 from child file descriptors. If the child closes a descriptor
15052 before it execs or exits, this munges the parent's descriptor
15053 as well. Test for this by closing stdout in the child. */
15054 _exit(close(fileno(stdout)) != 0);
15059 while (wait(&status) != child)
15062 /* Was there some problem with vforking? */
15065 /* Did the child fail? (This shouldn't happen.) */
15068 /* Did the vfork/compiler bug occur? */
15069 || parent != getpid()
15071 /* Did the file descriptor bug occur? */
15072 || fstat(fileno(stdout), &st) != 0
15077 if ac_fn_c_try_run "$LINENO"; then :
15078 ac_cv_func_vfork_works=yes
15080 ac_cv_func_vfork_works=no
15082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15083 conftest.$ac_objext conftest.beam conftest.$ac_ext
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15088 $as_echo "$ac_cv_func_vfork_works" >&6; }
15091 if test "x$ac_cv_func_fork_works" = xcross; then
15092 ac_cv_func_vfork_works=$ac_cv_func_vfork
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15094 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15097 if test "x$ac_cv_func_vfork_works" = xyes; then
15099 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15103 $as_echo "#define vfork fork" >>confdefs.h
15106 if test "x$ac_cv_func_fork_works" = xyes; then
15108 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15113 $as_echo_n "checking return type of signal handlers... " >&6; }
15114 if ${ac_cv_type_signal+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 #include <signal.h>
15125 return *(signal (0, 0)) (0) == 1;
15130 if ac_fn_c_try_compile "$LINENO"; then :
15131 ac_cv_type_signal=int
15133 ac_cv_type_signal=void
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15138 $as_echo "$ac_cv_type_signal" >&6; }
15140 cat >>confdefs.h <<_ACEOF
15141 #define RETSIGTYPE $ac_cv_type_signal
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15146 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15147 if ${ac_cv_sys_largefile_source+:} false; then :
15148 $as_echo_n "(cached) " >&6
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <sys/types.h> /* for off_t */
15158 int (*fp) (FILE *, off_t, int) = fseeko;
15159 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15164 if ac_fn_c_try_link "$LINENO"; then :
15165 ac_cv_sys_largefile_source=no; break
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #define _LARGEFILE_SOURCE 1
15172 #include <sys/types.h> /* for off_t */
15177 int (*fp) (FILE *, off_t, int) = fseeko;
15178 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15183 if ac_fn_c_try_link "$LINENO"; then :
15184 ac_cv_sys_largefile_source=1; break
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 ac_cv_sys_largefile_source=unknown
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15193 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15194 case $ac_cv_sys_largefile_source in #(
15197 cat >>confdefs.h <<_ACEOF
15198 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15204 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15205 # in glibc 2.1.3, but that breaks too many other things.
15206 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15207 if test $ac_cv_sys_largefile_source != unknown; then
15209 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15214 # Check whether --enable-largefile was given.
15215 if test "${enable_largefile+set}" = set; then :
15216 enableval=$enable_largefile;
15219 if test "$enable_largefile" != no; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15222 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15223 if ${ac_cv_sys_largefile_CC+:} false; then :
15224 $as_echo_n "(cached) " >&6
15226 ac_cv_sys_largefile_CC=no
15227 if test "$GCC" != yes; then
15230 # IRIX 6.2 and later do not support large files by default,
15231 # so use the C compiler's -n32 option if that helps.
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 #include <sys/types.h>
15235 /* Check that off_t can represent 2**63 - 1 correctly.
15236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15237 since some C++ compilers masquerading as C compilers
15238 incorrectly reject 9223372036854775807. */
15239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15241 && LARGE_OFF_T % 2147483647 == 1)
15251 if ac_fn_c_try_compile "$LINENO"; then :
15254 rm -f core conftest.err conftest.$ac_objext
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 ac_cv_sys_largefile_CC=' -n32'; break
15259 rm -f core conftest.err conftest.$ac_objext
15263 rm -f conftest.$ac_ext
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15267 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15268 if test "$ac_cv_sys_largefile_CC" != no; then
15269 CC=$CC$ac_cv_sys_largefile_CC
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15273 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15274 if ${ac_cv_sys_file_offset_bits+:} false; then :
15275 $as_echo_n "(cached) " >&6
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 #include <sys/types.h>
15281 /* Check that off_t can represent 2**63 - 1 correctly.
15282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15283 since some C++ compilers masquerading as C compilers
15284 incorrectly reject 9223372036854775807. */
15285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15287 && LARGE_OFF_T % 2147483647 == 1)
15297 if ac_fn_c_try_compile "$LINENO"; then :
15298 ac_cv_sys_file_offset_bits=no; break
15300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 #define _FILE_OFFSET_BITS 64
15304 #include <sys/types.h>
15305 /* Check that off_t can represent 2**63 - 1 correctly.
15306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15307 since some C++ compilers masquerading as C compilers
15308 incorrectly reject 9223372036854775807. */
15309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15311 && LARGE_OFF_T % 2147483647 == 1)
15321 if ac_fn_c_try_compile "$LINENO"; then :
15322 ac_cv_sys_file_offset_bits=64; break
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 ac_cv_sys_file_offset_bits=unknown
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15330 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15331 case $ac_cv_sys_file_offset_bits in #(
15334 cat >>confdefs.h <<_ACEOF
15335 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15340 if test $ac_cv_sys_file_offset_bits = unknown; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15342 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15343 if ${ac_cv_sys_large_files+:} false; then :
15344 $as_echo_n "(cached) " >&6
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 #include <sys/types.h>
15350 /* Check that off_t can represent 2**63 - 1 correctly.
15351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15352 since some C++ compilers masquerading as C compilers
15353 incorrectly reject 9223372036854775807. */
15354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15356 && LARGE_OFF_T % 2147483647 == 1)
15366 if ac_fn_c_try_compile "$LINENO"; then :
15367 ac_cv_sys_large_files=no; break
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 #define _LARGE_FILES 1
15373 #include <sys/types.h>
15374 /* Check that off_t can represent 2**63 - 1 correctly.
15375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15376 since some C++ compilers masquerading as C compilers
15377 incorrectly reject 9223372036854775807. */
15378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15380 && LARGE_OFF_T % 2147483647 == 1)
15390 if ac_fn_c_try_compile "$LINENO"; then :
15391 ac_cv_sys_large_files=1; break
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15394 ac_cv_sys_large_files=unknown
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15399 $as_echo "$ac_cv_sys_large_files" >&6; }
15400 case $ac_cv_sys_large_files in #(
15403 cat >>confdefs.h <<_ACEOF
15404 #define _LARGE_FILES $ac_cv_sys_large_files
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
15418 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
15419 cache=_D_LARGEFILE_SOURCE_1
15420 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
15421 $as_echo_n "(cached) " >&6
15427 int a = fseeko(stdin, 0, 0);
15431 echo 'void f(){}' >>conftest.c
15432 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
15433 eval "cv_prog_cc_flag_needed_$cache=no"
15436 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
15437 eval "cv_prog_cc_flag_needed_$cache=yes"
15439 eval "cv_prog_cc_flag_needed_$cache=fail"
15440 #echo 'Test with flag fails too!'
15442 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15443 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15448 rm -f conftest conftest.c conftest.o
15452 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15454 $as_echo "yes" >&6; }
15456 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
15458 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15460 $as_echo "no" >&6; }
15461 #echo 'Test with flag is no!'
15463 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
15464 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15470 $as_echo "failed" >&6; }
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
15479 $as_echo_n "checking if nonblocking sockets work... " >&6; }
15480 if echo $target | grep mingw32 >/dev/null; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
15482 $as_echo "no (windows)" >&6; }
15484 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15487 if test "$cross_compiling" = yes; then :
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
15490 $as_echo "crosscompile(yes)" >&6; }
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15498 #include <string.h>
15499 #include <stdlib.h>
15502 #ifdef HAVE_SYS_TYPES_H
15503 #include <sys/types.h>
15505 #ifdef HAVE_SYS_SOCKET_H
15506 #include <sys/socket.h>
15508 #ifdef HAVE_NETINET_IN_H
15509 #include <netinet/in.h>
15511 #ifdef HAVE_ARPA_INET_H
15512 #include <arpa/inet.h>
15514 #ifdef HAVE_UNISTD_H
15515 #include <unistd.h>
15527 struct sockaddr_in a;
15528 /* test if select and nonblocking reads work well together */
15530 fork child to send 10 messages.
15532 then try to nonblocking read the 10 messages
15533 then, nonblocking read must give EAGAIN
15536 port = 12345 + (time(0)%32);
15537 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15542 memset(&a, 0, sizeof(a));
15543 a.sin_family = AF_INET;
15544 a.sin_port = htons(port);
15545 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15546 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15550 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15555 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15557 perror("client socket");
15561 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15562 perror("client bind");
15565 a.sin_port = htons(port);
15567 /* no handler, causes exit in 10 seconds */
15570 /* send and receive on the socket */
15571 if((p=fork()) == 0) {
15572 for(i=0; i<num; i++) {
15573 if(sendto(cfd, &i, sizeof(i), 0,
15574 (struct sockaddr*)&a, sizeof(a)) < 0) {
15588 FD_SET(sfd, &rset);
15589 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15595 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15596 if(errno == EAGAIN)
15603 /* now we want to get EAGAIN: nonblocking goodness */
15605 recv(sfd, &x, sizeof(x), 0);
15606 if(errno != EAGAIN) {
15607 perror("trying to recv again");
15610 /* EAGAIN encountered */
15619 if ac_fn_c_try_run "$LINENO"; then :
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15622 $as_echo "yes" >&6; }
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15627 $as_echo "no" >&6; }
15629 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15634 conftest.$ac_objext conftest.beam conftest.$ac_ext
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15641 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15646 #include <unistd.h>
15647 #ifdef HAVE_WINSOCK2_H
15648 #include <winsock2.h>
15650 #ifdef HAVE_SYS_STAT_H
15651 #include <sys/stat.h>
15658 (void)mkdir("directory");
15664 if ac_fn_c_try_compile "$LINENO"; then :
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15666 $as_echo "yes" >&6; }
15668 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15673 $as_echo "no" >&6; }
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 for ac_func in strptime
15680 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15681 if test "x$ac_cv_func_strptime" = xyes; then :
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_STRPTIME 1
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15687 $as_echo_n "checking whether strptime works... " >&6; }
15688 if test c${cross_compiling} = cno; then
15689 if test "$cross_compiling" = yes; then :
15690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15692 as_fn_error $? "cannot run test program while cross compiling
15693 See \`config.log' for more details" "$LINENO" 5; }
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15698 #define _XOPEN_SOURCE 600
15700 int main(void) { struct tm tm; char *res;
15701 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);
15702 if (!res) return 2;
15703 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15704 if (!res) return 1; return 0; }
15707 if ac_fn_c_try_run "$LINENO"; then :
15708 eval "ac_cv_c_strptime_works=yes"
15710 eval "ac_cv_c_strptime_works=no"
15712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15713 conftest.$ac_objext conftest.beam conftest.$ac_ext
15717 eval "ac_cv_c_strptime_works=maybe"
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15720 $as_echo "$ac_cv_c_strptime_works" >&6; }
15721 if test $ac_cv_c_strptime_works = no; then
15722 case " $LIBOBJS " in
15723 *" strptime.$ac_objext "* ) ;;
15724 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15730 cat >>confdefs.h <<_ACEOF
15731 #define STRPTIME_WORKS 1
15737 case " $LIBOBJS " in
15738 *" strptime.$ac_objext "* ) ;;
15739 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15747 # set memory allocation checking if requested
15748 # Check whether --enable-alloc-checks was given.
15749 if test "${enable_alloc_checks+set}" = set; then :
15750 enableval=$enable_alloc_checks;
15753 # Check whether --enable-alloc-lite was given.
15754 if test "${enable_alloc_lite+set}" = set; then :
15755 enableval=$enable_alloc_lite;
15758 # Check whether --enable-alloc-nonregional was given.
15759 if test "${enable_alloc_nonregional+set}" = set; then :
15760 enableval=$enable_alloc_nonregional;
15763 if test x_$enable_alloc_nonregional = x_yes; then
15765 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15768 if test x_$enable_alloc_checks = x_yes; then
15770 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15773 if test x_$enable_alloc_lite = x_yes; then
15775 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15780 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15781 if test "$cross_compiling" = yes; then :
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15783 $as_echo "no (crosscompile)" >&6; }
15784 case " $LIBOBJS " in
15785 *" malloc.$ac_objext "* ) ;;
15786 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15791 cat >>confdefs.h <<_ACEOF
15792 #define malloc rpl_malloc_unbound
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15799 #include <stdlib.h>
15807 if(malloc(0) != 0) return 1;
15813 if ac_fn_c_try_run "$LINENO"; then :
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15816 case " $LIBOBJS " in
15817 *" malloc.$ac_objext "* ) ;;
15818 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15823 cat >>confdefs.h <<_ACEOF
15824 #define malloc rpl_malloc_unbound
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15829 $as_echo "yes" >&6; }
15831 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15835 conftest.$ac_objext conftest.beam conftest.$ac_ext
15842 # check windows threads (we use them, not pthreads, on windows).
15843 if test "$on_mingw" = "yes"; then
15844 # check windows threads
15845 for ac_header in windows.h
15847 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15849 if test "x$ac_cv_header_windows_h" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_WINDOWS_H 1
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15859 $as_echo_n "checking for CreateThread... " >&6; }
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15863 #ifdef HAVE_WINDOWS_H
15864 #include <windows.h>
15871 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15881 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 # not on mingw, check thread libraries.
15894 # check for thread library.
15895 # check this first, so that the pthread lib does not get linked in via
15896 # libssl or libpython, and thus distorts the tests, and we end up using
15897 # the non-threadsafe C libraries.
15899 # Check whether --with-pthreads was given.
15900 if test "${with_pthreads+set}" = set; then :
15901 withval=$with_pthreads;
15906 ub_have_pthreads=no
15907 if test x_$withval != x_no; then
15911 ac_cpp='$CPP $CPPFLAGS'
15912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15918 # We used to check for pthread.h first, but this fails if pthread.h
15919 # requires special compiler flags (e.g. on True64 or Sequent).
15920 # It gets checked for in the link test anyway.
15922 # First of all, check if the user has set any of the PTHREAD_LIBS,
15923 # etcetera environment variables, and if threads linking works using
15925 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15926 save_CFLAGS="$CFLAGS"
15927 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15929 LIBS="$PTHREAD_LIBS $LIBS"
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15931 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15935 /* Override any GCC internal prototype to avoid an error.
15936 Use char because int might match the return type of a GCC
15937 builtin and then its argument prototype would still apply. */
15941 char pthread_join ();
15945 return pthread_join ();
15950 if ac_fn_c_try_link "$LINENO"; then :
15953 rm -f core conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15956 $as_echo "$ax_pthread_ok" >&6; }
15957 if test x"$ax_pthread_ok" = xno; then
15962 CFLAGS="$save_CFLAGS"
15965 # We must check for the threads library under a number of different
15966 # names; the ordering is very important because some systems
15967 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15968 # libraries is broken (non-POSIX).
15970 # Create a list of thread flags to try. Items starting with a "-" are
15971 # C compiler flags, and other items are library names, except for "none"
15972 # which indicates that we try without any flags at all, and "pthread-config"
15973 # which is a program returning the flags for the Pth emulation library.
15975 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15977 # The ordering *is* (sometimes) important. Some notes on the
15978 # individual items follow:
15980 # pthreads: AIX (must check this before -lpthread)
15981 # none: in case threads are in libc; should be tried before -Kthread and
15982 # other compiler flags to prevent continual compiler warnings
15983 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15984 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15985 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15986 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15987 # -pthreads: Solaris/gcc
15988 # -mthreads: Mingw32/gcc, Lynx/gcc
15989 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15990 # doesn't hurt to check since this sometimes defines pthreads too;
15991 # also defines -D_REENTRANT)
15992 # ... -mt is also the pthreads flag for HP/aCC
15993 # pthread: Linux, etcetera
15994 # --thread-safe: KAI C++
15995 # pthread-config: use pthread-config program (for GNU Pth library)
16000 # On Solaris (at least, for some versions), libc contains stubbed
16001 # (non-functional) versions of the pthreads routines, so link-based
16002 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16003 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16004 # a function called by this macro, so we could check for that, but
16005 # who knows whether they'll stub that too in a future libc.) So,
16006 # we'll just look for -pthreads and -lpthread first:
16008 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16012 ax_pthread_flags="-pthread $ax_pthread_flags"
16016 # Clang doesn't consider unrecognized options an error unless we specify
16017 # -Werror. We throw in some extra Clang-specific options to ensure that
16018 # this doesn't happen for GCC, which also accepts -Werror.
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16021 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16022 save_CFLAGS="$CFLAGS"
16023 ax_pthread_extra_flags="-Werror"
16024 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026 /* end confdefs.h. */
16036 if ac_fn_c_try_compile "$LINENO"; then :
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16040 ax_pthread_extra_flags=
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042 $as_echo "no" >&6; }
16044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 CFLAGS="$save_CFLAGS"
16047 if test x"$ax_pthread_ok" = xno; then
16048 for flag in $ax_pthread_flags; do
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16053 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16058 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16059 PTHREAD_CFLAGS="$flag"
16063 # Extract the first word of "pthread-config", so it can be a program name with args.
16064 set dummy pthread-config; ac_word=$2
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16066 $as_echo_n "checking for $ac_word... " >&6; }
16067 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16068 $as_echo_n "(cached) " >&6
16070 if test -n "$ax_pthread_config"; then
16071 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_prog_ax_pthread_config="yes"
16081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16088 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16091 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16092 if test -n "$ax_pthread_config"; then
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16094 $as_echo "$ax_pthread_config" >&6; }
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16101 if test x"$ax_pthread_config" = xno; then continue; fi
16102 PTHREAD_CFLAGS="`pthread-config --cflags`"
16103 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16108 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16109 PTHREAD_LIBS="-l$flag"
16114 save_CFLAGS="$CFLAGS"
16115 LIBS="$PTHREAD_LIBS $LIBS"
16116 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16118 # Check for various functions. We must include pthread.h,
16119 # since some functions may be macros. (On the Sequent, we
16120 # need a special flag -Kthread to make this header compile.)
16121 # We check for pthread_join because it is in -lpthread on IRIX
16122 # while pthread_create is in libc. We check for pthread_attr_init
16123 # due to DEC craziness with -lpthreads. We check for
16124 # pthread_cleanup_push because it is one of the few pthread
16125 # functions on Solaris that doesn't have a non-functional libc stub.
16126 # We try pthread_create on general principles.
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #include <pthread.h>
16130 static void routine(void *a) { *((int*)a) = 0; }
16131 static void *start_routine(void *a) { return a; }
16135 pthread_t th; pthread_attr_t attr;
16136 pthread_create(&th, 0, start_routine, 0);
16137 pthread_join(th, 0);
16138 pthread_attr_init(&attr);
16139 pthread_cleanup_push(routine, 0);
16140 pthread_cleanup_pop(0) /* ; */
16145 if ac_fn_c_try_link "$LINENO"; then :
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16152 CFLAGS="$save_CFLAGS"
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16155 $as_echo "$ax_pthread_ok" >&6; }
16156 if test "x$ax_pthread_ok" = xyes; then
16165 # Various other checks:
16166 if test "x$ax_pthread_ok" = xyes; then
16168 LIBS="$PTHREAD_LIBS $LIBS"
16169 save_CFLAGS="$CFLAGS"
16170 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16172 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16174 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16176 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 #include <pthread.h>
16183 int attr = $attr; return attr /* ; */
16188 if ac_fn_c_try_link "$LINENO"; then :
16189 attr_name=$attr; break
16191 rm -f core conftest.err conftest.$ac_objext \
16192 conftest$ac_exeext conftest.$ac_ext
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16195 $as_echo "$attr_name" >&6; }
16196 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16198 cat >>confdefs.h <<_ACEOF
16199 #define PTHREAD_CREATE_JOINABLE $attr_name
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16205 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16208 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16209 osf* | hpux*) flag="-D_REENTRANT";;
16211 if test "$GCC" = "yes"; then
16212 flag="-D_REENTRANT"
16214 # TODO: What about Clang on Solaris?
16215 flag="-mt -D_REENTRANT"
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16220 $as_echo "$flag" >&6; }
16221 if test "x$flag" != xno; then
16222 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16226 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16227 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16228 $as_echo_n "(cached) " >&6
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 #include <pthread.h>
16237 int i = PTHREAD_PRIO_INHERIT;
16242 if ac_fn_c_try_link "$LINENO"; then :
16243 ax_cv_PTHREAD_PRIO_INHERIT=yes
16245 ax_cv_PTHREAD_PRIO_INHERIT=no
16247 rm -f core conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16252 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16253 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16255 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16260 CFLAGS="$save_CFLAGS"
16262 # More AIX lossage: compile with *_r variant
16263 if test "x$GCC" != xyes; then
16267 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16268 #handle absolute path differently from PATH based program lookup
16271 if as_fn_executable_p ${CC}_r; then :
16272 PTHREAD_CC="${CC}_r"
16275 for ac_prog in ${CC}_r
16277 # Extract the first word of "$ac_prog", so it can be a program name with args.
16278 set dummy $ac_prog; ac_word=$2
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16280 $as_echo_n "checking for $ac_word... " >&6; }
16281 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16282 $as_echo_n "(cached) " >&6
16284 if test -n "$PTHREAD_CC"; then
16285 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16288 for as_dir in $PATH
16291 test -z "$as_dir" && as_dir=.
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16294 ac_cv_prog_PTHREAD_CC="$ac_prog"
16295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16305 if test -n "$PTHREAD_CC"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16307 $as_echo "$PTHREAD_CC" >&6; }
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16314 test -n "$PTHREAD_CC" && break
16316 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16327 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16333 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16334 if test x"$ax_pthread_ok" = xyes; then
16337 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16339 LIBS="$PTHREAD_LIBS $LIBS"
16340 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16342 ub_have_pthreads=yes
16343 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
16345 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
16347 cat >>confdefs.h <<_ACEOF
16348 #define HAVE_PTHREAD_SPINLOCK_T 1
16353 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
16355 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_PTHREAD_RWLOCK_T 1
16365 if echo "$CFLAGS" | $GREP -e "-pthread" >/dev/null; then
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread unused during linking" >&5
16367 $as_echo_n "checking if -pthread unused during linking... " >&6; }
16368 # catch clang warning 'argument unused during compilation'
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 $ac_includes_default
16373 int main(void) {return 0;}
16376 pthread_unused="yes"
16378 echo "$CC $CFLAGS -c conftest.c -o conftest.o" >&5
16379 $CC $CFLAGS -c conftest.c -o conftest.o 2>&5 >&5
16380 if test $? = 0; then
16382 echo "$CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest contest.o" >&5
16383 $CC $CFLAGS -Werror $LDFLAGS $LIBS -o conftest conftest.o 2>&5 >&5
16384 if test $? -ne 0; then
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16386 $as_echo "yes" >&6; }
16387 CFLAGS=`echo "$CFLAGS" | sed -e 's/-pthread//'`
16388 PTHREAD_CFLAGS_ONLY="-pthread"
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16392 $as_echo "no" >&6; }
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16396 $as_echo "no" >&6; }
16397 fi # endif cc successful
16398 rm -f conftest conftest.c conftest.o
16399 fi # endif -pthread in CFLAGS
16408 ac_cpp='$CPP $CPPFLAGS'
16409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416 # check solaris thread library
16418 # Check whether --with-solaris-threads was given.
16419 if test "${with_solaris_threads+set}" = set; then :
16420 withval=$with_solaris_threads;
16425 ub_have_sol_threads=no
16426 if test x_$withval != x_no; then
16427 if test x_$ub_have_pthreads != x_no; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16429 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
16432 $as_echo_n "checking for library containing thr_create... " >&6; }
16433 if ${ac_cv_search_thr_create+:} false; then :
16434 $as_echo_n "(cached) " >&6
16436 ac_func_search_save_LIBS=$LIBS
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16446 char thr_create ();
16450 return thr_create ();
16455 for ac_lib in '' thread; do
16456 if test -z "$ac_lib"; then
16457 ac_res="none required"
16460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16462 if ac_fn_c_try_link "$LINENO"; then :
16463 ac_cv_search_thr_create=$ac_res
16465 rm -f core conftest.err conftest.$ac_objext \
16467 if ${ac_cv_search_thr_create+:} false; then :
16471 if ${ac_cv_search_thr_create+:} false; then :
16474 ac_cv_search_thr_create=no
16476 rm conftest.$ac_ext
16477 LIBS=$ac_func_search_save_LIBS
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
16480 $as_echo "$ac_cv_search_thr_create" >&6; }
16481 ac_res=$ac_cv_search_thr_create
16482 if test "$ac_res" != no; then :
16483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16486 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
16492 $as_echo_n "checking whether $CC supports -mt... " >&6; }
16493 cache=`echo mt | sed 'y%.=/+-%___p_%'`
16494 if eval \${cv_prog_cc_flag_$cache+:} false; then :
16495 $as_echo_n "(cached) " >&6
16498 echo 'void f(void){}' >conftest.c
16499 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
16500 eval "cv_prog_cc_flag_$cache=yes"
16502 eval "cv_prog_cc_flag_$cache=no"
16504 rm -f conftest conftest.o conftest.c
16508 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16510 $as_echo "yes" >&6; }
16512 CFLAGS="$CFLAGS -mt"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515 $as_echo "no" >&6; }
16517 CFLAGS="$CFLAGS -D_REENTRANT"
16520 ub_have_sol_threads=yes
16524 as_fn_error $? "no solaris threads found." "$LINENO" 5
16531 fi # end of non-mingw check of thread libraries
16533 # Check for PyUnbound
16535 # Check whether --with-pyunbound was given.
16536 if test "${with_pyunbound+set}" = set; then :
16537 withval=$with_pyunbound;
16544 ub_with_pyunbound=no
16545 if test x_$withval != x_no; then
16546 ub_with_pyunbound=yes
16550 # Check for Python module
16552 # Check whether --with-pythonmodule was given.
16553 if test "${with_pythonmodule+set}" = set; then :
16554 withval=$with_pythonmodule;
16560 ub_with_pythonmod=no
16561 if test x_$withval != x_no; then
16562 ub_with_pythonmod=yes
16566 # Check for Python & SWIG only on PyUnbound or PyModule
16567 if test x_$ub_test_python != x_no; then
16571 ac_save_LIBS="$LIBS"
16573 # Allow the use of a (user set) custom python version
16577 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16578 set dummy python$PYTHON_VERSION; ac_word=$2
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16580 $as_echo_n "checking for $ac_word... " >&6; }
16581 if ${ac_cv_path_PYTHON+:} false; then :
16582 $as_echo_n "(cached) " >&6
16586 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16607 PYTHON=$ac_cv_path_PYTHON
16608 if test -n "$PYTHON"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16610 $as_echo "$PYTHON" >&6; }
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16617 if test -z "$PYTHON"; then
16618 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16622 if test -z "$PYTHON_VERSION"; then
16623 PYTHON_VERSION=`$PYTHON -c "import sys; \
16624 print(sys.version.split()[0])"`
16628 # Check if you have distutils, else fail
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16631 $as_echo_n "checking for the distutils Python package... " >&6; }
16632 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16633 if test -z "$ac_distutils_result"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16635 $as_echo "yes" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 as_fn_error $? "cannot import Python module \"distutils\".
16640 Please check your Python installation. The error was:
16641 $ac_distutils_result" "$LINENO" 5
16646 # Check for Python include path
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16649 $as_echo_n "checking for Python include path... " >&6; }
16650 if test -z "$PYTHON_CPPFLAGS"; then
16651 python_path=`$PYTHON -c "import distutils.sysconfig; \
16652 print(distutils.sysconfig.get_python_inc());"`
16653 if test -n "${python_path}"; then
16654 python_path="-I$python_path"
16656 PYTHON_CPPFLAGS=$python_path
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16659 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16663 # Check for Python library path
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16666 $as_echo_n "checking for Python library path... " >&6; }
16667 if test -z "$PYTHON_LDFLAGS"; then
16668 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16669 print(get_config_var('BLDLIBRARY'));"`
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16672 $as_echo "$PYTHON_LDFLAGS" >&6; }
16676 # Check for site packages
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16679 $as_echo_n "checking for Python site-packages path... " >&6; }
16680 if test -z "$PYTHON_SITE_PKG"; then
16681 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16682 print(distutils.sysconfig.get_python_lib(1,0));"`
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16685 $as_echo "$PYTHON_SITE_PKG" >&6; }
16689 # final check to see if everything compiles alright
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16692 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699 # save current global flags
16700 ac_save_LIBS="$LIBS"
16701 ac_save_CPPFLAGS="$CPPFLAGS"
16703 LIBS="$LIBS $PYTHON_LDFLAGS"
16704 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16708 #include <Python.h>
16720 if ac_fn_c_try_link "$LINENO"; then :
16725 rm -f core conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16729 $as_echo "$pythonexists" >&6; }
16731 if test ! "$pythonexists" = "yes"; then
16733 Could not link test program to Python. Maybe the main Python library has been
16734 installed in some non-standard library path. If so, pass it to configure,
16735 via the LDFLAGS environment variable.
16736 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16737 ============================================================================
16739 You probably have to install the development version of the Python package
16740 for your distribution. The exact name of this package varies among them.
16741 ============================================================================
16746 ac_cpp='$CPP $CPPFLAGS'
16747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751 # turn back to default flags
16752 CPPFLAGS="$ac_save_CPPFLAGS"
16753 LIBS="$ac_save_LIBS"
16759 if test ! -z "$PYTHON_VERSION"; then
16760 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16761 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16764 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16768 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16770 LIBS="$PYTHON_LDFLAGS $LIBS"
16771 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16777 # Extract the first word of "swig", so it can be a program name with args.
16778 set dummy swig; ac_word=$2
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16780 $as_echo_n "checking for $ac_word... " >&6; }
16781 if ${ac_cv_path_SWIG+:} false; then :
16782 $as_echo_n "(cached) " >&6
16786 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16790 for as_dir in $PATH
16793 test -z "$as_dir" && as_dir=.
16794 for ac_exec_ext in '' $ac_executable_extensions; do
16795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16796 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16807 SWIG=$ac_cv_path_SWIG
16808 if test -n "$SWIG"; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16810 $as_echo "$SWIG" >&6; }
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813 $as_echo "no" >&6; }
16817 if test -z "$SWIG" ; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16819 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16820 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16821 elif test -n "" ; then
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16823 $as_echo_n "checking for SWIG version... " >&6; }
16824 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'`
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16826 $as_echo "$swig_version" >&6; }
16827 if test -n "$swig_version" ; then
16828 # Calculate the required version number components
16830 required_major=`echo $required | sed 's/[^0-9].*//'`
16831 if test -z "$required_major" ; then
16834 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16835 required_minor=`echo $required | sed 's/[^0-9].*//'`
16836 if test -z "$required_minor" ; then
16839 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16840 required_patch=`echo $required | sed 's/[^0-9].*//'`
16841 if test -z "$required_patch" ; then
16844 # Calculate the available version number components
16845 available=$swig_version
16846 available_major=`echo $available | sed 's/[^0-9].*//'`
16847 if test -z "$available_major" ; then
16850 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16851 available_minor=`echo $available | sed 's/[^0-9].*//'`
16852 if test -z "$available_minor" ; then
16855 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16856 available_patch=`echo $available | sed 's/[^0-9].*//'`
16857 if test -z "$available_patch" ; then
16860 if test $available_major -ne $required_major \
16861 -o $available_minor -ne $required_minor \
16862 -o $available_patch -lt $required_patch ; then
16863 { $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
16864 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16865 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16868 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16869 SWIG_LIB=`$SWIG -swiglib`
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16871 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16875 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16876 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16882 $as_echo_n "checking SWIG... " >&6; }
16883 if test ! -x "$SWIG"; then
16884 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16887 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16892 $as_echo "present" >&6; }
16894 # If have Python & SWIG
16895 # Declare PythonMod
16896 if test x_$ub_with_pythonmod != x_no; then
16898 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16900 WITH_PYTHONMODULE=yes
16902 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16904 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16906 PYTHONMOD_INSTALL=pythonmod-install
16908 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16912 # Declare PyUnbound
16913 if test x_$ub_with_pyunbound != x_no; then
16915 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16919 PYUNBOUND_OBJ="libunbound_wrap.lo"
16921 PYUNBOUND_TARGET="_unbound.la"
16923 PYUNBOUND_INSTALL=pyunbound-install
16925 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16931 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16932 ub_with_pyunbound=no
16933 ub_with_pythonmod=no
16937 if test "`uname`" = "NetBSD"; then
16938 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16941 CONFIG_DATE=`date +%Y%m%d`
16944 # Checks for libraries.
16949 # Check whether --with-nss was given.
16950 if test "${with_nss+set}" = set; then :
16954 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16956 if test "$withval" != "" -a "$withval" != "yes"; then
16957 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16958 LDFLAGS="$LDFLAGS -L$withval/lib"
16960 if test "x$enable_rpath" = xyes; then
16961 if echo "$withval/lib" | grep "^/" >/dev/null; then
16962 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16966 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16968 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16969 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16971 LIBS="$LIBS -lnss3 -lnspr4"
16981 # Check whether --with-nettle was given.
16982 if test "${with_nettle+set}" = set; then :
16983 withval=$with_nettle;
16986 $as_echo "#define HAVE_NETTLE 1" >>confdefs.h
16988 if test "$withval" != "" -a "$withval" != "yes"; then
16989 CPPFLAGS="$CPPFLAGS -I$withval/include/nettle"
16990 LDFLAGS="$LDFLAGS -L$withval/lib"
16992 if test "x$enable_rpath" = xyes; then
16993 if echo "$withval/lib" | grep "^/" >/dev/null; then
16994 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16999 CPPFLAGS="$CPPFLAGS -I/usr/include/nettle"
17001 LIBS="$LIBS -lhogweed -lnettle -lgmp"
17009 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17012 # Check whether --with-ssl was given.
17013 if test "${with_ssl+set}" = set; then :
17022 if test x_$withval = x_no; then
17023 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
17027 if test x_$withval != x_no; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
17029 $as_echo_n "checking for SSL... " >&6; }
17030 if test x_$withval = x_ -o x_$withval = x_yes; then
17031 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
17033 for dir in $withval; do
17035 if test -f "$dir/include/openssl/ssl.h"; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define HAVE_SSL /**/
17042 if test "$ssldir" != "/usr"; then
17043 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
17044 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
17049 if test x_$found_ssl != x_yes; then
17050 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
17053 $as_echo "found in $ssldir" >&6; }
17055 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
17056 LDFLAGS="$LDFLAGS -L$ssldir/lib"
17057 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
17059 if test "x$enable_rpath" = xyes; then
17060 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
17061 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
17068 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
17069 LIBS="$LIBS -lcrypto"
17070 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17078 int HMAC_CTX_init(void);
17079 (void)HMAC_CTX_init();
17085 if ac_fn_c_try_link "$LINENO"; then :
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17088 $as_echo "yes" >&6; }
17090 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17096 $as_echo "no" >&6; }
17097 # check if -lwsock32 or -lgdi32 are needed.
17099 BAKSSLLIBS="$LIBSSL_LIBS"
17100 LIBS="$LIBS -lgdi32"
17101 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
17103 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17111 int HMAC_CTX_init(void);
17112 (void)HMAC_CTX_init();
17118 if ac_fn_c_try_link "$LINENO"; then :
17121 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17124 $as_echo "yes" >&6; }
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 $as_echo "no" >&6; }
17131 LIBSSL_LIBS="$BAKSSLLIBS"
17133 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
17135 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17143 int HMAC_CTX_init(void);
17144 (void)HMAC_CTX_init();
17150 if ac_fn_c_try_link "$LINENO"; then :
17153 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17156 $as_echo "yes" >&6; }
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161 $as_echo "no" >&6; }
17162 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
17165 rm -f core conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17169 rm -f core conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext conftest.$ac_ext
17179 for ac_header in openssl/ssl.h
17181 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
17183 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
17184 cat >>confdefs.h <<_ACEOF
17185 #define HAVE_OPENSSL_SSL_H 1
17192 for ac_header in openssl/err.h
17194 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
17196 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
17197 cat >>confdefs.h <<_ACEOF
17198 #define HAVE_OPENSSL_ERR_H 1
17205 for ac_header in openssl/rand.h
17207 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
17209 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
17210 cat >>confdefs.h <<_ACEOF
17211 #define HAVE_OPENSSL_RAND_H 1
17221 # check if libssl needs libdl
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
17225 $as_echo_n "checking if libssl needs libdl... " >&6; }
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17235 char SSL_CTX_new ();
17239 return SSL_CTX_new ();
17244 if ac_fn_c_try_link "$LINENO"; then :
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17253 $as_echo "yes" >&6; }
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17256 $as_echo_n "checking for library containing dlopen... " >&6; }
17257 if ${ac_cv_search_dlopen+:} false; then :
17258 $as_echo_n "(cached) " >&6
17260 ac_func_search_save_LIBS=$LIBS
17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17264 /* Override any GCC internal prototype to avoid an error.
17265 Use char because int might match the return type of a GCC
17266 builtin and then its argument prototype would still apply. */
17279 for ac_lib in '' dl; do
17280 if test -z "$ac_lib"; then
17281 ac_res="none required"
17284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17286 if ac_fn_c_try_link "$LINENO"; then :
17287 ac_cv_search_dlopen=$ac_res
17289 rm -f core conftest.err conftest.$ac_objext \
17291 if ${ac_cv_search_dlopen+:} false; then :
17295 if ${ac_cv_search_dlopen+:} false; then :
17298 ac_cv_search_dlopen=no
17300 rm conftest.$ac_ext
17301 LIBS=$ac_func_search_save_LIBS
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17304 $as_echo "$ac_cv_search_dlopen" >&6; }
17305 ac_res=$ac_cv_search_dlopen
17306 if test "$ac_res" != no; then :
17307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17313 rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
17317 $as_echo_n "checking for LibreSSL... " >&6; }
17318 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17320 $as_echo "yes" >&6; }
17322 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
17324 # libressl provides these compat functions, but they may also be
17325 # declared by the OS in libc. See if they have been declared.
17326 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
17327 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
17333 cat >>confdefs.h <<_ACEOF
17334 #define HAVE_DECL_STRLCPY $ac_have_decl
17336 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
17337 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
17343 cat >>confdefs.h <<_ACEOF
17344 #define HAVE_DECL_STRLCAT $ac_have_decl
17346 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
17347 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
17353 cat >>confdefs.h <<_ACEOF
17354 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
17356 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
17357 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
17363 cat >>confdefs.h <<_ACEOF
17364 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
17366 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
17367 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
17373 cat >>confdefs.h <<_ACEOF
17374 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17381 for ac_header in openssl/conf.h
17383 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
17385 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
17386 cat >>confdefs.h <<_ACEOF
17387 #define HAVE_OPENSSL_CONF_H 1
17394 for ac_header in openssl/engine.h
17396 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
17398 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
17399 cat >>confdefs.h <<_ACEOF
17400 #define HAVE_OPENSSL_ENGINE_H 1
17407 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
17409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17412 cat >>confdefs.h <<_ACEOF
17413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17419 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
17420 $ac_includes_default
17421 #ifdef HAVE_OPENSSL_ERR_H
17422 #include <openssl/err.h>
17425 #ifdef HAVE_OPENSSL_RAND_H
17426 #include <openssl/rand.h>
17429 #ifdef HAVE_OPENSSL_CONF_H
17430 #include <openssl/conf.h>
17433 #ifdef HAVE_OPENSSL_ENGINE_H
17434 #include <openssl/engine.h>
17436 #include <openssl/ssl.h>
17437 #include <openssl/evp.h>
17440 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
17446 cat >>confdefs.h <<_ACEOF
17447 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
17449 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
17450 $ac_includes_default
17451 #ifdef HAVE_OPENSSL_ERR_H
17452 #include <openssl/err.h>
17455 #ifdef HAVE_OPENSSL_RAND_H
17456 #include <openssl/rand.h>
17459 #ifdef HAVE_OPENSSL_CONF_H
17460 #include <openssl/conf.h>
17463 #ifdef HAVE_OPENSSL_ENGINE_H
17464 #include <openssl/engine.h>
17466 #include <openssl/ssl.h>
17467 #include <openssl/evp.h>
17470 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
17476 cat >>confdefs.h <<_ACEOF
17477 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
17479 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
17480 $ac_includes_default
17481 #ifdef HAVE_OPENSSL_ERR_H
17482 #include <openssl/err.h>
17485 #ifdef HAVE_OPENSSL_RAND_H
17486 #include <openssl/rand.h>
17489 #ifdef HAVE_OPENSSL_CONF_H
17490 #include <openssl/conf.h>
17493 #ifdef HAVE_OPENSSL_ENGINE_H
17494 #include <openssl/engine.h>
17496 #include <openssl/ssl.h>
17497 #include <openssl/evp.h>
17500 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
17506 cat >>confdefs.h <<_ACEOF
17507 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
17514 # Check whether --enable-sha2 was given.
17515 if test "${enable_sha2+set}" = set; then :
17516 enableval=$enable_sha2;
17519 case "$enable_sha2" in
17524 $as_echo "#define USE_SHA2 1" >>confdefs.h
17529 # check wether gost also works
17531 # Check whether --enable-gost was given.
17532 if test "${enable_gost+set}" = set; then :
17533 enableval=$enable_gost;
17537 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17538 case "$enable_gost" in
17542 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17543 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17546 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17549 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17550 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17553 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17558 $as_echo_n "checking if GOST works... " >&6; }
17559 if test c${cross_compiling} = cno; then
17560 BAKCFLAGS="$CFLAGS"
17561 if test -n "$ssldir"; then
17562 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17564 if test "$cross_compiling" = yes; then :
17565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17567 as_fn_error $? "cannot run test program while cross compiling
17568 See \`config.log' for more details" "$LINENO" 5; }
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17573 #include <string.h>
17574 #include <openssl/ssl.h>
17575 #include <openssl/evp.h>
17576 #include <openssl/engine.h>
17577 #include <openssl/conf.h>
17578 /* routine to load gost (from sldns) */
17579 int load_gost_id(void)
17581 static int gost_id = 0;
17582 const EVP_PKEY_ASN1_METHOD* meth;
17585 if(gost_id) return gost_id;
17587 /* see if configuration loaded gost implementation from other engine*/
17588 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17590 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17594 /* see if engine can be loaded already */
17595 e = ENGINE_by_id("gost");
17597 /* load it ourself, in case statically linked */
17598 ENGINE_load_builtin_engines();
17599 ENGINE_load_dynamic();
17600 e = ENGINE_by_id("gost");
17603 /* no gost engine in openssl */
17606 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17612 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17614 /* algo not found */
17619 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17625 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17626 const char* str = "Hello world";
17627 const unsigned char check[] = {
17628 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17629 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17630 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17631 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17633 OPENSSL_config(NULL);
17634 (void)load_gost_id();
17635 md = EVP_get_digestbyname("md_gost94");
17637 memset(digest, 0, sizeof(digest));
17638 ctx = EVP_MD_CTX_create();
17640 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17641 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17642 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17643 /* uncomment to see the hash calculated.
17645 for(i=0; i<32; i++)
17646 printf(" %2.2x", (int)digest[i]);
17649 if(memcmp(digest, check, sizeof(check)) != 0)
17655 if ac_fn_c_try_run "$LINENO"; then :
17656 eval "ac_cv_c_gost_works=yes"
17658 eval "ac_cv_c_gost_works=no"
17660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17661 conftest.$ac_objext conftest.beam conftest.$ac_ext
17664 CFLAGS="$BAKCFLAGS"
17666 eval "ac_cv_c_gost_works=maybe"
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17669 $as_echo "$ac_cv_c_gost_works" >&6; }
17671 if test "$ac_cv_c_gost_works" != no; then
17674 $as_echo "#define USE_GOST 1" >>confdefs.h
17680 # Check whether --enable-ecdsa was given.
17681 if test "${enable_ecdsa+set}" = set; then :
17682 enableval=$enable_ecdsa;
17686 case "$enable_ecdsa" in
17690 if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
17691 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17692 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17695 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17698 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17699 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17702 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17705 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17706 #include <openssl/evp.h>
17709 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17715 cat >>confdefs.h <<_ACEOF
17716 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17718 if test $ac_have_decl = 1; then :
17721 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17723 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17724 #include <openssl/evp.h>
17727 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17736 if test $ac_have_decl = 1; then :
17739 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17742 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17744 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17745 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17746 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17748 $as_echo "no" >&6; }
17750 cat >>confdefs.h <<_ACEOF
17751 #define USE_ECDSA_EVP_WORKAROUND 1
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17756 $as_echo "yes" >&6; }
17759 # not OpenSSL, thus likely LibreSSL, which supports it
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17761 $as_echo "yes" >&6; }
17764 # we now know we have ECDSA and the required curves.
17766 cat >>confdefs.h <<_ACEOF
17767 #define USE_ECDSA 1
17774 # Check whether --enable-event-api was given.
17775 if test "${enable_event_api+set}" = set; then :
17776 enableval=$enable_event_api;
17779 use_unbound_event="no"
17780 case "$enable_event_api" in
17782 use_unbound_event="yes"
17788 # check for libevent
17790 # Check whether --with-libevent was given.
17791 if test "${with_libevent+set}" = set; then :
17792 withval=$with_libevent;
17797 if test x_$withval = x_yes -o x_$withval != x_no; then
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17799 $as_echo_n "checking for libevent... " >&6; }
17800 if test x_$withval = x_ -o x_$withval = x_yes; then
17801 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17803 for dir in $withval; do
17805 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17806 found_libevent="yes"
17807 if test "$thedir" != "/usr"; then
17808 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17813 if test x_$found_libevent != x_yes; then
17814 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17815 # libevent source directory
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17817 $as_echo "found in $thedir" >&6; }
17818 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17819 BAK_LDFLAGS_SET="1"
17820 BAK_LDFLAGS="$LDFLAGS"
17821 # remove evdns from linking
17822 mkdir build >/dev/null 2>&1
17823 mkdir build/libevent >/dev/null 2>&1
17824 mkdir build/libevent/.libs >/dev/null 2>&1
17825 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17826 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17827 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17828 cp $ev_files_o build/libevent
17829 cp $ev_files_lo build/libevent
17830 cp $ev_files_libso build/libevent/.libs
17831 LATE_LDFLAGS="build/libevent/*.lo -lm"
17832 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17834 as_fn_error $? "Cannot find the libevent library in $withval
17835 You can restart ./configure --with-libevent=no to use a builtin alternative.
17836 Please note that this alternative is not as capable as libevent when using
17837 large outgoing port ranges. " "$LINENO" 5
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17841 $as_echo "found in $thedir" >&6; }
17842 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17843 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17845 if test "x$enable_rpath" = xyes; then
17846 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17847 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17852 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17853 LDFLAGS="$LDFLAGS -L$thedir/lib"
17855 if test "x$enable_rpath" = xyes; then
17856 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17857 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17864 # check for library used by libevent after 1.3c
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17866 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17867 if ${ac_cv_search_clock_gettime+:} false; then :
17868 $as_echo_n "(cached) " >&6
17870 ac_func_search_save_LIBS=$LIBS
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17874 /* Override any GCC internal prototype to avoid an error.
17875 Use char because int might match the return type of a GCC
17876 builtin and then its argument prototype would still apply. */
17880 char clock_gettime ();
17884 return clock_gettime ();
17889 for ac_lib in '' rt; do
17890 if test -z "$ac_lib"; then
17891 ac_res="none required"
17894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17896 if ac_fn_c_try_link "$LINENO"; then :
17897 ac_cv_search_clock_gettime=$ac_res
17899 rm -f core conftest.err conftest.$ac_objext \
17901 if ${ac_cv_search_clock_gettime+:} false; then :
17905 if ${ac_cv_search_clock_gettime+:} false; then :
17908 ac_cv_search_clock_gettime=no
17910 rm conftest.$ac_ext
17911 LIBS=$ac_func_search_save_LIBS
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17914 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17915 ac_res=$ac_cv_search_clock_gettime
17916 if test "$ac_res" != no; then :
17917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17922 # is the event.h header libev or libevent?
17923 for ac_header in event.h
17925 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17927 if test "x$ac_cv_header_event_h" = xyes; then :
17928 cat >>confdefs.h <<_ACEOF
17929 #define HAVE_EVENT_H 1
17936 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17940 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17943 $as_echo_n "checking for library containing event_set... " >&6; }
17944 if ${ac_cv_search_event_set+:} false; then :
17945 $as_echo_n "(cached) " >&6
17947 ac_func_search_save_LIBS=$LIBS
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17961 return event_set ();
17966 for ac_lib in '' ev; do
17967 if test -z "$ac_lib"; then
17968 ac_res="none required"
17971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17973 if ac_fn_c_try_link "$LINENO"; then :
17974 ac_cv_search_event_set=$ac_res
17976 rm -f core conftest.err conftest.$ac_objext \
17978 if ${ac_cv_search_event_set+:} false; then :
17982 if ${ac_cv_search_event_set+:} false; then :
17985 ac_cv_search_event_set=no
17987 rm conftest.$ac_ext
17988 LIBS=$ac_func_search_save_LIBS
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17991 $as_echo "$ac_cv_search_event_set" >&6; }
17992 ac_res=$ac_cv_search_event_set
17993 if test "$ac_res" != no; then :
17994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
18002 $as_echo_n "checking for library containing event_set... " >&6; }
18003 if ${ac_cv_search_event_set+:} false; then :
18004 $as_echo_n "(cached) " >&6
18006 ac_func_search_save_LIBS=$LIBS
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18020 return event_set ();
18025 for ac_lib in '' event; do
18026 if test -z "$ac_lib"; then
18027 ac_res="none required"
18030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18032 if ac_fn_c_try_link "$LINENO"; then :
18033 ac_cv_search_event_set=$ac_res
18035 rm -f core conftest.err conftest.$ac_objext \
18037 if ${ac_cv_search_event_set+:} false; then :
18041 if ${ac_cv_search_event_set+:} false; then :
18044 ac_cv_search_event_set=no
18046 rm conftest.$ac_ext
18047 LIBS=$ac_func_search_save_LIBS
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
18050 $as_echo "$ac_cv_search_event_set" >&6; }
18051 ac_res=$ac_cv_search_event_set
18052 if test "$ac_res" != no; then :
18053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18060 for ac_func in event_base_free
18062 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
18063 if test "x$ac_cv_func_event_base_free" = xyes; then :
18064 cat >>confdefs.h <<_ACEOF
18065 #define HAVE_EVENT_BASE_FREE 1
18070 # only in libevent 1.2 and later
18071 for ac_func in event_base_once
18073 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
18074 if test "x$ac_cv_func_event_base_once" = xyes; then :
18075 cat >>confdefs.h <<_ACEOF
18076 #define HAVE_EVENT_BASE_ONCE 1
18081 # only in libevent 1.4.1 and later
18082 for ac_func in event_base_new
18084 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
18085 if test "x$ac_cv_func_event_base_new" = xyes; then :
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_EVENT_BASE_NEW 1
18092 # only in libevent 1.4.1 and later
18093 for ac_func in event_base_get_method
18095 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
18096 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
18097 cat >>confdefs.h <<_ACEOF
18098 #define HAVE_EVENT_BASE_GET_METHOD 1
18103 # only in libevent 1.4.3 and later
18104 for ac_func in ev_loop
18106 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
18107 if test "x$ac_cv_func_ev_loop" = xyes; then :
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_EV_LOOP 1
18114 # only in libev. (tested on 3.51)
18115 for ac_func in ev_default_loop
18117 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
18118 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_EV_DEFAULT_LOOP 1
18125 # only in libev. (tested on 4.00)
18126 if test -n "$BAK_LDFLAGS_SET"; then
18127 LDFLAGS="$BAK_LDFLAGS"
18129 if test "$use_unbound_event" = "yes"; then
18130 UNBOUND_EVENT_INSTALL=unbound-event-install
18132 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
18137 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
18141 # check for libexpat
18143 # Check whether --with-libexpat was given.
18144 if test "${with_libexpat+set}" = set; then :
18145 withval=$with_libexpat;
18147 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
18151 $as_echo_n "checking for libexpat... " >&6; }
18152 found_libexpat="no"
18153 for dir in $withval ; do
18154 if test -f "$dir/include/expat.h"; then
18155 found_libexpat="yes"
18156 if test "$dir" != "/usr"; then
18157 CPPFLAGS="$CPPFLAGS -I$dir/include"
18158 LDFLAGS="$LDFLAGS -L$dir/lib"
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
18161 $as_echo "found in $dir" >&6; }
18165 if test x_$found_libexpat != x_yes; then
18166 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
18168 for ac_header in expat.h
18170 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
18172 if test "x$ac_cv_header_expat_h" = xyes; then :
18173 cat >>confdefs.h <<_ACEOF
18174 #define HAVE_EXPAT_H 1
18181 ac_fn_c_check_decl "$LINENO" "XML_StopParser" "ac_cv_have_decl_XML_StopParser" "$ac_includes_default
18185 if test "x$ac_cv_have_decl_XML_StopParser" = xyes; then :
18191 cat >>confdefs.h <<_ACEOF
18192 #define HAVE_DECL_XML_STOPPARSER $ac_have_decl
18196 # set static linking if requested
18199 # Check whether --enable-static-exe was given.
18200 if test "${enable_static_exe+set}" = set; then :
18201 enableval=$enable_static_exe;
18204 if test x_$enable_static_exe = x_yes; then
18205 staticexe="-static"
18206 if test "$on_mingw" = yes; then
18207 staticexe="-all-static"
18208 # for static crosscompile, include gdi32 and zlib here.
18209 if test "`uname`" = "Linux"; then
18210 LIBS="$LIBS -lgdi32 -lz"
18215 # set lock checking if requested
18216 # Check whether --enable-lock_checks was given.
18217 if test "${enable_lock_checks+set}" = set; then :
18218 enableval=$enable_lock_checks;
18221 if test x_$enable_lock_checks = x_yes; then
18223 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
18225 CHECKLOCK_OBJ="checklocks.lo"
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
18231 $as_echo_n "checking for getaddrinfo... " >&6; }
18232 ac_cv_func_getaddrinfo=no
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18240 char* getaddrinfo();
18241 char* (*f) () = getaddrinfo;
18251 if ac_fn_c_try_link "$LINENO"; then :
18252 ac_cv_func_getaddrinfo="yes"
18253 if test "$ac_cv_header_windows_h" = "yes"; then
18255 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
18258 LIBS="$LIBS -lws2_32"
18263 LIBS="$LIBS -lws2_32"
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 #ifdef HAVE_WS2TCPIP_H
18268 #include <ws2tcpip.h>
18275 (void)getaddrinfo(NULL, NULL, NULL, NULL);
18282 if ac_fn_c_try_link "$LINENO"; then :
18284 ac_cv_func_getaddrinfo="yes"
18286 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
18292 ac_cv_func_getaddrinfo="no"
18296 rm -f core conftest.err conftest.$ac_objext \
18297 conftest$ac_exeext conftest.$ac_ext
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
18304 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
18305 if test $ac_cv_func_getaddrinfo = yes; then
18307 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18311 if test "$USE_WINSOCK" = 1; then
18313 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
18315 for ac_header in iphlpapi.h
18317 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
18318 #include <windows.h>
18321 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
18322 cat >>confdefs.h <<_ACEOF
18323 #define HAVE_IPHLPAPI_H 1
18330 if test -n "$ac_tool_prefix"; then
18331 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18332 set dummy ${ac_tool_prefix}windres; ac_word=$2
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18334 $as_echo_n "checking for $ac_word... " >&6; }
18335 if ${ac_cv_prog_WINDRES+:} false; then :
18336 $as_echo_n "(cached) " >&6
18338 if test -n "$WINDRES"; then
18339 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18342 for as_dir in $PATH
18345 test -z "$as_dir" && as_dir=.
18346 for ac_exec_ext in '' $ac_executable_extensions; do
18347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18348 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18358 WINDRES=$ac_cv_prog_WINDRES
18359 if test -n "$WINDRES"; then
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18361 $as_echo "$WINDRES" >&6; }
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364 $as_echo "no" >&6; }
18369 if test -z "$ac_cv_prog_WINDRES"; then
18370 ac_ct_WINDRES=$WINDRES
18371 # Extract the first word of "windres", so it can be a program name with args.
18372 set dummy windres; ac_word=$2
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18374 $as_echo_n "checking for $ac_word... " >&6; }
18375 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18376 $as_echo_n "(cached) " >&6
18378 if test -n "$ac_ct_WINDRES"; then
18379 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18382 for as_dir in $PATH
18385 test -z "$as_dir" && as_dir=.
18386 for ac_exec_ext in '' $ac_executable_extensions; do
18387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18388 ac_cv_prog_ac_ct_WINDRES="windres"
18389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18398 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18399 if test -n "$ac_ct_WINDRES"; then
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18401 $as_echo "$ac_ct_WINDRES" >&6; }
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18407 if test "x$ac_ct_WINDRES" = x; then
18410 case $cross_compiling:$ac_tool_warned in
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18414 ac_tool_warned=yes ;;
18416 WINDRES=$ac_ct_WINDRES
18419 WINDRES="$ac_cv_prog_WINDRES"
18422 LIBS="$LIBS -liphlpapi"
18423 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
18425 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
18427 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
18429 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
18431 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
18433 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
18435 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
18437 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
18440 if test $ac_cv_func_getaddrinfo = no; then
18441 case " $LIBOBJS " in
18442 *" fake-rfc2553.$ac_objext "* ) ;;
18443 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
18448 # check after getaddrinfo for its libraries
18450 # check ioctlsocket
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
18452 $as_echo_n "checking for ioctlsocket... " >&6; }
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18456 #ifdef HAVE_WINSOCK2_H
18457 #include <winsock2.h>
18464 (void)ioctlsocket(0, 0, NULL);
18470 if ac_fn_c_try_link "$LINENO"; then :
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18473 $as_echo "yes" >&6; }
18475 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18480 $as_echo "no" >&6; }
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18486 # see if daemon(3) exists, and if it is deprecated.
18487 for ac_func in daemon
18489 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
18490 if test "x$ac_cv_func_daemon" = xyes; then :
18491 cat >>confdefs.h <<_ACEOF
18492 #define HAVE_DAEMON 1
18498 if test $ac_cv_func_daemon = yes; then
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
18502 $as_echo_n "checking if daemon is deprecated... " >&6; }
18503 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
18504 if eval \${cv_cc_deprecated_$cache+:} false; then :
18505 $as_echo_n "(cached) " >&6
18509 #include <stdlib.h>
18511 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
18512 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
18513 eval "cv_cc_deprecated_$cache=no"
18515 eval "cv_cc_deprecated_$cache=yes"
18517 rm -f conftest conftest.o conftest.c
18521 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18523 $as_echo "yes" >&6; }
18525 cat >>confdefs.h <<_ACEOF
18526 #define DEPRECATED_DAEMON 1
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18533 $as_echo "no" >&6; }
18540 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
18541 $ac_includes_default
18542 #ifdef HAVE_SYS_UN_H
18543 #include <sys/un.h>
18547 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18556 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
18557 $ac_includes_default
18558 #if HAVE_SYS_PARAM_H
18559 #include <sys/param.h>
18562 #ifdef HAVE_SYS_SOCKET_H
18563 #include <sys/socket.h>
18566 #ifdef HAVE_SYS_UIO_H
18567 #include <sys/uio.h>
18570 #ifdef HAVE_NETINET_IN_H
18571 #include <netinet/in.h>
18574 #ifdef HAVE_NETINET_TCP_H
18575 #include <netinet/tcp.h>
18578 #ifdef HAVE_ARPA_INET_H
18579 #include <arpa/inet.h>
18582 #ifdef HAVE_WINSOCK2_H
18583 #include <winsock2.h>
18586 #ifdef HAVE_WS2TCPIP_H
18587 #include <ws2tcpip.h>
18591 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
18593 cat >>confdefs.h <<_ACEOF
18594 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
18601 $as_echo_n "checking for library containing setusercontext... " >&6; }
18602 if ${ac_cv_search_setusercontext+:} false; then :
18603 $as_echo_n "(cached) " >&6
18605 ac_func_search_save_LIBS=$LIBS
18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h. */
18609 /* Override any GCC internal prototype to avoid an error.
18610 Use char because int might match the return type of a GCC
18611 builtin and then its argument prototype would still apply. */
18615 char setusercontext ();
18619 return setusercontext ();
18624 for ac_lib in '' util; do
18625 if test -z "$ac_lib"; then
18626 ac_res="none required"
18629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18631 if ac_fn_c_try_link "$LINENO"; then :
18632 ac_cv_search_setusercontext=$ac_res
18634 rm -f core conftest.err conftest.$ac_objext \
18636 if ${ac_cv_search_setusercontext+:} false; then :
18640 if ${ac_cv_search_setusercontext+:} false; then :
18643 ac_cv_search_setusercontext=no
18645 rm conftest.$ac_ext
18646 LIBS=$ac_func_search_save_LIBS
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
18649 $as_echo "$ac_cv_search_setusercontext" >&6; }
18650 ac_res=$ac_cv_search_setusercontext
18651 if test "$ac_res" != no; then :
18652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18656 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent fsync
18658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18661 cat >>confdefs.h <<_ACEOF
18662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 for ac_func in setresuid
18670 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18671 if test "x$ac_cv_func_setresuid" = xyes; then :
18672 cat >>confdefs.h <<_ACEOF
18673 #define HAVE_SETRESUID 1
18677 for ac_func in setreuid
18679 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18680 if test "x$ac_cv_func_setreuid" = xyes; then :
18681 cat >>confdefs.h <<_ACEOF
18682 #define HAVE_SETREUID 1
18691 for ac_func in setresgid
18693 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18694 if test "x$ac_cv_func_setresgid" = xyes; then :
18695 cat >>confdefs.h <<_ACEOF
18696 #define HAVE_SETRESGID 1
18700 for ac_func in setregid
18702 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18703 if test "x$ac_cv_func_setregid" = xyes; then :
18704 cat >>confdefs.h <<_ACEOF
18705 #define HAVE_SETREGID 1
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sbrk" >&5
18716 $as_echo_n "checking for sbrk... " >&6; }
18717 # catch the warning of deprecated sbrk
18718 old_cflags="$CFLAGS"
18719 CFLAGS="$CFLAGS -Werror"
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18722 $ac_includes_default
18724 int main(void) { void* cur = sbrk(0); printf("%u\n", (unsigned)(size_t)((char*)cur - (char*)sbrk(0))); return 0; }
18727 if ac_fn_c_try_compile "$LINENO"; then :
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18730 $as_echo "yes" >&6; }
18732 $as_echo "#define HAVE_SBRK 1" >>confdefs.h
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740 CFLAGS="$old_cflags"
18742 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18743 if echo $build_os | grep darwin8 > /dev/null; then
18745 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18748 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18749 if test "x$ac_cv_func_inet_aton" = xyes; then :
18750 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18753 case " $LIBOBJS " in
18754 *" inet_aton.$ac_objext "* ) ;;
18755 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18762 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18763 if test "x$ac_cv_func_inet_pton" = xyes; then :
18764 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18767 case " $LIBOBJS " in
18768 *" inet_pton.$ac_objext "* ) ;;
18769 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18776 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18777 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18778 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18781 case " $LIBOBJS " in
18782 *" inet_ntop.$ac_objext "* ) ;;
18783 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18790 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18791 if test "x$ac_cv_func_snprintf" = xyes; then :
18792 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18795 case " $LIBOBJS " in
18796 *" snprintf.$ac_objext "* ) ;;
18797 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18804 # test if snprintf return the proper length
18805 if test "x$ac_cv_func_snprintf" = xyes; then
18806 if test c${cross_compiling} = cno; then
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct snprintf return value" >&5
18808 $as_echo_n "checking for correct snprintf return value... " >&6; }
18809 if test "$cross_compiling" = yes; then :
18810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18812 as_fn_error $? "cannot run test program while cross compiling
18813 See \`config.log' for more details" "$LINENO" 5; }
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 $ac_includes_default
18819 int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
18822 if ac_fn_c_try_run "$LINENO"; then :
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18824 $as_echo "yes" >&6; }
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18830 $as_echo "#define SNPRINTF_RET_BROKEN /**/" >>confdefs.h
18832 case " $LIBOBJS " in
18833 *" snprintf.$ac_objext "* ) ;;
18834 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18841 conftest.$ac_objext conftest.beam conftest.$ac_ext
18846 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18847 if test "x$ac_cv_func_strlcat" = xyes; then :
18848 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18851 case " $LIBOBJS " in
18852 *" strlcat.$ac_objext "* ) ;;
18853 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18860 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18861 if test "x$ac_cv_func_strlcpy" = xyes; then :
18862 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18865 case " $LIBOBJS " in
18866 *" strlcpy.$ac_objext "* ) ;;
18867 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18874 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18875 if test "x$ac_cv_func_memmove" = xyes; then :
18876 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18879 case " $LIBOBJS " in
18880 *" memmove.$ac_objext "* ) ;;
18881 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18888 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18889 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18890 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18893 case " $LIBOBJS " in
18894 *" gmtime_r.$ac_objext "* ) ;;
18895 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18902 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
18903 if test "x$ac_cv_func_isblank" = xyes; then :
18904 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
18907 case " $LIBOBJS " in
18908 *" isblank.$ac_objext "* ) ;;
18909 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
18916 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18918 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18919 if test "x$ac_cv_func_reallocarray" = xyes; then :
18920 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18923 case " $LIBOBJS " in
18924 *" reallocarray.$ac_objext "* ) ;;
18925 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
18932 if test "$USE_NSS" = "no"; then
18933 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18934 if test "x$ac_cv_func_arc4random" = xyes; then :
18935 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18938 case " $LIBOBJS " in
18939 *" arc4random.$ac_objext "* ) ;;
18940 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18947 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18948 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18949 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18952 case " $LIBOBJS " in
18953 *" arc4random_uniform.$ac_objext "* ) ;;
18954 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18961 if test "$ac_cv_func_arc4random" = "no"; then
18962 case " $LIBOBJS " in
18963 *" explicit_bzero.$ac_objext "* ) ;;
18964 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18968 case " $LIBOBJS " in
18969 *" arc4_lock.$ac_objext "* ) ;;
18970 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18974 for ac_func in getentropy
18976 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18977 if test "x$ac_cv_func_getentropy" = xyes; then :
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_GETENTROPY 1
18984 if test "$USE_WINSOCK" = 1; then
18985 case " $LIBOBJS " in
18986 *" getentropy_win.$ac_objext "* ) ;;
18987 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18994 case " $LIBOBJS " in
18995 *" getentropy_osx.$ac_objext "* ) ;;
18996 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
19002 case " $LIBOBJS " in
19003 *" getentropy_solaris.$ac_objext "* ) ;;
19004 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
19008 for ac_header in sys/sha2.h
19010 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
19012 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_SYS_SHA2_H 1
19019 for ac_func in SHA512_Update
19021 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19022 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19023 cat >>confdefs.h <<_ACEOF
19024 #define HAVE_SHA512_UPDATE 1
19029 case " $LIBOBJS " in
19030 *" sha512.$ac_objext "* ) ;;
19031 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19044 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
19045 # this lib needed for sha2 on solaris
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19049 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19050 if ${ac_cv_search_clock_gettime+:} false; then :
19051 $as_echo_n "(cached) " >&6
19053 ac_func_search_save_LIBS=$LIBS
19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h. */
19057 /* Override any GCC internal prototype to avoid an error.
19058 Use char because int might match the return type of a GCC
19059 builtin and then its argument prototype would still apply. */
19063 char clock_gettime ();
19067 return clock_gettime ();
19072 for ac_lib in '' rt; do
19073 if test -z "$ac_lib"; then
19074 ac_res="none required"
19077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19079 if ac_fn_c_try_link "$LINENO"; then :
19080 ac_cv_search_clock_gettime=$ac_res
19082 rm -f core conftest.err conftest.$ac_objext \
19084 if ${ac_cv_search_clock_gettime+:} false; then :
19088 if ${ac_cv_search_clock_gettime+:} false; then :
19091 ac_cv_search_clock_gettime=no
19093 rm conftest.$ac_ext
19094 LIBS=$ac_func_search_save_LIBS
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19097 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19098 ac_res=$ac_cv_search_clock_gettime
19099 if test "$ac_res" != no; then :
19100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19106 case " $LIBOBJS " in
19107 *" getentropy_linux.$ac_objext "* ) ;;
19108 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
19112 for ac_func in SHA512_Update
19114 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
19115 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
19116 cat >>confdefs.h <<_ACEOF
19117 #define HAVE_SHA512_UPDATE 1
19123 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
19125 case " $LIBOBJS " in
19126 *" sha512.$ac_objext "* ) ;;
19127 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
19135 for ac_header in sys/sysctl.h
19137 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
19139 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
19140 cat >>confdefs.h <<_ACEOF
19141 #define HAVE_SYS_SYSCTL_H 1
19148 for ac_func in getauxval
19150 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
19151 if test "x$ac_cv_func_getauxval" = xyes; then :
19152 cat >>confdefs.h <<_ACEOF
19153 #define HAVE_GETAUXVAL 1
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19160 $as_echo_n "checking for library containing clock_gettime... " >&6; }
19161 if ${ac_cv_search_clock_gettime+:} false; then :
19162 $as_echo_n "(cached) " >&6
19164 ac_func_search_save_LIBS=$LIBS
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19168 /* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19174 char clock_gettime ();
19178 return clock_gettime ();
19183 for ac_lib in '' rt; do
19184 if test -z "$ac_lib"; then
19185 ac_res="none required"
19188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19190 if ac_fn_c_try_link "$LINENO"; then :
19191 ac_cv_search_clock_gettime=$ac_res
19193 rm -f core conftest.err conftest.$ac_objext \
19195 if ${ac_cv_search_clock_gettime+:} false; then :
19199 if ${ac_cv_search_clock_gettime+:} false; then :
19202 ac_cv_search_clock_gettime=no
19204 rm conftest.$ac_ext
19205 LIBS=$ac_func_search_save_LIBS
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19208 $as_echo "$ac_cv_search_clock_gettime" >&6; }
19209 ac_res=$ac_cv_search_clock_gettime
19210 if test "$ac_res" != no; then :
19211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19224 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
19226 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
19227 if test "x$ac_cv_func_ctime_r" = xyes; then :
19228 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
19231 case " $LIBOBJS " in
19232 *" ctime_r.$ac_objext "* ) ;;
19233 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
19241 # Check whether --enable-allsymbols was given.
19242 if test "${enable_allsymbols+set}" = set; then :
19243 enableval=$enable_allsymbols;
19246 case "$enable_allsymbols" in
19248 COMMON_OBJ_ALL_SYMBOLS=""
19250 EXTRALINK="-L. -L.libs -lunbound"
19252 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
19256 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
19257 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
19264 if test x_$enable_lock_checks = x_yes; then
19265 UBSYMS="-export-symbols clubsyms.def"
19266 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
19267 echo lock_protect >> clubsyms.def
19268 echo lock_unprotect >> clubsyms.def
19269 echo lock_get_mem >> clubsyms.def
19270 echo checklock_start >> clubsyms.def
19271 echo checklock_stop >> clubsyms.def
19272 echo checklock_lock >> clubsyms.def
19273 echo checklock_unlock >> clubsyms.def
19274 echo checklock_init >> clubsyms.def
19275 echo checklock_thrcreate >> clubsyms.def
19276 echo checklock_thrjoin >> clubsyms.def
19279 # check for dnstap if requested
19281 # Check whether --enable-dnstap was given.
19282 if test "${enable_dnstap+set}" = set; then :
19283 enableval=$enable_dnstap; opt_dnstap=$enableval
19290 # Check whether --with-dnstap-socket-path was given.
19291 if test "${with_dnstap_socket_path+set}" = set; then :
19292 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
19294 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
19298 if test "x$opt_dnstap" != "xno"; then
19299 # Extract the first word of "protoc-c", so it can be a program name with args.
19300 set dummy protoc-c; ac_word=$2
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302 $as_echo_n "checking for $ac_word... " >&6; }
19303 if ${ac_cv_path_PROTOC_C+:} false; then :
19304 $as_echo_n "(cached) " >&6
19308 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
19311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19312 for as_dir in $PATH
19315 test -z "$as_dir" && as_dir=.
19316 for ac_exec_ext in '' $ac_executable_extensions; do
19317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19318 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
19319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19329 PROTOC_C=$ac_cv_path_PROTOC_C
19330 if test -n "$PROTOC_C"; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
19332 $as_echo "$PROTOC_C" >&6; }
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 $as_echo "no" >&6; }
19339 if test -z "$PROTOC_C"; then
19340 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
19343 # Check whether --with-protobuf-c was given.
19344 if test "${with_protobuf_c+set}" = set; then :
19345 withval=$with_protobuf_c;
19346 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19347 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
19348 CFLAGS="$CFLAGS -I$withval/include/google"
19350 CFLAGS="$CFLAGS -I$withval/include"
19352 LDFLAGS="$LDFLAGS -L$withval/lib"
19356 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
19357 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
19358 CFLAGS="$CFLAGS -I/usr/include/google"
19360 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
19361 CFLAGS="$CFLAGS -I/usr/local/include/google"
19362 LDFLAGS="$LDFLAGS -L/usr/local/lib"
19369 # Check whether --with-libfstrm was given.
19370 if test "${with_libfstrm+set}" = set; then :
19371 withval=$with_libfstrm;
19372 CFLAGS="$CFLAGS -I$withval/include"
19373 LDFLAGS="$LDFLAGS -L$withval/lib"
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
19378 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
19379 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19380 $as_echo_n "(cached) " >&6
19382 ac_func_search_save_LIBS=$LIBS
19383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384 /* end confdefs.h. */
19386 /* Override any GCC internal prototype to avoid an error.
19387 Use char because int might match the return type of a GCC
19388 builtin and then its argument prototype would still apply. */
19392 char fstrm_iothr_init ();
19396 return fstrm_iothr_init ();
19401 for ac_lib in '' fstrm; do
19402 if test -z "$ac_lib"; then
19403 ac_res="none required"
19406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19408 if ac_fn_c_try_link "$LINENO"; then :
19409 ac_cv_search_fstrm_iothr_init=$ac_res
19411 rm -f core conftest.err conftest.$ac_objext \
19413 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19417 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
19420 ac_cv_search_fstrm_iothr_init=no
19422 rm conftest.$ac_ext
19423 LIBS=$ac_func_search_save_LIBS
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
19426 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
19427 ac_res=$ac_cv_search_fstrm_iothr_init
19428 if test "$ac_res" != no; then :
19429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19432 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
19436 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
19437 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19438 $as_echo_n "(cached) " >&6
19440 ac_func_search_save_LIBS=$LIBS
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19450 char protobuf_c_message_pack ();
19454 return protobuf_c_message_pack ();
19459 for ac_lib in '' protobuf-c; do
19460 if test -z "$ac_lib"; then
19461 ac_res="none required"
19464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19466 if ac_fn_c_try_link "$LINENO"; then :
19467 ac_cv_search_protobuf_c_message_pack=$ac_res
19469 rm -f core conftest.err conftest.$ac_objext \
19471 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19475 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
19478 ac_cv_search_protobuf_c_message_pack=no
19480 rm conftest.$ac_ext
19481 LIBS=$ac_func_search_save_LIBS
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
19484 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
19485 ac_res=$ac_cv_search_protobuf_c_message_pack
19486 if test "$ac_res" != no; then :
19487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19490 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
19495 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
19501 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
19504 cat >>confdefs.h <<_ACEOF
19505 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
19509 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
19511 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
19524 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
19525 # on openBSD, the implicit rule make $< work.
19526 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
19528 cat >conftest.make <<EOF
19531 conftest.lo foo.lo bla.lo:
19532 if test -f "\$<"; then touch \$@; fi
19536 if test -f "\$<"; then touch \$@; fi
19538 conftest.lo: conftest.dir/conftest.c
19541 touch conftest.dir/conftest.c
19542 rm -f conftest.lo conftest.c
19543 ${MAKE:-make} -f conftest.make >/dev/null
19544 rm -f conftest.make conftest.c conftest.dir/conftest.c
19545 rm -rf conftest.dir
19546 if test ! -f conftest.lo; then
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19548 $as_echo "no" >&6; }
19549 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
19550 SOURCEFILE='`cat .source`'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19554 SOURCEDETERMINE=':'
19561 # see if we want to build the library or everything
19562 ALLTARGET="alltargets"
19563 INSTALLTARGET="install-all"
19565 # Check whether --with-libunbound-only was given.
19566 if test "${with_libunbound_only+set}" = set; then :
19567 withval=$with_libunbound_only;
19568 if test "$withval" = "yes"; then
19570 INSTALLTARGET="install-lib"
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
19580 $as_echo "$as_me: Stripping extension flags..." >&6;}
19582 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
19583 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
19585 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
19590 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
19591 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
19593 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
19598 if echo $CFLAGS | grep " -D_DEFAULT_SOURCE" >/dev/null 2>&1; then
19599 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_DEFAULT_SOURCE//g'`"
19601 $as_echo "#define OMITTED__D_DEFAULT_SOURCE 1" >>confdefs.h
19606 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
19607 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
19609 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
19614 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
19615 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
19617 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
19622 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
19623 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
19625 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
19630 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
19631 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
19633 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
19638 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
19639 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
19641 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
19646 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
19647 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
19649 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
19654 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
19657 cat >>confdefs.h <<_ACEOF
19658 #define MAXSYSLOGMSGLEN 10240
19666 date=`date +'%b %e, %Y'`
19669 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"
19671 ac_config_headers="$ac_config_headers config.h"
19673 cat >confcache <<\_ACEOF
19674 # This file is a shell script that caches the results of configure
19675 # tests run on this system so they can be shared between configure
19676 # scripts and configure runs, see configure's option --config-cache.
19677 # It is not useful on other systems. If it contains results you don't
19678 # want to keep, you may remove or edit it.
19680 # config.status only pays attention to the cache file if you give it
19681 # the --recheck option to rerun configure.
19683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19685 # following values.
19689 # The following way of writing the cache mishandles newlines in values,
19690 # but we know of no workaround that is simple, portable, and efficient.
19691 # So, we kill variables containing newlines.
19692 # Ultrix sh set writes to stderr and can't be redirected directly,
19693 # and sets the high bit in the cache file unless we assign to the vars.
19695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19696 eval ac_val=\$$ac_var
19700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19704 _ | IFS | as_nl) ;; #(
19705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19706 *) { eval $ac_var=; unset $ac_var;} ;;
19712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19713 *${as_nl}ac_space=\ *)
19714 # `set' does not quote correctly, so add quotes: double-quote
19715 # substitution turns \\\\ into \\, and sed turns \\ into \.
19718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19721 # `set' quotes correctly as required by POSIX, so do not add quotes.
19722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19736 if test -w "$cache_file"; then
19737 if test "x$cache_file" != "x/dev/null"; then
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19739 $as_echo "$as_me: updating cache $cache_file" >&6;}
19740 if test ! -f "$cache_file" || test -h "$cache_file"; then
19741 cat confcache >"$cache_file"
19743 case $cache_file in #(
19745 mv -f confcache "$cache_file"$$ &&
19746 mv -f "$cache_file"$$ "$cache_file" ;; #(
19748 mv -f confcache "$cache_file" ;;
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19760 # Let make expand exec_prefix.
19761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19763 DEFS=-DHAVE_CONFIG_H
19768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19769 # 1. Remove the extension, and $U if already installed.
19770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19773 # will be set to the directory where LIBOBJS objects are built.
19774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19777 LIBOBJS=$ac_libobjs
19779 LTLIBOBJS=$ac_ltlibobjs
19783 : "${CONFIG_STATUS=./config.status}"
19785 ac_clean_files_save=$ac_clean_files
19786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19792 # Generated by $as_me.
19793 # Run this file to recreate the current configuration.
19794 # Compiler output produced by configure, useful for debugging
19795 # configure, is in config.log if it exists.
19798 ac_cs_recheck=false
19801 SHELL=\${CONFIG_SHELL-$SHELL}
19804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19805 ## -------------------- ##
19806 ## M4sh Initialization. ##
19807 ## -------------------- ##
19809 # Be more Bourne compatible
19810 DUALCASE=1; export DUALCASE # for MKS sh
19811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19815 # is contrary to our usage. Disable this feature.
19816 alias -g '${1+"$@"}'='"$@"'
19817 setopt NO_GLOB_SUBST
19819 case `(set -o) 2>/dev/null` in #(
19831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19835 # Prefer a ksh shell builtin over an external printf program on Solaris,
19836 # but without wasting forks for bash or zsh.
19837 if test -z "$BASH_VERSION$ZSH_VERSION" \
19838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19839 as_echo='print -r --'
19840 as_echo_n='print -rn --'
19841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19842 as_echo='printf %s\n'
19843 as_echo_n='printf %s'
19845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19847 as_echo_n='/usr/ucb/echo -n'
19849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19850 as_echo_n_body='eval
19854 expr "X$arg" : "X\\(.*\\)$as_nl";
19855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19859 export as_echo_n_body
19860 as_echo_n='sh -c $as_echo_n_body as_echo'
19862 export as_echo_body
19863 as_echo='sh -c $as_echo_body as_echo'
19866 # The user is always right.
19867 if test "${PATH_SEPARATOR+set}" != set; then
19869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19877 # We need space, tab and new line, in precisely that order. Quoting is
19878 # there to prevent editors from complaining about space-tab.
19879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19880 # splitting by setting IFS to empty value.)
19883 # Find who we are. Look in the path if we contain no directory separator.
19886 *[\\/]* ) as_myself=$0 ;;
19887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19888 for as_dir in $PATH
19891 test -z "$as_dir" && as_dir=.
19892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19898 # We did not find ourselves, most probably we were run as `sh COMMAND'
19899 # in which case we are not to be found in the path.
19900 if test "x$as_myself" = x; then
19903 if test ! -f "$as_myself"; then
19904 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19908 # Unset variables that we do not need and which cause bugs (e.g. in
19909 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19910 # suppresses any "Segmentation fault" message there. '((' could
19911 # trigger a bug in pdksh 5.2.14.
19912 for as_var in BASH_ENV ENV MAIL MAILPATH
19913 do eval test x\${$as_var+set} = xset \
19914 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19930 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19931 # ----------------------------------------
19932 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19933 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19934 # script with STATUS, using 1 if that was 0.
19937 as_status=$1; test $as_status -eq 0 && as_status=1
19939 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19940 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19942 $as_echo "$as_me: error: $2" >&2
19943 as_fn_exit $as_status
19947 # as_fn_set_status STATUS
19948 # -----------------------
19949 # Set $? to STATUS, without forking.
19950 as_fn_set_status ()
19953 } # as_fn_set_status
19955 # as_fn_exit STATUS
19956 # -----------------
19957 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19961 as_fn_set_status $1
19967 # Portably unset VAR.
19970 { eval $1=; unset $1;}
19972 as_unset=as_fn_unset
19973 # as_fn_append VAR VALUE
19974 # ----------------------
19975 # Append the text in VALUE to the end of the definition contained in VAR. Take
19976 # advantage of any shell optimizations that allow amortized linear growth over
19977 # repeated appends, instead of the typical quadratic growth present in naive
19979 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19980 eval 'as_fn_append ()
19991 # as_fn_arith ARG...
19992 # ------------------
19993 # Perform arithmetic evaluation on the ARGs, and store the result in the
19994 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19995 # must be portable across $(()) and expr.
19996 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19997 eval 'as_fn_arith ()
20004 as_val=`expr "$@" || test $? -eq 1`
20009 if expr a : '\(a\)' >/dev/null 2>&1 &&
20010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20017 as_basename=basename
20022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20028 as_me=`$as_basename -- "$0" ||
20029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20030 X"$0" : 'X\(//\)$' \| \
20031 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20033 sed '/^.*\/\([^/][^/]*\)\/*$/{
20047 # Avoid depending upon Character Ranges.
20048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20051 as_cr_digits='0123456789'
20052 as_cr_alnum=$as_cr_Letters$as_cr_digits
20054 ECHO_C= ECHO_N= ECHO_T=
20055 case `echo -n x` in #(((((
20057 case `echo 'xy\c'` in
20058 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20067 rm -f conf$$ conf$$.exe conf$$.file
20068 if test -d conf$$.dir; then
20069 rm -f conf$$.dir/conf$$.file
20072 mkdir conf$$.dir 2>/dev/null
20074 if (echo >conf$$.file) 2>/dev/null; then
20075 if ln -s conf$$.file conf$$ 2>/dev/null; then
20077 # ... but there are two gotchas:
20078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20080 # In both cases, we have to default to `cp -pR'.
20081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20083 elif ln conf$$.file conf$$ 2>/dev/null; then
20091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20092 rmdir conf$$.dir 2>/dev/null
20097 # Create "$as_dir" as a directory, including parents if necessary.
20102 -*) as_dir=./$as_dir;;
20104 test -d "$as_dir" || eval $as_mkdir_p || {
20108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20109 *) as_qdir=$as_dir;;
20111 as_dirs="'$as_qdir' $as_dirs"
20112 as_dir=`$as_dirname -- "$as_dir" ||
20113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20114 X"$as_dir" : 'X\(//\)[^/]' \| \
20115 X"$as_dir" : 'X\(//\)$' \| \
20116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20117 $as_echo X"$as_dir" |
20118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20122 /^X\(\/\/\)[^/].*/{
20135 test -d "$as_dir" && break
20137 test -z "$as_dirs" || eval "mkdir $as_dirs"
20138 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20142 if mkdir -p . 2>/dev/null; then
20143 as_mkdir_p='mkdir -p "$as_dir"'
20145 test -d ./-p && rmdir ./-p
20150 # as_fn_executable_p FILE
20151 # -----------------------
20152 # Test if FILE is an executable regular file.
20153 as_fn_executable_p ()
20155 test -f "$1" && test -x "$1"
20156 } # as_fn_executable_p
20157 as_test_x='test -x'
20158 as_executable_p=as_fn_executable_p
20160 # Sed expression to map a string onto a valid CPP name.
20161 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20163 # Sed expression to map a string onto a valid variable name.
20164 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20168 ## ----------------------------------- ##
20169 ## Main body of $CONFIG_STATUS script. ##
20170 ## ----------------------------------- ##
20172 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20175 # Save the log message, to keep $0 and so on meaningful, and to
20176 # report actual input values of CONFIG_FILES etc. instead of their
20177 # values after options handling.
20179 This file was extended by unbound $as_me 1.5.8, which was
20180 generated by GNU Autoconf 2.69. Invocation command line was
20182 CONFIG_FILES = $CONFIG_FILES
20183 CONFIG_HEADERS = $CONFIG_HEADERS
20184 CONFIG_LINKS = $CONFIG_LINKS
20185 CONFIG_COMMANDS = $CONFIG_COMMANDS
20188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20193 case $ac_config_files in *"
20194 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20197 case $ac_config_headers in *"
20198 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20203 # Files that config.status was made for.
20204 config_files="$ac_config_files"
20205 config_headers="$ac_config_headers"
20206 config_commands="$ac_config_commands"
20210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20212 \`$as_me' instantiates files and other configuration actions
20213 from templates according to the current configuration. Unless the files
20214 and actions are specified as TAGs, all are instantiated by default.
20216 Usage: $0 [OPTION]... [TAG]...
20218 -h, --help print this help, then exit
20219 -V, --version print version number and configuration settings, then exit
20220 --config print configuration, then exit
20221 -q, --quiet, --silent
20222 do not print progress messages
20223 -d, --debug don't remove temporary files
20224 --recheck update $as_me by reconfiguring in the same conditions
20225 --file=FILE[:TEMPLATE]
20226 instantiate the configuration file FILE
20227 --header=FILE[:TEMPLATE]
20228 instantiate the configuration header FILE
20230 Configuration files:
20233 Configuration headers:
20236 Configuration commands:
20239 Report bugs to <unbound-bugs@nlnetlabs.nl>."
20242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20243 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20245 unbound config.status 1.5.8
20246 configured by $0, generated by GNU Autoconf 2.69,
20247 with options \\"\$ac_cs_config\\"
20249 Copyright (C) 2012 Free Software Foundation, Inc.
20250 This config.status script is free software; the Free Software Foundation
20251 gives unlimited permission to copy, distribute and modify it."
20256 test -n "\$AWK" || AWK=awk
20259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20260 # The default lists apply if the user does not specify any file.
20266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20283 # Handling of the options.
20284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20287 $as_echo "$ac_cs_version"; exit ;;
20288 --config | --confi | --conf | --con | --co | --c )
20289 $as_echo "$ac_cs_config"; exit ;;
20290 --debug | --debu | --deb | --de | --d | -d )
20292 --file | --fil | --fi | --f )
20295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20296 '') as_fn_error $? "missing file argument" ;;
20298 as_fn_append CONFIG_FILES " '$ac_optarg'"
20299 ac_need_defaults=false;;
20300 --header | --heade | --head | --hea )
20303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20306 ac_need_defaults=false;;
20308 # Conflict between --help and --header
20309 as_fn_error $? "ambiguous option: \`$1'
20310 Try \`$0 --help' for more information.";;
20311 --help | --hel | -h )
20312 $as_echo "$ac_cs_usage"; exit ;;
20313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20317 # This is an error.
20318 -*) as_fn_error $? "unrecognized option: \`$1'
20319 Try \`$0 --help' for more information." ;;
20321 *) as_fn_append ac_config_targets " $1"
20322 ac_need_defaults=false ;;
20328 ac_configure_extra_args=
20330 if $ac_cs_silent; then
20332 ac_configure_extra_args="$ac_configure_extra_args --silent"
20336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337 if \$ac_cs_recheck; then
20338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20341 CONFIG_SHELL='$SHELL'
20342 export CONFIG_SHELL
20347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20352 ## Running $as_me. ##
20358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20364 # The HP-UX ksh and POSIX shell print the target directory to stdout
20365 # if CDPATH is set.
20366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20368 sed_quote_subst='$sed_quote_subst'
20369 double_quote_subst='$double_quote_subst'
20370 delay_variable_subst='$delay_variable_subst'
20371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20377 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20378 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20379 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20380 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20381 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20382 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20383 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20384 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20385 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20386 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20387 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20388 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20389 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20390 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20391 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20392 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20393 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20394 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20395 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20396 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20397 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20398 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20399 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20400 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20401 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20402 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20403 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20404 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20405 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20406 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20407 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20408 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20409 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20410 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20411 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20412 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20413 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20414 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20427 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20428 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20429 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"`'
20430 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20431 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20432 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20433 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20434 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20435 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20436 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20437 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20438 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20439 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20440 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20441 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20442 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20443 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20444 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20445 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20446 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20447 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20448 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20449 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20450 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20451 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20452 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20453 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20454 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20455 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20456 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20457 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20458 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20459 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20460 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20461 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20462 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20463 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20464 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20465 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20466 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20467 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20468 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20469 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20470 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20471 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20472 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20473 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20474 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20475 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20476 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20477 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20478 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20479 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20480 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20481 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20482 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20483 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20484 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20485 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20486 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20487 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20488 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20489 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20490 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20491 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20492 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20493 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20494 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20495 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20496 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20497 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20498 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20499 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20500 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20501 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20502 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20503 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20504 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20505 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20508 LTCFLAGS='$LTCFLAGS'
20509 compiler='$compiler_DEFAULT'
20511 # A function that is used when there is no print builtin or printf.
20512 func_fallback_echo ()
20514 eval 'cat <<_LTECHO_EOF
20519 # Quote evaled strings.
20534 deplibs_check_method \
20539 sharedlib_from_linklib_cmd \
20542 archiver_list_spec \
20548 lt_cv_sys_global_symbol_pipe \
20549 lt_cv_sys_global_symbol_to_cdecl \
20550 lt_cv_sys_global_symbol_to_import \
20551 lt_cv_sys_global_symbol_to_c_name_address \
20552 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20553 lt_cv_nm_interface \
20554 nm_file_list_spec \
20555 lt_cv_truncate_bin \
20556 lt_prog_compiler_no_builtin_flag \
20557 lt_prog_compiler_pic \
20558 lt_prog_compiler_wl \
20559 lt_prog_compiler_static \
20560 lt_cv_prog_compiler_c_o \
20569 export_dynamic_flag_spec \
20570 whole_archive_flag_spec \
20571 compiler_needs_object \
20573 allow_undefined_flag \
20574 no_undefined_flag \
20575 hardcode_libdir_flag_spec \
20576 hardcode_libdir_separator \
20580 variables_saved_for_relink \
20582 library_names_spec \
20584 install_override_mode \
20588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20589 *[\\\\\\\`\\"\\\$]*)
20590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20593 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20598 # Double-quote double-evaled strings.
20599 for var in reload_cmds \
20600 old_postinstall_cmds \
20601 old_postuninstall_cmds \
20603 extract_expsyms_cmds \
20604 old_archive_from_new_cmds \
20605 old_archive_from_expsyms_cmds \
20607 archive_expsym_cmds \
20609 module_expsym_cmds \
20610 export_symbols_cmds \
20614 postuninstall_cmds \
20616 sys_lib_search_path_spec \
20617 configure_time_dlsearch_path \
20618 configure_time_lt_sys_library_path; do
20619 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20620 *[\\\\\\\`\\"\\\$]*)
20621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20629 ac_aux_dir='$ac_aux_dir'
20631 # See if we are running on zsh, and set the options that allow our
20632 # commands through without removal of \ escapes INIT.
20633 if test -n "\${ZSH_VERSION+set}"; then
20634 setopt NO_GLOB_SUBST
20648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20650 # Handling of arguments.
20651 for ac_config_target in $ac_config_targets
20653 case $ac_config_target in
20654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20655 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20657 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
20658 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
20659 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
20660 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
20661 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
20662 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
20663 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
20664 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
20665 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
20666 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
20667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20669 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20674 # If the user did not use the arguments to specify the items to instantiate,
20675 # then the envvar interface is used. Set only those that are not.
20676 # We use the long form for the default assignment because of an extremely
20677 # bizarre bug on SunOS 4.1.3.
20678 if $ac_need_defaults; then
20679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20684 # Have a temporary directory for convenience. Make it in the build tree
20685 # simply because there is no reason against having it here, and in addition,
20686 # creating and moving files from /tmp can sometimes cause problems.
20687 # Hook for its removal unless debugging.
20688 # Note that there is a small window in which the directory will not be cleaned:
20689 # after its creation but before its name has been assigned to `$tmp'.
20693 trap 'exit_status=$?
20694 : "${ac_tmp:=$tmp}"
20695 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20697 trap 'as_fn_exit 1' 1 2 13 15
20699 # Create a (secure) tmp directory for tmp files.
20702 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20706 tmp=./conf$$-$RANDOM
20707 (umask 077 && mkdir "$tmp")
20708 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20711 # Set up the scripts for CONFIG_FILES section.
20712 # No need to generate them if there are no CONFIG_FILES.
20713 # This happens for instance with `./config.status config.h'.
20714 if test -n "$CONFIG_FILES"; then
20717 ac_cr=`echo X | tr X '\015'`
20718 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20719 # But we know of no other shell where ac_cr would be empty at this
20720 # point, so we can use a bashism as a fallback.
20721 if test "x$ac_cr" = x; then
20722 eval ac_cr=\$\'\\r\'
20724 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20725 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20728 ac_cs_awk_cr=$ac_cr
20731 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20736 echo "cat >conf$$subs.awk <<_ACEOF" &&
20737 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20739 } >conf$$subs.sh ||
20740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20741 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20743 for ac_last_try in false false false false false :; do
20744 . ./conf$$subs.sh ||
20745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20747 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20748 if test $ac_delim_n = $ac_delim_num; then
20750 elif $ac_last_try; then
20751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20756 rm -f conf$$subs.sh
20758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20759 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20763 s/^/S["/; s/!.*/"]=/
20773 s/\(.\{148\}\)..*/\1/
20775 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20787 s/\(.\{148\}\)..*/\1/
20789 s/["\\]/\\&/g; s/^/"/; s/$/"/
20793 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20798 ' <conf$$subs.awk | sed '
20803 ' >>$CONFIG_STATUS || ac_write_fail=1
20804 rm -f conf$$subs.awk
20805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20807 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20808 for (key in S) S_is_set[key] = 1
20814 nfields = split(line, field, "@")
20816 len = length(field[1])
20817 for (i = 2; i < nfields; i++) {
20819 keylen = length(key)
20820 if (S_is_set[key]) {
20822 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20823 len += length(value) + length(field[++i])
20834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20835 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20839 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20840 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20843 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20844 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20845 # trailing colons and then remove the whole line if VPATH becomes empty
20846 # (actually we leave an empty line to preserve line numbers).
20847 if test "x$srcdir" = x.; then
20848 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20867 fi # test -n "$CONFIG_FILES"
20869 # Set up the scripts for CONFIG_HEADERS section.
20870 # No need to generate them if there are no CONFIG_HEADERS.
20871 # This happens for instance with `./config.status Makefile'.
20872 if test -n "$CONFIG_HEADERS"; then
20873 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20877 # Transform confdefs.h into an awk script `defines.awk', embedded as
20878 # here-document in config.status, that substitutes the proper values into
20879 # config.h.in to produce config.h.
20881 # Create a delimiter string that does not exist in confdefs.h, to ease
20882 # handling of long lines.
20884 for ac_last_try in false false :; do
20885 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20886 if test -z "$ac_tt"; then
20888 elif $ac_last_try; then
20889 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20895 # For the awk script, D is an array of macro values keyed by name,
20896 # likewise P contains macro parameters if any. Preserve backslash
20897 # newline sequences.
20899 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20901 s/.\{148\}/&'"$ac_delim"'/g
20904 s/^[ ]*#[ ]*define[ ][ ]*/ /
20911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20913 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20917 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20918 D["\1"]=" \3\\\\\\n"\\/p
20920 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20925 s/.\{148\}/&'"$ac_delim"'/g
20930 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20933 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20935 ' <confdefs.h | sed '
20936 s/'"$ac_delim"'/"\\\
20937 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20940 for (key in D) D_is_set[key] = 1
20943 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20945 split(line, arg, " ")
20946 if (arg[1] == "#") {
20950 defundef = substr(arg[1], 2)
20953 split(mac1, mac2, "(") #)
20955 prefix = substr(line, 1, index(line, defundef) - 1)
20956 if (D_is_set[macro]) {
20957 # Preserve the white space surrounding the "#".
20958 print prefix "define", macro P[macro] D[macro]
20961 # Replace #undef with comments. This is necessary, for example,
20962 # in the case of _POSIX_SOURCE, which is predefined and required
20963 # on some systems where configure will not decide to define it.
20964 if (defundef == "undef") {
20965 print "/*", prefix defundef, macro, "*/"
20973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20974 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20975 fi # test -n "$CONFIG_HEADERS"
20978 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20983 :[FHLC]) ac_mode=$ac_tag; continue;;
20985 case $ac_mode$ac_tag in
20987 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20988 :[FH]-) ac_tag=-:-;;
20989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21006 -) ac_f="$ac_tmp/stdin";;
21007 *) # Look for the file first in the build tree, then in the source tree
21008 # (if the path is not absolute). The absolute path cannot be DOS-style,
21009 # because $ac_f cannot contain `:'.
21013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21015 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21017 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21018 as_fn_append ac_file_inputs " '$ac_f'"
21021 # Let's still pretend it is `configure' which instantiates (i.e., don't
21022 # use $as_me), people would be surprised to read:
21023 # /* config.h. Generated by config.status. */
21024 configure_input='Generated from '`
21025 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21027 if test x"$ac_file" != x-; then
21028 configure_input="$ac_file. $configure_input"
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21030 $as_echo "$as_me: creating $ac_file" >&6;}
21032 # Neutralize special characters interpreted by sed in replacement strings.
21033 case $configure_input in #(
21034 *\&* | *\|* | *\\* )
21035 ac_sed_conf_input=`$as_echo "$configure_input" |
21036 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21037 *) ac_sed_conf_input=$configure_input;;
21041 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21047 ac_dir=`$as_dirname -- "$ac_file" ||
21048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21049 X"$ac_file" : 'X\(//\)[^/]' \| \
21050 X"$ac_file" : 'X\(//\)$' \| \
21051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21052 $as_echo X"$ac_file" |
21053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21057 /^X\(\/\/\)[^/].*/{
21070 as_dir="$ac_dir"; as_fn_mkdir_p
21074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21077 # A ".." for each directory in $ac_dir_suffix.
21078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21079 case $ac_top_builddir_sub in
21080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21084 ac_abs_top_builddir=$ac_pwd
21085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21086 # for backward compatibility:
21087 ac_top_builddir=$ac_top_build_prefix
21090 .) # We are building in place.
21092 ac_top_srcdir=$ac_top_builddir_sub
21093 ac_abs_top_srcdir=$ac_pwd ;;
21094 [\\/]* | ?:[\\/]* ) # Absolute name.
21095 ac_srcdir=$srcdir$ac_dir_suffix;
21096 ac_top_srcdir=$srcdir
21097 ac_abs_top_srcdir=$srcdir ;;
21098 *) # Relative name.
21099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21100 ac_top_srcdir=$ac_top_build_prefix$srcdir
21101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21115 # If the template does not know about datarootdir, expand it.
21116 # FIXME: This hack should be removed a few years after 2.60.
21117 ac_datarootdir_hack=; ac_datarootdir_seen=
21128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21129 *datarootdir*) ac_datarootdir_seen=yes;;
21130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21135 ac_datarootdir_hack='
21136 s&@datadir@&$datadir&g
21137 s&@docdir@&$docdir&g
21138 s&@infodir@&$infodir&g
21139 s&@localedir@&$localedir&g
21140 s&@mandir@&$mandir&g
21141 s&\\\${datarootdir}&$datarootdir&g' ;;
21145 # Neutralize VPATH when `$srcdir' = `.'.
21146 # Shell code in configure.ac might set extrasub.
21147 # FIXME: do we really want to maintain this feature?
21148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21149 ac_sed_extra="$ac_vpsub
21152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21155 s|@configure_input@|$ac_sed_conf_input|;t t
21156 s&@top_builddir@&$ac_top_builddir_sub&;t t
21157 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21158 s&@srcdir@&$ac_srcdir&;t t
21159 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21160 s&@top_srcdir@&$ac_top_srcdir&;t t
21161 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21162 s&@builddir@&$ac_builddir&;t t
21163 s&@abs_builddir@&$ac_abs_builddir&;t t
21164 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21165 $ac_datarootdir_hack
21167 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21168 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21170 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21171 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21173 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21175 which seems to be undefined. Please make sure it is defined" >&5
21176 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21177 which seems to be undefined. Please make sure it is defined" >&2;}
21179 rm -f "$ac_tmp/stdin"
21181 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21182 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21190 if test x"$ac_file" != x-; then
21192 $as_echo "/* $configure_input */" \
21193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21194 } >"$ac_tmp/config.h" \
21195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21196 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21198 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21201 mv "$ac_tmp/config.h" "$ac_file" \
21202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21205 $as_echo "/* $configure_input */" \
21206 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21207 || as_fn_error $? "could not create -" "$LINENO" 5
21211 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21212 $as_echo "$as_me: executing $ac_file commands" >&6;}
21217 case $ac_file$ac_mode in
21220 # See if we are running on zsh, and set the options that allow our
21221 # commands through without removal of \ escapes.
21222 if test -n "${ZSH_VERSION+set}"; then
21223 setopt NO_GLOB_SUBST
21227 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21230 cat <<_LT_EOF >> "$cfgfile"
21232 # Generated automatically by $as_me ($PACKAGE) $VERSION
21233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21234 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21236 # Provide generalized library-building support services.
21237 # Written by Gordon Matzigkeit, 1996
21239 # Copyright (C) 2014 Free Software Foundation, Inc.
21240 # This is free software; see the source for copying conditions. There is NO
21241 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21243 # GNU Libtool is free software; you can redistribute it and/or modify
21244 # it under the terms of the GNU General Public License as published by
21245 # the Free Software Foundation; either version 2 of of the License, or
21246 # (at your option) any later version.
21248 # As a special exception to the GNU General Public License, if you
21249 # distribute this file as part of a program or library that is built
21250 # using GNU Libtool, you may include this file under the same
21251 # distribution terms that you use for the rest of that program.
21253 # GNU Libtool is distributed in the hope that it will be useful, but
21254 # WITHOUT ANY WARRANTY; without even the implied warranty of
21255 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21256 # GNU General Public License for more details.
21258 # You should have received a copy of the GNU General Public License
21259 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21262 # The names of the tagged configurations supported by this script.
21265 # Configured defaults for sys_lib_dlsearch_path munging.
21266 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21268 # ### BEGIN LIBTOOL CONFIG
21270 # Which release of libtool.m4 was used?
21271 macro_version=$macro_version
21272 macro_revision=$macro_revision
21274 # Whether or not to build shared libraries.
21275 build_libtool_libs=$enable_shared
21277 # Whether or not to build static libraries.
21278 build_old_libs=$enable_static
21280 # What type of objects to build.
21283 # Whether or not to optimize for fast installation.
21284 fast_install=$enable_fast_install
21286 # Shared archive member basename,for filename based shared library versioning on AIX.
21287 shared_archive_member_spec=$shared_archive_member_spec
21289 # Shell to use when invoking shell scripts.
21292 # An echo program that protects backslashes.
21295 # The PATH separator for the build system.
21296 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21299 host_alias=$host_alias
21303 # The build system.
21304 build_alias=$build_alias
21308 # A sed program that does not truncate output.
21311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21312 Xsed="\$SED -e 1s/^X//"
21314 # A grep program that handles long lines.
21320 # A literal string matcher.
21323 # A BSD- or MS-compatible name lister.
21326 # Whether we need soft or hard links.
21329 # What is the maximum length of a command?
21330 max_cmd_len=$max_cmd_len
21332 # Object file suffix (normally "o").
21335 # Executable file suffix (normally "").
21338 # whether the shell understands "unset".
21341 # turn spaces into newlines.
21344 # turn newlines into spaces.
21347 # convert \$build file names to \$host format.
21348 to_host_file_cmd=$lt_cv_to_host_file_cmd
21350 # convert \$build files to toolchain format.
21351 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21353 # An object symbol dumper.
21354 OBJDUMP=$lt_OBJDUMP
21356 # Method to check whether dependent libraries are shared objects.
21357 deplibs_check_method=$lt_deplibs_check_method
21359 # Command to use when deplibs_check_method = "file_magic".
21360 file_magic_cmd=$lt_file_magic_cmd
21362 # How to find potential files when deplibs_check_method = "file_magic".
21363 file_magic_glob=$lt_file_magic_glob
21365 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21366 want_nocaseglob=$lt_want_nocaseglob
21368 # DLL creation program.
21369 DLLTOOL=$lt_DLLTOOL
21371 # Command to associate shared and link libraries.
21372 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21377 # Flags to create an archive.
21378 AR_FLAGS=$lt_AR_FLAGS
21380 # How to feed a file listing to the archiver.
21381 archiver_list_spec=$lt_archiver_list_spec
21383 # A symbol stripping program.
21386 # Commands used to install an old-style archive.
21388 old_postinstall_cmds=$lt_old_postinstall_cmds
21389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21391 # Whether to use a lock for old archive extraction.
21392 lock_old_archive_extraction=$lock_old_archive_extraction
21397 # LTCC compiler flags.
21398 LTCFLAGS=$lt_CFLAGS
21400 # Take the output of nm and produce a listing of raw symbols and C names.
21401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21403 # Transform the output of nm in a proper C declaration.
21404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21406 # Transform the output of nm into a list of symbols to manually relocate.
21407 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21409 # Transform the output of nm in a C name address pair.
21410 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21412 # Transform the output of nm in a C name address pair when lib prefix is needed.
21413 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21415 # The name lister interface.
21416 nm_interface=$lt_lt_cv_nm_interface
21418 # Specify filename containing input files for \$NM.
21419 nm_file_list_spec=$lt_nm_file_list_spec
21421 # The root where to search for dependent libraries,and where our libraries should be installed.
21422 lt_sysroot=$lt_sysroot
21424 # Command to truncate a binary pipe.
21425 lt_truncate_bin=$lt_lt_cv_truncate_bin
21427 # The name of the directory that contains temporary libtool files.
21430 # Used to examine libraries when file_magic_cmd begins with "file".
21431 MAGIC_CMD=$MAGIC_CMD
21433 # Must we lock files when doing compilation?
21434 need_locks=$lt_need_locks
21437 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21439 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21440 DSYMUTIL=$lt_DSYMUTIL
21442 # Tool to change global to local symbols on Mac OS X.
21445 # Tool to manipulate fat objects and archives on Mac OS X.
21448 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21451 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21452 OTOOL64=$lt_OTOOL64
21454 # Old archive suffix (normally "a").
21457 # Shared library suffix (normally ".so").
21458 shrext_cmds=$lt_shrext_cmds
21460 # The commands to extract the exported symbol list from a shared archive.
21461 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21463 # Variables whose values should be saved in libtool wrapper scripts and
21464 # restored at link time.
21465 variables_saved_for_relink=$lt_variables_saved_for_relink
21467 # Do we need the "lib" prefix for modules?
21468 need_lib_prefix=$need_lib_prefix
21470 # Do we need a version for libraries?
21471 need_version=$need_version
21473 # Library versioning type.
21474 version_type=$version_type
21476 # Shared library runtime path variable.
21477 runpath_var=$runpath_var
21479 # Shared library path variable.
21480 shlibpath_var=$shlibpath_var
21482 # Is shlibpath searched before the hard-coded library search path?
21483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21485 # Format of library name prefix.
21486 libname_spec=$lt_libname_spec
21488 # List of archive names. First name is the real one, the rest are links.
21489 # The last name is the one that the linker finds with -lNAME
21490 library_names_spec=$lt_library_names_spec
21492 # The coded name of the library, if different from the real name.
21493 soname_spec=$lt_soname_spec
21495 # Permission mode override for installation of shared libraries.
21496 install_override_mode=$lt_install_override_mode
21498 # Command to use after installation of a shared archive.
21499 postinstall_cmds=$lt_postinstall_cmds
21501 # Command to use after uninstallation of a shared archive.
21502 postuninstall_cmds=$lt_postuninstall_cmds
21504 # Commands used to finish a libtool library installation in a directory.
21505 finish_cmds=$lt_finish_cmds
21507 # As "finish_cmds", except a single script fragment to be evaled but
21509 finish_eval=$lt_finish_eval
21511 # Whether we should hardcode library paths into libraries.
21512 hardcode_into_libs=$hardcode_into_libs
21514 # Compile-time system search path for libraries.
21515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21517 # Detected run-time system search path for libraries.
21518 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21520 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21521 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21523 # Whether dlopen is supported.
21524 dlopen_support=$enable_dlopen
21526 # Whether dlopen of programs is supported.
21527 dlopen_self=$enable_dlopen_self
21529 # Whether dlopen of statically linked programs is supported.
21530 dlopen_self_static=$enable_dlopen_self_static
21532 # Commands to strip libraries.
21533 old_striplib=$lt_old_striplib
21534 striplib=$lt_striplib
21537 # The linker used to build libraries.
21540 # How to create reloadable object files.
21541 reload_flag=$lt_reload_flag
21542 reload_cmds=$lt_reload_cmds
21544 # Commands used to build an old-style archive.
21545 old_archive_cmds=$lt_old_archive_cmds
21547 # A language specific compiler.
21550 # Is the compiler the GNU compiler?
21553 # Compiler flag to turn off builtin functions.
21554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21556 # Additional compiler flags for building library objects.
21557 pic_flag=$lt_lt_prog_compiler_pic
21559 # How to pass a linker flag through the compiler.
21560 wl=$lt_lt_prog_compiler_wl
21562 # Compiler flag to prevent dynamic linking.
21563 link_static_flag=$lt_lt_prog_compiler_static
21565 # Does compiler simultaneously support -c and -o options?
21566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21568 # Whether or not to add -lc for building shared libraries.
21569 build_libtool_need_lc=$archive_cmds_need_lc
21571 # Whether or not to disallow shared libs when runtime libs are static.
21572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21574 # Compiler flag to allow reflexive dlopens.
21575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21577 # Compiler flag to generate shared objects directly from archives.
21578 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21580 # Whether the compiler copes with passing no objects directly.
21581 compiler_needs_object=$lt_compiler_needs_object
21583 # Create an old-style archive from a shared archive.
21584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21586 # Create a temporary old-style archive to link instead of a shared archive.
21587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21589 # Commands used to build a shared archive.
21590 archive_cmds=$lt_archive_cmds
21591 archive_expsym_cmds=$lt_archive_expsym_cmds
21593 # Commands used to build a loadable module if different from building
21594 # a shared archive.
21595 module_cmds=$lt_module_cmds
21596 module_expsym_cmds=$lt_module_expsym_cmds
21598 # Whether we are building with GNU ld or not.
21599 with_gnu_ld=$lt_with_gnu_ld
21601 # Flag that allows shared libraries with undefined symbols to be built.
21602 allow_undefined_flag=$lt_allow_undefined_flag
21604 # Flag that enforces no undefined symbols.
21605 no_undefined_flag=$lt_no_undefined_flag
21607 # Flag to hardcode \$libdir into a binary during linking.
21608 # This must work even if \$libdir does not exist
21609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21611 # Whether we need a single "-rpath" flag with a separated argument.
21612 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21614 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21615 # DIR into the resulting binary.
21616 hardcode_direct=$hardcode_direct
21618 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21619 # DIR into the resulting binary and the resulting library dependency is
21620 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21621 # library is relocated.
21622 hardcode_direct_absolute=$hardcode_direct_absolute
21624 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21625 # into the resulting binary.
21626 hardcode_minus_L=$hardcode_minus_L
21628 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21629 # into the resulting binary.
21630 hardcode_shlibpath_var=$hardcode_shlibpath_var
21632 # Set to "yes" if building a shared library automatically hardcodes DIR
21633 # into the library and all subsequent libraries and executables linked
21635 hardcode_automatic=$hardcode_automatic
21637 # Set to yes if linker adds runtime paths of dependent libraries
21638 # to runtime path list.
21639 inherit_rpath=$inherit_rpath
21641 # Whether libtool must link a program against all its dependency libraries.
21642 link_all_deplibs=$link_all_deplibs
21644 # Set to "yes" if exported symbols are required.
21645 always_export_symbols=$always_export_symbols
21647 # The commands to list exported symbols.
21648 export_symbols_cmds=$lt_export_symbols_cmds
21650 # Symbols that should not be listed in the preloaded symbols.
21651 exclude_expsyms=$lt_exclude_expsyms
21653 # Symbols that must always be exported.
21654 include_expsyms=$lt_include_expsyms
21656 # Commands necessary for linking programs (against libraries) with templates.
21657 prelink_cmds=$lt_prelink_cmds
21659 # Commands necessary for finishing linking programs.
21660 postlink_cmds=$lt_postlink_cmds
21662 # Specify filename containing input files.
21663 file_list_spec=$lt_file_list_spec
21665 # How to hardcode a shared library path into an executable.
21666 hardcode_action=$hardcode_action
21668 # ### END LIBTOOL CONFIG
21672 cat <<'_LT_EOF' >> "$cfgfile"
21674 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21676 # func_munge_path_list VARIABLE PATH
21677 # -----------------------------------
21678 # VARIABLE is name of variable containing _space_ separated list of
21679 # directories to be munged by the contents of PATH, which is string
21682 # string "DIR[ DIR]" will be prepended to VARIABLE
21684 # string "DIR[ DIR]" will be appended to VARIABLE
21685 # "DIRP[:DIRP]::[DIRA:]DIRA"
21686 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21687 # "DIRA[ DIRA]" will be appended to VARIABLE
21689 # VARIABLE will be replaced by "DIR[ DIR]"
21690 func_munge_path_list ()
21696 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21699 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21702 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21703 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21706 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21712 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21713 func_cc_basename ()
21715 for cc_temp in $*""; do
21717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21723 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21727 # ### END FUNCTIONS SHARED WITH CONFIGURE
21733 cat <<\_LT_EOF >> "$cfgfile"
21734 # AIX sometimes has problems with the GCC collect2 program. For some
21735 # reason, if we set the COLLECT_NAMES environment variable, the problems
21736 # vanish in a puff of smoke.
21737 if test set != "${COLLECT_NAMES+set}"; then
21739 export COLLECT_NAMES
21746 ltmain=$ac_aux_dir/ltmain.sh
21749 # We use sed instead of cat because bash on DJGPP gets confused if
21750 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21751 # text mode, it properly converts lines to CR/LF. This bash problem
21752 # is reportedly fixed, but why not run on old versions too?
21753 sed '$q' "$ltmain" >> "$cfgfile" \
21754 || (rm -f "$cfgfile"; exit 1)
21756 mv -f "$cfgfile" "$ofile" ||
21757 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21762 sed < libtool > libtool-2 \
21763 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21764 mv libtool-2 libtool
21766 libtool="./libtool"
21775 ac_clean_files=$ac_clean_files_save
21777 test $ac_write_fail = 0 ||
21778 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21781 # configure is writing to config.log, and then calls config.status.
21782 # config.status does its own redirection, appending to config.log.
21783 # Unfortunately, on DOS this fails, as config.log is still kept open
21784 # by configure, so config.status won't be able to write to it; its
21785 # output is simply discarded. So we exec the FD to /dev/null,
21786 # effectively closing config.log, so it can be properly (re)opened and
21787 # appended to by config.status. When coming back to configure, we
21788 # need to make the FD available again.
21789 if test "$no_create" != yes; then
21791 ac_config_status_args=
21792 test "$silent" = yes &&
21793 ac_config_status_args="$ac_config_status_args --quiet"
21795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21798 # would make configure fail if this is the last instruction.
21799 $ac_cs_success || as_fn_exit 1
21801 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21803 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}