2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.1.
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.1'
594 PACKAGE_STRING
='unbound 1.5.1'
595 PACKAGE_BUGREPORT
='unbound-bugs@nlnetlabs.nl'
598 # Factoring default headers for most tests.
599 ac_includes_default
="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars
='LTLIBOBJS
643 opt_dnstap_socket_path
648 COMMON_OBJ_ALL_SYMBOLS
650 LIBOBJ_WITHOUT_CTIMEARC4
651 WIN_CHECKCONF_OBJ_LINK
653 WIN_UBANCHOR_OBJ_LINK
662 UNBOUND_EVENT_UNINSTALL
663 UNBOUND_EVENT_INSTALL
730 UNBOUND_ROOTCERT_FILE
750 UNBOUND_VERSION_MICRO
751 UNBOUND_VERSION_MINOR
752 UNBOUND_VERSION_MAJOR
780 program_transform_name
793 enable_option_checking
816 enable_alloc_nonregional
833 with_dnstap_socket_path
838 ac_precious_vars
='build_alias
852 # Initialize some variables set by options.
854 ac_init_version
=false
855 ac_unrecognized_opts
=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name
=s
,x
,x
,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir
='${exec_prefix}/bin'
881 sbindir
='${exec_prefix}/sbin'
882 libexecdir
='${exec_prefix}/libexec'
883 datarootdir
='${prefix}/share'
884 datadir
='${datarootdir}'
885 sysconfdir
='${prefix}/etc'
886 sharedstatedir
='${prefix}/com'
887 localstatedir
='${prefix}/var'
888 includedir
='${prefix}/include'
889 oldincludedir
='/usr/include'
890 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir
='${datarootdir}/info'
896 libdir
='${exec_prefix}/lib'
897 localedir
='${datarootdir}/locale'
898 mandir
='${datarootdir}/man'
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\
$ac_option
912 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 # Accept the important Cygnus configure options, so we can diagnose typos.
919 case $ac_dashdash$ac_option in
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 -build | --build | --buil | --bui | --bu)
929 ac_prev
=build_alias
;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias
=$ac_optarg ;;
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev
=cache_file
;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file
=$ac_optarg ;;
941 cache_file
=config.cache
;;
943 -datadir | --datadir | --datadi | --datad)
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir
=$ac_optarg ;;
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev
=datarootdir
;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir
=$ac_optarg ;;
955 -disable-* | --disable-*)
956 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
959 as_fn_error $?
"invalid feature name: $ac_useropt"
960 ac_useropt_orig
=$ac_useropt
961 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep
=', ';;
969 eval enable_
$ac_useropt=no
;;
971 -docdir | --docdir | --docdi | --doc | --do)
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 -enable-* | --enable-*)
982 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
985 as_fn_error $?
"invalid feature name: $ac_useropt"
986 ac_useropt_orig
=$ac_useropt
987 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep
=', ';;
995 eval enable_
$ac_useropt=\
$ac_optarg ;;
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev
=exec_prefix
;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix
=$ac_optarg ;;
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help
=long
;;
1012 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1013 ac_init_help
=recursive
;;
1014 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1015 ac_init_help
=short
;;
1017 -host | --host | --hos | --ho)
1018 ac_prev
=host_alias
;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias
=$ac_optarg ;;
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 htmldir
=$ac_optarg ;;
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev
=includedir
;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir
=$ac_optarg ;;
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir
=$ac_optarg ;;
1040 -libdir | --libdir | --libdi | --libd)
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir
=$ac_optarg ;;
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev
=libexecdir
;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir
=$ac_optarg ;;
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev
=localedir
;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir
=$ac_optarg ;;
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev
=localstatedir
;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir
=$ac_optarg ;;
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir
=$ac_optarg ;;
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev
=oldincludedir
;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir
=$ac_optarg ;;
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix
=$ac_optarg ;;
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev
=program_prefix
;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix
=$ac_optarg ;;
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev
=program_suffix
;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix
=$ac_optarg ;;
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev
=program_transform_name
;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name
=$ac_optarg ;;
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir
=$ac_optarg ;;
1131 -psdir | --psdir | --psdi | --psd | --ps)
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 sbindir
=$ac_optarg ;;
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1150 ac_prev
=sharedstatedir
;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 sharedstatedir
=$ac_optarg ;;
1157 -site | --site | --sit)
1159 -site=* | --site=* | --sit=*)
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir
=$ac_optarg ;;
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev
=sysconfdir
;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir
=$ac_optarg ;;
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev
=target_alias
;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias
=$ac_optarg ;;
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version
=: ;;
1186 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1189 as_fn_error $?
"invalid package name: $ac_useropt"
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=\
$ac_optarg ;;
1201 -without-* | --without-*)
1202 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1205 as_fn_error $?
"invalid package name: $ac_useropt"
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval with_
$ac_useropt=no
;;
1218 # Obsolete; use --with-x.
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev
=x_includes
;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes
=$ac_optarg ;;
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev
=x_libraries
;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries
=$ac_optarg ;;
1235 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1240 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1246 eval $ac_envvar=\
$ac_optarg
1247 export $ac_envvar ;;
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 if test -n "$ac_prev"; then
1261 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $?
"missing argument to $ac_option"
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1268 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 # Check all directory arguments for consistency.
1274 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1279 eval ac_val
=\$
$ac_var
1280 # Remove trailing slashes.
1283 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\
$ac_val;;
1286 # Be sure to have absolute directory names.
1288 [\\/$
]* | ?
:[\\/]* ) continue;;
1289 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1291 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1299 target
=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x
; then
1303 if test "x$build_alias" = x
; then
1304 cross_compiling
=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1313 test "$silent" = yes && exec 6>/dev
/null
1316 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di
=`ls -di .` &&
1318 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $?
"working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $?
"pwd does not report name of working directory"
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted
=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir
=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted
=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1360 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1362 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1374 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 for ac_var
in $ac_precious_vars; do
1377 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1378 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1379 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1380 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1390 \`configure' configures unbound 1.5.1 to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --build=BUILD configure
for building on BUILD
[guessed
]
1449 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short
| recursive
) echo "Configuration of unbound 1.5.1:";;
1460 --disable-option-checking ignore unrecognized
--enable/--with options
1461 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1462 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1463 --enable-checking Enable warnings
, asserts
, makefile
-dependencies
1464 --enable-debug same as
enable-checking
1465 --disable-flto Disable link
-time optimization
(gcc specific option
)
1466 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1467 --enable-static[=PKGS
] build static libraries
[default
=yes]
1468 --enable-fast-install[=PKGS
]
1469 optimize
for fast installation
[default
=yes]
1470 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1471 --disable-rpath disable hardcoded rpath
(default
=enabled
)
1472 --disable-largefile omit support
for large files
1473 --enable-alloc-checks enable to memory allocation statistics
, for debug
1475 --enable-alloc-lite enable for lightweight alloc assertions
, for debug
1477 --enable-alloc-nonregional
1478 enable nonregional allocs
, slow but exposes regional
1479 allocations to other memory purifiers
, for debug
1481 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1482 --disable-gost Disable GOST support
1483 --disable-ecdsa Disable ECDSA support
1484 --enable-event-api Enable
(experimental
) libevent
-based libunbound API
1485 installed to unbound
-event.h
1486 --enable-static-exe enable to compile executables statically against
1487 (event
) libs
, for debug purposes
1488 --enable-lock-checks enable to check lock and unlock calls
, for debug
1490 --enable-allsymbols export all symbols from libunbound and link binaries
1491 to it
, smaller
install size but libunbound
export
1492 table is polluted by internal symbols
1493 --enable-dnstap Enable dnstap support
(requires fstrm
, protobuf
-c)
1496 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1497 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1498 --with-conf-file=path Pathname to the Unbound configuration
file
1499 --with-run-dir=path
set default directory to chdir to
(by default dir
1501 --with-chroot-dir=path
set default directory to chroot to
(by default same
1503 --with-share-dir=path
set default directory with shared data
(by default
1504 same as share
/unbound
)
1505 --with-pidfile=filename
set default pathname to unbound pidfile
(default
1506 run
-dir/unbound.pid
)
1507 --with-rootkey-file=filename
1508 set default pathname to root key
file (default
1509 run
-dir/root.key
). This
file is
read and written.
1510 --with-rootcert-file=filename
1511 set default pathname to root update certificate
file
1512 (default run
-dir/icannbundle.pem
). This
file need
1513 not exist
if you are content with the
builtin.
1514 --with-username=user
set default user that unbound changes to
(default
1516 --with-pic[=PKGS
] try to use only PIC
/non
-PIC objects
[default
=use
1518 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1519 --with-sysroot=DIR Search
for dependent libraries within DIR
1520 (or the compiler
's sysroot if not specified).
1521 --with-pthreads use pthreads library, or --without-pthreads to
1522 disable threading support.
1523 --with-solaris-threads use solaris native thread library.
1524 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1526 --with-pythonmodule build Python module, or --without-pythonmodule to
1527 disable script engine. (default=no)
1528 --with-nss=path use libnss instead of openssl, installed at path.
1529 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1530 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1532 --with-libevent=pathname
1533 use libevent (will check /usr/local /opt/local
1534 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1535 an explicit path). Slower, but allows use of large
1536 outgoing port ranges.
1537 --with-libexpat=path specify explicit path for libexpat.
1538 --with-dnstap-socket-path=pathname
1539 set default dnstap socket path
1540 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1541 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1542 --with-libunbound-only do not build daemon and tool programs
1544 Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
1553 YACC The `Yet Another Compiler Compiler' implementation to use.
1554 Defaults to the first program found out of
: `bison -y', `byacc
',
1556 YFLAGS The list of arguments that will be passed by default to
$YACC.
1557 This
script will default YFLAGS to the empty string to avoid a
1558 default value of
`-d' given by some make applications.
1560 The installed Python version to use, for example '2.3'. This
1561 string will be appended to the Python interpreter canonical
1564 Use these variables to override the choices made by `configure
' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1567 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's
|^\.
[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's
|/[^
\\/]*|/..
|g
;s
|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1597 .) # We are building in place.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1630 unbound configure 1.5.1
1631 generated by GNU Autoconf 2.69
1633 Copyright (C) 2012 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it.
1640 ## ------------------------ ##
1641 ## Autoconf initialization. ##
1642 ## ------------------------ ##
1644 # ac_fn_c_try_compile LINENO
1645 # --------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^
*+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's
/^
/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_c_try_compile
1682 # ac_fn_c_try_cpp LINENO
1683 # ----------------------
1684 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 if test -s conftest.err; then
1698 grep -v '^
*+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } > conftest.i && {
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's
/^
/| /' conftest.$ac_ext >&5
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1719 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722 # the include files in INCLUDES and setting the cache variable VAR
1724 ac_fn_c_check_header_mongrel ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if eval \${$3+:} false; then :
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1737 # Is the header compilable?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739 $as_echo_n "checking $2 usability... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 ac_header_compiler=yes
1748 ac_header_compiler=no
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752 $as_echo "$ac_header_compiler" >&6; }
1754 # Is the header present?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756 $as_echo_n "checking $2 presence... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1761 if ac_fn_c_try_cpp "$LINENO"; then :
1762 ac_header_preproc=yes
1764 ac_header_preproc=no
1766 rm -f conftest.err conftest.i conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768 $as_echo "$ac_header_preproc" >&6; }
1770 # So? What about this header?
1771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1776 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1782 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1786 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1788 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1789 ( $as_echo "## ---------------------------------------- ##
1790 ## Report this to unbound-bugs@nlnetlabs.nl ##
1791 ## ---------------------------------------- ##"
1792 ) | sed "s/^/$as_me: WARNING: /" >&2
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1800 eval "$3=\$ac_header_compiler"
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_header_mongrel
1810 # ac_fn_c_try_run LINENO
1811 # ----------------------
1812 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1813 # that executables *can* be run.
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { { ac_try="$ac_link"
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820 *) ac_try_echo=$ac_try;;
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823 $as_echo "$ac_try_echo"; } >&5
1824 (eval "$ac_link") 2>&5
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1828 { { case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_try") 2>&5
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; }; }; then :
1840 $as_echo "$as_me: program exited with status $ac_status" >&5
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's
/^
/| /' conftest.$ac_ext >&5
1844 ac_retval=$ac_status
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1852 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1853 # -------------------------------------------------------
1854 # Tests whether HEADER exists and can be compiled using the include files in
1855 # INCLUDES, setting the cache variable VAR accordingly.
1856 ac_fn_c_check_header_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862 $as_echo_n "(cached) " >&6
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_compile
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^
*+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's
/^
/| /' conftest.$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We
do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status
$ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func
()
1934 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \
${$3+:} false
; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1952 # include <limits.h>
1954 # include <assert.h>
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1981 if ac_fn_c_try_link
"$LINENO"; then :
1986 rm -f core conftest.err conftest.
$ac_objext \
1987 conftest
$ac_exeext conftest.
$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_func
1996 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1997 # -------------------------------------------
1998 # Tests whether TYPE exists after having included INCLUDES, setting cache
1999 # variable VAR accordingly.
2000 ac_fn_c_check_type
()
2002 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \
${$3+:} false
; then :
2006 $as_echo_n "(cached) " >&6
2009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2021 if ac_fn_c_try_compile
"$LINENO"; then :
2022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_type
2050 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2051 # --------------------------------------------
2052 # Tries to find the compile-time value of EXPR in a program that includes
2053 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 ac_fn_c_compute_int
()
2057 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2058 if test "$cross_compiling" = yes; then
2059 # Depending upon the size, compute the lo and hi bounds.
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) >= 0)];
2068 return test_array [0];
2074 if ac_fn_c_try_compile
"$LINENO"; then :
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 return test_array [0];
2091 if ac_fn_c_try_compile
"$LINENO"; then :
2092 ac_hi
=$ac_mid; break
2094 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2112 return test_array [0];
2118 if ac_fn_c_try_compile
"$LINENO"; then :
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile
"$LINENO"; then :
2136 ac_lo
=$ac_mid; break
2138 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2139 if test $ac_mid -le $ac_hi; then
2143 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2153 # Binary search between lo and hi bounds.
2154 while test "x$ac_lo" != "x$ac_hi"; do
2155 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile
"$LINENO"; then :
2173 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2193 FILE *f = fopen ("conftest.val", "w");
2198 long int i = longval ();
2201 fprintf (f, "%ld", i);
2205 unsigned long int i = ulongval ();
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2218 if ac_fn_c_try_run
"$LINENO"; then :
2219 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status
$ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2237 ac_fn_c_check_decl
()
2239 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2240 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2241 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval \
${$3+:} false
; then :
2245 $as_echo_n "(cached) " >&6
2247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 #ifndef $as_decl_name
2255 (void) $as_decl_use;
2257 (void) $as_decl_name;
2265 if ac_fn_c_try_compile
"$LINENO"; then :
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 } # ac_fn_c_check_decl
2279 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2280 # ----------------------------------------------------
2281 # Tries to find if the field MEMBER exists in type AGGR, after including
2282 # INCLUDES, setting cache variable VAR accordingly.
2283 ac_fn_c_check_member
()
2285 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2287 $as_echo_n "checking for $2.$3... " >&6; }
2288 if eval \
${$4+:} false
; then :
2289 $as_echo_n "(cached) " >&6
2291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2304 if ac_fn_c_try_compile
"$LINENO"; then :
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2314 if (sizeof ac_aggr.$3)
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2334 } # ac_fn_c_check_member
2335 cat >config.log
<<_ACEOF
2336 This file contains any messages produced by compilers while
2337 running configure, to aid debugging if configure makes a mistake.
2339 It was created by unbound $as_me 1.5.1, which was
2340 generated by GNU Autoconf 2.69. Invocation command line was
2352 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2362 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2363 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2365 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2366 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2367 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir
=.
2376 $as_echo "PATH: $as_dir"
2392 # Keep a trace of the command line.
2393 # Strip out --no-create and --no-recursion so they do not pile up.
2394 # Strip out --silent because we don't want to record it for future runs.
2395 # Also quote any args containing shell meta-characters.
2396 # Make two passes to allow for proper duplicate-argument suppression.
2400 ac_must_keep_next
=false
2406 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408 | -silent | --silent | --silen | --sile | --sil)
2411 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2414 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2416 as_fn_append ac_configure_args1
" '$ac_arg'"
2417 if test $ac_must_keep_next = true
; then
2418 ac_must_keep_next
=false
# Got value, back to normal.
2421 *=* | --config-cache | -C | -disable-* | --disable-* \
2422 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424 | -with-* | --with-* | -without-* | --without-* | --x)
2425 case "$ac_configure_args0 " in
2426 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2429 -* ) ac_must_keep_next
=true
;;
2432 as_fn_append ac_configure_args
" '$ac_arg'"
2437 { ac_configure_args0
=; unset ac_configure_args0
;}
2438 { ac_configure_args1
=; unset ac_configure_args1
;}
2440 # When interrupted or exit'd, cleanup temporary files, and complete
2441 # config.log. We remove comments because anyway the quotes in there
2442 # would cause problems or look ugly.
2443 # WARNING: Use '\'' to represent an apostrophe within the trap.
2444 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445 trap 'exit_status=$?
2446 # Save into config.log some information that might help in debugging.
2450 $as_echo "## ---------------- ##
2451 ## Cache variables. ##
2452 ## ---------------- ##"
2454 # The following way of writing the cache mishandles newlines in values,
2456 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457 eval ac_val=\$$ac_var
2461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2465 _ | IFS | as_nl) ;; #(
2466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467 *) { eval $ac_var=; unset $ac_var;} ;;
2472 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473 *${as_nl}ac_space=\ *)
2475 "s/'\''/'\''\\\\'\'''\''/g;
2476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2486 $as_echo "## ----------------- ##
2487 ## Output variables. ##
2488 ## ----------------- ##"
2490 for ac_var in $ac_subst_vars
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2500 if test -n "$ac_subst_files"; then
2501 $as_echo "## ------------------- ##
2502 ## File substitutions. ##
2503 ## ------------------- ##"
2505 for ac_var
in $ac_subst_files
2507 eval ac_val
=\$
$ac_var
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2511 $as_echo "$ac_var='\''$ac_val'\''"
2516 if test -s confdefs.h; then
2517 $as_echo "## ----------- ##
2524 test "$ac_signal" != 0 &&
2525 $as_echo "$as_me: caught signal $ac_signal"
2526 $as_echo "$as_me: exit $exit_status"
2528 rm -f core *.core core.conftest.* &&
2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2532 for ac_signal
in 1 2 13 15; do
2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest
* confdefs.h
2540 $as_echo "/* confdefs.h */" > confdefs.h
2542 # Predefined preprocessor variables.
2544 cat >>confdefs.h
<<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2548 cat >>confdefs.h
<<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2552 cat >>confdefs.h
<<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2556 cat >>confdefs.h
<<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2560 cat >>confdefs.h
<<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2564 cat >>confdefs.h
<<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2573 if test -n "$CONFIG_SITE"; then
2574 # We do not want a PATH search for config.site.
2575 case $CONFIG_SITE in #((
2576 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2577 */*) ac_site_file1
=$CONFIG_SITE;;
2578 *) ac_site_file1
=.
/$CONFIG_SITE;;
2580 elif test "x$prefix" != xNONE
; then
2581 ac_site_file1
=$prefix/share
/config.site
2582 ac_site_file2
=$prefix/etc
/config.site
2584 ac_site_file1
=$ac_default_prefix/share
/config.site
2585 ac_site_file2
=$ac_default_prefix/etc
/config.site
2587 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2589 test "x$ac_site_file" = xNONE
&& continue
2590 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593 sed 's/^/| /' "$ac_site_file" >&5
2595 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597 as_fn_error $?
"failed to load site script $ac_site_file
2598 See \`config.log' for more details" "$LINENO" 5; }
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special files
2604 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2605 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2609 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2610 *) .
"./$cache_file";;
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2619 # Check that the precious variables saved in the cache have kept the same
2621 ac_cache_corrupted
=false
2622 for ac_var
in $ac_precious_vars; do
2623 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2624 eval ac_new_set
=\
$ac_env_${ac_var}_set
2625 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2626 eval ac_new_val
=\
$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted
=: ;;
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted
=: ;;
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w
=`echo x $ac_old_val`
2641 ac_new_val_w
=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted
=:
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\
$ac_old_val
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2660 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg
=$ac_var=$ac_new_val ;;
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2681 ac_cpp
='$CPP $CPPFLAGS'
2682 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2687 UNBOUND_VERSION_MAJOR
=1
2689 UNBOUND_VERSION_MINOR
=5
2691 UNBOUND_VERSION_MICRO
=1
2694 LIBUNBOUND_CURRENT
=5
2695 LIBUNBOUND_REVISION
=3
2704 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2709 # 1.4.0-snapshots had 1:5:0
2710 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2724 # and 1.4.13p1 and 1.4.13.p2
2726 # 1.4.15 had 3:0:1 # adds ub_version()
2731 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2734 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2737 # Current -- the number of the binary API that we're implementing
2738 # Revision -- which iteration of the implementation of the binary
2739 # API are we supplying?
2740 # Age -- How many previous binary API versions do we also
2743 # If we release a new version that does not change the binary API,
2744 # increment Revision.
2746 # If we release a new version that changes the binary API, but does
2747 # not break programs compiled against the old binary API, increment
2748 # Current and Age. Set Revision to 0, since this is the first
2749 # implementation of the new API.
2751 # Otherwise, we're changing the binary API and breaking bakward
2752 # compatibility with old binaries. Increment Current. Set Age to 0,
2753 # since we're backward compatible with no previous APIs. Set Revision
2761 ac_cpp
='$CPP $CPPFLAGS'
2762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_CC+:} false
; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC
="$CC" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_CC"; then
2806 # Extract the first word of "gcc", so it can be a program name with args.
2807 set dummy gcc
; ac_word
=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_CC
="gcc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_CC" = x
; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned
=yes ;;
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_CC+:} false
; then :
2864 $as_echo_n "(cached) " >&6
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC
="$CC" # Let the user override the test.
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 for ac_exec_ext
in '' $ac_executable_extensions; do
2875 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2898 if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args.
2900 set dummy cc
; ac_word
=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_CC+:} false
; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC
="$CC" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2918 ac_prog_rejected
=yes
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 if test $ac_prog_rejected = yes; then
2930 # We found a bogon in the path, so make sure we never use it.
2931 set dummy
$ac_cv_prog_CC
2933 if test $# != 0; then
2934 # We chose a different compiler from the bogus one.
2935 # However, it has the same basename, so the bogon will be chosen
2936 # first if we set CC to just the basename; use the full file name.
2938 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2944 if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 $as_echo "$CC" >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 for ac_prog
in cl.exe
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_CC+:} false
; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC
="$CC" # Let the user override the test.
2968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir
=.
2973 for ac_exec_ext
in '' $ac_executable_extensions; do
2974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988 $as_echo "$CC" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$CC" && break
2998 if test -z "$CC"; then
3000 for ac_prog
in cl.exe
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy
$ac_prog; ac_word
=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 for ac_exec_ext
in '' $ac_executable_extensions; do
3018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC
="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3039 test -n "$ac_ct_CC" && break
3042 if test "x$ac_ct_CC" = x
; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3049 ac_tool_warned
=yes ;;
3058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $?
"no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3063 # Provide some information about the compiler.
3064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3067 for ac_option
in --version -v -V -qversion; do
3068 { { ac_try
="$ac_compiler $ac_option >&5"
3070 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077 if test -s conftest.err; then
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3083 rm -f conftest.er1 conftest.err
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { { ac_try="$ac_link_default"
3123 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3124 *) ac_try_echo
=$ac_try;;
3126 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3137 for ac_file
in $ac_files ''
3139 test -f "$ac_file" || continue
3141 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3144 # We found the default executable, but exeext='' is most
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3150 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3162 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3167 if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.
$ac_ext >&5
3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 as_fn_error
77 "C compiler cannot create executables
3176 See \`config.log' for more details" "$LINENO" 5; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179 $as_echo "yes" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182 $as_echo_n "checking for C compiler default output file name... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 ac_exeext
=$ac_cv_exeext
3187 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3188 ac_clean_files
=$ac_clean_files_save
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3190 $as_echo_n "checking for suffix of executables... " >&6; }
3191 if { { ac_try
="$ac_link"
3193 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3203 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3206 for ac_file
in conftest.exe conftest conftest.
*; do
3207 test -f "$ac_file" || continue
3209 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3210 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3219 See \`config.log' for more details" "$LINENO" 5; }
3221 rm -f conftest conftest
$ac_cv_exeext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223 $as_echo "$ac_cv_exeext" >&6; }
3225 rm -f conftest.
$ac_ext
3226 EXEEXT
=$ac_cv_exeext
3228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3234 FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
3241 ac_clean_files
="$ac_clean_files conftest.out"
3242 # Check that the compiler produces executables we can run. If not, either
3243 # the compiler is broken, or we cross compile.
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245 $as_echo_n "checking whether we are cross compiling... " >&6; }
3246 if test "$cross_compiling" != yes; then
3247 { { ac_try
="$ac_link"
3249 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3261 *) ac_try_echo
=$ac_try;;
3263 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3271 if test "$cross_compiling" = maybe
; then
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error $?
"cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details" "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283 $as_echo "$cross_compiling" >&6; }
3285 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3286 ac_clean_files
=$ac_clean_files_save
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288 $as_echo_n "checking for suffix of object files... " >&6; }
3289 if ${ac_cv_objext+:} false
; then :
3290 $as_echo_n "(cached) " >&6
3292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 rm -f conftest.o conftest.obj
3304 if { { ac_try
="$ac_compile"
3306 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compile") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3330 See \
`config.log' for more details" "$LINENO" 5; }
3332 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335 $as_echo "$ac_cv_objext" >&6; }
3336 OBJEXT=$ac_cv_objext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340 if ${ac_cv_c_compiler_gnu+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3367 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3368 if test $ac_compiler_gnu = yes; then
3373 ac_test_CFLAGS=${CFLAGS+set}
3374 ac_save_CFLAGS=$CFLAGS
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3377 if ${ac_cv_prog_cc_g+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_c_werror_flag=$ac_save_c_werror_flag
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 if ac_fn_c_try_compile "$LINENO"; then :
3429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3437 $as_echo "$ac_cv_prog_cc_g" >&6; }
3438 if test "$ac_test_CFLAGS" = set; then
3439 CFLAGS=$ac_save_CFLAGS
3440 elif test $ac_cv_prog_cc_g = yes; then
3441 if test "$GCC" = yes; then
3447 if test "$GCC" = yes; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455 if ${ac_cv_prog_cc_c89+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 ac_cv_prog_cc_c89=no
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3479 s = g (p, va_arg (v,int));
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 rm -f conftest.$ac_ext
3527 case "x$ac_cv_prog_cc_c89" in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3557 # On Suns, sometimes $CPP names a directory.
3558 if test -n "$CPP" && test -d "$CPP"; then
3561 if test -z "$CPP"; then
3562 if ${ac_cv_prog_CPP+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 # Double quotes because CPP needs to be expanded
3566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3589 # Broken: fails on valid input.
3592 rm -f conftest.err conftest.i conftest.$ac_ext
3594 # OK, works on sane cases. Now check whether nonexistent headers
3595 # can be detected and how.
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: success on invalid input.
3604 # Passes both tests.
3608 rm -f conftest.err conftest.i conftest.$ac_ext
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.i conftest.err conftest.
$ac_ext
3613 if $ac_preproc_ok; then :
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3626 $as_echo "$CPP" >&6; }
3628 for ac_c_preproc_warn_flag
in '' yes
3630 # Use a header file that comes with gcc, so configuring glibc
3631 # with a fresh cross-compiler works.
3632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633 # <limits.h> exists even on freestanding compilers.
3634 # On the NeXT, cc -E runs the code through the compiler's parser,
3635 # not just through cpp. "Syntax error" is here to catch this case.
3636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3639 # include <limits.h>
3641 # include <assert.h>
3645 if ac_fn_c_try_cpp
"$LINENO"; then :
3648 # Broken: fails on valid input.
3651 rm -f conftest.err conftest.i conftest.
$ac_ext
3653 # OK, works on sane cases. Now check whether nonexistent headers
3654 # can be detected and how.
3655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657 #include <ac_nonexistent.h>
3659 if ac_fn_c_try_cpp
"$LINENO"; then :
3660 # Broken: success on invalid input.
3663 # Passes both tests.
3667 rm -f conftest.err conftest.i conftest.
$ac_ext
3670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3671 rm -f conftest.i conftest.err conftest.
$ac_ext
3672 if $ac_preproc_ok; then :
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details" "$LINENO" 5; }
3682 ac_cpp
='$CPP $CPPFLAGS'
3683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3690 if ${ac_cv_path_GREP+:} false
; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -z "$GREP"; then
3694 ac_path_GREP_found
=false
3695 # Loop through the user's path and test for each of PROGNAME-LIST
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3697 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_prog
in grep ggrep
; do
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3704 as_fn_executable_p
"$ac_path_GREP" || continue
3705 # Check for GNU ac_path_GREP and select it if it is found.
3706 # Check for GNU $ac_path_GREP
3707 case `"$ac_path_GREP" --version 2>&1` in
3709 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3712 $as_echo_n 0123456789 >"conftest.in"
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
3718 $as_echo 'GREP' >> "conftest.nl"
3719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3720 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3721 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_GREP
="$ac_path_GREP"
3725 ac_path_GREP_max
=$ac_count
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3730 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3733 $ac_path_GREP_found && break 3
3738 if test -z "$ac_cv_path_GREP"; then
3739 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3742 ac_cv_path_GREP
=$GREP
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3747 $as_echo "$ac_cv_path_GREP" >&6; }
3748 GREP
="$ac_cv_path_GREP"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3752 $as_echo_n "checking for egrep... " >&6; }
3753 if ${ac_cv_path_EGREP+:} false
; then :
3754 $as_echo_n "(cached) " >&6
3756 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3757 then ac_cv_path_EGREP
="$GREP -E"
3759 if test -z "$EGREP"; then
3760 ac_path_EGREP_found
=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3763 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3766 test -z "$as_dir" && as_dir
=.
3767 for ac_prog
in egrep; do
3768 for ac_exec_ext
in '' $ac_executable_extensions; do
3769 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3770 as_fn_executable_p
"$ac_path_EGREP" || continue
3771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773 case `"$ac_path_EGREP" --version 2>&1` in
3775 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3778 $as_echo_n 0123456789 >"conftest.in"
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 $as_echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3786 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3787 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP
="$ac_path_EGREP"
3791 ac_path_EGREP_max
=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3796 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3799 $ac_path_EGREP_found && break 3
3804 if test -z "$ac_cv_path_EGREP"; then
3805 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3808 ac_cv_path_EGREP
=$EGREP
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3814 $as_echo "$ac_cv_path_EGREP" >&6; }
3815 EGREP
="$ac_cv_path_EGREP"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3819 $as_echo_n "checking for ANSI C header files... " >&6; }
3820 if ${ac_cv_header_stdc+:} false
; then :
3821 $as_echo_n "(cached) " >&6
3823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3838 if ac_fn_c_try_compile
"$LINENO"; then :
3839 ac_cv_header_stdc
=yes
3841 ac_cv_header_stdc
=no
3843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3845 if test $ac_cv_header_stdc = yes; then
3846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "memchr" >/dev
/null
2>&1; then :
3856 ac_cv_header_stdc
=no
3862 if test $ac_cv_header_stdc = yes; then
3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "free" >/dev
/null
2>&1; then :
3873 ac_cv_header_stdc
=no
3879 if test $ac_cv_header_stdc = yes; then
3880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3881 if test "$cross_compiling" = yes; then :
3884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3892 # define ISLOWER(c) \
3893 (('a' <= (c) && (c) <= 'i') \
3894 || ('j' <= (c) && (c) <= 'r') \
3895 || ('s' <= (c) && (c) <= 'z'))
3896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3904 for (i = 0; i < 256; i++)
3905 if (XOR (islower (i), ISLOWER (i))
3906 || toupper (i) != TOUPPER (i))
3911 if ac_fn_c_try_run
"$LINENO"; then :
3914 ac_cv_header_stdc
=no
3916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3923 $as_echo "$ac_cv_header_stdc" >&6; }
3924 if test $ac_cv_header_stdc = yes; then
3926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3931 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3932 inttypes.h stdint.h unistd.h
3934 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3935 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3937 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3938 cat >>confdefs.h
<<_ACEOF
3939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3949 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3956 if test "$MINIX" = yes; then
3958 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3961 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3964 $as_echo "#define _MINIX 1" >>confdefs.h
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3970 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3971 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3972 $as_echo_n "(cached) " >&6
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3977 # define __EXTENSIONS__ 1
3978 $ac_includes_default
3987 if ac_fn_c_try_compile
"$LINENO"; then :
3988 ac_cv_safe_to_define___extensions__
=yes
3990 ac_cv_safe_to_define___extensions__
=no
3992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3995 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3996 test $ac_cv_safe_to_define___extensions__ = yes &&
3997 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3999 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4001 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4003 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4005 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4009 if test "$ac_cv_header_minix_config_h" = "yes"; then
4011 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4022 if uname
-s 2>&1 | grep MINGW32
>/dev
/null
; then on_mingw
="yes"
4024 if echo $target | grep mingw32
>/dev
/null
; then on_mingw
="yes"
4025 else on_mingw
="no"; fi
4029 # Determine configuration file
4030 # the eval is to evaluate shell expansion twice
4031 if test $on_mingw = "no"; then
4032 ub_conf_file
=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4034 ub_conf_file
="C:\\Program Files\\Unbound\\service.conf"
4037 # Check whether --with-conf_file was given.
4038 if test "${with_conf_file+set}" = set; then :
4039 withval
=$with_conf_file; ub_conf_file
="$withval"
4043 hdr_config
="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4046 cat >>confdefs.h
<<_ACEOF
4047 #define CONFIGFILE "$hdr_config"
4051 # Determine run, chroot directory and pidfile locations
4053 # Check whether --with-run-dir was given.
4054 if test "${with_run_dir+set}" = set; then :
4055 withval
=$with_run_dir; UNBOUND_RUN_DIR
="$withval"
4057 if test $on_mingw = no
; then
4058 UNBOUND_RUN_DIR
=`dirname "$ub_conf_file"`
4066 hdr_run
="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4069 cat >>confdefs.h
<<_ACEOF
4070 #define RUN_DIR "$hdr_run"
4075 # Check whether --with-chroot-dir was given.
4076 if test "${with_chroot_dir+set}" = set; then :
4077 withval
=$with_chroot_dir; UNBOUND_CHROOT_DIR
="$withval"
4079 if test $on_mingw = no
; then
4080 UNBOUND_CHROOT_DIR
="$UNBOUND_RUN_DIR"
4082 UNBOUND_CHROOT_DIR
=""
4088 hdr_chroot
="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4091 cat >>confdefs.h
<<_ACEOF
4092 #define CHROOT_DIR "$hdr_chroot"
4097 # Check whether --with-share-dir was given.
4098 if test "${with_share_dir+set}" = set; then :
4099 withval
=$with_share_dir; UNBOUND_SHARE_DIR
="$withval"
4101 UNBOUND_SHARE_DIR
="$UNBOUND_RUN_DIR"
4106 cat >>confdefs.h
<<_ACEOF
4107 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4112 # Check whether --with-pidfile was given.
4113 if test "${with_pidfile+set}" = set; then :
4114 withval
=$with_pidfile; UNBOUND_PIDFILE
="$withval"
4116 if test $on_mingw = no
; then
4117 UNBOUND_PIDFILE
="$UNBOUND_RUN_DIR/unbound.pid"
4125 hdr_pid
="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4128 cat >>confdefs.h
<<_ACEOF
4129 #define PIDFILE "$hdr_pid"
4134 # Check whether --with-rootkey-file was given.
4135 if test "${with_rootkey_file+set}" = set; then :
4136 withval
=$with_rootkey_file; UNBOUND_ROOTKEY_FILE
="$withval"
4138 if test $on_mingw = no
; then
4139 UNBOUND_ROOTKEY_FILE
="$UNBOUND_RUN_DIR/root.key"
4141 UNBOUND_ROOTKEY_FILE
="C:\\Program Files\\Unbound\\root.key"
4147 hdr_rkey
="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4150 cat >>confdefs.h
<<_ACEOF
4151 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4156 # Check whether --with-rootcert-file was given.
4157 if test "${with_rootcert_file+set}" = set; then :
4158 withval
=$with_rootcert_file; UNBOUND_ROOTCERT_FILE
="$withval"
4160 if test $on_mingw = no
; then
4161 UNBOUND_ROOTCERT_FILE
="$UNBOUND_RUN_DIR/icannbundle.pem"
4163 UNBOUND_ROOTCERT_FILE
="C:\\Program Files\\Unbound\\icannbundle.pem"
4169 hdr_rpem
="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4172 cat >>confdefs.h
<<_ACEOF
4173 #define ROOT_CERT_FILE "$hdr_rpem"
4178 # Check whether --with-username was given.
4179 if test "${with_username+set}" = set; then :
4180 withval
=$with_username; UNBOUND_USERNAME
="$withval"
4182 UNBOUND_USERNAME
="unbound"
4187 cat >>confdefs.h
<<_ACEOF
4188 #define UB_USERNAME "$UNBOUND_USERNAME"
4193 $as_echo "#define WINVER 0x0502" >>confdefs.h
4195 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/' `
4198 cat >>confdefs.h
<<_ACEOF
4199 #define RSRC_PACKAGE_VERSION $wnvs
4203 # Checks for typedefs, structures, and compiler characteristics.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4205 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4206 if ${ac_cv_c_const+:} false
; then :
4207 $as_echo_n "(cached) " >&6
4209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4217 /* Ultrix mips cc rejects this sort of thing. */
4218 typedef int charset[2];
4219 const charset cs = { 0, 0 };
4220 /* SunOS 4.1.1 cc rejects this. */
4221 char const *const *pcpcc;
4223 /* NEC SVR4.0.2 mips cc rejects this. */
4224 struct point {int x, y;};
4225 static struct point const zero = {0,0};
4226 /* AIX XL C 1.02.0.0 rejects this.
4227 It does not let you subtract one const X* pointer from another in
4228 an arm of an if-expression whose if-part is not a constant
4230 const char *g = "string";
4231 pcpcc = &g + (g ? g-g : 0);
4232 /* HPUX 7.0 cc rejects these. */
4234 ppc = (char**) pcpcc;
4235 pcpcc = (char const *const *) ppc;
4236 { /* SCO 3.2v4 cc rejects this sort of thing. */
4239 char const *s = 0 ? (char *) 0 : (char const *) 0;
4244 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4246 const int *foo = &x[0];
4249 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4250 typedef const int *iptr;
4254 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4255 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4256 struct s { int j; const int *ap[3]; } bx;
4257 struct s *b = &bx; b->j = 5;
4259 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4263 return !cs[0] && !zero.x;
4270 if ac_fn_c_try_compile
"$LINENO"; then :
4275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4278 $as_echo "$ac_cv_c_const" >&6; }
4279 if test $ac_cv_c_const = no
; then
4281 $as_echo "#define const /**/" >>confdefs.h
4286 ac_cpp
='$CPP $CPPFLAGS'
4287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4291 # allow user to override the -g -O2 flags.
4292 if test "x$CFLAGS" = "x" ; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4296 $as_echo_n "checking whether $CC supports -g... " >&6; }
4297 cache
=`echo g | sed 'y%.=/+-%___p_%'`
4298 if eval \
${cv_prog_cc_flag_$cache+:} false
; then :
4299 $as_echo_n "(cached) " >&6
4302 echo 'void f(void){}' >conftest.c
4303 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4304 eval "cv_prog_cc_flag_$cache=yes"
4306 eval "cv_prog_cc_flag_$cache=no"
4308 rm -f conftest conftest.o conftest.c
4312 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4327 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4328 cache
=`echo O2 | sed 'y%.=/+-%___p_%'`
4329 if eval \
${cv_prog_cc_flag_$cache+:} false
; then :
4330 $as_echo_n "(cached) " >&6
4333 echo 'void f(void){}' >conftest.c
4334 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4335 eval "cv_prog_cc_flag_$cache=yes"
4337 eval "cv_prog_cc_flag_$cache=no"
4339 rm -f conftest conftest.o conftest.c
4343 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 $as_echo "yes" >&6; }
4347 CFLAGS
="$CFLAGS -O2"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4357 ac_cpp
='$CPP $CPPFLAGS'
4358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4363 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_CC+:} false
; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC
="$CC" # Let the user override the test.
4372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir
=.
4377 for ac_exec_ext
in '' $ac_executable_extensions; do
4378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4400 if test -z "$ac_cv_prog_CC"; then
4402 # Extract the first word of "gcc", so it can be a program name with args.
4403 set dummy gcc
; ac_word
=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CC"; then
4410 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir
=.
4417 for ac_exec_ext
in '' $ac_executable_extensions; do
4418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_ac_ct_CC
="gcc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4430 if test -n "$ac_ct_CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4432 $as_echo "$ac_ct_CC" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4438 if test "x$ac_ct_CC" = x
; then
4441 case $cross_compiling:$ac_tool_warned in
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned
=yes ;;
4453 if test -z "$CC"; then
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4456 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_CC+:} false
; then :
4460 $as_echo_n "(cached) " >&6
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC
="$CC" # Let the user override the test.
4465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir
=.
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4494 if test -z "$CC"; then
4495 # Extract the first word of "cc", so it can be a program name with args.
4496 set dummy cc
; ac_word
=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_CC+:} false
; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$CC"; then
4503 ac_cv_prog_CC
="$CC" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4514 ac_prog_rejected
=yes
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 if test $ac_prog_rejected = yes; then
4526 # We found a bogon in the path, so make sure we never use it.
4527 set dummy
$ac_cv_prog_CC
4529 if test $# != 0; then
4530 # We chose a different compiler from the bogus one.
4531 # However, it has the same basename, so the bogon will be chosen
4532 # first if we set CC to just the basename; use the full file name.
4534 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4540 if test -n "$CC"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4542 $as_echo "$CC" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4550 if test -z "$CC"; then
4551 if test -n "$ac_tool_prefix"; then
4552 for ac_prog
in cl.exe
4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4555 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_CC+:} false
; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC
="$CC" # Let the user override the test.
4564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir
=.
4569 for ac_exec_ext
in '' $ac_executable_extensions; do
4570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 if test -n "$CC"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584 $as_echo "$CC" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$CC" && break
4594 if test -z "$CC"; then
4596 for ac_prog
in cl.exe
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy
$ac_prog; ac_word
=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 if test -n "$ac_ct_CC"; then
4606 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir
=.
4613 for ac_exec_ext
in '' $ac_executable_extensions; do
4614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_CC
="$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4626 if test -n "$ac_ct_CC"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628 $as_echo "$ac_ct_CC" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$ac_ct_CC" && break
4638 if test "x$ac_ct_CC" = x
; then
4641 case $cross_compiling:$ac_tool_warned in
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645 ac_tool_warned
=yes ;;
4654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4656 as_fn_error $?
"no acceptable C compiler found in \$PATH
4657 See \`config.log' for more details" "$LINENO" 5; }
4659 # Provide some information about the compiler.
4660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4663 for ac_option
in --version -v -V -qversion; do
4664 { { ac_try
="$ac_compiler $ac_option >&5"
4666 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4673 if test -s conftest.err; then
4675 ... rest of stderr output deleted ...
4676 10q' conftest.err >conftest.er1
4677 cat conftest.er1 >&5
4679 rm -f conftest.er1 conftest.err
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4686 if ${ac_cv_c_compiler_gnu+:} false; then :
4687 $as_echo_n "(cached) " >&6
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4703 if ac_fn_c_try_compile "$LINENO"; then :
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4713 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4714 if test $ac_compiler_gnu = yes; then
4719 ac_test_CFLAGS=${CFLAGS+set}
4720 ac_save_CFLAGS=$CFLAGS
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4722 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4723 if ${ac_cv_prog_cc_g+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_save_c_werror_flag=$ac_c_werror_flag
4727 ac_c_werror_flag=yes
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4741 if ac_fn_c_try_compile "$LINENO"; then :
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_c_werror_flag=$ac_save_c_werror_flag
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 if ac_fn_c_try_compile "$LINENO"; then :
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_c_werror_flag=$ac_save_c_werror_flag
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4783 $as_echo "$ac_cv_prog_cc_g" >&6; }
4784 if test "$ac_test_CFLAGS" = set; then
4785 CFLAGS=$ac_save_CFLAGS
4786 elif test $ac_cv_prog_cc_g = yes; then
4787 if test "$GCC" = yes; then
4793 if test "$GCC" = yes; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4800 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4801 if ${ac_cv_prog_cc_c89+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_cv_prog_cc_c89=no
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4812 struct buf { int x; };
4813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4814 static char *e (p, i)
4820 static char *f (char * (*g) (char **, int), char **p, ...)
4825 s = g (p, va_arg (v,int));
4830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4831 function prototypes and stuff, but not '\xHH' hex character constants.
4832 These don't provoke an error unfortunately, instead are silently treated
4833 as 'x'. The following induces an error, until -std is added to get
4834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4835 array size at least. It's necessary to write '\x00'==0 to get something
4836 that's true only with -std. */
4837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4840 inside strings and character constants. */
4842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4844 int test (int i, double x);
4845 struct s1 {int (*f) (int a);};
4846 struct s2 {int (*f) (double a);};
4847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4861 CC="$ac_save_CC $ac_arg"
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_prog_cc_c89=$ac_arg
4865 rm -f core conftest.err conftest.$ac_objext
4866 test "x$ac_cv_prog_cc_c89" != "xno" && break
4868 rm -f conftest.$ac_ext
4873 case "x$ac_cv_prog_cc_c89" in
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4876 $as_echo "none needed" >&6; } ;;
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4879 $as_echo "unsupported" >&6; } ;;
4881 CC="$CC $ac_cv_prog_cc_c89"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4885 if test "x$ac_cv_prog_cc_c89" != xno; then :
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4897 $as_echo_n "checking $CC dependency flag... " >&6; }
4898 echo 'void f(){}' >conftest.c
4899 if test "`$CC -MM conftest.c
2>&1`" = "conftest.o: conftest.c"; then
4902 if test "`$CC -xM1 conftest.c
2>&1`" = "conftest.o: conftest.c"; then
4905 DEPFLAG="-MM" # dunno do something
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4909 $as_echo "$DEPFLAG" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4917 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4918 cache=`echo Werror
| sed 'y%.=/+-%___p_%'`
4919 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4920 $as_echo_n "(cached) " >&6
4923 echo 'void f(void){}' >conftest.c
4924 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c
2>&1`"; then
4925 eval "cv_prog_cc_flag_$cache=yes"
4927 eval "cv_prog_cc_flag_$cache=no"
4929 rm -f conftest conftest.o conftest.c
4933 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4948 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4949 cache=`echo Wall
| sed 'y%.=/+-%___p_%'`
4950 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4951 $as_echo_n "(cached) " >&6
4954 echo 'void f(void){}' >conftest.c
4955 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c
2>&1`"; then
4956 eval "cv_prog_cc_flag_$cache=yes"
4958 eval "cv_prog_cc_flag_$cache=no"
4960 rm -f conftest conftest.o conftest.c
4964 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4968 ERRFLAG="$ERRFLAG -Wall"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971 $as_echo "no" >&6; }
4973 ERRFLAG="$ERRFLAG -errfmt"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4981 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4982 cache=`echo std
=c99
| sed 'y%.=/+-%___p_%'`
4983 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4984 $as_echo_n "(cached) " >&6
4987 echo 'void f(void){}' >conftest.c
4988 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99
-c conftest.c
2>&1`"; then
4989 eval "cv_prog_cc_flag_$cache=yes"
4991 eval "cv_prog_cc_flag_$cache=no"
4993 rm -f conftest conftest.o conftest.c
4997 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5012 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5013 cache=`echo xc99
| sed 'y%.=/+-%___p_%'`
5014 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5015 $as_echo_n "(cached) " >&6
5018 echo 'void f(void){}' >conftest.c
5019 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c
2>&1`"; then
5020 eval "cv_prog_cc_flag_$cache=yes"
5022 eval "cv_prog_cc_flag_$cache=no"
5024 rm -f conftest conftest.o conftest.c
5028 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5030 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5041 for ac_header in getopt.h time.h
5043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5046 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5047 cat >>confdefs.h <<_ACEOF
5048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5060 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5061 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5062 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5063 $as_echo_n "(cached) " >&6
5067 #include "confdefs.h"
5070 #include <sys/time.h>
5076 #ifdef HAVE_GETOPT_H
5087 const char* str = NULL;
5089 msg.msg_control = 0;
5090 t = ctime_r(&time, buf);
5093 a = getopt(2, opts, "a");
5095 str = gai_strerror(0);
5096 if(str && t && tv.tv_usec && msg.msg_control)
5101 echo 'void f(){}' >>conftest.c
5102 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5103 eval "cv_prog_cc_flag_needed_$cache=no"
5106 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`"; then
5107 eval "cv_prog_cc_flag_needed_$cache=yes"
5109 eval "cv_prog_cc_flag_needed_$cache=fail"
5110 #echo 'Test with flag fails too!'
5112 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5113 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`
5118 rm -f conftest conftest.c conftest.o
5122 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124 $as_echo "yes" >&6; }
5126 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
5128 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 #echo 'Test with flag is no!'
5133 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5134 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5140 $as_echo "failed" >&6; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5151 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5152 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5153 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5154 $as_echo_n "(cached) " >&6
5158 #include "confdefs.h"
5161 #include <sys/time.h>
5167 #ifdef HAVE_GETOPT_H
5178 const char* str = NULL;
5180 msg.msg_control = 0;
5181 t = ctime_r(&time, buf);
5184 a = getopt(2, opts, "a");
5186 str = gai_strerror(0);
5187 if(str && t && tv.tv_usec && msg.msg_control)
5192 echo 'void f(){}' >>conftest.c
5193 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5194 eval "cv_prog_cc_flag_needed_$cache=no"
5197 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`"; then
5198 eval "cv_prog_cc_flag_needed_$cache=yes"
5200 eval "cv_prog_cc_flag_needed_$cache=fail"
5201 #echo 'Test with flag fails too!'
5203 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5204 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`
5209 rm -f conftest conftest.c conftest.o
5213 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5217 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5219 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 #echo 'Test with flag is no!'
5224 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5225 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c
2>&1`
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5231 $as_echo "failed" >&6; }
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5242 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5243 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5244 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5245 $as_echo_n "(cached) " >&6
5249 #include <stdbool.h>
5256 echo 'void f(){}' >>conftest.c
5257 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5258 eval "cv_prog_cc_flag_needed_$cache=no"
5261 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c
2>&1`"; then
5262 eval "cv_prog_cc_flag_needed_$cache=yes"
5264 eval "cv_prog_cc_flag_needed_$cache=fail"
5265 #echo 'Test with flag fails too!'
5267 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5268 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c
2>&1`
5273 rm -f conftest conftest.c conftest.o
5277 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5281 CFLAGS="$CFLAGS $C99FLAG"
5283 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 #echo 'Test with flag is no!'
5288 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5289 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c
2>&1`
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5295 $as_echo "failed" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5306 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5308 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5309 $as_echo_n "(cached) " >&6
5321 echo 'void f(){}' >>conftest.c
5322 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5323 eval "cv_prog_cc_flag_needed_$cache=no"
5326 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c
2>&1`"; then
5327 eval "cv_prog_cc_flag_needed_$cache=yes"
5329 eval "cv_prog_cc_flag_needed_$cache=fail"
5330 #echo 'Test with flag fails too!'
5332 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5333 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c
2>&1`
5338 rm -f conftest conftest.c conftest.o
5342 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5346 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5348 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 #echo 'Test with flag is no!'
5353 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5354 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c
2>&1`
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5360 $as_echo "failed" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5371 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5373 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5374 $as_echo_n "(cached) " >&6
5378 #include <netinet/in.h>
5381 struct in6_pktinfo inf;
5382 int a = (int)sizeof(inf);
5386 echo 'void f(){}' >>conftest.c
5387 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5388 eval "cv_prog_cc_flag_needed_$cache=no"
5391 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c
2>&1`"; then
5392 eval "cv_prog_cc_flag_needed_$cache=yes"
5394 eval "cv_prog_cc_flag_needed_$cache=fail"
5395 #echo 'Test with flag fails too!'
5397 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5398 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c
2>&1`
5403 rm -f conftest conftest.c conftest.o
5407 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409 $as_echo "yes" >&6; }
5411 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5413 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 #echo 'Test with flag is no!'
5418 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5419 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c
2>&1`
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5425 $as_echo "failed" >&6; }
5432 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5433 # is not available at all. -D_FRSRESGID is to make this check unique.
5434 # otherwise we would get the previous cached result.
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5439 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5440 cache=_D_GNU_SOURCE__D_FRSRESGID
5441 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5442 $as_echo_n "(cached) " >&6
5449 int a = setresgid(0,0,0);
5450 a = setresuid(0,0,0);
5454 echo 'void f(){}' >>conftest.c
5455 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5456 eval "cv_prog_cc_flag_needed_$cache=no"
5459 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c
2>&1`"; then
5460 eval "cv_prog_cc_flag_needed_$cache=yes"
5462 eval "cv_prog_cc_flag_needed_$cache=fail"
5463 #echo 'Test with flag fails too!'
5465 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5466 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c
2>&1`
5471 rm -f conftest conftest.c conftest.o
5475 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5477 $as_echo "yes" >&6; }
5479 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5481 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 #echo 'Test with flag is no!'
5486 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5487 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c
2>&1`
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5493 $as_echo "failed" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5504 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5505 cache=_D_POSIX_C_SOURCE_200112
5506 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5507 $as_echo_n "(cached) " >&6
5511 #include "confdefs.h"
5522 const char* str = NULL;
5523 t = ctime_r(&time, buf);
5524 str = gai_strerror(0);
5530 echo 'void f(){}' >>conftest.c
5531 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5532 eval "cv_prog_cc_flag_needed_$cache=no"
5535 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c
2>&1`"; then
5536 eval "cv_prog_cc_flag_needed_$cache=yes"
5538 eval "cv_prog_cc_flag_needed_$cache=fail"
5539 #echo 'Test with flag fails too!'
5541 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5542 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c
2>&1`
5547 rm -f conftest conftest.c conftest.o
5551 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5553 $as_echo "yes" >&6; }
5555 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5557 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 #echo 'Test with flag is no!'
5562 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5563 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c
2>&1`
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5569 $as_echo "failed" >&6; }
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5580 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5581 cache=_D__EXTENSIONS__
5582 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5583 $as_echo_n "(cached) " >&6
5587 #include "confdefs.h"
5590 #include <sys/time.h>
5595 #ifdef HAVE_GETOPT_H
5605 a = getopt(2, opts, "a");
5612 echo 'void f(){}' >>conftest.c
5613 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c
2>&1`"; then
5614 eval "cv_prog_cc_flag_needed_$cache=no"
5617 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c
2>&1`"; then
5618 eval "cv_prog_cc_flag_needed_$cache=yes"
5620 eval "cv_prog_cc_flag_needed_$cache=fail"
5621 #echo 'Test with flag fails too!'
5623 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5624 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c
2>&1`
5629 rm -f conftest conftest.c conftest.o
5633 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5635 $as_echo "yes" >&6; }
5637 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5639 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 #echo 'Test with flag is no!'
5644 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5645 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c
2>&1`
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5651 $as_echo "failed" >&6; }
5660 # debug mode flags warnings
5661 # Check whether --enable-checking was given.
5662 if test "${enable_checking+set}" = set; then :
5663 enableval=$enable_checking;
5666 # Check whether --enable-debug was given.
5667 if test "${enable_debug+set}" = set; then :
5668 enableval=$enable_debug;
5671 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5672 else debug_enabled="$enable_checking"; fi
5674 case "$debug_enabled" in
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5679 $as_echo_n "checking whether $CC supports -W... " >&6; }
5680 cache=`echo W
| sed 'y%.=/+-%___p_%'`
5681 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5682 $as_echo_n "(cached) " >&6
5685 echo 'void f(void){}' >conftest.c
5686 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c
2>&1`"; then
5687 eval "cv_prog_cc_flag_$cache=yes"
5689 eval "cv_prog_cc_flag_$cache=no"
5691 rm -f conftest conftest.o conftest.c
5695 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5710 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5711 cache=`echo Wall
| sed 'y%.=/+-%___p_%'`
5712 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5713 $as_echo_n "(cached) " >&6
5716 echo 'void f(void){}' >conftest.c
5717 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c
2>&1`"; then
5718 eval "cv_prog_cc_flag_$cache=yes"
5720 eval "cv_prog_cc_flag_$cache=no"
5722 rm -f conftest conftest.o conftest.c
5726 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728 $as_echo "yes" >&6; }
5730 CFLAGS="$CFLAGS -Wall"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5741 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5742 cache=`echo Wextra
| sed 'y%.=/+-%___p_%'`
5743 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5744 $as_echo_n "(cached) " >&6
5747 echo 'void f(void){}' >conftest.c
5748 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c
2>&1`"; then
5749 eval "cv_prog_cc_flag_$cache=yes"
5751 eval "cv_prog_cc_flag_$cache=no"
5753 rm -f conftest conftest.o conftest.c
5757 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5761 CFLAGS="$CFLAGS -Wextra"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5772 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5773 cache=`echo Wdeclaration
-after-statement | sed 'y%.=/+-%___p_%'`
5774 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5775 $as_echo_n "(cached) " >&6
5778 echo 'void f(void){}' >conftest.c
5779 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c
2>&1`"; then
5780 eval "cv_prog_cc_flag_$cache=yes"
5782 eval "cv_prog_cc_flag_$cache=no"
5784 rm -f conftest conftest.o conftest.c
5788 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5792 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5801 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5809 # Check whether --enable-flto was given.
5810 if test "${enable_flto+set}" = set; then :
5811 enableval=$enable_flto;
5814 if test "x$enable_flto" != "xno"; then :
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5817 $as_echo_n "checking if $CC supports -flto... " >&6; }
5819 CFLAGS="$CFLAGS -flto"
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5831 if ac_fn_c_try_link "$LINENO"; then :
5833 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839 $as_echo "yes" >&6; }
5841 rm -f conftest conftest.c conftest.o
5844 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5847 rm -f core conftest.err conftest.$ac_objext \
5848 conftest$ac_exeext conftest.$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5854 $as_echo_n "checking for inline... " >&6; }
5855 if ${ac_cv_c_inline+:} false; then :
5856 $as_echo_n "(cached) " >&6
5859 for ac_kw in inline __inline__ __inline; do
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5864 static $ac_kw foo_t static_foo () {return 0; }
5865 $ac_kw foo_t foo () {return 0; }
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 ac_cv_c_inline=$ac_kw
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 test "$ac_cv_c_inline" != no && break
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5878 $as_echo "$ac_cv_c_inline" >&6; }
5880 case $ac_cv_c_inline in
5883 case $ac_cv_c_inline in
5885 *) ac_val=$ac_cv_c_inline;;
5887 cat >>confdefs.h <<_ACEOF
5889 #define inline $ac_val
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5897 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5898 if ${ac_cv_c_format_attribute+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 ac_cv_c_format_attribute=no
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5906 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ac_cv_c_format_attribute="yes"
5921 ac_cv_c_format_attribute="no"
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5929 $as_echo "$ac_cv_c_format_attribute" >&6; }
5930 if test $ac_cv_c_format_attribute = yes; then
5932 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5938 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5939 if ${ac_cv_c_unused_attribute+:} false; then :
5940 $as_echo_n "(cached) " >&6
5942 ac_cv_c_unused_attribute=no
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5946 void f (char *u __attribute__((unused)));
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 ac_cv_c_unused_attribute="yes"
5961 ac_cv_c_unused_attribute="no"
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5971 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5972 if test $ac_cv_c_unused_attribute = yes; then
5974 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5979 if test "$srcdir" != "."; then
5980 CPPFLAGS="$CPPFLAGS -I$srcdir"
5985 for ac_prog in flex lex
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988 set dummy $ac_prog; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_LEX+:} false; then :
5992 $as_echo_n "(cached) " >&6
5994 if test -n "$LEX"; then
5995 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_LEX="$ac_prog"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 if test -n "$LEX"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6017 $as_echo "$LEX" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6024 test -n "$LEX" && break
6026 test -n "$LEX" || LEX=":"
6028 if test "x$LEX" != "x:"; then
6029 cat >conftest.l <<_ACEOF
6035 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6036 yyless ((input () != 0)); }
6037 f { unput (yytext[0]); }
6038 . { BEGIN INITIAL; }
6040 #ifdef YYTEXT_POINTER
6041 extern char *yytext;
6046 return ! yylex () + ! yywrap ();
6049 { { ac_try="$LEX conftest.l"
6051 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6052 *) ac_try_echo
=$ac_try;;
6054 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6055 $as_echo "$ac_try_echo"; } >&5
6056 (eval "$LEX conftest.l") 2>&5
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6061 $as_echo_n "checking lex output file root... " >&6; }
6062 if ${ac_cv_prog_lex_root+:} false
; then :
6063 $as_echo_n "(cached) " >&6
6066 if test -f lex.yy.c
; then
6067 ac_cv_prog_lex_root
=lex.yy
6068 elif test -f lexyy.c
; then
6069 ac_cv_prog_lex_root
=lexyy
6071 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6075 $as_echo "$ac_cv_prog_lex_root" >&6; }
6076 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
6078 if test -z "${LEXLIB+set}"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6080 $as_echo_n "checking lex library... " >&6; }
6081 if ${ac_cv_lib_lex+:} false
; then :
6082 $as_echo_n "(cached) " >&6
6086 ac_cv_lib_lex
='none needed'
6087 for ac_lib
in '' -lfl -ll; do
6088 LIBS
="$ac_lib $ac_save_LIBS"
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 `cat $LEX_OUTPUT_ROOT.c`
6093 if ac_fn_c_try_link
"$LINENO"; then :
6094 ac_cv_lib_lex
=$ac_lib
6096 rm -f core conftest.err conftest.
$ac_objext \
6097 conftest
$ac_exeext conftest.
$ac_ext
6098 test "$ac_cv_lib_lex" != 'none needed' && break
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6104 $as_echo "$ac_cv_lib_lex" >&6; }
6105 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6110 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6111 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
6112 $as_echo_n "(cached) " >&6
6114 # POSIX says lex can declare yytext either as a pointer or an array; the
6115 # default is implementation-dependent. Figure out which it is, since
6116 # not all implementations provide the %pointer and %array declarations.
6117 ac_cv_prog_lex_yytext_pointer
=no
6119 LIBS
="$LEXLIB $ac_save_LIBS"
6120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6123 #define YYTEXT_POINTER 1
6124 `cat $LEX_OUTPUT_ROOT.c`
6126 if ac_fn_c_try_link
"$LINENO"; then :
6127 ac_cv_prog_lex_yytext_pointer
=yes
6129 rm -f core conftest.err conftest.
$ac_objext \
6130 conftest
$ac_exeext conftest.
$ac_ext
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6135 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6136 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6138 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6141 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6146 $as_echo_n "checking for yylex_destroy... " >&6; }
6147 if echo %% | $LEX -t 2>&1 | grep yylex_destroy
>/dev
/null
2>&1; then
6149 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6152 $as_echo "yes" >&6; }
6153 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }; fi
6156 for ac_prog
in 'bison -y' byacc
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy
$ac_prog; ac_word
=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_YACC+:} false
; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$YACC"; then
6166 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir
=.
6173 for ac_exec_ext
in '' $ac_executable_extensions; do
6174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_YACC
="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 YACC
=$ac_cv_prog_YACC
6186 if test -n "$YACC"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6188 $as_echo "$YACC" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$YACC" && break
6197 test -n "$YACC" || YACC
="yacc"
6199 # Extract the first word of "doxygen", so it can be a program name with args.
6200 set dummy doxygen
; ac_word
=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if ${ac_cv_prog_doxygen+:} false
; then :
6204 $as_echo_n "(cached) " >&6
6206 if test -n "$doxygen"; then
6207 ac_cv_prog_doxygen
="$doxygen" # Let the user override the test.
6209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6213 test -z "$as_dir" && as_dir
=.
6214 for ac_exec_ext
in '' $ac_executable_extensions; do
6215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6216 ac_cv_prog_doxygen
="doxygen"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 doxygen
=$ac_cv_prog_doxygen
6227 if test -n "$doxygen"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6229 $as_echo "$doxygen" >&6; }
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6238 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_STRIP+:} false
; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$STRIP"; then
6245 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir
=.
6252 for ac_exec_ext
in '' $ac_executable_extensions; do
6253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 STRIP
=$ac_cv_prog_STRIP
6265 if test -n "$STRIP"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6267 $as_echo "$STRIP" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6275 if test -z "$ac_cv_prog_STRIP"; then
6277 # Extract the first word of "strip", so it can be a program name with args.
6278 set dummy strip
; ac_word
=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$ac_ct_STRIP"; then
6285 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir
=.
6292 for ac_exec_ext
in '' $ac_executable_extensions; do
6293 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_ac_ct_STRIP
="strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6305 if test -n "$ac_ct_STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6307 $as_echo "$ac_ct_STRIP" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6313 if test "x$ac_ct_STRIP" = x
; then
6316 case $cross_compiling:$ac_tool_warned in
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned
=yes ;;
6325 STRIP
="$ac_cv_prog_STRIP"
6329 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6330 if test -f "$ac_dir/install-sh"; then
6332 ac_install_sh
="$ac_aux_dir/install-sh -c"
6334 elif test -f "$ac_dir/install.sh"; then
6336 ac_install_sh
="$ac_aux_dir/install.sh -c"
6338 elif test -f "$ac_dir/shtool"; then
6340 ac_install_sh
="$ac_aux_dir/shtool install -c"
6344 if test -z "$ac_aux_dir"; then
6345 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6348 # These three variables are undocumented and unsupported,
6349 # and are intended to be withdrawn in a future Autoconf release.
6350 # They can cause serious problems if a builder's source tree is in a directory
6351 # whose full name contains unusual characters.
6352 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6353 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6354 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6357 # Make sure we can run config.sub.
6358 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
6359 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6362 $as_echo_n "checking build system type... " >&6; }
6363 if ${ac_cv_build+:} false
; then :
6364 $as_echo_n "(cached) " >&6
6366 ac_build_alias
=$build_alias
6367 test "x$ac_build_alias" = x
&&
6368 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
6369 test "x$ac_build_alias" = x
&&
6370 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
6371 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6372 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6376 $as_echo "$ac_cv_build" >&6; }
6377 case $ac_cv_build in
6379 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
6382 ac_save_IFS
=$IFS; IFS
='-'
6388 # Remember, the first character of IFS is used to create $*,
6389 # except with old shells:
6392 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6396 $as_echo_n "checking host system type... " >&6; }
6397 if ${ac_cv_host+:} false
; then :
6398 $as_echo_n "(cached) " >&6
6400 if test "x$host_alias" = x
; then
6401 ac_cv_host
=$ac_cv_build
6403 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6404 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6409 $as_echo "$ac_cv_host" >&6; }
6412 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
6415 ac_save_IFS
=$IFS; IFS
='-'
6421 # Remember, the first character of IFS is used to create $*,
6422 # except with old shells:
6425 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6429 # skip these tests, we do not need them.
6438 # always use ./libtool unless override from commandline (libtool=mylibtool)
6439 if test -z "$libtool"; then
6443 # avoid libtool max commandline length test on systems that fork slowly.
6445 if echo "$host_os" | grep "sunos4" >/dev
/null
; then
6446 lt_cv_sys_max_cmd_len
=32750;
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_path_AR+:} false
; then :
6454 $as_echo_n "(cached) " >&6
6458 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
6461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6465 test -z "$as_dir" && as_dir
=.
6466 for ac_exec_ext
in '' $ac_executable_extensions; do
6467 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 if test -n "$AR"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6482 $as_echo "$AR" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6490 if test -z "$ac_cv_path_AR"; then
6492 # Extract the first word of "ar", so it can be a program name with args.
6493 set dummy
ar; ac_word
=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_path_ac_pt_AR+:} false
; then :
6497 $as_echo_n "(cached) " >&6
6501 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
6504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir
=.
6509 for ac_exec_ext
in '' $ac_executable_extensions; do
6510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6511 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 ac_pt_AR
=$ac_cv_path_ac_pt_AR
6523 if test -n "$ac_pt_AR"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6525 $as_echo "$ac_pt_AR" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6531 if test "x$ac_pt_AR" = x
; then
6534 case $cross_compiling:$ac_tool_warned in
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538 ac_tool_warned
=yes ;;
6546 if test $AR = false
; then
6547 as_fn_error $?
"Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6558 macro_version
='2.4.2'
6559 macro_revision
='1.3337'
6573 ltmain
="$ac_aux_dir/ltmain.sh"
6575 # Backslashify metacharacters that are still active within
6576 # double-quoted strings.
6577 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6579 # Same as above, but do not quote variable references.
6580 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6582 # Sed substitution to delay expansion of an escaped shell variable in a
6583 # double_quote_subst'ed string.
6584 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6586 # Sed substitution to delay expansion of an escaped single quote.
6587 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6589 # Sed substitution to avoid accidental globbing in evaled expressions
6590 no_glob_subst
='s/\*/\\\*/g'
6592 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6597 $as_echo_n "checking how to print strings... " >&6; }
6598 # Test print first, because it will be a builtin if present.
6599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6605 # Use this function as a fallback that always works.
6606 func_fallback_echo ()
6608 eval 'cat <<_LTECHO_EOF
6612 ECHO='func_fallback_echo
'
6615 # func_echo_all arg...
6616 # Invoke $ECHO with all args, space-separated.
6623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6624 $as_echo "printf" >&6; } ;;
6625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6626 $as_echo "print -r" >&6; } ;;
6627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6628 $as_echo "cat" >&6; } ;;
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6646 if ${ac_cv_path_SED+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6650 for ac_i in 1 2 3 4 5 6 7; do
6651 ac_script="$ac_script$as_nl$ac_script"
6653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6654 { ac_script=; unset ac_script;}
6655 if test -z "$SED"; then
6656 ac_path_SED_found=false
6657 # Loop through the user's path and
test for each of PROGNAME
-LIST
6658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir
=.
6663 for ac_prog
in sed gsed
; do
6664 for ac_exec_ext
in '' $ac_executable_extensions; do
6665 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6666 as_fn_executable_p
"$ac_path_SED" || continue
6667 # Check for GNU ac_path_SED and select it if it is found.
6668 # Check for GNU $ac_path_SED
6669 case `"$ac_path_SED" --version 2>&1` in
6671 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6674 $as_echo_n 0123456789 >"conftest.in"
6677 cat "conftest.in" "conftest.in" >"conftest.tmp"
6678 mv "conftest.tmp" "conftest.in"
6679 cp "conftest.in" "conftest.nl"
6680 $as_echo '' >> "conftest.nl"
6681 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6683 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6684 if test $ac_count -gt ${ac_path_SED_max-0}; then
6685 # Best one so far, save it but keep looking for a better one
6686 ac_cv_path_SED
="$ac_path_SED"
6687 ac_path_SED_max
=$ac_count
6689 # 10*(2^10) chars as input seems more than enough
6690 test $ac_count -gt 10 && break
6692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6695 $ac_path_SED_found && break 3
6700 if test -z "$ac_cv_path_SED"; then
6701 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6709 $as_echo "$ac_cv_path_SED" >&6; }
6710 SED
="$ac_cv_path_SED"
6713 test -z "$SED" && SED
=sed
6714 Xsed
="$SED -e 1s/^X//"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6727 $as_echo_n "checking for fgrep... " >&6; }
6728 if ${ac_cv_path_FGREP+:} false
; then :
6729 $as_echo_n "(cached) " >&6
6731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
6732 then ac_cv_path_FGREP
="$GREP -F"
6734 if test -z "$FGREP"; then
6735 ac_path_FGREP_found
=false
6736 # Loop through the user's path and test for each of PROGNAME-LIST
6737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6738 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6741 test -z "$as_dir" && as_dir
=.
6742 for ac_prog
in fgrep
; do
6743 for ac_exec_ext
in '' $ac_executable_extensions; do
6744 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6745 as_fn_executable_p
"$ac_path_FGREP" || continue
6746 # Check for GNU ac_path_FGREP and select it if it is found.
6747 # Check for GNU $ac_path_FGREP
6748 case `"$ac_path_FGREP" --version 2>&1` in
6750 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6753 $as_echo_n 0123456789 >"conftest.in"
6756 cat "conftest.in" "conftest.in" >"conftest.tmp"
6757 mv "conftest.tmp" "conftest.in"
6758 cp "conftest.in" "conftest.nl"
6759 $as_echo 'FGREP' >> "conftest.nl"
6760 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6761 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6762 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6764 # Best one so far, save it but keep looking for a better one
6765 ac_cv_path_FGREP
="$ac_path_FGREP"
6766 ac_path_FGREP_max
=$ac_count
6768 # 10*(2^10) chars as input seems more than enough
6769 test $ac_count -gt 10 && break
6771 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6774 $ac_path_FGREP_found && break 3
6779 if test -z "$ac_cv_path_FGREP"; then
6780 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6783 ac_cv_path_FGREP
=$FGREP
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6789 $as_echo "$ac_cv_path_FGREP" >&6; }
6790 FGREP
="$ac_cv_path_FGREP"
6793 test -z "$GREP" && GREP
=grep
6813 # Check whether --with-gnu-ld was given.
6814 if test "${with_gnu_ld+set}" = set; then :
6815 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
6821 if test "$GCC" = yes; then
6822 # Check if gcc -print-prog-name=ld gives a path.
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6824 $as_echo_n "checking for ld used by $CC... " >&6; }
6827 # gcc leaves a trailing carriage return which upsets mingw
6828 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6830 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6833 # Accept absolute paths.
6835 re_direlt
='/[^/][^/]*/\.\./'
6836 # Canonicalize the pathname of ld
6837 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
6839 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6841 test -z "$LD" && LD
="$ac_prog"
6844 # If it fails, then pretend we aren't using GCC.
6848 # If it is relative, then search for the first ld in PATH.
6852 elif test "$with_gnu_ld" = yes; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6854 $as_echo_n "checking for GNU ld... " >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6857 $as_echo_n "checking for non-GNU ld... " >&6; }
6859 if ${lt_cv_path_LD+:} false
; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -z "$LD"; then
6863 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6864 for ac_dir
in $PATH; do
6866 test -z "$ac_dir" && ac_dir
=.
6867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6868 lt_cv_path_LD
="$ac_dir/$ac_prog"
6869 # Check to see if the program is GNU ld. I'd rather use --version,
6870 # but apparently some variants of GNU ld only accept -v.
6871 # Break only if it was the GNU/non-GNU ld that we prefer.
6872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6873 *GNU
* | *'with BFD'*)
6874 test "$with_gnu_ld" != no
&& break
6877 test "$with_gnu_ld" != yes && break
6884 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6889 if test -n "$LD"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6891 $as_echo "$LD" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6896 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6899 if ${lt_cv_prog_gnu_ld+:} false
; then :
6900 $as_echo_n "(cached) " >&6
6902 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6903 case `$LD -v 2>&1 </dev/null` in
6904 *GNU
* | *'with BFD'*)
6905 lt_cv_prog_gnu_ld
=yes
6908 lt_cv_prog_gnu_ld
=no
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6913 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6914 with_gnu_ld
=$lt_cv_prog_gnu_ld
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6925 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6926 if ${lt_cv_path_NM+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6929 if test -n "$NM"; then
6930 # Let the user override the test.
6933 lt_nm_to_check
="${ac_tool_prefix}nm"
6934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6935 lt_nm_to_check
="$lt_nm_to_check nm"
6937 for lt_tmp_nm
in $lt_nm_to_check; do
6938 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6939 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6941 test -z "$ac_dir" && ac_dir
=.
6942 tmp_nm
="$ac_dir/$lt_tmp_nm"
6943 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6944 # Check to see if the nm accepts a BSD-compat flag.
6945 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6946 # nm: unknown option "B" ignored
6947 # Tru64's nm complains that /dev/null is an invalid object file
6948 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6949 */dev
/null
* | *'Invalid file or object type'*)
6950 lt_cv_path_NM
="$tmp_nm -B"
6954 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6956 lt_cv_path_NM
="$tmp_nm -p"
6960 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6961 continue # so that we can try to find one that supports BSD flags
6970 : ${lt_cv_path_NM=no}
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6974 $as_echo "$lt_cv_path_NM" >&6; }
6975 if test "$lt_cv_path_NM" != "no"; then
6978 # Didn't find any BSD compatible name lister, look for dumpbin.
6979 if test -n "$DUMPBIN"; then :
6980 # Let the user override the test.
6982 if test -n "$ac_tool_prefix"; then
6983 for ac_prog
in dumpbin
"link -dump"
6985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6986 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6992 if test -n "$DUMPBIN"; then
6993 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir
=.
7000 for ac_exec_ext
in '' $ac_executable_extensions; do
7001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 DUMPBIN
=$ac_cv_prog_DUMPBIN
7013 if test -n "$DUMPBIN"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7015 $as_echo "$DUMPBIN" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7022 test -n "$DUMPBIN" && break
7025 if test -z "$DUMPBIN"; then
7026 ac_ct_DUMPBIN
=$DUMPBIN
7027 for ac_prog
in dumpbin
"link -dump"
7029 # Extract the first word of "$ac_prog", so it can be a program name with args.
7030 set dummy
$ac_prog; ac_word
=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7036 if test -n "$ac_ct_DUMPBIN"; then
7037 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
7039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir
=.
7044 for ac_exec_ext
in '' $ac_executable_extensions; do
7045 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
7057 if test -n "$ac_ct_DUMPBIN"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7059 $as_echo "$ac_ct_DUMPBIN" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 test -n "$ac_ct_DUMPBIN" && break
7069 if test "x$ac_ct_DUMPBIN" = x
; then
7072 case $cross_compiling:$ac_tool_warned in
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned
=yes ;;
7078 DUMPBIN
=$ac_ct_DUMPBIN
7082 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7084 DUMPBIN
="$DUMPBIN -symbols"
7092 if test "$DUMPBIN" != ":"; then
7096 test -z "$NM" && NM
=nm
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7104 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7105 if ${lt_cv_nm_interface+:} false
; then :
7106 $as_echo_n "(cached) " >&6
7108 lt_cv_nm_interface
="BSD nm"
7109 echo "int some_variable = 0;" > conftest.
$ac_ext
7110 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7111 (eval "$ac_compile" 2>conftest.err
)
7112 cat conftest.err
>&5
7113 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7114 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
7115 cat conftest.err
>&5
7116 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7117 cat conftest.out
>&5
7118 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
7119 lt_cv_nm_interface
="MS dumpbin"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7124 $as_echo "$lt_cv_nm_interface" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7127 $as_echo_n "checking whether ln -s works... " >&6; }
7129 if test "$LN_S" = "ln -s"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7131 $as_echo "yes" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7134 $as_echo "no, using $LN_S" >&6; }
7137 # find the maximum length of command line arguments
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7139 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7140 if ${lt_cv_sys_max_cmd_len+:} false
; then :
7141 $as_echo_n "(cached) " >&6
7148 # On DJGPP, this test can blow up pretty badly due to problems in libc
7149 # (any single argument exceeding 2000 bytes causes a buffer overrun
7150 # during glob expansion). Even if it were fixed, the result of this
7151 # check would be larger than it should be.
7152 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
7156 # Under GNU Hurd, this test is not required because there is
7157 # no limit to the length of command line arguments.
7158 # Libtool will interpret -1 as no limit whatsoever
7159 lt_cv_sys_max_cmd_len
=-1;
7162 cygwin
* | mingw
* | cegcc
*)
7163 # On Win9x/ME, this test blows up -- it succeeds, but takes
7164 # about 5 minutes as the teststring grows exponentially.
7165 # Worse, since 9x/ME are not pre-emptively multitasking,
7166 # you end up with a "frozen" computer, even though with patience
7167 # the test eventually succeeds (with a max line length of 256k).
7168 # Instead, let's just punt: use the minimum linelength reported by
7169 # all of the supported platforms: 8192 (on NT/2K/XP).
7170 lt_cv_sys_max_cmd_len
=8192;
7174 # On MiNT this can take a long time and run out of memory.
7175 lt_cv_sys_max_cmd_len
=8192;
7179 # On AmigaOS with pdksh, this test takes hours, literally.
7180 # So we just punt and use a minimum line length of 8192.
7181 lt_cv_sys_max_cmd_len
=8192;
7184 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
7185 # This has been around since 386BSD, at least. Likely further.
7186 if test -x /sbin
/sysctl
; then
7187 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
7188 elif test -x /usr
/sbin
/sysctl
; then
7189 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
7191 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
7193 # And add a safety zone
7194 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7195 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7199 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7200 lt_cv_sys_max_cmd_len
=196608
7204 # The test takes a long time on OS/2.
7205 lt_cv_sys_max_cmd_len
=8192
7209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7211 # nice to cause kernel panics so lets avoid the loop below.
7212 # First set a reasonable default.
7213 lt_cv_sys_max_cmd_len
=16384
7215 if test -x /sbin
/sysconfig
; then
7216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7217 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
7222 lt_cv_sys_max_cmd_len
=102400
7224 sysv5
* | sco5v6
* | sysv4.2uw2
*)
7225 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7226 if test -n "$kargmax"; then
7227 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
7229 lt_cv_sys_max_cmd_len
=32768
7233 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
7234 if test -n "$lt_cv_sys_max_cmd_len"; then
7235 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
7236 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
7238 # Make teststring a little bigger before we do anything with it.
7239 # a 1K string should be a reasonable start.
7240 for i
in 1 2 3 4 5 6 7 8 ; do
7241 teststring
=$teststring$teststring
7243 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
7244 # If test is not a shell built-in, we'll probably end up computing a
7245 # maximum length that is only half of the actual maximum length, but
7247 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7248 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
7249 test $i != 17 # 1/2 MB should be enough
7252 teststring
=$teststring$teststring
7254 # Only check the string length outside the loop.
7255 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
7257 # Add a significant safety factor because C++ compilers can tack on
7258 # massive amounts of additional arguments before passing them to the
7259 # linker. It appears as though 1/2 is a usable value.
7260 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
7267 if test -n $lt_cv_sys_max_cmd_len ; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7269 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7272 $as_echo "none" >&6; }
7274 max_cmd_len
=$lt_cv_sys_max_cmd_len
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7286 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7287 # Try some XSI features
7290 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7292 && eval 'test $(( 1 + 1 )) -eq 2 \
7293 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7296 $as_echo "$xsi_shell" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7300 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7302 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
7304 && lt_shell_append
=yes
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7306 $as_echo "$lt_shell_append" >&6; }
7309 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
7319 # test EBCDIC or ASCII
7320 case `echo X|tr X '\101'` in
7321 A
) # ASCII based system
7322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7323 lt_SP2NL
='tr \040 \012'
7324 lt_NL2SP
='tr \015\012 \040\040'
7326 *) # EBCDIC based system
7327 lt_SP2NL
='tr \100 \n'
7328 lt_NL2SP
='tr \r\n \100\100'
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7341 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7342 if ${lt_cv_to_host_file_cmd+:} false
; then :
7343 $as_echo_n "(cached) " >&6
7348 *-*-mingw* ) # actually msys
7349 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
7352 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
7354 * ) # otherwise, assume *nix
7355 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
7361 *-*-mingw* ) # actually msys
7362 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
7365 lt_cv_to_host_file_cmd
=func_convert_file_noop
7367 * ) # otherwise, assume *nix
7368 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
7372 * ) # unhandled hosts (and "normal" native builds)
7373 lt_cv_to_host_file_cmd
=func_convert_file_noop
7379 to_host_file_cmd
=$lt_cv_to_host_file_cmd
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7381 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7388 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7389 if ${lt_cv_to_tool_file_cmd+:} false
; then :
7390 $as_echo_n "(cached) " >&6
7392 #assume ordinary cross tools, or native build.
7393 lt_cv_to_tool_file_cmd
=func_convert_file_noop
7397 *-*-mingw* ) # actually msys
7398 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
7406 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7408 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7415 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7416 if ${lt_cv_ld_reload_flag+:} false
; then :
7417 $as_echo_n "(cached) " >&6
7419 lt_cv_ld_reload_flag
='-r'
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7422 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7423 reload_flag
=$lt_cv_ld_reload_flag
7424 case $reload_flag in
7426 *) reload_flag
=" $reload_flag" ;;
7428 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7430 cygwin
* | mingw
* | pw32
* | cegcc
*)
7431 if test "$GCC" != yes; then
7436 if test "$GCC" = yes; then
7437 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7439 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7454 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_prog_OBJDUMP+:} false
; then :
7458 $as_echo_n "(cached) " >&6
7460 if test -n "$OBJDUMP"; then
7461 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
7463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir
=.
7468 for ac_exec_ext
in '' $ac_executable_extensions; do
7469 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7470 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 OBJDUMP
=$ac_cv_prog_OBJDUMP
7481 if test -n "$OBJDUMP"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7483 $as_echo "$OBJDUMP" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7491 if test -z "$ac_cv_prog_OBJDUMP"; then
7492 ac_ct_OBJDUMP
=$OBJDUMP
7493 # Extract the first word of "objdump", so it can be a program name with args.
7494 set dummy objdump
; ac_word
=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$ac_ct_OBJDUMP"; then
7501 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
7503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir
=.
7508 for ac_exec_ext
in '' $ac_executable_extensions; do
7509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
7521 if test -n "$ac_ct_OBJDUMP"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7523 $as_echo "$ac_ct_OBJDUMP" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7529 if test "x$ac_ct_OBJDUMP" = x
; then
7532 case $cross_compiling:$ac_tool_warned in
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned
=yes ;;
7538 OBJDUMP
=$ac_ct_OBJDUMP
7541 OBJDUMP
="$ac_cv_prog_OBJDUMP"
7544 test -z "$OBJDUMP" && OBJDUMP
=objdump
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7555 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7556 if ${lt_cv_deplibs_check_method+:} false
; then :
7557 $as_echo_n "(cached) " >&6
7559 lt_cv_file_magic_cmd
='$MAGIC_CMD'
7560 lt_cv_file_magic_test_file
=
7561 lt_cv_deplibs_check_method
='unknown'
7562 # Need to set the preceding variable on all platforms that support
7563 # interlibrary dependencies.
7564 # 'none' -- dependencies not supported.
7565 # `unknown' -- same as none, but documents that we really don't know.
7566 # 'pass_all' -- all dependencies passed with no checks.
7567 # 'test_compile' -- check by making test program.
7568 # 'file_magic [[regex]]' -- check by looking for files in library path
7569 # which responds to the $file_magic_cmd with a given extended regex.
7570 # If you have `file' or equivalent on your system and you're not sure
7571 # whether `pass_all' will *always* work, you probably want this one.
7575 lt_cv_deplibs_check_method
=pass_all
7579 lt_cv_deplibs_check_method
=pass_all
7583 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7584 lt_cv_file_magic_cmd
='/usr/bin/file -L'
7585 lt_cv_file_magic_test_file
=/shlib
/libc.so
7589 # func_win32_libid is a shell function defined in ltmain.sh
7590 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
7591 lt_cv_file_magic_cmd
='func_win32_libid'
7595 # Base MSYS/MinGW do not provide the 'file' command needed by
7596 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7597 # unless we find 'file', for example because we are cross-compiling.
7598 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7599 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
7600 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
7601 lt_cv_file_magic_cmd
='func_win32_libid'
7603 # Keep this pattern in sync with the one in func_win32_libid.
7604 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7605 lt_cv_file_magic_cmd
='$OBJDUMP -f'
7610 # use the weaker test based on 'objdump'. See mingw*.
7611 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7612 lt_cv_file_magic_cmd
='$OBJDUMP -f'
7615 darwin
* | rhapsody
*)
7616 lt_cv_deplibs_check_method
=pass_all
7619 freebsd
* | dragonfly
*)
7620 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
7623 # Not sure whether the presence of OpenBSD here was a mistake.
7624 # Let's accept both of them until this is cleared up.
7625 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7626 lt_cv_file_magic_cmd
=/usr
/bin
/file
7627 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
7631 lt_cv_deplibs_check_method
=pass_all
7636 lt_cv_deplibs_check_method
=pass_all
7640 lt_cv_deplibs_check_method
=pass_all
7643 hpux10.20
* | hpux11
*)
7644 lt_cv_file_magic_cmd
=/usr
/bin
/file
7647 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7648 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
7651 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]'
7652 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
7655 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7656 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
7662 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7663 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
7666 irix5
* | irix6
* | nonstopux
*)
7668 *-32|*"-32 ") libmagic
=32-bit;;
7669 *-n32|*"-n32 ") libmagic
=N32
;;
7670 *-64|*"-64 ") libmagic
=64-bit;;
7671 *) libmagic
=never
-match;;
7673 lt_cv_deplibs_check_method
=pass_all
7676 # This must be glibc/ELF.
7677 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7678 lt_cv_deplibs_check_method
=pass_all
7682 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
7683 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7685 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7690 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7691 lt_cv_file_magic_cmd
=/usr
/bin
/file
7692 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
7696 lt_cv_deplibs_check_method
=pass_all
7700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7701 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7703 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7707 osf3
* | osf4
* | osf5
*)
7708 lt_cv_deplibs_check_method
=pass_all
7712 lt_cv_deplibs_check_method
=pass_all
7716 lt_cv_deplibs_check_method
=pass_all
7719 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
7720 lt_cv_deplibs_check_method
=pass_all
7724 case $host_vendor in
7726 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]'
7727 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
7730 lt_cv_deplibs_check_method
=pass_all
7733 lt_cv_file_magic_cmd
='/bin/file'
7734 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7737 lt_cv_file_magic_cmd
='/bin/file'
7738 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7739 lt_cv_file_magic_test_file
=/lib
/libc.so
7742 lt_cv_deplibs_check_method
=pass_all
7745 lt_cv_deplibs_check_method
=pass_all
7751 lt_cv_deplibs_check_method
=pass_all
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7757 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7761 if test "$build" = "$host"; then
7764 if ( shopt | grep nocaseglob
) >/dev
/null
2>&1; then
7767 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7773 file_magic_cmd
=$lt_cv_file_magic_cmd
7774 deplibs_check_method
=$lt_cv_deplibs_check_method
7775 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7800 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7804 $as_echo_n "(cached) " >&6
7806 if test -n "$DLLTOOL"; then
7807 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir
=.
7814 for ac_exec_ext
in '' $ac_executable_extensions; do
7815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 DLLTOOL
=$ac_cv_prog_DLLTOOL
7827 if test -n "$DLLTOOL"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7829 $as_echo "$DLLTOOL" >&6; }
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7837 if test -z "$ac_cv_prog_DLLTOOL"; then
7838 ac_ct_DLLTOOL
=$DLLTOOL
7839 # Extract the first word of "dlltool", so it can be a program name with args.
7840 set dummy dlltool
; ac_word
=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7844 $as_echo_n "(cached) " >&6
7846 if test -n "$ac_ct_DLLTOOL"; then
7847 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir
=.
7854 for ac_exec_ext
in '' $ac_executable_extensions; do
7855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7867 if test -n "$ac_ct_DLLTOOL"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7869 $as_echo "$ac_ct_DLLTOOL" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7875 if test "x$ac_ct_DLLTOOL" = x
; then
7878 case $cross_compiling:$ac_tool_warned in
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7882 ac_tool_warned
=yes ;;
7884 DLLTOOL
=$ac_ct_DLLTOOL
7887 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7890 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7902 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7903 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
7904 $as_echo_n "(cached) " >&6
7906 lt_cv_sharedlib_from_linklib_cmd
='unknown'
7909 cygwin
* | mingw
* | pw32
* | cegcc
*)
7910 # two different shell functions defined in ltmain.sh
7911 # decide which to use based on capabilities of $DLLTOOL
7912 case `$DLLTOOL --help 2>&1` in
7913 *--identify-strict*)
7914 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
7917 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
7922 # fallback: assume linklib IS sharedlib
7923 lt_cv_sharedlib_from_linklib_cmd
="$ECHO"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7929 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7930 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
7931 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
7939 if test -n "$ac_tool_prefix"; then
7942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7943 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_AR+:} false
; then :
7947 $as_echo_n "(cached) " >&6
7949 if test -n "$AR"; then
7950 ac_cv_prog_AR
="$AR" # Let the user override the test.
7952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir
=.
7957 for ac_exec_ext
in '' $ac_executable_extensions; do
7958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 if test -n "$AR"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7972 $as_echo "$AR" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7979 test -n "$AR" && break
7982 if test -z "$AR"; then
7986 # Extract the first word of "$ac_prog", so it can be a program name with args.
7987 set dummy
$ac_prog; ac_word
=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7991 $as_echo_n "(cached) " >&6
7993 if test -n "$ac_ct_AR"; then
7994 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir
=.
8001 for ac_exec_ext
in '' $ac_executable_extensions; do
8002 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_ac_ct_AR
="$ac_prog"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8014 if test -n "$ac_ct_AR"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8016 $as_echo "$ac_ct_AR" >&6; }
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8023 test -n "$ac_ct_AR" && break
8026 if test "x$ac_ct_AR" = x
; then
8029 case $cross_compiling:$ac_tool_warned in
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033 ac_tool_warned
=yes ;;
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8053 $as_echo_n "checking for archiver @FILE support... " >&6; }
8054 if ${lt_cv_ar_at_file+:} false
; then :
8055 $as_echo_n "(cached) " >&6
8058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8069 if ac_fn_c_try_compile
"$LINENO"; then :
8070 echo conftest.
$ac_objext > conftest.lst
8071 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8073 (eval $lt_ar_try) 2>&5
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }
8077 if test "$ac_status" -eq 0; then
8078 # Ensure the archiver fails upon bogus file names.
8079 rm -f conftest.
$ac_objext libconftest.a
8080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8081 (eval $lt_ar_try) 2>&5
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }
8085 if test "$ac_status" -ne 0; then
8089 rm -f conftest.
* libconftest.a
8092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8096 $as_echo "$lt_cv_ar_at_file" >&6; }
8098 if test "x$lt_cv_ar_at_file" = xno
; then
8101 archiver_list_spec
=$lt_cv_ar_at_file
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8112 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_STRIP+:} false
; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$STRIP"; then
8119 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir
=.
8126 for ac_exec_ext
in '' $ac_executable_extensions; do
8127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 STRIP
=$ac_cv_prog_STRIP
8139 if test -n "$STRIP"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8141 $as_echo "$STRIP" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 if test -z "$ac_cv_prog_STRIP"; then
8151 # Extract the first word of "strip", so it can be a program name with args.
8152 set dummy strip
; ac_word
=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$ac_ct_STRIP"; then
8159 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir
=.
8166 for ac_exec_ext
in '' $ac_executable_extensions; do
8167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8168 ac_cv_prog_ac_ct_STRIP
="strip"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8179 if test -n "$ac_ct_STRIP"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8181 $as_echo "$ac_ct_STRIP" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 if test "x$ac_ct_STRIP" = x
; then
8190 case $cross_compiling:$ac_tool_warned in
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned
=yes ;;
8199 STRIP
="$ac_cv_prog_STRIP"
8202 test -z "$STRIP" && STRIP
=:
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8211 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_prog_RANLIB+:} false
; then :
8215 $as_echo_n "(cached) " >&6
8217 if test -n "$RANLIB"; then
8218 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir
=.
8225 for ac_exec_ext
in '' $ac_executable_extensions; do
8226 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 RANLIB
=$ac_cv_prog_RANLIB
8238 if test -n "$RANLIB"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8240 $as_echo "$RANLIB" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8248 if test -z "$ac_cv_prog_RANLIB"; then
8249 ac_ct_RANLIB
=$RANLIB
8250 # Extract the first word of "ranlib", so it can be a program name with args.
8251 set dummy ranlib
; ac_word
=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8255 $as_echo_n "(cached) " >&6
8257 if test -n "$ac_ct_RANLIB"; then
8258 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir
=.
8265 for ac_exec_ext
in '' $ac_executable_extensions; do
8266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8267 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8278 if test -n "$ac_ct_RANLIB"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8280 $as_echo "$ac_ct_RANLIB" >&6; }
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8286 if test "x$ac_ct_RANLIB" = x
; then
8289 case $cross_compiling:$ac_tool_warned in
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned
=yes ;;
8295 RANLIB
=$ac_ct_RANLIB
8298 RANLIB
="$ac_cv_prog_RANLIB"
8301 test -z "$RANLIB" && RANLIB
=:
8308 # Determine commands to create old-style static archives.
8309 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
8310 old_postinstall_cmds
='chmod 644 $oldlib'
8311 old_postuninstall_cmds
=
8313 if test -n "$RANLIB"; then
8316 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8319 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8322 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8327 lock_old_archive_extraction
=yes ;;
8329 lock_old_archive_extraction
=no
;;
8352 for ac_prog
in gawk mawk nawk
awk
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy
$ac_prog; ac_word
=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_AWK+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$AWK"; then
8362 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir
=.
8369 for ac_exec_ext
in '' $ac_executable_extensions; do
8370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_AWK
="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 if test -n "$AWK"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8384 $as_echo "$AWK" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$AWK" && break
8412 # If no C compiler was specified, use CC.
8415 # If no C compiler flags were specified, use CFLAGS.
8416 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8418 # Allow CC to be a program name with arguments.
8422 # Check for command to grab the raw symbol name followed by C symbol from nm.
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8424 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8425 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
8426 $as_echo_n "(cached) " >&6
8429 # These are sane defaults that work on at least a few old systems.
8430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8432 # Character class describing NM global symbol codes.
8433 symcode
='[BCDEGRST]'
8435 # Regexp to match symbols that can be accessed directly from C.
8436 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
8438 # Define system-specific variables.
8443 cygwin
* | mingw
* | pw32
* | cegcc
*)
8444 symcode
='[ABCDGISTW]'
8447 if test "$host_cpu" = ia64
; then
8448 symcode
='[ABCDEGRST]'
8452 symcode
='[BCDEGRST]'
8455 symcode
='[BCDEGQRST]'
8466 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8474 # If we're using GNU nm, then use its standard symbol codes.
8475 case `$NM -V 2>&1` in
8476 *GNU
* | *'with BFD'*)
8477 symcode
='[ABCDGIRSTW]' ;;
8480 # Transform an extracted symbol line into a proper C declaration.
8481 # Some systems (esp. on ia64) link data and code symbols differently,
8482 # so use this general approach.
8483 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8485 # Transform an extracted symbol line into symbol name and symbol address
8486 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8487 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8489 # Handle CRLF in mingw tool chain
8493 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8497 # Try without a prefix underscore, then with it.
8498 for ac_symprfx
in "" "_"; do
8500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8501 symxfrm
="\\1 $ac_symprfx\\2 \\2"
8503 # Write the raw and C identifiers.
8504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8505 # Fake it for dumpbin and say T for any non-static function
8506 # and D for any global variable.
8507 # Also find C++ and __fastcall symbols from MSVC++,
8508 # which start with @ or ?.
8509 lt_cv_sys_global_symbol_pipe
="$AWK '"\
8510 " {last_section=section; section=\$ 3};"\
8511 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8512 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8513 " \$ 0!~/External *\|/{next};"\
8514 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8515 " {if(hide[section]) next};"\
8516 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8517 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8518 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8519 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8520 " ' prfx=^$ac_symprfx"
8522 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8524 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8526 # Check to see that the pipe works correctly.
8530 cat > conftest.
$ac_ext <<_LT_EOF
8535 void nm_test_func(void);
8536 void nm_test_func(void){}
8540 int main(){nm_test_var='a';nm_test_func();return(0);}
8543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8544 (eval $ac_compile) 2>&5
8546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8547 test $ac_status = 0; }; then
8548 # Now try to grab the symbols.
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8551 (eval $NM conftest.
$ac_objext \
| "$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; } && test -s "$nlist"; then
8555 # Try sorting and uniquifying the output.
8556 if sort "$nlist" | uniq > "$nlist"T
; then
8557 mv -f "$nlist"T
"$nlist"
8562 # Make sure that we snagged all the symbols we need.
8563 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
8564 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
8565 cat <<_LT_EOF > conftest.$ac_ext
8566 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8567 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8568 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8569 relocations are performed -- see ld's documentation on pseudo-relocs. */
8570 # define LT_DLSYM_CONST
8571 #elif defined(__osf__)
8572 /* This system does not cope well with relocations in const data. */
8573 # define LT_DLSYM_CONST
8575 # define LT_DLSYM_CONST const
8583 # Now generate the symbol file.
8584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8586 cat <<_LT_EOF >> conftest.$ac_ext
8588 /* The mapping between symbol names and symbols. */
8589 LT_DLSYM_CONST struct {
8593 lt__PROGRAM__LTX_preloaded_symbols[] =
8595 { "@PROGRAM@", (void *) 0 },
8597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
8598 cat <<\_LT_EOF
>> conftest.
$ac_ext
8602 /* This works around a problem
in FreeBSD linker
*/
8603 #ifdef FREEBSD_WORKAROUND
8604 static const void
*lt_preloaded_setup
() {
8605 return lt__PROGRAM__LTX_preloaded_symbols
;
8613 # Now try linking the two files.
8614 mv conftest.
$ac_objext conftstm.
$ac_objext
8615 lt_globsym_save_LIBS
=$LIBS
8616 lt_globsym_save_CFLAGS
=$CFLAGS
8617 LIBS
="conftstm.$ac_objext"
8618 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8620 (eval $ac_link) 2>&5
8622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8623 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
8626 LIBS
=$lt_globsym_save_LIBS
8627 CFLAGS
=$lt_globsym_save_CFLAGS
8629 echo "cannot find nm_test_func in $nlist" >&5
8632 echo "cannot find nm_test_var in $nlist" >&5
8635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8638 echo "$progname: failed program was:" >&5
8639 cat conftest.
$ac_ext >&5
8641 rm -rf conftest
* conftst
*
8643 # Do not use the global_symbol_pipe unless it works.
8644 if test "$pipe_works" = yes; then
8647 lt_cv_sys_global_symbol_pipe
=
8653 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8654 lt_cv_sys_global_symbol_to_cdecl
=
8656 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8658 $as_echo "failed" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8661 $as_echo "ok" >&6; }
8664 # Response file support.
8665 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8666 nm_file_list_spec
='@'
8667 elif $NM --help 2>/dev
/null
| grep '[@]FILE' >/dev
/null
; then
8668 nm_file_list_spec
='@'
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8698 $as_echo_n "checking for sysroot... " >&6; }
8700 # Check whether --with-sysroot was given.
8701 if test "${with_sysroot+set}" = set; then :
8702 withval
=$with_sysroot;
8709 case ${with_sysroot} in #(
8711 if test "$GCC" = yes; then
8712 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
8716 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8722 $as_echo "${with_sysroot}" >&6; }
8723 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8728 $as_echo "${lt_sysroot:-no}" >&6; }
8734 # Check whether --enable-libtool-lock was given.
8735 if test "${enable_libtool_lock+set}" = set; then :
8736 enableval
=$enable_libtool_lock;
8739 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
8741 # Some flags need to be propagated to the compiler or linker for good
8745 # Find out which ABI we are using.
8746 echo 'int i;' > conftest.
$ac_ext
8747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8748 (eval $ac_compile) 2>&5
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 case `/usr/bin/file conftest.$ac_objext` in
8764 # Find out which ABI we are using.
8765 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8767 (eval $ac_compile) 2>&5
8769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8770 test $ac_status = 0; }; then
8771 if test "$lt_cv_prog_gnu_ld" = yes; then
8772 case `/usr/bin/file conftest.$ac_objext` in
8774 LD
="${LD-ld} -melf32bsmip"
8777 LD
="${LD-ld} -melf32bmipn32"
8780 LD
="${LD-ld} -melf64bmip"
8784 case `/usr/bin/file conftest.$ac_objext` in
8800 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|powerpc
*-*linux
*| \
8801 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
8802 # Find out which ABI we are using.
8803 echo 'int i;' > conftest.
$ac_ext
8804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8805 (eval $ac_compile) 2>&5
8807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8808 test $ac_status = 0; }; then
8809 case `/usr/bin/file conftest.o` in
8812 x86_64
-*kfreebsd
*-gnu)
8813 LD
="${LD-ld} -m elf_i386_fbsd"
8816 LD
="${LD-ld} -m elf_i386"
8818 powerpc64le
-*linux
*)
8819 LD
="${LD-ld} -m elf32lppclinux"
8822 LD
="${LD-ld} -m elf32ppclinux"
8825 LD
="${LD-ld} -m elf_s390"
8828 LD
="${LD-ld} -m elf32_sparc"
8834 x86_64
-*kfreebsd
*-gnu)
8835 LD
="${LD-ld} -m elf_x86_64_fbsd"
8838 LD
="${LD-ld} -m elf_x86_64"
8841 LD
="${LD-ld} -m elf64lppc"
8844 LD
="${LD-ld} -m elf64ppc"
8846 s390
*-*linux
*|s390
*-*tpf
*)
8847 LD
="${LD-ld} -m elf64_s390"
8850 LD
="${LD-ld} -m elf64_sparc"
8860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8861 SAVE_CFLAGS
="$CFLAGS"
8862 CFLAGS
="$CFLAGS -belf"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8864 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8865 if ${lt_cv_cc_needs_belf+:} false
; then :
8866 $as_echo_n "(cached) " >&6
8869 ac_cpp
='$CPP $CPPFLAGS'
8870 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8885 if ac_fn_c_try_link
"$LINENO"; then :
8886 lt_cv_cc_needs_belf
=yes
8888 lt_cv_cc_needs_belf
=no
8890 rm -f core conftest.err conftest.
$ac_objext \
8891 conftest
$ac_exeext conftest.
$ac_ext
8893 ac_cpp
='$CPP $CPPFLAGS'
8894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8901 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
8902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8903 CFLAGS
="$SAVE_CFLAGS"
8907 # Find out which ABI we are using.
8908 echo 'int i;' > conftest.
$ac_ext
8909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8910 (eval $ac_compile) 2>&5
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 case `/usr/bin/file conftest.o` in
8916 case $lt_cv_prog_gnu_ld in
8920 LD
="${LD-ld} -m elf_x86_64"
8923 LD
="${LD-ld} -m elf64_sparc"
8926 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8927 if ${LD-ld} -V | grep _sol2
>/dev
/null
2>&1; then
8932 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
8944 need_locks
="$enable_libtool_lock"
8946 if test -n "$ac_tool_prefix"; then
8947 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8948 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
8952 $as_echo_n "(cached) " >&6
8954 if test -n "$MANIFEST_TOOL"; then
8955 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
8957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8961 test -z "$as_dir" && as_dir
=.
8962 for ac_exec_ext
in '' $ac_executable_extensions; do
8963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
8975 if test -n "$MANIFEST_TOOL"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8977 $as_echo "$MANIFEST_TOOL" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8985 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8986 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
8987 # Extract the first word of "mt", so it can be a program name with args.
8988 set dummy mt
; ac_word
=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
8992 $as_echo_n "(cached) " >&6
8994 if test -n "$ac_ct_MANIFEST_TOOL"; then
8995 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir
=.
9002 for ac_exec_ext
in '' $ac_executable_extensions; do
9003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9015 if test -n "$ac_ct_MANIFEST_TOOL"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9017 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9023 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
9026 case $cross_compiling:$ac_tool_warned in
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9030 ac_tool_warned
=yes ;;
9032 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
9035 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
9038 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9040 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9041 if ${lt_cv_path_mainfest_tool+:} false
; then :
9042 $as_echo_n "(cached) " >&6
9044 lt_cv_path_mainfest_tool
=no
9045 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9046 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
9047 cat conftest.err
>&5
9048 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
9049 lt_cv_path_mainfest_tool
=yes
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9054 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9055 if test "x$lt_cv_path_mainfest_tool" != xyes
; then
9065 rhapsody
* | darwin
*)
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9068 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
9072 $as_echo_n "(cached) " >&6
9074 if test -n "$DSYMUTIL"; then
9075 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
9077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir
=.
9082 for ac_exec_ext
in '' $ac_executable_extensions; do
9083 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
9095 if test -n "$DSYMUTIL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9097 $as_echo "$DSYMUTIL" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 if test -z "$ac_cv_prog_DSYMUTIL"; then
9106 ac_ct_DSYMUTIL
=$DSYMUTIL
9107 # Extract the first word of "dsymutil", so it can be a program name with args.
9108 set dummy dsymutil
; ac_word
=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
9112 $as_echo_n "(cached) " >&6
9114 if test -n "$ac_ct_DSYMUTIL"; then
9115 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
9117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir
=.
9122 for ac_exec_ext
in '' $ac_executable_extensions; do
9123 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
9135 if test -n "$ac_ct_DSYMUTIL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9137 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 if test "x$ac_ct_DSYMUTIL" = x
; then
9146 case $cross_compiling:$ac_tool_warned in
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned
=yes ;;
9152 DSYMUTIL
=$ac_ct_DSYMUTIL
9155 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9160 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_NMEDIT+:} false
; then :
9164 $as_echo_n "(cached) " >&6
9166 if test -n "$NMEDIT"; then
9167 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
9169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir
=.
9174 for ac_exec_ext
in '' $ac_executable_extensions; do
9175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 NMEDIT
=$ac_cv_prog_NMEDIT
9187 if test -n "$NMEDIT"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9189 $as_echo "$NMEDIT" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9197 if test -z "$ac_cv_prog_NMEDIT"; then
9198 ac_ct_NMEDIT
=$NMEDIT
9199 # Extract the first word of "nmedit", so it can be a program name with args.
9200 set dummy nmedit
; ac_word
=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
9204 $as_echo_n "(cached) " >&6
9206 if test -n "$ac_ct_NMEDIT"; then
9207 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
9209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir
=.
9214 for ac_exec_ext
in '' $ac_executable_extensions; do
9215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
9227 if test -n "$ac_ct_NMEDIT"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9229 $as_echo "$ac_ct_NMEDIT" >&6; }
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9235 if test "x$ac_ct_NMEDIT" = x
; then
9238 case $cross_compiling:$ac_tool_warned in
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned
=yes ;;
9244 NMEDIT
=$ac_ct_NMEDIT
9247 NMEDIT
="$ac_cv_prog_NMEDIT"
9250 if test -n "$ac_tool_prefix"; then
9251 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9252 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_LIPO+:} false
; then :
9256 $as_echo_n "(cached) " >&6
9258 if test -n "$LIPO"; then
9259 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
9261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9265 test -z "$as_dir" && as_dir
=.
9266 for ac_exec_ext
in '' $ac_executable_extensions; do
9267 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 LIPO
=$ac_cv_prog_LIPO
9279 if test -n "$LIPO"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9281 $as_echo "$LIPO" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9289 if test -z "$ac_cv_prog_LIPO"; then
9291 # Extract the first word of "lipo", so it can be a program name with args.
9292 set dummy lipo
; ac_word
=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
9296 $as_echo_n "(cached) " >&6
9298 if test -n "$ac_ct_LIPO"; then
9299 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
9301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir
=.
9306 for ac_exec_ext
in '' $ac_executable_extensions; do
9307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_ac_ct_LIPO
="lipo"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
9319 if test -n "$ac_ct_LIPO"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9321 $as_echo "$ac_ct_LIPO" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9327 if test "x$ac_ct_LIPO" = x
; then
9330 case $cross_compiling:$ac_tool_warned in
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9334 ac_tool_warned
=yes ;;
9339 LIPO
="$ac_cv_prog_LIPO"
9342 if test -n "$ac_tool_prefix"; then
9343 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9344 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_prog_OTOOL+:} false
; then :
9348 $as_echo_n "(cached) " >&6
9350 if test -n "$OTOOL"; then
9351 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
9353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir
=.
9358 for ac_exec_ext
in '' $ac_executable_extensions; do
9359 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 OTOOL
=$ac_cv_prog_OTOOL
9371 if test -n "$OTOOL"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9373 $as_echo "$OTOOL" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9381 if test -z "$ac_cv_prog_OTOOL"; then
9383 # Extract the first word of "otool", so it can be a program name with args.
9384 set dummy otool
; ac_word
=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
9388 $as_echo_n "(cached) " >&6
9390 if test -n "$ac_ct_OTOOL"; then
9391 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
9393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9397 test -z "$as_dir" && as_dir
=.
9398 for ac_exec_ext
in '' $ac_executable_extensions; do
9399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_OTOOL
="otool"
9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
9411 if test -n "$ac_ct_OTOOL"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9413 $as_echo "$ac_ct_OTOOL" >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9419 if test "x$ac_ct_OTOOL" = x
; then
9422 case $cross_compiling:$ac_tool_warned in
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned
=yes ;;
9431 OTOOL
="$ac_cv_prog_OTOOL"
9434 if test -n "$ac_tool_prefix"; then
9435 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9436 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_prog_OTOOL64+:} false
; then :
9440 $as_echo_n "(cached) " >&6
9442 if test -n "$OTOOL64"; then
9443 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
9445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9449 test -z "$as_dir" && as_dir
=.
9450 for ac_exec_ext
in '' $ac_executable_extensions; do
9451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
9453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 OTOOL64
=$ac_cv_prog_OTOOL64
9463 if test -n "$OTOOL64"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9465 $as_echo "$OTOOL64" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test -z "$ac_cv_prog_OTOOL64"; then
9474 ac_ct_OTOOL64
=$OTOOL64
9475 # Extract the first word of "otool64", so it can be a program name with args.
9476 set dummy otool64
; ac_word
=$2
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9478 $as_echo_n "checking for $ac_word... " >&6; }
9479 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
9480 $as_echo_n "(cached) " >&6
9482 if test -n "$ac_ct_OTOOL64"; then
9483 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
9485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9489 test -z "$as_dir" && as_dir
=.
9490 for ac_exec_ext
in '' $ac_executable_extensions; do
9491 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9492 ac_cv_prog_ac_ct_OTOOL64
="otool64"
9493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
9503 if test -n "$ac_ct_OTOOL64"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9505 $as_echo "$ac_ct_OTOOL64" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9511 if test "x$ac_ct_OTOOL64" = x
; then
9514 case $cross_compiling:$ac_tool_warned in
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9518 ac_tool_warned
=yes ;;
9520 OTOOL64
=$ac_ct_OTOOL64
9523 OTOOL64
="$ac_cv_prog_OTOOL64"
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9553 $as_echo_n "checking for -single_module linker flag... " >&6; }
9554 if ${lt_cv_apple_cc_single_mod+:} false
; then :
9555 $as_echo_n "(cached) " >&6
9557 lt_cv_apple_cc_single_mod
=no
9558 if test -z "${LT_MULTI_MODULE}"; then
9559 # By default we will add the -single_module flag. You can override
9560 # by either setting the environment variable LT_MULTI_MODULE
9561 # non-empty at configure time, or by adding -multi_module to the
9563 rm -rf libconftest.dylib
*
9564 echo "int foo(void){return 1;}" > conftest.c
9565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9566 -dynamiclib -Wl,-single_module conftest.c" >&5
9567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9568 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
9570 # If there is a non-empty error log, and "single_module"
9571 # appears in it, assume the flag caused a linker warning
9572 if test -s conftest.err
&& $GREP single_module conftest.err
; then
9573 cat conftest.err
>&5
9574 # Otherwise, if the output was created with a 0 exit code from
9575 # the compiler, it worked.
9576 elif test -f libconftest.dylib
&& test $_lt_result -eq 0; then
9577 lt_cv_apple_cc_single_mod
=yes
9579 cat conftest.err
>&5
9581 rm -rf libconftest.dylib
*
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9590 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
9591 $as_echo_n "(cached) " >&6
9593 lt_cv_ld_exported_symbols_list
=no
9594 save_LDFLAGS
=$LDFLAGS
9595 echo "_main" > conftest.sym
9596 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9608 if ac_fn_c_try_link
"$LINENO"; then :
9609 lt_cv_ld_exported_symbols_list
=yes
9611 lt_cv_ld_exported_symbols_list
=no
9613 rm -f core conftest.err conftest.
$ac_objext \
9614 conftest
$ac_exeext conftest.
$ac_ext
9615 LDFLAGS
="$save_LDFLAGS"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9622 $as_echo_n "checking for -force_load linker flag... " >&6; }
9623 if ${lt_cv_ld_force_load+:} false
; then :
9624 $as_echo_n "(cached) " >&6
9626 lt_cv_ld_force_load
=no
9627 cat > conftest.c
<< _LT_EOF
9628 int forced_loaded() { return 2;}
9630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
9632 echo "$AR cru libconftest.a conftest.o" >&5
9633 $AR cru libconftest.a conftest.o
2>&5
9634 echo "$RANLIB libconftest.a" >&5
9635 $RANLIB libconftest.a
2>&5
9636 cat > conftest.c
<< _LT_EOF
9637 int main() { return 0;}
9639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
9642 if test -s conftest.err
&& $GREP force_load conftest.err
; then
9643 cat conftest.err
>&5
9644 elif test -f conftest
&& test $_lt_result -eq 0 && $GREP forced_load conftest
>/dev
/null
2>&1 ; then
9645 lt_cv_ld_force_load
=yes
9647 cat conftest.err
>&5
9649 rm -f conftest.err libconftest.a conftest conftest.c
9650 rm -rf conftest.dSYM
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9654 $as_echo "$lt_cv_ld_force_load" >&6; }
9656 rhapsody
* | darwin1.
[012])
9657 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
9659 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9660 darwin
*) # darwin 5.x on
9661 # if running on 10.5 or later, the deployment target defaults
9662 # to the OS version, if on x86, and 10.4, the deployment
9663 # target defaults to 10.4. Don't you love it?
9664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9666 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
9668 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9670 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
9674 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9675 _lt_dar_single_mod
='$single_module'
9677 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9678 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9680 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9682 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9683 _lt_dsymutil
='~$DSYMUTIL $lib || :'
9690 for ac_header
in dlfcn.h
9692 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9694 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
9695 cat >>confdefs.h
<<_ACEOF
9696 #define HAVE_DLFCN_H 1
9719 # Check whether --enable-shared was given.
9720 if test "${enable_shared+set}" = set; then :
9721 enableval
=$enable_shared; p
=${PACKAGE-default}
9723 yes) enable_shared
=yes ;;
9724 no
) enable_shared
=no
;;
9727 # Look at the argument we got. We use all the common list separators.
9728 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9729 for pkg
in $enableval; do
9731 if test "X$pkg" = "X$p"; then
9750 # Check whether --enable-static was given.
9751 if test "${enable_static+set}" = set; then :
9752 enableval
=$enable_static; p
=${PACKAGE-default}
9754 yes) enable_static
=yes ;;
9755 no
) enable_static
=no
;;
9758 # Look at the argument we got. We use all the common list separators.
9759 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9760 for pkg
in $enableval; do
9762 if test "X$pkg" = "X$p"; then
9782 # Check whether --with-pic was given.
9783 if test "${with_pic+set}" = set; then :
9784 withval
=$with_pic; lt_p
=${PACKAGE-default}
9786 yes|no
) pic_mode
=$withval ;;
9789 # Look at the argument we got. We use all the common list separators.
9790 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9791 for lt_pkg
in $withval; do
9793 if test "X$lt_pkg" = "X$lt_p"; then
9805 test -z "$pic_mode" && pic_mode
=default
9813 # Check whether --enable-fast-install was given.
9814 if test "${enable_fast_install+set}" = set; then :
9815 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9817 yes) enable_fast_install
=yes ;;
9818 no
) enable_fast_install
=no
;;
9820 enable_fast_install
=no
9821 # Look at the argument we got. We use all the common list separators.
9822 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9823 for pkg
in $enableval; do
9825 if test "X$pkg" = "X$p"; then
9826 enable_fast_install
=yes
9833 enable_fast_install
=yes
9846 # This can be used to rebuild libtool when needed
9847 LIBTOOL_DEPS
="$ltmain"
9849 # Always use our own libtool.
9850 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9881 test -z "$LN_S" && LN_S
="ln -s"
9896 if test -n "${ZSH_VERSION+set}" ; then
9897 setopt NO_GLOB_SUBST
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9901 $as_echo_n "checking for objdir... " >&6; }
9902 if ${lt_cv_objdir+:} false
; then :
9903 $as_echo_n "(cached) " >&6
9905 rm -f .libs
2>/dev
/null
9906 mkdir .libs
2>/dev
/null
9907 if test -d .libs
; then
9910 # MS-DOS does not allow filenames that begin with a dot.
9913 rmdir .libs
2>/dev
/null
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9916 $as_echo "$lt_cv_objdir" >&6; }
9917 objdir
=$lt_cv_objdir
9923 cat >>confdefs.h
<<_ACEOF
9924 #define LT_OBJDIR "$lt_cv_objdir/"
9932 # AIX sometimes has problems with the GCC collect2 program. For some
9933 # reason, if we set the COLLECT_NAMES environment variable, the problems
9934 # vanish in a puff of smoke.
9935 if test "X${COLLECT_NAMES+set}" != Xset
; then
9937 export COLLECT_NAMES
9944 can_build_shared
=yes
9946 # All known linkers require a `.a' archive for static linking (except MSVC,
9947 # which needs '.lib').
9950 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9953 old_CFLAGS
="$CFLAGS"
9955 # Set sane defaults for various variables
9956 test -z "$CC" && CC
=cc
9957 test -z "$LTCC" && LTCC
=$CC
9958 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9959 test -z "$LD" && LD
=ld
9960 test -z "$ac_objext" && ac_objext
=o
9962 for cc_temp
in $compiler""; do
9964 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
9965 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
9970 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9973 # Only perform the check for file, if the check method requires it
9974 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9975 case $deplibs_check_method in
9977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9979 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9980 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9981 $as_echo_n "(cached) " >&6
9985 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9988 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9989 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9990 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9991 for ac_dir
in $ac_dummy; do
9993 test -z "$ac_dir" && ac_dir
=.
9994 if test -f $ac_dir/${ac_tool_prefix}file; then
9995 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9996 if test -n "$file_magic_test_file"; then
9997 case $deplibs_check_method in
9999 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10000 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10001 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
10002 $EGREP "$file_magic_regex" > /dev
/null
; then
10007 *** Warning: the command libtool uses to detect shared libraries,
10008 *** $file_magic_cmd, produces output that libtool cannot recognize.
10009 *** The result is that libtool may fail to recognize shared libraries
10010 *** as such. This will affect the creation of libtool libraries that
10011 *** depend on shared libraries, but programs linked with such libtool
10012 *** libraries will work regardless of this problem. Nevertheless, you
10013 *** may want to report the problem to your system manager and/or to
10014 *** bug-libtool@gnu.org
10024 MAGIC_CMD
="$lt_save_MAGIC_CMD"
10029 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10030 if test -n "$MAGIC_CMD"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10032 $as_echo "$MAGIC_CMD" >&6; }
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10042 if test -z "$lt_cv_path_MAGIC_CMD"; then
10043 if test -n "$ac_tool_prefix"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10045 $as_echo_n "checking for file... " >&6; }
10046 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
10047 $as_echo_n "(cached) " >&6
10051 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
10054 lt_save_MAGIC_CMD
="$MAGIC_CMD"
10055 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10056 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
10057 for ac_dir
in $ac_dummy; do
10059 test -z "$ac_dir" && ac_dir
=.
10060 if test -f $ac_dir/file; then
10061 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
10062 if test -n "$file_magic_test_file"; then
10063 case $deplibs_check_method in
10065 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10066 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10067 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
10068 $EGREP "$file_magic_regex" > /dev
/null
; then
10073 *** Warning: the command libtool uses to detect shared libraries,
10074 *** $file_magic_cmd, produces output that libtool cannot recognize.
10075 *** The result is that libtool may fail to recognize shared libraries
10076 *** as such. This will affect the creation of libtool libraries that
10077 *** depend on shared libraries, but programs linked with such libtool
10078 *** libraries will work regardless of this problem. Nevertheless, you
10079 *** may want to report the problem to your system manager and/or to
10080 *** bug-libtool@gnu.org
10090 MAGIC_CMD
="$lt_save_MAGIC_CMD"
10095 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
10096 if test -n "$MAGIC_CMD"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10098 $as_echo "$MAGIC_CMD" >&6; }
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10114 # Use C for the default configuration in the libtool script
10118 ac_cpp
='$CPP $CPPFLAGS'
10119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10124 # Source file extension for C test sources.
10127 # Object file extension for compiled C test sources.
10131 # Code to be used in simple compile tests
10132 lt_simple_compile_test_code
="int some_variable = 0;"
10134 # Code to be used in simple link tests
10135 lt_simple_link_test_code
='int main(){return(0);}'
10143 # If no C compiler was specified, use CC.
10146 # If no C compiler flags were specified, use CFLAGS.
10147 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10149 # Allow CC to be a program name with arguments.
10152 # Save the default compiler, since it gets overwritten when the other
10153 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10154 compiler_DEFAULT
=$CC
10156 # save warnings/boilerplate of simple test code
10157 ac_outfile
=conftest.
$ac_objext
10158 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
10159 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
10160 _lt_compiler_boilerplate
=`cat conftest.err`
10163 ac_outfile
=conftest.
$ac_objext
10164 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
10165 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
10166 _lt_linker_boilerplate
=`cat conftest.err`
10170 if test -n "$compiler"; then
10172 lt_prog_compiler_no_builtin_flag
=
10174 if test "$GCC" = yes; then
10175 case $cc_basename in
10177 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
10179 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10183 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10184 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
10185 $as_echo_n "(cached) " >&6
10187 lt_cv_prog_compiler_rtti_exceptions
=no
10188 ac_outfile
=conftest.
$ac_objext
10189 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10190 lt_compiler_flag
="-fno-rtti -fno-exceptions"
10191 # Insert the option either (1) after the last *FLAGS variable, or
10192 # (2) before a word containing "conftest.", or (3) at the end.
10193 # Note that $ac_compile itself does not contain backslashes and begins
10194 # with a dollar sign (not a hyphen), so the echo should work correctly.
10195 # The option is referenced via a variable to avoid confusing sed.
10196 lt_compile
=`echo "$ac_compile" | $SED \
10197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10199 -e 's:$: $lt_compiler_flag:'`
10200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10201 (eval "$lt_compile" 2>conftest.err
)
10203 cat conftest.err
>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 if (exit $ac_status) && test -s "$ac_outfile"; then
10206 # The compiler can only warn and ignore the option if not recognized
10207 # So say no if there are warnings other than the usual output.
10208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10209 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10210 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
10211 lt_cv_prog_compiler_rtti_exceptions
=yes
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10218 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10220 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
10221 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10233 lt_prog_compiler_wl
=
10234 lt_prog_compiler_pic
=
10235 lt_prog_compiler_static
=
10238 if test "$GCC" = yes; then
10239 lt_prog_compiler_wl
='-Wl,'
10240 lt_prog_compiler_static
='-static'
10244 # All AIX code is PIC.
10245 if test "$host_cpu" = ia64
; then
10246 # AIX 5 now supports IA64 processor
10247 lt_prog_compiler_static
='-Bstatic'
10254 # see comment about AmigaOS4 .so support
10255 lt_prog_compiler_pic
='-fPIC'
10258 # FIXME: we need at least 68020 code to build shared libraries, but
10259 # adding the `-m68020' flag to GCC prevents building anything better,
10261 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
10266 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
10267 # PIC is the default for these OSes.
10270 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
10271 # This hack is so that the source file can tell whether it is being
10272 # built for inclusion in a dll (and should export symbols for example).
10273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10274 # (--disable-auto-import) libraries
10275 lt_prog_compiler_pic
='-DDLL_EXPORT'
10278 darwin
* | rhapsody
*)
10279 # PIC is the default on this platform
10280 # Common symbols not allowed in MH_DYLIB files
10281 lt_prog_compiler_pic
='-fno-common'
10285 # PIC is the default for Haiku.
10286 # The "-static" flag exists, but is broken.
10287 lt_prog_compiler_static
=
10291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10293 # sets the default TLS model and affects inlining.
10299 lt_prog_compiler_pic
='-fPIC'
10305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10306 # Instead, we relocate shared libraries at runtime.
10310 # Just because we use GCC doesn't mean we suddenly get shared libraries
10311 # on systems that don't support them.
10312 lt_prog_compiler_can_build_shared
=no
10317 # QNX uses GNU C++, but need to define -shared option too, otherwise
10318 # it will coredump.
10319 lt_prog_compiler_pic
='-fPIC -shared'
10323 if test -d /usr
/nec
; then
10324 lt_prog_compiler_pic
=-Kconform_pic
10329 lt_prog_compiler_pic
='-fPIC'
10333 case $cc_basename in
10334 nvcc
*) # Cuda Compiler Driver 2.2
10335 lt_prog_compiler_wl
='-Xlinker '
10336 if test -n "$lt_prog_compiler_pic"; then
10337 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
10342 # PORTME Check for flag to pass linker flags through the system compiler.
10345 lt_prog_compiler_wl
='-Wl,'
10346 if test "$host_cpu" = ia64
; then
10347 # AIX 5 now supports IA64 processor
10348 lt_prog_compiler_static
='-Bstatic'
10350 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
10354 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
10355 # This hack is so that the source file can tell whether it is being
10356 # built for inclusion in a dll (and should export symbols for example).
10357 lt_prog_compiler_pic
='-DDLL_EXPORT'
10360 hpux9
* | hpux10
* | hpux11
*)
10361 lt_prog_compiler_wl
='-Wl,'
10362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10363 # not for PA HP-UX.
10369 lt_prog_compiler_pic
='+Z'
10372 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10373 lt_prog_compiler_static
='${wl}-a ${wl}archive'
10376 irix5
* | irix6
* | nonstopux
*)
10377 lt_prog_compiler_wl
='-Wl,'
10378 # PIC (with -KPIC) is the default.
10379 lt_prog_compiler_static
='-non_shared'
10382 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10383 case $cc_basename in
10384 # old Intel for x86_64 which still supported -KPIC.
10386 lt_prog_compiler_wl
='-Wl,'
10387 lt_prog_compiler_pic
='-KPIC'
10388 lt_prog_compiler_static
='-static'
10390 # icc used to be incompatible with GCC.
10391 # ICC 10 doesn't accept -KPIC any more.
10393 lt_prog_compiler_wl
='-Wl,'
10394 lt_prog_compiler_pic
='-fPIC'
10395 lt_prog_compiler_static
='-static'
10397 # Lahey Fortran 8.1.
10399 lt_prog_compiler_wl
='-Wl,'
10400 lt_prog_compiler_pic
='--shared'
10401 lt_prog_compiler_static
='--static'
10404 # NAG Fortran compiler
10405 lt_prog_compiler_wl
='-Wl,-Wl,,'
10406 lt_prog_compiler_pic
='-PIC'
10407 lt_prog_compiler_static
='-Bstatic'
10409 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10410 # Portland Group compilers (*not* the Pentium gcc compiler,
10411 # which looks to be a dead project)
10412 lt_prog_compiler_wl
='-Wl,'
10413 lt_prog_compiler_pic
='-fpic'
10414 lt_prog_compiler_static
='-Bstatic'
10417 lt_prog_compiler_wl
='-Wl,'
10418 # All Alpha code is PIC.
10419 lt_prog_compiler_static
='-non_shared'
10421 xl
* | bgxl
* | bgf
* | mpixl
*)
10422 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10423 lt_prog_compiler_wl
='-Wl,'
10424 lt_prog_compiler_pic
='-qpic'
10425 lt_prog_compiler_static
='-qstaticlink'
10428 case `$CC -V 2>&1 | sed 5q` in
10429 *Sun\ Ceres\ Fortran
* | *Sun
*Fortran
*\
[1-7].
* | *Sun
*Fortran
*\
8.
[0-3]*)
10430 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10431 lt_prog_compiler_pic
='-KPIC'
10432 lt_prog_compiler_static
='-Bstatic'
10433 lt_prog_compiler_wl
=''
10435 *Sun\ F
* | *Sun
*Fortran
*)
10436 lt_prog_compiler_pic
='-KPIC'
10437 lt_prog_compiler_static
='-Bstatic'
10438 lt_prog_compiler_wl
='-Qoption ld '
10442 lt_prog_compiler_pic
='-KPIC'
10443 lt_prog_compiler_static
='-Bstatic'
10444 lt_prog_compiler_wl
='-Wl,'
10446 *Intel
*\
[CF
]*Compiler
*)
10447 lt_prog_compiler_wl
='-Wl,'
10448 lt_prog_compiler_pic
='-fPIC'
10449 lt_prog_compiler_static
='-static'
10452 lt_prog_compiler_wl
='-Wl,'
10453 lt_prog_compiler_pic
='-fpic'
10454 lt_prog_compiler_static
='-Bstatic'
10462 lt_prog_compiler_pic
='-KPIC'
10463 lt_prog_compiler_static
='-Bstatic'
10467 # QNX uses GNU C++, but need to define -shared option too, otherwise
10468 # it will coredump.
10469 lt_prog_compiler_pic
='-fPIC -shared'
10472 osf3
* | osf4
* | osf5
*)
10473 lt_prog_compiler_wl
='-Wl,'
10474 # All OSF/1 code is PIC.
10475 lt_prog_compiler_static
='-non_shared'
10479 lt_prog_compiler_static
='-non_shared'
10483 lt_prog_compiler_pic
='-KPIC'
10484 lt_prog_compiler_static
='-Bstatic'
10485 case $cc_basename in
10486 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
10487 lt_prog_compiler_wl
='-Qoption ld ';;
10489 lt_prog_compiler_wl
='-Wl,';;
10494 lt_prog_compiler_wl
='-Qoption ld '
10495 lt_prog_compiler_pic
='-PIC'
10496 lt_prog_compiler_static
='-Bstatic'
10499 sysv4
| sysv4.2uw2
* | sysv4.3
*)
10500 lt_prog_compiler_wl
='-Wl,'
10501 lt_prog_compiler_pic
='-KPIC'
10502 lt_prog_compiler_static
='-Bstatic'
10506 if test -d /usr
/nec
;then
10507 lt_prog_compiler_pic
='-Kconform_pic'
10508 lt_prog_compiler_static
='-Bstatic'
10512 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
10513 lt_prog_compiler_wl
='-Wl,'
10514 lt_prog_compiler_pic
='-KPIC'
10515 lt_prog_compiler_static
='-Bstatic'
10519 lt_prog_compiler_wl
='-Wl,'
10520 lt_prog_compiler_can_build_shared
=no
10524 lt_prog_compiler_pic
='-pic'
10525 lt_prog_compiler_static
='-Bstatic'
10529 lt_prog_compiler_can_build_shared
=no
10535 # For platforms which do not support PIC, -DPIC is meaningless:
10537 lt_prog_compiler_pic
=
10540 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10546 if ${lt_cv_prog_compiler_pic+:} false
; then :
10547 $as_echo_n "(cached) " >&6
10549 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10552 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10553 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
10556 # Check to make sure the PIC flag actually works.
10558 if test -n "$lt_prog_compiler_pic"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10560 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10561 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
10562 $as_echo_n "(cached) " >&6
10564 lt_cv_prog_compiler_pic_works
=no
10565 ac_outfile
=conftest.
$ac_objext
10566 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10567 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
10568 # Insert the option either (1) after the last *FLAGS variable, or
10569 # (2) before a word containing "conftest.", or (3) at the end.
10570 # Note that $ac_compile itself does not contain backslashes and begins
10571 # with a dollar sign (not a hyphen), so the echo should work correctly.
10572 # The option is referenced via a variable to avoid confusing sed.
10573 lt_compile
=`echo "$ac_compile" | $SED \
10574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10576 -e 's:$: $lt_compiler_flag:'`
10577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10578 (eval "$lt_compile" 2>conftest.err
)
10580 cat conftest.err
>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 if (exit $ac_status) && test -s "$ac_outfile"; then
10583 # The compiler can only warn and ignore the option if not recognized
10584 # So say no if there are warnings other than the usual output.
10585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10586 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10587 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
10588 lt_cv_prog_compiler_pic_works
=yes
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10595 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10597 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
10598 case $lt_prog_compiler_pic in
10600 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10603 lt_prog_compiler_pic
=
10604 lt_prog_compiler_can_build_shared
=no
10620 # Check to make sure the static flag actually works.
10622 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10625 if ${lt_cv_prog_compiler_static_works+:} false
; then :
10626 $as_echo_n "(cached) " >&6
10628 lt_cv_prog_compiler_static_works
=no
10629 save_LDFLAGS
="$LDFLAGS"
10630 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10631 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10632 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err
; then
10636 # Append any errors to the config.log.
10637 cat conftest.err
1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10640 if diff conftest.exp conftest.er2
>/dev
/null
; then
10641 lt_cv_prog_compiler_static_works
=yes
10644 lt_cv_prog_compiler_static_works
=yes
10648 LDFLAGS
="$save_LDFLAGS"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10652 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10654 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
10657 lt_prog_compiler_static
=
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10669 $as_echo_n "(cached) " >&6
10671 lt_cv_prog_compiler_c_o
=no
10672 $RM -r conftest
2>/dev
/null
10676 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10678 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10679 # Insert the option either (1) after the last *FLAGS variable, or
10680 # (2) before a word containing "conftest.", or (3) at the end.
10681 # Note that $ac_compile itself does not contain backslashes and begins
10682 # with a dollar sign (not a hyphen), so the echo should work correctly.
10683 lt_compile
=`echo "$ac_compile" | $SED \
10684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10686 -e 's:$: $lt_compiler_flag:'`
10687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10688 (eval "$lt_compile" 2>out
/conftest.err
)
10690 cat out
/conftest.err
>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10694 # The compiler can only warn and ignore the option if not recognized
10695 # So say no if there are warnings
10696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
10697 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10698 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10699 lt_cv_prog_compiler_c_o
=yes
10704 # SGI C++ compiler will create directory out/ii_files/ for
10705 # template instantiation
10706 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10707 $RM out
/* && rmdir out
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10714 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10723 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10724 $as_echo_n "(cached) " >&6
10726 lt_cv_prog_compiler_c_o
=no
10727 $RM -r conftest
2>/dev
/null
10731 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10733 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10734 # Insert the option either (1) after the last *FLAGS variable, or
10735 # (2) before a word containing "conftest.", or (3) at the end.
10736 # Note that $ac_compile itself does not contain backslashes and begins
10737 # with a dollar sign (not a hyphen), so the echo should work correctly.
10738 lt_compile
=`echo "$ac_compile" | $SED \
10739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10741 -e 's:$: $lt_compiler_flag:'`
10742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10743 (eval "$lt_compile" 2>out
/conftest.err
)
10745 cat out
/conftest.err
>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10749 # The compiler can only warn and ignore the option if not recognized
10750 # So say no if there are warnings
10751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
10752 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10753 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10754 lt_cv_prog_compiler_c_o
=yes
10759 # SGI C++ compiler will create directory out/ii_files/ for
10760 # template instantiation
10761 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10762 $RM out
/* && rmdir out
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10769 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10774 hard_links
="nottested"
10775 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
10776 # do not overwrite the value of need_locks provided by the user
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10778 $as_echo_n "checking if we can lock with hard links... " >&6; }
10781 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10783 ln conftest.a conftest.b
2>&5 || hard_links
=no
10784 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10786 $as_echo "$hard_links" >&6; }
10787 if test "$hard_links" = no
; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10805 allow_undefined_flag
=
10806 always_export_symbols
=no
10808 archive_expsym_cmds
=
10809 compiler_needs_object
=no
10810 enable_shared_with_static_runtimes
=no
10811 export_dynamic_flag_spec
=
10812 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10813 hardcode_automatic
=no
10815 hardcode_direct_absolute
=no
10816 hardcode_libdir_flag_spec
=
10817 hardcode_libdir_separator
=
10818 hardcode_minus_L
=no
10819 hardcode_shlibpath_var
=unsupported
10821 link_all_deplibs
=unknown
10823 module_expsym_cmds
=
10824 old_archive_from_new_cmds
=
10825 old_archive_from_expsyms_cmds
=
10826 thread_safe_flag_spec
=
10827 whole_archive_flag_spec
=
10828 # include_expsyms should be a list of space-separated symbols to be *always*
10829 # included in the symbol list
10831 # exclude_expsyms can be an extended regexp of symbols to exclude
10832 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10834 # as well as any symbol that contains `d'.
10835 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10837 # platforms (ab)use it in PIC code, but their linkers get confused if
10838 # the symbol is explicitly referenced. Since portable code cannot
10839 # rely on this symbol name, it's probably fine to never include it in
10840 # preloaded symbol tables.
10841 # Exclude shared library initialization/finalization symbols.
10842 extract_expsyms_cmds
=
10845 cygwin
* | mingw
* | pw32
* | cegcc
*)
10846 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10847 # When not using gcc, we currently assume that we are using
10848 # Microsoft Visual C++.
10849 if test "$GCC" != yes; then
10854 # we just hope/assume this is gcc and not c89 (= MSVC++)
10864 # On some targets, GNU ld is compatible enough with the native linker
10865 # that we're better off using the native interface for both.
10866 lt_use_gnu_ld_interface
=no
10867 if test "$with_gnu_ld" = yes; then
10870 # The AIX port of GNU ld has always aspired to compatibility
10871 # with the native linker. However, as the warning in the GNU ld
10872 # block says, versions before 2.19.5* couldn't really create working
10873 # shared libraries, regardless of the interface used.
10874 case `$LD -v 2>&1` in
10875 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
10876 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
10877 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
10879 lt_use_gnu_ld_interface
=yes
10884 lt_use_gnu_ld_interface
=yes
10889 if test "$lt_use_gnu_ld_interface" = yes; then
10890 # If archive_cmds runs LD, not CC, wlarc should be empty
10893 # Set some defaults for GNU ld with shared library support. These
10894 # are reset later if shared libraries are not supported. Putting them
10895 # here allows them to be overridden if necessary.
10896 runpath_var
=LD_RUN_PATH
10897 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10898 export_dynamic_flag_spec
='${wl}--export-dynamic'
10899 # ancient GNU ld didn't support --whole-archive et. al.
10900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev
/null
; then
10901 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10903 whole_archive_flag_spec
=
10905 supports_anon_versioning
=no
10906 case `$LD -v 2>&1` in
10907 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10908 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
10909 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10910 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10911 *\
2.11.
*) ;; # other 2.11 versions
10912 *) supports_anon_versioning
=yes ;;
10915 # See if GNU ld supports shared libraries.
10918 # On AIX/PPC, the GNU linker is very broken
10919 if test "$host_cpu" != ia64
; then
10923 *** Warning: the GNU linker, at least up to release 2.19, is reported
10924 *** to be unable to reliably create shared libraries on AIX.
10925 *** Therefore, libtool is disabling shared libraries support. If you
10926 *** really care for shared libraries, you may want to install binutils
10927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10928 *** You will then need to restart the configuration process.
10937 # see comment about AmigaOS4 .so support
10938 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10939 archive_expsym_cmds
=''
10942 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)'
10943 hardcode_libdir_flag_spec
='-L$libdir'
10944 hardcode_minus_L
=yes
10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10951 allow_undefined_flag
=unsupported
10952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953 # support --undefined. This deserves some investigation. FIXME
10954 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10960 cygwin
* | mingw
* | pw32
* | cegcc
*)
10961 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10962 # as there is no search path for DLLs.
10963 hardcode_libdir_flag_spec
='-L$libdir'
10964 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10965 allow_undefined_flag
=unsupported
10966 always_export_symbols
=no
10967 enable_shared_with_static_runtimes
=yes
10968 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'
10969 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
10972 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10973 # If the export-symbols file already is a .def file (1st line
10974 # is EXPORTS), use it as is; otherwise, prepend...
10975 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10976 cp $export_symbols $output_objdir/$soname.def;
10978 echo EXPORTS > $output_objdir/$soname.def;
10979 cat $export_symbols >> $output_objdir/$soname.def;
10981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10988 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10989 link_all_deplibs
=yes
10994 hardcode_shlibpath_var
=no
10995 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10996 export_dynamic_flag_spec
='${wl}-E'
10997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10998 # Instead, shared libraries are loaded at an image base (0x10000000 by
10999 # default) and relocated if they conflict, which is a slow very memory
11000 # consuming and fragmenting process. To avoid this, we pick a random,
11001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11003 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11004 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'
11007 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11009 if test "$host_os" = linux
-dietlibc; then
11010 case $cc_basename in
11011 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
11014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
11015 && test "$tmp_diet" = no
11017 tmp_addflag
=' $pic_flag'
11018 tmp_sharedflag
='-shared'
11019 case $cc_basename,$host_cpu in
11020 pgcc
*) # Portland Group C compiler
11021 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'
11022 tmp_addflag
=' $pic_flag'
11024 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11025 # Portland Group f77 and f90 compilers
11026 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'
11027 tmp_addflag
=' $pic_flag -Mnomain' ;;
11028 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11029 tmp_addflag
=' -i_dynamic' ;;
11030 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11031 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11032 ifc
* | ifort
*) # Intel Fortran compiler
11033 tmp_addflag
=' -nofor_main' ;;
11034 lf95
*) # Lahey Fortran 8.1
11035 whole_archive_flag_spec
=
11036 tmp_sharedflag
='--shared' ;;
11037 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11038 tmp_sharedflag
='-qmkshrobj'
11040 nvcc
*) # Cuda Compiler Driver 2.2
11041 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'
11042 compiler_needs_object
=yes
11045 case `$CC -V 2>&1 | sed 5q` in
11046 *Sun\ C
*) # Sun C 5.9
11047 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'
11048 compiler_needs_object
=yes
11049 tmp_sharedflag
='-G' ;;
11050 *Sun\ F
*) # Sun Fortran 8.3
11051 tmp_sharedflag
='-G' ;;
11053 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055 if test "x$supports_anon_versioning" = xyes
; then
11056 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11058 echo "local: *; };" >> $output_objdir/$libname.ver~
11059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11062 case $cc_basename in
11063 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
11064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11065 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
11066 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11067 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11068 if test "x$supports_anon_versioning" = xyes
; then
11069 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
11070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11071 echo "local: *; };" >> $output_objdir/$libname.ver~
11072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11082 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
11083 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11086 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
11096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11097 *** create shared libraries on Solaris systems. Therefore, libtool
11098 *** is disabling shared libraries support. We urge you to upgrade GNU
11099 *** binutils to release 2.9.1 or newer. Another option is to modify
11100 *** your PATH or compiler configuration so that the native linker is
11101 *** used, and then restart.
11104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
11105 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11112 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11113 case `$LD -v 2>&1` in
11114 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
11118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11119 *** reliably create shared libraries on SCO systems. Therefore, libtool
11120 *** is disabling shared libraries support. We urge you to upgrade GNU
11121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11122 *** your PATH or compiler configuration so that the native linker is
11123 *** used, and then restart.
11128 # For security reasons, it is highly recommended that you always
11129 # use absolute paths for naming shared libraries, and exclude the
11130 # DT_RUNPATH tag from executables and libraries. But doing so
11131 # requires that you compile everything twice, which is a pain.
11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
11133 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11134 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11135 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11144 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11146 hardcode_direct
=yes
11147 hardcode_shlibpath_var
=no
11151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
11152 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11153 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11160 if test "$ld_shlibs" = no
; then
11162 hardcode_libdir_flag_spec
=
11163 export_dynamic_flag_spec
=
11164 whole_archive_flag_spec
=
11167 # PORTME fill in a description of your system's linker (not GNU ld)
11170 allow_undefined_flag
=unsupported
11171 always_export_symbols
=yes
11172 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'
11173 # Note: this linker hardcodes the directories in LIBPATH if there
11174 # are no directories specified by -L.
11175 hardcode_minus_L
=yes
11176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11177 # Neither direct hardcoding nor static linking is supported with a
11179 hardcode_direct
=unsupported
11184 if test "$host_cpu" = ia64
; then
11185 # On IA64, the linker does run time linking by default, so we don't
11186 # have to do anything special.
11187 aix_use_runtimelinking
=no
11188 exp_sym_flag
='-Bexport'
11191 # If we're using GNU nm, then we don't want the "-C" option.
11192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11193 # Also, AIX nm treats weak defined symbols like other global
11194 # defined symbols, whereas GNU nm marks them as "W".
11195 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
11196 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11198 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11200 aix_use_runtimelinking
=no
11202 # Test if we are trying to use run time linking or normal
11203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11204 # need to do runtime linking.
11205 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11206 for ld_flag
in $LDFLAGS; do
11207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11208 aix_use_runtimelinking
=yes
11215 exp_sym_flag
='-bexport'
11216 no_entry_flag
='-bnoentry'
11219 # When large executables or shared objects are built, AIX ld can
11220 # have problems creating the table of contents. If linking a library
11221 # or program results in "error TOC overflow" add -mminimal-toc to
11222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11226 hardcode_direct
=yes
11227 hardcode_direct_absolute
=yes
11228 hardcode_libdir_separator
=':'
11229 link_all_deplibs
=yes
11230 file_list_spec
='${wl}-f,'
11232 if test "$GCC" = yes; then
11233 case $host_os in aix4.
[012]|aix4.
[012].
*)
11234 # We only want to do this on AIX 4.2 and lower, the check
11235 # below for broken collect2 doesn't work under 4.3+
11236 collect2name
=`${CC} -print-prog-name=collect2`
11237 if test -f "$collect2name" &&
11238 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
11240 # We have reworked collect2
11243 # We have old collect2
11244 hardcode_direct
=unsupported
11245 # It fails to find uninstalled libraries when the uninstalled
11246 # path is not listed in the libpath. Setting hardcode_minus_L
11247 # to unsupported forces relinking
11248 hardcode_minus_L
=yes
11249 hardcode_libdir_flag_spec
='-L$libdir'
11250 hardcode_libdir_separator
=
11254 shared_flag
='-shared'
11255 if test "$aix_use_runtimelinking" = yes; then
11256 shared_flag
="$shared_flag "'${wl}-G'
11260 if test "$host_cpu" = ia64
; then
11261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11262 # chokes on -Wl,-G. The following line is correct:
11265 if test "$aix_use_runtimelinking" = yes; then
11266 shared_flag
='${wl}-G'
11268 shared_flag
='${wl}-bM:SRE'
11273 export_dynamic_flag_spec
='${wl}-bexpall'
11274 # It seems that -bexpall does not export symbols beginning with
11275 # underscore (_), so it is better to generate a list of symbols to export.
11276 always_export_symbols
=yes
11277 if test "$aix_use_runtimelinking" = yes; then
11278 # Warning - without using the other runtime loading flags (-brtl),
11279 # -berok will link without error, but may produce a broken library.
11280 allow_undefined_flag
='-berok'
11281 # Determine the default libpath from the value encoded in an
11282 # empty executable.
11283 if test "${lt_cv_aix_libpath+set}" = set; then
11284 aix_libpath
=$lt_cv_aix_libpath
11286 if ${lt_cv_aix_libpath_+:} false
; then :
11287 $as_echo_n "(cached) " >&6
11289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11300 if ac_fn_c_try_link
"$LINENO"; then :
11302 lt_aix_libpath_sed
='
11303 /Import File Strings/,/^$/ {
11305 s/^0 *\([^ ]*\) *$/\1/
11309 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11310 # Check for a 64-bit object if we didn't find anything.
11311 if test -z "$lt_cv_aix_libpath_"; then
11312 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11315 rm -f core conftest.err conftest.
$ac_objext \
11316 conftest
$ac_exeext conftest.
$ac_ext
11317 if test -z "$lt_cv_aix_libpath_"; then
11318 lt_cv_aix_libpath_
="/usr/lib:/lib"
11323 aix_libpath
=$lt_cv_aix_libpath_
11326 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11327 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11329 if test "$host_cpu" = ia64
; then
11330 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
11331 allow_undefined_flag
="-z nodefs"
11332 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"
11334 # Determine the default libpath from the value encoded in an
11335 # empty executable.
11336 if test "${lt_cv_aix_libpath+set}" = set; then
11337 aix_libpath
=$lt_cv_aix_libpath
11339 if ${lt_cv_aix_libpath_+:} false
; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11353 if ac_fn_c_try_link
"$LINENO"; then :
11355 lt_aix_libpath_sed
='
11356 /Import File Strings/,/^$/ {
11358 s/^0 *\([^ ]*\) *$/\1/
11362 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11363 # Check for a 64-bit object if we didn't find anything.
11364 if test -z "$lt_cv_aix_libpath_"; then
11365 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11368 rm -f core conftest.err conftest.
$ac_objext \
11369 conftest
$ac_exeext conftest.
$ac_ext
11370 if test -z "$lt_cv_aix_libpath_"; then
11371 lt_cv_aix_libpath_
="/usr/lib:/lib"
11376 aix_libpath
=$lt_cv_aix_libpath_
11379 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11380 # Warning - without using the other run time loading flags,
11381 # -berok will link without error, but may produce a broken library.
11382 no_undefined_flag
=' ${wl}-bernotok'
11383 allow_undefined_flag
=' ${wl}-berok'
11384 if test "$with_gnu_ld" = yes; then
11385 # We only use this code for GNU lds that support --whole-archive.
11386 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11388 # Exported symbols can be pulled into shared objects from archives
11389 whole_archive_flag_spec
='$convenience'
11391 archive_cmds_need_lc
=yes
11392 # This is similar to how AIX traditionally builds its shared libraries.
11393 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11401 # see comment about AmigaOS4 .so support
11402 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11403 archive_expsym_cmds
=''
11406 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)'
11407 hardcode_libdir_flag_spec
='-L$libdir'
11408 hardcode_minus_L
=yes
11414 export_dynamic_flag_spec
=-rdynamic
11417 cygwin
* | mingw
* | pw32
* | cegcc
*)
11418 # When not using gcc, we currently assume that we are using
11419 # Microsoft Visual C++.
11420 # hardcode_libdir_flag_spec is actually meaningless, as there is
11421 # no search path for DLLs.
11422 case $cc_basename in
11425 hardcode_libdir_flag_spec
=' '
11426 allow_undefined_flag
=unsupported
11427 always_export_symbols
=yes
11429 # Tell ltmain to make .lib files, not .a files.
11431 # Tell ltmain to make .dll files, not .so files.
11433 # FIXME: Setting linknames here is a bad hack.
11434 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11435 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11436 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
11438 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
11440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11442 # The linker will not automatically build a static lib if we build a DLL.
11443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11444 enable_shared_with_static_runtimes
=yes
11445 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11446 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11448 old_postinstall_cmds
='chmod 644 $oldlib'
11449 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11450 lt_tool_outputfile="@TOOL_OUTPUT@"~
11451 case $lt_outputfile in
11454 lt_outputfile="$lt_outputfile.exe"
11455 lt_tool_outputfile="$lt_tool_outputfile.exe"
11458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11460 $RM "$lt_outputfile.manifest";
11464 # Assume MSVC wrapper
11465 hardcode_libdir_flag_spec
=' '
11466 allow_undefined_flag
=unsupported
11467 # Tell ltmain to make .lib files, not .a files.
11469 # Tell ltmain to make .dll files, not .so files.
11471 # FIXME: Setting linknames here is a bad hack.
11472 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11473 # The linker will automatically build a .lib file if we build a DLL.
11474 old_archive_from_new_cmds
='true'
11475 # FIXME: Should let the user specify the lib program.
11476 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11477 enable_shared_with_static_runtimes
=yes
11482 darwin
* | rhapsody
*)
11485 archive_cmds_need_lc
=no
11487 hardcode_automatic
=yes
11488 hardcode_shlibpath_var
=unsupported
11489 if test "$lt_cv_ld_force_load" = "yes"; then
11490 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\"`'
11493 whole_archive_flag_spec
=''
11495 link_all_deplibs
=yes
11496 allow_undefined_flag
="$_lt_dar_allow_undefined"
11497 case $cc_basename in
11498 ifort
*) _lt_dar_can_shared
=yes ;;
11499 *) _lt_dar_can_shared
=$GCC ;;
11501 if test "$_lt_dar_can_shared" = "yes"; then
11502 output_verbose_link_cmd
=func_echo_all
11503 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11504 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11505 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}"
11506 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}"
11515 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11516 hardcode_libdir_flag_spec
='-L$libdir'
11517 hardcode_shlibpath_var
=no
11520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11521 # support. Future versions do this automatically, but an explicit c++rt0.o
11522 # does not break anything, and helps significantly (at the cost of a little
11525 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11526 hardcode_libdir_flag_spec
='-R$libdir'
11527 hardcode_direct
=yes
11528 hardcode_shlibpath_var
=no
11531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11533 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11534 hardcode_direct
=yes
11535 hardcode_minus_L
=yes
11536 hardcode_shlibpath_var
=no
11539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11540 freebsd
* | dragonfly
*)
11541 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11542 hardcode_libdir_flag_spec
='-R$libdir'
11543 hardcode_direct
=yes
11544 hardcode_shlibpath_var
=no
11548 if test "$GCC" = yes; then
11549 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11551 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11553 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11554 hardcode_libdir_separator
=:
11555 hardcode_direct
=yes
11557 # hardcode_minus_L: Not really in the search PATH,
11558 # but as the default location of the library.
11559 hardcode_minus_L
=yes
11560 export_dynamic_flag_spec
='${wl}-E'
11564 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11565 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11567 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11569 if test "$with_gnu_ld" = no
; then
11570 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11571 hardcode_libdir_separator
=:
11572 hardcode_direct
=yes
11573 hardcode_direct_absolute
=yes
11574 export_dynamic_flag_spec
='${wl}-E'
11575 # hardcode_minus_L: Not really in the search PATH,
11576 # but as the default location of the library.
11577 hardcode_minus_L
=yes
11582 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11585 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11588 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11591 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11600 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11604 # Older versions of the 11.00 compiler do not understand -b yet
11605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11607 $as_echo_n "checking if $CC understands -b... " >&6; }
11608 if ${lt_cv_prog_compiler__b+:} false
; then :
11609 $as_echo_n "(cached) " >&6
11611 lt_cv_prog_compiler__b
=no
11612 save_LDFLAGS
="$LDFLAGS"
11613 LDFLAGS
="$LDFLAGS -b"
11614 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11615 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11616 # The linker can only warn and ignore the option if not recognized
11617 # So say no if there are warnings
11618 if test -s conftest.err
; then
11619 # Append any errors to the config.log.
11620 cat conftest.err
1>&5
11621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11622 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11623 if diff conftest.exp conftest.er2
>/dev
/null
; then
11624 lt_cv_prog_compiler__b
=yes
11627 lt_cv_prog_compiler__b
=yes
11631 LDFLAGS
="$save_LDFLAGS"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11637 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11638 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11646 if test "$with_gnu_ld" = no
; then
11647 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11648 hardcode_libdir_separator
=:
11653 hardcode_shlibpath_var
=no
11656 hardcode_direct
=yes
11657 hardcode_direct_absolute
=yes
11658 export_dynamic_flag_spec
='${wl}-E'
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L
=yes
11668 irix5
* | irix6
* | nonstopux
*)
11669 if test "$GCC" = yes; then
11670 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'
11671 # Try to use the -exported_symbol ld option, if it does not
11672 # work, assume that -exports_file does not work either and
11673 # implicitly export all symbols.
11674 # This should be the same for all languages, so no per-tag cache variable.
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11677 if ${lt_cv_irix_exported_symbol+:} false
; then :
11678 $as_echo_n "(cached) " >&6
11680 save_LDFLAGS
="$LDFLAGS"
11681 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 int foo (void) { return 0; }
11686 if ac_fn_c_try_link
"$LINENO"; then :
11687 lt_cv_irix_exported_symbol
=yes
11689 lt_cv_irix_exported_symbol
=no
11691 rm -f core conftest.err conftest.
$ac_objext \
11692 conftest
$ac_exeext conftest.
$ac_ext
11693 LDFLAGS
="$save_LDFLAGS"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11697 if test "$lt_cv_irix_exported_symbol" = yes; then
11698 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'
11701 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'
11702 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'
11704 archive_cmds_need_lc
='no'
11705 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11706 hardcode_libdir_separator
=:
11708 link_all_deplibs
=yes
11712 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
11713 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11715 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11717 hardcode_libdir_flag_spec
='-R$libdir'
11718 hardcode_direct
=yes
11719 hardcode_shlibpath_var
=no
11723 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11724 hardcode_direct
=yes
11725 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11726 hardcode_libdir_separator
=:
11727 hardcode_shlibpath_var
=no
11734 if test -f /usr
/libexec
/ld.so
; then
11735 hardcode_direct
=yes
11736 hardcode_shlibpath_var
=no
11737 hardcode_direct_absolute
=yes
11738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11741 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11742 export_dynamic_flag_spec
='${wl}-E'
11745 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11746 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11747 hardcode_libdir_flag_spec
='-R$libdir'
11750 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11761 hardcode_libdir_flag_spec
='-L$libdir'
11762 hardcode_minus_L
=yes
11763 allow_undefined_flag
=unsupported
11764 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11765 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11769 if test "$GCC" = yes; then
11770 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11771 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'
11773 allow_undefined_flag
=' -expect_unresolved \*'
11774 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'
11776 archive_cmds_need_lc
='no'
11777 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11778 hardcode_libdir_separator
=:
11781 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11782 if test "$GCC" = yes; then
11783 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11784 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'
11785 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11787 allow_undefined_flag
=' -expect_unresolved \*'
11788 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'
11789 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~
11790 $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'
11792 # Both c and cxx compiler support -rpath directly
11793 hardcode_libdir_flag_spec
='-rpath $libdir'
11795 archive_cmds_need_lc
='no'
11796 hardcode_libdir_separator
=:
11800 no_undefined_flag
=' -z defs'
11801 if test "$GCC" = yes; then
11803 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11805 $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'
11807 case `$CC -V 2>&1` in
11810 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11816 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11822 hardcode_libdir_flag_spec
='-R$libdir'
11823 hardcode_shlibpath_var
=no
11825 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11827 # The compiler driver will combine and reorder linker options,
11828 # but understands `-z linker_flag'. GCC discards it without `$wl',
11829 # but is careful enough not to reorder.
11830 # Supported since Solaris 2.6 (maybe 2.5.1?)
11831 if test "$GCC" = yes; then
11832 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11834 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11838 link_all_deplibs
=yes
11842 if test "x$host_vendor" = xsequent
; then
11843 # Use $CC to link under sequent, because it throws in some extra .o
11844 # files that make .init and .fini sections work.
11845 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11847 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11849 hardcode_libdir_flag_spec
='-L$libdir'
11850 hardcode_direct
=yes
11851 hardcode_minus_L
=yes
11852 hardcode_shlibpath_var
=no
11856 case $host_vendor in
11858 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_direct
=yes # is this really true???
11862 ## LD is ld it makes a PLAMLIB
11863 ## CC just makes a GrossModule.
11864 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11865 reload_cmds
='$CC -r -o $output$reload_objs'
11869 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11873 runpath_var
='LD_RUN_PATH'
11874 hardcode_shlibpath_var
=no
11878 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879 hardcode_shlibpath_var
=no
11880 export_dynamic_flag_spec
='-Bexport'
11884 if test -d /usr
/nec
; then
11885 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11886 hardcode_shlibpath_var
=no
11887 runpath_var
=LD_RUN_PATH
11888 hardcode_runpath_var
=yes
11893 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11894 no_undefined_flag
='${wl}-z,text'
11895 archive_cmds_need_lc
=no
11896 hardcode_shlibpath_var
=no
11897 runpath_var
='LD_RUN_PATH'
11899 if test "$GCC" = yes; then
11900 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908 sysv5
* | sco3.2v5
* | sco5v6
*)
11909 # Note: We can NOT use -z defs as we might desire, because we do not
11910 # link with -lc, and that would cause any symbols used from libc to
11911 # always be unresolved, which means just about no library would
11912 # ever link correctly. If we're not using GNU ld we use -z text
11913 # though, which does catch some bad symbols but isn't as heavy-handed
11915 no_undefined_flag
='${wl}-z,text'
11916 allow_undefined_flag
='${wl}-z,nodefs'
11917 archive_cmds_need_lc
=no
11918 hardcode_shlibpath_var
=no
11919 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11920 hardcode_libdir_separator
=':'
11921 link_all_deplibs
=yes
11922 export_dynamic_flag_spec
='${wl}-Bexport'
11923 runpath_var
='LD_RUN_PATH'
11925 if test "$GCC" = yes; then
11926 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11936 hardcode_libdir_flag_spec
='-L$libdir'
11937 hardcode_shlibpath_var
=no
11945 if test x
$host_vendor = xsni
; then
11947 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11948 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11955 $as_echo "$ld_shlibs" >&6; }
11956 test "$ld_shlibs" = no
&& can_build_shared
=no
11958 with_gnu_ld
=$with_gnu_ld
11975 # Do we need to explicitly link libc?
11977 case "x$archive_cmds_need_lc" in
11979 # Assume -lc should be added
11980 archive_cmds_need_lc
=yes
11982 if test "$enable_shared" = yes && test "$GCC" = yes; then
11983 case $archive_cmds in
11985 # FIXME: we may have to deal with multi-command sequences.
11988 # Test whether the compiler implicitly links with -lc since on some
11989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11990 # to ld, don't add -lc before -lgcc.
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11993 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11994 $as_echo_n "(cached) " >&6
11997 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12000 (eval $ac_compile) 2>&5
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; } 2>conftest.err
; then
12006 libobjs
=conftest.
$ac_objext
12008 wl
=$lt_prog_compiler_wl
12009 pic_flag
=$lt_prog_compiler_pic
12015 lt_save_allow_undefined_flag
=$allow_undefined_flag
12016 allow_undefined_flag
=
12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12018 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021 test $ac_status = 0; }
12023 lt_cv_archive_cmds_need_lc
=no
12025 lt_cv_archive_cmds_need_lc
=yes
12027 allow_undefined_flag
=$lt_save_allow_undefined_flag
12029 cat conftest.err
1>&5
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12036 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12197 if test "$GCC" = yes; then
12199 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
12200 *) lt_awk_arg
="/^libraries:/" ;;
12203 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
12204 *) lt_sed_strip_eq
="s,=/,/,g" ;;
12206 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12207 case $lt_search_path_spec in
12209 # if the path contains ";" then we assume it to be the separator
12210 # otherwise default to the standard path separator (i.e. ":") - it is
12211 # assumed that no part of a normal pathname contains ";" but that should
12212 # okay in the real world where ";" in dirpaths is itself problematic.
12213 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12216 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12219 # Ok, now we have the path, separated by spaces, we can step through it
12220 # and add multilib dir if necessary.
12221 lt_tmp_lt_search_path_spec
=
12222 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12223 for lt_sys_path
in $lt_search_path_spec; do
12224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12225 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12227 test -d "$lt_sys_path" && \
12228 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12231 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12232 BEGIN {RS=" "; FS="/|\n";} {
12235 for (lt_i = NF; lt_i > 0; lt_i--) {
12236 if ($lt_i != "" && $lt_i != ".") {
12237 if ($lt_i == "..") {
12240 if (lt_count == 0) {
12241 lt_foo="/" $lt_i lt_foo;
12248 if (lt_foo != "") { lt_freq[lt_foo]++; }
12249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12251 # AWK program above erroneously prepends '/' to C:/dos/paths
12254 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
12255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12257 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12259 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12261 library_names_spec
=
12262 libname_spec
='lib$name'
12266 postuninstall_cmds
=
12270 shlibpath_overrides_runpath
=unknown
12272 dynamic_linker
="$host_os ld.so"
12273 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12274 need_lib_prefix
=unknown
12275 hardcode_into_libs
=no
12277 # when you set need_version to no, make sure it does not cause -set_version
12278 # flags to be left without arguments
12279 need_version
=unknown
12283 version_type
=linux
# correct to gnu/linux during the next big refactor
12284 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12285 shlibpath_var
=LIBPATH
12287 # AIX 3 has no versioning support, so we append a major version to the name.
12288 soname_spec
='${libname}${release}${shared_ext}$major'
12292 version_type
=linux
# correct to gnu/linux during the next big refactor
12295 hardcode_into_libs
=yes
12296 if test "$host_cpu" = ia64
; then
12297 # AIX 5 supports IA64
12298 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12299 shlibpath_var
=LD_LIBRARY_PATH
12301 # With GCC up to 2.95.x, collect2 would create an import file
12302 # for dependence libraries. The import file would start with
12303 # the line `#! .'. This would cause the generated library to
12304 # depend on `.', always an invalid library. This was fixed in
12305 # development snapshots of GCC prior to 3.0.
12307 aix4
| aix4.
[01] | aix4.
[01].
*)
12308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
12313 can_build_shared
=no
12317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12318 # soname into executable. Probably we can add versioning support to
12319 # collect2, so additional links can be useful in future.
12320 if test "$aix_use_runtimelinking" = yes; then
12321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12322 # instead of lib<name>.a to let people know that these are not
12323 # typical AIX shared libraries.
12324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 # We preserve .a as extension for shared libraries through AIX4.2
12327 # and later when we are not doing run time linking.
12328 library_names_spec
='${libname}${release}.a $libname.a'
12329 soname_spec
='${libname}${release}${shared_ext}$major'
12331 shlibpath_var
=LIBPATH
12338 # Since July 2007 AmigaOS4 officially supports .so libraries.
12339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 library_names_spec
='$libname.ixlibrary $libname.a'
12344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12345 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12351 library_names_spec
='${libname}${shared_ext}'
12352 dynamic_linker
="$host_os ld.so"
12353 shlibpath_var
=LIBRARY_PATH
12357 version_type
=linux
# correct to gnu/linux during the next big refactor
12359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360 soname_spec
='${libname}${release}${shared_ext}$major'
12361 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12362 shlibpath_var
=LD_LIBRARY_PATH
12363 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12364 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12365 # the default ld.so.conf also contains /usr/contrib/lib and
12366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12367 # libtool to hard-code these into programs
12370 cygwin
* | mingw
* | pw32
* | cegcc
*)
12371 version_type
=windows
12376 case $GCC,$cc_basename in
12379 library_names_spec
='$libname.dll.a'
12380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12381 postinstall_cmds
='base_file=`basename \${file}`~
12382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12383 dldir=$destdir/`dirname \$dlpath`~
12384 test -d \$dldir || mkdir -p \$dldir~
12385 $install_prog $dir/$dlname \$dldir/$dlname~
12386 chmod a+x \$dldir/$dlname~
12387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12390 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12391 dlpath=$dir/\$dldll~
12393 shlibpath_overrides_runpath
=yes
12397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12398 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
12400 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12403 # MinGW DLLs use traditional 'lib' prefix
12404 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
12407 # pw32 DLLs use 'pw' prefix rather than 'lib'
12408 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
12411 dynamic_linker
='Win32 ld.exe'
12416 libname_spec
='$name'
12417 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
12418 library_names_spec
='${libname}.dll.lib'
12422 sys_lib_search_path_spec
=
12425 for lt_path
in $LIB
12428 # Let DOS variable expansion print the short 8.3 style file name.
12429 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12430 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12433 # Convert to MSYS style.
12434 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12437 # Convert to unix form, then to dos form, then back to unix form
12438 # but this time dos style (no spaces!) so that the unix form looks
12439 # like /cygdrive/c/PROGRA~1:/cygdr...
12440 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12441 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12442 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12445 sys_lib_search_path_spec
="$LIB"
12446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
12447 # It is most probably a Windows format PATH.
12448 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12450 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12452 # FIXME: find the short name or the path components, as spaces are
12453 # common. (e.g. "Program Files" -> "PROGRA~1")
12457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12458 postinstall_cmds
='base_file=`basename \${file}`~
12459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12460 dldir=$destdir/`dirname \$dlpath`~
12461 test -d \$dldir || mkdir -p \$dldir~
12462 $install_prog $dir/$dlname \$dldir/$dlname'
12463 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12464 dlpath=$dir/\$dldll~
12466 shlibpath_overrides_runpath
=yes
12467 dynamic_linker
='Win32 link.exe'
12471 # Assume MSVC wrapper
12472 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
12473 dynamic_linker
='Win32 ld.exe'
12476 # FIXME: first we should search . and the directory the executable is in
12480 darwin
* | rhapsody
*)
12481 dynamic_linker
="$host_os dyld"
12482 version_type
=darwin
12485 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12486 soname_spec
='${libname}${release}${major}$shared_ext'
12487 shlibpath_overrides_runpath
=yes
12488 shlibpath_var
=DYLD_LIBRARY_PATH
12489 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12491 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12492 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12496 version_type
=linux
# correct to gnu/linux during the next big refactor
12499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12500 soname_spec
='${libname}${release}${shared_ext}$major'
12501 shlibpath_var
=LD_LIBRARY_PATH
12504 freebsd
* | dragonfly
*)
12505 # DragonFly does not have aout. When/if they implement a new
12506 # versioning mechanism, adjust this.
12507 if test -x /usr
/bin
/objformat
; then
12508 objformat
=`/usr/bin/objformat`
12511 freebsd
[23].
*) objformat
=aout
;;
12512 *) objformat
=elf
;;
12515 version_type
=freebsd
-$objformat
12516 case $version_type in
12518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12523 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12527 shlibpath_var
=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath
=yes
12532 freebsd3.
[01]* | freebsdelf3.
[01]*)
12533 shlibpath_overrides_runpath
=yes
12534 hardcode_into_libs
=yes
12536 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12537 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12538 shlibpath_overrides_runpath
=no
12539 hardcode_into_libs
=yes
12541 *) # from 4.6 on, and DragonFly
12542 shlibpath_overrides_runpath
=yes
12543 hardcode_into_libs
=yes
12549 version_type
=linux
# correct to gnu/linux during the next big refactor
12552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12553 soname_spec
='${libname}${release}${shared_ext}$major'
12554 shlibpath_var
=LD_LIBRARY_PATH
12555 shlibpath_overrides_runpath
=no
12556 hardcode_into_libs
=yes
12560 version_type
=linux
# correct to gnu/linux during the next big refactor
12563 dynamic_linker
="$host_os runtime_loader"
12564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12565 soname_spec
='${libname}${release}${shared_ext}$major'
12566 shlibpath_var
=LIBRARY_PATH
12567 shlibpath_overrides_runpath
=yes
12568 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12569 hardcode_into_libs
=yes
12572 hpux9
* | hpux10
* | hpux11
*)
12573 # Give a soname corresponding to the major version so that dld.sl refuses to
12574 # link against other versions.
12581 hardcode_into_libs
=yes
12582 dynamic_linker
="$host_os dld.so"
12583 shlibpath_var
=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec
='${libname}${release}${shared_ext}$major'
12587 if test "X$HPUX_IA64_MODE" = X32
; then
12588 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12590 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12592 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12596 hardcode_into_libs
=yes
12597 dynamic_linker
="$host_os dld.sl"
12598 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12599 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 soname_spec
='${libname}${release}${shared_ext}$major'
12602 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12603 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12607 dynamic_linker
="$host_os dld.sl"
12608 shlibpath_var
=SHLIB_PATH
12609 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec
='${libname}${release}${shared_ext}$major'
12614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12615 postinstall_cmds
='chmod 555 $lib'
12616 # or fails outright, so override atomically:
12617 install_override_mode
=555
12621 version_type
=linux
# correct to gnu/linux during the next big refactor
12624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec
='${libname}${release}${shared_ext}$major'
12626 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12627 shlibpath_var
=LD_LIBRARY_PATH
12628 shlibpath_overrides_runpath
=no
12629 hardcode_into_libs
=yes
12632 irix5
* | irix6
* | nonstopux
*)
12634 nonstopux
*) version_type
=nonstopux
;;
12636 if test "$lt_cv_prog_gnu_ld" = yes; then
12637 version_type
=linux
# correct to gnu/linux during the next big refactor
12644 soname_spec
='${libname}${release}${shared_ext}$major'
12645 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12647 irix5
* | nonstopux
*)
12648 libsuff
= shlibsuff
=
12651 case $LD in # libtool.m4 will add one of these switches to LD
12652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12653 libsuff
= shlibsuff
= libmagic
=32-bit;;
12654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12655 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12657 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12658 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
12662 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12663 shlibpath_overrides_runpath
=no
12664 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12665 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12666 hardcode_into_libs
=yes
12669 # No shared lib support for Linux oldld, aout, or coff.
12670 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12674 # This must be glibc/ELF.
12675 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12676 version_type
=linux
# correct to gnu/linux during the next big refactor
12679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12680 soname_spec
='${libname}${release}${shared_ext}$major'
12681 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12682 shlibpath_var
=LD_LIBRARY_PATH
12683 shlibpath_overrides_runpath
=no
12685 # Some binutils ld are patched to set DT_RUNPATH
12686 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12689 lt_cv_shlibpath_overrides_runpath
=no
12690 save_LDFLAGS
=$LDFLAGS
12691 save_libdir
=$libdir
12692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12705 if ac_fn_c_try_link
"$LINENO"; then :
12706 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null
| grep "RUNPATH.*$libdir" >/dev
/null
; then :
12707 lt_cv_shlibpath_overrides_runpath
=yes
12710 rm -f core conftest.err conftest.
$ac_objext \
12711 conftest
$ac_exeext conftest.
$ac_ext
12712 LDFLAGS
=$save_LDFLAGS
12713 libdir
=$save_libdir
12717 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12719 # This implies no fast_install, which is unacceptable.
12720 # Some rework will be needed to allow for fast_install
12721 # before this can be enabled.
12722 hardcode_into_libs
=yes
12724 # Add ABI-specific directories to the system library path.
12725 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
12727 # Append ld.so.conf contents to the search path
12728 if test -f /etc
/ld.so.conf
; then
12729 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' ' '`
12730 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12734 # We used to test for /lib/ld.so.1 and disable shared libraries on
12735 # powerpc, because MkLinux only supported shared libraries with the
12736 # GNU dynamic linker. Since this was broken with cross compilers,
12737 # most powerpc-linux boxes support dynamic linking these days and
12738 # people can always --disable-shared, the test was removed, and we
12739 # assume the GNU/Linux dynamic linker is in use.
12740 dynamic_linker
='GNU/Linux ld.so'
12747 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
12748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12749 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12750 dynamic_linker
='NetBSD (a.out) ld.so'
12752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12753 soname_spec
='${libname}${release}${shared_ext}$major'
12754 dynamic_linker
='NetBSD ld.elf_so'
12756 shlibpath_var
=LD_LIBRARY_PATH
12757 shlibpath_overrides_runpath
=yes
12758 hardcode_into_libs
=yes
12762 version_type
=linux
# correct to gnu/linux during the next big refactor
12763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764 shlibpath_var
=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath
=yes
12772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 soname_spec
='${libname}${release}${shared_ext}$major'
12774 shlibpath_var
=LD_LIBRARY_PATH
12775 shlibpath_overrides_runpath
=no
12776 hardcode_into_libs
=yes
12777 dynamic_linker
='ldqnx.so'
12782 sys_lib_dlsearch_path_spec
="/usr/lib"
12784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12786 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
12787 *) need_version
=no
;;
12789 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12790 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12791 shlibpath_var
=LD_LIBRARY_PATH
12792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12794 openbsd2.
[89] | openbsd2.
[89].
*)
12795 shlibpath_overrides_runpath
=no
12798 shlibpath_overrides_runpath
=yes
12802 shlibpath_overrides_runpath
=yes
12807 libname_spec
='$name'
12810 library_names_spec
='$libname${shared_ext} $libname.a'
12811 dynamic_linker
='OS/2 ld.exe'
12812 shlibpath_var
=LIBPATH
12815 osf3
* | osf4
* | osf5
*)
12819 soname_spec
='${libname}${release}${shared_ext}$major'
12820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821 shlibpath_var
=LD_LIBRARY_PATH
12822 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12823 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12831 version_type
=linux
# correct to gnu/linux during the next big refactor
12834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec
='${libname}${release}${shared_ext}$major'
12836 shlibpath_var
=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath
=yes
12838 hardcode_into_libs
=yes
12839 # ldd complains unless libraries are executable
12840 postinstall_cmds
='chmod +x $lib'
12845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12846 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12847 shlibpath_var
=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath
=yes
12849 if test "$with_gnu_ld" = yes; then
12856 version_type
=linux
# correct to gnu/linux during the next big refactor
12857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12858 soname_spec
='${libname}${release}${shared_ext}$major'
12859 shlibpath_var
=LD_LIBRARY_PATH
12860 case $host_vendor in
12862 shlibpath_overrides_runpath
=no
12864 runpath_var
=LD_RUN_PATH
12872 shlibpath_overrides_runpath
=no
12873 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12879 if test -d /usr
/nec
;then
12880 version_type
=linux
# correct to gnu/linux during the next big refactor
12881 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12882 soname_spec
='$libname${shared_ext}.$major'
12883 shlibpath_var
=LD_LIBRARY_PATH
12887 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12888 version_type
=freebsd
-elf
12891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12892 soname_spec
='${libname}${release}${shared_ext}$major'
12893 shlibpath_var
=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath
=yes
12895 hardcode_into_libs
=yes
12896 if test "$with_gnu_ld" = yes; then
12897 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12899 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12902 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12906 sys_lib_dlsearch_path_spec
='/usr/lib'
12910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12911 version_type
=linux
# correct to gnu/linux during the next big refactor
12914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12915 shlibpath_var
=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath
=no
12917 hardcode_into_libs
=yes
12921 version_type
=linux
# correct to gnu/linux during the next big refactor
12922 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 soname_spec
='${libname}${release}${shared_ext}$major'
12924 shlibpath_var
=LD_LIBRARY_PATH
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12932 $as_echo "$dynamic_linker" >&6; }
12933 test "$dynamic_linker" = no
&& can_build_shared
=no
12935 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12936 if test "$GCC" = yes; then
12937 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12941 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12943 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12944 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13039 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13041 if test -n "$hardcode_libdir_flag_spec" ||
13042 test -n "$runpath_var" ||
13043 test "X$hardcode_automatic" = "Xyes" ; then
13045 # We can hardcode non-existent directories.
13046 if test "$hardcode_direct" != no
&&
13047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13048 # have to relink, otherwise we might link with an installed library
13049 # when we should be linking with a yet-to-be-installed one
13050 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13051 test "$hardcode_minus_L" != no
; then
13052 # Linking always hardcodes the temporary library directory.
13053 hardcode_action
=relink
13055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13056 hardcode_action
=immediate
13059 # We cannot hardcode anything, or else we can only hardcode existing
13061 hardcode_action
=unsupported
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13064 $as_echo "$hardcode_action" >&6; }
13066 if test "$hardcode_action" = relink
||
13067 test "$inherit_rpath" = yes; then
13068 # Fast installation is not supported
13069 enable_fast_install
=no
13070 elif test "$shlibpath_overrides_runpath" = yes ||
13071 test "$enable_shared" = no
; then
13072 # Fast installation is not necessary
13073 enable_fast_install
=needless
13081 if test "x$enable_dlopen" != xyes
; then
13082 enable_dlopen
=unknown
13083 enable_dlopen_self
=unknown
13084 enable_dlopen_self_static
=unknown
13091 lt_cv_dlopen
="load_add_on"
13093 lt_cv_dlopen_self
=yes
13096 mingw
* | pw32
* | cegcc
*)
13097 lt_cv_dlopen
="LoadLibrary"
13102 lt_cv_dlopen
="dlopen"
13107 # if libdl is installed we need to link against it
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13110 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13111 $as_echo_n "(cached) " >&6
13113 ac_check_lib_save_LIBS
=$LIBS
13115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13133 if ac_fn_c_try_link
"$LINENO"; then :
13134 ac_cv_lib_dl_dlopen
=yes
13136 ac_cv_lib_dl_dlopen
=no
13138 rm -f core conftest.err conftest.
$ac_objext \
13139 conftest
$ac_exeext conftest.
$ac_ext
13140 LIBS
=$ac_check_lib_save_LIBS
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13143 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13144 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13145 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13148 lt_cv_dlopen
="dyld"
13150 lt_cv_dlopen_self
=yes
13157 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
13158 if test "x$ac_cv_func_shl_load" = xyes
; then :
13159 lt_cv_dlopen
="shl_load"
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13162 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13163 if ${ac_cv_lib_dld_shl_load+:} false
; then :
13164 $as_echo_n "(cached) " >&6
13166 ac_check_lib_save_LIBS
=$LIBS
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13181 return shl_load ();
13186 if ac_fn_c_try_link
"$LINENO"; then :
13187 ac_cv_lib_dld_shl_load
=yes
13189 ac_cv_lib_dld_shl_load
=no
13191 rm -f core conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13193 LIBS
=$ac_check_lib_save_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13197 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
13198 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
13200 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
13201 if test "x$ac_cv_func_dlopen" = xyes
; then :
13202 lt_cv_dlopen
="dlopen"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13206 if ${ac_cv_lib_dl_dlopen+:} false
; then :
13207 $as_echo_n "(cached) " >&6
13209 ac_check_lib_save_LIBS
=$LIBS
13211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13229 if ac_fn_c_try_link
"$LINENO"; then :
13230 ac_cv_lib_dl_dlopen
=yes
13232 ac_cv_lib_dl_dlopen
=no
13234 rm -f core conftest.err conftest.
$ac_objext \
13235 conftest
$ac_exeext conftest.
$ac_ext
13236 LIBS
=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13240 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
13241 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13244 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13245 if ${ac_cv_lib_svld_dlopen+:} false
; then :
13246 $as_echo_n "(cached) " >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-lsvld $LIBS"
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13268 if ac_fn_c_try_link
"$LINENO"; then :
13269 ac_cv_lib_svld_dlopen
=yes
13271 ac_cv_lib_svld_dlopen
=no
13273 rm -f core conftest.err conftest.
$ac_objext \
13274 conftest
$ac_exeext conftest.
$ac_ext
13275 LIBS
=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13278 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13279 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
13280 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13283 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13284 if ${ac_cv_lib_dld_dld_link+:} false
; then :
13285 $as_echo_n "(cached) " >&6
13287 ac_check_lib_save_LIBS
=$LIBS
13289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13302 return dld_link ();
13307 if ac_fn_c_try_link
"$LINENO"; then :
13308 ac_cv_lib_dld_dld_link
=yes
13310 ac_cv_lib_dld_dld_link
=no
13312 rm -f core conftest.err conftest.
$ac_objext \
13313 conftest
$ac_exeext conftest.
$ac_ext
13314 LIBS
=$ac_check_lib_save_LIBS
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13317 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13318 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13319 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
13340 if test "x$lt_cv_dlopen" != xno
; then
13346 case $lt_cv_dlopen in
13348 save_CPPFLAGS
="$CPPFLAGS"
13349 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13351 save_LDFLAGS
="$LDFLAGS"
13352 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13355 LIBS
="$lt_cv_dlopen_libs $LIBS"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13358 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13359 if ${lt_cv_dlopen_self+:} false
; then :
13360 $as_echo_n "(cached) " >&6
13362 if test "$cross_compiling" = yes; then :
13363 lt_cv_dlopen_self
=cross
13365 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13366 lt_status
=$lt_dlunknown
13367 cat > conftest.
$ac_ext <<_LT_EOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13378 # define LT_DLGLOBAL RTLD_GLOBAL
13381 # define LT_DLGLOBAL DL_GLOBAL
13383 # define LT_DLGLOBAL 0
13387 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13388 find out it does not work in some platform. */
13389 #ifndef LT_DLLAZY_OR_NOW
13391 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13394 # define LT_DLLAZY_OR_NOW DL_LAZY
13397 # define LT_DLLAZY_OR_NOW RTLD_NOW
13400 # define LT_DLLAZY_OR_NOW DL_NOW
13402 # define LT_DLLAZY_OR_NOW 0
13409 /* When -fvisbility=hidden is used, assume the code has been annotated
13410 correspondingly for the symbols needed. */
13411 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13412 int fnord () __attribute__((visibility("default")));
13415 int fnord () { return 42; }
13418 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13419 int status = $lt_dlunknown;
13423 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13426 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13427 else puts (dlerror ());
13429 /* dlclose (self); */
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13438 (eval $ac_link) 2>&5
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13442 (.
/conftest
; exit; ) >&5 2>/dev
/null
13444 case x
$lt_status in
13445 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13446 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13447 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13450 # compilation failed
13451 lt_cv_dlopen_self
=no
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13459 $as_echo "$lt_cv_dlopen_self" >&6; }
13461 if test "x$lt_cv_dlopen_self" = xyes
; then
13462 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13464 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13465 if ${lt_cv_dlopen_self_static+:} false
; then :
13466 $as_echo_n "(cached) " >&6
13468 if test "$cross_compiling" = yes; then :
13469 lt_cv_dlopen_self_static
=cross
13471 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13472 lt_status
=$lt_dlunknown
13473 cat > conftest.
$ac_ext <<_LT_EOF
13474 #line $LINENO "configure"
13475 #include "confdefs.h"
13484 # define LT_DLGLOBAL RTLD_GLOBAL
13487 # define LT_DLGLOBAL DL_GLOBAL
13489 # define LT_DLGLOBAL 0
13493 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13494 find out it does not work in some platform. */
13495 #ifndef LT_DLLAZY_OR_NOW
13497 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13500 # define LT_DLLAZY_OR_NOW DL_LAZY
13503 # define LT_DLLAZY_OR_NOW RTLD_NOW
13506 # define LT_DLLAZY_OR_NOW DL_NOW
13508 # define LT_DLLAZY_OR_NOW 0
13515 /* When -fvisbility=hidden is used, assume the code has been annotated
13516 correspondingly for the symbols needed. */
13517 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13518 int fnord () __attribute__((visibility("default")));
13521 int fnord () { return 42; }
13524 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13525 int status = $lt_dlunknown;
13529 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13532 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13533 else puts (dlerror ());
13535 /* dlclose (self); */
13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13544 (eval $ac_link) 2>&5
13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13548 (.
/conftest
; exit; ) >&5 2>/dev
/null
13550 case x
$lt_status in
13551 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13552 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13553 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13556 # compilation failed
13557 lt_cv_dlopen_self_static
=no
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13565 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13568 CPPFLAGS
="$save_CPPFLAGS"
13569 LDFLAGS
="$save_LDFLAGS"
13574 case $lt_cv_dlopen_self in
13575 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13576 *) enable_dlopen_self
=unknown
;;
13579 case $lt_cv_dlopen_self_static in
13580 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13581 *) enable_dlopen_self_static
=unknown
;;
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13604 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13605 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
13606 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13607 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13609 $as_echo "yes" >&6; }
13611 # FIXME - insert some real tests, host_os isn't really good enough
13614 if test -n "$STRIP" ; then
13615 striplib
="$STRIP -x"
13616 old_striplib
="$STRIP -S"
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13642 # Report which library types will actually be built
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13644 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13646 $as_echo "$can_build_shared" >&6; }
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13649 $as_echo_n "checking whether to build shared libraries... " >&6; }
13650 test "$can_build_shared" = "no" && enable_shared
=no
13652 # On AIX, shared libraries and static libraries use the same namespace, and
13653 # are all built from PIC.
13656 test "$enable_shared" = yes && enable_static
=no
13657 if test -n "$RANLIB"; then
13658 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13659 postinstall_cmds
='$RANLIB $lib'
13664 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13665 test "$enable_shared" = yes && enable_static
=no
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13670 $as_echo "$enable_shared" >&6; }
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13673 $as_echo_n "checking whether to build static libraries... " >&6; }
13674 # Make sure either enable_shared or enable_static is yes.
13675 test "$enable_shared" = yes || enable_static
=yes
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13677 $as_echo "$enable_static" >&6; }
13684 ac_cpp
='$CPP $CPPFLAGS'
13685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13705 ac_config_commands
="$ac_config_commands libtool"
13710 # Only expand once:
13715 # Checks for header files.
13716 for ac_header
in stdarg.h stdbool.h netinet
/in.h sys
/param.h sys
/socket.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
13718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13719 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13721 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13722 cat >>confdefs.h
<<_ACEOF
13723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13732 # Using own tests for int64* because autoconf builtin only give 32bit.
13733 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13734 if test "x$ac_cv_type_int8_t" = xyes
; then :
13738 cat >>confdefs.h
<<_ACEOF
13739 #define int8_t signed char
13744 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_int16_t" = xyes
; then :
13749 cat >>confdefs.h
<<_ACEOF
13750 #define int16_t short
13755 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13756 if test "x$ac_cv_type_int32_t" = xyes
; then :
13760 cat >>confdefs.h
<<_ACEOF
13761 #define int32_t int
13766 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13767 if test "x$ac_cv_type_int64_t" = xyes
; then :
13771 cat >>confdefs.h
<<_ACEOF
13772 #define int64_t long long
13777 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13778 if test "x$ac_cv_type_uint8_t" = xyes
; then :
13782 cat >>confdefs.h
<<_ACEOF
13783 #define uint8_t unsigned char
13788 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13789 if test "x$ac_cv_type_uint16_t" = xyes
; then :
13793 cat >>confdefs.h
<<_ACEOF
13794 #define uint16_t unsigned short
13799 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13800 if test "x$ac_cv_type_uint32_t" = xyes
; then :
13804 cat >>confdefs.h
<<_ACEOF
13805 #define uint32_t unsigned int
13810 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13811 if test "x$ac_cv_type_uint64_t" = xyes
; then :
13815 cat >>confdefs.h
<<_ACEOF
13816 #define uint64_t unsigned long long
13821 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13822 if test "x$ac_cv_type_size_t" = xyes
; then :
13826 cat >>confdefs.h
<<_ACEOF
13827 #define size_t unsigned int
13832 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13833 if test "x$ac_cv_type_ssize_t" = xyes
; then :
13837 cat >>confdefs.h
<<_ACEOF
13838 #define ssize_t int
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13844 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13845 if ${ac_cv_type_uid_t+:} false
; then :
13846 $as_echo_n "(cached) " >&6
13848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <sys/types.h>
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854 $EGREP "uid_t" >/dev
/null
2>&1; then :
13855 ac_cv_type_uid_t
=yes
13857 ac_cv_type_uid_t
=no
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13863 $as_echo "$ac_cv_type_uid_t" >&6; }
13864 if test $ac_cv_type_uid_t = no
; then
13866 $as_echo "#define uid_t int" >>confdefs.h
13869 $as_echo "#define gid_t int" >>confdefs.h
13873 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13874 if test "x$ac_cv_type_pid_t" = xyes
; then :
13878 cat >>confdefs.h
<<_ACEOF
13884 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13885 if test "x$ac_cv_type_off_t" = xyes
; then :
13889 cat >>confdefs.h
<<_ACEOF
13890 #define off_t long int
13895 ac_fn_c_check_type
"$LINENO" "u_char" "ac_cv_type_u_char" "
13896 $ac_includes_default
13897 #ifdef HAVE_WINSOCK2_H
13898 # include <winsock2.h>
13902 if test "x$ac_cv_type_u_char" = xyes
; then :
13906 $as_echo "#define u_char unsigned char" >>confdefs.h
13910 ac_fn_c_check_type
"$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13911 $ac_includes_default
13912 #ifdef HAVE_SYS_RESOURCE_H
13913 # include <sys/resource.h>
13917 if test "x$ac_cv_type_rlim_t" = xyes
; then :
13921 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13926 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13927 $ac_includes_default
13928 #ifdef HAVE_SYS_SOCKET_H
13929 # include <sys/socket.h>
13931 #ifdef HAVE_WS2TCPIP_H
13932 # include <ws2tcpip.h>
13936 if test "x$ac_cv_type_socklen_t" = xyes
; then :
13940 $as_echo "#define socklen_t int" >>confdefs.h
13944 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13945 $ac_includes_default
13946 #ifdef HAVE_SYS_TYPES_H
13947 # include <sys/types.h>
13949 #ifdef HAVE_NETINET_IN_H
13950 # include <netinet/in.h>
13954 if test "x$ac_cv_type_in_addr_t" = xyes
; then :
13958 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13962 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13963 $ac_includes_default
13964 #ifdef HAVE_SYS_TYPES_H
13965 # include <sys/types.h>
13967 #ifdef HAVE_NETINET_IN_H
13968 # include <netinet/in.h>
13972 if test "x$ac_cv_type_in_port_t" = xyes
; then :
13976 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13981 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13982 if test "$cross_compiling" = yes; then :
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13984 $as_echo "cross-compile no" >&6; }
13986 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13988 case " $LIBOBJS " in
13989 *" memcmp.$ac_objext "* ) ;;
13990 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
14000 #include <stdlib.h>
14001 #include <string.h>
14004 char a = 255, b = 0;
14005 if(memcmp(&a, &b, 1) < 0)
14011 if ac_fn_c_try_run
"$LINENO"; then :
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14018 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14020 case " $LIBOBJS " in
14021 *" memcmp.$ac_objext "* ) ;;
14022 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
14028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14033 # The cast to long int works around a bug in the HP C Compiler
14034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14036 # This bug is HP SR number 8606223364.
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14038 $as_echo_n "checking size of time_t... " >&6; }
14039 if ${ac_cv_sizeof_time_t+:} false
; then :
14040 $as_echo_n "(cached) " >&6
14042 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14043 $ac_includes_default
14044 #ifdef TIME_WITH_SYS_TIME
14045 # include <sys/time.h>
14048 # ifdef HAVE_SYS_TIME_H
14049 # include <sys/time.h>
14058 if test "$ac_cv_type_time_t" = yes; then
14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14061 as_fn_error
77 "cannot compute sizeof (time_t)
14062 See \`config.log' for more details" "$LINENO" 5; }
14064 ac_cv_sizeof_time_t
=0
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14070 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14074 cat >>confdefs.h
<<_ACEOF
14075 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14080 # add option to disable the evil rpath
14082 # Check whether --enable-rpath was given.
14083 if test "${enable_rpath+set}" = set; then :
14084 enableval
=$enable_rpath; enable_rpath
=$enableval
14089 if test "x$enable_rpath" = xno
; then
14090 ac_config_commands
="$ac_config_commands disable-rpath"
14096 # check to see if libraries are needed for these functions.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14098 $as_echo_n "checking for library containing inet_pton... " >&6; }
14099 if ${ac_cv_search_inet_pton+:} false
; then :
14100 $as_echo_n "(cached) " >&6
14102 ac_func_search_save_LIBS
=$LIBS
14103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14106 /* Override any GCC internal prototype to avoid an error.
14107 Use char because int might match the return type of a GCC
14108 builtin and then its argument prototype would still apply. */
14116 return inet_pton ();
14121 for ac_lib
in '' nsl
; do
14122 if test -z "$ac_lib"; then
14123 ac_res
="none required"
14126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14128 if ac_fn_c_try_link
"$LINENO"; then :
14129 ac_cv_search_inet_pton
=$ac_res
14131 rm -f core conftest.err conftest.
$ac_objext \
14133 if ${ac_cv_search_inet_pton+:} false
; then :
14137 if ${ac_cv_search_inet_pton+:} false
; then :
14140 ac_cv_search_inet_pton
=no
14142 rm conftest.
$ac_ext
14143 LIBS
=$ac_func_search_save_LIBS
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14146 $as_echo "$ac_cv_search_inet_pton" >&6; }
14147 ac_res
=$ac_cv_search_inet_pton
14148 if test "$ac_res" != no
; then :
14149 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14154 $as_echo_n "checking for library containing socket... " >&6; }
14155 if ${ac_cv_search_socket+:} false
; then :
14156 $as_echo_n "(cached) " >&6
14158 ac_func_search_save_LIBS
=$LIBS
14159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14177 for ac_lib
in '' socket
; do
14178 if test -z "$ac_lib"; then
14179 ac_res
="none required"
14182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14184 if ac_fn_c_try_link
"$LINENO"; then :
14185 ac_cv_search_socket
=$ac_res
14187 rm -f core conftest.err conftest.
$ac_objext \
14189 if ${ac_cv_search_socket+:} false
; then :
14193 if ${ac_cv_search_socket+:} false
; then :
14196 ac_cv_search_socket
=no
14198 rm conftest.
$ac_ext
14199 LIBS
=$ac_func_search_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14202 $as_echo "$ac_cv_search_socket" >&6; }
14203 ac_res
=$ac_cv_search_socket
14204 if test "$ac_res" != no
; then :
14205 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14210 # check wether strptime also works
14212 # check some functions of the OS before linking libs (while still runnable).
14213 for ac_header
in unistd.h
14215 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14216 if test "x$ac_cv_header_unistd_h" = xyes
; then :
14217 cat >>confdefs.h
<<_ACEOF
14218 #define HAVE_UNISTD_H 1
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14226 $as_echo_n "checking for working chown... " >&6; }
14227 if ${ac_cv_func_chown_works+:} false
; then :
14228 $as_echo_n "(cached) " >&6
14230 if test "$cross_compiling" = yes; then :
14231 ac_cv_func_chown_works
=no
14233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 $ac_includes_default
14241 char *f = "conftest.chown";
14242 struct stat before, after;
14244 if (creat (f, 0600) < 0)
14246 if (stat (f, &before) < 0)
14248 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14250 if (stat (f, &after) < 0)
14252 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14258 if ac_fn_c_try_run
"$LINENO"; then :
14259 ac_cv_func_chown_works
=yes
14261 ac_cv_func_chown_works
=no
14263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14267 rm -f conftest.chown
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14271 $as_echo "$ac_cv_func_chown_works" >&6; }
14272 if test $ac_cv_func_chown_works = yes; then
14274 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14278 for ac_header
in vfork.h
14280 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14281 if test "x$ac_cv_header_vfork_h" = xyes
; then :
14282 cat >>confdefs.h
<<_ACEOF
14283 #define HAVE_VFORK_H 1
14290 for ac_func
in fork vfork
14292 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14293 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14294 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14295 cat >>confdefs.h
<<_ACEOF
14296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14302 if test "x$ac_cv_func_fork" = xyes
; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14304 $as_echo_n "checking for working fork... " >&6; }
14305 if ${ac_cv_func_fork_works+:} false
; then :
14306 $as_echo_n "(cached) " >&6
14308 if test "$cross_compiling" = yes; then :
14309 ac_cv_func_fork_works
=cross
14311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 $ac_includes_default
14318 /* By Ruediger Kuhlmann. */
14319 return fork () < 0;
14325 if ac_fn_c_try_run
"$LINENO"; then :
14326 ac_cv_func_fork_works
=yes
14328 ac_cv_func_fork_works
=no
14330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14336 $as_echo "$ac_cv_func_fork_works" >&6; }
14339 ac_cv_func_fork_works
=$ac_cv_func_fork
14341 if test "x$ac_cv_func_fork_works" = xcross
; then
14343 *-*-amigaos* | *-*-msdosdjgpp*)
14344 # Override, as these systems have only a dummy fork() stub
14345 ac_cv_func_fork_works
=no
14348 ac_cv_func_fork_works
=yes
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14352 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14354 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14355 if test "x$ac_cv_func_vfork" = xyes
; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14357 $as_echo_n "checking for working vfork... " >&6; }
14358 if ${ac_cv_func_vfork_works+:} false
; then :
14359 $as_echo_n "(cached) " >&6
14361 if test "$cross_compiling" = yes; then :
14362 ac_cv_func_vfork_works
=cross
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 /* Thanks to Paul Eggert for this test. */
14367 $ac_includes_default
14368 #include <sys/wait.h>
14369 #ifdef HAVE_VFORK_H
14370 # include <vfork.h>
14372 /* On some sparc systems, changes by the child to local and incoming
14373 argument registers are propagated back to the parent. The compiler
14374 is told about this with #include <vfork.h>, but some compilers
14375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14376 static variable whose address is put into a register that is
14377 clobbered by the vfork. */
14380 sparc_address_test (int arg)
14382 sparc_address_test (arg) int arg;
14385 static pid_t child;
14403 pid_t parent = getpid ();
14406 sparc_address_test (0);
14411 /* Here is another test for sparc vfork register problems. This
14412 test uses lots of local variables, at least as many local
14413 variables as main has allocated so far including compiler
14414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14416 reuse the register of parent for one of the local variables,
14417 since it will think that parent can't possibly be used any more
14418 in this routine. Assigning to the local variable will thus
14419 munge parent in the parent process. */
14421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14423 /* Convince the compiler that p..p7 are live; otherwise, it might
14424 use the same hardware register for all 8 local variables. */
14425 if (p != p1 || p != p2 || p != p3 || p != p4
14426 || p != p5 || p != p6 || p != p7)
14429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14430 from child file descriptors. If the child closes a descriptor
14431 before it execs or exits, this munges the parent's descriptor
14432 as well. Test for this by closing stdout in the child. */
14433 _exit(close(fileno(stdout)) != 0);
14438 while (wait(&status) != child)
14441 /* Was there some problem with vforking? */
14444 /* Did the child fail? (This shouldn't happen.) */
14447 /* Did the vfork/compiler bug occur? */
14448 || parent != getpid()
14450 /* Did the file descriptor bug occur? */
14451 || fstat(fileno(stdout), &st) != 0
14456 if ac_fn_c_try_run
"$LINENO"; then :
14457 ac_cv_func_vfork_works
=yes
14459 ac_cv_func_vfork_works
=no
14461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14467 $as_echo "$ac_cv_func_vfork_works" >&6; }
14470 if test "x$ac_cv_func_fork_works" = xcross
; then
14471 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14473 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14476 if test "x$ac_cv_func_vfork_works" = xyes
; then
14478 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14482 $as_echo "#define vfork fork" >>confdefs.h
14485 if test "x$ac_cv_func_fork_works" = xyes
; then
14487 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14492 $as_echo_n "checking return type of signal handlers... " >&6; }
14493 if ${ac_cv_type_signal+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <sys/types.h>
14499 #include <signal.h>
14504 return *(signal (0, 0)) (0) == 1;
14509 if ac_fn_c_try_compile
"$LINENO"; then :
14510 ac_cv_type_signal
=int
14512 ac_cv_type_signal
=void
14514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14517 $as_echo "$ac_cv_type_signal" >&6; }
14519 cat >>confdefs.h
<<_ACEOF
14520 #define RETSIGTYPE $ac_cv_type_signal
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14525 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14526 if ${ac_cv_sys_largefile_source+:} false
; then :
14527 $as_echo_n "(cached) " >&6
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <sys/types.h> /* for off_t */
14537 int (*fp) (FILE *, off_t, int) = fseeko;
14538 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14543 if ac_fn_c_try_link
"$LINENO"; then :
14544 ac_cv_sys_largefile_source
=no
; break
14546 rm -f core conftest.err conftest.
$ac_objext \
14547 conftest
$ac_exeext conftest.
$ac_ext
14548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 #define _LARGEFILE_SOURCE 1
14551 #include <sys/types.h> /* for off_t */
14556 int (*fp) (FILE *, off_t, int) = fseeko;
14557 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14562 if ac_fn_c_try_link
"$LINENO"; then :
14563 ac_cv_sys_largefile_source
=1; break
14565 rm -f core conftest.err conftest.
$ac_objext \
14566 conftest
$ac_exeext conftest.
$ac_ext
14567 ac_cv_sys_largefile_source
=unknown
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14572 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14573 case $ac_cv_sys_largefile_source in #(
14576 cat >>confdefs.h
<<_ACEOF
14577 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14583 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14584 # in glibc 2.1.3, but that breaks too many other things.
14585 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14586 if test $ac_cv_sys_largefile_source != unknown
; then
14588 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14593 # Check whether --enable-largefile was given.
14594 if test "${enable_largefile+set}" = set; then :
14595 enableval
=$enable_largefile;
14598 if test "$enable_largefile" != no
; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14601 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14602 if ${ac_cv_sys_largefile_CC+:} false
; then :
14603 $as_echo_n "(cached) " >&6
14605 ac_cv_sys_largefile_CC
=no
14606 if test "$GCC" != yes; then
14609 # IRIX 6.2 and later do not support large files by default,
14610 # so use the C compiler's -n32 option if that helps.
14611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <sys/types.h>
14614 /* Check that off_t can represent 2**63 - 1 correctly.
14615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14616 since some C++ compilers masquerading as C compilers
14617 incorrectly reject 9223372036854775807. */
14618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14620 && LARGE_OFF_T % 2147483647 == 1)
14630 if ac_fn_c_try_compile
"$LINENO"; then :
14633 rm -f core conftest.err conftest.
$ac_objext
14635 if ac_fn_c_try_compile
"$LINENO"; then :
14636 ac_cv_sys_largefile_CC
=' -n32'; break
14638 rm -f core conftest.err conftest.
$ac_objext
14642 rm -f conftest.
$ac_ext
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14646 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14647 if test "$ac_cv_sys_largefile_CC" != no
; then
14648 CC
=$CC$ac_cv_sys_largefile_CC
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14652 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14653 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14654 $as_echo_n "(cached) " >&6
14657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14659 #include <sys/types.h>
14660 /* Check that off_t can represent 2**63 - 1 correctly.
14661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14662 since some C++ compilers masquerading as C compilers
14663 incorrectly reject 9223372036854775807. */
14664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14666 && LARGE_OFF_T % 2147483647 == 1)
14676 if ac_fn_c_try_compile
"$LINENO"; then :
14677 ac_cv_sys_file_offset_bits
=no
; break
14679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #define _FILE_OFFSET_BITS 64
14683 #include <sys/types.h>
14684 /* Check that off_t can represent 2**63 - 1 correctly.
14685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14686 since some C++ compilers masquerading as C compilers
14687 incorrectly reject 9223372036854775807. */
14688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14690 && LARGE_OFF_T % 2147483647 == 1)
14700 if ac_fn_c_try_compile
"$LINENO"; then :
14701 ac_cv_sys_file_offset_bits
=64; break
14703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14704 ac_cv_sys_file_offset_bits
=unknown
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14709 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14710 case $ac_cv_sys_file_offset_bits in #(
14713 cat >>confdefs.h
<<_ACEOF
14714 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14719 if test $ac_cv_sys_file_offset_bits = unknown
; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14721 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14722 if ${ac_cv_sys_large_files+:} false
; then :
14723 $as_echo_n "(cached) " >&6
14726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 #include <sys/types.h>
14729 /* Check that off_t can represent 2**63 - 1 correctly.
14730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14731 since some C++ compilers masquerading as C compilers
14732 incorrectly reject 9223372036854775807. */
14733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14735 && LARGE_OFF_T % 2147483647 == 1)
14745 if ac_fn_c_try_compile
"$LINENO"; then :
14746 ac_cv_sys_large_files
=no
; break
14748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14751 #define _LARGE_FILES 1
14752 #include <sys/types.h>
14753 /* Check that off_t can represent 2**63 - 1 correctly.
14754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14755 since some C++ compilers masquerading as C compilers
14756 incorrectly reject 9223372036854775807. */
14757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14759 && LARGE_OFF_T % 2147483647 == 1)
14769 if ac_fn_c_try_compile
"$LINENO"; then :
14770 ac_cv_sys_large_files
=1; break
14772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14773 ac_cv_sys_large_files
=unknown
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14778 $as_echo "$ac_cv_sys_large_files" >&6; }
14779 case $ac_cv_sys_large_files in #(
14782 cat >>confdefs.h
<<_ACEOF
14783 #define _LARGE_FILES $ac_cv_sys_large_files
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14797 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14798 cache
=_D_LARGEFILE_SOURCE_1
14799 if eval \
${cv_prog_cc_flag_needed_$cache+:} false
; then :
14800 $as_echo_n "(cached) " >&6
14806 int a = fseeko(stdin, 0, 0);
14810 echo 'void f(){}' >>conftest.c
14811 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14812 eval "cv_prog_cc_flag_needed_$cache=no"
14815 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14816 eval "cv_prog_cc_flag_needed_$cache=yes"
14818 eval "cv_prog_cc_flag_needed_$cache=fail"
14819 #echo 'Test with flag fails too!'
14821 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14822 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14827 rm -f conftest conftest.c conftest.o
14831 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833 $as_echo "yes" >&6; }
14835 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE=1"
14837 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839 $as_echo "no" >&6; }
14840 #echo 'Test with flag is no!'
14842 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14843 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14849 $as_echo "failed" >&6; }
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14858 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14859 if echo $target | grep mingw32
>/dev
/null
; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14861 $as_echo "no (windows)" >&6; }
14863 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14866 if test "$cross_compiling" = yes; then :
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14869 $as_echo "crosscompile(yes)" >&6; }
14872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14877 #include <string.h>
14878 #include <stdlib.h>
14881 #ifdef HAVE_SYS_TYPES_H
14882 #include <sys/types.h>
14884 #ifdef HAVE_SYS_SOCKET_H
14885 #include <sys/socket.h>
14887 #ifdef HAVE_NETINET_IN_H
14888 #include <netinet/in.h>
14890 #ifdef HAVE_ARPA_INET_H
14891 #include <arpa/inet.h>
14893 #ifdef HAVE_UNISTD_H
14894 #include <unistd.h>
14906 struct sockaddr_in a;
14907 /* test if select and nonblocking reads work well together */
14909 fork child to send 10 messages.
14911 then try to nonblocking read the 10 messages
14912 then, nonblocking read must give EAGAIN
14915 port = 12345 + (time(0)%32);
14916 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14921 memset(&a, 0, sizeof(a));
14922 a.sin_family = AF_INET;
14923 a.sin_port = htons(port);
14924 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14925 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14929 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14934 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14936 perror("client socket");
14940 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14941 perror("client bind");
14944 a.sin_port = htons(port);
14946 /* no handler, causes exit in 10 seconds */
14949 /* send and receive on the socket */
14950 if((p=fork()) == 0) {
14951 for(i=0; i<num; i++) {
14952 if(sendto(cfd, &i, sizeof(i), 0,
14953 (struct sockaddr*)&a, sizeof(a)) < 0) {
14967 FD_SET(sfd, &rset);
14968 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14974 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14975 if(errno == EAGAIN)
14982 /* now we want to get EAGAIN: nonblocking goodness */
14984 recv(sfd, &x, sizeof(x), 0);
14985 if(errno != EAGAIN) {
14986 perror("trying to recv again");
14989 /* EAGAIN encountered */
14998 if ac_fn_c_try_run
"$LINENO"; then :
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15006 $as_echo "no" >&6; }
15008 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15020 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15025 #include <unistd.h>
15026 #ifdef HAVE_WINSOCK2_H
15027 #include <winsock2.h>
15029 #ifdef HAVE_SYS_STAT_H
15030 #include <sys/stat.h>
15037 (void)mkdir("directory");
15043 if ac_fn_c_try_compile
"$LINENO"; then :
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15045 $as_echo "yes" >&6; }
15047 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15057 for ac_func
in strptime
15059 ac_fn_c_check_func
"$LINENO" "strptime" "ac_cv_func_strptime"
15060 if test "x$ac_cv_func_strptime" = xyes
; then :
15061 cat >>confdefs.h
<<_ACEOF
15062 #define HAVE_STRPTIME 1
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15066 $as_echo_n "checking whether strptime works... " >&6; }
15067 if test c
${cross_compiling} = cno
; then
15068 if test "$cross_compiling" = yes; then :
15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15071 as_fn_error $?
"cannot run test program while cross compiling
15072 See \`config.log' for more details" "$LINENO" 5; }
15074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15077 #define _XOPEN_SOURCE 600
15079 int main(void) { struct tm tm; char *res;
15080 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);
15081 if (!res) return 2;
15082 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15083 if (!res) return 1; return 0; }
15086 if ac_fn_c_try_run
"$LINENO"; then :
15087 eval "ac_cv_c_strptime_works=yes"
15089 eval "ac_cv_c_strptime_works=no"
15091 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15092 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15096 eval "ac_cv_c_strptime_works=maybe"
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15099 $as_echo "$ac_cv_c_strptime_works" >&6; }
15100 if test $ac_cv_c_strptime_works = no
; then
15101 case " $LIBOBJS " in
15102 *" strptime.$ac_objext "* ) ;;
15103 *) LIBOBJS
="$LIBOBJS strptime.$ac_objext"
15109 cat >>confdefs.h
<<_ACEOF
15110 #define STRPTIME_WORKS 1
15116 case " $LIBOBJS " in
15117 *" strptime.$ac_objext "* ) ;;
15118 *) LIBOBJS
="$LIBOBJS strptime.$ac_objext"
15126 # set memory allocation checking if requested
15127 # Check whether --enable-alloc-checks was given.
15128 if test "${enable_alloc_checks+set}" = set; then :
15129 enableval
=$enable_alloc_checks;
15132 # Check whether --enable-alloc-lite was given.
15133 if test "${enable_alloc_lite+set}" = set; then :
15134 enableval
=$enable_alloc_lite;
15137 # Check whether --enable-alloc-nonregional was given.
15138 if test "${enable_alloc_nonregional+set}" = set; then :
15139 enableval
=$enable_alloc_nonregional;
15142 if test x_
$enable_alloc_nonregional = x_yes
; then
15144 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15147 if test x_
$enable_alloc_checks = x_yes
; then
15149 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15152 if test x_
$enable_alloc_lite = x_yes
; then
15154 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15159 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15160 if test "$cross_compiling" = yes; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15162 $as_echo "no (crosscompile)" >&6; }
15163 case " $LIBOBJS " in
15164 *" malloc.$ac_objext "* ) ;;
15165 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
15170 cat >>confdefs.h
<<_ACEOF
15171 #define malloc rpl_malloc_unbound
15175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15178 #include <stdlib.h>
15186 if(malloc(0) != 0) return 1;
15192 if ac_fn_c_try_run
"$LINENO"; then :
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15195 case " $LIBOBJS " in
15196 *" malloc.$ac_objext "* ) ;;
15197 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
15202 cat >>confdefs.h
<<_ACEOF
15203 #define malloc rpl_malloc_unbound
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15208 $as_echo "yes" >&6; }
15210 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15221 # check windows threads (we use them, not pthreads, on windows).
15222 if test "$on_mingw" = "yes"; then
15223 # check windows threads
15224 for ac_header
in windows.h
15226 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15228 if test "x$ac_cv_header_windows_h" = xyes
; then :
15229 cat >>confdefs.h
<<_ACEOF
15230 #define HAVE_WINDOWS_H 1
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15238 $as_echo_n "checking for CreateThread... " >&6; }
15239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15242 #ifdef HAVE_WINDOWS_H
15243 #include <windows.h>
15250 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15256 if ac_fn_c_try_compile
"$LINENO"; then :
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15258 $as_echo "yes" >&6; }
15260 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15271 # not on mingw, check thread libraries.
15273 # check for thread library.
15274 # check this first, so that the pthread lib does not get linked in via
15275 # libssl or libpython, and thus distorts the tests, and we end up using
15276 # the non-threadsafe C libraries.
15278 # Check whether --with-pthreads was given.
15279 if test "${with_pthreads+set}" = set; then :
15280 withval
=$with_pthreads;
15285 ub_have_pthreads
=no
15286 if test x_
$withval != x_no
; then
15290 ac_cpp
='$CPP $CPPFLAGS'
15291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15297 # We used to check for pthread.h first, but this fails if pthread.h
15298 # requires special compiler flags (e.g. on True64 or Sequent).
15299 # It gets checked for in the link test anyway.
15301 # First of all, check if the user has set any of the PTHREAD_LIBS,
15302 # etcetera environment variables, and if threads linking works using
15304 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
15305 save_CFLAGS
="$CFLAGS"
15306 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15308 LIBS
="$PTHREAD_LIBS $LIBS"
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15310 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15320 char pthread_join ();
15324 return pthread_join ();
15329 if ac_fn_c_try_link
"$LINENO"; then :
15332 rm -f core conftest.err conftest.
$ac_objext \
15333 conftest
$ac_exeext conftest.
$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15335 $as_echo "$ax_pthread_ok" >&6; }
15336 if test x
"$ax_pthread_ok" = xno
; then
15341 CFLAGS
="$save_CFLAGS"
15344 # We must check for the threads library under a number of different
15345 # names; the ordering is very important because some systems
15346 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15347 # libraries is broken (non-POSIX).
15349 # Create a list of thread flags to try. Items starting with a "-" are
15350 # C compiler flags, and other items are library names, except for "none"
15351 # which indicates that we try without any flags at all, and "pthread-config"
15352 # which is a program returning the flags for the Pth emulation library.
15354 ax_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15356 # The ordering *is* (sometimes) important. Some notes on the
15357 # individual items follow:
15359 # pthreads: AIX (must check this before -lpthread)
15360 # none: in case threads are in libc; should be tried before -Kthread and
15361 # other compiler flags to prevent continual compiler warnings
15362 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15363 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15364 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15365 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15366 # -pthreads: Solaris/gcc
15367 # -mthreads: Mingw32/gcc, Lynx/gcc
15368 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15369 # doesn't hurt to check since this sometimes defines pthreads too;
15370 # also defines -D_REENTRANT)
15371 # ... -mt is also the pthreads flag for HP/aCC
15372 # pthread: Linux, etcetera
15373 # --thread-safe: KAI C++
15374 # pthread-config: use pthread-config program (for GNU Pth library)
15379 # On Solaris (at least, for some versions), libc contains stubbed
15380 # (non-functional) versions of the pthreads routines, so link-based
15381 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15382 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15383 # a function called by this macro, so we could check for that, but
15384 # who knows whether they'll stub that too in a future libc.) So,
15385 # we'll just look for -pthreads and -lpthread first:
15387 ax_pthread_flags
="-pthreads pthread -mt -pthread $ax_pthread_flags"
15391 ax_pthread_flags
="-pthread $ax_pthread_flags"
15395 if test x
"$ax_pthread_ok" = xno
; then
15396 for flag
in $ax_pthread_flags; do
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15401 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15406 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15407 PTHREAD_CFLAGS
="$flag"
15411 # Extract the first word of "pthread-config", so it can be a program name with args.
15412 set dummy pthread
-config; ac_word
=$2
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414 $as_echo_n "checking for $ac_word... " >&6; }
15415 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
15416 $as_echo_n "(cached) " >&6
15418 if test -n "$ax_pthread_config"; then
15419 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
15421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15422 for as_dir
in $PATH
15425 test -z "$as_dir" && as_dir
=.
15426 for ac_exec_ext
in '' $ac_executable_extensions; do
15427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_ax_pthread_config
="yes"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15436 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
15439 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
15440 if test -n "$ax_pthread_config"; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15442 $as_echo "$ax_pthread_config" >&6; }
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15445 $as_echo "no" >&6; }
15449 if test x
"$ax_pthread_config" = xno
; then continue; fi
15450 PTHREAD_CFLAGS
="`pthread-config --cflags`"
15451 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15456 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15457 PTHREAD_LIBS
="-l$flag"
15462 save_CFLAGS
="$CFLAGS"
15463 LIBS
="$PTHREAD_LIBS $LIBS"
15464 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15466 # Check for various functions. We must include pthread.h,
15467 # since some functions may be macros. (On the Sequent, we
15468 # need a special flag -Kthread to make this header compile.)
15469 # We check for pthread_join because it is in -lpthread on IRIX
15470 # while pthread_create is in libc. We check for pthread_attr_init
15471 # due to DEC craziness with -lpthreads. We check for
15472 # pthread_cleanup_push because it is one of the few pthread
15473 # functions on Solaris that doesn't have a non-functional libc stub.
15474 # We try pthread_create on general principles.
15475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <pthread.h>
15478 static void routine(void *a) { *((int*)a) = 0; }
15479 static void *start_routine(void *a) { return a; }
15483 pthread_t th; pthread_attr_t attr;
15484 pthread_create(&th, 0, start_routine, 0);
15485 pthread_join(th, 0);
15486 pthread_attr_init(&attr);
15487 pthread_cleanup_push(routine, 0);
15488 pthread_cleanup_pop(0) /* ; */
15493 if ac_fn_c_try_link
"$LINENO"; then :
15496 rm -f core conftest.err conftest.
$ac_objext \
15497 conftest
$ac_exeext conftest.
$ac_ext
15500 CFLAGS
="$save_CFLAGS"
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15503 $as_echo "$ax_pthread_ok" >&6; }
15504 if test "x$ax_pthread_ok" = xyes
; then
15513 # Various other checks:
15514 if test "x$ax_pthread_ok" = xyes
; then
15516 LIBS
="$PTHREAD_LIBS $LIBS"
15517 save_CFLAGS
="$CFLAGS"
15518 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15520 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15522 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15524 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
15525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15527 #include <pthread.h>
15531 int attr = $attr; return attr /* ; */
15536 if ac_fn_c_try_link
"$LINENO"; then :
15537 attr_name
=$attr; break
15539 rm -f core conftest.err conftest.
$ac_objext \
15540 conftest
$ac_exeext conftest.
$ac_ext
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15543 $as_echo "$attr_name" >&6; }
15544 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
15546 cat >>confdefs.h
<<_ACEOF
15547 #define PTHREAD_CREATE_JOINABLE $attr_name
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15553 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15556 aix
* | freebsd
* | darwin
*) flag
="-D_THREAD_SAFE";;
15557 osf
* | hpux
*) flag
="-D_REENTRANT";;
15559 if test "$GCC" = "yes"; then
15560 flag
="-D_REENTRANT"
15562 flag
="-mt -D_REENTRANT"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15567 $as_echo "${flag}" >&6; }
15568 if test "x$flag" != xno
; then
15569 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15573 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15574 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
15575 $as_echo_n "(cached) " >&6
15578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15581 #include <pthread.h>
15585 int i = PTHREAD_PRIO_INHERIT;
15590 if ac_fn_c_try_link
"$LINENO"; then :
15591 ax_cv_PTHREAD_PRIO_INHERIT
=yes
15593 ax_cv_PTHREAD_PRIO_INHERIT
=no
15595 rm -f core conftest.err conftest.
$ac_objext \
15596 conftest
$ac_exeext conftest.
$ac_ext
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15600 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15601 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15603 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15608 CFLAGS
="$save_CFLAGS"
15610 # More AIX lossage: compile with *_r variant
15611 if test "x$GCC" != xyes
; then
15615 x
*/c89
|x
*/c89_128
|x
*/c99
|x
*/c99_128
|x
*/cc
|x
*/cc128
|x
*/xlc
|x
*/xlc_v6
|x
*/xlc128
|x
*/xlc128_v6
) :
15616 #handle absolute path differently from PATH based program lookup
15619 if as_fn_executable_p
${CC}_r
; then :
15620 PTHREAD_CC
="${CC}_r"
15623 for ac_prog
in ${CC}_r
15625 # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy
$ac_prog; ac_word
=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
15630 $as_echo_n "(cached) " >&6
15632 if test -n "$PTHREAD_CC"; then
15633 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
15635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15636 for as_dir
in $PATH
15639 test -z "$as_dir" && as_dir
=.
15640 for ac_exec_ext
in '' $ac_executable_extensions; do
15641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15642 ac_cv_prog_PTHREAD_CC
="$ac_prog"
15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
15653 if test -n "$PTHREAD_CC"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15655 $as_echo "$PTHREAD_CC" >&6; }
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15662 test -n "$PTHREAD_CC" && break
15664 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
15675 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
15681 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15682 if test x
"$ax_pthread_ok" = xyes
; then
15685 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15687 LIBS
="$PTHREAD_LIBS $LIBS"
15688 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15690 ub_have_pthreads
=yes
15691 ac_fn_c_check_type
"$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15693 if test "x$ac_cv_type_pthread_spinlock_t" = xyes
; then :
15695 cat >>confdefs.h
<<_ACEOF
15696 #define HAVE_PTHREAD_SPINLOCK_T 1
15701 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15703 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
15705 cat >>confdefs.h
<<_ACEOF
15706 #define HAVE_PTHREAD_RWLOCK_T 1
15719 ac_cpp
='$CPP $CPPFLAGS'
15720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15727 # check solaris thread library
15729 # Check whether --with-solaris-threads was given.
15730 if test "${with_solaris_threads+set}" = set; then :
15731 withval
=$with_solaris_threads;
15736 ub_have_sol_threads
=no
15737 if test x_
$withval != x_no
; then
15738 if test x_
$ub_have_pthreads != x_no
; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15740 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15743 $as_echo_n "checking for library containing thr_create... " >&6; }
15744 if ${ac_cv_search_thr_create+:} false
; then :
15745 $as_echo_n "(cached) " >&6
15747 ac_func_search_save_LIBS
=$LIBS
15748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15757 char thr_create ();
15761 return thr_create ();
15766 for ac_lib
in '' thread
; do
15767 if test -z "$ac_lib"; then
15768 ac_res
="none required"
15771 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15773 if ac_fn_c_try_link
"$LINENO"; then :
15774 ac_cv_search_thr_create
=$ac_res
15776 rm -f core conftest.err conftest.
$ac_objext \
15778 if ${ac_cv_search_thr_create+:} false
; then :
15782 if ${ac_cv_search_thr_create+:} false
; then :
15785 ac_cv_search_thr_create
=no
15787 rm conftest.
$ac_ext
15788 LIBS
=$ac_func_search_save_LIBS
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15791 $as_echo "$ac_cv_search_thr_create" >&6; }
15792 ac_res
=$ac_cv_search_thr_create
15793 if test "$ac_res" != no
; then :
15794 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15797 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15803 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15804 cache
=`echo mt | sed 'y%.=/+-%___p_%'`
15805 if eval \
${cv_prog_cc_flag_$cache+:} false
; then :
15806 $as_echo_n "(cached) " >&6
15809 echo 'void f(void){}' >conftest.c
15810 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15811 eval "cv_prog_cc_flag_$cache=yes"
15813 eval "cv_prog_cc_flag_$cache=no"
15815 rm -f conftest conftest.o conftest.c
15819 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15821 $as_echo "yes" >&6; }
15823 CFLAGS
="$CFLAGS -mt"
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15828 CFLAGS
="$CFLAGS -D_REENTRANT"
15831 ub_have_sol_threads
=yes
15835 as_fn_error $?
"no solaris threads found." "$LINENO" 5
15842 fi # end of non-mingw check of thread libraries
15844 # Check for PyUnbound
15846 # Check whether --with-pyunbound was given.
15847 if test "${with_pyunbound+set}" = set; then :
15848 withval
=$with_pyunbound;
15855 ub_with_pyunbound
=no
15856 if test x_
$withval != x_no
; then
15857 ub_with_pyunbound
=yes
15861 # Check for Python module
15863 # Check whether --with-pythonmodule was given.
15864 if test "${with_pythonmodule+set}" = set; then :
15865 withval
=$with_pythonmodule;
15871 ub_with_pythonmod
=no
15872 if test x_
$withval != x_no
; then
15873 ub_with_pythonmod
=yes
15877 # Check for Python & SWIG only on PyUnbound or PyModule
15878 if test x_
$ub_test_python != x_no
; then
15882 ac_save_LIBS
="$LIBS"
15884 # Allow the use of a (user set) custom python version
15888 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15889 set dummy python
$PYTHON_VERSION; ac_word
=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15891 $as_echo_n "checking for $ac_word... " >&6; }
15892 if ${ac_cv_path_PYTHON+:} false
; then :
15893 $as_echo_n "(cached) " >&6
15897 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
15900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15901 for as_dir
in $PATH
15904 test -z "$as_dir" && as_dir
=.
15905 for ac_exec_ext
in '' $ac_executable_extensions; do
15906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15907 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
15908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15918 PYTHON
=$ac_cv_path_PYTHON
15919 if test -n "$PYTHON"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15921 $as_echo "$PYTHON" >&6; }
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15928 if test -z "$PYTHON"; then
15929 as_fn_error $?
"Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15933 if test -z "$PYTHON_VERSION"; then
15934 PYTHON_VERSION
=`$PYTHON -c "import sys; \
15935 print(sys.version.split()[0])"`
15939 # Check if you have distutils, else fail
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15942 $as_echo_n "checking for the distutils Python package... " >&6; }
15943 ac_distutils_result
=`$PYTHON -c "import distutils" 2>&1`
15944 if test -z "$ac_distutils_result"; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15946 $as_echo "yes" >&6; }
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15950 as_fn_error $?
"cannot import Python module \"distutils\".
15951 Please check your Python installation. The error was:
15952 $ac_distutils_result" "$LINENO" 5
15957 # Check for Python include path
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15960 $as_echo_n "checking for Python include path... " >&6; }
15961 if test -z "$PYTHON_CPPFLAGS"; then
15962 python_path
=`$PYTHON -c "import distutils.sysconfig; \
15963 print(distutils.sysconfig.get_python_inc());"`
15964 if test -n "${python_path}"; then
15965 python_path
="-I$python_path"
15967 PYTHON_CPPFLAGS
=$python_path
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15970 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15974 # Check for Python library path
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15977 $as_echo_n "checking for Python library path... " >&6; }
15978 if test -z "$PYTHON_LDFLAGS"; then
15979 PYTHON_LDFLAGS
=`$PYTHON -c "from distutils.sysconfig import *; \
15980 print(get_config_var('BLDLIBRARY'));"`
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15983 $as_echo "$PYTHON_LDFLAGS" >&6; }
15987 # Check for site packages
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15990 $as_echo_n "checking for Python site-packages path... " >&6; }
15991 if test -z "$PYTHON_SITE_PKG"; then
15992 PYTHON_SITE_PKG
=`$PYTHON -c "import distutils.sysconfig; \
15993 print(distutils.sysconfig.get_python_lib(1,0));"`
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15996 $as_echo "$PYTHON_SITE_PKG" >&6; }
16000 # final check to see if everything compiles alright
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16003 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16005 ac_cpp
='$CPP $CPPFLAGS'
16006 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16007 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16008 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16010 # save current global flags
16011 ac_save_LIBS
="$LIBS"
16012 ac_save_CPPFLAGS
="$CPPFLAGS"
16014 LIBS
="$LIBS $PYTHON_LDFLAGS"
16015 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16019 #include <Python.h>
16031 if ac_fn_c_try_link
"$LINENO"; then :
16036 rm -f core conftest.err conftest.
$ac_objext \
16037 conftest
$ac_exeext conftest.
$ac_ext
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16040 $as_echo "$pythonexists" >&6; }
16042 if test ! "$pythonexists" = "yes"; then
16044 Could not link test program to Python. Maybe the main Python library has been
16045 installed in some non-standard library path. If so, pass it to configure,
16046 via the LDFLAGS environment variable.
16047 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16048 ============================================================================
16050 You probably have to install the development version of the Python package
16051 for your distribution. The exact name of this package varies among them.
16052 ============================================================================
16057 ac_cpp
='$CPP $CPPFLAGS'
16058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16062 # turn back to default flags
16063 CPPFLAGS
="$ac_save_CPPFLAGS"
16064 LIBS
="$ac_save_LIBS"
16070 if test ! -z "$PYTHON_VERSION"; then
16071 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16072 as_fn_error $?
"Python version >= 2.4.0 is required" "$LINENO" 5
16077 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16079 LIBS
="$PYTHON_LDFLAGS $LIBS"
16080 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16086 # Extract the first word of "swig", so it can be a program name with args.
16087 set dummy swig
; ac_word
=$2
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16089 $as_echo_n "checking for $ac_word... " >&6; }
16090 if ${ac_cv_path_SWIG+:} false
; then :
16091 $as_echo_n "(cached) " >&6
16095 ac_cv_path_SWIG
="$SWIG" # Let the user override the test with a path.
16098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16099 for as_dir
in $PATH
16102 test -z "$as_dir" && as_dir
=.
16103 for ac_exec_ext
in '' $ac_executable_extensions; do
16104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_path_SWIG
="$as_dir/$ac_word$ac_exec_ext"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16116 SWIG
=$ac_cv_path_SWIG
16117 if test -n "$SWIG"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16119 $as_echo "$SWIG" >&6; }
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16126 if test -z "$SWIG" ; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16128 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16129 SWIG
='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16130 elif test -n "" ; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16132 $as_echo_n "checking for SWIG version... " >&6; }
16133 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'`
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16135 $as_echo "$swig_version" >&6; }
16136 if test -n "$swig_version" ; then
16137 # Calculate the required version number components
16139 required_major
=`echo $required | sed 's/[^0-9].*//'`
16140 if test -z "$required_major" ; then
16143 required
=`echo $required | sed 's/[0-9]*[^0-9]//'`
16144 required_minor
=`echo $required | sed 's/[^0-9].*//'`
16145 if test -z "$required_minor" ; then
16148 required
=`echo $required | sed 's/[0-9]*[^0-9]//'`
16149 required_patch
=`echo $required | sed 's/[^0-9].*//'`
16150 if test -z "$required_patch" ; then
16153 # Calculate the available version number components
16154 available
=$swig_version
16155 available_major
=`echo $available | sed 's/[^0-9].*//'`
16156 if test -z "$available_major" ; then
16159 available
=`echo $available | sed 's/[0-9]*[^0-9]//'`
16160 available_minor
=`echo $available | sed 's/[^0-9].*//'`
16161 if test -z "$available_minor" ; then
16164 available
=`echo $available | sed 's/[0-9]*[^0-9]//'`
16165 available_patch
=`echo $available | sed 's/[^0-9].*//'`
16166 if test -z "$available_patch" ; then
16169 if test $available_major -ne $required_major \
16170 -o $available_minor -ne $required_minor \
16171 -o $available_patch -lt $required_patch ; then
16172 { $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
16173 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16174 SWIG
='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16177 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16178 SWIG_LIB
=`$SWIG -swiglib`
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16180 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16184 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16185 SWIG
='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16191 $as_echo_n "checking SWIG... " >&6; }
16192 if test ! -x "$SWIG"; then
16193 as_fn_error $?
"failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16196 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16201 $as_echo "present" >&6; }
16203 # If have Python & SWIG
16204 # Declare PythonMod
16205 if test x_
$ub_with_pythonmod != x_no
; then
16207 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16209 WITH_PYTHONMODULE
=yes
16211 PYTHONMOD_OBJ
="pythonmod.lo pythonmod_utils.lo"
16213 PYTHONMOD_HEADER
='$(srcdir)/pythonmod/pythonmod.h'
16215 PYTHONMOD_INSTALL
=pythonmod
-install
16217 PYTHONMOD_UNINSTALL
=pythonmod
-uninstall
16221 # Declare PyUnbound
16222 if test x_
$ub_with_pyunbound != x_no
; then
16224 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16228 PYUNBOUND_OBJ
="libunbound_wrap.lo"
16230 PYUNBOUND_TARGET
="_unbound.la"
16232 PYUNBOUND_INSTALL
=pyunbound
-install
16234 PYUNBOUND_UNINSTALL
=pyunbound
-uninstall
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16240 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16241 ub_with_pyunbound
=no
16242 ub_with_pythonmod
=no
16246 if test "`uname`" = "NetBSD"; then
16247 NETBSD_LINTFLAGS
='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16250 CONFIG_DATE
=`date +%Y%m%d`
16253 # Checks for libraries.
16258 # Check whether --with-nss was given.
16259 if test "${with_nss+set}" = set; then :
16263 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16265 if test "$withval" != "" -a "$withval" != "yes"; then
16266 CPPFLAGS
="$CPPFLAGS -I$withval/include/nss3"
16267 LDFLAGS
="$LDFLAGS -L$withval/lib"
16269 if test "x$enable_rpath" = xyes
; then
16270 if echo "$withval/lib" | grep "^/" >/dev
/null
; then
16271 RUNTIME_PATH
="$RUNTIME_PATH -R$withval/lib"
16275 CPPFLAGS
="-I$withval/include/nspr4 $CPPFLAGS"
16277 CPPFLAGS
="$CPPFLAGS -I/usr/include/nss3"
16278 CPPFLAGS
="-I/usr/include/nspr4 $CPPFLAGS"
16280 LIBS
="$LIBS -lnss3 -lnspr4"
16287 if test $USE_NSS = "no"; then
16290 # Check whether --with-ssl was given.
16291 if test "${with_ssl+set}" = set; then :
16300 if test x_
$withval = x_no
; then
16301 as_fn_error $?
"Need SSL library to do digital signature cryptography" "$LINENO" 5
16305 if test x_
$withval != x_no
; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16307 $as_echo_n "checking for SSL... " >&6; }
16308 if test x_
$withval = x_
-o x_
$withval = x_yes
; then
16309 withval
="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16311 for dir
in $withval; do
16313 if test -f "$dir/include/openssl/ssl.h"; then
16316 cat >>confdefs.h
<<_ACEOF
16317 #define HAVE_SSL /**/
16320 if test "$ssldir" != "/usr"; then
16321 CPPFLAGS
="$CPPFLAGS -I$ssldir/include"
16322 LIBSSL_CPPFLAGS
="$LIBSSL_CPPFLAGS -I$ssldir/include"
16327 if test x_
$found_ssl != x_yes
; then
16328 as_fn_error $?
"Cannot find the SSL libraries in $withval" "$LINENO" 5
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16331 $as_echo "found in $ssldir" >&6; }
16333 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16334 LDFLAGS
="$LDFLAGS -L$ssldir/lib"
16335 LIBSSL_LDFLAGS
="$LIBSSL_LDFLAGS -L$ssldir/lib"
16337 if test "x$enable_rpath" = xyes
; then
16338 if echo "$ssldir/lib" | grep "^/" >/dev
/null
; then
16339 RUNTIME_PATH
="$RUNTIME_PATH -R$ssldir/lib"
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16346 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16347 LIBS
="$LIBS -lcrypto"
16348 LIBSSL_LIBS
="$LIBSSL_LIBS -lcrypto"
16349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16356 int HMAC_CTX_init(void);
16357 (void)HMAC_CTX_init();
16363 if ac_fn_c_try_link
"$LINENO"; then :
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16366 $as_echo "yes" >&6; }
16368 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16374 $as_echo "no" >&6; }
16375 # check if -lwsock32 or -lgdi32 are needed.
16377 BAKSSLLIBS
="$LIBSSL_LIBS"
16378 LIBS
="$LIBS -lgdi32"
16379 LIBSSL_LIBS
="$LIBSSL_LIBS -lgdi32"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16381 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16389 int HMAC_CTX_init(void);
16390 (void)HMAC_CTX_init();
16396 if ac_fn_c_try_link
"$LINENO"; then :
16399 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 $as_echo "no" >&6; }
16409 LIBSSL_LIBS
="$BAKSSLLIBS"
16411 LIBSSL_LIBS
="$LIBSSL_LIBS -ldl"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16413 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16421 int HMAC_CTX_init(void);
16422 (void)HMAC_CTX_init();
16428 if ac_fn_c_try_link
"$LINENO"; then :
16431 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439 $as_echo "no" >&6; }
16440 as_fn_error $?
"OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16443 rm -f core conftest.err conftest.
$ac_objext \
16444 conftest
$ac_exeext conftest.
$ac_ext
16447 rm -f core conftest.err conftest.
$ac_objext \
16448 conftest
$ac_exeext conftest.
$ac_ext
16451 rm -f core conftest.err conftest.
$ac_objext \
16452 conftest
$ac_exeext conftest.
$ac_ext
16456 # openssl engine functionality needs dlopen().
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16459 $as_echo_n "checking for library containing dlopen... " >&6; }
16460 if ${ac_cv_search_dlopen+:} false
; then :
16461 $as_echo_n "(cached) " >&6
16463 ac_func_search_save_LIBS
=$LIBS
16464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16467 /* Override any GCC internal prototype to avoid an error.
16468 Use char because int might match the return type of a GCC
16469 builtin and then its argument prototype would still apply. */
16482 for ac_lib
in '' dl
; do
16483 if test -z "$ac_lib"; then
16484 ac_res
="none required"
16487 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16489 if ac_fn_c_try_link
"$LINENO"; then :
16490 ac_cv_search_dlopen
=$ac_res
16492 rm -f core conftest.err conftest.
$ac_objext \
16494 if ${ac_cv_search_dlopen+:} false
; then :
16498 if ${ac_cv_search_dlopen+:} false
; then :
16501 ac_cv_search_dlopen
=no
16503 rm conftest.
$ac_ext
16504 LIBS
=$ac_func_search_save_LIBS
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16507 $as_echo "$ac_cv_search_dlopen" >&6; }
16508 ac_res
=$ac_cv_search_dlopen
16509 if test "$ac_res" != no
; then :
16510 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16514 if test "$LIBS" != "$BAKLIBS"; then
16515 LIBSSL_LIBS
="$LIBSSL_LIBS -ldl"
16518 for ac_header
in openssl
/ssl.h
16520 ac_fn_c_check_header_compile
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16522 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
16523 cat >>confdefs.h
<<_ACEOF
16524 #define HAVE_OPENSSL_SSL_H 1
16531 for ac_header
in openssl
/err.h
16533 ac_fn_c_check_header_compile
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16535 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
16536 cat >>confdefs.h
<<_ACEOF
16537 #define HAVE_OPENSSL_ERR_H 1
16544 for ac_header
in openssl
/rand.h
16546 ac_fn_c_check_header_compile
"$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16548 if test "x$ac_cv_header_openssl_rand_h" = xyes
; then :
16549 cat >>confdefs.h
<<_ACEOF
16550 #define HAVE_OPENSSL_RAND_H 1
16560 # check if libssl needs libdl
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16564 $as_echo_n "checking if libssl needs libdl... " >&6; }
16565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16574 char SSL_CTX_new ();
16578 return SSL_CTX_new ();
16583 if ac_fn_c_try_link
"$LINENO"; then :
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16592 $as_echo "yes" >&6; }
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16595 $as_echo_n "checking for library containing dlopen... " >&6; }
16596 if ${ac_cv_search_dlopen+:} false
; then :
16597 $as_echo_n "(cached) " >&6
16599 ac_func_search_save_LIBS
=$LIBS
16600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16618 for ac_lib
in '' dl
; do
16619 if test -z "$ac_lib"; then
16620 ac_res
="none required"
16623 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16625 if ac_fn_c_try_link
"$LINENO"; then :
16626 ac_cv_search_dlopen
=$ac_res
16628 rm -f core conftest.err conftest.
$ac_objext \
16630 if ${ac_cv_search_dlopen+:} false
; then :
16634 if ${ac_cv_search_dlopen+:} false
; then :
16637 ac_cv_search_dlopen
=no
16639 rm conftest.
$ac_ext
16640 LIBS
=$ac_func_search_save_LIBS
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16643 $as_echo "$ac_cv_search_dlopen" >&6; }
16644 ac_res
=$ac_cv_search_dlopen
16645 if test "$ac_res" != no
; then :
16646 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16652 rm -f core conftest.err conftest.
$ac_objext \
16653 conftest
$ac_exeext conftest.
$ac_ext
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16655 $as_echo_n "checking for LibreSSL... " >&6; }
16656 if grep OPENSSL_VERSION_TEXT
$ssldir/include
/openssl
/opensslv.h
| grep "LibreSSL" >/dev
/null
; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16658 $as_echo "yes" >&6; }
16660 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16662 # libressl provides these compat functions, but they may also be
16663 # declared by the OS in libc. See if they have been declared.
16664 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16665 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16671 cat >>confdefs.h
<<_ACEOF
16672 #define HAVE_DECL_STRLCPY $ac_have_decl
16674 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16675 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16681 cat >>confdefs.h
<<_ACEOF
16682 #define HAVE_DECL_STRLCAT $ac_have_decl
16684 ac_fn_c_check_decl
"$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16685 if test "x$ac_cv_have_decl_arc4random" = xyes
; then :
16691 cat >>confdefs.h
<<_ACEOF
16692 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16694 ac_fn_c_check_decl
"$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16695 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes
; then :
16701 cat >>confdefs.h
<<_ACEOF
16702 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16709 for ac_header
in openssl
/conf.h
16711 ac_fn_c_check_header_compile
"$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16713 if test "x$ac_cv_header_openssl_conf_h" = xyes
; then :
16714 cat >>confdefs.h
<<_ACEOF
16715 #define HAVE_OPENSSL_CONF_H 1
16722 for ac_header
in openssl
/engine.h
16724 ac_fn_c_check_header_compile
"$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16726 if test "x$ac_cv_header_openssl_engine_h" = xyes
; then :
16727 cat >>confdefs.h
<<_ACEOF
16728 #define HAVE_OPENSSL_ENGINE_H 1
16735 for ac_func
in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16737 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16738 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16739 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16740 cat >>confdefs.h
<<_ACEOF
16741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16747 ac_fn_c_check_decl
"$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16748 $ac_includes_default
16749 #ifdef HAVE_OPENSSL_ERR_H
16750 #include <openssl/err.h>
16753 #ifdef HAVE_OPENSSL_RAND_H
16754 #include <openssl/rand.h>
16757 #ifdef HAVE_OPENSSL_CONF_H
16758 #include <openssl/conf.h>
16761 #ifdef HAVE_OPENSSL_ENGINE_H
16762 #include <openssl/engine.h>
16764 #include <openssl/ssl.h>
16765 #include <openssl/evp.h>
16768 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes
; then :
16774 cat >>confdefs.h
<<_ACEOF
16775 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16777 ac_fn_c_check_decl
"$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16778 $ac_includes_default
16779 #ifdef HAVE_OPENSSL_ERR_H
16780 #include <openssl/err.h>
16783 #ifdef HAVE_OPENSSL_RAND_H
16784 #include <openssl/rand.h>
16787 #ifdef HAVE_OPENSSL_CONF_H
16788 #include <openssl/conf.h>
16791 #ifdef HAVE_OPENSSL_ENGINE_H
16792 #include <openssl/engine.h>
16794 #include <openssl/ssl.h>
16795 #include <openssl/evp.h>
16798 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes
; then :
16804 cat >>confdefs.h
<<_ACEOF
16805 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16811 # Check whether --enable-sha2 was given.
16812 if test "${enable_sha2+set}" = set; then :
16813 enableval
=$enable_sha2;
16816 case "$enable_sha2" in
16821 $as_echo "#define USE_SHA2 1" >>confdefs.h
16826 # check wether gost also works
16828 # Check whether --enable-gost was given.
16829 if test "${enable_gost+set}" = set; then :
16830 enableval
=$enable_gost;
16834 if test $USE_NSS = "no"; then
16835 case "$enable_gost" in
16839 ac_fn_c_check_func
"$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16840 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes
; then :
16843 as_fn_error $?
"OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16846 ac_fn_c_check_func
"$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16847 if test "x$ac_cv_func_EC_KEY_new" = xyes
; then :
16850 as_fn_error $?
"OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16855 $as_echo_n "checking if GOST works... " >&6; }
16856 if test c
${cross_compiling} = cno
; then
16857 BAKCFLAGS
="$CFLAGS"
16858 if test -n "$ssldir"; then
16859 CFLAGS
="$CFLAGS -Wl,-rpath,$ssldir/lib"
16861 if test "$cross_compiling" = yes; then :
16862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16864 as_fn_error $?
"cannot run test program while cross compiling
16865 See \`config.log' for more details" "$LINENO" 5; }
16867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16868 /* end confdefs.h. */
16870 #include <string.h>
16871 #include <openssl/ssl.h>
16872 #include <openssl/evp.h>
16873 #include <openssl/engine.h>
16874 #include <openssl/conf.h>
16875 /* routine to load gost (from sldns) */
16876 int load_gost_id(void)
16878 static int gost_id = 0;
16879 const EVP_PKEY_ASN1_METHOD* meth;
16882 if(gost_id) return gost_id;
16884 /* see if configuration loaded gost implementation from other engine*/
16885 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16887 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16891 /* see if engine can be loaded already */
16892 e = ENGINE_by_id("gost");
16894 /* load it ourself, in case statically linked */
16895 ENGINE_load_builtin_engines();
16896 ENGINE_load_dynamic();
16897 e = ENGINE_by_id("gost");
16900 /* no gost engine in openssl */
16903 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16909 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16911 /* algo not found */
16916 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16922 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16923 const char* str = "Hello world";
16924 const unsigned char check[] = {
16925 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16926 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16927 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16928 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16930 OPENSSL_config(NULL);
16931 (void)load_gost_id();
16932 md = EVP_get_digestbyname("md_gost94");
16934 memset(digest, 0, sizeof(digest));
16935 ctx = EVP_MD_CTX_create();
16937 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16938 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16939 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16940 /* uncomment to see the hash calculated.
16942 for(i=0; i<32; i++)
16943 printf(" %2.2x", (int)digest[i]);
16946 if(memcmp(digest, check, sizeof(check)) != 0)
16952 if ac_fn_c_try_run
"$LINENO"; then :
16953 eval "ac_cv_c_gost_works=yes"
16955 eval "ac_cv_c_gost_works=no"
16957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16961 CFLAGS
="$BAKCFLAGS"
16963 eval "ac_cv_c_gost_works=maybe"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16966 $as_echo "$ac_cv_c_gost_works" >&6; }
16968 if test "$ac_cv_c_gost_works" != no
; then
16971 $as_echo "#define USE_GOST 1" >>confdefs.h
16977 # Check whether --enable-ecdsa was given.
16978 if test "${enable_ecdsa+set}" = set; then :
16979 enableval
=$enable_ecdsa;
16983 case "$enable_ecdsa" in
16987 if test $USE_NSS = "no"; then
16988 ac_fn_c_check_func
"$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16989 if test "x$ac_cv_func_ECDSA_sign" = xyes
; then :
16992 as_fn_error $?
"OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16995 ac_fn_c_check_func
"$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16996 if test "x$ac_cv_func_SHA384_Init" = xyes
; then :
16999 as_fn_error $?
"OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17002 ac_fn_c_check_decl
"$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17003 #include <openssl/evp.h>
17006 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes
; then :
17012 cat >>confdefs.h
<<_ACEOF
17013 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17015 if test $ac_have_decl = 1; then :
17018 as_fn_error $?
"OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17020 ac_fn_c_check_decl
"$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17021 #include <openssl/evp.h>
17024 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes
; then :
17030 cat >>confdefs.h
<<_ACEOF
17031 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17033 if test $ac_have_decl = 1; then :
17036 as_fn_error $?
"OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17039 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17041 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17042 if grep OPENSSL_VERSION_TEXT
$ssldir/include
/openssl
/opensslv.h
| grep "OpenSSL" >/dev
/null
; then
17043 if grep OPENSSL_VERSION_NUMBER
$ssldir/include
/openssl
/opensslv.h
| grep 0x0 >/dev
/null
; then
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17047 cat >>confdefs.h
<<_ACEOF
17048 #define USE_ECDSA_EVP_WORKAROUND 1
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17053 $as_echo "yes" >&6; }
17056 # not OpenSSL, thus likely LibreSSL, which supports it
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17061 # we now know we have ECDSA and the required curves.
17063 cat >>confdefs.h
<<_ACEOF
17064 #define USE_ECDSA 1
17071 # Check whether --enable-event-api was given.
17072 if test "${enable_event_api+set}" = set; then :
17073 enableval
=$enable_event_api;
17076 use_unbound_event
="no"
17077 case "$enable_event_api" in
17079 use_unbound_event
="yes"
17085 # check for libevent
17087 # Check whether --with-libevent was given.
17088 if test "${with_libevent+set}" = set; then :
17089 withval
=$with_libevent;
17094 if test x_
$withval = x_yes
-o x_
$withval != x_no
; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17096 $as_echo_n "checking for libevent... " >&6; }
17097 if test x_
$withval = x_
-o x_
$withval = x_yes
; then
17098 withval
="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17100 for dir
in $withval; do
17102 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17103 found_libevent
="yes"
17104 if test "$thedir" != "/usr"; then
17105 CPPFLAGS
="$CPPFLAGS -I$thedir/include"
17110 if test x_
$found_libevent != x_yes
; then
17111 if test -f "$dir/event.h" -a \
( -f "$dir/libevent.la" -o -f "$dir/libev.la" \
) ; then
17112 # libevent source directory
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17114 $as_echo "found in $thedir" >&6; }
17115 CPPFLAGS
="$CPPFLAGS -I$thedir -I$thedir/include"
17116 BAK_LDFLAGS_SET
="1"
17117 BAK_LDFLAGS
="$LDFLAGS"
17118 # remove evdns from linking
17119 mkdir build
>/dev
/null
2>&1
17120 mkdir build
/libevent
>/dev
/null
2>&1
17121 mkdir build
/libevent
/.libs
>/dev
/null
2>&1
17122 ev_files_o
=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17123 ev_files_lo
=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17124 ev_files_libso
=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17125 cp $ev_files_o build
/libevent
17126 cp $ev_files_lo build
/libevent
17127 cp $ev_files_libso build
/libevent
/.libs
17128 LATE_LDFLAGS
="build/libevent/*.lo -lm"
17129 LDFLAGS
="build/libevent/*.o $LDFLAGS -lm"
17131 as_fn_error $?
"Cannot find the libevent library in $withval
17132 You can restart ./configure --with-libevent=no to use a builtin alternative.
17133 Please note that this alternative is not as capable as libevent when using
17134 large outgoing port ranges. " "$LINENO" 5
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17138 $as_echo "found in $thedir" >&6; }
17139 if test ! -f $thedir/lib
/libevent.a
-a ! -f $thedir/lib
/libevent.so
-a -d "$thedir/lib/event2"; then
17140 LDFLAGS
="$LDFLAGS -L$thedir/lib/event2"
17142 if test "x$enable_rpath" = xyes
; then
17143 if echo "$thedir/lib/event2" | grep "^/" >/dev
/null
; then
17144 RUNTIME_PATH
="$RUNTIME_PATH -R$thedir/lib/event2"
17149 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17150 LDFLAGS
="$LDFLAGS -L$thedir/lib"
17152 if test "x$enable_rpath" = xyes
; then
17153 if echo "$thedir/lib" | grep "^/" >/dev
/null
; then
17154 RUNTIME_PATH
="$RUNTIME_PATH -R$thedir/lib"
17161 # check for library used by libevent after 1.3c
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17163 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17164 if ${ac_cv_search_clock_gettime+:} false
; then :
17165 $as_echo_n "(cached) " >&6
17167 ac_func_search_save_LIBS
=$LIBS
17168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17171 /* Override any GCC internal prototype to avoid an error.
17172 Use char because int might match the return type of a GCC
17173 builtin and then its argument prototype would still apply. */
17177 char clock_gettime ();
17181 return clock_gettime ();
17186 for ac_lib
in '' rt
; do
17187 if test -z "$ac_lib"; then
17188 ac_res
="none required"
17191 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17193 if ac_fn_c_try_link
"$LINENO"; then :
17194 ac_cv_search_clock_gettime
=$ac_res
17196 rm -f core conftest.err conftest.
$ac_objext \
17198 if ${ac_cv_search_clock_gettime+:} false
; then :
17202 if ${ac_cv_search_clock_gettime+:} false
; then :
17205 ac_cv_search_clock_gettime
=no
17207 rm conftest.
$ac_ext
17208 LIBS
=$ac_func_search_save_LIBS
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17211 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17212 ac_res
=$ac_cv_search_clock_gettime
17213 if test "$ac_res" != no
; then :
17214 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17219 # is the event.h header libev or libevent?
17220 for ac_header
in event.h
17222 ac_fn_c_check_header_compile
"$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17224 if test "x$ac_cv_header_event_h" = xyes
; then :
17225 cat >>confdefs.h
<<_ACEOF
17226 #define HAVE_EVENT_H 1
17233 ac_fn_c_check_decl
"$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17237 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes
; then :
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17240 $as_echo_n "checking for library containing event_set... " >&6; }
17241 if ${ac_cv_search_event_set+:} false
; then :
17242 $as_echo_n "(cached) " >&6
17244 ac_func_search_save_LIBS
=$LIBS
17245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17258 return event_set ();
17263 for ac_lib
in '' ev
; do
17264 if test -z "$ac_lib"; then
17265 ac_res
="none required"
17268 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17270 if ac_fn_c_try_link
"$LINENO"; then :
17271 ac_cv_search_event_set
=$ac_res
17273 rm -f core conftest.err conftest.
$ac_objext \
17275 if ${ac_cv_search_event_set+:} false
; then :
17279 if ${ac_cv_search_event_set+:} false
; then :
17282 ac_cv_search_event_set
=no
17284 rm conftest.
$ac_ext
17285 LIBS
=$ac_func_search_save_LIBS
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17288 $as_echo "$ac_cv_search_event_set" >&6; }
17289 ac_res
=$ac_cv_search_event_set
17290 if test "$ac_res" != no
; then :
17291 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17299 $as_echo_n "checking for library containing event_set... " >&6; }
17300 if ${ac_cv_search_event_set+:} false
; then :
17301 $as_echo_n "(cached) " >&6
17303 ac_func_search_save_LIBS
=$LIBS
17304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17317 return event_set ();
17322 for ac_lib
in '' event
; do
17323 if test -z "$ac_lib"; then
17324 ac_res
="none required"
17327 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17329 if ac_fn_c_try_link
"$LINENO"; then :
17330 ac_cv_search_event_set
=$ac_res
17332 rm -f core conftest.err conftest.
$ac_objext \
17334 if ${ac_cv_search_event_set+:} false
; then :
17338 if ${ac_cv_search_event_set+:} false
; then :
17341 ac_cv_search_event_set
=no
17343 rm conftest.
$ac_ext
17344 LIBS
=$ac_func_search_save_LIBS
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17347 $as_echo "$ac_cv_search_event_set" >&6; }
17348 ac_res
=$ac_cv_search_event_set
17349 if test "$ac_res" != no
; then :
17350 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17357 for ac_func
in event_base_free
17359 ac_fn_c_check_func
"$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17360 if test "x$ac_cv_func_event_base_free" = xyes
; then :
17361 cat >>confdefs.h
<<_ACEOF
17362 #define HAVE_EVENT_BASE_FREE 1
17367 # only in libevent 1.2 and later
17368 for ac_func
in event_base_once
17370 ac_fn_c_check_func
"$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17371 if test "x$ac_cv_func_event_base_once" = xyes
; then :
17372 cat >>confdefs.h
<<_ACEOF
17373 #define HAVE_EVENT_BASE_ONCE 1
17378 # only in libevent 1.4.1 and later
17379 for ac_func
in event_base_new
17381 ac_fn_c_check_func
"$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17382 if test "x$ac_cv_func_event_base_new" = xyes
; then :
17383 cat >>confdefs.h
<<_ACEOF
17384 #define HAVE_EVENT_BASE_NEW 1
17389 # only in libevent 1.4.1 and later
17390 for ac_func
in event_base_get_method
17392 ac_fn_c_check_func
"$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17393 if test "x$ac_cv_func_event_base_get_method" = xyes
; then :
17394 cat >>confdefs.h
<<_ACEOF
17395 #define HAVE_EVENT_BASE_GET_METHOD 1
17400 # only in libevent 1.4.3 and later
17401 for ac_func
in ev_loop
17403 ac_fn_c_check_func
"$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17404 if test "x$ac_cv_func_ev_loop" = xyes
; then :
17405 cat >>confdefs.h
<<_ACEOF
17406 #define HAVE_EV_LOOP 1
17411 # only in libev. (tested on 3.51)
17412 for ac_func
in ev_default_loop
17414 ac_fn_c_check_func
"$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17415 if test "x$ac_cv_func_ev_default_loop" = xyes
; then :
17416 cat >>confdefs.h
<<_ACEOF
17417 #define HAVE_EV_DEFAULT_LOOP 1
17422 # only in libev. (tested on 4.00)
17423 if test -n "$BAK_LDFLAGS_SET"; then
17424 LDFLAGS
="$BAK_LDFLAGS"
17426 if test "$use_unbound_event" = "yes"; then
17427 UNBOUND_EVENT_INSTALL
=unbound
-event-install
17429 UNBOUND_EVENT_UNINSTALL
=unbound
-event-uninstall
17434 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17438 # check for libexpat
17440 # Check whether --with-libexpat was given.
17441 if test "${with_libexpat+set}" = set; then :
17442 withval
=$with_libexpat;
17444 withval
="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17448 $as_echo_n "checking for libexpat... " >&6; }
17449 found_libexpat
="no"
17450 for dir
in $withval ; do
17451 if test -f "$dir/include/expat.h"; then
17452 found_libexpat
="yes"
17453 if test "$dir" != "/usr"; then
17454 CPPFLAGS
="$CPPFLAGS -I$dir/include"
17455 LDFLAGS
="$LDFLAGS -L$dir/lib"
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17458 $as_echo "found in $dir" >&6; }
17462 if test x_
$found_libexpat != x_yes
; then
17463 as_fn_error $?
"Could not find libexpat, expat.h" "$LINENO" 5
17465 for ac_header
in expat.h
17467 ac_fn_c_check_header_compile
"$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17469 if test "x$ac_cv_header_expat_h" = xyes
; then :
17470 cat >>confdefs.h
<<_ACEOF
17471 #define HAVE_EXPAT_H 1
17479 # set static linking if requested
17482 # Check whether --enable-static-exe was given.
17483 if test "${enable_static_exe+set}" = set; then :
17484 enableval
=$enable_static_exe;
17487 if test x_
$enable_static_exe = x_yes
; then
17488 staticexe
="-static"
17489 if test "$on_mingw" = yes; then
17490 staticexe
="-all-static"
17491 # for static crosscompile, include gdi32 and zlib here.
17492 if test "`uname`" = "Linux"; then
17493 LIBS
="$LIBS -lgdi32 -lz"
17498 # set lock checking if requested
17499 # Check whether --enable-lock_checks was given.
17500 if test "${enable_lock_checks+set}" = set; then :
17501 enableval
=$enable_lock_checks;
17504 if test x_
$enable_lock_checks = x_yes
; then
17506 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17508 CHECKLOCK_OBJ
="checklocks.lo"
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17514 $as_echo_n "checking for getaddrinfo... " >&6; }
17515 ac_cv_func_getaddrinfo
=no
17516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17523 char* getaddrinfo();
17524 char* (*f) () = getaddrinfo;
17534 if ac_fn_c_try_link
"$LINENO"; then :
17535 ac_cv_func_getaddrinfo
="yes"
17536 if test "$ac_cv_header_windows_h" = "yes"; then
17538 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17541 LIBS
="$LIBS -lws2_32"
17546 LIBS
="$LIBS -lws2_32"
17547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17550 #ifdef HAVE_WS2TCPIP_H
17551 #include <ws2tcpip.h>
17558 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17565 if ac_fn_c_try_link
"$LINENO"; then :
17567 ac_cv_func_getaddrinfo
="yes"
17569 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17575 ac_cv_func_getaddrinfo
="no"
17579 rm -f core conftest.err conftest.
$ac_objext \
17580 conftest
$ac_exeext conftest.
$ac_ext
17583 rm -f core conftest.err conftest.
$ac_objext \
17584 conftest
$ac_exeext conftest.
$ac_ext
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17587 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17588 if test $ac_cv_func_getaddrinfo = yes; then
17590 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17594 if test "$USE_WINSOCK" = 1; then
17596 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17598 for ac_header
in iphlpapi.h
17600 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17601 #include <windows.h>
17604 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
17605 cat >>confdefs.h
<<_ACEOF
17606 #define HAVE_IPHLPAPI_H 1
17613 if test -n "$ac_tool_prefix"; then
17614 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17615 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17617 $as_echo_n "checking for $ac_word... " >&6; }
17618 if ${ac_cv_prog_WINDRES+:} false
; then :
17619 $as_echo_n "(cached) " >&6
17621 if test -n "$WINDRES"; then
17622 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
17624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17625 for as_dir
in $PATH
17628 test -z "$as_dir" && as_dir
=.
17629 for ac_exec_ext
in '' $ac_executable_extensions; do
17630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17631 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
17632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17641 WINDRES
=$ac_cv_prog_WINDRES
17642 if test -n "$WINDRES"; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17644 $as_echo "$WINDRES" >&6; }
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17652 if test -z "$ac_cv_prog_WINDRES"; then
17653 ac_ct_WINDRES
=$WINDRES
17654 # Extract the first word of "windres", so it can be a program name with args.
17655 set dummy windres
; ac_word
=$2
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17657 $as_echo_n "checking for $ac_word... " >&6; }
17658 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
17659 $as_echo_n "(cached) " >&6
17661 if test -n "$ac_ct_WINDRES"; then
17662 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
17664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17665 for as_dir
in $PATH
17668 test -z "$as_dir" && as_dir
=.
17669 for ac_exec_ext
in '' $ac_executable_extensions; do
17670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17671 ac_cv_prog_ac_ct_WINDRES
="windres"
17672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17681 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
17682 if test -n "$ac_ct_WINDRES"; then
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17684 $as_echo "$ac_ct_WINDRES" >&6; }
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17690 if test "x$ac_ct_WINDRES" = x
; then
17693 case $cross_compiling:$ac_tool_warned in
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17697 ac_tool_warned
=yes ;;
17699 WINDRES
=$ac_ct_WINDRES
17702 WINDRES
="$ac_cv_prog_WINDRES"
17705 LIBS
="$LIBS -liphlpapi"
17706 WINAPPS
="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17708 WIN_DAEMON_SRC
="winrc/win_svc.c winrc/w_inst.c"
17710 WIN_DAEMON_OBJ
="win_svc.lo w_inst.lo"
17712 WIN_DAEMON_OBJ_LINK
="rsrc_unbound.o"
17714 WIN_HOST_OBJ_LINK
="rsrc_unbound_host.o"
17716 WIN_UBANCHOR_OBJ_LINK
="rsrc_unbound_anchor.o log.lo locks.lo"
17718 WIN_CONTROL_OBJ_LINK
="rsrc_unbound_control.o"
17720 WIN_CHECKCONF_OBJ_LINK
="rsrc_unbound_checkconf.o"
17723 if test $ac_cv_func_getaddrinfo = no
; then
17724 case " $LIBOBJS " in
17725 *" fake-rfc2553.$ac_objext "* ) ;;
17726 *) LIBOBJS
="$LIBOBJS fake-rfc2553.$ac_objext"
17731 # check after getaddrinfo for its libraries
17733 # check ioctlsocket
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17735 $as_echo_n "checking for ioctlsocket... " >&6; }
17736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17739 #ifdef HAVE_WINSOCK2_H
17740 #include <winsock2.h>
17747 (void)ioctlsocket(0, 0, NULL);
17753 if ac_fn_c_try_link
"$LINENO"; then :
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17756 $as_echo "yes" >&6; }
17758 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; }
17765 rm -f core conftest.err conftest.
$ac_objext \
17766 conftest
$ac_exeext conftest.
$ac_ext
17769 # see if daemon(3) exists, and if it is deprecated.
17770 for ac_func
in daemon
17772 ac_fn_c_check_func
"$LINENO" "daemon" "ac_cv_func_daemon"
17773 if test "x$ac_cv_func_daemon" = xyes
; then :
17774 cat >>confdefs.h
<<_ACEOF
17775 #define HAVE_DAEMON 1
17781 if test $ac_cv_func_daemon = yes; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17785 $as_echo_n "checking if daemon is deprecated... " >&6; }
17786 cache
=`echo daemon | sed 'y%.=/+-%___p_%'`
17787 if eval \
${cv_cc_deprecated_$cache+:} false
; then :
17788 $as_echo_n "(cached) " >&6
17792 #include <stdlib.h>
17794 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17795 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17796 eval "cv_cc_deprecated_$cache=no"
17798 eval "cv_cc_deprecated_$cache=yes"
17800 rm -f conftest conftest.o conftest.c
17804 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17806 $as_echo "yes" >&6; }
17808 cat >>confdefs.h
<<_ACEOF
17809 #define DEPRECATED_DAEMON 1
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17823 ac_fn_c_check_member
"$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17824 $ac_includes_default
17825 #if HAVE_SYS_PARAM_H
17826 #include <sys/param.h>
17829 #ifdef HAVE_SYS_SOCKET_H
17830 #include <sys/socket.h>
17833 #ifdef HAVE_SYS_UIO_H
17834 #include <sys/uio.h>
17837 #ifdef HAVE_NETINET_IN_H
17838 #include <netinet/in.h>
17841 #ifdef HAVE_ARPA_INET_H
17842 #include <arpa/inet.h>
17845 #ifdef HAVE_WINSOCK2_H
17846 #include <winsock2.h>
17849 #ifdef HAVE_WS2TCPIP_H
17850 #include <ws2tcpip.h>
17854 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes
; then :
17856 cat >>confdefs.h
<<_ACEOF
17857 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17864 $as_echo_n "checking for library containing setusercontext... " >&6; }
17865 if ${ac_cv_search_setusercontext+:} false
; then :
17866 $as_echo_n "(cached) " >&6
17868 ac_func_search_save_LIBS
=$LIBS
17869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17878 char setusercontext ();
17882 return setusercontext ();
17887 for ac_lib
in '' util
; do
17888 if test -z "$ac_lib"; then
17889 ac_res
="none required"
17892 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17894 if ac_fn_c_try_link
"$LINENO"; then :
17895 ac_cv_search_setusercontext
=$ac_res
17897 rm -f core conftest.err conftest.
$ac_objext \
17899 if ${ac_cv_search_setusercontext+:} false
; then :
17903 if ${ac_cv_search_setusercontext+:} false
; then :
17906 ac_cv_search_setusercontext
=no
17908 rm conftest.
$ac_ext
17909 LIBS
=$ac_func_search_save_LIBS
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17912 $as_echo "$ac_cv_search_setusercontext" >&6; }
17913 ac_res
=$ac_cv_search_setusercontext
17914 if test "$ac_res" != no
; then :
17915 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17919 for ac_func
in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot
kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent
17921 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17923 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17924 cat >>confdefs.h
<<_ACEOF
17925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17931 for ac_func
in setresuid
17933 ac_fn_c_check_func
"$LINENO" "setresuid" "ac_cv_func_setresuid"
17934 if test "x$ac_cv_func_setresuid" = xyes
; then :
17935 cat >>confdefs.h
<<_ACEOF
17936 #define HAVE_SETRESUID 1
17940 for ac_func
in setreuid
17942 ac_fn_c_check_func
"$LINENO" "setreuid" "ac_cv_func_setreuid"
17943 if test "x$ac_cv_func_setreuid" = xyes
; then :
17944 cat >>confdefs.h
<<_ACEOF
17945 #define HAVE_SETREUID 1
17954 for ac_func
in setresgid
17956 ac_fn_c_check_func
"$LINENO" "setresgid" "ac_cv_func_setresgid"
17957 if test "x$ac_cv_func_setresgid" = xyes
; then :
17958 cat >>confdefs.h
<<_ACEOF
17959 #define HAVE_SETRESGID 1
17963 for ac_func
in setregid
17965 ac_fn_c_check_func
"$LINENO" "setregid" "ac_cv_func_setregid"
17966 if test "x$ac_cv_func_setregid" = xyes
; then :
17967 cat >>confdefs.h
<<_ACEOF
17968 #define HAVE_SETREGID 1
17978 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17979 if echo $build_os | grep darwin8
> /dev
/null
; then
17981 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17984 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17985 if test "x$ac_cv_func_inet_aton" = xyes
; then :
17986 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17989 case " $LIBOBJS " in
17990 *" inet_aton.$ac_objext "* ) ;;
17991 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
17998 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17999 if test "x$ac_cv_func_inet_pton" = xyes
; then :
18000 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18003 case " $LIBOBJS " in
18004 *" inet_pton.$ac_objext "* ) ;;
18005 *) LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
18012 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18013 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
18014 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18017 case " $LIBOBJS " in
18018 *" inet_ntop.$ac_objext "* ) ;;
18019 *) LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
18026 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
18027 if test "x$ac_cv_func_snprintf" = xyes
; then :
18028 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18031 case " $LIBOBJS " in
18032 *" snprintf.$ac_objext "* ) ;;
18033 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
18040 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
18041 if test "x$ac_cv_func_strlcat" = xyes
; then :
18042 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18045 case " $LIBOBJS " in
18046 *" strlcat.$ac_objext "* ) ;;
18047 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
18054 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18055 if test "x$ac_cv_func_strlcpy" = xyes
; then :
18056 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18059 case " $LIBOBJS " in
18060 *" strlcpy.$ac_objext "* ) ;;
18061 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
18068 ac_fn_c_check_func
"$LINENO" "memmove" "ac_cv_func_memmove"
18069 if test "x$ac_cv_func_memmove" = xyes
; then :
18070 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18073 case " $LIBOBJS " in
18074 *" memmove.$ac_objext "* ) ;;
18075 *) LIBOBJS
="$LIBOBJS memmove.$ac_objext"
18082 ac_fn_c_check_func
"$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18083 if test "x$ac_cv_func_gmtime_r" = xyes
; then :
18084 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18087 case " $LIBOBJS " in
18088 *" gmtime_r.$ac_objext "* ) ;;
18089 *) LIBOBJS
="$LIBOBJS gmtime_r.$ac_objext"
18096 LIBOBJ_WITHOUT_CTIMEARC4
="$LIBOBJS"
18098 if test "$USE_NSS" = "no"; then
18099 ac_fn_c_check_func
"$LINENO" "arc4random" "ac_cv_func_arc4random"
18100 if test "x$ac_cv_func_arc4random" = xyes
; then :
18101 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18104 case " $LIBOBJS " in
18105 *" arc4random.$ac_objext "* ) ;;
18106 *) LIBOBJS
="$LIBOBJS arc4random.$ac_objext"
18113 ac_fn_c_check_func
"$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18114 if test "x$ac_cv_func_arc4random_uniform" = xyes
; then :
18115 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18118 case " $LIBOBJS " in
18119 *" arc4random_uniform.$ac_objext "* ) ;;
18120 *) LIBOBJS
="$LIBOBJS arc4random_uniform.$ac_objext"
18127 if test "$ac_cv_func_arc4random" = "no"; then
18128 case " $LIBOBJS " in
18129 *" explicit_bzero.$ac_objext "* ) ;;
18130 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
18134 case " $LIBOBJS " in
18135 *" arc4_lock.$ac_objext "* ) ;;
18136 *) LIBOBJS
="$LIBOBJS arc4_lock.$ac_objext"
18140 for ac_func
in getentropy
18142 ac_fn_c_check_func
"$LINENO" "getentropy" "ac_cv_func_getentropy"
18143 if test "x$ac_cv_func_getentropy" = xyes
; then :
18144 cat >>confdefs.h
<<_ACEOF
18145 #define HAVE_GETENTROPY 1
18150 if test "$USE_WINSOCK" = 1; then
18151 case " $LIBOBJS " in
18152 *" getentropy_win.$ac_objext "* ) ;;
18153 *) LIBOBJS
="$LIBOBJS getentropy_win.$ac_objext"
18160 case " $LIBOBJS " in
18161 *" getentropy_osx.$ac_objext "* ) ;;
18162 *) LIBOBJS
="$LIBOBJS getentropy_osx.$ac_objext"
18168 case " $LIBOBJS " in
18169 *" getentropy_solaris.$ac_objext "* ) ;;
18170 *) LIBOBJS
="$LIBOBJS getentropy_solaris.$ac_objext"
18174 for ac_header
in sys
/sha2.h
18176 ac_fn_c_check_header_compile
"$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18178 if test "x$ac_cv_header_sys_sha2_h" = xyes
; then :
18179 cat >>confdefs.h
<<_ACEOF
18180 #define HAVE_SYS_SHA2_H 1
18185 for ac_func
in SHA512_Update
18187 ac_fn_c_check_func
"$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18188 if test "x$ac_cv_func_SHA512_Update" = xyes
; then :
18189 cat >>confdefs.h
<<_ACEOF
18190 #define HAVE_SHA512_UPDATE 1
18195 case " $LIBOBJS " in
18196 *" sha512.$ac_objext "* ) ;;
18197 *) LIBOBJS
="$LIBOBJS sha512.$ac_objext"
18210 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18211 # this lib needed for sha2 on solaris
18216 case " $LIBOBJS " in
18217 *" getentropy_linux.$ac_objext "* ) ;;
18218 *) LIBOBJS
="$LIBOBJS getentropy_linux.$ac_objext"
18222 for ac_func
in SHA512_Update
18224 ac_fn_c_check_func
"$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18225 if test "x$ac_cv_func_SHA512_Update" = xyes
; then :
18226 cat >>confdefs.h
<<_ACEOF
18227 #define HAVE_SHA512_UPDATE 1
18233 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18235 case " $LIBOBJS " in
18236 *" sha512.$ac_objext "* ) ;;
18237 *) LIBOBJS
="$LIBOBJS sha512.$ac_objext"
18245 for ac_header
in sys
/sysctl.h
18247 ac_fn_c_check_header_compile
"$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18249 if test "x$ac_cv_header_sys_sysctl_h" = xyes
; then :
18250 cat >>confdefs.h
<<_ACEOF
18251 #define HAVE_SYS_SYSCTL_H 1
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18259 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18260 if ${ac_cv_search_clock_gettime+:} false
; then :
18261 $as_echo_n "(cached) " >&6
18263 ac_func_search_save_LIBS
=$LIBS
18264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18273 char clock_gettime ();
18277 return clock_gettime ();
18282 for ac_lib
in '' rt
; do
18283 if test -z "$ac_lib"; then
18284 ac_res
="none required"
18287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18289 if ac_fn_c_try_link
"$LINENO"; then :
18290 ac_cv_search_clock_gettime
=$ac_res
18292 rm -f core conftest.err conftest.
$ac_objext \
18294 if ${ac_cv_search_clock_gettime+:} false
; then :
18298 if ${ac_cv_search_clock_gettime+:} false
; then :
18301 ac_cv_search_clock_gettime
=no
18303 rm conftest.
$ac_ext
18304 LIBS
=$ac_func_search_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18307 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18308 ac_res
=$ac_cv_search_clock_gettime
18309 if test "$ac_res" != no
; then :
18310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18323 LIBOBJ_WITHOUT_CTIME
="$LIBOBJS"
18325 ac_fn_c_check_func
"$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18326 if test "x$ac_cv_func_ctime_r" = xyes
; then :
18327 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18330 case " $LIBOBJS " in
18331 *" ctime_r.$ac_objext "* ) ;;
18332 *) LIBOBJS
="$LIBOBJS ctime_r.$ac_objext"
18340 # Check whether --enable-allsymbols was given.
18341 if test "${enable_allsymbols+set}" = set; then :
18342 enableval
=$enable_allsymbols;
18345 case "$enable_allsymbols" in
18347 COMMON_OBJ_ALL_SYMBOLS
=""
18349 EXTRALINK
="-L. -L.libs -lunbound"
18351 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18355 COMMON_OBJ_ALL_SYMBOLS
='$(COMMON_OBJ)'
18356 UBSYMS
='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18363 if test x_
$enable_lock_checks = x_yes
; then
18364 UBSYMS
="-export-symbols clubsyms.def"
18365 cp ${srcdir}/libunbound
/ubsyms.def clubsyms.def
18366 echo lock_protect
>> clubsyms.def
18367 echo lock_unprotect
>> clubsyms.def
18368 echo lock_get_mem
>> clubsyms.def
18369 echo checklock_start
>> clubsyms.def
18370 echo checklock_stop
>> clubsyms.def
18371 echo checklock_lock
>> clubsyms.def
18372 echo checklock_unlock
>> clubsyms.def
18373 echo checklock_init
>> clubsyms.def
18374 echo checklock_thrcreate
>> clubsyms.def
18375 echo checklock_thrjoin
>> clubsyms.def
18378 # check for dnstap if requested
18380 # Check whether --enable-dnstap was given.
18381 if test "${enable_dnstap+set}" = set; then :
18382 enableval
=$enable_dnstap; opt_dnstap
=$enableval
18389 # Check whether --with-dnstap-socket-path was given.
18390 if test "${with_dnstap_socket_path+set}" = set; then :
18391 withval
=$with_dnstap_socket_path; opt_dnstap_socket_path
=$withval
18393 opt_dnstap_socket_path
="$UNBOUND_RUN_DIR/dnstap.sock"
18397 if test "x$opt_dnstap" != "xno"; then
18398 # Extract the first word of "protoc-c", so it can be a program name with args.
18399 set dummy protoc
-c; ac_word
=$2
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18401 $as_echo_n "checking for $ac_word... " >&6; }
18402 if ${ac_cv_path_PROTOC_C+:} false
; then :
18403 $as_echo_n "(cached) " >&6
18407 ac_cv_path_PROTOC_C
="$PROTOC_C" # Let the user override the test with a path.
18410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18411 for as_dir
in $PATH
18414 test -z "$as_dir" && as_dir
=.
18415 for ac_exec_ext
in '' $ac_executable_extensions; do
18416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18417 ac_cv_path_PROTOC_C
="$as_dir/$ac_word$ac_exec_ext"
18418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18428 PROTOC_C
=$ac_cv_path_PROTOC_C
18429 if test -n "$PROTOC_C"; then
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18431 $as_echo "$PROTOC_C" >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18434 $as_echo "no" >&6; }
18438 if test -z "$PROTOC_C"; then
18439 as_fn_error $?
"The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18442 # Check whether --with-protobuf-c was given.
18443 if test "${with_protobuf_c+set}" = set; then :
18444 withval
=$with_protobuf_c;
18445 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18446 if test -f $withval/include
/google
/protobuf
-c/protobuf
-c.h
; then
18447 CFLAGS
="$CFLAGS -I$withval/include/google"
18449 CFLAGS
="$CFLAGS -I$withval/include"
18451 LDFLAGS
="$LDFLAGS -L$withval/lib"
18455 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18456 if test -f /usr
/include
/google
/protobuf
-c/protobuf
-c.h
; then
18457 CFLAGS
="$CFLAGS -I/usr/include/google"
18459 if test -f /usr
/local
/include
/google
/protobuf
-c/protobuf
-c.h
; then
18460 CFLAGS
="$CFLAGS -I/usr/local/include/google"
18461 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
18468 # Check whether --with-libfstrm was given.
18469 if test "${with_libfstrm+set}" = set; then :
18470 withval
=$with_libfstrm;
18471 CFLAGS
="$CFLAGS -I$withval/include"
18472 LDFLAGS
="$LDFLAGS -L$withval/lib"
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18477 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18478 if ${ac_cv_search_fstrm_iothr_init+:} false
; then :
18479 $as_echo_n "(cached) " >&6
18481 ac_func_search_save_LIBS
=$LIBS
18482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18491 char fstrm_iothr_init ();
18495 return fstrm_iothr_init ();
18500 for ac_lib
in '' fstrm
; do
18501 if test -z "$ac_lib"; then
18502 ac_res
="none required"
18505 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18507 if ac_fn_c_try_link
"$LINENO"; then :
18508 ac_cv_search_fstrm_iothr_init
=$ac_res
18510 rm -f core conftest.err conftest.
$ac_objext \
18512 if ${ac_cv_search_fstrm_iothr_init+:} false
; then :
18516 if ${ac_cv_search_fstrm_iothr_init+:} false
; then :
18519 ac_cv_search_fstrm_iothr_init
=no
18521 rm conftest.
$ac_ext
18522 LIBS
=$ac_func_search_save_LIBS
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18525 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18526 ac_res
=$ac_cv_search_fstrm_iothr_init
18527 if test "$ac_res" != no
; then :
18528 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18531 as_fn_error $?
"The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18535 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18536 if ${ac_cv_search_protobuf_c_message_pack+:} false
; then :
18537 $as_echo_n "(cached) " >&6
18539 ac_func_search_save_LIBS
=$LIBS
18540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18549 char protobuf_c_message_pack ();
18553 return protobuf_c_message_pack ();
18558 for ac_lib
in '' protobuf
-c; do
18559 if test -z "$ac_lib"; then
18560 ac_res
="none required"
18563 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18565 if ac_fn_c_try_link
"$LINENO"; then :
18566 ac_cv_search_protobuf_c_message_pack
=$ac_res
18568 rm -f core conftest.err conftest.
$ac_objext \
18570 if ${ac_cv_search_protobuf_c_message_pack+:} false
; then :
18574 if ${ac_cv_search_protobuf_c_message_pack+:} false
; then :
18577 ac_cv_search_protobuf_c_message_pack
=no
18579 rm conftest.
$ac_ext
18580 LIBS
=$ac_func_search_save_LIBS
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18583 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18584 ac_res
=$ac_cv_search_protobuf_c_message_pack
18585 if test "$ac_res" != no
; then :
18586 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18589 as_fn_error $?
"The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18594 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18600 hdr_dnstap_socket_path
="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18603 cat >>confdefs.h
<<_ACEOF
18604 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18608 DNSTAP_SRC
="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18610 DNSTAP_OBJ
="dnstap.lo dnstap.pb-c.lo"
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18623 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18624 # on openBSD, the implicit rule make $< work.
18625 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18627 cat >conftest.
make <<EOF
18630 conftest.lo foo.lo bla.lo:
18631 if test -f "\$<"; then touch \$@; fi
18635 if test -f "\$<"; then touch \$@; fi
18637 conftest.lo: conftest.dir/conftest.c
18640 touch conftest.dir
/conftest.c
18641 rm -f conftest.lo conftest.c
18642 ${MAKE:-make} -f conftest.
make >/dev
/null
18643 rm -f conftest.
make conftest.c conftest.dir
/conftest.c
18644 rm -rf conftest.dir
18645 if test ! -f conftest.lo
; then
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18648 SOURCEDETERMINE
='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18649 SOURCEFILE
='`cat .source`'
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18652 $as_echo "yes" >&6; }
18653 SOURCEDETERMINE
=':'
18660 # see if we want to build the library or everything
18661 ALLTARGET
="alltargets"
18662 INSTALLTARGET
="install-all"
18664 # Check whether --with-libunbound-only was given.
18665 if test "${with_libunbound_only+set}" = set; then :
18666 withval
=$with_libunbound_only;
18667 if test "$withval" = "yes"; then
18669 INSTALLTARGET
="install-lib"
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18679 $as_echo "$as_me: Stripping extension flags..." >&6;}
18681 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev
/null
2>&1; then
18682 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18684 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18689 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev
/null
2>&1; then
18690 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18692 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18697 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev
/null
2>&1; then
18698 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18700 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18705 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev
/null
2>&1; then
18706 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18708 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18713 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev
/null
2>&1; then
18714 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18716 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18721 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev
/null
2>&1; then
18722 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18724 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18729 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev
/null
2>&1; then
18730 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18732 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18737 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev
/null
2>&1; then
18738 CFLAGS
="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18740 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18745 LDFLAGS
="$LATE_LDFLAGS $LDFLAGS"
18748 cat >>confdefs.h
<<_ACEOF
18749 #define MAXSYSLOGMSGLEN 10240
18757 date=`date +'%b %e, %Y'`
18760 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"
18762 ac_config_headers
="$ac_config_headers config.h"
18764 cat >confcache
<<\_ACEOF
18765 # This file is a shell script that caches the results of configure
18766 # tests run on this system so they can be shared between configure
18767 # scripts and configure runs, see configure's option --config-cache.
18768 # It is not useful on other systems. If it contains results you don't
18769 # want to keep, you may remove or edit it.
18771 # config.status only pays attention to the cache file if you give it
18772 # the --recheck option to rerun configure.
18774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18776 # following values.
18780 # The following way of writing the cache mishandles newlines in values,
18781 # but we know of no workaround that is simple, portable, and efficient.
18782 # So, we kill variables containing newlines.
18783 # Ultrix sh set writes to stderr and can't be redirected directly,
18784 # and sets the high bit in the cache file unless we assign to the vars.
18786 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18787 eval ac_val
=\$
$ac_var
18791 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18795 _
| IFS
| as_nl
) ;; #(
18796 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
18797 *) { eval $ac_var=; unset $ac_var;} ;;
18803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18804 *${as_nl}ac_space
=\
*)
18805 # `set' does not quote correctly, so add quotes: double-quote
18806 # substitution turns \\\\ into \\, and sed turns \\ into \.
18809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18812 # `set' quotes correctly as required by POSIX, so do not add quotes.
18813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18826 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18827 if test -w "$cache_file"; then
18828 if test "x$cache_file" != "x/dev/null"; then
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18830 $as_echo "$as_me: updating cache $cache_file" >&6;}
18831 if test ! -f "$cache_file" || test -h "$cache_file"; then
18832 cat confcache
>"$cache_file"
18834 case $cache_file in #(
18836 mv -f confcache
"$cache_file"$$
&&
18837 mv -f "$cache_file"$$
"$cache_file" ;; #(
18839 mv -f confcache
"$cache_file" ;;
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18845 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18850 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18851 # Let make expand exec_prefix.
18852 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18854 DEFS
=-DHAVE_CONFIG_H
18859 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18860 # 1. Remove the extension, and $U if already installed.
18861 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18862 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18864 # will be set to the directory where LIBOBJS objects are built.
18865 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18866 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18868 LIBOBJS
=$ac_libobjs
18870 LTLIBOBJS
=$ac_ltlibobjs
18874 : "${CONFIG_STATUS=./config.status}"
18876 ac_clean_files_save
=$ac_clean_files
18877 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18881 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18883 # Generated by $as_me.
18884 # Run this file to recreate the current configuration.
18885 # Compiler output produced by configure, useful for debugging
18886 # configure, is in config.log if it exists.
18889 ac_cs_recheck=false
18892 SHELL=\${CONFIG_SHELL-$SHELL}
18895 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
18896 ## -------------------- ##
18897 ## M4sh Initialization. ##
18898 ## -------------------- ##
18900 # Be more Bourne compatible
18901 DUALCASE
=1; export DUALCASE
# for MKS sh
18902 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18906 # is contrary to our usage. Disable this feature.
18907 alias -g '${1+"$@"}'='"$@"'
18908 setopt NO_GLOB_SUBST
18910 case `(set -o) 2>/dev/null` in #(
18922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18923 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18926 # Prefer a ksh shell builtin over an external printf program on Solaris,
18927 # but without wasting forks for bash or zsh.
18928 if test -z "$BASH_VERSION$ZSH_VERSION" \
18929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18930 as_echo='print
-r --'
18931 as_echo_n='print
-rn --'
18932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18933 as_echo='printf %s
\n'
18934 as_echo_n='printf %s
'
18936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18937 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18938 as_echo_n='/usr
/ucb
/echo -n'
18940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18941 as_echo_n_body='eval
18945 expr "X$arg" : "X\\(.*\\)$as_nl";
18946 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18950 export as_echo_n_body
18951 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18953 export as_echo_body
18954 as_echo='sh
-c $as_echo_body as_echo
'
18957 # The user is always right.
18958 if test "${PATH_SEPARATOR+set}" != set; then
18960 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18961 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18968 # We need space, tab and new line, in precisely that order. Quoting is
18969 # there to prevent editors from complaining about space-tab.
18970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18971 # splitting by setting IFS to empty value.)
18974 # Find who we are. Look in the path if we contain no directory separator.
18977 *[\\/]* ) as_myself=$0 ;;
18978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18979 for as_dir in $PATH
18982 test -z "$as_dir" && as_dir=.
18983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18989 # We did not find ourselves, most probably we were run as `sh COMMAND'
18990 # in which case we are not to be found in the path.
18991 if test "x$as_myself" = x
; then
18994 if test ! -f "$as_myself"; then
18995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18999 # Unset variables that we do not need and which cause bugs (e.g. in
19000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19001 # suppresses any "Segmentation fault" message there. '((' could
19002 # trigger a bug in pdksh 5.2.14.
19003 for as_var
in BASH_ENV ENV MAIL MAILPATH
19004 do eval test x\
${$as_var+set} = xset \
19005 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
19018 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19022 # ----------------------------------------
19023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19025 # script with STATUS, using 1 if that was 0.
19028 as_status
=$1; test $as_status -eq 0 && as_status
=1
19030 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19033 $as_echo "$as_me: error: $2" >&2
19034 as_fn_exit
$as_status
19038 # as_fn_set_status STATUS
19039 # -----------------------
19040 # Set $? to STATUS, without forking.
19041 as_fn_set_status
()
19044 } # as_fn_set_status
19046 # as_fn_exit STATUS
19047 # -----------------
19048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19052 as_fn_set_status
$1
19058 # Portably unset VAR.
19061 { eval $1=; unset $1;}
19063 as_unset
=as_fn_unset
19064 # as_fn_append VAR VALUE
19065 # ----------------------
19066 # Append the text in VALUE to the end of the definition contained in VAR. Take
19067 # advantage of any shell optimizations that allow amortized linear growth over
19068 # repeated appends, instead of the typical quadratic growth present in naive
19070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19071 eval 'as_fn_append ()
19082 # as_fn_arith ARG...
19083 # ------------------
19084 # Perform arithmetic evaluation on the ARGs, and store the result in the
19085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19086 # must be portable across $(()) and expr.
19087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19088 eval 'as_fn_arith ()
19095 as_val
=`expr "$@" || test $? -eq 1`
19100 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19101 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19107 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19108 as_basename
=basename
19113 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19119 as_me
=`$as_basename -- "$0" ||
19120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19121 X"$0" : 'X\(//\)$' \| \
19122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19124 sed '/^.*\/\([^/][^/]*\)\/*$/{
19138 # Avoid depending upon Character Ranges.
19139 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19140 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19141 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19142 as_cr_digits
='0123456789'
19143 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19145 ECHO_C
= ECHO_N
= ECHO_T
=
19146 case `echo -n x` in #(((((
19148 case `echo 'xy\c'` in
19149 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19151 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19158 rm -f conf$$ conf$$.exe conf$$.
file
19159 if test -d conf$$.dir
; then
19160 rm -f conf$$.dir
/conf$$.
file
19163 mkdir conf$$.dir
2>/dev
/null
19165 if (echo >conf$$.
file) 2>/dev
/null
; then
19166 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19168 # ... but there are two gotchas:
19169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19171 # In both cases, we have to default to `cp -pR'.
19172 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
19174 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19182 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19183 rmdir conf$$.dir
2>/dev
/null
19188 # Create "$as_dir" as a directory, including parents if necessary.
19193 -*) as_dir
=.
/$as_dir;;
19195 test -d "$as_dir" || eval $as_mkdir_p || {
19199 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19200 *) as_qdir
=$as_dir;;
19202 as_dirs
="'$as_qdir' $as_dirs"
19203 as_dir
=`$as_dirname -- "$as_dir" ||
19204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19205 X"$as_dir" : 'X\(//\)[^/]' \| \
19206 X"$as_dir" : 'X\(//\)$' \| \
19207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19208 $as_echo X"$as_dir" |
19209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19213 /^X\(\/\/\)[^/].*/{
19226 test -d "$as_dir" && break
19228 test -z "$as_dirs" || eval "mkdir $as_dirs"
19229 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19233 if mkdir -p .
2>/dev
/null
; then
19234 as_mkdir_p
='mkdir -p "$as_dir"'
19236 test -d .
/-p && rmdir .
/-p
19241 # as_fn_executable_p FILE
19242 # -----------------------
19243 # Test if FILE is an executable regular file.
19244 as_fn_executable_p
()
19246 test -f "$1" && test -x "$1"
19247 } # as_fn_executable_p
19248 as_test_x
='test -x'
19249 as_executable_p
=as_fn_executable_p
19251 # Sed expression to map a string onto a valid CPP name.
19252 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19254 # Sed expression to map a string onto a valid variable name.
19255 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19259 ## ----------------------------------- ##
19260 ## Main body of $CONFIG_STATUS script. ##
19261 ## ----------------------------------- ##
19263 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19265 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
19266 # Save the log message, to keep $0 and so on meaningful, and to
19267 # report actual input values of CONFIG_FILES etc. instead of their
19268 # values after options handling.
19270 This file was extended by unbound $as_me 1.5.1, which was
19271 generated by GNU Autoconf 2.69. Invocation command line was
19273 CONFIG_FILES = $CONFIG_FILES
19274 CONFIG_HEADERS = $CONFIG_HEADERS
19275 CONFIG_LINKS = $CONFIG_LINKS
19276 CONFIG_COMMANDS = $CONFIG_COMMANDS
19279 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19284 case $ac_config_files in *"
19285 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19288 case $ac_config_headers in *"
19289 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 # Files that config.status was made for.
19295 config_files="$ac_config_files"
19296 config_headers="$ac_config_headers"
19297 config_commands="$ac_config_commands"
19301 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
19303 \`$as_me' instantiates files and other configuration actions
19304 from templates according to the current configuration. Unless the files
19305 and actions are specified as TAGs, all are instantiated by default.
19307 Usage: $0 [OPTION]... [TAG]...
19309 -h, --help print this help, then exit
19310 -V, --version print version number and configuration settings, then exit
19311 --config print configuration, then exit
19312 -q, --quiet, --silent
19313 do not print progress messages
19314 -d, --debug don't remove temporary files
19315 --recheck update $as_me by reconfiguring in the same conditions
19316 --file=FILE[:TEMPLATE]
19317 instantiate the configuration file FILE
19318 --header=FILE[:TEMPLATE]
19319 instantiate the configuration header FILE
19321 Configuration files:
19324 Configuration headers:
19327 Configuration commands:
19330 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19336 unbound config.status 1.5.1
19337 configured by $0, generated by GNU Autoconf 2.69,
19338 with options \\"\$ac_cs_config\\"
19340 Copyright (C) 2012 Free Software Foundation, Inc.
19341 This config.status script is free software; the Free Software Foundation
19342 gives unlimited permission to copy, distribute and modify it."
19347 test -n "\$AWK" || AWK=awk
19350 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
19351 # The default lists apply if the user does not specify any file.
19357 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19358 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19362 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19374 # Handling of the options.
19375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19378 $as_echo "$ac_cs_version"; exit ;;
19379 --config | --confi | --conf | --con | --co | --c )
19380 $as_echo "$ac_cs_config"; exit ;;
19381 --debug | --debu | --deb | --de | --d | -d )
19383 --file | --fil | --fi | --f )
19386 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19387 '') as_fn_error $?
"missing file argument" ;;
19389 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19390 ac_need_defaults
=false
;;
19391 --header | --heade | --head | --hea )
19394 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19396 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19397 ac_need_defaults
=false
;;
19399 # Conflict between --help and --header
19400 as_fn_error $?
"ambiguous option: \`$1'
19401 Try \`$0 --help' for more information.";;
19402 --help | --hel | -h )
19403 $as_echo "$ac_cs_usage"; exit ;;
19404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19408 # This is an error.
19409 -*) as_fn_error $?
"unrecognized option: \`$1'
19410 Try \`$0 --help' for more information." ;;
19412 *) as_fn_append ac_config_targets
" $1"
19413 ac_need_defaults
=false
;;
19419 ac_configure_extra_args
=
19421 if $ac_cs_silent; then
19423 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19428 if \$ac_cs_recheck; then
19429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19432 CONFIG_SHELL='$SHELL'
19433 export CONFIG_SHELL
19438 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
19442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19443 ## Running $as_me. ##
19449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 # The HP-UX ksh and POSIX shell print the target directory to stdout
19456 # if CDPATH is set.
19457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19459 sed_quote_subst='$sed_quote_subst'
19460 double_quote_subst='$double_quote_subst'
19461 delay_variable_subst='$delay_variable_subst'
19462 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19463 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19464 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19465 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19466 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19467 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19468 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19469 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19470 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19471 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19472 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19473 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19474 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19475 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19476 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19477 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19478 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19479 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19480 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19481 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19482 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19483 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19484 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19485 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19486 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19487 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19488 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19489 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19490 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19491 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19492 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19495 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19496 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19497 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19498 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19499 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19500 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19501 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19502 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19503 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19504 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19505 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19506 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19507 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19508 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19509 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19510 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19511 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19512 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19513 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19514 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19515 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19516 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19517 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19518 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"`'
19519 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19520 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19521 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19522 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19523 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19524 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19525 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19526 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19527 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19528 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19529 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19530 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19531 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19532 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19533 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19534 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19535 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19536 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19537 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19538 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19539 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19540 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19541 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19542 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19543 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19544 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19545 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19546 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19547 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19548 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19549 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19550 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19551 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19552 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19553 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19554 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19555 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19556 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19557 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19558 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19559 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19560 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19561 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19562 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19563 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19564 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19565 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19566 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19567 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19568 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19569 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19570 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19571 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19572 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19573 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19574 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19575 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19576 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19577 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19578 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19579 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19580 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19581 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19582 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19583 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19584 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19585 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19586 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19587 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19588 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19589 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19590 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19591 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19594 LTCFLAGS='$LTCFLAGS'
19595 compiler='$compiler_DEFAULT'
19597 # A function that is used when there is no print builtin or printf.
19598 func_fallback_echo ()
19600 eval 'cat <<_LTECHO_EOF
19605 # Quote evaled strings.
19620 deplibs_check_method \
19625 sharedlib_from_linklib_cmd \
19628 archiver_list_spec \
19634 lt_cv_sys_global_symbol_pipe \
19635 lt_cv_sys_global_symbol_to_cdecl \
19636 lt_cv_sys_global_symbol_to_c_name_address \
19637 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19638 nm_file_list_spec \
19639 lt_prog_compiler_no_builtin_flag \
19640 lt_prog_compiler_pic \
19641 lt_prog_compiler_wl \
19642 lt_prog_compiler_static \
19643 lt_cv_prog_compiler_c_o \
19652 export_dynamic_flag_spec \
19653 whole_archive_flag_spec \
19654 compiler_needs_object \
19656 allow_undefined_flag \
19657 no_undefined_flag \
19658 hardcode_libdir_flag_spec \
19659 hardcode_libdir_separator \
19663 variables_saved_for_relink \
19665 library_names_spec \
19667 install_override_mode \
19671 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19672 *[\\\\\\\`\\"\\\$]*)
19673 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19676 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19681 # Double-quote double-evaled strings.
19682 for var in reload_cmds \
19683 old_postinstall_cmds \
19684 old_postuninstall_cmds \
19686 extract_expsyms_cmds \
19687 old_archive_from_new_cmds \
19688 old_archive_from_expsyms_cmds \
19690 archive_expsym_cmds \
19692 module_expsym_cmds \
19693 export_symbols_cmds \
19697 postuninstall_cmds \
19699 sys_lib_search_path_spec \
19700 sys_lib_dlsearch_path_spec; do
19701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19702 *[\\\\\\\`\\"\\\$]*)
19703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19711 ac_aux_dir='$ac_aux_dir'
19712 xsi_shell='$xsi_shell'
19713 lt_shell_append='$lt_shell_append'
19715 # See if we are running on zsh, and set the options which allow our
19716 # commands through without removal of \ escapes INIT.
19717 if test -n "\${ZSH_VERSION+set}" ; then
19718 setopt NO_GLOB_SUBST
19724 TIMESTAMP='$TIMESTAMP'
19733 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
19735 # Handling of arguments.
19736 for ac_config_target
in $ac_config_targets
19738 case $ac_config_target in
19739 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
19740 "disable-rpath") CONFIG_COMMANDS
="$CONFIG_COMMANDS disable-rpath" ;;
19741 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19742 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
19743 "doc/libunbound.3") CONFIG_FILES
="$CONFIG_FILES doc/libunbound.3" ;;
19744 "doc/unbound.8") CONFIG_FILES
="$CONFIG_FILES doc/unbound.8" ;;
19745 "doc/unbound-anchor.8") CONFIG_FILES
="$CONFIG_FILES doc/unbound-anchor.8" ;;
19746 "doc/unbound-checkconf.8") CONFIG_FILES
="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19747 "doc/unbound.conf.5") CONFIG_FILES
="$CONFIG_FILES doc/unbound.conf.5" ;;
19748 "doc/unbound-control.8") CONFIG_FILES
="$CONFIG_FILES doc/unbound-control.8" ;;
19749 "doc/unbound-host.1") CONFIG_FILES
="$CONFIG_FILES doc/unbound-host.1" ;;
19750 "smallapp/unbound-control-setup.sh") CONFIG_FILES
="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19751 "dnstap/dnstap_config.h") CONFIG_FILES
="$CONFIG_FILES dnstap/dnstap_config.h" ;;
19752 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19754 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19759 # If the user did not use the arguments to specify the items to instantiate,
19760 # then the envvar interface is used. Set only those that are not.
19761 # We use the long form for the default assignment because of an extremely
19762 # bizarre bug on SunOS 4.1.3.
19763 if $ac_need_defaults; then
19764 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19765 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19766 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19769 # Have a temporary directory for convenience. Make it in the build tree
19770 # simply because there is no reason against having it here, and in addition,
19771 # creating and moving files from /tmp can sometimes cause problems.
19772 # Hook for its removal unless debugging.
19773 # Note that there is a small window in which the directory will not be cleaned:
19774 # after its creation but before its name has been assigned to `$tmp'.
19778 trap 'exit_status=$?
19779 : "${ac_tmp:=$tmp}"
19780 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19782 trap 'as_fn_exit 1' 1 2 13 15
19784 # Create a (secure) tmp directory for tmp files.
19787 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19791 tmp
=.
/conf$$
-$RANDOM
19792 (umask 077 && mkdir "$tmp")
19793 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19796 # Set up the scripts for CONFIG_FILES section.
19797 # No need to generate them if there are no CONFIG_FILES.
19798 # This happens for instance with `./config.status config.h'.
19799 if test -n "$CONFIG_FILES"; then
19802 ac_cr
=`echo X | tr X '\015'`
19803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19804 # But we know of no other shell where ac_cr would be empty at this
19805 # point, so we can use a bashism as a fallback.
19806 if test "x$ac_cr" = x
; then
19807 eval ac_cr
=\$
\'\\r
\'
19809 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19813 ac_cs_awk_cr
=$ac_cr
19816 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19821 echo "cat >conf$$subs.awk <<_ACEOF" &&
19822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19824 } >conf$$subs.sh ||
19825 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19828 for ac_last_try in false false false false false :; do
19829 . ./conf$$subs.sh ||
19830 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19832 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19833 if test $ac_delim_n = $ac_delim_num; then
19835 elif $ac_last_try; then
19836 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19838 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19841 rm -f conf$$subs.sh
19843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19844 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19848 s/^/S["/; s
/!.
*/"]=/
19858 s/\(.\{148\}\)..*/\1/
19860 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19865 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19872 s/\(.\{148\}\)..*/\1/
19874 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19878 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19883 ' <conf$$subs.awk | sed '
19888 ' >>$CONFIG_STATUS || ac_write_fail=1
19889 rm -f conf$$subs.awk
19890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19892 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19893 for (key in S) S_is_set[key] = 1
19899 nfields = split(line, field, "@
")
19901 len = length(field[1])
19902 for (i = 2; i < nfields; i++) {
19904 keylen = length(key)
19905 if (S_is_set[key]) {
19907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19908 len += length(value) + length(field[++i])
19919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19920 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19921 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19924 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19925 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19928 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19929 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19930 # trailing colons and then remove the whole line if VPATH becomes empty
19931 # (actually we leave an empty line to preserve line numbers).
19932 if test "x
$srcdir" = x.; then
19933 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952 fi # test -n "$CONFIG_FILES"
19954 # Set up the scripts for CONFIG_HEADERS section.
19955 # No need to generate them if there are no CONFIG_HEADERS.
19956 # This happens for instance with `./config.status Makefile'.
19957 if test -n "$CONFIG_HEADERS"; then
19958 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19962 # Transform confdefs.h into an awk script `defines.awk', embedded as
19963 # here-document in config.status, that substitutes the proper values into
19964 # config.h.in to produce config.h.
19966 # Create a delimiter string that does not exist in confdefs.h, to ease
19967 # handling of long lines.
19969 for ac_last_try in false false :; do
19970 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
19971 if test -z "$ac_tt"; then
19973 elif $ac_last_try; then
19974 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
19976 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19980 # For the awk script, D is an array of macro values keyed by name,
19981 # likewise P contains macro parameters if any. Preserve backslash
19982 # newline sequences.
19984 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19986 s/.\{148\}/&'"$ac_delim"'/g
19989 s/^[ ]*#[ ]*define[ ][ ]*/ /
19996 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19998 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20002 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20003 D["\
1"]=" \
3\\\\\\n
"\\/p
20005 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20010 s/.\{148\}/&'"$ac_delim"'/g
20015 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20018 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20020 ' <confdefs.h | sed '
20021 s/'"$ac_delim"'/"\\\
20022 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20025 for (key in D) D_is_set[key] = 1
20028 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20030 split(line, arg, " ")
20031 if (arg[1] == "#") {
20035 defundef
= substr
(arg
[1], 2)
20038 split(mac1
, mac2
, "(") #)
20040 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20041 if (D_is_set
[macro
]) {
20042 # Preserve the white space surrounding the "#".
20043 print prefix
"define", macro P
[macro
] D
[macro
]
20046 # Replace #undef with comments. This is necessary, for example,
20047 # in the case of _POSIX_SOURCE, which is predefined and required
20048 # on some systems where configure will not decide to define it.
20049 if (defundef
== "undef") {
20050 print
"/*", prefix defundef
, macro
, "*/"
20058 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
20059 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20060 fi # test -n "$CONFIG_HEADERS"
20063 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20068 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20070 case $ac_mode$ac_tag in
20072 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20073 :[FH
]-) ac_tag
=-:-;;
20074 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20091 -) ac_f
="$ac_tmp/stdin";;
20092 *) # Look for the file first in the build tree, then in the source tree
20093 # (if the path is not absolute). The absolute path cannot be DOS-style,
20094 # because $ac_f cannot contain `:'.
20098 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20100 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20102 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20103 as_fn_append ac_file_inputs
" '$ac_f'"
20106 # Let's still pretend it is `configure' which instantiates (i.e., don't
20107 # use $as_me), people would be surprised to read:
20108 # /* config.h. Generated by config.status. */
20109 configure_input
='Generated from '`
20110 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20112 if test x
"$ac_file" != x
-; then
20113 configure_input
="$ac_file. $configure_input"
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20115 $as_echo "$as_me: creating $ac_file" >&6;}
20117 # Neutralize special characters interpreted by sed in replacement strings.
20118 case $configure_input in #(
20119 *\
&* | *\
|* | *\\* )
20120 ac_sed_conf_input
=`$as_echo "$configure_input" |
20121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20122 *) ac_sed_conf_input
=$configure_input;;
20126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20127 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20132 ac_dir
=`$as_dirname -- "$ac_file" ||
20133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20134 X"$ac_file" : 'X\(//\)[^/]' \| \
20135 X"$ac_file" : 'X\(//\)$' \| \
20136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20137 $as_echo X"$ac_file" |
20138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20142 /^X\(\/\/\)[^/].*/{
20155 as_dir
="$ac_dir"; as_fn_mkdir_p
20159 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20161 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20162 # A ".." for each directory in $ac_dir_suffix.
20163 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20164 case $ac_top_builddir_sub in
20165 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20166 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20169 ac_abs_top_builddir
=$ac_pwd
20170 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20171 # for backward compatibility:
20172 ac_top_builddir
=$ac_top_build_prefix
20175 .
) # We are building in place.
20177 ac_top_srcdir
=$ac_top_builddir_sub
20178 ac_abs_top_srcdir
=$ac_pwd ;;
20179 [\\/]* | ?
:[\\/]* ) # Absolute name.
20180 ac_srcdir
=$srcdir$ac_dir_suffix;
20181 ac_top_srcdir
=$srcdir
20182 ac_abs_top_srcdir
=$srcdir ;;
20183 *) # Relative name.
20184 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20185 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20186 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20188 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20199 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
20200 # If the template does not know about datarootdir, expand it.
20201 # FIXME: This hack should be removed a few years after 2.60.
20202 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20214 *datarootdir
*) ac_datarootdir_seen
=yes;;
20215 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20220 ac_datarootdir_hack='
20221 s&@datadir@&$datadir&g
20222 s&@docdir@&$docdir&g
20223 s&@infodir@&$infodir&g
20224 s&@localedir@&$localedir&g
20225 s&@mandir@&$mandir&g
20226 s&\\\${datarootdir}&$datarootdir&g' ;;
20230 # Neutralize VPATH when `$srcdir' = `.'.
20231 # Shell code in configure.ac might set extrasub.
20232 # FIXME: do we really want to maintain this feature?
20233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20234 ac_sed_extra="$ac_vpsub
20237 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
20239 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
20240 s
|@configure_input@
|$ac_sed_conf_input|;t t
20241 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20242 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20243 s
&@srcdir@
&$ac_srcdir&;t t
20244 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20245 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20246 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20247 s
&@builddir@
&$ac_builddir&;t t
20248 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20249 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20250 $ac_datarootdir_hack
20252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20253 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20255 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20256 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20257 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20258 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20260 which seems to be undefined. Please make sure it is defined" >&5
20261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20262 which seems to be undefined. Please make sure it is defined" >&2;}
20264 rm -f "$ac_tmp/stdin"
20266 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20267 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20275 if test x"$ac_file" != x-; then
20277 $as_echo "/* $configure_input */" \
20278 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20279 } >"$ac_tmp/config.h" \
20280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20281 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20286 mv "$ac_tmp/config.h" "$ac_file" \
20287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20290 $as_echo "/* $configure_input */" \
20291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20292 || as_fn_error $? "could not create -" "$LINENO" 5
20296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20297 $as_echo "$as_me: executing $ac_file commands" >&6;}
20302 case $ac_file$ac_mode in
20305 # See if we are running on zsh, and set the options which allow our
20306 # commands through without removal of \ escapes.
20307 if test -n "${ZSH_VERSION+set}" ; then
20308 setopt NO_GLOB_SUBST
20311 cfgfile="${ofile}T"
20312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20315 cat <<_LT_EOF >> "$cfgfile"
20318 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
20319 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20321 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20323 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20324 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20326 # Written by Gordon Matzigkeit, 1996
20328 # This file is part of GNU Libtool.
20330 # GNU Libtool is free software; you can redistribute it and/or
20331 # modify it under the terms of the GNU General Public License as
20332 # published by the Free Software Foundation; either version 2 of
20333 # the License, or (at your option) any later version.
20335 # As a special exception to the GNU General Public License,
20336 # if you distribute this file as part of a program or library that
20337 # is built using GNU Libtool, you may include this file under the
20338 # same distribution terms that you use for the rest of that program.
20340 # GNU Libtool is distributed in the hope that it will be useful,
20341 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20343 # GNU General Public License for more details.
20345 # You should have received a copy of the GNU General Public License
20346 # along with GNU Libtool; see the file COPYING. If not, a copy
20347 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20348 # obtained by writing to the Free Software Foundation, Inc.,
20349 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20352 # The names of the tagged configurations supported by this script.
20355 # ### BEGIN LIBTOOL CONFIG
20357 # Which release of libtool.m4 was used?
20358 macro_version=$macro_version
20359 macro_revision=$macro_revision
20361 # Whether or not to build shared libraries.
20362 build_libtool_libs=$enable_shared
20364 # Whether or not to build static libraries.
20365 build_old_libs=$enable_static
20367 # What type of objects to build.
20370 # Whether or not to optimize for fast installation.
20371 fast_install=$enable_fast_install
20373 # Shell to use when invoking shell scripts.
20376 # An echo program that protects backslashes.
20379 # The PATH separator for the build system.
20380 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20383 host_alias=$host_alias
20387 # The build system.
20388 build_alias=$build_alias
20392 # A sed program that does not truncate output.
20395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20396 Xsed="\$SED -e 1s/^X//"
20398 # A grep program that handles long lines.
20404 # A literal string matcher.
20407 # A BSD- or MS-compatible name lister.
20410 # Whether we need soft or hard links.
20413 # What is the maximum length of a command?
20414 max_cmd_len=$max_cmd_len
20416 # Object file suffix (normally "o").
20419 # Executable file suffix (normally "").
20422 # whether the shell understands "unset".
20425 # turn spaces into newlines.
20428 # turn newlines into spaces.
20431 # convert \$build file names to \$host format.
20432 to_host_file_cmd=$lt_cv_to_host_file_cmd
20434 # convert \$build files to toolchain format.
20435 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20437 # An object symbol dumper.
20438 OBJDUMP=$lt_OBJDUMP
20440 # Method to check whether dependent libraries are shared objects.
20441 deplibs_check_method=$lt_deplibs_check_method
20443 # Command to use when deplibs_check_method = "file_magic".
20444 file_magic_cmd=$lt_file_magic_cmd
20446 # How to find potential files when deplibs_check_method = "file_magic".
20447 file_magic_glob=$lt_file_magic_glob
20449 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20450 want_nocaseglob=$lt_want_nocaseglob
20452 # DLL creation program.
20453 DLLTOOL=$lt_DLLTOOL
20455 # Command to associate shared and link libraries.
20456 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20461 # Flags to create an archive.
20462 AR_FLAGS=$lt_AR_FLAGS
20464 # How to feed a file listing to the archiver.
20465 archiver_list_spec=$lt_archiver_list_spec
20467 # A symbol stripping program.
20470 # Commands used to install an old-style archive.
20472 old_postinstall_cmds=$lt_old_postinstall_cmds
20473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20475 # Whether to use a lock for old archive extraction.
20476 lock_old_archive_extraction=$lock_old_archive_extraction
20481 # LTCC compiler flags.
20482 LTCFLAGS=$lt_CFLAGS
20484 # Take the output of nm and produce a listing of raw symbols and C names.
20485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20487 # Transform the output of nm in a proper C declaration.
20488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20490 # Transform the output of nm in a C name address pair.
20491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20493 # Transform the output of nm in a C name address pair when lib prefix is needed.
20494 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20496 # Specify filename containing input files for \$NM.
20497 nm_file_list_spec=$lt_nm_file_list_spec
20499 # The root where to search for dependent libraries,and in which our libraries should be installed.
20500 lt_sysroot=$lt_sysroot
20502 # The name of the directory that contains temporary libtool files.
20505 # Used to examine libraries when file_magic_cmd begins with "file".
20506 MAGIC_CMD=$MAGIC_CMD
20508 # Must we lock files when doing compilation?
20509 need_locks=$lt_need_locks
20512 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20514 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20515 DSYMUTIL=$lt_DSYMUTIL
20517 # Tool to change global to local symbols on Mac OS X.
20520 # Tool to manipulate fat objects and archives on Mac OS X.
20523 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20526 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20527 OTOOL64=$lt_OTOOL64
20529 # Old archive suffix (normally "a").
20532 # Shared library suffix (normally ".so").
20533 shrext_cmds=$lt_shrext_cmds
20535 # The commands to extract the exported symbol list from a shared archive.
20536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20538 # Variables whose values should be saved in libtool wrapper scripts and
20539 # restored at link time.
20540 variables_saved_for_relink=$lt_variables_saved_for_relink
20542 # Do we need the "lib" prefix for modules?
20543 need_lib_prefix=$need_lib_prefix
20545 # Do we need a version for libraries?
20546 need_version=$need_version
20548 # Library versioning type.
20549 version_type=$version_type
20551 # Shared library runtime path variable.
20552 runpath_var=$runpath_var
20554 # Shared library path variable.
20555 shlibpath_var=$shlibpath_var
20557 # Is shlibpath searched before the hard-coded library search path?
20558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20560 # Format of library name prefix.
20561 libname_spec=$lt_libname_spec
20563 # List of archive names. First name is the real one, the rest are links.
20564 # The last name is the one that the linker finds with -lNAME
20565 library_names_spec=$lt_library_names_spec
20567 # The coded name of the library, if different from the real name.
20568 soname_spec=$lt_soname_spec
20570 # Permission mode override for installation of shared libraries.
20571 install_override_mode=$lt_install_override_mode
20573 # Command to use after installation of a shared archive.
20574 postinstall_cmds=$lt_postinstall_cmds
20576 # Command to use after uninstallation of a shared archive.
20577 postuninstall_cmds=$lt_postuninstall_cmds
20579 # Commands used to finish a libtool library installation in a directory.
20580 finish_cmds=$lt_finish_cmds
20582 # As "finish_cmds", except a single script fragment to be evaled but
20584 finish_eval=$lt_finish_eval
20586 # Whether we should hardcode library paths into libraries.
20587 hardcode_into_libs=$hardcode_into_libs
20589 # Compile-time system search path for libraries.
20590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20592 # Run-time system search path for libraries.
20593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20595 # Whether dlopen is supported.
20596 dlopen_support=$enable_dlopen
20598 # Whether dlopen of programs is supported.
20599 dlopen_self=$enable_dlopen_self
20601 # Whether dlopen of statically linked programs is supported.
20602 dlopen_self_static=$enable_dlopen_self_static
20604 # Commands to strip libraries.
20605 old_striplib=$lt_old_striplib
20606 striplib=$lt_striplib
20609 # The linker used to build libraries.
20612 # How to create reloadable object files.
20613 reload_flag=$lt_reload_flag
20614 reload_cmds=$lt_reload_cmds
20616 # Commands used to build an old-style archive.
20617 old_archive_cmds=$lt_old_archive_cmds
20619 # A language specific compiler.
20622 # Is the compiler the GNU compiler?
20625 # Compiler flag to turn off builtin functions.
20626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20628 # Additional compiler flags for building library objects.
20629 pic_flag=$lt_lt_prog_compiler_pic
20631 # How to pass a linker flag through the compiler.
20632 wl=$lt_lt_prog_compiler_wl
20634 # Compiler flag to prevent dynamic linking.
20635 link_static_flag=$lt_lt_prog_compiler_static
20637 # Does compiler simultaneously support -c and -o options?
20638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20640 # Whether or not to add -lc for building shared libraries.
20641 build_libtool_need_lc=$archive_cmds_need_lc
20643 # Whether or not to disallow shared libs when runtime libs are static.
20644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20646 # Compiler flag to allow reflexive dlopens.
20647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20649 # Compiler flag to generate shared objects directly from archives.
20650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20652 # Whether the compiler copes with passing no objects directly.
20653 compiler_needs_object=$lt_compiler_needs_object
20655 # Create an old-style archive from a shared archive.
20656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20658 # Create a temporary old-style archive to link instead of a shared archive.
20659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20661 # Commands used to build a shared archive.
20662 archive_cmds=$lt_archive_cmds
20663 archive_expsym_cmds=$lt_archive_expsym_cmds
20665 # Commands used to build a loadable module if different from building
20666 # a shared archive.
20667 module_cmds=$lt_module_cmds
20668 module_expsym_cmds=$lt_module_expsym_cmds
20670 # Whether we are building with GNU ld or not.
20671 with_gnu_ld=$lt_with_gnu_ld
20673 # Flag that allows shared libraries with undefined symbols to be built.
20674 allow_undefined_flag=$lt_allow_undefined_flag
20676 # Flag that enforces no undefined symbols.
20677 no_undefined_flag=$lt_no_undefined_flag
20679 # Flag to hardcode \$libdir into a binary during linking.
20680 # This must work even if \$libdir does not exist
20681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20683 # Whether we need a single "-rpath" flag with a separated argument.
20684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20687 # DIR into the resulting binary.
20688 hardcode_direct=$hardcode_direct
20690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20691 # DIR into the resulting binary and the resulting library dependency is
20692 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20693 # library is relocated.
20694 hardcode_direct_absolute=$hardcode_direct_absolute
20696 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20697 # into the resulting binary.
20698 hardcode_minus_L=$hardcode_minus_L
20700 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20701 # into the resulting binary.
20702 hardcode_shlibpath_var=$hardcode_shlibpath_var
20704 # Set to "yes" if building a shared library automatically hardcodes DIR
20705 # into the library and all subsequent libraries and executables linked
20707 hardcode_automatic=$hardcode_automatic
20709 # Set to yes if linker adds runtime paths of dependent libraries
20710 # to runtime path list.
20711 inherit_rpath=$inherit_rpath
20713 # Whether libtool must link a program against all its dependency libraries.
20714 link_all_deplibs=$link_all_deplibs
20716 # Set to "yes" if exported symbols are required.
20717 always_export_symbols=$always_export_symbols
20719 # The commands to list exported symbols.
20720 export_symbols_cmds=$lt_export_symbols_cmds
20722 # Symbols that should not be listed in the preloaded symbols.
20723 exclude_expsyms=$lt_exclude_expsyms
20725 # Symbols that must always be exported.
20726 include_expsyms=$lt_include_expsyms
20728 # Commands necessary for linking programs (against libraries) with templates.
20729 prelink_cmds=$lt_prelink_cmds
20731 # Commands necessary for finishing linking programs.
20732 postlink_cmds=$lt_postlink_cmds
20734 # Specify filename containing input files.
20735 file_list_spec=$lt_file_list_spec
20737 # How to hardcode a shared library path into an executable.
20738 hardcode_action=$hardcode_action
20740 # ### END LIBTOOL CONFIG
20746 cat <<\_LT_EOF >> "$cfgfile"
20747 # AIX sometimes has problems with the GCC collect2 program. For some
20748 # reason, if we set the COLLECT_NAMES environment variable, the problems
20749 # vanish in a puff of smoke.
20750 if test "X${COLLECT_NAMES+set}" != Xset; then
20752 export COLLECT_NAMES
20759 ltmain="$ac_aux_dir/ltmain.sh"
20762 # We use sed instead of cat because bash on DJGPP gets confused if
20763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20764 # text mode, it properly converts lines to CR/LF. This bash problem
20765 # is reportedly fixed, but why not run on old versions too?
20766 sed '$q' "$ltmain" >> "$cfgfile" \
20767 || (rm -f "$cfgfile"; exit 1)
20769 if test x"$xsi_shell" = xyes; then
20770 sed -e '/^func_dirname
()$
/,/^
} # func_dirname /c\
20774 \
*/*) func_dirname_result
="${1%/*}${2}" ;;\
20775 \
* ) func_dirname_result
="${3}" ;;\
20777 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20778 && mv -f "$cfgfile.tmp" "$cfgfile" \
20779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20780 test 0 -eq $?
|| _lt_function_replace_fail
=:
20783 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20786 \ func_basename_result="${1##*/}"\
20787 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20788 && mv -f "$cfgfile.tmp" "$cfgfile" \
20789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20790 test 0 -eq $?
|| _lt_function_replace_fail
=:
20793 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20794 func_dirname_and_basename ()\
20797 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20798 \ * ) func_dirname_result="${3}" ;;\
20800 \ func_basename_result="${1##*/}"\
20801 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20802 && mv -f "$cfgfile.tmp" "$cfgfile" \
20803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20804 test 0 -eq $?
|| _lt_function_replace_fail
=:
20807 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20810 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20811 \ # positional parameters, so assign one to ordinary parameter first.\
20812 \ func_stripname_result=${3}\
20813 \ func_stripname_result=${func_stripname_result#"${1}"}\
20814 \ func_stripname_result=${func_stripname_result%"${2}"}\
20815 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20816 && mv -f "$cfgfile.tmp" "$cfgfile" \
20817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20818 test 0 -eq $?
|| _lt_function_replace_fail
=:
20821 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20822 func_split_long_opt ()\
20824 \ func_split_long_opt_name=${1%%=*}\
20825 \ func_split_long_opt_arg=${1#*=}\
20826 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20827 && mv -f "$cfgfile.tmp" "$cfgfile" \
20828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20829 test 0 -eq $?
|| _lt_function_replace_fail
=:
20832 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20833 func_split_short_opt ()\
20835 \ func_split_short_opt_arg=${1#??}\
20836 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20837 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20838 && mv -f "$cfgfile.tmp" "$cfgfile" \
20839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20840 test 0 -eq $?
|| _lt_function_replace_fail
=:
20843 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20847 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20848 \ *) func_lo2o_result=${1} ;;\
20850 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20851 && mv -f "$cfgfile.tmp" "$cfgfile" \
20852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20853 test 0 -eq $?
|| _lt_function_replace_fail
=:
20856 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20859 func_xform_result=${1%.*}.lo\
20860 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20861 && mv -f "$cfgfile.tmp" "$cfgfile" \
20862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20863 test 0 -eq $?
|| _lt_function_replace_fail
=:
20866 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20869 func_arith_result=$(( $* ))\
20870 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20871 && mv -f "$cfgfile.tmp" "$cfgfile" \
20872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20873 test 0 -eq $?
|| _lt_function_replace_fail
=:
20876 sed -e '/^func_len ()$/,/^} # func_len /c\
20879 func_len_result=${#1}\
20880 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20881 && mv -f "$cfgfile.tmp" "$cfgfile" \
20882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20883 test 0 -eq $?
|| _lt_function_replace_fail
=:
20887 if test x
"$lt_shell_append" = xyes
; then
20888 sed -e '/^func_append ()$/,/^} # func_append /c\
20891 eval "${1}+=\\${2}"\
20892 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20893 && mv -f "$cfgfile.tmp" "$cfgfile" \
20894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20895 test 0 -eq $?
|| _lt_function_replace_fail
=:
20898 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20899 func_append_quoted ()\
20901 \ func_quote_for_eval "${2}"\
20902 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20903 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20904 && mv -f "$cfgfile.tmp" "$cfgfile" \
20905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20906 test 0 -eq $?
|| _lt_function_replace_fail
=:
20909 # Save a `func_append' function call where possible by direct use of '+='
20910 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20911 && mv -f "$cfgfile.tmp" "$cfgfile" \
20912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20913 test 0 -eq $?
|| _lt_function_replace_fail
=:
20915 # Save a `func_append' function call even when '+=' is not available
20916 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20917 && mv -f "$cfgfile.tmp" "$cfgfile" \
20918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20919 test 0 -eq $?
|| _lt_function_replace_fail
=:
20922 if test x
"$_lt_function_replace_fail" = x
":"; then
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20924 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20928 mv -f "$cfgfile" "$ofile" ||
20929 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20934 sed < libtool
> libtool
-2 \
20935 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20936 mv libtool
-2 libtool
20938 libtool
="./libtool"
20947 ac_clean_files
=$ac_clean_files_save
20949 test $ac_write_fail = 0 ||
20950 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20953 # configure is writing to config.log, and then calls config.status.
20954 # config.status does its own redirection, appending to config.log.
20955 # Unfortunately, on DOS this fails, as config.log is still kept open
20956 # by configure, so config.status won't be able to write to it; its
20957 # output is simply discarded. So we exec the FD to /dev/null,
20958 # effectively closing config.log, so it can be properly (re)opened and
20959 # appended to by config.status. When coming back to configure, we
20960 # need to make the FD available again.
20961 if test "$no_create" != yes; then
20963 ac_config_status_args
=
20964 test "$silent" = yes &&
20965 ac_config_status_args
="$ac_config_status_args --quiet"
20967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20970 # would make configure fail if this is the last instruction.
20971 $ac_cs_success || as_fn_exit
1
20973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}