2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.5.5.
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.5'
594 PACKAGE_STRING='unbound 1.5.5'
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
731 UNBOUND_ROOTCERT_FILE
752 UNBOUND_VERSION_MICRO
753 UNBOUND_VERSION_MINOR
754 UNBOUND_VERSION_MAJOR
782 program_transform_name
795 enable_option_checking
820 enable_alloc_nonregional
837 with_dnstap_socket_path
842 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 # Accept the important Cygnus configure options, so we can diagnose typos.
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=\$ac_optarg ;;
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=no ;;
1222 # Obsolete; use --with-x.
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1290 # Be sure to have absolute directory names.
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures unbound 1.5.5 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of unbound 1.5.5:";;
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-checking Enable warnings, asserts, makefile-dependencies
1468 --enable-debug same as enable-checking
1469 --disable-flto Disable link-time optimization (gcc specific option)
1470 --enable-pie Enable Position-Independent Executable (eg. to fully
1471 benefit from ASLR, small performance penalty)
1472 --enable-relro-now Enable full relocation binding at load-time (RELRO
1473 NOW, to protect GOT and .dtor areas)
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --disable-rpath disable hardcoded rpath (default=enabled)
1480 --disable-largefile omit support for large files
1481 --enable-alloc-checks enable to memory allocation statistics, for debug
1483 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1485 --enable-alloc-nonregional
1486 enable nonregional allocs, slow but exposes regional
1487 allocations to other memory purifiers, for debug
1489 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1490 --disable-gost Disable GOST support
1491 --disable-ecdsa Disable ECDSA support
1492 --enable-event-api Enable (experimental) libevent-based libunbound API
1493 installed to unbound-event.h
1494 --enable-static-exe enable to compile executables statically against
1495 (event) libs, for debug purposes
1496 --enable-lock-checks enable to check lock and unlock calls, for debug
1498 --enable-allsymbols export all symbols from libunbound and link binaries
1499 to it, smaller install size but libunbound export
1500 table is polluted by internal symbols
1501 --enable-dnstap Enable dnstap support (requires fstrm, protobuf-c)
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-conf-file=path Pathname to the Unbound configuration file
1507 --with-run-dir=path set default directory to chdir to (by default dir
1509 --with-chroot-dir=path set default directory to chroot to (by default same
1511 --with-share-dir=path set default directory with shared data (by default
1512 same as share/unbound)
1513 --with-pidfile=filename set default pathname to unbound pidfile (default
1514 run-dir/unbound.pid)
1515 --with-rootkey-file=filename
1516 set default pathname to root key file (default
1517 run-dir/root.key). This file is read and written.
1518 --with-rootcert-file=filename
1519 set default pathname to root update certificate file
1520 (default run-dir/icannbundle.pem). This file need
1521 not exist if you are content with the builtin.
1522 --with-username=user set default user that unbound changes to (default
1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-sysroot=DIR Search for dependent libraries within DIR
1528 (or the compiler's sysroot if not specified).
1529 --with-pthreads use pthreads library, or --without-pthreads to
1530 disable threading support.
1531 --with-solaris-threads use solaris native thread library.
1532 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1534 --with-pythonmodule build Python module, or --without-pythonmodule to
1535 disable script engine. (default=no)
1536 --with-nss=path use libnss instead of openssl, installed at path.
1537 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1538 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1540 --with-libevent=pathname
1541 use libevent (will check /usr/local /opt/local
1542 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1543 an explicit path). Slower, but allows use of large
1544 outgoing port ranges.
1545 --with-libexpat=path specify explicit path for libexpat.
1546 --with-dnstap-socket-path=pathname
1547 set default dnstap socket path
1548 --with-protobuf-c=path Path where protobuf-c is installed, for dnstap
1549 --with-libfstrm=path Path where libfstrm is installed, for dnstap
1550 --with-libunbound-only do not build daemon and tool programs
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1561 YACC The `Yet Another Compiler Compiler' implementation to use.
1562 Defaults to the first program found out of: `bison -y', `byacc',
1564 YFLAGS The list of arguments that will be passed by default to $YACC.
1565 This script will default YFLAGS to the empty string to avoid a
1566 default value of `-d' given by some make applications.
1568 The installed Python version to use, for example '2.3'. This
1569 string will be appended to the Python interpreter canonical
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1605 .) # We are building in place.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1638 unbound configure 1.5.5
1639 generated by GNU Autoconf 2.69
1641 Copyright (C) 2012 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1732 ac_fn_c_check_header_mongrel ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if eval \${$3+:} false; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1756 ac_header_compiler=no
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1772 ac_header_preproc=no
1774 rm -f conftest.err conftest.i conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 ( $as_echo "## ---------------------------------------- ##
1798 ## Report this to unbound-bugs@nlnetlabs.nl ##
1799 ## ---------------------------------------- ##"
1800 ) | sed "s/^/$as_me: WARNING: /" >&2
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 eval "$3=\$ac_header_compiler"
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 } # ac_fn_c_check_header_mongrel
1818 # ac_fn_c_try_run LINENO
1819 # ----------------------
1820 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821 # that executables *can* be run.
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_link"
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>&5
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836 { { case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_try") 2>&5
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; }; }; then :
1848 $as_echo "$as_me: program exited with status $ac_status" >&5
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=$ac_status
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1860 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists and can be compiled using the include files in
1863 # INCLUDES, setting the cache variable VAR accordingly.
1864 ac_fn_c_check_header_compile ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1877 if ac_fn_c_try_compile "$LINENO"; then :
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 } # ac_fn_c_check_header_compile
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 test -x conftest$ac_exeext
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1960 # include <limits.h>
1962 # include <assert.h>
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1989 if ac_fn_c_try_link "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005 # -------------------------------------------
2006 # Tests whether TYPE exists after having included INCLUDES, setting cache
2007 # variable VAR accordingly.
2008 ac_fn_c_check_type ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_type
2058 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2059 # --------------------------------------------
2060 # Tries to find the compile-time value of EXPR in a program that includes
2061 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2063 ac_fn_c_compute_int ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if test "$cross_compiling" = yes; then
2067 # Depending upon the size, compute the lo and hi bounds.
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2074 static int test_array [1 - 2 * !(($2) >= 0)];
2076 return test_array [0];
2082 if ac_fn_c_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 return test_array [0];
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) < 0)];
2120 return test_array [0];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2135 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 return test_array [0];
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_lo=$ac_mid; break
2146 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147 if test $ac_mid -le $ac_hi; then
2151 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 # Binary search between lo and hi bounds.
2162 while test "x$ac_lo" != "x$ac_hi"; do
2163 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 return test_array [0];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2201 FILE *f = fopen ("conftest.val", "w");
2206 long int i = longval ();
2209 fprintf (f, "%ld", i);
2213 unsigned long int i = ulongval ();
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2226 if ac_fn_c_try_run "$LINENO"; then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2242 # ---------------------------------------------
2243 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2245 ac_fn_c_check_decl ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 as_decl_name=`echo $2|sed 's/ *(.*//'`
2249 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2251 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2261 #ifndef $as_decl_name
2263 (void) $as_decl_use;
2265 (void) $as_decl_name;
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_decl
2287 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2288 # ----------------------------------------------------
2289 # Tries to find if the field MEMBER exists in type AGGR, after including
2290 # INCLUDES, setting cache variable VAR accordingly.
2291 ac_fn_c_check_member ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2295 $as_echo_n "checking for $2.$3... " >&6; }
2296 if eval \${$4+:} false; then :
2297 $as_echo_n "(cached) " >&6
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2312 if ac_fn_c_try_compile "$LINENO"; then :
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2322 if (sizeof ac_aggr.$3)
2328 if ac_fn_c_try_compile "$LINENO"; then :
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 } # ac_fn_c_check_member
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by unbound $as_me 1.5.5, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 UNBOUND_VERSION_MAJOR=1
2697 UNBOUND_VERSION_MINOR=5
2699 UNBOUND_VERSION_MICRO=5
2702 LIBUNBOUND_CURRENT=5
2703 LIBUNBOUND_REVISION=8
2712 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2717 # 1.4.0-snapshots had 1:5:0
2718 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2732 # and 1.4.13p1 and 1.4.13.p2
2734 # 1.4.15 had 3:0:1 # adds ub_version()
2739 # 1.4.20 had 4:0:2 # adds libunbound.ttl # but shipped 3:5:1
2742 # 1.5.0 had 5:3:3 # adds ub_ctx_add_ta_autr
2749 # Current -- the number of the binary API that we're implementing
2750 # Revision -- which iteration of the implementation of the binary
2751 # API are we supplying?
2752 # Age -- How many previous binary API versions do we also
2755 # If we release a new version that does not change the binary API,
2756 # increment Revision.
2758 # If we release a new version that changes the binary API, but does
2759 # not break programs compiled against the old binary API, increment
2760 # Current and Age. Set Revision to 0, since this is the first
2761 # implementation of the new API.
2763 # Otherwise, we're changing the binary API and breaking bakward
2764 # compatibility with old binaries. Increment Current. Set Age to 0,
2765 # since we're backward compatible with no previous APIs. Set Revision
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2808 $as_echo "$CC" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2816 if test -z "$ac_cv_prog_CC"; then
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819 set dummy gcc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="gcc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846 if test -n "$ac_ct_CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2848 $as_echo "$ac_ct_CC" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2854 if test "x$ac_ct_CC" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2869 if test -z "$CC"; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2872 set dummy ${ac_tool_prefix}cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="${ac_tool_prefix}cc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2945 if test $# != 0; then
2946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in cl.exe
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3007 test -n "$CC" && break
3010 if test -z "$CC"; then
3012 for ac_prog in cl.exe
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031 ac_cv_prog_ac_ct_CC="$ac_prog"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042 if test -n "$ac_ct_CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3044 $as_echo "$ac_ct_CC" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3051 test -n "$ac_ct_CC" && break
3054 if test "x$ac_ct_CC" = x; then
3057 case $cross_compiling:$ac_tool_warned in
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned=yes ;;
3070 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error $? "no acceptable C compiler found in \$PATH
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 # Provide some information about the compiler.
3076 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3079 for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3089 if test -s conftest.err; then
3091 ... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
3095 rm -f conftest.er1 conftest.err
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3111 ac_clean_files_save=$ac_clean_files
3112 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3113 # Try to create an executable without -o first, disregard a.out.
3114 # It will help us diagnose broken compilers, and finding out an intuition
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3120 # The possible output files:
3121 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3124 for ac_file in $ac_files
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 if { { ac_try="$ac_link_default"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_link_default") 2>&5
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3147 # so that the user can short-circuit this test for compilers unknown to
3149 for ac_file in $ac_files ''
3151 test -f "$ac_file" || continue
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3156 # We found the default executable, but exeext='' is most
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3174 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179 if test -z "$ac_file"; then :
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error 77 "C compiler cannot create executables
3188 See \`config.log' for more details" "$LINENO" 5; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 ac_exeext=$ac_cv_exeext
3199 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3202 $as_echo_n "checking for suffix of executables... " >&6; }
3203 if { { ac_try="$ac_link"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details" "$LINENO" 5; }
3233 rm -f conftest conftest$ac_cv_exeext
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3235 $as_echo "$ac_cv_exeext" >&6; }
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3246 FILE *f = fopen ("conftest.out", "w");
3247 return ferror (f) || fclose (f) != 0;
3253 ac_clean_files="$ac_clean_files conftest.out"
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 if test "$cross_compiling" != yes; then
3259 { { ac_try="$ac_link"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270 if { ac_try='./conftest$ac_cv_exeext'
3271 { { case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_try") 2>&5
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; }; then
3283 if test "$cross_compiling" = maybe; then
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot run C compiled programs.
3289 If you meant to cross compile, use \`--host'.
3290 See \`config.log' for more details" "$LINENO" 5; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3295 $as_echo "$cross_compiling" >&6; }
3297 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3298 ac_clean_files=$ac_clean_files_save
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3300 $as_echo_n "checking for suffix of object files... " >&6; }
3301 if ${ac_cv_objext+:} false; then :
3302 $as_echo_n "(cached) " >&6
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3315 rm -f conftest.o conftest.obj
3316 if { { ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_compile") 2>&5
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 for ac_file in conftest.o conftest.obj conftest.*; do
3328 test -f "$ac_file" || continue;
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3331 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details" "$LINENO" 5; }
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 $as_echo "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3352 if ${ac_cv_c_compiler_gnu+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3369 if ac_fn_c_try_compile "$LINENO"; then :
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3385 ac_test_CFLAGS=${CFLAGS+set}
3386 ac_save_CFLAGS=$CFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3389 if ${ac_cv_prog_cc_g+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 ac_save_c_werror_flag=$ac_c_werror_flag
3393 ac_c_werror_flag=yes
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_c_try_compile "$LINENO"; then :
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"; then :
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3449 $as_echo "$ac_cv_prog_cc_g" >&6; }
3450 if test "$ac_test_CFLAGS" = set; then
3451 CFLAGS=$ac_save_CFLAGS
3452 elif test $ac_cv_prog_cc_g = yes; then
3453 if test "$GCC" = yes; then
3459 if test "$GCC" = yes; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3467 if ${ac_cv_prog_cc_c89+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 ac_cv_prog_cc_c89=no
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478 struct buf { int x; };
3479 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480 static char *e (p, i)
3486 static char *f (char * (*g) (char **, int), char **p, ...)
3491 s = g (p, va_arg (v,int));
3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
3499 as 'x'. The following induces an error, until -std is added to get
3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
3502 that's true only with -std. */
3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3510 int test (int i, double x);
3511 struct s1 {int (*f) (int a);};
3512 struct s2 {int (*f) (double a);};
3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3527 CC="$ac_save_CC $ac_arg"
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_cv_prog_cc_c89=$ac_arg
3531 rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
3534 rm -f conftest.$ac_ext
3539 case "x$ac_cv_prog_cc_c89" in
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3542 $as_echo "none needed" >&6; } ;;
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3545 $as_echo "unsupported" >&6; } ;;
3547 CC="$CC $ac_cv_prog_cc_c89"
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3549 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3551 if test "x$ac_cv_prog_cc_c89" != xno; then :
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3568 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3569 # On Suns, sometimes $CPP names a directory.
3570 if test -n "$CPP" && test -d "$CPP"; then
3573 if test -z "$CPP"; then
3574 if ${ac_cv_prog_CPP+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 # Double quotes because CPP needs to be expanded
3578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3581 for ac_c_preproc_warn_flag in '' yes
3583 # Use a header file that comes with gcc, so configuring glibc
3584 # with a fresh cross-compiler works.
3585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3586 # <limits.h> exists even on freestanding compilers.
3587 # On the NeXT, cc -E runs the code through the compiler's parser,
3588 # not just through cpp. "Syntax error" is here to catch this case.
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3592 # include <limits.h>
3594 # include <assert.h>
3598 if ac_fn_c_try_cpp "$LINENO"; then :
3601 # Broken: fails on valid input.
3604 rm -f conftest.err conftest.i conftest.$ac_ext
3606 # OK, works on sane cases. Now check whether nonexistent headers
3607 # can be detected and how.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <ac_nonexistent.h>
3612 if ac_fn_c_try_cpp "$LINENO"; then :
3613 # Broken: success on invalid input.
3616 # Passes both tests.
3620 rm -f conftest.err conftest.i conftest.$ac_ext
3623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624 rm -f conftest.i conftest.err conftest.$ac_ext
3625 if $ac_preproc_ok; then :
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3638 $as_echo "$CPP" >&6; }
3640 for ac_c_preproc_warn_flag in '' yes
3642 # Use a header file that comes with gcc, so configuring glibc
3643 # with a fresh cross-compiler works.
3644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645 # <limits.h> exists even on freestanding compilers.
3646 # On the NeXT, cc -E runs the code through the compiler's parser,
3647 # not just through cpp. "Syntax error" is here to catch this case.
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3651 # include <limits.h>
3653 # include <assert.h>
3657 if ac_fn_c_try_cpp "$LINENO"; then :
3660 # Broken: fails on valid input.
3663 rm -f conftest.err conftest.i conftest.$ac_ext
3665 # OK, works on sane cases. Now check whether nonexistent headers
3666 # can be detected and how.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #include <ac_nonexistent.h>
3671 if ac_fn_c_try_cpp "$LINENO"; then :
3672 # Broken: success on invalid input.
3675 # Passes both tests.
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3683 rm -f conftest.i conftest.err conftest.$ac_ext
3684 if $ac_preproc_ok; then :
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3690 See \`config.log' for more details" "$LINENO" 5; }
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3702 if ${ac_cv_path_GREP+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -z "$GREP"; then
3706 ac_path_GREP_found=false
3707 # Loop through the user's path and test for each of PROGNAME-LIST
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 test -z "$as_dir" && as_dir=.
3713 for ac_prog in grep ggrep; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3716 as_fn_executable_p "$ac_path_GREP" || continue
3717 # Check for GNU ac_path_GREP and select it if it is found.
3718 # Check for GNU $ac_path_GREP
3719 case `"$ac_path_GREP" --version 2>&1` in
3721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3724 $as_echo_n 0123456789 >"conftest.in"
3727 cat "conftest.in" "conftest.in" >"conftest.tmp"
3728 mv "conftest.tmp" "conftest.in"
3729 cp "conftest.in" "conftest.nl"
3730 $as_echo 'GREP' >> "conftest.nl"
3731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3733 as_fn_arith $ac_count + 1 && ac_count=$as_val
3734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3735 # Best one so far, save it but keep looking for a better one
3736 ac_cv_path_GREP="$ac_path_GREP"
3737 ac_path_GREP_max=$ac_count
3739 # 10*(2^10) chars as input seems more than enough
3740 test $ac_count -gt 10 && break
3742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 $ac_path_GREP_found && break 3
3750 if test -z "$ac_cv_path_GREP"; then
3751 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3754 ac_cv_path_GREP=$GREP
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3759 $as_echo "$ac_cv_path_GREP" >&6; }
3760 GREP="$ac_cv_path_GREP"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3764 $as_echo_n "checking for egrep... " >&6; }
3765 if ${ac_cv_path_EGREP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3769 then ac_cv_path_EGREP="$GREP -E"
3771 if test -z "$EGREP"; then
3772 ac_path_EGREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in egrep; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3782 as_fn_executable_p "$ac_path_EGREP" || continue
3783 # Check for GNU ac_path_EGREP and select it if it is found.
3784 # Check for GNU $ac_path_EGREP
3785 case `"$ac_path_EGREP" --version 2>&1` in
3787 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3790 $as_echo_n 0123456789 >"conftest.in"
3793 cat "conftest.in" "conftest.in" >"conftest.tmp"
3794 mv "conftest.tmp" "conftest.in"
3795 cp "conftest.in" "conftest.nl"
3796 $as_echo 'EGREP' >> "conftest.nl"
3797 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799 as_fn_arith $ac_count + 1 && ac_count=$as_val
3800 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3801 # Best one so far, save it but keep looking for a better one
3802 ac_cv_path_EGREP="$ac_path_EGREP"
3803 ac_path_EGREP_max=$ac_count
3805 # 10*(2^10) chars as input seems more than enough
3806 test $ac_count -gt 10 && break
3808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3811 $ac_path_EGREP_found && break 3
3816 if test -z "$ac_cv_path_EGREP"; then
3817 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3820 ac_cv_path_EGREP=$EGREP
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3826 $as_echo "$ac_cv_path_EGREP" >&6; }
3827 EGREP="$ac_cv_path_EGREP"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3831 $as_echo_n "checking for ANSI C header files... " >&6; }
3832 if ${ac_cv_header_stdc+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_header_stdc=yes
3853 ac_cv_header_stdc=no
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 if test $ac_cv_header_stdc = yes; then
3858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865 $EGREP "memchr" >/dev/null 2>&1; then :
3868 ac_cv_header_stdc=no
3874 if test $ac_cv_header_stdc = yes; then
3875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 $EGREP "free" >/dev/null 2>&1; then :
3885 ac_cv_header_stdc=no
3891 if test $ac_cv_header_stdc = yes; then
3892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893 if test "$cross_compiling" = yes; then :
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 #if ((' ' & 0x0FF) == 0x020)
3901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904 # define ISLOWER(c) \
3905 (('a' <= (c) && (c) <= 'i') \
3906 || ('j' <= (c) && (c) <= 'r') \
3907 || ('s' <= (c) && (c) <= 'z'))
3908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916 for (i = 0; i < 256; i++)
3917 if (XOR (islower (i), ISLOWER (i))
3918 || toupper (i) != TOUPPER (i))
3923 if ac_fn_c_try_run "$LINENO"; then :
3926 ac_cv_header_stdc=no
3928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3929 conftest.$ac_objext conftest.beam conftest.$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3935 $as_echo "$ac_cv_header_stdc" >&6; }
3936 if test $ac_cv_header_stdc = yes; then
3938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3944 inttypes.h stdint.h unistd.h
3946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3950 cat >>confdefs.h <<_ACEOF
3951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3960 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3961 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3968 if test "$MINIX" = yes; then
3970 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3973 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3976 $as_echo "#define _MINIX 1" >>confdefs.h
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3982 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3983 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3989 # define __EXTENSIONS__ 1
3990 $ac_includes_default
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_safe_to_define___extensions__=yes
4002 ac_cv_safe_to_define___extensions__=no
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4007 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4008 test $ac_cv_safe_to_define___extensions__ = yes &&
4009 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4011 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4013 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4015 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4017 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4021 if test "$ac_cv_header_minix_config_h" = "yes"; then
4023 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4034 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
4036 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
4037 else on_mingw="no"; fi
4041 # Determine configuration file
4042 # the eval is to evaluate shell expansion twice
4043 if test $on_mingw = "no"; then
4044 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
4046 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
4049 # Check whether --with-conf_file was given.
4050 if test "${with_conf_file+set}" = set; then :
4051 withval=$with_conf_file; ub_conf_file="$withval"
4055 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
4058 cat >>confdefs.h <<_ACEOF
4059 #define CONFIGFILE "$hdr_config"
4062 ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
4063 $as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4064 X"$ub_conf_file" : 'X\(//\)[^/]' \| \
4065 X"$ub_conf_file" : 'X\(//\)$' \| \
4066 X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
4067 $as_echo X"$ub_conf_file" |
4068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4087 # Determine run, chroot directory and pidfile locations
4089 # Check whether --with-run-dir was given.
4090 if test "${with_run_dir+set}" = set; then :
4091 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4093 if test $on_mingw = no; then
4094 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4102 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4105 cat >>confdefs.h <<_ACEOF
4106 #define RUN_DIR "$hdr_run"
4111 # Check whether --with-chroot-dir was given.
4112 if test "${with_chroot_dir+set}" = set; then :
4113 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4115 if test $on_mingw = no; then
4116 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4118 UNBOUND_CHROOT_DIR=""
4124 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4127 cat >>confdefs.h <<_ACEOF
4128 #define CHROOT_DIR "$hdr_chroot"
4133 # Check whether --with-share-dir was given.
4134 if test "${with_share_dir+set}" = set; then :
4135 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4137 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4142 cat >>confdefs.h <<_ACEOF
4143 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4148 # Check whether --with-pidfile was given.
4149 if test "${with_pidfile+set}" = set; then :
4150 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4152 if test $on_mingw = no; then
4153 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4161 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4164 cat >>confdefs.h <<_ACEOF
4165 #define PIDFILE "$hdr_pid"
4170 # Check whether --with-rootkey-file was given.
4171 if test "${with_rootkey_file+set}" = set; then :
4172 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4174 if test $on_mingw = no; then
4175 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4177 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4183 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4186 cat >>confdefs.h <<_ACEOF
4187 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4192 # Check whether --with-rootcert-file was given.
4193 if test "${with_rootcert_file+set}" = set; then :
4194 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4196 if test $on_mingw = no; then
4197 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4199 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4205 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4208 cat >>confdefs.h <<_ACEOF
4209 #define ROOT_CERT_FILE "$hdr_rpem"
4214 # Check whether --with-username was given.
4215 if test "${with_username+set}" = set; then :
4216 withval=$with_username; UNBOUND_USERNAME="$withval"
4218 UNBOUND_USERNAME="unbound"
4223 cat >>confdefs.h <<_ACEOF
4224 #define UB_USERNAME "$UNBOUND_USERNAME"
4229 $as_echo "#define WINVER 0x0502" >>confdefs.h
4231 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/' `
4234 cat >>confdefs.h <<_ACEOF
4235 #define RSRC_PACKAGE_VERSION $wnvs
4239 # Checks for typedefs, structures, and compiler characteristics.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4241 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4242 if ${ac_cv_c_const+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4253 /* Ultrix mips cc rejects this sort of thing. */
4254 typedef int charset[2];
4255 const charset cs = { 0, 0 };
4256 /* SunOS 4.1.1 cc rejects this. */
4257 char const *const *pcpcc;
4259 /* NEC SVR4.0.2 mips cc rejects this. */
4260 struct point {int x, y;};
4261 static struct point const zero = {0,0};
4262 /* AIX XL C 1.02.0.0 rejects this.
4263 It does not let you subtract one const X* pointer from another in
4264 an arm of an if-expression whose if-part is not a constant
4266 const char *g = "string";
4267 pcpcc = &g + (g ? g-g : 0);
4268 /* HPUX 7.0 cc rejects these. */
4270 ppc = (char**) pcpcc;
4271 pcpcc = (char const *const *) ppc;
4272 { /* SCO 3.2v4 cc rejects this sort of thing. */
4275 char const *s = 0 ? (char *) 0 : (char const *) 0;
4280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4282 const int *foo = &x[0];
4285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4286 typedef const int *iptr;
4290 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4292 struct s { int j; const int *ap[3]; } bx;
4293 struct s *b = &bx; b->j = 5;
4295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4299 return !cs[0] && !zero.x;
4306 if ac_fn_c_try_compile "$LINENO"; then :
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4314 $as_echo "$ac_cv_c_const" >&6; }
4315 if test $ac_cv_c_const = no; then
4317 $as_echo "#define const /**/" >>confdefs.h
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 # allow user to override the -g -O2 flags.
4328 if test "x$CFLAGS" = "x" ; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4332 $as_echo_n "checking whether $CC supports -g... " >&6; }
4333 cache=`echo g | sed 'y%.=/+-%___p_%'`
4334 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4335 $as_echo_n "(cached) " >&6
4338 echo 'void f(void){}' >conftest.c
4339 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4340 eval "cv_prog_cc_flag_$cache=yes"
4342 eval "cv_prog_cc_flag_$cache=no"
4344 rm -f conftest conftest.o conftest.c
4348 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 $as_echo "yes" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4363 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4364 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4365 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4366 $as_echo_n "(cached) " >&6
4369 echo 'void f(void){}' >conftest.c
4370 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4371 eval "cv_prog_cc_flag_$cache=yes"
4373 eval "cv_prog_cc_flag_$cache=no"
4375 rm -f conftest conftest.o conftest.c
4379 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4381 $as_echo "yes" >&6; }
4383 CFLAGS="$CFLAGS -O2"
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_CC+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if test -n "$CC"; then
4406 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CC"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4428 $as_echo "$CC" >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4436 if test -z "$ac_cv_prog_CC"; then
4438 # Extract the first word of "gcc", so it can be a program name with args.
4439 set dummy gcc; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC="gcc"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4474 if test "x$ac_ct_CC" = x; then
4477 case $cross_compiling:$ac_tool_warned in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4489 if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}cc; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_CC="${ac_tool_prefix}cc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 if test -n "$CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4521 $as_echo "$CC" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4530 if test -z "$CC"; then
4531 # Extract the first word of "cc", so it can be a program name with args.
4532 set dummy cc; ac_word=$2
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4534 $as_echo_n "checking for $ac_word... " >&6; }
4535 if ${ac_cv_prog_CC+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 if test -n "$CC"; then
4539 ac_cv_prog_CC="$CC" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4550 ac_prog_rejected=yes
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test $ac_prog_rejected = yes; then
4562 # We found a bogon in the path, so make sure we never use it.
4563 set dummy $ac_cv_prog_CC
4565 if test $# != 0; then
4566 # We chose a different compiler from the bogus one.
4567 # However, it has the same basename, so the bogon will be chosen
4568 # first if we set CC to just the basename; use the full file name.
4570 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4576 if test -n "$CC"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4578 $as_echo "$CC" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4586 if test -z "$CC"; then
4587 if test -n "$ac_tool_prefix"; then
4588 for ac_prog in cl.exe
4590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if ${ac_cv_prog_CC+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$CC"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4627 test -n "$CC" && break
4630 if test -z "$CC"; then
4632 for ac_prog in cl.exe
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$ac_ct_CC"; then
4642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_ac_ct_CC="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4662 if test -n "$ac_ct_CC"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4664 $as_echo "$ac_ct_CC" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4671 test -n "$ac_ct_CC" && break
4674 if test "x$ac_ct_CC" = x; then
4677 case $cross_compiling:$ac_tool_warned in
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4681 ac_tool_warned=yes ;;
4690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "no acceptable C compiler found in \$PATH
4693 See \`config.log' for more details" "$LINENO" 5; }
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4699 for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4709 if test -s conftest.err; then
4711 ... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4721 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4722 if ${ac_cv_c_compiler_gnu+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4739 if ac_fn_c_try_compile "$LINENO"; then :
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4749 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4750 if test $ac_compiler_gnu = yes; then
4755 ac_test_CFLAGS=${CFLAGS+set}
4756 ac_save_CFLAGS=$CFLAGS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4758 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4759 if ${ac_cv_prog_cc_g+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 ac_save_c_werror_flag=$ac_c_werror_flag
4763 ac_c_werror_flag=yes
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4777 if ac_fn_c_try_compile "$LINENO"; then :
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4792 if ac_fn_c_try_compile "$LINENO"; then :
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4808 if ac_fn_c_try_compile "$LINENO"; then :
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4819 $as_echo "$ac_cv_prog_cc_g" >&6; }
4820 if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822 elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4829 if test "$GCC" = yes; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4836 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4837 if ${ac_cv_prog_cc_c89+:} false; then :
4838 $as_echo_n "(cached) " >&6
4840 ac_cv_prog_cc_c89=no
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4848 struct buf { int x; };
4849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4850 static char *e (p, i)
4856 static char *f (char * (*g) (char **, int), char **p, ...)
4861 s = g (p, va_arg (v,int));
4866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4867 function prototypes and stuff, but not '\xHH' hex character constants.
4868 These don't provoke an error unfortunately, instead are silently treated
4869 as 'x'. The following induces an error, until -std is added to get
4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4871 array size at least. It's necessary to write '\x00'==0 to get something
4872 that's true only with -std. */
4873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4876 inside strings and character constants. */
4878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_prog_cc_c89=$ac_arg
4901 rm -f core conftest.err conftest.$ac_objext
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4904 rm -f conftest.$ac_ext
4909 case "x$ac_cv_prog_cc_c89" in
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4912 $as_echo "none needed" >&6; } ;;
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4915 $as_echo "unsupported" >&6; } ;;
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4921 if test "x$ac_cv_prog_cc_c89" != xno; then :
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4933 $as_echo_n "checking $CC dependency flag... " >&6; }
4934 echo 'void f(){}' >conftest.c
4935 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4938 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4941 DEPFLAG="-MM" # dunno do something
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4945 $as_echo "$DEPFLAG" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4953 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4954 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4955 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4956 $as_echo_n "(cached) " >&6
4959 echo 'void f(void){}' >conftest.c
4960 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4961 eval "cv_prog_cc_flag_$cache=yes"
4963 eval "cv_prog_cc_flag_$cache=no"
4965 rm -f conftest conftest.o conftest.c
4969 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971 $as_echo "yes" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4984 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4985 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4986 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4987 $as_echo_n "(cached) " >&6
4990 echo 'void f(void){}' >conftest.c
4991 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4992 eval "cv_prog_cc_flag_$cache=yes"
4994 eval "cv_prog_cc_flag_$cache=no"
4996 rm -f conftest conftest.o conftest.c
5000 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5002 $as_echo "yes" >&6; }
5004 ERRFLAG="$ERRFLAG -Wall"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5009 ERRFLAG="$ERRFLAG -errfmt"
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
5017 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5018 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5019 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5020 $as_echo_n "(cached) " >&6
5023 echo 'void f(void){}' >conftest.c
5024 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
5025 eval "cv_prog_cc_flag_$cache=yes"
5027 eval "cv_prog_cc_flag_$cache=no"
5029 rm -f conftest conftest.o conftest.c
5033 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
5048 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5049 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5050 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5051 $as_echo_n "(cached) " >&6
5054 echo 'void f(void){}' >conftest.c
5055 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5056 eval "cv_prog_cc_flag_$cache=yes"
5058 eval "cv_prog_cc_flag_$cache=no"
5060 rm -f conftest conftest.o conftest.c
5064 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5077 for ac_header in getopt.h time.h
5079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5083 cat >>confdefs.h <<_ACEOF
5084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095 { $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
5096 $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; }
5097 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`
5098 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5099 $as_echo_n "(cached) " >&6
5103 #include "confdefs.h"
5106 #include <sys/time.h>
5112 #ifdef HAVE_GETOPT_H
5123 const char* str = NULL;
5125 msg.msg_control = 0;
5126 t = ctime_r(&time, buf);
5129 a = getopt(2, opts, "a");
5131 str = gai_strerror(0);
5132 if(str && t && tv.tv_usec && msg.msg_control)
5137 echo 'void f(){}' >>conftest.c
5138 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5139 eval "cv_prog_cc_flag_needed_$cache=no"
5142 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
5143 eval "cv_prog_cc_flag_needed_$cache=yes"
5145 eval "cv_prog_cc_flag_needed_$cache=fail"
5146 #echo 'Test with flag fails too!'
5148 #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"
5149 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5154 rm -f conftest conftest.c conftest.o
5158 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160 $as_echo "yes" >&6; }
5162 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"
5164 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 #echo 'Test with flag is no!'
5169 #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"
5170 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5176 $as_echo "failed" >&6; }
5186 { $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
5187 $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; }
5188 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5189 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5190 $as_echo_n "(cached) " >&6
5194 #include "confdefs.h"
5197 #include <sys/time.h>
5203 #ifdef HAVE_GETOPT_H
5214 const char* str = NULL;
5216 msg.msg_control = 0;
5217 t = ctime_r(&time, buf);
5220 a = getopt(2, opts, "a");
5222 str = gai_strerror(0);
5223 if(str && t && tv.tv_usec && msg.msg_control)
5228 echo 'void f(){}' >>conftest.c
5229 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5230 eval "cv_prog_cc_flag_needed_$cache=no"
5233 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
5234 eval "cv_prog_cc_flag_needed_$cache=yes"
5236 eval "cv_prog_cc_flag_needed_$cache=fail"
5237 #echo 'Test with flag fails too!'
5239 #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"
5240 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5245 rm -f conftest conftest.c conftest.o
5249 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251 $as_echo "yes" >&6; }
5253 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5255 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 #echo 'Test with flag is no!'
5260 #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"
5261 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5267 $as_echo "failed" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5278 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5279 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5280 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5281 $as_echo_n "(cached) " >&6
5285 #include <stdbool.h>
5292 echo 'void f(){}' >>conftest.c
5293 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5294 eval "cv_prog_cc_flag_needed_$cache=no"
5297 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5298 eval "cv_prog_cc_flag_needed_$cache=yes"
5300 eval "cv_prog_cc_flag_needed_$cache=fail"
5301 #echo 'Test with flag fails too!'
5303 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5304 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5309 rm -f conftest conftest.c conftest.o
5313 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5317 CFLAGS="$CFLAGS $C99FLAG"
5319 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 #echo 'Test with flag is no!'
5324 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5325 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5331 $as_echo "failed" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5342 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5344 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5345 $as_echo_n "(cached) " >&6
5357 echo 'void f(){}' >>conftest.c
5358 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5359 eval "cv_prog_cc_flag_needed_$cache=no"
5362 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5363 eval "cv_prog_cc_flag_needed_$cache=yes"
5365 eval "cv_prog_cc_flag_needed_$cache=fail"
5366 #echo 'Test with flag fails too!'
5368 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5369 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5374 rm -f conftest conftest.c conftest.o
5378 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5380 $as_echo "yes" >&6; }
5382 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5384 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 #echo 'Test with flag is no!'
5389 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5390 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5396 $as_echo "failed" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5407 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5409 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5410 $as_echo_n "(cached) " >&6
5414 #include <netinet/in.h>
5417 struct in6_pktinfo inf;
5418 int a = (int)sizeof(inf);
5422 echo 'void f(){}' >>conftest.c
5423 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5424 eval "cv_prog_cc_flag_needed_$cache=no"
5427 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5428 eval "cv_prog_cc_flag_needed_$cache=yes"
5430 eval "cv_prog_cc_flag_needed_$cache=fail"
5431 #echo 'Test with flag fails too!'
5433 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5434 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5439 rm -f conftest conftest.c conftest.o
5443 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 $as_echo "yes" >&6; }
5447 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5449 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 #echo 'Test with flag is no!'
5454 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5455 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5461 $as_echo "failed" >&6; }
5468 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5469 # is not available at all. -D_FRSRESGID is to make this check unique.
5470 # otherwise we would get the previous cached result.
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5475 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5476 cache=_D_GNU_SOURCE__D_FRSRESGID
5477 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5478 $as_echo_n "(cached) " >&6
5485 int a = setresgid(0,0,0);
5486 a = setresuid(0,0,0);
5490 echo 'void f(){}' >>conftest.c
5491 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5492 eval "cv_prog_cc_flag_needed_$cache=no"
5495 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5496 eval "cv_prog_cc_flag_needed_$cache=yes"
5498 eval "cv_prog_cc_flag_needed_$cache=fail"
5499 #echo 'Test with flag fails too!'
5501 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5502 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5507 rm -f conftest conftest.c conftest.o
5511 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5513 $as_echo "yes" >&6; }
5515 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5517 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 #echo 'Test with flag is no!'
5522 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5523 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5529 $as_echo "failed" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5540 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5541 cache=_D_POSIX_C_SOURCE_200112
5542 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5543 $as_echo_n "(cached) " >&6
5547 #include "confdefs.h"
5558 const char* str = NULL;
5559 t = ctime_r(&time, buf);
5560 str = gai_strerror(0);
5566 echo 'void f(){}' >>conftest.c
5567 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5568 eval "cv_prog_cc_flag_needed_$cache=no"
5571 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5572 eval "cv_prog_cc_flag_needed_$cache=yes"
5574 eval "cv_prog_cc_flag_needed_$cache=fail"
5575 #echo 'Test with flag fails too!'
5577 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5578 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5583 rm -f conftest conftest.c conftest.o
5587 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5589 $as_echo "yes" >&6; }
5591 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5593 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 #echo 'Test with flag is no!'
5598 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5599 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5605 $as_echo "failed" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5616 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5617 cache=_D__EXTENSIONS__
5618 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5619 $as_echo_n "(cached) " >&6
5623 #include "confdefs.h"
5626 #include <sys/time.h>
5631 #ifdef HAVE_GETOPT_H
5641 a = getopt(2, opts, "a");
5648 echo 'void f(){}' >>conftest.c
5649 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5650 eval "cv_prog_cc_flag_needed_$cache=no"
5653 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5654 eval "cv_prog_cc_flag_needed_$cache=yes"
5656 eval "cv_prog_cc_flag_needed_$cache=fail"
5657 #echo 'Test with flag fails too!'
5659 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5660 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5665 rm -f conftest conftest.c conftest.o
5669 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671 $as_echo "yes" >&6; }
5673 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5675 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 #echo 'Test with flag is no!'
5680 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5681 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5687 $as_echo "failed" >&6; }
5696 # debug mode flags warnings
5697 # Check whether --enable-checking was given.
5698 if test "${enable_checking+set}" = set; then :
5699 enableval=$enable_checking;
5702 # Check whether --enable-debug was given.
5703 if test "${enable_debug+set}" = set; then :
5704 enableval=$enable_debug;
5707 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5708 else debug_enabled="$enable_checking"; fi
5710 case "$debug_enabled" in
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5715 $as_echo_n "checking whether $CC supports -W... " >&6; }
5716 cache=`echo W | sed 'y%.=/+-%___p_%'`
5717 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5718 $as_echo_n "(cached) " >&6
5721 echo 'void f(void){}' >conftest.c
5722 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5723 eval "cv_prog_cc_flag_$cache=yes"
5725 eval "cv_prog_cc_flag_$cache=no"
5727 rm -f conftest conftest.o conftest.c
5731 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5746 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5747 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5748 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5749 $as_echo_n "(cached) " >&6
5752 echo 'void f(void){}' >conftest.c
5753 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5754 eval "cv_prog_cc_flag_$cache=yes"
5756 eval "cv_prog_cc_flag_$cache=no"
5758 rm -f conftest conftest.o conftest.c
5762 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764 $as_echo "yes" >&6; }
5766 CFLAGS="$CFLAGS -Wall"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5777 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5778 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5779 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5780 $as_echo_n "(cached) " >&6
5783 echo 'void f(void){}' >conftest.c
5784 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5785 eval "cv_prog_cc_flag_$cache=yes"
5787 eval "cv_prog_cc_flag_$cache=no"
5789 rm -f conftest conftest.o conftest.c
5793 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795 $as_echo "yes" >&6; }
5797 CFLAGS="$CFLAGS -Wextra"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5808 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5809 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5810 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5811 $as_echo_n "(cached) " >&6
5814 echo 'void f(void){}' >conftest.c
5815 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5816 eval "cv_prog_cc_flag_$cache=yes"
5818 eval "cv_prog_cc_flag_$cache=no"
5820 rm -f conftest conftest.o conftest.c
5824 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5826 $as_echo "yes" >&6; }
5828 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5837 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5845 # Check whether --enable-flto was given.
5846 if test "${enable_flto+set}" = set; then :
5847 enableval=$enable_flto;
5850 if test "x$enable_flto" != "xno"; then :
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5853 $as_echo_n "checking if $CC supports -flto... " >&6; }
5855 CFLAGS="$CFLAGS -flto"
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5867 if ac_fn_c_try_link "$LINENO"; then :
5869 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875 $as_echo "yes" >&6; }
5877 rm -f conftest conftest.c conftest.o
5880 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5889 # Check whether --enable-pie was given.
5890 if test "${enable_pie+set}" = set; then :
5891 enableval=$enable_pie;
5894 if test "x$enable_pie" = "xyes"; then :
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports PIE" >&5
5897 $as_echo_n "checking if $CC supports PIE... " >&6; }
5898 BAKLDFLAGS="$LDFLAGS"
5900 LDFLAGS="$LDFLAGS -pie"
5901 CFLAGS="$CFLAGS -fPIE"
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5913 if ac_fn_c_try_link "$LINENO"; then :
5915 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5916 LDFLAGS="$BAKLDFLAGS"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921 $as_echo "yes" >&6; }
5923 rm -f conftest conftest.c conftest.o
5926 LDFLAGS="$BAKLDFLAGS" ; CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5929 rm -f core conftest.err conftest.$ac_objext \
5930 conftest$ac_exeext conftest.$ac_ext
5935 # Check whether --enable-relro_now was given.
5936 if test "${enable_relro_now+set}" = set; then :
5937 enableval=$enable_relro_now;
5940 if test "x$enable_relro_now" = "xyes"; then :
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wl,-z,relro,-z,now" >&5
5943 $as_echo_n "checking if $CC supports -Wl,-z,relro,-z,now... " >&6; }
5944 BAKLDFLAGS="$LDFLAGS"
5945 LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_link "$LINENO"; then :
5959 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5960 LDFLAGS="$BAKLDFLAGS"
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5965 $as_echo "yes" >&6; }
5967 rm -f conftest conftest.c conftest.o
5970 LDFLAGS="$BAKLDFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5973 rm -f core conftest.err conftest.$ac_objext \
5974 conftest$ac_exeext conftest.$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5980 $as_echo_n "checking for inline... " >&6; }
5981 if ${ac_cv_c_inline+:} false; then :
5982 $as_echo_n "(cached) " >&6
5985 for ac_kw in inline __inline__ __inline; do
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5990 static $ac_kw foo_t static_foo () {return 0; }
5991 $ac_kw foo_t foo () {return 0; }
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 ac_cv_c_inline=$ac_kw
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 test "$ac_cv_c_inline" != no && break
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6004 $as_echo "$ac_cv_c_inline" >&6; }
6006 case $ac_cv_c_inline in
6009 case $ac_cv_c_inline in
6011 *) ac_val=$ac_cv_c_inline;;
6013 cat >>confdefs.h <<_ACEOF
6015 #define inline $ac_val
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6023 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
6024 if ${ac_cv_c_format_attribute+:} false; then :
6025 $as_echo_n "(cached) " >&6
6027 ac_cv_c_format_attribute=no
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6031 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6032 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
6044 if ac_fn_c_try_compile "$LINENO"; then :
6045 ac_cv_c_format_attribute="yes"
6047 ac_cv_c_format_attribute="no"
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
6055 $as_echo "$ac_cv_c_format_attribute" >&6; }
6056 if test $ac_cv_c_format_attribute = yes; then
6058 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6064 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
6065 if ${ac_cv_c_unused_attribute+:} false; then :
6066 $as_echo_n "(cached) " >&6
6068 ac_cv_c_unused_attribute=no
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6072 void f (char *u __attribute__((unused)));
6084 if ac_fn_c_try_compile "$LINENO"; then :
6085 ac_cv_c_unused_attribute="yes"
6087 ac_cv_c_unused_attribute="no"
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
6097 $as_echo "$ac_cv_c_unused_attribute" >&6; }
6098 if test $ac_cv_c_unused_attribute = yes; then
6100 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
6105 if test "$srcdir" != "."; then
6106 CPPFLAGS="$CPPFLAGS -I$srcdir"
6111 for ac_prog in flex lex
6113 # Extract the first word of "$ac_prog", so it can be a program name with args.
6114 set dummy $ac_prog; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_LEX+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$LEX"; then
6121 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_LEX="$ac_prog"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 if test -n "$LEX"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6143 $as_echo "$LEX" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6150 test -n "$LEX" && break
6152 test -n "$LEX" || LEX=":"
6154 if test "x$LEX" != "x:"; then
6155 cat >conftest.l <<_ACEOF
6161 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6162 yyless ((input () != 0)); }
6163 f { unput (yytext[0]); }
6164 . { BEGIN INITIAL; }
6166 #ifdef YYTEXT_POINTER
6167 extern char *yytext;
6172 return ! yylex () + ! yywrap ();
6175 { { ac_try="$LEX conftest.l"
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6181 $as_echo "$ac_try_echo"; } >&5
6182 (eval "$LEX conftest.l") 2>&5
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6187 $as_echo_n "checking lex output file root... " >&6; }
6188 if ${ac_cv_prog_lex_root+:} false; then :
6189 $as_echo_n "(cached) " >&6
6192 if test -f lex.yy.c; then
6193 ac_cv_prog_lex_root=lex.yy
6194 elif test -f lexyy.c; then
6195 ac_cv_prog_lex_root=lexyy
6197 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6201 $as_echo "$ac_cv_prog_lex_root" >&6; }
6202 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6204 if test -z "${LEXLIB+set}"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6206 $as_echo_n "checking lex library... " >&6; }
6207 if ${ac_cv_lib_lex+:} false; then :
6208 $as_echo_n "(cached) " >&6
6212 ac_cv_lib_lex='none needed'
6213 for ac_lib in '' -lfl -ll; do
6214 LIBS="$ac_lib $ac_save_LIBS"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 `cat $LEX_OUTPUT_ROOT.c`
6219 if ac_fn_c_try_link "$LINENO"; then :
6220 ac_cv_lib_lex=$ac_lib
6222 rm -f core conftest.err conftest.$ac_objext \
6223 conftest$ac_exeext conftest.$ac_ext
6224 test "$ac_cv_lib_lex" != 'none needed' && break
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6230 $as_echo "$ac_cv_lib_lex" >&6; }
6231 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6236 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6237 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 # POSIX says lex can declare yytext either as a pointer or an array; the
6241 # default is implementation-dependent. Figure out which it is, since
6242 # not all implementations provide the %pointer and %array declarations.
6243 ac_cv_prog_lex_yytext_pointer=no
6245 LIBS="$LEXLIB $ac_save_LIBS"
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 #define YYTEXT_POINTER 1
6250 `cat $LEX_OUTPUT_ROOT.c`
6252 if ac_fn_c_try_link "$LINENO"; then :
6253 ac_cv_prog_lex_yytext_pointer=yes
6255 rm -f core conftest.err conftest.$ac_objext \
6256 conftest$ac_exeext conftest.$ac_ext
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6261 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6262 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6264 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6267 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6272 $as_echo_n "checking for yylex_destroy... " >&6; }
6273 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6275 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6278 $as_echo "yes" >&6; }
6279 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }; fi
6282 for ac_prog in 'bison -y' byacc
6284 # Extract the first word of "$ac_prog", so it can be a program name with args.
6285 set dummy $ac_prog; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_YACC+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$YACC"; then
6292 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_YACC="$ac_prog"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 YACC=$ac_cv_prog_YACC
6312 if test -n "$YACC"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6314 $as_echo "$YACC" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6321 test -n "$YACC" && break
6323 test -n "$YACC" || YACC="yacc"
6325 # Extract the first word of "doxygen", so it can be a program name with args.
6326 set dummy doxygen; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_doxygen+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$doxygen"; then
6333 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_doxygen="doxygen"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 doxygen=$ac_cv_prog_doxygen
6353 if test -n "$doxygen"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6355 $as_echo "$doxygen" >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6362 if test -n "$ac_tool_prefix"; then
6363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6364 set dummy ${ac_tool_prefix}strip; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_prog_STRIP+:} false; then :
6368 $as_echo_n "(cached) " >&6
6370 if test -n "$STRIP"; then
6371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 STRIP=$ac_cv_prog_STRIP
6391 if test -n "$STRIP"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6393 $as_echo "$STRIP" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6401 if test -z "$ac_cv_prog_STRIP"; then
6403 # Extract the first word of "strip", so it can be a program name with args.
6404 set dummy strip; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$ac_ct_STRIP"; then
6411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_ac_ct_STRIP="strip"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6431 if test -n "$ac_ct_STRIP"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6433 $as_echo "$ac_ct_STRIP" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6439 if test "x$ac_ct_STRIP" = x; then
6442 case $cross_compiling:$ac_tool_warned in
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446 ac_tool_warned=yes ;;
6451 STRIP="$ac_cv_prog_STRIP"
6455 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6456 if test -f "$ac_dir/install-sh"; then
6458 ac_install_sh="$ac_aux_dir/install-sh -c"
6460 elif test -f "$ac_dir/install.sh"; then
6462 ac_install_sh="$ac_aux_dir/install.sh -c"
6464 elif test -f "$ac_dir/shtool"; then
6466 ac_install_sh="$ac_aux_dir/shtool install -c"
6470 if test -z "$ac_aux_dir"; then
6471 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6474 # These three variables are undocumented and unsupported,
6475 # and are intended to be withdrawn in a future Autoconf release.
6476 # They can cause serious problems if a builder's source tree is in a directory
6477 # whose full name contains unusual characters.
6478 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6479 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6480 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6483 # Make sure we can run config.sub.
6484 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6485 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6488 $as_echo_n "checking build system type... " >&6; }
6489 if ${ac_cv_build+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 ac_build_alias=$build_alias
6493 test "x$ac_build_alias" = x &&
6494 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6495 test "x$ac_build_alias" = x &&
6496 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6497 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6498 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6502 $as_echo "$ac_cv_build" >&6; }
6503 case $ac_cv_build in
6505 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6508 ac_save_IFS=$IFS; IFS='-'
6514 # Remember, the first character of IFS is used to create $*,
6515 # except with old shells:
6518 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6522 $as_echo_n "checking host system type... " >&6; }
6523 if ${ac_cv_host+:} false; then :
6524 $as_echo_n "(cached) " >&6
6526 if test "x$host_alias" = x; then
6527 ac_cv_host=$ac_cv_build
6529 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6530 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6535 $as_echo "$ac_cv_host" >&6; }
6538 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6541 ac_save_IFS=$IFS; IFS='-'
6547 # Remember, the first character of IFS is used to create $*,
6548 # except with old shells:
6551 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6555 # skip these tests, we do not need them.
6564 # always use ./libtool unless override from commandline (libtool=mylibtool)
6565 if test -z "$libtool"; then
6569 # avoid libtool max commandline length test on systems that fork slowly.
6571 if echo "$host_os" | grep "sunos4" >/dev/null; then
6572 lt_cv_sys_max_cmd_len=32750;
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}ar; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_path_AR+:} false; then :
6580 $as_echo_n "(cached) " >&6
6584 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 if test -n "$AR"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6608 $as_echo "$AR" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_path_AR"; then
6618 # Extract the first word of "ar", so it can be a program name with args.
6619 set dummy ar; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_path_ac_pt_AR+:} false; then :
6623 $as_echo_n "(cached) " >&6
6627 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 ac_pt_AR=$ac_cv_path_ac_pt_AR
6649 if test -n "$ac_pt_AR"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6651 $as_echo "$ac_pt_AR" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6657 if test "x$ac_pt_AR" = x; then
6660 case $cross_compiling:$ac_tool_warned in
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6672 if test $AR = false; then
6673 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6679 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6684 macro_version='2.4.2'
6685 macro_revision='1.3337'
6699 ltmain="$ac_aux_dir/ltmain.sh"
6701 # Backslashify metacharacters that are still active within
6702 # double-quoted strings.
6703 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6705 # Same as above, but do not quote variable references.
6706 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6708 # Sed substitution to delay expansion of an escaped shell variable in a
6709 # double_quote_subst'ed string.
6710 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6712 # Sed substitution to delay expansion of an escaped single quote.
6713 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6715 # Sed substitution to avoid accidental globbing in evaled expressions
6716 no_glob_subst='s/\*/\\\*/g'
6718 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6719 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6720 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6723 $as_echo_n "checking how to print strings... " >&6; }
6724 # Test print first, because it will be a builtin if present.
6725 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6726 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6728 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6731 # Use this function as a fallback that always works.
6732 func_fallback_echo ()
6734 eval 'cat <<_LTECHO_EOF
6738 ECHO='func_fallback_echo'
6741 # func_echo_all arg...
6742 # Invoke $ECHO with all args, space-separated.
6749 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6750 $as_echo "printf" >&6; } ;;
6751 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6752 $as_echo "print -r" >&6; } ;;
6753 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6754 $as_echo "cat" >&6; } ;;
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6771 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6772 if ${ac_cv_path_SED+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6776 for ac_i in 1 2 3 4 5 6 7; do
6777 ac_script="$ac_script$as_nl$ac_script"
6779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6780 { ac_script=; unset ac_script;}
6781 if test -z "$SED"; then
6782 ac_path_SED_found=false
6783 # Loop through the user's path and test for each of PROGNAME-LIST
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_prog in sed gsed; do
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6792 as_fn_executable_p "$ac_path_SED" || continue
6793 # Check for GNU ac_path_SED and select it if it is found.
6794 # Check for GNU $ac_path_SED
6795 case `"$ac_path_SED" --version 2>&1` in
6797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6800 $as_echo_n 0123456789 >"conftest.in"
6803 cat "conftest.in" "conftest.in" >"conftest.tmp"
6804 mv "conftest.tmp" "conftest.in"
6805 cp "conftest.in" "conftest.nl"
6806 $as_echo '' >> "conftest.nl"
6807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6809 as_fn_arith $ac_count + 1 && ac_count=$as_val
6810 if test $ac_count -gt ${ac_path_SED_max-0}; then
6811 # Best one so far, save it but keep looking for a better one
6812 ac_cv_path_SED="$ac_path_SED"
6813 ac_path_SED_max=$ac_count
6815 # 10*(2^10) chars as input seems more than enough
6816 test $ac_count -gt 10 && break
6818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6821 $ac_path_SED_found && break 3
6826 if test -z "$ac_cv_path_SED"; then
6827 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6835 $as_echo "$ac_cv_path_SED" >&6; }
6836 SED="$ac_cv_path_SED"
6839 test -z "$SED" && SED=sed
6840 Xsed="$SED -e 1s/^X//"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6853 $as_echo_n "checking for fgrep... " >&6; }
6854 if ${ac_cv_path_FGREP+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6858 then ac_cv_path_FGREP="$GREP -F"
6860 if test -z "$FGREP"; then
6861 ac_path_FGREP_found=false
6862 # Loop through the user's path and test for each of PROGNAME-LIST
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6867 test -z "$as_dir" && as_dir=.
6868 for ac_prog in fgrep; do
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6871 as_fn_executable_p "$ac_path_FGREP" || continue
6872 # Check for GNU ac_path_FGREP and select it if it is found.
6873 # Check for GNU $ac_path_FGREP
6874 case `"$ac_path_FGREP" --version 2>&1` in
6876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6879 $as_echo_n 0123456789 >"conftest.in"
6882 cat "conftest.in" "conftest.in" >"conftest.tmp"
6883 mv "conftest.tmp" "conftest.in"
6884 cp "conftest.in" "conftest.nl"
6885 $as_echo 'FGREP' >> "conftest.nl"
6886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6888 as_fn_arith $ac_count + 1 && ac_count=$as_val
6889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6890 # Best one so far, save it but keep looking for a better one
6891 ac_cv_path_FGREP="$ac_path_FGREP"
6892 ac_path_FGREP_max=$ac_count
6894 # 10*(2^10) chars as input seems more than enough
6895 test $ac_count -gt 10 && break
6897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6900 $ac_path_FGREP_found && break 3
6905 if test -z "$ac_cv_path_FGREP"; then
6906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6909 ac_cv_path_FGREP=$FGREP
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6915 $as_echo "$ac_cv_path_FGREP" >&6; }
6916 FGREP="$ac_cv_path_FGREP"
6919 test -z "$GREP" && GREP=grep
6939 # Check whether --with-gnu-ld was given.
6940 if test "${with_gnu_ld+set}" = set; then :
6941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6947 if test "$GCC" = yes; then
6948 # Check if gcc -print-prog-name=ld gives a path.
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6950 $as_echo_n "checking for ld used by $CC... " >&6; }
6953 # gcc leaves a trailing carriage return which upsets mingw
6954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6959 # Accept absolute paths.
6961 re_direlt='/[^/][^/]*/\.\./'
6962 # Canonicalize the pathname of ld
6963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6967 test -z "$LD" && LD="$ac_prog"
6970 # If it fails, then pretend we aren't using GCC.
6974 # If it is relative, then search for the first ld in PATH.
6978 elif test "$with_gnu_ld" = yes; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6980 $as_echo_n "checking for GNU ld... " >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6983 $as_echo_n "checking for non-GNU ld... " >&6; }
6985 if ${lt_cv_path_LD+:} false; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -z "$LD"; then
6989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6990 for ac_dir in $PATH; do
6992 test -z "$ac_dir" && ac_dir=.
6993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6994 lt_cv_path_LD="$ac_dir/$ac_prog"
6995 # Check to see if the program is GNU ld. I'd rather use --version,
6996 # but apparently some variants of GNU ld only accept -v.
6997 # Break only if it was the GNU/non-GNU ld that we prefer.
6998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6999 *GNU* | *'with BFD'*)
7000 test "$with_gnu_ld" != no && break
7003 test "$with_gnu_ld" != yes && break
7010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7015 if test -n "$LD"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7017 $as_echo "$LD" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7022 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7025 if ${lt_cv_prog_gnu_ld+:} false; then :
7026 $as_echo_n "(cached) " >&6
7028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7029 case `$LD -v 2>&1 </dev/null` in
7030 *GNU* | *'with BFD'*)
7031 lt_cv_prog_gnu_ld=yes
7034 lt_cv_prog_gnu_ld=no
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7040 with_gnu_ld=$lt_cv_prog_gnu_ld
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7052 if ${lt_cv_path_NM+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 if test -n "$NM"; then
7056 # Let the user override the test.
7059 lt_nm_to_check="${ac_tool_prefix}nm"
7060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7061 lt_nm_to_check="$lt_nm_to_check nm"
7063 for lt_tmp_nm in $lt_nm_to_check; do
7064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7067 test -z "$ac_dir" && ac_dir=.
7068 tmp_nm="$ac_dir/$lt_tmp_nm"
7069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7070 # Check to see if the nm accepts a BSD-compat flag.
7071 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7072 # nm: unknown option "B" ignored
7073 # Tru64's nm complains that /dev/null is an invalid object file
7074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7075 */dev/null* | *'Invalid file or object type'*)
7076 lt_cv_path_NM="$tmp_nm -B"
7080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7082 lt_cv_path_NM="$tmp_nm -p"
7086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7087 continue # so that we can try to find one that supports BSD flags
7096 : ${lt_cv_path_NM=no}
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7100 $as_echo "$lt_cv_path_NM" >&6; }
7101 if test "$lt_cv_path_NM" != "no"; then
7104 # Didn't find any BSD compatible name lister, look for dumpbin.
7105 if test -n "$DUMPBIN"; then :
7106 # Let the user override the test.
7108 if test -n "$ac_tool_prefix"; then
7109 for ac_prog in dumpbin "link -dump"
7111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_DUMPBIN+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$DUMPBIN"; then
7119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 DUMPBIN=$ac_cv_prog_DUMPBIN
7139 if test -n "$DUMPBIN"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7141 $as_echo "$DUMPBIN" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7148 test -n "$DUMPBIN" && break
7151 if test -z "$DUMPBIN"; then
7152 ac_ct_DUMPBIN=$DUMPBIN
7153 for ac_prog in dumpbin "link -dump"
7155 # Extract the first word of "$ac_prog", so it can be a program name with args.
7156 set dummy $ac_prog; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 if test -n "$ac_ct_DUMPBIN"; then
7163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7183 if test -n "$ac_ct_DUMPBIN"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7185 $as_echo "$ac_ct_DUMPBIN" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7192 test -n "$ac_ct_DUMPBIN" && break
7195 if test "x$ac_ct_DUMPBIN" = x; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7204 DUMPBIN=$ac_ct_DUMPBIN
7208 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7210 DUMPBIN="$DUMPBIN -symbols"
7218 if test "$DUMPBIN" != ":"; then
7222 test -z "$NM" && NM=nm
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7230 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7231 if ${lt_cv_nm_interface+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 lt_cv_nm_interface="BSD nm"
7235 echo "int some_variable = 0;" > conftest.$ac_ext
7236 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7237 (eval "$ac_compile" 2>conftest.err)
7238 cat conftest.err >&5
7239 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7241 cat conftest.err >&5
7242 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7243 cat conftest.out >&5
7244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7245 lt_cv_nm_interface="MS dumpbin"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7250 $as_echo "$lt_cv_nm_interface" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7253 $as_echo_n "checking whether ln -s works... " >&6; }
7255 if test "$LN_S" = "ln -s"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7260 $as_echo "no, using $LN_S" >&6; }
7263 # find the maximum length of command line arguments
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7265 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7266 if ${lt_cv_sys_max_cmd_len+:} false; then :
7267 $as_echo_n "(cached) " >&6
7274 # On DJGPP, this test can blow up pretty badly due to problems in libc
7275 # (any single argument exceeding 2000 bytes causes a buffer overrun
7276 # during glob expansion). Even if it were fixed, the result of this
7277 # check would be larger than it should be.
7278 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7282 # Under GNU Hurd, this test is not required because there is
7283 # no limit to the length of command line arguments.
7284 # Libtool will interpret -1 as no limit whatsoever
7285 lt_cv_sys_max_cmd_len=-1;
7288 cygwin* | mingw* | cegcc*)
7289 # On Win9x/ME, this test blows up -- it succeeds, but takes
7290 # about 5 minutes as the teststring grows exponentially.
7291 # Worse, since 9x/ME are not pre-emptively multitasking,
7292 # you end up with a "frozen" computer, even though with patience
7293 # the test eventually succeeds (with a max line length of 256k).
7294 # Instead, let's just punt: use the minimum linelength reported by
7295 # all of the supported platforms: 8192 (on NT/2K/XP).
7296 lt_cv_sys_max_cmd_len=8192;
7300 # On MiNT this can take a long time and run out of memory.
7301 lt_cv_sys_max_cmd_len=8192;
7305 # On AmigaOS with pdksh, this test takes hours, literally.
7306 # So we just punt and use a minimum line length of 8192.
7307 lt_cv_sys_max_cmd_len=8192;
7310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7311 # This has been around since 386BSD, at least. Likely further.
7312 if test -x /sbin/sysctl; then
7313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7314 elif test -x /usr/sbin/sysctl; then
7315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7319 # And add a safety zone
7320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7326 lt_cv_sys_max_cmd_len=196608
7330 # The test takes a long time on OS/2.
7331 lt_cv_sys_max_cmd_len=8192
7335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7337 # nice to cause kernel panics so lets avoid the loop below.
7338 # First set a reasonable default.
7339 lt_cv_sys_max_cmd_len=16384
7341 if test -x /sbin/sysconfig; then
7342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7343 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7348 lt_cv_sys_max_cmd_len=102400
7350 sysv5* | sco5v6* | sysv4.2uw2*)
7351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7352 if test -n "$kargmax"; then
7353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7355 lt_cv_sys_max_cmd_len=32768
7359 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7360 if test -n "$lt_cv_sys_max_cmd_len"; then
7361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7364 # Make teststring a little bigger before we do anything with it.
7365 # a 1K string should be a reasonable start.
7366 for i in 1 2 3 4 5 6 7 8 ; do
7367 teststring=$teststring$teststring
7369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7370 # If test is not a shell built-in, we'll probably end up computing a
7371 # maximum length that is only half of the actual maximum length, but
7373 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7374 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7375 test $i != 17 # 1/2 MB should be enough
7378 teststring=$teststring$teststring
7380 # Only check the string length outside the loop.
7381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7383 # Add a significant safety factor because C++ compilers can tack on
7384 # massive amounts of additional arguments before passing them to the
7385 # linker. It appears as though 1/2 is a usable value.
7386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7393 if test -n $lt_cv_sys_max_cmd_len ; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7395 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7398 $as_echo "none" >&6; }
7400 max_cmd_len=$lt_cv_sys_max_cmd_len
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7412 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7413 # Try some XSI features
7416 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7418 && eval 'test $(( 1 + 1 )) -eq 2 \
7419 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7422 $as_echo "$xsi_shell" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7426 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7428 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7430 && lt_shell_append=yes
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7432 $as_echo "$lt_shell_append" >&6; }
7435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7445 # test EBCDIC or ASCII
7446 case `echo X|tr X '\101'` in
7447 A) # ASCII based system
7448 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7449 lt_SP2NL='tr \040 \012'
7450 lt_NL2SP='tr \015\012 \040\040'
7452 *) # EBCDIC based system
7453 lt_SP2NL='tr \100 \n'
7454 lt_NL2SP='tr \r\n \100\100'
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7467 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7468 if ${lt_cv_to_host_file_cmd+:} false; then :
7469 $as_echo_n "(cached) " >&6
7474 *-*-mingw* ) # actually msys
7475 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7478 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7480 * ) # otherwise, assume *nix
7481 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7487 *-*-mingw* ) # actually msys
7488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7491 lt_cv_to_host_file_cmd=func_convert_file_noop
7493 * ) # otherwise, assume *nix
7494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7498 * ) # unhandled hosts (and "normal" native builds)
7499 lt_cv_to_host_file_cmd=func_convert_file_noop
7505 to_host_file_cmd=$lt_cv_to_host_file_cmd
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7507 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7514 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7515 if ${lt_cv_to_tool_file_cmd+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 #assume ordinary cross tools, or native build.
7519 lt_cv_to_tool_file_cmd=func_convert_file_noop
7523 *-*-mingw* ) # actually msys
7524 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7532 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7534 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7542 if ${lt_cv_ld_reload_flag+:} false; then :
7543 $as_echo_n "(cached) " >&6
7545 lt_cv_ld_reload_flag='-r'
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7549 reload_flag=$lt_cv_ld_reload_flag
7550 case $reload_flag in
7552 *) reload_flag=" $reload_flag" ;;
7554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7556 cygwin* | mingw* | pw32* | cegcc*)
7557 if test "$GCC" != yes; then
7562 if test "$GCC" = yes; then
7563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7578 if test -n "$ac_tool_prefix"; then
7579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7580 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_OBJDUMP+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$OBJDUMP"; then
7587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 OBJDUMP=$ac_cv_prog_OBJDUMP
7607 if test -n "$OBJDUMP"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7609 $as_echo "$OBJDUMP" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7617 if test -z "$ac_cv_prog_OBJDUMP"; then
7618 ac_ct_OBJDUMP=$OBJDUMP
7619 # Extract the first word of "objdump", so it can be a program name with args.
7620 set dummy objdump; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 if test -n "$ac_ct_OBJDUMP"; then
7627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7647 if test -n "$ac_ct_OBJDUMP"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7649 $as_echo "$ac_ct_OBJDUMP" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7655 if test "x$ac_ct_OBJDUMP" = x; then
7658 case $cross_compiling:$ac_tool_warned in
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7662 ac_tool_warned=yes ;;
7664 OBJDUMP=$ac_ct_OBJDUMP
7667 OBJDUMP="$ac_cv_prog_OBJDUMP"
7670 test -z "$OBJDUMP" && OBJDUMP=objdump
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7681 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7682 if ${lt_cv_deplibs_check_method+:} false; then :
7683 $as_echo_n "(cached) " >&6
7685 lt_cv_file_magic_cmd='$MAGIC_CMD'
7686 lt_cv_file_magic_test_file=
7687 lt_cv_deplibs_check_method='unknown'
7688 # Need to set the preceding variable on all platforms that support
7689 # interlibrary dependencies.
7690 # 'none' -- dependencies not supported.
7691 # `unknown' -- same as none, but documents that we really don't know.
7692 # 'pass_all' -- all dependencies passed with no checks.
7693 # 'test_compile' -- check by making test program.
7694 # 'file_magic [[regex]]' -- check by looking for files in library path
7695 # which responds to the $file_magic_cmd with a given extended regex.
7696 # If you have `file' or equivalent on your system and you're not sure
7697 # whether `pass_all' will *always* work, you probably want this one.
7701 lt_cv_deplibs_check_method=pass_all
7705 lt_cv_deplibs_check_method=pass_all
7709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7710 lt_cv_file_magic_cmd='/usr/bin/file -L'
7711 lt_cv_file_magic_test_file=/shlib/libc.so
7715 # func_win32_libid is a shell function defined in ltmain.sh
7716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7717 lt_cv_file_magic_cmd='func_win32_libid'
7721 # Base MSYS/MinGW do not provide the 'file' command needed by
7722 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7723 # unless we find 'file', for example because we are cross-compiling.
7724 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7725 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7727 lt_cv_file_magic_cmd='func_win32_libid'
7729 # Keep this pattern in sync with the one in func_win32_libid.
7730 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7731 lt_cv_file_magic_cmd='$OBJDUMP -f'
7736 # use the weaker test based on 'objdump'. See mingw*.
7737 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7738 lt_cv_file_magic_cmd='$OBJDUMP -f'
7741 darwin* | rhapsody*)
7742 lt_cv_deplibs_check_method=pass_all
7745 freebsd* | dragonfly*)
7746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7749 # Not sure whether the presence of OpenBSD here was a mistake.
7750 # Let's accept both of them until this is cleared up.
7751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7752 lt_cv_file_magic_cmd=/usr/bin/file
7753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7757 lt_cv_deplibs_check_method=pass_all
7762 lt_cv_deplibs_check_method=pass_all
7766 lt_cv_deplibs_check_method=pass_all
7769 hpux10.20* | hpux11*)
7770 lt_cv_file_magic_cmd=/usr/bin/file
7773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7777 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]'
7778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7782 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7788 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7792 irix5* | irix6* | nonstopux*)
7794 *-32|*"-32 ") libmagic=32-bit;;
7795 *-n32|*"-n32 ") libmagic=N32;;
7796 *-64|*"-64 ") libmagic=64-bit;;
7797 *) libmagic=never-match;;
7799 lt_cv_deplibs_check_method=pass_all
7802 # This must be glibc/ELF.
7803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7804 lt_cv_deplibs_check_method=pass_all
7808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7817 lt_cv_file_magic_cmd=/usr/bin/file
7818 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7822 lt_cv_deplibs_check_method=pass_all
7826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7833 osf3* | osf4* | osf5*)
7834 lt_cv_deplibs_check_method=pass_all
7838 lt_cv_deplibs_check_method=pass_all
7842 lt_cv_deplibs_check_method=pass_all
7845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7846 lt_cv_deplibs_check_method=pass_all
7850 case $host_vendor in
7852 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]'
7853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7856 lt_cv_deplibs_check_method=pass_all
7859 lt_cv_file_magic_cmd='/bin/file'
7860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7863 lt_cv_file_magic_cmd='/bin/file'
7864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7865 lt_cv_file_magic_test_file=/lib/libc.so
7868 lt_cv_deplibs_check_method=pass_all
7871 lt_cv_deplibs_check_method=pass_all
7877 lt_cv_deplibs_check_method=pass_all
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7887 if test "$build" = "$host"; then
7890 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7893 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7899 file_magic_cmd=$lt_cv_file_magic_cmd
7900 deplibs_check_method=$lt_cv_deplibs_check_method
7901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7924 if test -n "$ac_tool_prefix"; then
7925 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_DLLTOOL+:} false; then :
7930 $as_echo_n "(cached) " >&6
7932 if test -n "$DLLTOOL"; then
7933 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 DLLTOOL=$ac_cv_prog_DLLTOOL
7953 if test -n "$DLLTOOL"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7955 $as_echo "$DLLTOOL" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7963 if test -z "$ac_cv_prog_DLLTOOL"; then
7964 ac_ct_DLLTOOL=$DLLTOOL
7965 # Extract the first word of "dlltool", so it can be a program name with args.
7966 set dummy dlltool; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 if test -n "$ac_ct_DLLTOOL"; then
7973 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7993 if test -n "$ac_ct_DLLTOOL"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7995 $as_echo "$ac_ct_DLLTOOL" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
8001 if test "x$ac_ct_DLLTOOL" = x; then
8004 case $cross_compiling:$ac_tool_warned in
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8010 DLLTOOL=$ac_ct_DLLTOOL
8013 DLLTOOL="$ac_cv_prog_DLLTOOL"
8016 test -z "$DLLTOOL" && DLLTOOL=dlltool
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8028 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8029 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8030 $as_echo_n "(cached) " >&6
8032 lt_cv_sharedlib_from_linklib_cmd='unknown'
8035 cygwin* | mingw* | pw32* | cegcc*)
8036 # two different shell functions defined in ltmain.sh
8037 # decide which to use based on capabilities of $DLLTOOL
8038 case `$DLLTOOL --help 2>&1` in
8039 *--identify-strict*)
8040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8048 # fallback: assume linklib IS sharedlib
8049 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8055 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8056 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8057 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8065 if test -n "$ac_tool_prefix"; then
8068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_AR+:} false; then :
8073 $as_echo_n "(cached) " >&6
8075 if test -n "$AR"; then
8076 ac_cv_prog_AR="$AR" # Let the user override the test.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 if test -n "$AR"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8098 $as_echo "$AR" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8105 test -n "$AR" && break
8108 if test -z "$AR"; then
8112 # Extract the first word of "$ac_prog", so it can be a program name with args.
8113 set dummy $ac_prog; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$ac_ct_AR"; then
8120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_ac_ct_AR="$ac_prog"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8140 if test -n "$ac_ct_AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8142 $as_echo "$ac_ct_AR" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 test -n "$ac_ct_AR" && break
8152 if test "x$ac_ct_AR" = x; then
8155 case $cross_compiling:$ac_tool_warned in
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8179 $as_echo_n "checking for archiver @FILE support... " >&6; }
8180 if ${lt_cv_ar_at_file+:} false; then :
8181 $as_echo_n "(cached) " >&6
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8195 if ac_fn_c_try_compile "$LINENO"; then :
8196 echo conftest.$ac_objext > conftest.lst
8197 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8199 (eval $lt_ar_try) 2>&5
8201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8202 test $ac_status = 0; }
8203 if test "$ac_status" -eq 0; then
8204 # Ensure the archiver fails upon bogus file names.
8205 rm -f conftest.$ac_objext libconftest.a
8206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8207 (eval $lt_ar_try) 2>&5
8209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8210 test $ac_status = 0; }
8211 if test "$ac_status" -ne 0; then
8215 rm -f conftest.* libconftest.a
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8222 $as_echo "$lt_cv_ar_at_file" >&6; }
8224 if test "x$lt_cv_ar_at_file" = xno; then
8227 archiver_list_spec=$lt_cv_ar_at_file
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}strip; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_STRIP+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$STRIP"; then
8245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 STRIP=$ac_cv_prog_STRIP
8265 if test -n "$STRIP"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8267 $as_echo "$STRIP" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8275 if test -z "$ac_cv_prog_STRIP"; then
8277 # Extract the first word of "strip", so it can be a program name with args.
8278 set dummy strip; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$ac_ct_STRIP"; then
8285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_STRIP="strip"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8305 if test -n "$ac_ct_STRIP"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8307 $as_echo "$ac_ct_STRIP" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 if test "x$ac_ct_STRIP" = x; then
8316 case $cross_compiling:$ac_tool_warned in
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8325 STRIP="$ac_cv_prog_STRIP"
8328 test -z "$STRIP" && STRIP=:
8335 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_RANLIB+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$RANLIB"; then
8344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 RANLIB=$ac_cv_prog_RANLIB
8364 if test -n "$RANLIB"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8366 $as_echo "$RANLIB" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8374 if test -z "$ac_cv_prog_RANLIB"; then
8375 ac_ct_RANLIB=$RANLIB
8376 # Extract the first word of "ranlib", so it can be a program name with args.
8377 set dummy ranlib; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 if test -n "$ac_ct_RANLIB"; then
8384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8393 ac_cv_prog_ac_ct_RANLIB="ranlib"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8404 if test -n "$ac_ct_RANLIB"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8406 $as_echo "$ac_ct_RANLIB" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8412 if test "x$ac_ct_RANLIB" = x; then
8415 case $cross_compiling:$ac_tool_warned in
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8419 ac_tool_warned=yes ;;
8421 RANLIB=$ac_ct_RANLIB
8424 RANLIB="$ac_cv_prog_RANLIB"
8427 test -z "$RANLIB" && RANLIB=:
8434 # Determine commands to create old-style static archives.
8435 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8436 old_postinstall_cmds='chmod 644 $oldlib'
8437 old_postuninstall_cmds=
8439 if test -n "$RANLIB"; then
8442 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8448 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8453 lock_old_archive_extraction=yes ;;
8455 lock_old_archive_extraction=no ;;
8478 for ac_prog in gawk mawk nawk awk
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481 set dummy $ac_prog; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_prog_AWK+:} false; then :
8485 $as_echo_n "(cached) " >&6
8487 if test -n "$AWK"; then
8488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_AWK="$ac_prog"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 if test -n "$AWK"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8510 $as_echo "$AWK" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8517 test -n "$AWK" && break
8538 # If no C compiler was specified, use CC.
8541 # If no C compiler flags were specified, use CFLAGS.
8542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8544 # Allow CC to be a program name with arguments.
8548 # Check for command to grab the raw symbol name followed by C symbol from nm.
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8550 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8551 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8552 $as_echo_n "(cached) " >&6
8555 # These are sane defaults that work on at least a few old systems.
8556 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8558 # Character class describing NM global symbol codes.
8559 symcode='[BCDEGRST]'
8561 # Regexp to match symbols that can be accessed directly from C.
8562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8564 # Define system-specific variables.
8569 cygwin* | mingw* | pw32* | cegcc*)
8570 symcode='[ABCDGISTW]'
8573 if test "$host_cpu" = ia64; then
8574 symcode='[ABCDEGRST]'
8578 symcode='[BCDEGRST]'
8581 symcode='[BCDEGQRST]'
8592 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8600 # If we're using GNU nm, then use its standard symbol codes.
8601 case `$NM -V 2>&1` in
8602 *GNU* | *'with BFD'*)
8603 symcode='[ABCDGIRSTW]' ;;
8606 # Transform an extracted symbol line into a proper C declaration.
8607 # Some systems (esp. on ia64) link data and code symbols differently,
8608 # so use this general approach.
8609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8611 # Transform an extracted symbol line into symbol name and symbol address
8612 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8613 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'"
8615 # Handle CRLF in mingw tool chain
8619 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8623 # Try without a prefix underscore, then with it.
8624 for ac_symprfx in "" "_"; do
8626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8627 symxfrm="\\1 $ac_symprfx\\2 \\2"
8629 # Write the raw and C identifiers.
8630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8631 # Fake it for dumpbin and say T for any non-static function
8632 # and D for any global variable.
8633 # Also find C++ and __fastcall symbols from MSVC++,
8634 # which start with @ or ?.
8635 lt_cv_sys_global_symbol_pipe="$AWK '"\
8636 " {last_section=section; section=\$ 3};"\
8637 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8638 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8639 " \$ 0!~/External *\|/{next};"\
8640 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8641 " {if(hide[section]) next};"\
8642 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8643 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8644 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8645 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8646 " ' prfx=^$ac_symprfx"
8648 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8650 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8652 # Check to see that the pipe works correctly.
8656 cat > conftest.$ac_ext <<_LT_EOF
8661 void nm_test_func(void);
8662 void nm_test_func(void){}
8666 int main(){nm_test_var='a';nm_test_func();return(0);}
8669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8670 (eval $ac_compile) 2>&5
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 # Now try to grab the symbols.
8676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8677 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8680 test $ac_status = 0; } && test -s "$nlist"; then
8681 # Try sorting and uniquifying the output.
8682 if sort "$nlist" | uniq > "$nlist"T; then
8683 mv -f "$nlist"T "$nlist"
8688 # Make sure that we snagged all the symbols we need.
8689 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8690 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8691 cat <<_LT_EOF > conftest.$ac_ext
8692 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8693 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8694 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8695 relocations are performed -- see ld's documentation on pseudo-relocs. */
8696 # define LT_DLSYM_CONST
8697 #elif defined(__osf__)
8698 /* This system does not cope well with relocations in const data. */
8699 # define LT_DLSYM_CONST
8701 # define LT_DLSYM_CONST const
8709 # Now generate the symbol file.
8710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8712 cat <<_LT_EOF >> conftest.$ac_ext
8714 /* The mapping between symbol names and symbols. */
8715 LT_DLSYM_CONST struct {
8719 lt__PROGRAM__LTX_preloaded_symbols[] =
8721 { "@PROGRAM@", (void *) 0 },
8723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8724 cat <<\_LT_EOF >> conftest.$ac_ext
8728 /* This works around a problem in FreeBSD linker */
8729 #ifdef FREEBSD_WORKAROUND
8730 static const void *lt_preloaded_setup() {
8731 return lt__PROGRAM__LTX_preloaded_symbols;
8739 # Now try linking the two files.
8740 mv conftest.$ac_objext conftstm.$ac_objext
8741 lt_globsym_save_LIBS=$LIBS
8742 lt_globsym_save_CFLAGS=$CFLAGS
8743 LIBS="conftstm.$ac_objext"
8744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8746 (eval $ac_link) 2>&5
8748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8749 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8752 LIBS=$lt_globsym_save_LIBS
8753 CFLAGS=$lt_globsym_save_CFLAGS
8755 echo "cannot find nm_test_func in $nlist" >&5
8758 echo "cannot find nm_test_var in $nlist" >&5
8761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8764 echo "$progname: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8767 rm -rf conftest* conftst*
8769 # Do not use the global_symbol_pipe unless it works.
8770 if test "$pipe_works" = yes; then
8773 lt_cv_sys_global_symbol_pipe=
8779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8780 lt_cv_sys_global_symbol_to_cdecl=
8782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8784 $as_echo "failed" >&6; }
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8787 $as_echo "ok" >&6; }
8790 # Response file support.
8791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8792 nm_file_list_spec='@'
8793 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8794 nm_file_list_spec='@'
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8824 $as_echo_n "checking for sysroot... " >&6; }
8826 # Check whether --with-sysroot was given.
8827 if test "${with_sysroot+set}" = set; then :
8828 withval=$with_sysroot;
8835 case ${with_sysroot} in #(
8837 if test "$GCC" = yes; then
8838 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8842 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8848 $as_echo "${with_sysroot}" >&6; }
8849 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8854 $as_echo "${lt_sysroot:-no}" >&6; }
8860 # Check whether --enable-libtool-lock was given.
8861 if test "${enable_libtool_lock+set}" = set; then :
8862 enableval=$enable_libtool_lock;
8865 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8867 # Some flags need to be propagated to the compiler or linker for good
8871 # Find out which ABI we are using.
8872 echo 'int i;' > conftest.$ac_ext
8873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8874 (eval $ac_compile) 2>&5
8876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8877 test $ac_status = 0; }; then
8878 case `/usr/bin/file conftest.$ac_objext` in
8890 # Find out which ABI we are using.
8891 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8893 (eval $ac_compile) 2>&5
8895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8896 test $ac_status = 0; }; then
8897 if test "$lt_cv_prog_gnu_ld" = yes; then
8898 case `/usr/bin/file conftest.$ac_objext` in
8900 LD="${LD-ld} -melf32bsmip"
8903 LD="${LD-ld} -melf32bmipn32"
8906 LD="${LD-ld} -melf64bmip"
8910 case `/usr/bin/file conftest.$ac_objext` in
8926 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8927 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8928 # Find out which ABI we are using.
8929 echo 'int i;' > conftest.$ac_ext
8930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8931 (eval $ac_compile) 2>&5
8933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8934 test $ac_status = 0; }; then
8935 case `/usr/bin/file conftest.o` in
8938 x86_64-*kfreebsd*-gnu)
8939 LD="${LD-ld} -m elf_i386_fbsd"
8942 LD="${LD-ld} -m elf_i386"
8944 powerpc64le-*linux*)
8945 LD="${LD-ld} -m elf32lppclinux"
8948 LD="${LD-ld} -m elf32ppclinux"
8951 LD="${LD-ld} -m elf_s390"
8954 LD="${LD-ld} -m elf32_sparc"
8960 x86_64-*kfreebsd*-gnu)
8961 LD="${LD-ld} -m elf_x86_64_fbsd"
8964 LD="${LD-ld} -m elf_x86_64"
8967 LD="${LD-ld} -m elf64lppc"
8970 LD="${LD-ld} -m elf64ppc"
8972 s390*-*linux*|s390*-*tpf*)
8973 LD="${LD-ld} -m elf64_s390"
8976 LD="${LD-ld} -m elf64_sparc"
8986 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8987 SAVE_CFLAGS="$CFLAGS"
8988 CFLAGS="$CFLAGS -belf"
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8990 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8991 if ${lt_cv_cc_needs_belf+:} false; then :
8992 $as_echo_n "(cached) " >&6
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9011 if ac_fn_c_try_link "$LINENO"; then :
9012 lt_cv_cc_needs_belf=yes
9014 lt_cv_cc_needs_belf=no
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9026 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9027 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9028 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9029 CFLAGS="$SAVE_CFLAGS"
9033 # Find out which ABI we are using.
9034 echo 'int i;' > conftest.$ac_ext
9035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9036 (eval $ac_compile) 2>&5
9038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9039 test $ac_status = 0; }; then
9040 case `/usr/bin/file conftest.o` in
9042 case $lt_cv_prog_gnu_ld in
9046 LD="${LD-ld} -m elf_x86_64"
9049 LD="${LD-ld} -m elf64_sparc"
9052 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9053 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9058 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9070 need_locks="$enable_libtool_lock"
9072 if test -n "$ac_tool_prefix"; then
9073 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9074 set dummy ${ac_tool_prefix}mt; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9078 $as_echo_n "(cached) " >&6
9080 if test -n "$MANIFEST_TOOL"; then
9081 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 test -z "$as_dir" && as_dir=.
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9101 if test -n "$MANIFEST_TOOL"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9103 $as_echo "$MANIFEST_TOOL" >&6; }
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9111 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9112 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9113 # Extract the first word of "mt", so it can be a program name with args.
9114 set dummy mt; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9118 $as_echo_n "(cached) " >&6
9120 if test -n "$ac_ct_MANIFEST_TOOL"; then
9121 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9141 if test -n "$ac_ct_MANIFEST_TOOL"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9143 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9149 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9152 case $cross_compiling:$ac_tool_warned in
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9156 ac_tool_warned=yes ;;
9158 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9161 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9164 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9166 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9167 if ${lt_cv_path_mainfest_tool+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 lt_cv_path_mainfest_tool=no
9171 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9172 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9173 cat conftest.err >&5
9174 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9175 lt_cv_path_mainfest_tool=yes
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9180 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9181 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9191 rhapsody* | darwin*)
9192 if test -n "$ac_tool_prefix"; then
9193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9198 $as_echo_n "(cached) " >&6
9200 if test -n "$DSYMUTIL"; then
9201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9221 if test -n "$DSYMUTIL"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9223 $as_echo "$DSYMUTIL" >&6; }
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9231 if test -z "$ac_cv_prog_DSYMUTIL"; then
9232 ac_ct_DSYMUTIL=$DSYMUTIL
9233 # Extract the first word of "dsymutil", so it can be a program name with args.
9234 set dummy dsymutil; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9238 $as_echo_n "(cached) " >&6
9240 if test -n "$ac_ct_DSYMUTIL"; then
9241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9261 if test -n "$ac_ct_DSYMUTIL"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9269 if test "x$ac_ct_DSYMUTIL" = x; then
9272 case $cross_compiling:$ac_tool_warned in
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9276 ac_tool_warned=yes ;;
9278 DSYMUTIL=$ac_ct_DSYMUTIL
9281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9284 if test -n "$ac_tool_prefix"; then
9285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_prog_NMEDIT+:} false; then :
9290 $as_echo_n "(cached) " >&6
9292 if test -n "$NMEDIT"; then
9293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 NMEDIT=$ac_cv_prog_NMEDIT
9313 if test -n "$NMEDIT"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9315 $as_echo "$NMEDIT" >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9323 if test -z "$ac_cv_prog_NMEDIT"; then
9324 ac_ct_NMEDIT=$NMEDIT
9325 # Extract the first word of "nmedit", so it can be a program name with args.
9326 set dummy nmedit; ac_word=$2
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 $as_echo_n "checking for $ac_word... " >&6; }
9329 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9330 $as_echo_n "(cached) " >&6
9332 if test -n "$ac_ct_NMEDIT"; then
9333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9353 if test -n "$ac_ct_NMEDIT"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9355 $as_echo "$ac_ct_NMEDIT" >&6; }
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9361 if test "x$ac_ct_NMEDIT" = x; then
9364 case $cross_compiling:$ac_tool_warned in
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9368 ac_tool_warned=yes ;;
9370 NMEDIT=$ac_ct_NMEDIT
9373 NMEDIT="$ac_cv_prog_NMEDIT"
9376 if test -n "$ac_tool_prefix"; then
9377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if ${ac_cv_prog_LIPO+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 if test -n "$LIPO"; then
9385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 test -z "$as_dir" && as_dir=.
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 LIPO=$ac_cv_prog_LIPO
9405 if test -n "$LIPO"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9407 $as_echo "$LIPO" >&6; }
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410 $as_echo "no" >&6; }
9415 if test -z "$ac_cv_prog_LIPO"; then
9417 # Extract the first word of "lipo", so it can be a program name with args.
9418 set dummy lipo; ac_word=$2
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420 $as_echo_n "checking for $ac_word... " >&6; }
9421 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 if test -n "$ac_ct_LIPO"; then
9425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9434 ac_cv_prog_ac_ct_LIPO="lipo"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9445 if test -n "$ac_ct_LIPO"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9447 $as_echo "$ac_ct_LIPO" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9453 if test "x$ac_ct_LIPO" = x; then
9456 case $cross_compiling:$ac_tool_warned in
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9460 ac_tool_warned=yes ;;
9465 LIPO="$ac_cv_prog_LIPO"
9468 if test -n "$ac_tool_prefix"; then
9469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9470 set dummy ${ac_tool_prefix}otool; ac_word=$2
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472 $as_echo_n "checking for $ac_word... " >&6; }
9473 if ${ac_cv_prog_OTOOL+:} false; then :
9474 $as_echo_n "(cached) " >&6
9476 if test -n "$OTOOL"; then
9477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496 OTOOL=$ac_cv_prog_OTOOL
9497 if test -n "$OTOOL"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9499 $as_echo "$OTOOL" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9507 if test -z "$ac_cv_prog_OTOOL"; then
9509 # Extract the first word of "otool", so it can be a program name with args.
9510 set dummy otool; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9514 $as_echo_n "(cached) " >&6
9516 if test -n "$ac_ct_OTOOL"; then
9517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9526 ac_cv_prog_ac_ct_OTOOL="otool"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9537 if test -n "$ac_ct_OTOOL"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9539 $as_echo "$ac_ct_OTOOL" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9545 if test "x$ac_ct_OTOOL" = x; then
9548 case $cross_compiling:$ac_tool_warned in
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9552 ac_tool_warned=yes ;;
9557 OTOOL="$ac_cv_prog_OTOOL"
9560 if test -n "$ac_tool_prefix"; then
9561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_prog_OTOOL64+:} false; then :
9566 $as_echo_n "(cached) " >&6
9568 if test -n "$OTOOL64"; then
9569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 OTOOL64=$ac_cv_prog_OTOOL64
9589 if test -n "$OTOOL64"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9591 $as_echo "$OTOOL64" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9599 if test -z "$ac_cv_prog_OTOOL64"; then
9600 ac_ct_OTOOL64=$OTOOL64
9601 # Extract the first word of "otool64", so it can be a program name with args.
9602 set dummy otool64; ac_word=$2
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604 $as_echo_n "checking for $ac_word... " >&6; }
9605 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9606 $as_echo_n "(cached) " >&6
9608 if test -n "$ac_ct_OTOOL64"; then
9609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9618 ac_cv_prog_ac_ct_OTOOL64="otool64"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9629 if test -n "$ac_ct_OTOOL64"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9631 $as_echo "$ac_ct_OTOOL64" >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9637 if test "x$ac_ct_OTOOL64" = x; then
9640 case $cross_compiling:$ac_tool_warned in
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9644 ac_tool_warned=yes ;;
9646 OTOOL64=$ac_ct_OTOOL64
9649 OTOOL64="$ac_cv_prog_OTOOL64"
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9679 $as_echo_n "checking for -single_module linker flag... " >&6; }
9680 if ${lt_cv_apple_cc_single_mod+:} false; then :
9681 $as_echo_n "(cached) " >&6
9683 lt_cv_apple_cc_single_mod=no
9684 if test -z "${LT_MULTI_MODULE}"; then
9685 # By default we will add the -single_module flag. You can override
9686 # by either setting the environment variable LT_MULTI_MODULE
9687 # non-empty at configure time, or by adding -multi_module to the
9689 rm -rf libconftest.dylib*
9690 echo "int foo(void){return 1;}" > conftest.c
9691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9692 -dynamiclib -Wl,-single_module conftest.c" >&5
9693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9696 # If there is a non-empty error log, and "single_module"
9697 # appears in it, assume the flag caused a linker warning
9698 if test -s conftest.err && $GREP single_module conftest.err; then
9699 cat conftest.err >&5
9700 # Otherwise, if the output was created with a 0 exit code from
9701 # the compiler, it worked.
9702 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9703 lt_cv_apple_cc_single_mod=yes
9705 cat conftest.err >&5
9707 rm -rf libconftest.dylib*
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9716 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9717 $as_echo_n "(cached) " >&6
9719 lt_cv_ld_exported_symbols_list=no
9720 save_LDFLAGS=$LDFLAGS
9721 echo "_main" > conftest.sym
9722 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9734 if ac_fn_c_try_link "$LINENO"; then :
9735 lt_cv_ld_exported_symbols_list=yes
9737 lt_cv_ld_exported_symbols_list=no
9739 rm -f core conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LDFLAGS="$save_LDFLAGS"
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9748 $as_echo_n "checking for -force_load linker flag... " >&6; }
9749 if ${lt_cv_ld_force_load+:} false; then :
9750 $as_echo_n "(cached) " >&6
9752 lt_cv_ld_force_load=no
9753 cat > conftest.c << _LT_EOF
9754 int forced_loaded() { return 2;}
9756 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9757 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9758 echo "$AR cru libconftest.a conftest.o" >&5
9759 $AR cru libconftest.a conftest.o 2>&5
9760 echo "$RANLIB libconftest.a" >&5
9761 $RANLIB libconftest.a 2>&5
9762 cat > conftest.c << _LT_EOF
9763 int main() { return 0;}
9765 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9766 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9768 if test -s conftest.err && $GREP force_load conftest.err; then
9769 cat conftest.err >&5
9770 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9771 lt_cv_ld_force_load=yes
9773 cat conftest.err >&5
9775 rm -f conftest.err libconftest.a conftest conftest.c
9776 rm -rf conftest.dSYM
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9780 $as_echo "$lt_cv_ld_force_load" >&6; }
9782 rhapsody* | darwin1.[012])
9783 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9785 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9786 darwin*) # darwin 5.x on
9787 # if running on 10.5 or later, the deployment target defaults
9788 # to the OS version, if on x86, and 10.4, the deployment
9789 # target defaults to 10.4. Don't you love it?
9790 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9791 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9792 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9794 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9796 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9800 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9801 _lt_dar_single_mod='$single_module'
9803 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9804 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9806 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9808 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9809 _lt_dsymutil='~$DSYMUTIL $lib || :'
9816 for ac_header in dlfcn.h
9818 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9820 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_DLFCN_H 1
9845 # Check whether --enable-shared was given.
9846 if test "${enable_shared+set}" = set; then :
9847 enableval=$enable_shared; p=${PACKAGE-default}
9849 yes) enable_shared=yes ;;
9850 no) enable_shared=no ;;
9853 # Look at the argument we got. We use all the common list separators.
9854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9855 for pkg in $enableval; do
9857 if test "X$pkg" = "X$p"; then
9876 # Check whether --enable-static was given.
9877 if test "${enable_static+set}" = set; then :
9878 enableval=$enable_static; p=${PACKAGE-default}
9880 yes) enable_static=yes ;;
9881 no) enable_static=no ;;
9884 # Look at the argument we got. We use all the common list separators.
9885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9886 for pkg in $enableval; do
9888 if test "X$pkg" = "X$p"; then
9908 # Check whether --with-pic was given.
9909 if test "${with_pic+set}" = set; then :
9910 withval=$with_pic; lt_p=${PACKAGE-default}
9912 yes|no) pic_mode=$withval ;;
9915 # Look at the argument we got. We use all the common list separators.
9916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9917 for lt_pkg in $withval; do
9919 if test "X$lt_pkg" = "X$lt_p"; then
9931 test -z "$pic_mode" && pic_mode=default
9939 # Check whether --enable-fast-install was given.
9940 if test "${enable_fast_install+set}" = set; then :
9941 enableval=$enable_fast_install; p=${PACKAGE-default}
9943 yes) enable_fast_install=yes ;;
9944 no) enable_fast_install=no ;;
9946 enable_fast_install=no
9947 # Look at the argument we got. We use all the common list separators.
9948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9949 for pkg in $enableval; do
9951 if test "X$pkg" = "X$p"; then
9952 enable_fast_install=yes
9959 enable_fast_install=yes
9972 # This can be used to rebuild libtool when needed
9973 LIBTOOL_DEPS="$ltmain"
9975 # Always use our own libtool.
9976 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10007 test -z "$LN_S" && LN_S="ln -s"
10022 if test -n "${ZSH_VERSION+set}" ; then
10023 setopt NO_GLOB_SUBST
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10027 $as_echo_n "checking for objdir... " >&6; }
10028 if ${lt_cv_objdir+:} false; then :
10029 $as_echo_n "(cached) " >&6
10031 rm -f .libs 2>/dev/null
10032 mkdir .libs 2>/dev/null
10033 if test -d .libs; then
10036 # MS-DOS does not allow filenames that begin with a dot.
10039 rmdir .libs 2>/dev/null
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10042 $as_echo "$lt_cv_objdir" >&6; }
10043 objdir=$lt_cv_objdir
10049 cat >>confdefs.h <<_ACEOF
10050 #define LT_OBJDIR "$lt_cv_objdir/"
10058 # AIX sometimes has problems with the GCC collect2 program. For some
10059 # reason, if we set the COLLECT_NAMES environment variable, the problems
10060 # vanish in a puff of smoke.
10061 if test "X${COLLECT_NAMES+set}" != Xset; then
10063 export COLLECT_NAMES
10068 # Global variables:
10070 can_build_shared=yes
10072 # All known linkers require a `.a' archive for static linking (except MSVC,
10073 # which needs '.lib').
10076 with_gnu_ld="$lt_cv_prog_gnu_ld"
10079 old_CFLAGS="$CFLAGS"
10081 # Set sane defaults for various variables
10082 test -z "$CC" && CC=cc
10083 test -z "$LTCC" && LTCC=$CC
10084 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10085 test -z "$LD" && LD=ld
10086 test -z "$ac_objext" && ac_objext=o
10088 for cc_temp in $compiler""; do
10090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10096 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10099 # Only perform the check for file, if the check method requires it
10100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10101 case $deplibs_check_method in
10103 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10105 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10107 $as_echo_n "(cached) " >&6
10111 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10114 lt_save_MAGIC_CMD="$MAGIC_CMD"
10115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10117 for ac_dir in $ac_dummy; do
10119 test -z "$ac_dir" && ac_dir=.
10120 if test -f $ac_dir/${ac_tool_prefix}file; then
10121 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10122 if test -n "$file_magic_test_file"; then
10123 case $deplibs_check_method in
10125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10128 $EGREP "$file_magic_regex" > /dev/null; then
10133 *** Warning: the command libtool uses to detect shared libraries,
10134 *** $file_magic_cmd, produces output that libtool cannot recognize.
10135 *** The result is that libtool may fail to recognize shared libraries
10136 *** as such. This will affect the creation of libtool libraries that
10137 *** depend on shared libraries, but programs linked with such libtool
10138 *** libraries will work regardless of this problem. Nevertheless, you
10139 *** may want to report the problem to your system manager and/or to
10140 *** bug-libtool@gnu.org
10150 MAGIC_CMD="$lt_save_MAGIC_CMD"
10155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10156 if test -n "$MAGIC_CMD"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10158 $as_echo "$MAGIC_CMD" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10168 if test -z "$lt_cv_path_MAGIC_CMD"; then
10169 if test -n "$ac_tool_prefix"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10171 $as_echo_n "checking for file... " >&6; }
10172 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10173 $as_echo_n "(cached) " >&6
10177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10180 lt_save_MAGIC_CMD="$MAGIC_CMD"
10181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10183 for ac_dir in $ac_dummy; do
10185 test -z "$ac_dir" && ac_dir=.
10186 if test -f $ac_dir/file; then
10187 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10188 if test -n "$file_magic_test_file"; then
10189 case $deplibs_check_method in
10191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10194 $EGREP "$file_magic_regex" > /dev/null; then
10199 *** Warning: the command libtool uses to detect shared libraries,
10200 *** $file_magic_cmd, produces output that libtool cannot recognize.
10201 *** The result is that libtool may fail to recognize shared libraries
10202 *** as such. This will affect the creation of libtool libraries that
10203 *** depend on shared libraries, but programs linked with such libtool
10204 *** libraries will work regardless of this problem. Nevertheless, you
10205 *** may want to report the problem to your system manager and/or to
10206 *** bug-libtool@gnu.org
10216 MAGIC_CMD="$lt_save_MAGIC_CMD"
10221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10222 if test -n "$MAGIC_CMD"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10224 $as_echo "$MAGIC_CMD" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10240 # Use C for the default configuration in the libtool script
10244 ac_cpp='$CPP $CPPFLAGS'
10245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10250 # Source file extension for C test sources.
10253 # Object file extension for compiled C test sources.
10257 # Code to be used in simple compile tests
10258 lt_simple_compile_test_code="int some_variable = 0;"
10260 # Code to be used in simple link tests
10261 lt_simple_link_test_code='int main(){return(0);}'
10269 # If no C compiler was specified, use CC.
10272 # If no C compiler flags were specified, use CFLAGS.
10273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10275 # Allow CC to be a program name with arguments.
10278 # Save the default compiler, since it gets overwritten when the other
10279 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10280 compiler_DEFAULT=$CC
10282 # save warnings/boilerplate of simple test code
10283 ac_outfile=conftest.$ac_objext
10284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10286 _lt_compiler_boilerplate=`cat conftest.err`
10289 ac_outfile=conftest.$ac_objext
10290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10292 _lt_linker_boilerplate=`cat conftest.err`
10296 if test -n "$compiler"; then
10298 lt_prog_compiler_no_builtin_flag=
10300 if test "$GCC" = yes; then
10301 case $cc_basename in
10303 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10305 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10309 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10310 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10311 $as_echo_n "(cached) " >&6
10313 lt_cv_prog_compiler_rtti_exceptions=no
10314 ac_outfile=conftest.$ac_objext
10315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10316 lt_compiler_flag="-fno-rtti -fno-exceptions"
10317 # Insert the option either (1) after the last *FLAGS variable, or
10318 # (2) before a word containing "conftest.", or (3) at the end.
10319 # Note that $ac_compile itself does not contain backslashes and begins
10320 # with a dollar sign (not a hyphen), so the echo should work correctly.
10321 # The option is referenced via a variable to avoid confusing sed.
10322 lt_compile=`echo "$ac_compile" | $SED \
10323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10325 -e 's:$: $lt_compiler_flag:'`
10326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10327 (eval "$lt_compile" 2>conftest.err)
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 if (exit $ac_status) && test -s "$ac_outfile"; then
10332 # The compiler can only warn and ignore the option if not recognized
10333 # So say no if there are warnings other than the usual output.
10334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10337 lt_cv_prog_compiler_rtti_exceptions=yes
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10344 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10346 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10359 lt_prog_compiler_wl=
10360 lt_prog_compiler_pic=
10361 lt_prog_compiler_static=
10364 if test "$GCC" = yes; then
10365 lt_prog_compiler_wl='-Wl,'
10366 lt_prog_compiler_static='-static'
10370 # All AIX code is PIC.
10371 if test "$host_cpu" = ia64; then
10372 # AIX 5 now supports IA64 processor
10373 lt_prog_compiler_static='-Bstatic'
10380 # see comment about AmigaOS4 .so support
10381 lt_prog_compiler_pic='-fPIC'
10384 # FIXME: we need at least 68020 code to build shared libraries, but
10385 # adding the `-m68020' flag to GCC prevents building anything better,
10387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10393 # PIC is the default for these OSes.
10396 mingw* | cygwin* | pw32* | os2* | cegcc*)
10397 # This hack is so that the source file can tell whether it is being
10398 # built for inclusion in a dll (and should export symbols for example).
10399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10400 # (--disable-auto-import) libraries
10401 lt_prog_compiler_pic='-DDLL_EXPORT'
10404 darwin* | rhapsody*)
10405 # PIC is the default on this platform
10406 # Common symbols not allowed in MH_DYLIB files
10407 lt_prog_compiler_pic='-fno-common'
10411 # PIC is the default for Haiku.
10412 # The "-static" flag exists, but is broken.
10413 lt_prog_compiler_static=
10417 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10418 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10419 # sets the default TLS model and affects inlining.
10425 lt_prog_compiler_pic='-fPIC'
10431 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10432 # Instead, we relocate shared libraries at runtime.
10436 # Just because we use GCC doesn't mean we suddenly get shared libraries
10437 # on systems that don't support them.
10438 lt_prog_compiler_can_build_shared=no
10443 # QNX uses GNU C++, but need to define -shared option too, otherwise
10444 # it will coredump.
10445 lt_prog_compiler_pic='-fPIC -shared'
10449 if test -d /usr/nec; then
10450 lt_prog_compiler_pic=-Kconform_pic
10455 lt_prog_compiler_pic='-fPIC'
10459 case $cc_basename in
10460 nvcc*) # Cuda Compiler Driver 2.2
10461 lt_prog_compiler_wl='-Xlinker '
10462 if test -n "$lt_prog_compiler_pic"; then
10463 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10468 # PORTME Check for flag to pass linker flags through the system compiler.
10471 lt_prog_compiler_wl='-Wl,'
10472 if test "$host_cpu" = ia64; then
10473 # AIX 5 now supports IA64 processor
10474 lt_prog_compiler_static='-Bstatic'
10476 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10480 mingw* | cygwin* | pw32* | os2* | cegcc*)
10481 # This hack is so that the source file can tell whether it is being
10482 # built for inclusion in a dll (and should export symbols for example).
10483 lt_prog_compiler_pic='-DDLL_EXPORT'
10486 hpux9* | hpux10* | hpux11*)
10487 lt_prog_compiler_wl='-Wl,'
10488 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10489 # not for PA HP-UX.
10495 lt_prog_compiler_pic='+Z'
10498 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10499 lt_prog_compiler_static='${wl}-a ${wl}archive'
10502 irix5* | irix6* | nonstopux*)
10503 lt_prog_compiler_wl='-Wl,'
10504 # PIC (with -KPIC) is the default.
10505 lt_prog_compiler_static='-non_shared'
10508 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10509 case $cc_basename in
10510 # old Intel for x86_64 which still supported -KPIC.
10512 lt_prog_compiler_wl='-Wl,'
10513 lt_prog_compiler_pic='-KPIC'
10514 lt_prog_compiler_static='-static'
10516 # icc used to be incompatible with GCC.
10517 # ICC 10 doesn't accept -KPIC any more.
10519 lt_prog_compiler_wl='-Wl,'
10520 lt_prog_compiler_pic='-fPIC'
10521 lt_prog_compiler_static='-static'
10523 # Lahey Fortran 8.1.
10525 lt_prog_compiler_wl='-Wl,'
10526 lt_prog_compiler_pic='--shared'
10527 lt_prog_compiler_static='--static'
10530 # NAG Fortran compiler
10531 lt_prog_compiler_wl='-Wl,-Wl,,'
10532 lt_prog_compiler_pic='-PIC'
10533 lt_prog_compiler_static='-Bstatic'
10535 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10536 # Portland Group compilers (*not* the Pentium gcc compiler,
10537 # which looks to be a dead project)
10538 lt_prog_compiler_wl='-Wl,'
10539 lt_prog_compiler_pic='-fpic'
10540 lt_prog_compiler_static='-Bstatic'
10543 lt_prog_compiler_wl='-Wl,'
10544 # All Alpha code is PIC.
10545 lt_prog_compiler_static='-non_shared'
10547 xl* | bgxl* | bgf* | mpixl*)
10548 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10549 lt_prog_compiler_wl='-Wl,'
10550 lt_prog_compiler_pic='-qpic'
10551 lt_prog_compiler_static='-qstaticlink'
10554 case `$CC -V 2>&1 | sed 5q` in
10555 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10556 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10557 lt_prog_compiler_pic='-KPIC'
10558 lt_prog_compiler_static='-Bstatic'
10559 lt_prog_compiler_wl=''
10561 *Sun\ F* | *Sun*Fortran*)
10562 lt_prog_compiler_pic='-KPIC'
10563 lt_prog_compiler_static='-Bstatic'
10564 lt_prog_compiler_wl='-Qoption ld '
10568 lt_prog_compiler_pic='-KPIC'
10569 lt_prog_compiler_static='-Bstatic'
10570 lt_prog_compiler_wl='-Wl,'
10572 *Intel*\ [CF]*Compiler*)
10573 lt_prog_compiler_wl='-Wl,'
10574 lt_prog_compiler_pic='-fPIC'
10575 lt_prog_compiler_static='-static'
10578 lt_prog_compiler_wl='-Wl,'
10579 lt_prog_compiler_pic='-fpic'
10580 lt_prog_compiler_static='-Bstatic'
10588 lt_prog_compiler_pic='-KPIC'
10589 lt_prog_compiler_static='-Bstatic'
10593 # QNX uses GNU C++, but need to define -shared option too, otherwise
10594 # it will coredump.
10595 lt_prog_compiler_pic='-fPIC -shared'
10598 osf3* | osf4* | osf5*)
10599 lt_prog_compiler_wl='-Wl,'
10600 # All OSF/1 code is PIC.
10601 lt_prog_compiler_static='-non_shared'
10605 lt_prog_compiler_static='-non_shared'
10609 lt_prog_compiler_pic='-KPIC'
10610 lt_prog_compiler_static='-Bstatic'
10611 case $cc_basename in
10612 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10613 lt_prog_compiler_wl='-Qoption ld ';;
10615 lt_prog_compiler_wl='-Wl,';;
10620 lt_prog_compiler_wl='-Qoption ld '
10621 lt_prog_compiler_pic='-PIC'
10622 lt_prog_compiler_static='-Bstatic'
10625 sysv4 | sysv4.2uw2* | sysv4.3*)
10626 lt_prog_compiler_wl='-Wl,'
10627 lt_prog_compiler_pic='-KPIC'
10628 lt_prog_compiler_static='-Bstatic'
10632 if test -d /usr/nec ;then
10633 lt_prog_compiler_pic='-Kconform_pic'
10634 lt_prog_compiler_static='-Bstatic'
10638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10639 lt_prog_compiler_wl='-Wl,'
10640 lt_prog_compiler_pic='-KPIC'
10641 lt_prog_compiler_static='-Bstatic'
10645 lt_prog_compiler_wl='-Wl,'
10646 lt_prog_compiler_can_build_shared=no
10650 lt_prog_compiler_pic='-pic'
10651 lt_prog_compiler_static='-Bstatic'
10655 lt_prog_compiler_can_build_shared=no
10661 # For platforms which do not support PIC, -DPIC is meaningless:
10663 lt_prog_compiler_pic=
10666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10671 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10672 if ${lt_cv_prog_compiler_pic+:} false; then :
10673 $as_echo_n "(cached) " >&6
10675 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10678 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10679 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10682 # Check to make sure the PIC flag actually works.
10684 if test -n "$lt_prog_compiler_pic"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10686 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10687 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10688 $as_echo_n "(cached) " >&6
10690 lt_cv_prog_compiler_pic_works=no
10691 ac_outfile=conftest.$ac_objext
10692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10694 # Insert the option either (1) after the last *FLAGS variable, or
10695 # (2) before a word containing "conftest.", or (3) at the end.
10696 # Note that $ac_compile itself does not contain backslashes and begins
10697 # with a dollar sign (not a hyphen), so the echo should work correctly.
10698 # The option is referenced via a variable to avoid confusing sed.
10699 lt_compile=`echo "$ac_compile" | $SED \
10700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10702 -e 's:$: $lt_compiler_flag:'`
10703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10704 (eval "$lt_compile" 2>conftest.err)
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 if (exit $ac_status) && test -s "$ac_outfile"; then
10709 # The compiler can only warn and ignore the option if not recognized
10710 # So say no if there are warnings other than the usual output.
10711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10714 lt_cv_prog_compiler_pic_works=yes
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10721 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10723 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10724 case $lt_prog_compiler_pic in
10726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10729 lt_prog_compiler_pic=
10730 lt_prog_compiler_can_build_shared=no
10746 # Check to make sure the static flag actually works.
10748 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10750 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10751 if ${lt_cv_prog_compiler_static_works+:} false; then :
10752 $as_echo_n "(cached) " >&6
10754 lt_cv_prog_compiler_static_works=no
10755 save_LDFLAGS="$LDFLAGS"
10756 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10759 # The linker can only warn and ignore the option if not recognized
10760 # So say no if there are warnings
10761 if test -s conftest.err; then
10762 # Append any errors to the config.log.
10763 cat conftest.err 1>&5
10764 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10766 if diff conftest.exp conftest.er2 >/dev/null; then
10767 lt_cv_prog_compiler_static_works=yes
10770 lt_cv_prog_compiler_static_works=yes
10774 LDFLAGS="$save_LDFLAGS"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10778 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10780 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10783 lt_prog_compiler_static=
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10794 if ${lt_cv_prog_compiler_c_o+:} false; then :
10795 $as_echo_n "(cached) " >&6
10797 lt_cv_prog_compiler_c_o=no
10798 $RM -r conftest 2>/dev/null
10802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10804 lt_compiler_flag="-o out/conftest2.$ac_objext"
10805 # Insert the option either (1) after the last *FLAGS variable, or
10806 # (2) before a word containing "conftest.", or (3) at the end.
10807 # Note that $ac_compile itself does not contain backslashes and begins
10808 # with a dollar sign (not a hyphen), so the echo should work correctly.
10809 lt_compile=`echo "$ac_compile" | $SED \
10810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10812 -e 's:$: $lt_compiler_flag:'`
10813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10814 (eval "$lt_compile" 2>out/conftest.err)
10816 cat out/conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10820 # The compiler can only warn and ignore the option if not recognized
10821 # So say no if there are warnings
10822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10825 lt_cv_prog_compiler_c_o=yes
10830 # SGI C++ compiler will create directory out/ii_files/ for
10831 # template instantiation
10832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10833 $RM out/* && rmdir out
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10849 if ${lt_cv_prog_compiler_c_o+:} false; then :
10850 $as_echo_n "(cached) " >&6
10852 lt_cv_prog_compiler_c_o=no
10853 $RM -r conftest 2>/dev/null
10857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10859 lt_compiler_flag="-o out/conftest2.$ac_objext"
10860 # Insert the option either (1) after the last *FLAGS variable, or
10861 # (2) before a word containing "conftest.", or (3) at the end.
10862 # Note that $ac_compile itself does not contain backslashes and begins
10863 # with a dollar sign (not a hyphen), so the echo should work correctly.
10864 lt_compile=`echo "$ac_compile" | $SED \
10865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10867 -e 's:$: $lt_compiler_flag:'`
10868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10869 (eval "$lt_compile" 2>out/conftest.err)
10871 cat out/conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875 # The compiler can only warn and ignore the option if not recognized
10876 # So say no if there are warnings
10877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10880 lt_cv_prog_compiler_c_o=yes
10885 # SGI C++ compiler will create directory out/ii_files/ for
10886 # template instantiation
10887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10888 $RM out/* && rmdir out
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10895 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10900 hard_links="nottested"
10901 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10902 # do not overwrite the value of need_locks provided by the user
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10904 $as_echo_n "checking if we can lock with hard links... " >&6; }
10907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10909 ln conftest.a conftest.b 2>&5 || hard_links=no
10910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10912 $as_echo "$hard_links" >&6; }
10913 if test "$hard_links" = no; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10931 allow_undefined_flag=
10932 always_export_symbols=no
10934 archive_expsym_cmds=
10935 compiler_needs_object=no
10936 enable_shared_with_static_runtimes=no
10937 export_dynamic_flag_spec=
10938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10939 hardcode_automatic=no
10941 hardcode_direct_absolute=no
10942 hardcode_libdir_flag_spec=
10943 hardcode_libdir_separator=
10944 hardcode_minus_L=no
10945 hardcode_shlibpath_var=unsupported
10947 link_all_deplibs=unknown
10949 module_expsym_cmds=
10950 old_archive_from_new_cmds=
10951 old_archive_from_expsyms_cmds=
10952 thread_safe_flag_spec=
10953 whole_archive_flag_spec=
10954 # include_expsyms should be a list of space-separated symbols to be *always*
10955 # included in the symbol list
10957 # exclude_expsyms can be an extended regexp of symbols to exclude
10958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10960 # as well as any symbol that contains `d'.
10961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10963 # platforms (ab)use it in PIC code, but their linkers get confused if
10964 # the symbol is explicitly referenced. Since portable code cannot
10965 # rely on this symbol name, it's probably fine to never include it in
10966 # preloaded symbol tables.
10967 # Exclude shared library initialization/finalization symbols.
10968 extract_expsyms_cmds=
10971 cygwin* | mingw* | pw32* | cegcc*)
10972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10973 # When not using gcc, we currently assume that we are using
10974 # Microsoft Visual C++.
10975 if test "$GCC" != yes; then
10980 # we just hope/assume this is gcc and not c89 (= MSVC++)
10990 # On some targets, GNU ld is compatible enough with the native linker
10991 # that we're better off using the native interface for both.
10992 lt_use_gnu_ld_interface=no
10993 if test "$with_gnu_ld" = yes; then
10996 # The AIX port of GNU ld has always aspired to compatibility
10997 # with the native linker. However, as the warning in the GNU ld
10998 # block says, versions before 2.19.5* couldn't really create working
10999 # shared libraries, regardless of the interface used.
11000 case `$LD -v 2>&1` in
11001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11005 lt_use_gnu_ld_interface=yes
11010 lt_use_gnu_ld_interface=yes
11015 if test "$lt_use_gnu_ld_interface" = yes; then
11016 # If archive_cmds runs LD, not CC, wlarc should be empty
11019 # Set some defaults for GNU ld with shared library support. These
11020 # are reset later if shared libraries are not supported. Putting them
11021 # here allows them to be overridden if necessary.
11022 runpath_var=LD_RUN_PATH
11023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11024 export_dynamic_flag_spec='${wl}--export-dynamic'
11025 # ancient GNU ld didn't support --whole-archive et. al.
11026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11027 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11029 whole_archive_flag_spec=
11031 supports_anon_versioning=no
11032 case `$LD -v 2>&1` in
11033 *GNU\ gold*) supports_anon_versioning=yes ;;
11034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11037 *\ 2.11.*) ;; # other 2.11 versions
11038 *) supports_anon_versioning=yes ;;
11041 # See if GNU ld supports shared libraries.
11044 # On AIX/PPC, the GNU linker is very broken
11045 if test "$host_cpu" != ia64; then
11049 *** Warning: the GNU linker, at least up to release 2.19, is reported
11050 *** to be unable to reliably create shared libraries on AIX.
11051 *** Therefore, libtool is disabling shared libraries support. If you
11052 *** really care for shared libraries, you may want to install binutils
11053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11054 *** You will then need to restart the configuration process.
11063 # see comment about AmigaOS4 .so support
11064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11065 archive_expsym_cmds=''
11068 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)'
11069 hardcode_libdir_flag_spec='-L$libdir'
11070 hardcode_minus_L=yes
11076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11077 allow_undefined_flag=unsupported
11078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11079 # support --undefined. This deserves some investigation. FIXME
11080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11086 cygwin* | mingw* | pw32* | cegcc*)
11087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11088 # as there is no search path for DLLs.
11089 hardcode_libdir_flag_spec='-L$libdir'
11090 export_dynamic_flag_spec='${wl}--export-all-symbols'
11091 allow_undefined_flag=unsupported
11092 always_export_symbols=no
11093 enable_shared_with_static_runtimes=yes
11094 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'
11095 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11099 # If the export-symbols file already is a .def file (1st line
11100 # is EXPORTS), use it as is; otherwise, prepend...
11101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11102 cp $export_symbols $output_objdir/$soname.def;
11104 echo EXPORTS > $output_objdir/$soname.def;
11105 cat $export_symbols >> $output_objdir/$soname.def;
11107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 link_all_deplibs=yes
11120 hardcode_shlibpath_var=no
11121 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11122 export_dynamic_flag_spec='${wl}-E'
11123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11124 # Instead, shared libraries are loaded at an image base (0x10000000 by
11125 # default) and relocated if they conflict, which is a slow very memory
11126 # consuming and fragmenting process. To avoid this, we pick a random,
11127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11130 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'
11133 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11135 if test "$host_os" = linux-dietlibc; then
11136 case $cc_basename in
11137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11141 && test "$tmp_diet" = no
11143 tmp_addflag=' $pic_flag'
11144 tmp_sharedflag='-shared'
11145 case $cc_basename,$host_cpu in
11146 pgcc*) # Portland Group C compiler
11147 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'
11148 tmp_addflag=' $pic_flag'
11150 pgf77* | pgf90* | pgf95* | pgfortran*)
11151 # Portland Group f77 and f90 compilers
11152 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11153 tmp_addflag=' $pic_flag -Mnomain' ;;
11154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11155 tmp_addflag=' -i_dynamic' ;;
11156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11157 tmp_addflag=' -i_dynamic -nofor_main' ;;
11158 ifc* | ifort*) # Intel Fortran compiler
11159 tmp_addflag=' -nofor_main' ;;
11160 lf95*) # Lahey Fortran 8.1
11161 whole_archive_flag_spec=
11162 tmp_sharedflag='--shared' ;;
11163 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11164 tmp_sharedflag='-qmkshrobj'
11166 nvcc*) # Cuda Compiler Driver 2.2
11167 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'
11168 compiler_needs_object=yes
11171 case `$CC -V 2>&1 | sed 5q` in
11172 *Sun\ C*) # Sun C 5.9
11173 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'
11174 compiler_needs_object=yes
11175 tmp_sharedflag='-G' ;;
11176 *Sun\ F*) # Sun Fortran 8.3
11177 tmp_sharedflag='-G' ;;
11179 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11181 if test "x$supports_anon_versioning" = xyes; then
11182 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11184 echo "local: *; };" >> $output_objdir/$libname.ver~
11185 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11188 case $cc_basename in
11189 xlf* | bgf* | bgxlf* | mpixlf*)
11190 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11191 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11193 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11194 if test "x$supports_anon_versioning" = xyes; then
11195 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11197 echo "local: *; };" >> $output_objdir/$libname.ver~
11198 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11209 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11213 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11218 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11222 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11223 *** create shared libraries on Solaris systems. Therefore, libtool
11224 *** is disabling shared libraries support. We urge you to upgrade GNU
11225 *** binutils to release 2.9.1 or newer. Another option is to modify
11226 *** your PATH or compiler configuration so that the native linker is
11227 *** used, and then restart.
11230 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11239 case `$LD -v 2>&1` in
11240 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11244 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11245 *** reliably create shared libraries on SCO systems. Therefore, libtool
11246 *** is disabling shared libraries support. We urge you to upgrade GNU
11247 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11248 *** your PATH or compiler configuration so that the native linker is
11249 *** used, and then restart.
11254 # For security reasons, it is highly recommended that you always
11255 # use absolute paths for naming shared libraries, and exclude the
11256 # DT_RUNPATH tag from executables and libraries. But doing so
11257 # requires that you compile everything twice, which is a pain.
11258 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11272 hardcode_direct=yes
11273 hardcode_shlibpath_var=no
11277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11279 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11286 if test "$ld_shlibs" = no; then
11288 hardcode_libdir_flag_spec=
11289 export_dynamic_flag_spec=
11290 whole_archive_flag_spec=
11293 # PORTME fill in a description of your system's linker (not GNU ld)
11296 allow_undefined_flag=unsupported
11297 always_export_symbols=yes
11298 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'
11299 # Note: this linker hardcodes the directories in LIBPATH if there
11300 # are no directories specified by -L.
11301 hardcode_minus_L=yes
11302 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11303 # Neither direct hardcoding nor static linking is supported with a
11305 hardcode_direct=unsupported
11310 if test "$host_cpu" = ia64; then
11311 # On IA64, the linker does run time linking by default, so we don't
11312 # have to do anything special.
11313 aix_use_runtimelinking=no
11314 exp_sym_flag='-Bexport'
11317 # If we're using GNU nm, then we don't want the "-C" option.
11318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11319 # Also, AIX nm treats weak defined symbols like other global
11320 # defined symbols, whereas GNU nm marks them as "W".
11321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11322 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'
11324 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'
11326 aix_use_runtimelinking=no
11328 # Test if we are trying to use run time linking or normal
11329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11330 # need to do runtime linking.
11331 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11332 for ld_flag in $LDFLAGS; do
11333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11334 aix_use_runtimelinking=yes
11341 exp_sym_flag='-bexport'
11342 no_entry_flag='-bnoentry'
11345 # When large executables or shared objects are built, AIX ld can
11346 # have problems creating the table of contents. If linking a library
11347 # or program results in "error TOC overflow" add -mminimal-toc to
11348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11352 hardcode_direct=yes
11353 hardcode_direct_absolute=yes
11354 hardcode_libdir_separator=':'
11355 link_all_deplibs=yes
11356 file_list_spec='${wl}-f,'
11358 if test "$GCC" = yes; then
11359 case $host_os in aix4.[012]|aix4.[012].*)
11360 # We only want to do this on AIX 4.2 and lower, the check
11361 # below for broken collect2 doesn't work under 4.3+
11362 collect2name=`${CC} -print-prog-name=collect2`
11363 if test -f "$collect2name" &&
11364 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11366 # We have reworked collect2
11369 # We have old collect2
11370 hardcode_direct=unsupported
11371 # It fails to find uninstalled libraries when the uninstalled
11372 # path is not listed in the libpath. Setting hardcode_minus_L
11373 # to unsupported forces relinking
11374 hardcode_minus_L=yes
11375 hardcode_libdir_flag_spec='-L$libdir'
11376 hardcode_libdir_separator=
11380 shared_flag='-shared'
11381 if test "$aix_use_runtimelinking" = yes; then
11382 shared_flag="$shared_flag "'${wl}-G'
11386 if test "$host_cpu" = ia64; then
11387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11388 # chokes on -Wl,-G. The following line is correct:
11391 if test "$aix_use_runtimelinking" = yes; then
11392 shared_flag='${wl}-G'
11394 shared_flag='${wl}-bM:SRE'
11399 export_dynamic_flag_spec='${wl}-bexpall'
11400 # It seems that -bexpall does not export symbols beginning with
11401 # underscore (_), so it is better to generate a list of symbols to export.
11402 always_export_symbols=yes
11403 if test "$aix_use_runtimelinking" = yes; then
11404 # Warning - without using the other runtime loading flags (-brtl),
11405 # -berok will link without error, but may produce a broken library.
11406 allow_undefined_flag='-berok'
11407 # Determine the default libpath from the value encoded in an
11408 # empty executable.
11409 if test "${lt_cv_aix_libpath+set}" = set; then
11410 aix_libpath=$lt_cv_aix_libpath
11412 if ${lt_cv_aix_libpath_+:} false; then :
11413 $as_echo_n "(cached) " >&6
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11426 if ac_fn_c_try_link "$LINENO"; then :
11428 lt_aix_libpath_sed='
11429 /Import File Strings/,/^$/ {
11431 s/^0 *\([^ ]*\) *$/\1/
11435 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11436 # Check for a 64-bit object if we didn't find anything.
11437 if test -z "$lt_cv_aix_libpath_"; then
11438 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 if test -z "$lt_cv_aix_libpath_"; then
11444 lt_cv_aix_libpath_="/usr/lib:/lib"
11449 aix_libpath=$lt_cv_aix_libpath_
11452 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11453 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"
11455 if test "$host_cpu" = ia64; then
11456 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11457 allow_undefined_flag="-z nodefs"
11458 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"
11460 # Determine the default libpath from the value encoded in an
11461 # empty executable.
11462 if test "${lt_cv_aix_libpath+set}" = set; then
11463 aix_libpath=$lt_cv_aix_libpath
11465 if ${lt_cv_aix_libpath_+:} false; then :
11466 $as_echo_n "(cached) " >&6
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11479 if ac_fn_c_try_link "$LINENO"; then :
11481 lt_aix_libpath_sed='
11482 /Import File Strings/,/^$/ {
11484 s/^0 *\([^ ]*\) *$/\1/
11488 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11489 # Check for a 64-bit object if we didn't find anything.
11490 if test -z "$lt_cv_aix_libpath_"; then
11491 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 if test -z "$lt_cv_aix_libpath_"; then
11497 lt_cv_aix_libpath_="/usr/lib:/lib"
11502 aix_libpath=$lt_cv_aix_libpath_
11505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11506 # Warning - without using the other run time loading flags,
11507 # -berok will link without error, but may produce a broken library.
11508 no_undefined_flag=' ${wl}-bernotok'
11509 allow_undefined_flag=' ${wl}-berok'
11510 if test "$with_gnu_ld" = yes; then
11511 # We only use this code for GNU lds that support --whole-archive.
11512 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11514 # Exported symbols can be pulled into shared objects from archives
11515 whole_archive_flag_spec='$convenience'
11517 archive_cmds_need_lc=yes
11518 # This is similar to how AIX traditionally builds its shared libraries.
11519 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'
11527 # see comment about AmigaOS4 .so support
11528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11529 archive_expsym_cmds=''
11532 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)'
11533 hardcode_libdir_flag_spec='-L$libdir'
11534 hardcode_minus_L=yes
11540 export_dynamic_flag_spec=-rdynamic
11543 cygwin* | mingw* | pw32* | cegcc*)
11544 # When not using gcc, we currently assume that we are using
11545 # Microsoft Visual C++.
11546 # hardcode_libdir_flag_spec is actually meaningless, as there is
11547 # no search path for DLLs.
11548 case $cc_basename in
11551 hardcode_libdir_flag_spec=' '
11552 allow_undefined_flag=unsupported
11553 always_export_symbols=yes
11555 # Tell ltmain to make .lib files, not .a files.
11557 # Tell ltmain to make .dll files, not .so files.
11559 # FIXME: Setting linknames here is a bad hack.
11560 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11562 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11564 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11566 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11568 # The linker will not automatically build a static lib if we build a DLL.
11569 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11570 enable_shared_with_static_runtimes=yes
11571 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11574 old_postinstall_cmds='chmod 644 $oldlib'
11575 postlink_cmds='lt_outputfile="@OUTPUT@"~
11576 lt_tool_outputfile="@TOOL_OUTPUT@"~
11577 case $lt_outputfile in
11580 lt_outputfile="$lt_outputfile.exe"
11581 lt_tool_outputfile="$lt_tool_outputfile.exe"
11584 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11586 $RM "$lt_outputfile.manifest";
11590 # Assume MSVC wrapper
11591 hardcode_libdir_flag_spec=' '
11592 allow_undefined_flag=unsupported
11593 # Tell ltmain to make .lib files, not .a files.
11595 # Tell ltmain to make .dll files, not .so files.
11597 # FIXME: Setting linknames here is a bad hack.
11598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11599 # The linker will automatically build a .lib file if we build a DLL.
11600 old_archive_from_new_cmds='true'
11601 # FIXME: Should let the user specify the lib program.
11602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11603 enable_shared_with_static_runtimes=yes
11608 darwin* | rhapsody*)
11611 archive_cmds_need_lc=no
11613 hardcode_automatic=yes
11614 hardcode_shlibpath_var=unsupported
11615 if test "$lt_cv_ld_force_load" = "yes"; then
11616 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\"`'
11619 whole_archive_flag_spec=''
11621 link_all_deplibs=yes
11622 allow_undefined_flag="$_lt_dar_allow_undefined"
11623 case $cc_basename in
11624 ifort*) _lt_dar_can_shared=yes ;;
11625 *) _lt_dar_can_shared=$GCC ;;
11627 if test "$_lt_dar_can_shared" = "yes"; then
11628 output_verbose_link_cmd=func_echo_all
11629 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11630 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11631 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}"
11632 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}"
11641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642 hardcode_libdir_flag_spec='-L$libdir'
11643 hardcode_shlibpath_var=no
11646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11647 # support. Future versions do this automatically, but an explicit c++rt0.o
11648 # does not break anything, and helps significantly (at the cost of a little
11651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11652 hardcode_libdir_flag_spec='-R$libdir'
11653 hardcode_direct=yes
11654 hardcode_shlibpath_var=no
11657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11660 hardcode_direct=yes
11661 hardcode_minus_L=yes
11662 hardcode_shlibpath_var=no
11665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11666 freebsd* | dragonfly*)
11667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11668 hardcode_libdir_flag_spec='-R$libdir'
11669 hardcode_direct=yes
11670 hardcode_shlibpath_var=no
11674 if test "$GCC" = yes; then
11675 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'
11677 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'
11679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11680 hardcode_libdir_separator=:
11681 hardcode_direct=yes
11683 # hardcode_minus_L: Not really in the search PATH,
11684 # but as the default location of the library.
11685 hardcode_minus_L=yes
11686 export_dynamic_flag_spec='${wl}-E'
11690 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11691 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11695 if test "$with_gnu_ld" = no; then
11696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11697 hardcode_libdir_separator=:
11698 hardcode_direct=yes
11699 hardcode_direct_absolute=yes
11700 export_dynamic_flag_spec='${wl}-E'
11701 # hardcode_minus_L: Not really in the search PATH,
11702 # but as the default location of the library.
11703 hardcode_minus_L=yes
11708 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11711 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11714 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11717 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11723 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11726 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11730 # Older versions of the 11.00 compiler do not understand -b yet
11731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11733 $as_echo_n "checking if $CC understands -b... " >&6; }
11734 if ${lt_cv_prog_compiler__b+:} false; then :
11735 $as_echo_n "(cached) " >&6
11737 lt_cv_prog_compiler__b=no
11738 save_LDFLAGS="$LDFLAGS"
11739 LDFLAGS="$LDFLAGS -b"
11740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11742 # The linker can only warn and ignore the option if not recognized
11743 # So say no if there are warnings
11744 if test -s conftest.err; then
11745 # Append any errors to the config.log.
11746 cat conftest.err 1>&5
11747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11749 if diff conftest.exp conftest.er2 >/dev/null; then
11750 lt_cv_prog_compiler__b=yes
11753 lt_cv_prog_compiler__b=yes
11757 LDFLAGS="$save_LDFLAGS"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11761 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11763 if test x"$lt_cv_prog_compiler__b" = xyes; then
11764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11772 if test "$with_gnu_ld" = no; then
11773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11774 hardcode_libdir_separator=:
11779 hardcode_shlibpath_var=no
11782 hardcode_direct=yes
11783 hardcode_direct_absolute=yes
11784 export_dynamic_flag_spec='${wl}-E'
11786 # hardcode_minus_L: Not really in the search PATH,
11787 # but as the default location of the library.
11788 hardcode_minus_L=yes
11794 irix5* | irix6* | nonstopux*)
11795 if test "$GCC" = yes; then
11796 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'
11797 # Try to use the -exported_symbol ld option, if it does not
11798 # work, assume that -exports_file does not work either and
11799 # implicitly export all symbols.
11800 # This should be the same for all languages, so no per-tag cache variable.
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11802 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11803 if ${lt_cv_irix_exported_symbol+:} false; then :
11804 $as_echo_n "(cached) " >&6
11806 save_LDFLAGS="$LDFLAGS"
11807 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810 int foo (void) { return 0; }
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 lt_cv_irix_exported_symbol=yes
11815 lt_cv_irix_exported_symbol=no
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LDFLAGS="$save_LDFLAGS"
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11822 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11823 if test "$lt_cv_irix_exported_symbol" = yes; then
11824 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'
11827 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'
11828 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'
11830 archive_cmds_need_lc='no'
11831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11832 hardcode_libdir_separator=:
11834 link_all_deplibs=yes
11838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11841 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11843 hardcode_libdir_flag_spec='-R$libdir'
11844 hardcode_direct=yes
11845 hardcode_shlibpath_var=no
11849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11850 hardcode_direct=yes
11851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11852 hardcode_libdir_separator=:
11853 hardcode_shlibpath_var=no
11860 if test -f /usr/libexec/ld.so; then
11861 hardcode_direct=yes
11862 hardcode_shlibpath_var=no
11863 hardcode_direct_absolute=yes
11864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11866 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11868 export_dynamic_flag_spec='${wl}-E'
11871 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11873 hardcode_libdir_flag_spec='-R$libdir'
11876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11887 hardcode_libdir_flag_spec='-L$libdir'
11888 hardcode_minus_L=yes
11889 allow_undefined_flag=unsupported
11890 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'
11891 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11895 if test "$GCC" = yes; then
11896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11897 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'
11899 allow_undefined_flag=' -expect_unresolved \*'
11900 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'
11902 archive_cmds_need_lc='no'
11903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11904 hardcode_libdir_separator=:
11907 osf4* | osf5*) # as osf3* with the addition of -msym flag
11908 if test "$GCC" = yes; then
11909 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11910 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'
11911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11913 allow_undefined_flag=' -expect_unresolved \*'
11914 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'
11915 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~
11916 $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'
11918 # Both c and cxx compiler support -rpath directly
11919 hardcode_libdir_flag_spec='-rpath $libdir'
11921 archive_cmds_need_lc='no'
11922 hardcode_libdir_separator=:
11926 no_undefined_flag=' -z defs'
11927 if test "$GCC" = yes; then
11929 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11931 $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'
11933 case `$CC -V 2>&1` in
11936 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11938 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11942 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11944 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11948 hardcode_libdir_flag_spec='-R$libdir'
11949 hardcode_shlibpath_var=no
11951 solaris2.[0-5] | solaris2.[0-5].*) ;;
11953 # The compiler driver will combine and reorder linker options,
11954 # but understands `-z linker_flag'. GCC discards it without `$wl',
11955 # but is careful enough not to reorder.
11956 # Supported since Solaris 2.6 (maybe 2.5.1?)
11957 if test "$GCC" = yes; then
11958 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11960 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11964 link_all_deplibs=yes
11968 if test "x$host_vendor" = xsequent; then
11969 # Use $CC to link under sequent, because it throws in some extra .o
11970 # files that make .init and .fini sections work.
11971 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11973 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11975 hardcode_libdir_flag_spec='-L$libdir'
11976 hardcode_direct=yes
11977 hardcode_minus_L=yes
11978 hardcode_shlibpath_var=no
11982 case $host_vendor in
11984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11985 hardcode_direct=yes # is this really true???
11988 ## LD is ld it makes a PLAMLIB
11989 ## CC just makes a GrossModule.
11990 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11991 reload_cmds='$CC -r -o $output$reload_objs'
11995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11999 runpath_var='LD_RUN_PATH'
12000 hardcode_shlibpath_var=no
12004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12005 hardcode_shlibpath_var=no
12006 export_dynamic_flag_spec='-Bexport'
12010 if test -d /usr/nec; then
12011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12012 hardcode_shlibpath_var=no
12013 runpath_var=LD_RUN_PATH
12014 hardcode_runpath_var=yes
12019 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12020 no_undefined_flag='${wl}-z,text'
12021 archive_cmds_need_lc=no
12022 hardcode_shlibpath_var=no
12023 runpath_var='LD_RUN_PATH'
12025 if test "$GCC" = yes; then
12026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12034 sysv5* | sco3.2v5* | sco5v6*)
12035 # Note: We can NOT use -z defs as we might desire, because we do not
12036 # link with -lc, and that would cause any symbols used from libc to
12037 # always be unresolved, which means just about no library would
12038 # ever link correctly. If we're not using GNU ld we use -z text
12039 # though, which does catch some bad symbols but isn't as heavy-handed
12041 no_undefined_flag='${wl}-z,text'
12042 allow_undefined_flag='${wl}-z,nodefs'
12043 archive_cmds_need_lc=no
12044 hardcode_shlibpath_var=no
12045 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12046 hardcode_libdir_separator=':'
12047 link_all_deplibs=yes
12048 export_dynamic_flag_spec='${wl}-Bexport'
12049 runpath_var='LD_RUN_PATH'
12051 if test "$GCC" = yes; then
12052 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12053 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12055 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12056 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12062 hardcode_libdir_flag_spec='-L$libdir'
12063 hardcode_shlibpath_var=no
12071 if test x$host_vendor = xsni; then
12073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12074 export_dynamic_flag_spec='${wl}-Blargedynsym'
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12081 $as_echo "$ld_shlibs" >&6; }
12082 test "$ld_shlibs" = no && can_build_shared=no
12084 with_gnu_ld=$with_gnu_ld
12101 # Do we need to explicitly link libc?
12103 case "x$archive_cmds_need_lc" in
12105 # Assume -lc should be added
12106 archive_cmds_need_lc=yes
12108 if test "$enable_shared" = yes && test "$GCC" = yes; then
12109 case $archive_cmds in
12111 # FIXME: we may have to deal with multi-command sequences.
12114 # Test whether the compiler implicitly links with -lc since on some
12115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12116 # to ld, don't add -lc before -lgcc.
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12118 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12119 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12120 $as_echo_n "(cached) " >&6
12123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12126 (eval $ac_compile) 2>&5
12128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12129 test $ac_status = 0; } 2>conftest.err; then
12132 libobjs=conftest.$ac_objext
12134 wl=$lt_prog_compiler_wl
12135 pic_flag=$lt_prog_compiler_pic
12141 lt_save_allow_undefined_flag=$allow_undefined_flag
12142 allow_undefined_flag=
12143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12144 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; }
12149 lt_cv_archive_cmds_need_lc=no
12151 lt_cv_archive_cmds_need_lc=yes
12153 allow_undefined_flag=$lt_save_allow_undefined_flag
12155 cat conftest.err 1>&5
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12161 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12162 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12323 if test "$GCC" = yes; then
12325 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12326 *) lt_awk_arg="/^libraries:/" ;;
12329 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12330 *) lt_sed_strip_eq="s,=/,/,g" ;;
12332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12333 case $lt_search_path_spec in
12335 # if the path contains ";" then we assume it to be the separator
12336 # otherwise default to the standard path separator (i.e. ":") - it is
12337 # assumed that no part of a normal pathname contains ";" but that should
12338 # okay in the real world where ";" in dirpaths is itself problematic.
12339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12345 # Ok, now we have the path, separated by spaces, we can step through it
12346 # and add multilib dir if necessary.
12347 lt_tmp_lt_search_path_spec=
12348 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12349 for lt_sys_path in $lt_search_path_spec; do
12350 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12353 test -d "$lt_sys_path" && \
12354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12357 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12358 BEGIN {RS=" "; FS="/|\n";} {
12361 for (lt_i = NF; lt_i > 0; lt_i--) {
12362 if ($lt_i != "" && $lt_i != ".") {
12363 if ($lt_i == "..") {
12366 if (lt_count == 0) {
12367 lt_foo="/" $lt_i lt_foo;
12374 if (lt_foo != "") { lt_freq[lt_foo]++; }
12375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12377 # AWK program above erroneously prepends '/' to C:/dos/paths
12380 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12381 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12383 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12387 library_names_spec=
12388 libname_spec='lib$name'
12392 postuninstall_cmds=
12396 shlibpath_overrides_runpath=unknown
12398 dynamic_linker="$host_os ld.so"
12399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12400 need_lib_prefix=unknown
12401 hardcode_into_libs=no
12403 # when you set need_version to no, make sure it does not cause -set_version
12404 # flags to be left without arguments
12405 need_version=unknown
12409 version_type=linux # correct to gnu/linux during the next big refactor
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12411 shlibpath_var=LIBPATH
12413 # AIX 3 has no versioning support, so we append a major version to the name.
12414 soname_spec='${libname}${release}${shared_ext}$major'
12418 version_type=linux # correct to gnu/linux during the next big refactor
12421 hardcode_into_libs=yes
12422 if test "$host_cpu" = ia64; then
12423 # AIX 5 supports IA64
12424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12425 shlibpath_var=LD_LIBRARY_PATH
12427 # With GCC up to 2.95.x, collect2 would create an import file
12428 # for dependence libraries. The import file would start with
12429 # the line `#! .'. This would cause the generated library to
12430 # depend on `.', always an invalid library. This was fixed in
12431 # development snapshots of GCC prior to 3.0.
12433 aix4 | aix4.[01] | aix4.[01].*)
12434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12439 can_build_shared=no
12443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12444 # soname into executable. Probably we can add versioning support to
12445 # collect2, so additional links can be useful in future.
12446 if test "$aix_use_runtimelinking" = yes; then
12447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12448 # instead of lib<name>.a to let people know that these are not
12449 # typical AIX shared libraries.
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 # We preserve .a as extension for shared libraries through AIX4.2
12453 # and later when we are not doing run time linking.
12454 library_names_spec='${libname}${release}.a $libname.a'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LIBPATH
12464 # Since July 2007 AmigaOS4 officially supports .so libraries.
12465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12469 library_names_spec='$libname.ixlibrary $libname.a'
12470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12471 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'
12477 library_names_spec='${libname}${shared_ext}'
12478 dynamic_linker="$host_os ld.so"
12479 shlibpath_var=LIBRARY_PATH
12483 version_type=linux # correct to gnu/linux during the next big refactor
12485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12486 soname_spec='${libname}${release}${shared_ext}$major'
12487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12491 # the default ld.so.conf also contains /usr/contrib/lib and
12492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12493 # libtool to hard-code these into programs
12496 cygwin* | mingw* | pw32* | cegcc*)
12497 version_type=windows
12502 case $GCC,$cc_basename in
12505 library_names_spec='$libname.dll.a'
12506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12507 postinstall_cmds='base_file=`basename \${file}`~
12508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12509 dldir=$destdir/`dirname \$dlpath`~
12510 test -d \$dldir || mkdir -p \$dldir~
12511 $install_prog $dir/$dlname \$dldir/$dlname~
12512 chmod a+x \$dldir/$dlname~
12513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12517 dlpath=$dir/\$dldll~
12519 shlibpath_overrides_runpath=yes
12523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12529 # MinGW DLLs use traditional 'lib' prefix
12530 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12533 # pw32 DLLs use 'pw' prefix rather than 'lib'
12534 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12537 dynamic_linker='Win32 ld.exe'
12542 libname_spec='$name'
12543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12544 library_names_spec='${libname}.dll.lib'
12548 sys_lib_search_path_spec=
12551 for lt_path in $LIB
12554 # Let DOS variable expansion print the short 8.3 style file name.
12555 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12556 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12559 # Convert to MSYS style.
12560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12563 # Convert to unix form, then to dos form, then back to unix form
12564 # but this time dos style (no spaces!) so that the unix form looks
12565 # like /cygdrive/c/PROGRA~1:/cygdr...
12566 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12567 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12568 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12571 sys_lib_search_path_spec="$LIB"
12572 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12573 # It is most probably a Windows format PATH.
12574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12578 # FIXME: find the short name or the path components, as spaces are
12579 # common. (e.g. "Program Files" -> "PROGRA~1")
12583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12584 postinstall_cmds='base_file=`basename \${file}`~
12585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12586 dldir=$destdir/`dirname \$dlpath`~
12587 test -d \$dldir || mkdir -p \$dldir~
12588 $install_prog $dir/$dlname \$dldir/$dlname'
12589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12590 dlpath=$dir/\$dldll~
12592 shlibpath_overrides_runpath=yes
12593 dynamic_linker='Win32 link.exe'
12597 # Assume MSVC wrapper
12598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12599 dynamic_linker='Win32 ld.exe'
12602 # FIXME: first we should search . and the directory the executable is in
12606 darwin* | rhapsody*)
12607 dynamic_linker="$host_os dyld"
12608 version_type=darwin
12611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12612 soname_spec='${libname}${release}${major}$shared_ext'
12613 shlibpath_overrides_runpath=yes
12614 shlibpath_var=DYLD_LIBRARY_PATH
12615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12622 version_type=linux # correct to gnu/linux during the next big refactor
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 shlibpath_var=LD_LIBRARY_PATH
12630 freebsd* | dragonfly*)
12631 # DragonFly does not have aout. When/if they implement a new
12632 # versioning mechanism, adjust this.
12633 if test -x /usr/bin/objformat; then
12634 objformat=`/usr/bin/objformat`
12637 freebsd[23].*) objformat=aout ;;
12638 *) objformat=elf ;;
12641 version_type=freebsd-$objformat
12642 case $version_type in
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12653 shlibpath_var=LD_LIBRARY_PATH
12656 shlibpath_overrides_runpath=yes
12658 freebsd3.[01]* | freebsdelf3.[01]*)
12659 shlibpath_overrides_runpath=yes
12660 hardcode_into_libs=yes
12662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12664 shlibpath_overrides_runpath=no
12665 hardcode_into_libs=yes
12667 *) # from 4.6 on, and DragonFly
12668 shlibpath_overrides_runpath=yes
12669 hardcode_into_libs=yes
12675 version_type=linux # correct to gnu/linux during the next big refactor
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12679 soname_spec='${libname}${release}${shared_ext}$major'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=no
12682 hardcode_into_libs=yes
12686 version_type=linux # correct to gnu/linux during the next big refactor
12689 dynamic_linker="$host_os runtime_loader"
12690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 shlibpath_var=LIBRARY_PATH
12693 shlibpath_overrides_runpath=yes
12694 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12695 hardcode_into_libs=yes
12698 hpux9* | hpux10* | hpux11*)
12699 # Give a soname corresponding to the major version so that dld.sl refuses to
12700 # link against other versions.
12707 hardcode_into_libs=yes
12708 dynamic_linker="$host_os dld.so"
12709 shlibpath_var=LD_LIBRARY_PATH
12710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 if test "X$HPUX_IA64_MODE" = X32; then
12714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12722 hardcode_into_libs=yes
12723 dynamic_linker="$host_os dld.sl"
12724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12733 dynamic_linker="$host_os dld.sl"
12734 shlibpath_var=SHLIB_PATH
12735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12737 soname_spec='${libname}${release}${shared_ext}$major'
12740 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12741 postinstall_cmds='chmod 555 $lib'
12742 # or fails outright, so override atomically:
12743 install_override_mode=555
12747 version_type=linux # correct to gnu/linux during the next big refactor
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=no
12755 hardcode_into_libs=yes
12758 irix5* | irix6* | nonstopux*)
12760 nonstopux*) version_type=nonstopux ;;
12762 if test "$lt_cv_prog_gnu_ld" = yes; then
12763 version_type=linux # correct to gnu/linux during the next big refactor
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12773 irix5* | nonstopux*)
12774 libsuff= shlibsuff=
12777 case $LD in # libtool.m4 will add one of these switches to LD
12778 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12779 libsuff= shlibsuff= libmagic=32-bit;;
12780 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12781 libsuff=32 shlibsuff=N32 libmagic=N32;;
12782 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12783 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12784 *) libsuff= shlibsuff= libmagic=never-match;;
12788 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12789 shlibpath_overrides_runpath=no
12790 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12791 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12792 hardcode_into_libs=yes
12795 # No shared lib support for Linux oldld, aout, or coff.
12796 linux*oldld* | linux*aout* | linux*coff*)
12800 # This must be glibc/ELF.
12801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12802 version_type=linux # correct to gnu/linux during the next big refactor
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 shlibpath_overrides_runpath=no
12811 # Some binutils ld are patched to set DT_RUNPATH
12812 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12813 $as_echo_n "(cached) " >&6
12815 lt_cv_shlibpath_overrides_runpath=no
12816 save_LDFLAGS=$LDFLAGS
12817 save_libdir=$libdir
12818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12833 lt_cv_shlibpath_overrides_runpath=yes
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LDFLAGS=$save_LDFLAGS
12839 libdir=$save_libdir
12843 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12845 # This implies no fast_install, which is unacceptable.
12846 # Some rework will be needed to allow for fast_install
12847 # before this can be enabled.
12848 hardcode_into_libs=yes
12850 # Add ABI-specific directories to the system library path.
12851 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12853 # Append ld.so.conf contents to the search path
12854 if test -f /etc/ld.so.conf; then
12855 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' ' '`
12856 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12860 # We used to test for /lib/ld.so.1 and disable shared libraries on
12861 # powerpc, because MkLinux only supported shared libraries with the
12862 # GNU dynamic linker. Since this was broken with cross compilers,
12863 # most powerpc-linux boxes support dynamic linking these days and
12864 # people can always --disable-shared, the test was removed, and we
12865 # assume the GNU/Linux dynamic linker is in use.
12866 dynamic_linker='GNU/Linux ld.so'
12873 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12876 dynamic_linker='NetBSD (a.out) ld.so'
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 dynamic_linker='NetBSD ld.elf_so'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 shlibpath_overrides_runpath=yes
12884 hardcode_into_libs=yes
12888 version_type=linux # correct to gnu/linux during the next big refactor
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 shlibpath_var=LD_LIBRARY_PATH
12891 shlibpath_overrides_runpath=yes
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12899 soname_spec='${libname}${release}${shared_ext}$major'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 shlibpath_overrides_runpath=no
12902 hardcode_into_libs=yes
12903 dynamic_linker='ldqnx.so'
12908 sys_lib_dlsearch_path_spec="/usr/lib"
12910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12913 *) need_version=no ;;
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12920 openbsd2.[89] | openbsd2.[89].*)
12921 shlibpath_overrides_runpath=no
12924 shlibpath_overrides_runpath=yes
12928 shlibpath_overrides_runpath=yes
12933 libname_spec='$name'
12936 library_names_spec='$libname${shared_ext} $libname.a'
12937 dynamic_linker='OS/2 ld.exe'
12938 shlibpath_var=LIBPATH
12941 osf3* | osf4* | osf5*)
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12957 version_type=linux # correct to gnu/linux during the next big refactor
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961 soname_spec='${libname}${release}${shared_ext}$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath=yes
12964 hardcode_into_libs=yes
12965 # ldd complains unless libraries are executable
12966 postinstall_cmds='chmod +x $lib'
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 shlibpath_overrides_runpath=yes
12975 if test "$with_gnu_ld" = yes; then
12982 version_type=linux # correct to gnu/linux during the next big refactor
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 case $host_vendor in
12988 shlibpath_overrides_runpath=no
12990 runpath_var=LD_RUN_PATH
12998 shlibpath_overrides_runpath=no
12999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13005 if test -d /usr/nec ;then
13006 version_type=linux # correct to gnu/linux during the next big refactor
13007 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13008 soname_spec='$libname${shared_ext}.$major'
13009 shlibpath_var=LD_LIBRARY_PATH
13013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13014 version_type=freebsd-elf
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13018 soname_spec='${libname}${release}${shared_ext}$major'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 hardcode_into_libs=yes
13022 if test "$with_gnu_ld" = yes; then
13023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13032 sys_lib_dlsearch_path_spec='/usr/lib'
13036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13037 version_type=linux # correct to gnu/linux during the next big refactor
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 shlibpath_overrides_runpath=no
13043 hardcode_into_libs=yes
13047 version_type=linux # correct to gnu/linux during the next big refactor
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13058 $as_echo "$dynamic_linker" >&6; }
13059 test "$dynamic_linker" = no && can_build_shared=no
13061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13062 if test "$GCC" = yes; then
13063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13066 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13067 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13069 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13070 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13165 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13167 if test -n "$hardcode_libdir_flag_spec" ||
13168 test -n "$runpath_var" ||
13169 test "X$hardcode_automatic" = "Xyes" ; then
13171 # We can hardcode non-existent directories.
13172 if test "$hardcode_direct" != no &&
13173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13174 # have to relink, otherwise we might link with an installed library
13175 # when we should be linking with a yet-to-be-installed one
13176 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13177 test "$hardcode_minus_L" != no; then
13178 # Linking always hardcodes the temporary library directory.
13179 hardcode_action=relink
13181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13182 hardcode_action=immediate
13185 # We cannot hardcode anything, or else we can only hardcode existing
13187 hardcode_action=unsupported
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13190 $as_echo "$hardcode_action" >&6; }
13192 if test "$hardcode_action" = relink ||
13193 test "$inherit_rpath" = yes; then
13194 # Fast installation is not supported
13195 enable_fast_install=no
13196 elif test "$shlibpath_overrides_runpath" = yes ||
13197 test "$enable_shared" = no; then
13198 # Fast installation is not necessary
13199 enable_fast_install=needless
13207 if test "x$enable_dlopen" != xyes; then
13208 enable_dlopen=unknown
13209 enable_dlopen_self=unknown
13210 enable_dlopen_self_static=unknown
13217 lt_cv_dlopen="load_add_on"
13219 lt_cv_dlopen_self=yes
13222 mingw* | pw32* | cegcc*)
13223 lt_cv_dlopen="LoadLibrary"
13228 lt_cv_dlopen="dlopen"
13233 # if libdl is installed we need to link against it
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13236 if ${ac_cv_lib_dl_dlopen+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS=$LIBS
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_dl_dlopen=yes
13262 ac_cv_lib_dl_dlopen=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13270 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13274 lt_cv_dlopen="dyld"
13276 lt_cv_dlopen_self=yes
13283 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13284 if test "x$ac_cv_func_shl_load" = xyes; then :
13285 lt_cv_dlopen="shl_load"
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13288 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13289 if ${ac_cv_lib_dld_shl_load+:} false; then :
13290 $as_echo_n "(cached) " >&6
13292 ac_check_lib_save_LIBS=$LIBS
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13307 return shl_load ();
13312 if ac_fn_c_try_link "$LINENO"; then :
13313 ac_cv_lib_dld_shl_load=yes
13315 ac_cv_lib_dld_shl_load=no
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13322 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13323 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13324 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13326 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13327 if test "x$ac_cv_func_dlopen" = xyes; then :
13328 lt_cv_dlopen="dlopen"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13332 if ${ac_cv_lib_dl_dlopen+:} false; then :
13333 $as_echo_n "(cached) " >&6
13335 ac_check_lib_save_LIBS=$LIBS
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 ac_cv_lib_dl_dlopen=yes
13358 ac_cv_lib_dl_dlopen=no
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13362 LIBS=$ac_check_lib_save_LIBS
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13366 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13367 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13370 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13371 if ${ac_cv_lib_svld_dlopen+:} false; then :
13372 $as_echo_n "(cached) " >&6
13374 ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-lsvld $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13379 /* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
13394 if ac_fn_c_try_link "$LINENO"; then :
13395 ac_cv_lib_svld_dlopen=yes
13397 ac_cv_lib_svld_dlopen=no
13399 rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13404 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13405 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13409 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13410 if ${ac_cv_lib_dld_dld_link+:} false; then :
13411 $as_echo_n "(cached) " >&6
13413 ac_check_lib_save_LIBS=$LIBS
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13418 /* Override any GCC internal prototype to avoid an error.
13419 Use char because int might match the return type of a GCC
13420 builtin and then its argument prototype would still apply. */
13428 return dld_link ();
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 ac_cv_lib_dld_dld_link=yes
13436 ac_cv_lib_dld_dld_link=no
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13443 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13444 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13445 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13466 if test "x$lt_cv_dlopen" != xno; then
13472 case $lt_cv_dlopen in
13474 save_CPPFLAGS="$CPPFLAGS"
13475 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13477 save_LDFLAGS="$LDFLAGS"
13478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13481 LIBS="$lt_cv_dlopen_libs $LIBS"
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13484 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13485 if ${lt_cv_dlopen_self+:} false; then :
13486 $as_echo_n "(cached) " >&6
13488 if test "$cross_compiling" = yes; then :
13489 lt_cv_dlopen_self=cross
13491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13492 lt_status=$lt_dlunknown
13493 cat > conftest.$ac_ext <<_LT_EOF
13494 #line $LINENO "configure"
13495 #include "confdefs.h"
13504 # define LT_DLGLOBAL RTLD_GLOBAL
13507 # define LT_DLGLOBAL DL_GLOBAL
13509 # define LT_DLGLOBAL 0
13513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13514 find out it does not work in some platform. */
13515 #ifndef LT_DLLAZY_OR_NOW
13517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13520 # define LT_DLLAZY_OR_NOW DL_LAZY
13523 # define LT_DLLAZY_OR_NOW RTLD_NOW
13526 # define LT_DLLAZY_OR_NOW DL_NOW
13528 # define LT_DLLAZY_OR_NOW 0
13535 /* When -fvisbility=hidden is used, assume the code has been annotated
13536 correspondingly for the symbols needed. */
13537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13538 int fnord () __attribute__((visibility("default")));
13541 int fnord () { return 42; }
13544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13545 int status = $lt_dlunknown;
13549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13553 else puts (dlerror ());
13555 /* dlclose (self); */
13563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13564 (eval $ac_link) 2>&5
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13568 (./conftest; exit; ) >&5 2>/dev/null
13570 case x$lt_status in
13571 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13572 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13573 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13576 # compilation failed
13577 lt_cv_dlopen_self=no
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13585 $as_echo "$lt_cv_dlopen_self" >&6; }
13587 if test "x$lt_cv_dlopen_self" = xyes; then
13588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13590 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13591 if ${lt_cv_dlopen_self_static+:} false; then :
13592 $as_echo_n "(cached) " >&6
13594 if test "$cross_compiling" = yes; then :
13595 lt_cv_dlopen_self_static=cross
13597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13598 lt_status=$lt_dlunknown
13599 cat > conftest.$ac_ext <<_LT_EOF
13600 #line $LINENO "configure"
13601 #include "confdefs.h"
13610 # define LT_DLGLOBAL RTLD_GLOBAL
13613 # define LT_DLGLOBAL DL_GLOBAL
13615 # define LT_DLGLOBAL 0
13619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13620 find out it does not work in some platform. */
13621 #ifndef LT_DLLAZY_OR_NOW
13623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13626 # define LT_DLLAZY_OR_NOW DL_LAZY
13629 # define LT_DLLAZY_OR_NOW RTLD_NOW
13632 # define LT_DLLAZY_OR_NOW DL_NOW
13634 # define LT_DLLAZY_OR_NOW 0
13641 /* When -fvisbility=hidden is used, assume the code has been annotated
13642 correspondingly for the symbols needed. */
13643 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13644 int fnord () __attribute__((visibility("default")));
13647 int fnord () { return 42; }
13650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13651 int status = $lt_dlunknown;
13655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13659 else puts (dlerror ());
13661 /* dlclose (self); */
13669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13670 (eval $ac_link) 2>&5
13672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13674 (./conftest; exit; ) >&5 2>/dev/null
13676 case x$lt_status in
13677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13682 # compilation failed
13683 lt_cv_dlopen_self_static=no
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13694 CPPFLAGS="$save_CPPFLAGS"
13695 LDFLAGS="$save_LDFLAGS"
13700 case $lt_cv_dlopen_self in
13701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13702 *) enable_dlopen_self=unknown ;;
13705 case $lt_cv_dlopen_self_static in
13706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13707 *) enable_dlopen_self_static=unknown ;;
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13731 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13735 $as_echo "yes" >&6; }
13737 # FIXME - insert some real tests, host_os isn't really good enough
13740 if test -n "$STRIP" ; then
13741 striplib="$STRIP -x"
13742 old_striplib="$STRIP -S"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13744 $as_echo "yes" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747 $as_echo "no" >&6; }
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752 $as_echo "no" >&6; }
13768 # Report which library types will actually be built
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13772 $as_echo "$can_build_shared" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13775 $as_echo_n "checking whether to build shared libraries... " >&6; }
13776 test "$can_build_shared" = "no" && enable_shared=no
13778 # On AIX, shared libraries and static libraries use the same namespace, and
13779 # are all built from PIC.
13782 test "$enable_shared" = yes && enable_static=no
13783 if test -n "$RANLIB"; then
13784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13785 postinstall_cmds='$RANLIB $lib'
13790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13791 test "$enable_shared" = yes && enable_static=no
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13796 $as_echo "$enable_shared" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13799 $as_echo_n "checking whether to build static libraries... " >&6; }
13800 # Make sure either enable_shared or enable_static is yes.
13801 test "$enable_shared" = yes || enable_static=yes
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13803 $as_echo "$enable_static" >&6; }
13810 ac_cpp='$CPP $CPPFLAGS'
13811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13831 ac_config_commands="$ac_config_commands libtool"
13836 # Only expand once:
13841 # Checks for header files.
13842 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/un.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h
13844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13848 cat >>confdefs.h <<_ACEOF
13849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 # Using own tests for int64* because autoconf builtin only give 32bit.
13859 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13860 if test "x$ac_cv_type_int8_t" = xyes; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define int8_t signed char
13870 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13871 if test "x$ac_cv_type_int16_t" = xyes; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define int16_t short
13881 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13882 if test "x$ac_cv_type_int32_t" = xyes; then :
13886 cat >>confdefs.h <<_ACEOF
13887 #define int32_t int
13892 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13893 if test "x$ac_cv_type_int64_t" = xyes; then :
13897 cat >>confdefs.h <<_ACEOF
13898 #define int64_t long long
13903 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13904 if test "x$ac_cv_type_uint8_t" = xyes; then :
13908 cat >>confdefs.h <<_ACEOF
13909 #define uint8_t unsigned char
13914 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13915 if test "x$ac_cv_type_uint16_t" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define uint16_t unsigned short
13925 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13926 if test "x$ac_cv_type_uint32_t" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define uint32_t unsigned int
13936 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13937 if test "x$ac_cv_type_uint64_t" = xyes; then :
13941 cat >>confdefs.h <<_ACEOF
13942 #define uint64_t unsigned long long
13947 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13948 if test "x$ac_cv_type_size_t" = xyes; then :
13952 cat >>confdefs.h <<_ACEOF
13953 #define size_t unsigned int
13958 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13959 if test "x$ac_cv_type_ssize_t" = xyes; then :
13963 cat >>confdefs.h <<_ACEOF
13964 #define ssize_t int
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13970 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13971 if ${ac_cv_type_uid_t+:} false; then :
13972 $as_echo_n "(cached) " >&6
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 #include <sys/types.h>
13979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 $EGREP "uid_t" >/dev/null 2>&1; then :
13981 ac_cv_type_uid_t=yes
13983 ac_cv_type_uid_t=no
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13989 $as_echo "$ac_cv_type_uid_t" >&6; }
13990 if test $ac_cv_type_uid_t = no; then
13992 $as_echo "#define uid_t int" >>confdefs.h
13995 $as_echo "#define gid_t int" >>confdefs.h
13999 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14000 if test "x$ac_cv_type_pid_t" = xyes; then :
14004 cat >>confdefs.h <<_ACEOF
14010 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14011 if test "x$ac_cv_type_off_t" = xyes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define off_t long int
14021 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
14022 $ac_includes_default
14023 #ifdef HAVE_WINSOCK2_H
14024 # include <winsock2.h>
14028 if test "x$ac_cv_type_u_char" = xyes; then :
14032 $as_echo "#define u_char unsigned char" >>confdefs.h
14036 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
14037 $ac_includes_default
14038 #ifdef HAVE_SYS_RESOURCE_H
14039 # include <sys/resource.h>
14043 if test "x$ac_cv_type_rlim_t" = xyes; then :
14047 $as_echo "#define rlim_t unsigned long" >>confdefs.h
14052 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14053 $ac_includes_default
14054 #ifdef HAVE_SYS_SOCKET_H
14055 # include <sys/socket.h>
14057 #ifdef HAVE_WS2TCPIP_H
14058 # include <ws2tcpip.h>
14062 if test "x$ac_cv_type_socklen_t" = xyes; then :
14066 $as_echo "#define socklen_t int" >>confdefs.h
14070 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
14071 $ac_includes_default
14072 #ifdef HAVE_SYS_TYPES_H
14073 # include <sys/types.h>
14075 #ifdef HAVE_NETINET_IN_H
14076 # include <netinet/in.h>
14080 if test "x$ac_cv_type_in_addr_t" = xyes; then :
14084 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14088 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
14089 $ac_includes_default
14090 #ifdef HAVE_SYS_TYPES_H
14091 # include <sys/types.h>
14093 #ifdef HAVE_NETINET_IN_H
14094 # include <netinet/in.h>
14098 if test "x$ac_cv_type_in_port_t" = xyes; then :
14102 $as_echo "#define in_port_t uint16_t" >>confdefs.h
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
14107 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
14108 if test "$cross_compiling" = yes; then :
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
14110 $as_echo "cross-compile no" >&6; }
14112 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14114 case " $LIBOBJS " in
14115 *" memcmp.$ac_objext "* ) ;;
14116 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14126 #include <stdlib.h>
14127 #include <string.h>
14130 char a = 255, b = 0;
14131 if(memcmp(&a, &b, 1) < 0)
14137 if ac_fn_c_try_run "$LINENO"; then :
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14139 $as_echo "yes" >&6; }
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14144 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
14146 case " $LIBOBJS " in
14147 *" memcmp.$ac_objext "* ) ;;
14148 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14155 conftest.$ac_objext conftest.beam conftest.$ac_ext
14159 # The cast to long int works around a bug in the HP C Compiler
14160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14162 # This bug is HP SR number 8606223364.
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14164 $as_echo_n "checking size of time_t... " >&6; }
14165 if ${ac_cv_sizeof_time_t+:} false; then :
14166 $as_echo_n "(cached) " >&6
14168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14169 $ac_includes_default
14170 #ifdef TIME_WITH_SYS_TIME
14171 # include <sys/time.h>
14174 # ifdef HAVE_SYS_TIME_H
14175 # include <sys/time.h>
14184 if test "$ac_cv_type_time_t" = yes; then
14185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14187 as_fn_error 77 "cannot compute sizeof (time_t)
14188 See \`config.log' for more details" "$LINENO" 5; }
14190 ac_cv_sizeof_time_t=0
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14196 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14200 cat >>confdefs.h <<_ACEOF
14201 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14206 # add option to disable the evil rpath
14208 # Check whether --enable-rpath was given.
14209 if test "${enable_rpath+set}" = set; then :
14210 enableval=$enable_rpath; enable_rpath=$enableval
14215 if test "x$enable_rpath" = xno; then
14216 ac_config_commands="$ac_config_commands disable-rpath"
14222 # check to see if libraries are needed for these functions.
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14224 $as_echo_n "checking for library containing inet_pton... " >&6; }
14225 if ${ac_cv_search_inet_pton+:} false; then :
14226 $as_echo_n "(cached) " >&6
14228 ac_func_search_save_LIBS=$LIBS
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14232 /* Override any GCC internal prototype to avoid an error.
14233 Use char because int might match the return type of a GCC
14234 builtin and then its argument prototype would still apply. */
14242 return inet_pton ();
14247 for ac_lib in '' nsl; do
14248 if test -z "$ac_lib"; then
14249 ac_res="none required"
14252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 ac_cv_search_inet_pton=$ac_res
14257 rm -f core conftest.err conftest.$ac_objext \
14259 if ${ac_cv_search_inet_pton+:} false; then :
14263 if ${ac_cv_search_inet_pton+:} false; then :
14266 ac_cv_search_inet_pton=no
14268 rm conftest.$ac_ext
14269 LIBS=$ac_func_search_save_LIBS
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14272 $as_echo "$ac_cv_search_inet_pton" >&6; }
14273 ac_res=$ac_cv_search_inet_pton
14274 if test "$ac_res" != no; then :
14275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14280 $as_echo_n "checking for library containing socket... " >&6; }
14281 if ${ac_cv_search_socket+:} false; then :
14282 $as_echo_n "(cached) " >&6
14284 ac_func_search_save_LIBS=$LIBS
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14303 for ac_lib in '' socket; do
14304 if test -z "$ac_lib"; then
14305 ac_res="none required"
14308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 ac_cv_search_socket=$ac_res
14313 rm -f core conftest.err conftest.$ac_objext \
14315 if ${ac_cv_search_socket+:} false; then :
14319 if ${ac_cv_search_socket+:} false; then :
14322 ac_cv_search_socket=no
14324 rm conftest.$ac_ext
14325 LIBS=$ac_func_search_save_LIBS
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14328 $as_echo "$ac_cv_search_socket" >&6; }
14329 ac_res=$ac_cv_search_socket
14330 if test "$ac_res" != no; then :
14331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14336 # check wether strptime also works
14338 # check some functions of the OS before linking libs (while still runnable).
14339 for ac_header in unistd.h
14341 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14342 if test "x$ac_cv_header_unistd_h" = xyes; then :
14343 cat >>confdefs.h <<_ACEOF
14344 #define HAVE_UNISTD_H 1
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14352 $as_echo_n "checking for working chown... " >&6; }
14353 if ${ac_cv_func_chown_works+:} false; then :
14354 $as_echo_n "(cached) " >&6
14356 if test "$cross_compiling" = yes; then :
14357 ac_cv_func_chown_works=no
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 $ac_includes_default
14367 char *f = "conftest.chown";
14368 struct stat before, after;
14370 if (creat (f, 0600) < 0)
14372 if (stat (f, &before) < 0)
14374 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14376 if (stat (f, &after) < 0)
14378 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14384 if ac_fn_c_try_run "$LINENO"; then :
14385 ac_cv_func_chown_works=yes
14387 ac_cv_func_chown_works=no
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14390 conftest.$ac_objext conftest.beam conftest.$ac_ext
14393 rm -f conftest.chown
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14397 $as_echo "$ac_cv_func_chown_works" >&6; }
14398 if test $ac_cv_func_chown_works = yes; then
14400 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14404 for ac_header in vfork.h
14406 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14407 if test "x$ac_cv_header_vfork_h" = xyes; then :
14408 cat >>confdefs.h <<_ACEOF
14409 #define HAVE_VFORK_H 1
14416 for ac_func in fork vfork
14418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14421 cat >>confdefs.h <<_ACEOF
14422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14428 if test "x$ac_cv_func_fork" = xyes; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14430 $as_echo_n "checking for working fork... " >&6; }
14431 if ${ac_cv_func_fork_works+:} false; then :
14432 $as_echo_n "(cached) " >&6
14434 if test "$cross_compiling" = yes; then :
14435 ac_cv_func_fork_works=cross
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 $ac_includes_default
14444 /* By Ruediger Kuhlmann. */
14445 return fork () < 0;
14451 if ac_fn_c_try_run "$LINENO"; then :
14452 ac_cv_func_fork_works=yes
14454 ac_cv_func_fork_works=no
14456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14457 conftest.$ac_objext conftest.beam conftest.$ac_ext
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14462 $as_echo "$ac_cv_func_fork_works" >&6; }
14465 ac_cv_func_fork_works=$ac_cv_func_fork
14467 if test "x$ac_cv_func_fork_works" = xcross; then
14469 *-*-amigaos* | *-*-msdosdjgpp*)
14470 # Override, as these systems have only a dummy fork() stub
14471 ac_cv_func_fork_works=no
14474 ac_cv_func_fork_works=yes
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14478 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14480 ac_cv_func_vfork_works=$ac_cv_func_vfork
14481 if test "x$ac_cv_func_vfork" = xyes; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14483 $as_echo_n "checking for working vfork... " >&6; }
14484 if ${ac_cv_func_vfork_works+:} false; then :
14485 $as_echo_n "(cached) " >&6
14487 if test "$cross_compiling" = yes; then :
14488 ac_cv_func_vfork_works=cross
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 /* Thanks to Paul Eggert for this test. */
14493 $ac_includes_default
14494 #include <sys/wait.h>
14495 #ifdef HAVE_VFORK_H
14496 # include <vfork.h>
14498 /* On some sparc systems, changes by the child to local and incoming
14499 argument registers are propagated back to the parent. The compiler
14500 is told about this with #include <vfork.h>, but some compilers
14501 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14502 static variable whose address is put into a register that is
14503 clobbered by the vfork. */
14506 sparc_address_test (int arg)
14508 sparc_address_test (arg) int arg;
14511 static pid_t child;
14529 pid_t parent = getpid ();
14532 sparc_address_test (0);
14537 /* Here is another test for sparc vfork register problems. This
14538 test uses lots of local variables, at least as many local
14539 variables as main has allocated so far including compiler
14540 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14541 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14542 reuse the register of parent for one of the local variables,
14543 since it will think that parent can't possibly be used any more
14544 in this routine. Assigning to the local variable will thus
14545 munge parent in the parent process. */
14547 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14548 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14549 /* Convince the compiler that p..p7 are live; otherwise, it might
14550 use the same hardware register for all 8 local variables. */
14551 if (p != p1 || p != p2 || p != p3 || p != p4
14552 || p != p5 || p != p6 || p != p7)
14555 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14556 from child file descriptors. If the child closes a descriptor
14557 before it execs or exits, this munges the parent's descriptor
14558 as well. Test for this by closing stdout in the child. */
14559 _exit(close(fileno(stdout)) != 0);
14564 while (wait(&status) != child)
14567 /* Was there some problem with vforking? */
14570 /* Did the child fail? (This shouldn't happen.) */
14573 /* Did the vfork/compiler bug occur? */
14574 || parent != getpid()
14576 /* Did the file descriptor bug occur? */
14577 || fstat(fileno(stdout), &st) != 0
14582 if ac_fn_c_try_run "$LINENO"; then :
14583 ac_cv_func_vfork_works=yes
14585 ac_cv_func_vfork_works=no
14587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14588 conftest.$ac_objext conftest.beam conftest.$ac_ext
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14593 $as_echo "$ac_cv_func_vfork_works" >&6; }
14596 if test "x$ac_cv_func_fork_works" = xcross; then
14597 ac_cv_func_vfork_works=$ac_cv_func_vfork
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14599 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14602 if test "x$ac_cv_func_vfork_works" = xyes; then
14604 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14608 $as_echo "#define vfork fork" >>confdefs.h
14611 if test "x$ac_cv_func_fork_works" = xyes; then
14613 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14618 $as_echo_n "checking return type of signal handlers... " >&6; }
14619 if ${ac_cv_type_signal+:} false; then :
14620 $as_echo_n "(cached) " >&6
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <sys/types.h>
14625 #include <signal.h>
14630 return *(signal (0, 0)) (0) == 1;
14635 if ac_fn_c_try_compile "$LINENO"; then :
14636 ac_cv_type_signal=int
14638 ac_cv_type_signal=void
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14643 $as_echo "$ac_cv_type_signal" >&6; }
14645 cat >>confdefs.h <<_ACEOF
14646 #define RETSIGTYPE $ac_cv_type_signal
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14651 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14652 if ${ac_cv_sys_largefile_source+:} false; then :
14653 $as_echo_n "(cached) " >&6
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14658 #include <sys/types.h> /* for off_t */
14663 int (*fp) (FILE *, off_t, int) = fseeko;
14664 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14669 if ac_fn_c_try_link "$LINENO"; then :
14670 ac_cv_sys_largefile_source=no; break
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14676 #define _LARGEFILE_SOURCE 1
14677 #include <sys/types.h> /* for off_t */
14682 int (*fp) (FILE *, off_t, int) = fseeko;
14683 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14688 if ac_fn_c_try_link "$LINENO"; then :
14689 ac_cv_sys_largefile_source=1; break
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 ac_cv_sys_largefile_source=unknown
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14698 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14699 case $ac_cv_sys_largefile_source in #(
14702 cat >>confdefs.h <<_ACEOF
14703 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14709 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14710 # in glibc 2.1.3, but that breaks too many other things.
14711 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14712 if test $ac_cv_sys_largefile_source != unknown; then
14714 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14719 # Check whether --enable-largefile was given.
14720 if test "${enable_largefile+set}" = set; then :
14721 enableval=$enable_largefile;
14724 if test "$enable_largefile" != no; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14727 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14728 if ${ac_cv_sys_largefile_CC+:} false; then :
14729 $as_echo_n "(cached) " >&6
14731 ac_cv_sys_largefile_CC=no
14732 if test "$GCC" != yes; then
14735 # IRIX 6.2 and later do not support large files by default,
14736 # so use the C compiler's -n32 option if that helps.
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 #include <sys/types.h>
14740 /* Check that off_t can represent 2**63 - 1 correctly.
14741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14742 since some C++ compilers masquerading as C compilers
14743 incorrectly reject 9223372036854775807. */
14744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14746 && LARGE_OFF_T % 2147483647 == 1)
14756 if ac_fn_c_try_compile "$LINENO"; then :
14759 rm -f core conftest.err conftest.$ac_objext
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 ac_cv_sys_largefile_CC=' -n32'; break
14764 rm -f core conftest.err conftest.$ac_objext
14768 rm -f conftest.$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14772 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14773 if test "$ac_cv_sys_largefile_CC" != no; then
14774 CC=$CC$ac_cv_sys_largefile_CC
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14778 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14779 if ${ac_cv_sys_file_offset_bits+:} false; then :
14780 $as_echo_n "(cached) " >&6
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <sys/types.h>
14786 /* Check that off_t can represent 2**63 - 1 correctly.
14787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14788 since some C++ compilers masquerading as C compilers
14789 incorrectly reject 9223372036854775807. */
14790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14792 && LARGE_OFF_T % 2147483647 == 1)
14802 if ac_fn_c_try_compile "$LINENO"; then :
14803 ac_cv_sys_file_offset_bits=no; break
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 #define _FILE_OFFSET_BITS 64
14809 #include <sys/types.h>
14810 /* Check that off_t can represent 2**63 - 1 correctly.
14811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14812 since some C++ compilers masquerading as C compilers
14813 incorrectly reject 9223372036854775807. */
14814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14816 && LARGE_OFF_T % 2147483647 == 1)
14826 if ac_fn_c_try_compile "$LINENO"; then :
14827 ac_cv_sys_file_offset_bits=64; break
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 ac_cv_sys_file_offset_bits=unknown
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14835 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14836 case $ac_cv_sys_file_offset_bits in #(
14839 cat >>confdefs.h <<_ACEOF
14840 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14845 if test $ac_cv_sys_file_offset_bits = unknown; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14847 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14848 if ${ac_cv_sys_large_files+:} false; then :
14849 $as_echo_n "(cached) " >&6
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 #include <sys/types.h>
14855 /* Check that off_t can represent 2**63 - 1 correctly.
14856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14857 since some C++ compilers masquerading as C compilers
14858 incorrectly reject 9223372036854775807. */
14859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14861 && LARGE_OFF_T % 2147483647 == 1)
14871 if ac_fn_c_try_compile "$LINENO"; then :
14872 ac_cv_sys_large_files=no; break
14874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 #define _LARGE_FILES 1
14878 #include <sys/types.h>
14879 /* Check that off_t can represent 2**63 - 1 correctly.
14880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14881 since some C++ compilers masquerading as C compilers
14882 incorrectly reject 9223372036854775807. */
14883 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14885 && LARGE_OFF_T % 2147483647 == 1)
14895 if ac_fn_c_try_compile "$LINENO"; then :
14896 ac_cv_sys_large_files=1; break
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 ac_cv_sys_large_files=unknown
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14904 $as_echo "$ac_cv_sys_large_files" >&6; }
14905 case $ac_cv_sys_large_files in #(
14908 cat >>confdefs.h <<_ACEOF
14909 #define _LARGE_FILES $ac_cv_sys_large_files
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14923 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14924 cache=_D_LARGEFILE_SOURCE_1
14925 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14926 $as_echo_n "(cached) " >&6
14932 int a = fseeko(stdin, 0, 0);
14936 echo 'void f(){}' >>conftest.c
14937 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14938 eval "cv_prog_cc_flag_needed_$cache=no"
14941 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14942 eval "cv_prog_cc_flag_needed_$cache=yes"
14944 eval "cv_prog_cc_flag_needed_$cache=fail"
14945 #echo 'Test with flag fails too!'
14947 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14948 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14953 rm -f conftest conftest.c conftest.o
14957 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14959 $as_echo "yes" >&6; }
14961 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14963 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965 $as_echo "no" >&6; }
14966 #echo 'Test with flag is no!'
14968 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14969 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14975 $as_echo "failed" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14984 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14985 if echo $target | grep mingw32 >/dev/null; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14987 $as_echo "no (windows)" >&6; }
14989 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14992 if test "$cross_compiling" = yes; then :
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14995 $as_echo "crosscompile(yes)" >&6; }
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15003 #include <string.h>
15004 #include <stdlib.h>
15007 #ifdef HAVE_SYS_TYPES_H
15008 #include <sys/types.h>
15010 #ifdef HAVE_SYS_SOCKET_H
15011 #include <sys/socket.h>
15013 #ifdef HAVE_NETINET_IN_H
15014 #include <netinet/in.h>
15016 #ifdef HAVE_ARPA_INET_H
15017 #include <arpa/inet.h>
15019 #ifdef HAVE_UNISTD_H
15020 #include <unistd.h>
15032 struct sockaddr_in a;
15033 /* test if select and nonblocking reads work well together */
15035 fork child to send 10 messages.
15037 then try to nonblocking read the 10 messages
15038 then, nonblocking read must give EAGAIN
15041 port = 12345 + (time(0)%32);
15042 sfd = socket(PF_INET, SOCK_DGRAM, 0);
15047 memset(&a, 0, sizeof(a));
15048 a.sin_family = AF_INET;
15049 a.sin_port = htons(port);
15050 a.sin_addr.s_addr = inet_addr("127.0.0.1");
15051 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15055 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
15060 cfd = socket(PF_INET, SOCK_DGRAM, 0);
15062 perror("client socket");
15066 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
15067 perror("client bind");
15070 a.sin_port = htons(port);
15072 /* no handler, causes exit in 10 seconds */
15075 /* send and receive on the socket */
15076 if((p=fork()) == 0) {
15077 for(i=0; i<num; i++) {
15078 if(sendto(cfd, &i, sizeof(i), 0,
15079 (struct sockaddr*)&a, sizeof(a)) < 0) {
15093 FD_SET(sfd, &rset);
15094 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
15100 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
15101 if(errno == EAGAIN)
15108 /* now we want to get EAGAIN: nonblocking goodness */
15110 recv(sfd, &x, sizeof(x), 0);
15111 if(errno != EAGAIN) {
15112 perror("trying to recv again");
15115 /* EAGAIN encountered */
15124 if ac_fn_c_try_run "$LINENO"; then :
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15127 $as_echo "yes" >&6; }
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15134 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
15138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15139 conftest.$ac_objext conftest.beam conftest.$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
15146 $as_echo_n "checking whether mkdir has one arg... " >&6; }
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15151 #include <unistd.h>
15152 #ifdef HAVE_WINSOCK2_H
15153 #include <winsock2.h>
15155 #ifdef HAVE_SYS_STAT_H
15156 #include <sys/stat.h>
15163 (void)mkdir("directory");
15169 if ac_fn_c_try_compile "$LINENO"; then :
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15171 $as_echo "yes" >&6; }
15173 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15178 $as_echo "no" >&6; }
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 for ac_func in strptime
15185 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
15186 if test "x$ac_cv_func_strptime" = xyes; then :
15187 cat >>confdefs.h <<_ACEOF
15188 #define HAVE_STRPTIME 1
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
15192 $as_echo_n "checking whether strptime works... " >&6; }
15193 if test c${cross_compiling} = cno; then
15194 if test "$cross_compiling" = yes; then :
15195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15197 as_fn_error $? "cannot run test program while cross compiling
15198 See \`config.log' for more details" "$LINENO" 5; }
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 #define _XOPEN_SOURCE 600
15205 int main(void) { struct tm tm; char *res;
15206 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);
15207 if (!res) return 2;
15208 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
15209 if (!res) return 1; return 0; }
15212 if ac_fn_c_try_run "$LINENO"; then :
15213 eval "ac_cv_c_strptime_works=yes"
15215 eval "ac_cv_c_strptime_works=no"
15217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15218 conftest.$ac_objext conftest.beam conftest.$ac_ext
15222 eval "ac_cv_c_strptime_works=maybe"
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
15225 $as_echo "$ac_cv_c_strptime_works" >&6; }
15226 if test $ac_cv_c_strptime_works = no; then
15227 case " $LIBOBJS " in
15228 *" strptime.$ac_objext "* ) ;;
15229 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15235 cat >>confdefs.h <<_ACEOF
15236 #define STRPTIME_WORKS 1
15242 case " $LIBOBJS " in
15243 *" strptime.$ac_objext "* ) ;;
15244 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
15252 # set memory allocation checking if requested
15253 # Check whether --enable-alloc-checks was given.
15254 if test "${enable_alloc_checks+set}" = set; then :
15255 enableval=$enable_alloc_checks;
15258 # Check whether --enable-alloc-lite was given.
15259 if test "${enable_alloc_lite+set}" = set; then :
15260 enableval=$enable_alloc_lite;
15263 # Check whether --enable-alloc-nonregional was given.
15264 if test "${enable_alloc_nonregional+set}" = set; then :
15265 enableval=$enable_alloc_nonregional;
15268 if test x_$enable_alloc_nonregional = x_yes; then
15270 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
15273 if test x_$enable_alloc_checks = x_yes; then
15275 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
15278 if test x_$enable_alloc_lite = x_yes; then
15280 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15285 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15286 if test "$cross_compiling" = yes; then :
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
15288 $as_echo "no (crosscompile)" >&6; }
15289 case " $LIBOBJS " in
15290 *" malloc.$ac_objext "* ) ;;
15291 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15296 cat >>confdefs.h <<_ACEOF
15297 #define malloc rpl_malloc_unbound
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15303 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15304 #include <stdlib.h>
15312 if(malloc(0) != 0) return 1;
15318 if ac_fn_c_try_run "$LINENO"; then :
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320 $as_echo "no" >&6; }
15321 case " $LIBOBJS " in
15322 *" malloc.$ac_objext "* ) ;;
15323 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15328 cat >>confdefs.h <<_ACEOF
15329 #define malloc rpl_malloc_unbound
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334 $as_echo "yes" >&6; }
15336 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15340 conftest.$ac_objext conftest.beam conftest.$ac_ext
15347 # check windows threads (we use them, not pthreads, on windows).
15348 if test "$on_mingw" = "yes"; then
15349 # check windows threads
15350 for ac_header in windows.h
15352 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15354 if test "x$ac_cv_header_windows_h" = xyes; then :
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_WINDOWS_H 1
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15364 $as_echo_n "checking for CreateThread... " >&6; }
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15368 #ifdef HAVE_WINDOWS_H
15369 #include <windows.h>
15376 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15384 $as_echo "yes" >&6; }
15386 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391 $as_echo "no" >&6; }
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 # not on mingw, check thread libraries.
15399 # check for thread library.
15400 # check this first, so that the pthread lib does not get linked in via
15401 # libssl or libpython, and thus distorts the tests, and we end up using
15402 # the non-threadsafe C libraries.
15404 # Check whether --with-pthreads was given.
15405 if test "${with_pthreads+set}" = set; then :
15406 withval=$with_pthreads;
15411 ub_have_pthreads=no
15412 if test x_$withval != x_no; then
15416 ac_cpp='$CPP $CPPFLAGS'
15417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423 # We used to check for pthread.h first, but this fails if pthread.h
15424 # requires special compiler flags (e.g. on True64 or Sequent).
15425 # It gets checked for in the link test anyway.
15427 # First of all, check if the user has set any of the PTHREAD_LIBS,
15428 # etcetera environment variables, and if threads linking works using
15430 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15431 save_CFLAGS="$CFLAGS"
15432 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15434 LIBS="$PTHREAD_LIBS $LIBS"
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15436 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15440 /* Override any GCC internal prototype to avoid an error.
15441 Use char because int might match the return type of a GCC
15442 builtin and then its argument prototype would still apply. */
15446 char pthread_join ();
15450 return pthread_join ();
15455 if ac_fn_c_try_link "$LINENO"; then :
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15461 $as_echo "$ax_pthread_ok" >&6; }
15462 if test x"$ax_pthread_ok" = xno; then
15467 CFLAGS="$save_CFLAGS"
15470 # We must check for the threads library under a number of different
15471 # names; the ordering is very important because some systems
15472 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15473 # libraries is broken (non-POSIX).
15475 # Create a list of thread flags to try. Items starting with a "-" are
15476 # C compiler flags, and other items are library names, except for "none"
15477 # which indicates that we try without any flags at all, and "pthread-config"
15478 # which is a program returning the flags for the Pth emulation library.
15480 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15482 # The ordering *is* (sometimes) important. Some notes on the
15483 # individual items follow:
15485 # pthreads: AIX (must check this before -lpthread)
15486 # none: in case threads are in libc; should be tried before -Kthread and
15487 # other compiler flags to prevent continual compiler warnings
15488 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15489 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15490 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15491 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15492 # -pthreads: Solaris/gcc
15493 # -mthreads: Mingw32/gcc, Lynx/gcc
15494 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15495 # doesn't hurt to check since this sometimes defines pthreads too;
15496 # also defines -D_REENTRANT)
15497 # ... -mt is also the pthreads flag for HP/aCC
15498 # pthread: Linux, etcetera
15499 # --thread-safe: KAI C++
15500 # pthread-config: use pthread-config program (for GNU Pth library)
15505 # On Solaris (at least, for some versions), libc contains stubbed
15506 # (non-functional) versions of the pthreads routines, so link-based
15507 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15508 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15509 # a function called by this macro, so we could check for that, but
15510 # who knows whether they'll stub that too in a future libc.) So,
15511 # we'll just look for -pthreads and -lpthread first:
15513 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15517 ax_pthread_flags="-pthread $ax_pthread_flags"
15521 if test x"$ax_pthread_ok" = xno; then
15522 for flag in $ax_pthread_flags; do
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15527 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15532 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15533 PTHREAD_CFLAGS="$flag"
15537 # Extract the first word of "pthread-config", so it can be a program name with args.
15538 set dummy pthread-config; ac_word=$2
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15540 $as_echo_n "checking for $ac_word... " >&6; }
15541 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15542 $as_echo_n "(cached) " >&6
15544 if test -n "$ax_pthread_config"; then
15545 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548 for as_dir in $PATH
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554 ac_cv_prog_ax_pthread_config="yes"
15555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15562 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15565 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15566 if test -n "$ax_pthread_config"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15568 $as_echo "$ax_pthread_config" >&6; }
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571 $as_echo "no" >&6; }
15575 if test x"$ax_pthread_config" = xno; then continue; fi
15576 PTHREAD_CFLAGS="`pthread-config --cflags`"
15577 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15582 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15583 PTHREAD_LIBS="-l$flag"
15588 save_CFLAGS="$CFLAGS"
15589 LIBS="$PTHREAD_LIBS $LIBS"
15590 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15592 # Check for various functions. We must include pthread.h,
15593 # since some functions may be macros. (On the Sequent, we
15594 # need a special flag -Kthread to make this header compile.)
15595 # We check for pthread_join because it is in -lpthread on IRIX
15596 # while pthread_create is in libc. We check for pthread_attr_init
15597 # due to DEC craziness with -lpthreads. We check for
15598 # pthread_cleanup_push because it is one of the few pthread
15599 # functions on Solaris that doesn't have a non-functional libc stub.
15600 # We try pthread_create on general principles.
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <pthread.h>
15604 static void routine(void *a) { *((int*)a) = 0; }
15605 static void *start_routine(void *a) { return a; }
15609 pthread_t th; pthread_attr_t attr;
15610 pthread_create(&th, 0, start_routine, 0);
15611 pthread_join(th, 0);
15612 pthread_attr_init(&attr);
15613 pthread_cleanup_push(routine, 0);
15614 pthread_cleanup_pop(0) /* ; */
15619 if ac_fn_c_try_link "$LINENO"; then :
15622 rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15626 CFLAGS="$save_CFLAGS"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15629 $as_echo "$ax_pthread_ok" >&6; }
15630 if test "x$ax_pthread_ok" = xyes; then
15639 # Various other checks:
15640 if test "x$ax_pthread_ok" = xyes; then
15642 LIBS="$PTHREAD_LIBS $LIBS"
15643 save_CFLAGS="$CFLAGS"
15644 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15646 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15648 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15650 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 #include <pthread.h>
15657 int attr = $attr; return attr /* ; */
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 attr_name=$attr; break
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15669 $as_echo "$attr_name" >&6; }
15670 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define PTHREAD_CREATE_JOINABLE $attr_name
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15679 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15682 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15683 osf* | hpux*) flag="-D_REENTRANT";;
15685 if test "$GCC" = "yes"; then
15686 flag="-D_REENTRANT"
15688 flag="-mt -D_REENTRANT"
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15693 $as_echo "${flag}" >&6; }
15694 if test "x$flag" != xno; then
15695 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15699 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15700 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15701 $as_echo_n "(cached) " >&6
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15707 #include <pthread.h>
15711 int i = PTHREAD_PRIO_INHERIT;
15716 if ac_fn_c_try_link "$LINENO"; then :
15717 ax_cv_PTHREAD_PRIO_INHERIT=yes
15719 ax_cv_PTHREAD_PRIO_INHERIT=no
15721 rm -f core conftest.err conftest.$ac_objext \
15722 conftest$ac_exeext conftest.$ac_ext
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15726 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15727 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15729 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15734 CFLAGS="$save_CFLAGS"
15736 # More AIX lossage: compile with *_r variant
15737 if test "x$GCC" != xyes; then
15741 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15742 #handle absolute path differently from PATH based program lookup
15745 if as_fn_executable_p ${CC}_r; then :
15746 PTHREAD_CC="${CC}_r"
15749 for ac_prog in ${CC}_r
15751 # Extract the first word of "$ac_prog", so it can be a program name with args.
15752 set dummy $ac_prog; ac_word=$2
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15754 $as_echo_n "checking for $ac_word... " >&6; }
15755 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15756 $as_echo_n "(cached) " >&6
15758 if test -n "$PTHREAD_CC"; then
15759 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15765 test -z "$as_dir" && as_dir=.
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_PTHREAD_CC="$ac_prog"
15769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15778 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15779 if test -n "$PTHREAD_CC"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15781 $as_echo "$PTHREAD_CC" >&6; }
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15788 test -n "$PTHREAD_CC" && break
15790 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15801 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15807 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15808 if test x"$ax_pthread_ok" = xyes; then
15811 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15813 LIBS="$PTHREAD_LIBS $LIBS"
15814 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15816 ub_have_pthreads=yes
15817 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15819 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_PTHREAD_SPINLOCK_T 1
15827 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15829 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15831 cat >>confdefs.h <<_ACEOF
15832 #define HAVE_PTHREAD_RWLOCK_T 1
15845 ac_cpp='$CPP $CPPFLAGS'
15846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15853 # check solaris thread library
15855 # Check whether --with-solaris-threads was given.
15856 if test "${with_solaris_threads+set}" = set; then :
15857 withval=$with_solaris_threads;
15862 ub_have_sol_threads=no
15863 if test x_$withval != x_no; then
15864 if test x_$ub_have_pthreads != x_no; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15866 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15869 $as_echo_n "checking for library containing thr_create... " >&6; }
15870 if ${ac_cv_search_thr_create+:} false; then :
15871 $as_echo_n "(cached) " >&6
15873 ac_func_search_save_LIBS=$LIBS
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15877 /* Override any GCC internal prototype to avoid an error.
15878 Use char because int might match the return type of a GCC
15879 builtin and then its argument prototype would still apply. */
15883 char thr_create ();
15887 return thr_create ();
15892 for ac_lib in '' thread; do
15893 if test -z "$ac_lib"; then
15894 ac_res="none required"
15897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15899 if ac_fn_c_try_link "$LINENO"; then :
15900 ac_cv_search_thr_create=$ac_res
15902 rm -f core conftest.err conftest.$ac_objext \
15904 if ${ac_cv_search_thr_create+:} false; then :
15908 if ${ac_cv_search_thr_create+:} false; then :
15911 ac_cv_search_thr_create=no
15913 rm conftest.$ac_ext
15914 LIBS=$ac_func_search_save_LIBS
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15917 $as_echo "$ac_cv_search_thr_create" >&6; }
15918 ac_res=$ac_cv_search_thr_create
15919 if test "$ac_res" != no; then :
15920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15923 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15929 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15930 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15931 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15932 $as_echo_n "(cached) " >&6
15935 echo 'void f(void){}' >conftest.c
15936 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15937 eval "cv_prog_cc_flag_$cache=yes"
15939 eval "cv_prog_cc_flag_$cache=no"
15941 rm -f conftest conftest.o conftest.c
15945 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15947 $as_echo "yes" >&6; }
15949 CFLAGS="$CFLAGS -mt"
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15952 $as_echo "no" >&6; }
15954 CFLAGS="$CFLAGS -D_REENTRANT"
15957 ub_have_sol_threads=yes
15961 as_fn_error $? "no solaris threads found." "$LINENO" 5
15968 fi # end of non-mingw check of thread libraries
15970 # Check for PyUnbound
15972 # Check whether --with-pyunbound was given.
15973 if test "${with_pyunbound+set}" = set; then :
15974 withval=$with_pyunbound;
15981 ub_with_pyunbound=no
15982 if test x_$withval != x_no; then
15983 ub_with_pyunbound=yes
15987 # Check for Python module
15989 # Check whether --with-pythonmodule was given.
15990 if test "${with_pythonmodule+set}" = set; then :
15991 withval=$with_pythonmodule;
15997 ub_with_pythonmod=no
15998 if test x_$withval != x_no; then
15999 ub_with_pythonmod=yes
16003 # Check for Python & SWIG only on PyUnbound or PyModule
16004 if test x_$ub_test_python != x_no; then
16008 ac_save_LIBS="$LIBS"
16010 # Allow the use of a (user set) custom python version
16014 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
16015 set dummy python$PYTHON_VERSION; ac_word=$2
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16017 $as_echo_n "checking for $ac_word... " >&6; }
16018 if ${ac_cv_path_PYTHON+:} false; then :
16019 $as_echo_n "(cached) " >&6
16023 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16027 for as_dir in $PATH
16030 test -z "$as_dir" && as_dir=.
16031 for ac_exec_ext in '' $ac_executable_extensions; do
16032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16033 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16044 PYTHON=$ac_cv_path_PYTHON
16045 if test -n "$PYTHON"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16047 $as_echo "$PYTHON" >&6; }
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16050 $as_echo "no" >&6; }
16054 if test -z "$PYTHON"; then
16055 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
16059 if test -z "$PYTHON_VERSION"; then
16060 PYTHON_VERSION=`$PYTHON -c "import sys; \
16061 print(sys.version.split()[0])"`
16065 # Check if you have distutils, else fail
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
16068 $as_echo_n "checking for the distutils Python package... " >&6; }
16069 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
16070 if test -z "$ac_distutils_result"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16072 $as_echo "yes" >&6; }
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16075 $as_echo "no" >&6; }
16076 as_fn_error $? "cannot import Python module \"distutils\".
16077 Please check your Python installation. The error was:
16078 $ac_distutils_result" "$LINENO" 5
16083 # Check for Python include path
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
16086 $as_echo_n "checking for Python include path... " >&6; }
16087 if test -z "$PYTHON_CPPFLAGS"; then
16088 python_path=`$PYTHON -c "import distutils.sysconfig; \
16089 print(distutils.sysconfig.get_python_inc());"`
16090 if test -n "${python_path}"; then
16091 python_path="-I$python_path"
16093 PYTHON_CPPFLAGS=$python_path
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16096 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16100 # Check for Python library path
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
16103 $as_echo_n "checking for Python library path... " >&6; }
16104 if test -z "$PYTHON_LDFLAGS"; then
16105 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
16106 print(get_config_var('BLDLIBRARY'));"`
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16109 $as_echo "$PYTHON_LDFLAGS" >&6; }
16113 # Check for site packages
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
16116 $as_echo_n "checking for Python site-packages path... " >&6; }
16117 if test -z "$PYTHON_SITE_PKG"; then
16118 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
16119 print(distutils.sysconfig.get_python_lib(1,0));"`
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
16122 $as_echo "$PYTHON_SITE_PKG" >&6; }
16126 # final check to see if everything compiles alright
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
16129 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136 # save current global flags
16137 ac_save_LIBS="$LIBS"
16138 ac_save_CPPFLAGS="$CPPFLAGS"
16140 LIBS="$LIBS $PYTHON_LDFLAGS"
16141 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16145 #include <Python.h>
16157 if ac_fn_c_try_link "$LINENO"; then :
16162 rm -f core conftest.err conftest.$ac_objext \
16163 conftest$ac_exeext conftest.$ac_ext
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
16166 $as_echo "$pythonexists" >&6; }
16168 if test ! "$pythonexists" = "yes"; then
16170 Could not link test program to Python. Maybe the main Python library has been
16171 installed in some non-standard library path. If so, pass it to configure,
16172 via the LDFLAGS environment variable.
16173 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
16174 ============================================================================
16176 You probably have to install the development version of the Python package
16177 for your distribution. The exact name of this package varies among them.
16178 ============================================================================
16183 ac_cpp='$CPP $CPPFLAGS'
16184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16188 # turn back to default flags
16189 CPPFLAGS="$ac_save_CPPFLAGS"
16190 LIBS="$ac_save_LIBS"
16196 if test ! -z "$PYTHON_VERSION"; then
16197 if test `$PYTHON -c "print('$PYTHON_VERSION' >= '2.4.0')"` = "False"; then
16198 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
16201 PY_MAJOR_VERSION="`$PYTHON -c \"import sys; print(sys.version_info[0])\"`"
16205 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
16207 LIBS="$PYTHON_LDFLAGS $LIBS"
16208 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16214 # Extract the first word of "swig", so it can be a program name with args.
16215 set dummy swig; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_path_SWIG+:} false; then :
16219 $as_echo_n "(cached) " >&6
16223 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
16226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16227 for as_dir in $PATH
16230 test -z "$as_dir" && as_dir=.
16231 for ac_exec_ext in '' $ac_executable_extensions; do
16232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16233 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
16234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16244 SWIG=$ac_cv_path_SWIG
16245 if test -n "$SWIG"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
16247 $as_echo "$SWIG" >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16254 if test -z "$SWIG" ; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16256 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16257 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
16258 elif test -n "" ; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
16260 $as_echo_n "checking for SWIG version... " >&6; }
16261 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'`
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
16263 $as_echo "$swig_version" >&6; }
16264 if test -n "$swig_version" ; then
16265 # Calculate the required version number components
16267 required_major=`echo $required | sed 's/[^0-9].*//'`
16268 if test -z "$required_major" ; then
16271 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16272 required_minor=`echo $required | sed 's/[^0-9].*//'`
16273 if test -z "$required_minor" ; then
16276 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
16277 required_patch=`echo $required | sed 's/[^0-9].*//'`
16278 if test -z "$required_patch" ; then
16281 # Calculate the available version number components
16282 available=$swig_version
16283 available_major=`echo $available | sed 's/[^0-9].*//'`
16284 if test -z "$available_major" ; then
16287 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16288 available_minor=`echo $available | sed 's/[^0-9].*//'`
16289 if test -z "$available_minor" ; then
16292 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
16293 available_patch=`echo $available | sed 's/[^0-9].*//'`
16294 if test -z "$available_patch" ; then
16297 if test $available_major -ne $required_major \
16298 -o $available_minor -ne $required_minor \
16299 -o $available_patch -lt $required_patch ; then
16300 { $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
16301 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16302 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
16305 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16306 SWIG_LIB=`$SWIG -swiglib`
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
16308 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16312 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16313 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16319 $as_echo_n "checking SWIG... " >&6; }
16320 if test ! -x "$SWIG"; then
16321 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16324 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16329 $as_echo "present" >&6; }
16331 # If have Python & SWIG
16332 # Declare PythonMod
16333 if test x_$ub_with_pythonmod != x_no; then
16335 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16337 WITH_PYTHONMODULE=yes
16339 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16341 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16343 PYTHONMOD_INSTALL=pythonmod-install
16345 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16349 # Declare PyUnbound
16350 if test x_$ub_with_pyunbound != x_no; then
16352 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16356 PYUNBOUND_OBJ="libunbound_wrap.lo"
16358 PYUNBOUND_TARGET="_unbound.la"
16360 PYUNBOUND_INSTALL=pyunbound-install
16362 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16368 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16369 ub_with_pyunbound=no
16370 ub_with_pythonmod=no
16374 if test "`uname`" = "NetBSD"; then
16375 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16378 CONFIG_DATE=`date +%Y%m%d`
16381 # Checks for libraries.
16386 # Check whether --with-nss was given.
16387 if test "${with_nss+set}" = set; then :
16391 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16393 if test "$withval" != "" -a "$withval" != "yes"; then
16394 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16395 LDFLAGS="$LDFLAGS -L$withval/lib"
16397 if test "x$enable_rpath" = xyes; then
16398 if echo "$withval/lib" | grep "^/" >/dev/null; then
16399 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16403 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16405 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16406 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16408 LIBS="$LIBS -lnss3 -lnspr4"
16415 if test $USE_NSS = "no"; then
16418 # Check whether --with-ssl was given.
16419 if test "${with_ssl+set}" = set; then :
16428 if test x_$withval = x_no; then
16429 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16433 if test x_$withval != x_no; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16435 $as_echo_n "checking for SSL... " >&6; }
16436 if test x_$withval = x_ -o x_$withval = x_yes; then
16437 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16439 for dir in $withval; do
16441 if test -f "$dir/include/openssl/ssl.h"; then
16444 cat >>confdefs.h <<_ACEOF
16445 #define HAVE_SSL /**/
16448 if test "$ssldir" != "/usr"; then
16449 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16450 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16455 if test x_$found_ssl != x_yes; then
16456 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16459 $as_echo "found in $ssldir" >&6; }
16461 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16462 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16463 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16465 if test "x$enable_rpath" = xyes; then
16466 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16467 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16474 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16475 LIBS="$LIBS -lcrypto"
16476 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16484 int HMAC_CTX_init(void);
16485 (void)HMAC_CTX_init();
16491 if ac_fn_c_try_link "$LINENO"; then :
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16494 $as_echo "yes" >&6; }
16496 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16502 $as_echo "no" >&6; }
16503 # check if -lwsock32 or -lgdi32 are needed.
16505 BAKSSLLIBS="$LIBSSL_LIBS"
16506 LIBS="$LIBS -lgdi32"
16507 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16509 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16517 int HMAC_CTX_init(void);
16518 (void)HMAC_CTX_init();
16524 if ac_fn_c_try_link "$LINENO"; then :
16527 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16535 $as_echo "no" >&6; }
16537 LIBSSL_LIBS="$BAKSSLLIBS"
16539 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16541 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16549 int HMAC_CTX_init(void);
16550 (void)HMAC_CTX_init();
16556 if ac_fn_c_try_link "$LINENO"; then :
16559 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562 $as_echo "yes" >&6; }
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16568 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16575 rm -f core conftest.err conftest.$ac_objext \
16576 conftest$ac_exeext conftest.$ac_ext
16579 rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16584 # openssl engine functionality needs dlopen().
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16587 $as_echo_n "checking for library containing dlopen... " >&6; }
16588 if ${ac_cv_search_dlopen+:} false; then :
16589 $as_echo_n "(cached) " >&6
16591 ac_func_search_save_LIBS=$LIBS
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16610 for ac_lib in '' dl; do
16611 if test -z "$ac_lib"; then
16612 ac_res="none required"
16615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16617 if ac_fn_c_try_link "$LINENO"; then :
16618 ac_cv_search_dlopen=$ac_res
16620 rm -f core conftest.err conftest.$ac_objext \
16622 if ${ac_cv_search_dlopen+:} false; then :
16626 if ${ac_cv_search_dlopen+:} false; then :
16629 ac_cv_search_dlopen=no
16631 rm conftest.$ac_ext
16632 LIBS=$ac_func_search_save_LIBS
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16635 $as_echo "$ac_cv_search_dlopen" >&6; }
16636 ac_res=$ac_cv_search_dlopen
16637 if test "$ac_res" != no; then :
16638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16642 if test "$LIBS" != "$BAKLIBS"; then
16643 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16646 for ac_header in openssl/ssl.h
16648 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16650 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16651 cat >>confdefs.h <<_ACEOF
16652 #define HAVE_OPENSSL_SSL_H 1
16659 for ac_header in openssl/err.h
16661 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16663 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16664 cat >>confdefs.h <<_ACEOF
16665 #define HAVE_OPENSSL_ERR_H 1
16672 for ac_header in openssl/rand.h
16674 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16676 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_OPENSSL_RAND_H 1
16688 # check if libssl needs libdl
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16692 $as_echo_n "checking if libssl needs libdl... " >&6; }
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16696 /* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16702 char SSL_CTX_new ();
16706 return SSL_CTX_new ();
16711 if ac_fn_c_try_link "$LINENO"; then :
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 $as_echo "no" >&6; }
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16720 $as_echo "yes" >&6; }
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16723 $as_echo_n "checking for library containing dlopen... " >&6; }
16724 if ${ac_cv_search_dlopen+:} false; then :
16725 $as_echo_n "(cached) " >&6
16727 ac_func_search_save_LIBS=$LIBS
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16731 /* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16746 for ac_lib in '' dl; do
16747 if test -z "$ac_lib"; then
16748 ac_res="none required"
16751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16753 if ac_fn_c_try_link "$LINENO"; then :
16754 ac_cv_search_dlopen=$ac_res
16756 rm -f core conftest.err conftest.$ac_objext \
16758 if ${ac_cv_search_dlopen+:} false; then :
16762 if ${ac_cv_search_dlopen+:} false; then :
16765 ac_cv_search_dlopen=no
16767 rm conftest.$ac_ext
16768 LIBS=$ac_func_search_save_LIBS
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16771 $as_echo "$ac_cv_search_dlopen" >&6; }
16772 ac_res=$ac_cv_search_dlopen
16773 if test "$ac_res" != no; then :
16774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16780 rm -f core conftest.err conftest.$ac_objext \
16781 conftest$ac_exeext conftest.$ac_ext
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
16783 $as_echo_n "checking for LibreSSL... " >&6; }
16784 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16786 $as_echo "yes" >&6; }
16788 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
16790 # libressl provides these compat functions, but they may also be
16791 # declared by the OS in libc. See if they have been declared.
16792 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16793 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
16799 cat >>confdefs.h <<_ACEOF
16800 #define HAVE_DECL_STRLCPY $ac_have_decl
16802 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16803 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_DECL_STRLCAT $ac_have_decl
16812 ac_fn_c_check_decl "$LINENO" "arc4random" "ac_cv_have_decl_arc4random" "$ac_includes_default"
16813 if test "x$ac_cv_have_decl_arc4random" = xyes; then :
16819 cat >>confdefs.h <<_ACEOF
16820 #define HAVE_DECL_ARC4RANDOM $ac_have_decl
16822 ac_fn_c_check_decl "$LINENO" "arc4random_uniform" "ac_cv_have_decl_arc4random_uniform" "$ac_includes_default"
16823 if test "x$ac_cv_have_decl_arc4random_uniform" = xyes; then :
16829 cat >>confdefs.h <<_ACEOF
16830 #define HAVE_DECL_ARC4RANDOM_UNIFORM $ac_have_decl
16832 ac_fn_c_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default"
16833 if test "x$ac_cv_have_decl_reallocarray" = xyes; then :
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_DECL_REALLOCARRAY $ac_have_decl
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16847 for ac_header in openssl/conf.h
16849 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16851 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16852 cat >>confdefs.h <<_ACEOF
16853 #define HAVE_OPENSSL_CONF_H 1
16860 for ac_header in openssl/engine.h
16862 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16864 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16865 cat >>confdefs.h <<_ACEOF
16866 #define HAVE_OPENSSL_ENGINE_H 1
16873 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16876 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16878 cat >>confdefs.h <<_ACEOF
16879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16885 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16886 $ac_includes_default
16887 #ifdef HAVE_OPENSSL_ERR_H
16888 #include <openssl/err.h>
16891 #ifdef HAVE_OPENSSL_RAND_H
16892 #include <openssl/rand.h>
16895 #ifdef HAVE_OPENSSL_CONF_H
16896 #include <openssl/conf.h>
16899 #ifdef HAVE_OPENSSL_ENGINE_H
16900 #include <openssl/engine.h>
16902 #include <openssl/ssl.h>
16903 #include <openssl/evp.h>
16906 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16915 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16916 $ac_includes_default
16917 #ifdef HAVE_OPENSSL_ERR_H
16918 #include <openssl/err.h>
16921 #ifdef HAVE_OPENSSL_RAND_H
16922 #include <openssl/rand.h>
16925 #ifdef HAVE_OPENSSL_CONF_H
16926 #include <openssl/conf.h>
16929 #ifdef HAVE_OPENSSL_ENGINE_H
16930 #include <openssl/engine.h>
16932 #include <openssl/ssl.h>
16933 #include <openssl/evp.h>
16936 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16945 ac_fn_c_check_decl "$LINENO" "SSL_CTX_set_ecdh_auto" "ac_cv_have_decl_SSL_CTX_set_ecdh_auto" "
16946 $ac_includes_default
16947 #ifdef HAVE_OPENSSL_ERR_H
16948 #include <openssl/err.h>
16951 #ifdef HAVE_OPENSSL_RAND_H
16952 #include <openssl/rand.h>
16955 #ifdef HAVE_OPENSSL_CONF_H
16956 #include <openssl/conf.h>
16959 #ifdef HAVE_OPENSSL_ENGINE_H
16960 #include <openssl/engine.h>
16962 #include <openssl/ssl.h>
16963 #include <openssl/evp.h>
16966 if test "x$ac_cv_have_decl_SSL_CTX_set_ecdh_auto" = xyes; then :
16972 cat >>confdefs.h <<_ACEOF
16973 #define HAVE_DECL_SSL_CTX_SET_ECDH_AUTO $ac_have_decl
16979 # Check whether --enable-sha2 was given.
16980 if test "${enable_sha2+set}" = set; then :
16981 enableval=$enable_sha2;
16984 case "$enable_sha2" in
16989 $as_echo "#define USE_SHA2 1" >>confdefs.h
16994 # check wether gost also works
16996 # Check whether --enable-gost was given.
16997 if test "${enable_gost+set}" = set; then :
16998 enableval=$enable_gost;
17002 if test $USE_NSS = "no"; then
17003 case "$enable_gost" in
17007 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
17008 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
17011 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
17014 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
17015 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
17018 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
17023 $as_echo_n "checking if GOST works... " >&6; }
17024 if test c${cross_compiling} = cno; then
17025 BAKCFLAGS="$CFLAGS"
17026 if test -n "$ssldir"; then
17027 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
17029 if test "$cross_compiling" = yes; then :
17030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17032 as_fn_error $? "cannot run test program while cross compiling
17033 See \`config.log' for more details" "$LINENO" 5; }
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17038 #include <string.h>
17039 #include <openssl/ssl.h>
17040 #include <openssl/evp.h>
17041 #include <openssl/engine.h>
17042 #include <openssl/conf.h>
17043 /* routine to load gost (from sldns) */
17044 int load_gost_id(void)
17046 static int gost_id = 0;
17047 const EVP_PKEY_ASN1_METHOD* meth;
17050 if(gost_id) return gost_id;
17052 /* see if configuration loaded gost implementation from other engine*/
17053 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
17055 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17059 /* see if engine can be loaded already */
17060 e = ENGINE_by_id("gost");
17062 /* load it ourself, in case statically linked */
17063 ENGINE_load_builtin_engines();
17064 ENGINE_load_dynamic();
17065 e = ENGINE_by_id("gost");
17068 /* no gost engine in openssl */
17071 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
17077 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
17079 /* algo not found */
17084 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
17090 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
17091 const char* str = "Hello world";
17092 const unsigned char check[] = {
17093 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
17094 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
17095 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
17096 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
17098 OPENSSL_config(NULL);
17099 (void)load_gost_id();
17100 md = EVP_get_digestbyname("md_gost94");
17102 memset(digest, 0, sizeof(digest));
17103 ctx = EVP_MD_CTX_create();
17105 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
17106 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
17107 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
17108 /* uncomment to see the hash calculated.
17110 for(i=0; i<32; i++)
17111 printf(" %2.2x", (int)digest[i]);
17114 if(memcmp(digest, check, sizeof(check)) != 0)
17120 if ac_fn_c_try_run "$LINENO"; then :
17121 eval "ac_cv_c_gost_works=yes"
17123 eval "ac_cv_c_gost_works=no"
17125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17126 conftest.$ac_objext conftest.beam conftest.$ac_ext
17129 CFLAGS="$BAKCFLAGS"
17131 eval "ac_cv_c_gost_works=maybe"
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
17134 $as_echo "$ac_cv_c_gost_works" >&6; }
17136 if test "$ac_cv_c_gost_works" != no; then
17139 $as_echo "#define USE_GOST 1" >>confdefs.h
17145 # Check whether --enable-ecdsa was given.
17146 if test "${enable_ecdsa+set}" = set; then :
17147 enableval=$enable_ecdsa;
17151 case "$enable_ecdsa" in
17155 if test $USE_NSS = "no"; then
17156 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
17157 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
17160 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17163 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
17164 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
17167 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17170 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
17171 #include <openssl/evp.h>
17174 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
17180 cat >>confdefs.h <<_ACEOF
17181 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
17183 if test $ac_have_decl = 1; then :
17186 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17188 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
17189 #include <openssl/evp.h>
17192 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
17198 cat >>confdefs.h <<_ACEOF
17199 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
17201 if test $ac_have_decl = 1; then :
17204 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
17207 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
17209 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
17210 if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
17211 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17213 $as_echo "no" >&6; }
17215 cat >>confdefs.h <<_ACEOF
17216 #define USE_ECDSA_EVP_WORKAROUND 1
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17221 $as_echo "yes" >&6; }
17224 # not OpenSSL, thus likely LibreSSL, which supports it
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17226 $as_echo "yes" >&6; }
17229 # we now know we have ECDSA and the required curves.
17231 cat >>confdefs.h <<_ACEOF
17232 #define USE_ECDSA 1
17239 # Check whether --enable-event-api was given.
17240 if test "${enable_event_api+set}" = set; then :
17241 enableval=$enable_event_api;
17244 use_unbound_event="no"
17245 case "$enable_event_api" in
17247 use_unbound_event="yes"
17253 # check for libevent
17255 # Check whether --with-libevent was given.
17256 if test "${with_libevent+set}" = set; then :
17257 withval=$with_libevent;
17262 if test x_$withval = x_yes -o x_$withval != x_no; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
17264 $as_echo_n "checking for libevent... " >&6; }
17265 if test x_$withval = x_ -o x_$withval = x_yes; then
17266 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17268 for dir in $withval; do
17270 if test -f "$dir/include/event.h" -o -f "$dir/include/event2/event.h"; then
17271 found_libevent="yes"
17272 if test "$thedir" != "/usr"; then
17273 CPPFLAGS="$CPPFLAGS -I$thedir/include"
17278 if test x_$found_libevent != x_yes; then
17279 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
17280 # libevent source directory
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17282 $as_echo "found in $thedir" >&6; }
17283 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
17284 BAK_LDFLAGS_SET="1"
17285 BAK_LDFLAGS="$LDFLAGS"
17286 # remove evdns from linking
17287 mkdir build >/dev/null 2>&1
17288 mkdir build/libevent >/dev/null 2>&1
17289 mkdir build/libevent/.libs >/dev/null 2>&1
17290 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17291 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
17292 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
17293 cp $ev_files_o build/libevent
17294 cp $ev_files_lo build/libevent
17295 cp $ev_files_libso build/libevent/.libs
17296 LATE_LDFLAGS="build/libevent/*.lo -lm"
17297 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
17299 as_fn_error $? "Cannot find the libevent library in $withval
17300 You can restart ./configure --with-libevent=no to use a builtin alternative.
17301 Please note that this alternative is not as capable as libevent when using
17302 large outgoing port ranges. " "$LINENO" 5
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
17306 $as_echo "found in $thedir" >&6; }
17307 if test ! -f $thedir/lib/libevent.a -a ! -f $thedir/lib/libevent.so -a -d "$thedir/lib/event2"; then
17308 LDFLAGS="$LDFLAGS -L$thedir/lib/event2"
17310 if test "x$enable_rpath" = xyes; then
17311 if echo "$thedir/lib/event2" | grep "^/" >/dev/null; then
17312 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib/event2"
17317 if test "$thedir" != "/usr" -a "$thedir" != ""; then
17318 LDFLAGS="$LDFLAGS -L$thedir/lib"
17320 if test "x$enable_rpath" = xyes; then
17321 if echo "$thedir/lib" | grep "^/" >/dev/null; then
17322 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
17329 # check for library used by libevent after 1.3c
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17331 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17332 if ${ac_cv_search_clock_gettime+:} false; then :
17333 $as_echo_n "(cached) " >&6
17335 ac_func_search_save_LIBS=$LIBS
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17339 /* Override any GCC internal prototype to avoid an error.
17340 Use char because int might match the return type of a GCC
17341 builtin and then its argument prototype would still apply. */
17345 char clock_gettime ();
17349 return clock_gettime ();
17354 for ac_lib in '' rt; do
17355 if test -z "$ac_lib"; then
17356 ac_res="none required"
17359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17361 if ac_fn_c_try_link "$LINENO"; then :
17362 ac_cv_search_clock_gettime=$ac_res
17364 rm -f core conftest.err conftest.$ac_objext \
17366 if ${ac_cv_search_clock_gettime+:} false; then :
17370 if ${ac_cv_search_clock_gettime+:} false; then :
17373 ac_cv_search_clock_gettime=no
17375 rm conftest.$ac_ext
17376 LIBS=$ac_func_search_save_LIBS
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17379 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17380 ac_res=$ac_cv_search_clock_gettime
17381 if test "$ac_res" != no; then :
17382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17387 # is the event.h header libev or libevent?
17388 for ac_header in event.h
17390 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
17392 if test "x$ac_cv_header_event_h" = xyes; then :
17393 cat >>confdefs.h <<_ACEOF
17394 #define HAVE_EVENT_H 1
17401 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
17405 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17408 $as_echo_n "checking for library containing event_set... " >&6; }
17409 if ${ac_cv_search_event_set+:} false; then :
17410 $as_echo_n "(cached) " >&6
17412 ac_func_search_save_LIBS=$LIBS
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17416 /* Override any GCC internal prototype to avoid an error.
17417 Use char because int might match the return type of a GCC
17418 builtin and then its argument prototype would still apply. */
17426 return event_set ();
17431 for ac_lib in '' ev; do
17432 if test -z "$ac_lib"; then
17433 ac_res="none required"
17436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17438 if ac_fn_c_try_link "$LINENO"; then :
17439 ac_cv_search_event_set=$ac_res
17441 rm -f core conftest.err conftest.$ac_objext \
17443 if ${ac_cv_search_event_set+:} false; then :
17447 if ${ac_cv_search_event_set+:} false; then :
17450 ac_cv_search_event_set=no
17452 rm conftest.$ac_ext
17453 LIBS=$ac_func_search_save_LIBS
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17456 $as_echo "$ac_cv_search_event_set" >&6; }
17457 ac_res=$ac_cv_search_event_set
17458 if test "$ac_res" != no; then :
17459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17467 $as_echo_n "checking for library containing event_set... " >&6; }
17468 if ${ac_cv_search_event_set+:} false; then :
17469 $as_echo_n "(cached) " >&6
17471 ac_func_search_save_LIBS=$LIBS
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17485 return event_set ();
17490 for ac_lib in '' event; do
17491 if test -z "$ac_lib"; then
17492 ac_res="none required"
17495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17497 if ac_fn_c_try_link "$LINENO"; then :
17498 ac_cv_search_event_set=$ac_res
17500 rm -f core conftest.err conftest.$ac_objext \
17502 if ${ac_cv_search_event_set+:} false; then :
17506 if ${ac_cv_search_event_set+:} false; then :
17509 ac_cv_search_event_set=no
17511 rm conftest.$ac_ext
17512 LIBS=$ac_func_search_save_LIBS
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17515 $as_echo "$ac_cv_search_event_set" >&6; }
17516 ac_res=$ac_cv_search_event_set
17517 if test "$ac_res" != no; then :
17518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17525 for ac_func in event_base_free
17527 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17528 if test "x$ac_cv_func_event_base_free" = xyes; then :
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_EVENT_BASE_FREE 1
17535 # only in libevent 1.2 and later
17536 for ac_func in event_base_once
17538 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17539 if test "x$ac_cv_func_event_base_once" = xyes; then :
17540 cat >>confdefs.h <<_ACEOF
17541 #define HAVE_EVENT_BASE_ONCE 1
17546 # only in libevent 1.4.1 and later
17547 for ac_func in event_base_new
17549 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17550 if test "x$ac_cv_func_event_base_new" = xyes; then :
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_EVENT_BASE_NEW 1
17557 # only in libevent 1.4.1 and later
17558 for ac_func in event_base_get_method
17560 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17561 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17562 cat >>confdefs.h <<_ACEOF
17563 #define HAVE_EVENT_BASE_GET_METHOD 1
17568 # only in libevent 1.4.3 and later
17569 for ac_func in ev_loop
17571 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17572 if test "x$ac_cv_func_ev_loop" = xyes; then :
17573 cat >>confdefs.h <<_ACEOF
17574 #define HAVE_EV_LOOP 1
17579 # only in libev. (tested on 3.51)
17580 for ac_func in ev_default_loop
17582 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17583 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_EV_DEFAULT_LOOP 1
17590 # only in libev. (tested on 4.00)
17591 if test -n "$BAK_LDFLAGS_SET"; then
17592 LDFLAGS="$BAK_LDFLAGS"
17594 if test "$use_unbound_event" = "yes"; then
17595 UNBOUND_EVENT_INSTALL=unbound-event-install
17597 UNBOUND_EVENT_UNINSTALL=unbound-event-uninstall
17602 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17606 # check for libexpat
17608 # Check whether --with-libexpat was given.
17609 if test "${with_libexpat+set}" = set; then :
17610 withval=$with_libexpat;
17612 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17616 $as_echo_n "checking for libexpat... " >&6; }
17617 found_libexpat="no"
17618 for dir in $withval ; do
17619 if test -f "$dir/include/expat.h"; then
17620 found_libexpat="yes"
17621 if test "$dir" != "/usr"; then
17622 CPPFLAGS="$CPPFLAGS -I$dir/include"
17623 LDFLAGS="$LDFLAGS -L$dir/lib"
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17626 $as_echo "found in $dir" >&6; }
17630 if test x_$found_libexpat != x_yes; then
17631 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17633 for ac_header in expat.h
17635 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17637 if test "x$ac_cv_header_expat_h" = xyes; then :
17638 cat >>confdefs.h <<_ACEOF
17639 #define HAVE_EXPAT_H 1
17647 # set static linking if requested
17650 # Check whether --enable-static-exe was given.
17651 if test "${enable_static_exe+set}" = set; then :
17652 enableval=$enable_static_exe;
17655 if test x_$enable_static_exe = x_yes; then
17656 staticexe="-static"
17657 if test "$on_mingw" = yes; then
17658 staticexe="-all-static"
17659 # for static crosscompile, include gdi32 and zlib here.
17660 if test "`uname`" = "Linux"; then
17661 LIBS="$LIBS -lgdi32 -lz"
17666 # set lock checking if requested
17667 # Check whether --enable-lock_checks was given.
17668 if test "${enable_lock_checks+set}" = set; then :
17669 enableval=$enable_lock_checks;
17672 if test x_$enable_lock_checks = x_yes; then
17674 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17676 CHECKLOCK_OBJ="checklocks.lo"
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17682 $as_echo_n "checking for getaddrinfo... " >&6; }
17683 ac_cv_func_getaddrinfo=no
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17691 char* getaddrinfo();
17692 char* (*f) () = getaddrinfo;
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_func_getaddrinfo="yes"
17704 if test "$ac_cv_header_windows_h" = "yes"; then
17706 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17709 LIBS="$LIBS -lws2_32"
17714 LIBS="$LIBS -lws2_32"
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17718 #ifdef HAVE_WS2TCPIP_H
17719 #include <ws2tcpip.h>
17726 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17733 if ac_fn_c_try_link "$LINENO"; then :
17735 ac_cv_func_getaddrinfo="yes"
17737 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17743 ac_cv_func_getaddrinfo="no"
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17755 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17756 if test $ac_cv_func_getaddrinfo = yes; then
17758 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17762 if test "$USE_WINSOCK" = 1; then
17764 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17766 for ac_header in iphlpapi.h
17768 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17769 #include <windows.h>
17772 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17773 cat >>confdefs.h <<_ACEOF
17774 #define HAVE_IPHLPAPI_H 1
17781 if test -n "$ac_tool_prefix"; then
17782 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17783 set dummy ${ac_tool_prefix}windres; ac_word=$2
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17785 $as_echo_n "checking for $ac_word... " >&6; }
17786 if ${ac_cv_prog_WINDRES+:} false; then :
17787 $as_echo_n "(cached) " >&6
17789 if test -n "$WINDRES"; then
17790 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17793 for as_dir in $PATH
17796 test -z "$as_dir" && as_dir=.
17797 for ac_exec_ext in '' $ac_executable_extensions; do
17798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17799 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17809 WINDRES=$ac_cv_prog_WINDRES
17810 if test -n "$WINDRES"; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17812 $as_echo "$WINDRES" >&6; }
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815 $as_echo "no" >&6; }
17820 if test -z "$ac_cv_prog_WINDRES"; then
17821 ac_ct_WINDRES=$WINDRES
17822 # Extract the first word of "windres", so it can be a program name with args.
17823 set dummy windres; ac_word=$2
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17825 $as_echo_n "checking for $ac_word... " >&6; }
17826 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17827 $as_echo_n "(cached) " >&6
17829 if test -n "$ac_ct_WINDRES"; then
17830 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17833 for as_dir in $PATH
17836 test -z "$as_dir" && as_dir=.
17837 for ac_exec_ext in '' $ac_executable_extensions; do
17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17839 ac_cv_prog_ac_ct_WINDRES="windres"
17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17849 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17850 if test -n "$ac_ct_WINDRES"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17852 $as_echo "$ac_ct_WINDRES" >&6; }
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17858 if test "x$ac_ct_WINDRES" = x; then
17861 case $cross_compiling:$ac_tool_warned in
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17865 ac_tool_warned=yes ;;
17867 WINDRES=$ac_ct_WINDRES
17870 WINDRES="$ac_cv_prog_WINDRES"
17873 LIBS="$LIBS -liphlpapi"
17874 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17876 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17878 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17880 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17882 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17884 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17886 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17888 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17891 if test $ac_cv_func_getaddrinfo = no; then
17892 case " $LIBOBJS " in
17893 *" fake-rfc2553.$ac_objext "* ) ;;
17894 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17899 # check after getaddrinfo for its libraries
17901 # check ioctlsocket
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17903 $as_echo_n "checking for ioctlsocket... " >&6; }
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 #ifdef HAVE_WINSOCK2_H
17908 #include <winsock2.h>
17915 (void)ioctlsocket(0, 0, NULL);
17921 if ac_fn_c_try_link "$LINENO"; then :
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924 $as_echo "yes" >&6; }
17926 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17933 rm -f core conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17937 # see if daemon(3) exists, and if it is deprecated.
17938 for ac_func in daemon
17940 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17941 if test "x$ac_cv_func_daemon" = xyes; then :
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_DAEMON 1
17949 if test $ac_cv_func_daemon = yes; then
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17953 $as_echo_n "checking if daemon is deprecated... " >&6; }
17954 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17955 if eval \${cv_cc_deprecated_$cache+:} false; then :
17956 $as_echo_n "(cached) " >&6
17960 #include <stdlib.h>
17962 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17963 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17964 eval "cv_cc_deprecated_$cache=no"
17966 eval "cv_cc_deprecated_$cache=yes"
17968 rm -f conftest conftest.o conftest.c
17972 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17974 $as_echo "yes" >&6; }
17976 cat >>confdefs.h <<_ACEOF
17977 #define DEPRECATED_DAEMON 1
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17984 $as_echo "no" >&6; }
17991 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "
17992 $ac_includes_default
17993 #ifdef HAVE_SYS_UN_H
17994 #include <sys/un.h>
17998 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
18000 cat >>confdefs.h <<_ACEOF
18001 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18007 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
18008 $ac_includes_default
18009 #if HAVE_SYS_PARAM_H
18010 #include <sys/param.h>
18013 #ifdef HAVE_SYS_SOCKET_H
18014 #include <sys/socket.h>
18017 #ifdef HAVE_SYS_UIO_H
18018 #include <sys/uio.h>
18021 #ifdef HAVE_NETINET_IN_H
18022 #include <netinet/in.h>
18025 #ifdef HAVE_ARPA_INET_H
18026 #include <arpa/inet.h>
18029 #ifdef HAVE_WINSOCK2_H
18030 #include <winsock2.h>
18033 #ifdef HAVE_WS2TCPIP_H
18034 #include <ws2tcpip.h>
18038 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
18040 cat >>confdefs.h <<_ACEOF
18041 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
18048 $as_echo_n "checking for library containing setusercontext... " >&6; }
18049 if ${ac_cv_search_setusercontext+:} false; then :
18050 $as_echo_n "(cached) " >&6
18052 ac_func_search_save_LIBS=$LIBS
18053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18054 /* end confdefs.h. */
18056 /* Override any GCC internal prototype to avoid an error.
18057 Use char because int might match the return type of a GCC
18058 builtin and then its argument prototype would still apply. */
18062 char setusercontext ();
18066 return setusercontext ();
18071 for ac_lib in '' util; do
18072 if test -z "$ac_lib"; then
18073 ac_res="none required"
18076 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18078 if ac_fn_c_try_link "$LINENO"; then :
18079 ac_cv_search_setusercontext=$ac_res
18081 rm -f core conftest.err conftest.$ac_objext \
18083 if ${ac_cv_search_setusercontext+:} false; then :
18087 if ${ac_cv_search_setusercontext+:} false; then :
18090 ac_cv_search_setusercontext=no
18092 rm conftest.$ac_ext
18093 LIBS=$ac_func_search_save_LIBS
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
18096 $as_echo "$ac_cv_search_setusercontext" >&6; }
18097 ac_res=$ac_cv_search_setusercontext
18098 if test "$ac_res" != no; then :
18099 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18103 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill chown sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex endservent endprotoent
18105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18108 cat >>confdefs.h <<_ACEOF
18109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18115 for ac_func in setresuid
18117 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
18118 if test "x$ac_cv_func_setresuid" = xyes; then :
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_SETRESUID 1
18124 for ac_func in setreuid
18126 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
18127 if test "x$ac_cv_func_setreuid" = xyes; then :
18128 cat >>confdefs.h <<_ACEOF
18129 #define HAVE_SETREUID 1
18138 for ac_func in setresgid
18140 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
18141 if test "x$ac_cv_func_setresgid" = xyes; then :
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_SETRESGID 1
18147 for ac_func in setregid
18149 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
18150 if test "x$ac_cv_func_setregid" = xyes; then :
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_SETREGID 1
18162 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
18163 if echo $build_os | grep darwin8 > /dev/null; then
18165 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
18168 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
18169 if test "x$ac_cv_func_inet_aton" = xyes; then :
18170 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
18173 case " $LIBOBJS " in
18174 *" inet_aton.$ac_objext "* ) ;;
18175 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
18182 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
18183 if test "x$ac_cv_func_inet_pton" = xyes; then :
18184 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
18187 case " $LIBOBJS " in
18188 *" inet_pton.$ac_objext "* ) ;;
18189 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
18196 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
18197 if test "x$ac_cv_func_inet_ntop" = xyes; then :
18198 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
18201 case " $LIBOBJS " in
18202 *" inet_ntop.$ac_objext "* ) ;;
18203 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
18210 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18211 if test "x$ac_cv_func_snprintf" = xyes; then :
18212 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
18215 case " $LIBOBJS " in
18216 *" snprintf.$ac_objext "* ) ;;
18217 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18224 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18225 if test "x$ac_cv_func_strlcat" = xyes; then :
18226 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
18229 case " $LIBOBJS " in
18230 *" strlcat.$ac_objext "* ) ;;
18231 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18238 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18239 if test "x$ac_cv_func_strlcpy" = xyes; then :
18240 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
18243 case " $LIBOBJS " in
18244 *" strlcpy.$ac_objext "* ) ;;
18245 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18252 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
18253 if test "x$ac_cv_func_memmove" = xyes; then :
18254 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
18257 case " $LIBOBJS " in
18258 *" memmove.$ac_objext "* ) ;;
18259 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
18266 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18267 if test "x$ac_cv_func_gmtime_r" = xyes; then :
18268 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
18271 case " $LIBOBJS " in
18272 *" gmtime_r.$ac_objext "* ) ;;
18273 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
18280 LIBOBJ_WITHOUT_CTIMEARC4="$LIBOBJS"
18282 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18283 if test "x$ac_cv_func_reallocarray" = xyes; then :
18284 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18287 case " $LIBOBJS " in
18288 *" reallocarray.$ac_objext "* ) ;;
18289 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
18296 if test "$USE_NSS" = "no"; then
18297 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
18298 if test "x$ac_cv_func_arc4random" = xyes; then :
18299 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18302 case " $LIBOBJS " in
18303 *" arc4random.$ac_objext "* ) ;;
18304 *) LIBOBJS="$LIBOBJS arc4random.$ac_objext"
18311 ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
18312 if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
18313 $as_echo "#define HAVE_ARC4RANDOM_UNIFORM 1" >>confdefs.h
18316 case " $LIBOBJS " in
18317 *" arc4random_uniform.$ac_objext "* ) ;;
18318 *) LIBOBJS="$LIBOBJS arc4random_uniform.$ac_objext"
18325 if test "$ac_cv_func_arc4random" = "no"; then
18326 case " $LIBOBJS " in
18327 *" explicit_bzero.$ac_objext "* ) ;;
18328 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
18332 case " $LIBOBJS " in
18333 *" arc4_lock.$ac_objext "* ) ;;
18334 *) LIBOBJS="$LIBOBJS arc4_lock.$ac_objext"
18338 for ac_func in getentropy
18340 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
18341 if test "x$ac_cv_func_getentropy" = xyes; then :
18342 cat >>confdefs.h <<_ACEOF
18343 #define HAVE_GETENTROPY 1
18348 if test "$USE_WINSOCK" = 1; then
18349 case " $LIBOBJS " in
18350 *" getentropy_win.$ac_objext "* ) ;;
18351 *) LIBOBJS="$LIBOBJS getentropy_win.$ac_objext"
18358 case " $LIBOBJS " in
18359 *" getentropy_osx.$ac_objext "* ) ;;
18360 *) LIBOBJS="$LIBOBJS getentropy_osx.$ac_objext"
18366 case " $LIBOBJS " in
18367 *" getentropy_solaris.$ac_objext "* ) ;;
18368 *) LIBOBJS="$LIBOBJS getentropy_solaris.$ac_objext"
18372 for ac_header in sys/sha2.h
18374 ac_fn_c_check_header_compile "$LINENO" "sys/sha2.h" "ac_cv_header_sys_sha2_h" "$ac_includes_default
18376 if test "x$ac_cv_header_sys_sha2_h" = xyes; then :
18377 cat >>confdefs.h <<_ACEOF
18378 #define HAVE_SYS_SHA2_H 1
18383 for ac_func in SHA512_Update
18385 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18386 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_SHA512_UPDATE 1
18393 case " $LIBOBJS " in
18394 *" sha512.$ac_objext "* ) ;;
18395 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18408 if test "$ac_cv_header_sys_sha2_h" = "yes"; then
18409 # this lib needed for sha2 on solaris
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18413 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18414 if ${ac_cv_search_clock_gettime+:} false; then :
18415 $as_echo_n "(cached) " >&6
18417 ac_func_search_save_LIBS=$LIBS
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* Override any GCC internal prototype to avoid an error.
18422 Use char because int might match the return type of a GCC
18423 builtin and then its argument prototype would still apply. */
18427 char clock_gettime ();
18431 return clock_gettime ();
18436 for ac_lib in '' rt; do
18437 if test -z "$ac_lib"; then
18438 ac_res="none required"
18441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18443 if ac_fn_c_try_link "$LINENO"; then :
18444 ac_cv_search_clock_gettime=$ac_res
18446 rm -f core conftest.err conftest.$ac_objext \
18448 if ${ac_cv_search_clock_gettime+:} false; then :
18452 if ${ac_cv_search_clock_gettime+:} false; then :
18455 ac_cv_search_clock_gettime=no
18457 rm conftest.$ac_ext
18458 LIBS=$ac_func_search_save_LIBS
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18461 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18462 ac_res=$ac_cv_search_clock_gettime
18463 if test "$ac_res" != no; then :
18464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18470 case " $LIBOBJS " in
18471 *" getentropy_linux.$ac_objext "* ) ;;
18472 *) LIBOBJS="$LIBOBJS getentropy_linux.$ac_objext"
18476 for ac_func in SHA512_Update
18478 ac_fn_c_check_func "$LINENO" "SHA512_Update" "ac_cv_func_SHA512_Update"
18479 if test "x$ac_cv_func_SHA512_Update" = xyes; then :
18480 cat >>confdefs.h <<_ACEOF
18481 #define HAVE_SHA512_UPDATE 1
18487 $as_echo "#define COMPAT_SHA512 1" >>confdefs.h
18489 case " $LIBOBJS " in
18490 *" sha512.$ac_objext "* ) ;;
18491 *) LIBOBJS="$LIBOBJS sha512.$ac_objext"
18499 for ac_header in sys/sysctl.h
18501 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
18503 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_SYS_SYSCTL_H 1
18512 for ac_func in getauxval
18514 ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
18515 if test "x$ac_cv_func_getauxval" = xyes; then :
18516 cat >>confdefs.h <<_ACEOF
18517 #define HAVE_GETAUXVAL 1
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18524 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18525 if ${ac_cv_search_clock_gettime+:} false; then :
18526 $as_echo_n "(cached) " >&6
18528 ac_func_search_save_LIBS=$LIBS
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18538 char clock_gettime ();
18542 return clock_gettime ();
18547 for ac_lib in '' rt; do
18548 if test -z "$ac_lib"; then
18549 ac_res="none required"
18552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18554 if ac_fn_c_try_link "$LINENO"; then :
18555 ac_cv_search_clock_gettime=$ac_res
18557 rm -f core conftest.err conftest.$ac_objext \
18559 if ${ac_cv_search_clock_gettime+:} false; then :
18563 if ${ac_cv_search_clock_gettime+:} false; then :
18566 ac_cv_search_clock_gettime=no
18568 rm conftest.$ac_ext
18569 LIBS=$ac_func_search_save_LIBS
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18572 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18573 ac_res=$ac_cv_search_clock_gettime
18574 if test "$ac_res" != no; then :
18575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18588 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
18590 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18591 if test "x$ac_cv_func_ctime_r" = xyes; then :
18592 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
18595 case " $LIBOBJS " in
18596 *" ctime_r.$ac_objext "* ) ;;
18597 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
18605 # Check whether --enable-allsymbols was given.
18606 if test "${enable_allsymbols+set}" = set; then :
18607 enableval=$enable_allsymbols;
18610 case "$enable_allsymbols" in
18612 COMMON_OBJ_ALL_SYMBOLS=""
18614 EXTRALINK="-L. -L.libs -lunbound"
18616 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
18620 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
18621 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
18628 if test x_$enable_lock_checks = x_yes; then
18629 UBSYMS="-export-symbols clubsyms.def"
18630 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
18631 echo lock_protect >> clubsyms.def
18632 echo lock_unprotect >> clubsyms.def
18633 echo lock_get_mem >> clubsyms.def
18634 echo checklock_start >> clubsyms.def
18635 echo checklock_stop >> clubsyms.def
18636 echo checklock_lock >> clubsyms.def
18637 echo checklock_unlock >> clubsyms.def
18638 echo checklock_init >> clubsyms.def
18639 echo checklock_thrcreate >> clubsyms.def
18640 echo checklock_thrjoin >> clubsyms.def
18643 # check for dnstap if requested
18645 # Check whether --enable-dnstap was given.
18646 if test "${enable_dnstap+set}" = set; then :
18647 enableval=$enable_dnstap; opt_dnstap=$enableval
18654 # Check whether --with-dnstap-socket-path was given.
18655 if test "${with_dnstap_socket_path+set}" = set; then :
18656 withval=$with_dnstap_socket_path; opt_dnstap_socket_path=$withval
18658 opt_dnstap_socket_path="$UNBOUND_RUN_DIR/dnstap.sock"
18662 if test "x$opt_dnstap" != "xno"; then
18663 # Extract the first word of "protoc-c", so it can be a program name with args.
18664 set dummy protoc-c; ac_word=$2
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18666 $as_echo_n "checking for $ac_word... " >&6; }
18667 if ${ac_cv_path_PROTOC_C+:} false; then :
18668 $as_echo_n "(cached) " >&6
18672 ac_cv_path_PROTOC_C="$PROTOC_C" # Let the user override the test with a path.
18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18676 for as_dir in $PATH
18679 test -z "$as_dir" && as_dir=.
18680 for ac_exec_ext in '' $ac_executable_extensions; do
18681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18682 ac_cv_path_PROTOC_C="$as_dir/$ac_word$ac_exec_ext"
18683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 PROTOC_C=$ac_cv_path_PROTOC_C
18694 if test -n "$PROTOC_C"; then
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROTOC_C" >&5
18696 $as_echo "$PROTOC_C" >&6; }
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18699 $as_echo "no" >&6; }
18703 if test -z "$PROTOC_C"; then
18704 as_fn_error $? "The protoc-c program was not found. Please install protobuf-c!" "$LINENO" 5
18707 # Check whether --with-protobuf-c was given.
18708 if test "${with_protobuf_c+set}" = set; then :
18709 withval=$with_protobuf_c;
18710 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18711 if test -f $withval/include/google/protobuf-c/protobuf-c.h; then
18712 CFLAGS="$CFLAGS -I$withval/include/google"
18714 CFLAGS="$CFLAGS -I$withval/include"
18716 LDFLAGS="$LDFLAGS -L$withval/lib"
18720 # workaround for protobuf-c includes at old dir before protobuf-c-1.0.0
18721 if test -f /usr/include/google/protobuf-c/protobuf-c.h; then
18722 CFLAGS="$CFLAGS -I/usr/include/google"
18724 if test -f /usr/local/include/google/protobuf-c/protobuf-c.h; then
18725 CFLAGS="$CFLAGS -I/usr/local/include/google"
18726 LDFLAGS="$LDFLAGS -L/usr/local/lib"
18733 # Check whether --with-libfstrm was given.
18734 if test "${with_libfstrm+set}" = set; then :
18735 withval=$with_libfstrm;
18736 CFLAGS="$CFLAGS -I$withval/include"
18737 LDFLAGS="$LDFLAGS -L$withval/lib"
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fstrm_iothr_init" >&5
18742 $as_echo_n "checking for library containing fstrm_iothr_init... " >&6; }
18743 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18744 $as_echo_n "(cached) " >&6
18746 ac_func_search_save_LIBS=$LIBS
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18750 /* Override any GCC internal prototype to avoid an error.
18751 Use char because int might match the return type of a GCC
18752 builtin and then its argument prototype would still apply. */
18756 char fstrm_iothr_init ();
18760 return fstrm_iothr_init ();
18765 for ac_lib in '' fstrm; do
18766 if test -z "$ac_lib"; then
18767 ac_res="none required"
18770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18772 if ac_fn_c_try_link "$LINENO"; then :
18773 ac_cv_search_fstrm_iothr_init=$ac_res
18775 rm -f core conftest.err conftest.$ac_objext \
18777 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18781 if ${ac_cv_search_fstrm_iothr_init+:} false; then :
18784 ac_cv_search_fstrm_iothr_init=no
18786 rm conftest.$ac_ext
18787 LIBS=$ac_func_search_save_LIBS
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fstrm_iothr_init" >&5
18790 $as_echo "$ac_cv_search_fstrm_iothr_init" >&6; }
18791 ac_res=$ac_cv_search_fstrm_iothr_init
18792 if test "$ac_res" != no; then :
18793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18796 as_fn_error $? "The fstrm library was not found. Please install fstrm!" "$LINENO" 5
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing protobuf_c_message_pack" >&5
18800 $as_echo_n "checking for library containing protobuf_c_message_pack... " >&6; }
18801 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18802 $as_echo_n "(cached) " >&6
18804 ac_func_search_save_LIBS=$LIBS
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18814 char protobuf_c_message_pack ();
18818 return protobuf_c_message_pack ();
18823 for ac_lib in '' protobuf-c; do
18824 if test -z "$ac_lib"; then
18825 ac_res="none required"
18828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18830 if ac_fn_c_try_link "$LINENO"; then :
18831 ac_cv_search_protobuf_c_message_pack=$ac_res
18833 rm -f core conftest.err conftest.$ac_objext \
18835 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18839 if ${ac_cv_search_protobuf_c_message_pack+:} false; then :
18842 ac_cv_search_protobuf_c_message_pack=no
18844 rm conftest.$ac_ext
18845 LIBS=$ac_func_search_save_LIBS
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_protobuf_c_message_pack" >&5
18848 $as_echo "$ac_cv_search_protobuf_c_message_pack" >&6; }
18849 ac_res=$ac_cv_search_protobuf_c_message_pack
18850 if test "$ac_res" != no; then :
18851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18854 as_fn_error $? "The protobuf-c library was not found. Please install protobuf-c!" "$LINENO" 5
18859 $as_echo "#define USE_DNSTAP 1" >>confdefs.h
18865 hdr_dnstap_socket_path="`echo $opt_dnstap_socket_path | sed -e 's/\\\\/\\\\\\\\/g'`"
18868 cat >>confdefs.h <<_ACEOF
18869 #define DNSTAP_SOCKET_PATH "$hdr_dnstap_socket_path"
18873 DNSTAP_SRC="dnstap/dnstap.c dnstap/dnstap.pb-c.c"
18875 DNSTAP_OBJ="dnstap.lo dnstap.pb-c.lo"
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
18888 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
18889 # on openBSD, the implicit rule make $< work.
18890 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
18892 cat >conftest.make <<EOF
18895 conftest.lo foo.lo bla.lo:
18896 if test -f "\$<"; then touch \$@; fi
18900 if test -f "\$<"; then touch \$@; fi
18902 conftest.lo: conftest.dir/conftest.c
18905 touch conftest.dir/conftest.c
18906 rm -f conftest.lo conftest.c
18907 ${MAKE:-make} -f conftest.make >/dev/null
18908 rm -f conftest.make conftest.c conftest.dir/conftest.c
18909 rm -rf conftest.dir
18910 if test ! -f conftest.lo; then
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912 $as_echo "no" >&6; }
18913 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
18914 SOURCEFILE='`cat .source`'
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18917 $as_echo "yes" >&6; }
18918 SOURCEDETERMINE=':'
18925 # see if we want to build the library or everything
18926 ALLTARGET="alltargets"
18927 INSTALLTARGET="install-all"
18929 # Check whether --with-libunbound-only was given.
18930 if test "${with_libunbound_only+set}" = set; then :
18931 withval=$with_libunbound_only;
18932 if test "$withval" = "yes"; then
18934 INSTALLTARGET="install-lib"
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18944 $as_echo "$as_me: Stripping extension flags..." >&6;}
18946 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18947 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18949 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18954 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18955 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18957 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18962 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18963 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18965 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18970 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18971 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18973 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18978 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18979 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18981 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18986 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18987 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18989 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18994 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18995 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18997 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
19002 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
19003 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
19005 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
19010 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
19013 cat >>confdefs.h <<_ACEOF
19014 #define MAXSYSLOGMSGLEN 10240
19022 date=`date +'%b %e, %Y'`
19025 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"
19027 ac_config_headers="$ac_config_headers config.h"
19029 cat >confcache <<\_ACEOF
19030 # This file is a shell script that caches the results of configure
19031 # tests run on this system so they can be shared between configure
19032 # scripts and configure runs, see configure's option --config-cache.
19033 # It is not useful on other systems. If it contains results you don't
19034 # want to keep, you may remove or edit it.
19036 # config.status only pays attention to the cache file if you give it
19037 # the --recheck option to rerun configure.
19039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19041 # following values.
19045 # The following way of writing the cache mishandles newlines in values,
19046 # but we know of no workaround that is simple, portable, and efficient.
19047 # So, we kill variables containing newlines.
19048 # Ultrix sh set writes to stderr and can't be redirected directly,
19049 # and sets the high bit in the cache file unless we assign to the vars.
19051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19052 eval ac_val=\$$ac_var
19056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19060 _ | IFS | as_nl) ;; #(
19061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19062 *) { eval $ac_var=; unset $ac_var;} ;;
19068 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19069 *${as_nl}ac_space=\ *)
19070 # `set' does not quote correctly, so add quotes: double-quote
19071 # substitution turns \\\\ into \\, and sed turns \\ into \.
19074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19077 # `set' quotes correctly as required by POSIX, so do not add quotes.
19078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19092 if test -w "$cache_file"; then
19093 if test "x$cache_file" != "x/dev/null"; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19095 $as_echo "$as_me: updating cache $cache_file" >&6;}
19096 if test ! -f "$cache_file" || test -h "$cache_file"; then
19097 cat confcache >"$cache_file"
19099 case $cache_file in #(
19101 mv -f confcache "$cache_file"$$ &&
19102 mv -f "$cache_file"$$ "$cache_file" ;; #(
19104 mv -f confcache "$cache_file" ;;
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19110 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19116 # Let make expand exec_prefix.
19117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19119 DEFS=-DHAVE_CONFIG_H
19124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19125 # 1. Remove the extension, and $U if already installed.
19126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19129 # will be set to the directory where LIBOBJS objects are built.
19130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19133 LIBOBJS=$ac_libobjs
19135 LTLIBOBJS=$ac_ltlibobjs
19139 : "${CONFIG_STATUS=./config.status}"
19141 ac_clean_files_save=$ac_clean_files
19142 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19144 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19146 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19148 # Generated by $as_me.
19149 # Run this file to recreate the current configuration.
19150 # Compiler output produced by configure, useful for debugging
19151 # configure, is in config.log if it exists.
19154 ac_cs_recheck=false
19157 SHELL=\${CONFIG_SHELL-$SHELL}
19160 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19161 ## -------------------- ##
19162 ## M4sh Initialization. ##
19163 ## -------------------- ##
19165 # Be more Bourne compatible
19166 DUALCASE=1; export DUALCASE # for MKS sh
19167 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19171 # is contrary to our usage. Disable this feature.
19172 alias -g '${1+"$@"}'='"$@"'
19173 setopt NO_GLOB_SUBST
19175 case `(set -o) 2>/dev/null` in #(
19187 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19188 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19191 # Prefer a ksh shell builtin over an external printf program on Solaris,
19192 # but without wasting forks for bash or zsh.
19193 if test -z "$BASH_VERSION$ZSH_VERSION" \
19194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19195 as_echo='print -r --'
19196 as_echo_n='print -rn --'
19197 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19198 as_echo='printf %s\n'
19199 as_echo_n='printf %s'
19201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19202 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19203 as_echo_n='/usr/ucb/echo -n'
19205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19206 as_echo_n_body='eval
19210 expr "X$arg" : "X\\(.*\\)$as_nl";
19211 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19213 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19215 export as_echo_n_body
19216 as_echo_n='sh -c $as_echo_n_body as_echo'
19218 export as_echo_body
19219 as_echo='sh -c $as_echo_body as_echo'
19222 # The user is always right.
19223 if test "${PATH_SEPARATOR+set}" != set; then
19225 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19226 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19233 # We need space, tab and new line, in precisely that order. Quoting is
19234 # there to prevent editors from complaining about space-tab.
19235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19236 # splitting by setting IFS to empty value.)
19239 # Find who we are. Look in the path if we contain no directory separator.
19242 *[\\/]* ) as_myself=$0 ;;
19243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19244 for as_dir in $PATH
19247 test -z "$as_dir" && as_dir=.
19248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19254 # We did not find ourselves, most probably we were run as `sh COMMAND'
19255 # in which case we are not to be found in the path.
19256 if test "x$as_myself" = x; then
19259 if test ! -f "$as_myself"; then
19260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19264 # Unset variables that we do not need and which cause bugs (e.g. in
19265 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19266 # suppresses any "Segmentation fault" message there. '((' could
19267 # trigger a bug in pdksh 5.2.14.
19268 for as_var in BASH_ENV ENV MAIL MAILPATH
19269 do eval test x\${$as_var+set} = xset \
19270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19286 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19287 # ----------------------------------------
19288 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19289 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19290 # script with STATUS, using 1 if that was 0.
19293 as_status=$1; test $as_status -eq 0 && as_status=1
19295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19298 $as_echo "$as_me: error: $2" >&2
19299 as_fn_exit $as_status
19303 # as_fn_set_status STATUS
19304 # -----------------------
19305 # Set $? to STATUS, without forking.
19306 as_fn_set_status ()
19309 } # as_fn_set_status
19311 # as_fn_exit STATUS
19312 # -----------------
19313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19317 as_fn_set_status $1
19323 # Portably unset VAR.
19326 { eval $1=; unset $1;}
19328 as_unset=as_fn_unset
19329 # as_fn_append VAR VALUE
19330 # ----------------------
19331 # Append the text in VALUE to the end of the definition contained in VAR. Take
19332 # advantage of any shell optimizations that allow amortized linear growth over
19333 # repeated appends, instead of the typical quadratic growth present in naive
19335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19336 eval 'as_fn_append ()
19347 # as_fn_arith ARG...
19348 # ------------------
19349 # Perform arithmetic evaluation on the ARGs, and store the result in the
19350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19351 # must be portable across $(()) and expr.
19352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19353 eval 'as_fn_arith ()
19360 as_val=`expr "$@" || test $? -eq 1`
19365 if expr a : '\(a\)' >/dev/null 2>&1 &&
19366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19373 as_basename=basename
19378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19384 as_me=`$as_basename -- "$0" ||
19385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19386 X"$0" : 'X\(//\)$' \| \
19387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19389 sed '/^.*\/\([^/][^/]*\)\/*$/{
19403 # Avoid depending upon Character Ranges.
19404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19407 as_cr_digits='0123456789'
19408 as_cr_alnum=$as_cr_Letters$as_cr_digits
19410 ECHO_C= ECHO_N= ECHO_T=
19411 case `echo -n x` in #(((((
19413 case `echo 'xy\c'` in
19414 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19423 rm -f conf$$ conf$$.exe conf$$.file
19424 if test -d conf$$.dir; then
19425 rm -f conf$$.dir/conf$$.file
19428 mkdir conf$$.dir 2>/dev/null
19430 if (echo >conf$$.file) 2>/dev/null; then
19431 if ln -s conf$$.file conf$$ 2>/dev/null; then
19433 # ... but there are two gotchas:
19434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19436 # In both cases, we have to default to `cp -pR'.
19437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19439 elif ln conf$$.file conf$$ 2>/dev/null; then
19447 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19448 rmdir conf$$.dir 2>/dev/null
19453 # Create "$as_dir" as a directory, including parents if necessary.
19458 -*) as_dir=./$as_dir;;
19460 test -d "$as_dir" || eval $as_mkdir_p || {
19464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19465 *) as_qdir=$as_dir;;
19467 as_dirs="'$as_qdir' $as_dirs"
19468 as_dir=`$as_dirname -- "$as_dir" ||
19469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19470 X"$as_dir" : 'X\(//\)[^/]' \| \
19471 X"$as_dir" : 'X\(//\)$' \| \
19472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19473 $as_echo X"$as_dir" |
19474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19478 /^X\(\/\/\)[^/].*/{
19491 test -d "$as_dir" && break
19493 test -z "$as_dirs" || eval "mkdir $as_dirs"
19494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19498 if mkdir -p . 2>/dev/null; then
19499 as_mkdir_p='mkdir -p "$as_dir"'
19501 test -d ./-p && rmdir ./-p
19506 # as_fn_executable_p FILE
19507 # -----------------------
19508 # Test if FILE is an executable regular file.
19509 as_fn_executable_p ()
19511 test -f "$1" && test -x "$1"
19512 } # as_fn_executable_p
19513 as_test_x='test -x'
19514 as_executable_p=as_fn_executable_p
19516 # Sed expression to map a string onto a valid CPP name.
19517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19519 # Sed expression to map a string onto a valid variable name.
19520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19524 ## ----------------------------------- ##
19525 ## Main body of $CONFIG_STATUS script. ##
19526 ## ----------------------------------- ##
19528 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19531 # Save the log message, to keep $0 and so on meaningful, and to
19532 # report actual input values of CONFIG_FILES etc. instead of their
19533 # values after options handling.
19535 This file was extended by unbound $as_me 1.5.5, which was
19536 generated by GNU Autoconf 2.69. Invocation command line was
19538 CONFIG_FILES = $CONFIG_FILES
19539 CONFIG_HEADERS = $CONFIG_HEADERS
19540 CONFIG_LINKS = $CONFIG_LINKS
19541 CONFIG_COMMANDS = $CONFIG_COMMANDS
19544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19549 case $ac_config_files in *"
19550 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19553 case $ac_config_headers in *"
19554 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 # Files that config.status was made for.
19560 config_files="$ac_config_files"
19561 config_headers="$ac_config_headers"
19562 config_commands="$ac_config_commands"
19566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19568 \`$as_me' instantiates files and other configuration actions
19569 from templates according to the current configuration. Unless the files
19570 and actions are specified as TAGs, all are instantiated by default.
19572 Usage: $0 [OPTION]... [TAG]...
19574 -h, --help print this help, then exit
19575 -V, --version print version number and configuration settings, then exit
19576 --config print configuration, then exit
19577 -q, --quiet, --silent
19578 do not print progress messages
19579 -d, --debug don't remove temporary files
19580 --recheck update $as_me by reconfiguring in the same conditions
19581 --file=FILE[:TEMPLATE]
19582 instantiate the configuration file FILE
19583 --header=FILE[:TEMPLATE]
19584 instantiate the configuration header FILE
19586 Configuration files:
19589 Configuration headers:
19592 Configuration commands:
19595 Report bugs to <unbound-bugs@nlnetlabs.nl>."
19598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19599 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19601 unbound config.status 1.5.5
19602 configured by $0, generated by GNU Autoconf 2.69,
19603 with options \\"\$ac_cs_config\\"
19605 Copyright (C) 2012 Free Software Foundation, Inc.
19606 This config.status script is free software; the Free Software Foundation
19607 gives unlimited permission to copy, distribute and modify it."
19612 test -n "\$AWK" || AWK=awk
19615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19616 # The default lists apply if the user does not specify any file.
19622 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19639 # Handling of the options.
19640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19643 $as_echo "$ac_cs_version"; exit ;;
19644 --config | --confi | --conf | --con | --co | --c )
19645 $as_echo "$ac_cs_config"; exit ;;
19646 --debug | --debu | --deb | --de | --d | -d )
19648 --file | --fil | --fi | --f )
19651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19652 '') as_fn_error $? "missing file argument" ;;
19654 as_fn_append CONFIG_FILES " '$ac_optarg'"
19655 ac_need_defaults=false;;
19656 --header | --heade | --head | --hea )
19659 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19661 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19662 ac_need_defaults=false;;
19664 # Conflict between --help and --header
19665 as_fn_error $? "ambiguous option: \`$1'
19666 Try \`$0 --help' for more information.";;
19667 --help | --hel | -h )
19668 $as_echo "$ac_cs_usage"; exit ;;
19669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19673 # This is an error.
19674 -*) as_fn_error $? "unrecognized option: \`$1'
19675 Try \`$0 --help' for more information." ;;
19677 *) as_fn_append ac_config_targets " $1"
19678 ac_need_defaults=false ;;
19684 ac_configure_extra_args=
19686 if $ac_cs_silent; then
19688 ac_configure_extra_args="$ac_configure_extra_args --silent"
19692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19693 if \$ac_cs_recheck; then
19694 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19696 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19697 CONFIG_SHELL='$SHELL'
19698 export CONFIG_SHELL
19703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19708 ## Running $as_me. ##
19714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19720 # The HP-UX ksh and POSIX shell print the target directory to stdout
19721 # if CDPATH is set.
19722 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19724 sed_quote_subst='$sed_quote_subst'
19725 double_quote_subst='$double_quote_subst'
19726 delay_variable_subst='$delay_variable_subst'
19727 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19728 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19729 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19730 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19731 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19732 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19733 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19734 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19735 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19736 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19737 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19738 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19739 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19740 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19741 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19742 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19743 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19744 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19745 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19746 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19747 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19748 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19749 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19750 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19751 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19752 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19753 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19754 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19755 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19756 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19757 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19758 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19759 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19760 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19761 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19762 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19763 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19764 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19765 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19766 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19767 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19768 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19769 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19770 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19771 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19772 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19773 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19774 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19775 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19776 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19777 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19778 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19779 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19780 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19781 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19782 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19783 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"`'
19784 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19785 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19786 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19787 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19788 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19789 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19790 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19791 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19792 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19793 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19794 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19795 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19796 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19797 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19798 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19799 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19800 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19801 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19802 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19803 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19804 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19805 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19806 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19807 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19808 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19809 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19810 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19811 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19812 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19813 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19814 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19815 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19816 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19817 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19818 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19819 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19820 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19821 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19822 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19823 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19824 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19825 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19826 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19827 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19828 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19829 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19830 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19831 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19832 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19833 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19834 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19835 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19836 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19837 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19838 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19839 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19840 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19841 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19842 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19843 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19844 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19845 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19846 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19847 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19848 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19849 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19850 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19851 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19852 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19853 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19854 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19855 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19856 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19859 LTCFLAGS='$LTCFLAGS'
19860 compiler='$compiler_DEFAULT'
19862 # A function that is used when there is no print builtin or printf.
19863 func_fallback_echo ()
19865 eval 'cat <<_LTECHO_EOF
19870 # Quote evaled strings.
19885 deplibs_check_method \
19890 sharedlib_from_linklib_cmd \
19893 archiver_list_spec \
19899 lt_cv_sys_global_symbol_pipe \
19900 lt_cv_sys_global_symbol_to_cdecl \
19901 lt_cv_sys_global_symbol_to_c_name_address \
19902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19903 nm_file_list_spec \
19904 lt_prog_compiler_no_builtin_flag \
19905 lt_prog_compiler_pic \
19906 lt_prog_compiler_wl \
19907 lt_prog_compiler_static \
19908 lt_cv_prog_compiler_c_o \
19917 export_dynamic_flag_spec \
19918 whole_archive_flag_spec \
19919 compiler_needs_object \
19921 allow_undefined_flag \
19922 no_undefined_flag \
19923 hardcode_libdir_flag_spec \
19924 hardcode_libdir_separator \
19928 variables_saved_for_relink \
19930 library_names_spec \
19932 install_override_mode \
19936 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19937 *[\\\\\\\`\\"\\\$]*)
19938 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19941 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19946 # Double-quote double-evaled strings.
19947 for var in reload_cmds \
19948 old_postinstall_cmds \
19949 old_postuninstall_cmds \
19951 extract_expsyms_cmds \
19952 old_archive_from_new_cmds \
19953 old_archive_from_expsyms_cmds \
19955 archive_expsym_cmds \
19957 module_expsym_cmds \
19958 export_symbols_cmds \
19962 postuninstall_cmds \
19964 sys_lib_search_path_spec \
19965 sys_lib_dlsearch_path_spec; do
19966 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19967 *[\\\\\\\`\\"\\\$]*)
19968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19976 ac_aux_dir='$ac_aux_dir'
19977 xsi_shell='$xsi_shell'
19978 lt_shell_append='$lt_shell_append'
19980 # See if we are running on zsh, and set the options which allow our
19981 # commands through without removal of \ escapes INIT.
19982 if test -n "\${ZSH_VERSION+set}" ; then
19983 setopt NO_GLOB_SUBST
19989 TIMESTAMP='$TIMESTAMP'
19998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20000 # Handling of arguments.
20001 for ac_config_target in $ac_config_targets
20003 case $ac_config_target in
20004 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20005 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
20006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20007 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
20008 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
20009 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
20010 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
20011 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
20012 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
20013 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
20014 "doc/unbound-host.1") CONFIG_FILES="$CONFIG_FILES doc/unbound-host.1" ;;
20015 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
20016 "dnstap/dnstap_config.h") CONFIG_FILES="$CONFIG_FILES dnstap/dnstap_config.h" ;;
20017 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20024 # If the user did not use the arguments to specify the items to instantiate,
20025 # then the envvar interface is used. Set only those that are not.
20026 # We use the long form for the default assignment because of an extremely
20027 # bizarre bug on SunOS 4.1.3.
20028 if $ac_need_defaults; then
20029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20034 # Have a temporary directory for convenience. Make it in the build tree
20035 # simply because there is no reason against having it here, and in addition,
20036 # creating and moving files from /tmp can sometimes cause problems.
20037 # Hook for its removal unless debugging.
20038 # Note that there is a small window in which the directory will not be cleaned:
20039 # after its creation but before its name has been assigned to `$tmp'.
20043 trap 'exit_status=$?
20044 : "${ac_tmp:=$tmp}"
20045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20047 trap 'as_fn_exit 1' 1 2 13 15
20049 # Create a (secure) tmp directory for tmp files.
20052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20056 tmp=./conf$$-$RANDOM
20057 (umask 077 && mkdir "$tmp")
20058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20061 # Set up the scripts for CONFIG_FILES section.
20062 # No need to generate them if there are no CONFIG_FILES.
20063 # This happens for instance with `./config.status config.h'.
20064 if test -n "$CONFIG_FILES"; then
20067 ac_cr=`echo X | tr X '\015'`
20068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20069 # But we know of no other shell where ac_cr would be empty at this
20070 # point, so we can use a bashism as a fallback.
20071 if test "x$ac_cr" = x; then
20072 eval ac_cr=\$\'\\r\'
20074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20078 ac_cs_awk_cr=$ac_cr
20081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20086 echo "cat >conf$$subs.awk <<_ACEOF" &&
20087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20089 } >conf$$subs.sh ||
20090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20093 for ac_last_try in false false false false false :; do
20094 . ./conf$$subs.sh ||
20095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20098 if test $ac_delim_n = $ac_delim_num; then
20100 elif $ac_last_try; then
20101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20106 rm -f conf$$subs.sh
20108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20109 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20113 s/^/S["/; s/!.*/"]=/
20123 s/\(.\{148\}\)..*/\1/
20125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20137 s/\(.\{148\}\)..*/\1/
20139 s/["\\]/\\&/g; s/^/"/; s/$/"/
20143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20148 ' <conf$$subs.awk | sed '
20153 ' >>$CONFIG_STATUS || ac_write_fail=1
20154 rm -f conf$$subs.awk
20155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20157 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20158 for (key in S) S_is_set[key] = 1
20164 nfields = split(line, field, "@")
20166 len = length(field[1])
20167 for (i = 2; i < nfields; i++) {
20169 keylen = length(key)
20170 if (S_is_set[key]) {
20172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20173 len += length(value) + length(field[++i])
20184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20195 # trailing colons and then remove the whole line if VPATH becomes empty
20196 # (actually we leave an empty line to preserve line numbers).
20197 if test "x$srcdir" = x.; then
20198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217 fi # test -n "$CONFIG_FILES"
20219 # Set up the scripts for CONFIG_HEADERS section.
20220 # No need to generate them if there are no CONFIG_HEADERS.
20221 # This happens for instance with `./config.status Makefile'.
20222 if test -n "$CONFIG_HEADERS"; then
20223 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20227 # Transform confdefs.h into an awk script `defines.awk', embedded as
20228 # here-document in config.status, that substitutes the proper values into
20229 # config.h.in to produce config.h.
20231 # Create a delimiter string that does not exist in confdefs.h, to ease
20232 # handling of long lines.
20234 for ac_last_try in false false :; do
20235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20236 if test -z "$ac_tt"; then
20238 elif $ac_last_try; then
20239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20245 # For the awk script, D is an array of macro values keyed by name,
20246 # likewise P contains macro parameters if any. Preserve backslash
20247 # newline sequences.
20249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20251 s/.\{148\}/&'"$ac_delim"'/g
20254 s/^[ ]*#[ ]*define[ ][ ]*/ /
20261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20268 D["\1"]=" \3\\\\\\n"\\/p
20270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20275 s/.\{148\}/&'"$ac_delim"'/g
20280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20285 ' <confdefs.h | sed '
20286 s/'"$ac_delim"'/"\\\
20287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20290 for (key in D) D_is_set[key] = 1
20293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20295 split(line, arg, " ")
20296 if (arg[1] == "#") {
20300 defundef = substr(arg[1], 2)
20303 split(mac1, mac2, "(") #)
20305 prefix = substr(line, 1, index(line, defundef) - 1)
20306 if (D_is_set[macro]) {
20307 # Preserve the white space surrounding the "#".
20308 print prefix "define", macro P[macro] D[macro]
20311 # Replace #undef with comments. This is necessary, for example,
20312 # in the case of _POSIX_SOURCE, which is predefined and required
20313 # on some systems where configure will not decide to define it.
20314 if (defundef == "undef") {
20315 print "/*", prefix defundef, macro, "*/"
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20325 fi # test -n "$CONFIG_HEADERS"
20328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20333 :[FHLC]) ac_mode=$ac_tag; continue;;
20335 case $ac_mode$ac_tag in
20337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20338 :[FH]-) ac_tag=-:-;;
20339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20356 -) ac_f="$ac_tmp/stdin";;
20357 *) # Look for the file first in the build tree, then in the source tree
20358 # (if the path is not absolute). The absolute path cannot be DOS-style,
20359 # because $ac_f cannot contain `:'.
20363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20368 as_fn_append ac_file_inputs " '$ac_f'"
20371 # Let's still pretend it is `configure' which instantiates (i.e., don't
20372 # use $as_me), people would be surprised to read:
20373 # /* config.h. Generated by config.status. */
20374 configure_input='Generated from '`
20375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20377 if test x"$ac_file" != x-; then
20378 configure_input="$ac_file. $configure_input"
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20380 $as_echo "$as_me: creating $ac_file" >&6;}
20382 # Neutralize special characters interpreted by sed in replacement strings.
20383 case $configure_input in #(
20384 *\&* | *\|* | *\\* )
20385 ac_sed_conf_input=`$as_echo "$configure_input" |
20386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20387 *) ac_sed_conf_input=$configure_input;;
20391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20397 ac_dir=`$as_dirname -- "$ac_file" ||
20398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20399 X"$ac_file" : 'X\(//\)[^/]' \| \
20400 X"$ac_file" : 'X\(//\)$' \| \
20401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20402 $as_echo X"$ac_file" |
20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20407 /^X\(\/\/\)[^/].*/{
20420 as_dir="$ac_dir"; as_fn_mkdir_p
20424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20427 # A ".." for each directory in $ac_dir_suffix.
20428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20429 case $ac_top_builddir_sub in
20430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20434 ac_abs_top_builddir=$ac_pwd
20435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20436 # for backward compatibility:
20437 ac_top_builddir=$ac_top_build_prefix
20440 .) # We are building in place.
20442 ac_top_srcdir=$ac_top_builddir_sub
20443 ac_abs_top_srcdir=$ac_pwd ;;
20444 [\\/]* | ?:[\\/]* ) # Absolute name.
20445 ac_srcdir=$srcdir$ac_dir_suffix;
20446 ac_top_srcdir=$srcdir
20447 ac_abs_top_srcdir=$srcdir ;;
20448 *) # Relative name.
20449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20450 ac_top_srcdir=$ac_top_build_prefix$srcdir
20451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20465 # If the template does not know about datarootdir, expand it.
20466 # FIXME: This hack should be removed a few years after 2.60.
20467 ac_datarootdir_hack=; ac_datarootdir_seen=
20478 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20479 *datarootdir*) ac_datarootdir_seen=yes;;
20480 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20482 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20485 ac_datarootdir_hack='
20486 s&@datadir@&$datadir&g
20487 s&@docdir@&$docdir&g
20488 s&@infodir@&$infodir&g
20489 s&@localedir@&$localedir&g
20490 s&@mandir@&$mandir&g
20491 s&\\\${datarootdir}&$datarootdir&g' ;;
20495 # Neutralize VPATH when `$srcdir' = `.'.
20496 # Shell code in configure.ac might set extrasub.
20497 # FIXME: do we really want to maintain this feature?
20498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20499 ac_sed_extra="$ac_vpsub
20502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20505 s|@configure_input@|$ac_sed_conf_input|;t t
20506 s&@top_builddir@&$ac_top_builddir_sub&;t t
20507 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20508 s&@srcdir@&$ac_srcdir&;t t
20509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20510 s&@top_srcdir@&$ac_top_srcdir&;t t
20511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20512 s&@builddir@&$ac_builddir&;t t
20513 s&@abs_builddir@&$ac_abs_builddir&;t t
20514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20515 $ac_datarootdir_hack
20517 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20518 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20521 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20522 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20523 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20525 which seems to be undefined. Please make sure it is defined" >&5
20526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20527 which seems to be undefined. Please make sure it is defined" >&2;}
20529 rm -f "$ac_tmp/stdin"
20531 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20532 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20540 if test x"$ac_file" != x-; then
20542 $as_echo "/* $configure_input */" \
20543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20544 } >"$ac_tmp/config.h" \
20545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20546 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20548 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20551 mv "$ac_tmp/config.h" "$ac_file" \
20552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20555 $as_echo "/* $configure_input */" \
20556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20557 || as_fn_error $? "could not create -" "$LINENO" 5
20561 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20562 $as_echo "$as_me: executing $ac_file commands" >&6;}
20567 case $ac_file$ac_mode in
20570 # See if we are running on zsh, and set the options which allow our
20571 # commands through without removal of \ escapes.
20572 if test -n "${ZSH_VERSION+set}" ; then
20573 setopt NO_GLOB_SUBST
20576 cfgfile="${ofile}T"
20577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20580 cat <<_LT_EOF >> "$cfgfile"
20583 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20584 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20589 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20591 # Written by Gordon Matzigkeit, 1996
20593 # This file is part of GNU Libtool.
20595 # GNU Libtool is free software; you can redistribute it and/or
20596 # modify it under the terms of the GNU General Public License as
20597 # published by the Free Software Foundation; either version 2 of
20598 # the License, or (at your option) any later version.
20600 # As a special exception to the GNU General Public License,
20601 # if you distribute this file as part of a program or library that
20602 # is built using GNU Libtool, you may include this file under the
20603 # same distribution terms that you use for the rest of that program.
20605 # GNU Libtool is distributed in the hope that it will be useful,
20606 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20608 # GNU General Public License for more details.
20610 # You should have received a copy of the GNU General Public License
20611 # along with GNU Libtool; see the file COPYING. If not, a copy
20612 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20613 # obtained by writing to the Free Software Foundation, Inc.,
20614 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20617 # The names of the tagged configurations supported by this script.
20620 # ### BEGIN LIBTOOL CONFIG
20622 # Which release of libtool.m4 was used?
20623 macro_version=$macro_version
20624 macro_revision=$macro_revision
20626 # Whether or not to build shared libraries.
20627 build_libtool_libs=$enable_shared
20629 # Whether or not to build static libraries.
20630 build_old_libs=$enable_static
20632 # What type of objects to build.
20635 # Whether or not to optimize for fast installation.
20636 fast_install=$enable_fast_install
20638 # Shell to use when invoking shell scripts.
20641 # An echo program that protects backslashes.
20644 # The PATH separator for the build system.
20645 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20648 host_alias=$host_alias
20652 # The build system.
20653 build_alias=$build_alias
20657 # A sed program that does not truncate output.
20660 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20661 Xsed="\$SED -e 1s/^X//"
20663 # A grep program that handles long lines.
20669 # A literal string matcher.
20672 # A BSD- or MS-compatible name lister.
20675 # Whether we need soft or hard links.
20678 # What is the maximum length of a command?
20679 max_cmd_len=$max_cmd_len
20681 # Object file suffix (normally "o").
20684 # Executable file suffix (normally "").
20687 # whether the shell understands "unset".
20690 # turn spaces into newlines.
20693 # turn newlines into spaces.
20696 # convert \$build file names to \$host format.
20697 to_host_file_cmd=$lt_cv_to_host_file_cmd
20699 # convert \$build files to toolchain format.
20700 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20702 # An object symbol dumper.
20703 OBJDUMP=$lt_OBJDUMP
20705 # Method to check whether dependent libraries are shared objects.
20706 deplibs_check_method=$lt_deplibs_check_method
20708 # Command to use when deplibs_check_method = "file_magic".
20709 file_magic_cmd=$lt_file_magic_cmd
20711 # How to find potential files when deplibs_check_method = "file_magic".
20712 file_magic_glob=$lt_file_magic_glob
20714 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20715 want_nocaseglob=$lt_want_nocaseglob
20717 # DLL creation program.
20718 DLLTOOL=$lt_DLLTOOL
20720 # Command to associate shared and link libraries.
20721 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20726 # Flags to create an archive.
20727 AR_FLAGS=$lt_AR_FLAGS
20729 # How to feed a file listing to the archiver.
20730 archiver_list_spec=$lt_archiver_list_spec
20732 # A symbol stripping program.
20735 # Commands used to install an old-style archive.
20737 old_postinstall_cmds=$lt_old_postinstall_cmds
20738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20740 # Whether to use a lock for old archive extraction.
20741 lock_old_archive_extraction=$lock_old_archive_extraction
20746 # LTCC compiler flags.
20747 LTCFLAGS=$lt_CFLAGS
20749 # Take the output of nm and produce a listing of raw symbols and C names.
20750 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20752 # Transform the output of nm in a proper C declaration.
20753 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20755 # Transform the output of nm in a C name address pair.
20756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20758 # Transform the output of nm in a C name address pair when lib prefix is needed.
20759 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20761 # Specify filename containing input files for \$NM.
20762 nm_file_list_spec=$lt_nm_file_list_spec
20764 # The root where to search for dependent libraries,and in which our libraries should be installed.
20765 lt_sysroot=$lt_sysroot
20767 # The name of the directory that contains temporary libtool files.
20770 # Used to examine libraries when file_magic_cmd begins with "file".
20771 MAGIC_CMD=$MAGIC_CMD
20773 # Must we lock files when doing compilation?
20774 need_locks=$lt_need_locks
20777 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20779 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20780 DSYMUTIL=$lt_DSYMUTIL
20782 # Tool to change global to local symbols on Mac OS X.
20785 # Tool to manipulate fat objects and archives on Mac OS X.
20788 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20791 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20792 OTOOL64=$lt_OTOOL64
20794 # Old archive suffix (normally "a").
20797 # Shared library suffix (normally ".so").
20798 shrext_cmds=$lt_shrext_cmds
20800 # The commands to extract the exported symbol list from a shared archive.
20801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20803 # Variables whose values should be saved in libtool wrapper scripts and
20804 # restored at link time.
20805 variables_saved_for_relink=$lt_variables_saved_for_relink
20807 # Do we need the "lib" prefix for modules?
20808 need_lib_prefix=$need_lib_prefix
20810 # Do we need a version for libraries?
20811 need_version=$need_version
20813 # Library versioning type.
20814 version_type=$version_type
20816 # Shared library runtime path variable.
20817 runpath_var=$runpath_var
20819 # Shared library path variable.
20820 shlibpath_var=$shlibpath_var
20822 # Is shlibpath searched before the hard-coded library search path?
20823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20825 # Format of library name prefix.
20826 libname_spec=$lt_libname_spec
20828 # List of archive names. First name is the real one, the rest are links.
20829 # The last name is the one that the linker finds with -lNAME
20830 library_names_spec=$lt_library_names_spec
20832 # The coded name of the library, if different from the real name.
20833 soname_spec=$lt_soname_spec
20835 # Permission mode override for installation of shared libraries.
20836 install_override_mode=$lt_install_override_mode
20838 # Command to use after installation of a shared archive.
20839 postinstall_cmds=$lt_postinstall_cmds
20841 # Command to use after uninstallation of a shared archive.
20842 postuninstall_cmds=$lt_postuninstall_cmds
20844 # Commands used to finish a libtool library installation in a directory.
20845 finish_cmds=$lt_finish_cmds
20847 # As "finish_cmds", except a single script fragment to be evaled but
20849 finish_eval=$lt_finish_eval
20851 # Whether we should hardcode library paths into libraries.
20852 hardcode_into_libs=$hardcode_into_libs
20854 # Compile-time system search path for libraries.
20855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20857 # Run-time system search path for libraries.
20858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20860 # Whether dlopen is supported.
20861 dlopen_support=$enable_dlopen
20863 # Whether dlopen of programs is supported.
20864 dlopen_self=$enable_dlopen_self
20866 # Whether dlopen of statically linked programs is supported.
20867 dlopen_self_static=$enable_dlopen_self_static
20869 # Commands to strip libraries.
20870 old_striplib=$lt_old_striplib
20871 striplib=$lt_striplib
20874 # The linker used to build libraries.
20877 # How to create reloadable object files.
20878 reload_flag=$lt_reload_flag
20879 reload_cmds=$lt_reload_cmds
20881 # Commands used to build an old-style archive.
20882 old_archive_cmds=$lt_old_archive_cmds
20884 # A language specific compiler.
20887 # Is the compiler the GNU compiler?
20890 # Compiler flag to turn off builtin functions.
20891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20893 # Additional compiler flags for building library objects.
20894 pic_flag=$lt_lt_prog_compiler_pic
20896 # How to pass a linker flag through the compiler.
20897 wl=$lt_lt_prog_compiler_wl
20899 # Compiler flag to prevent dynamic linking.
20900 link_static_flag=$lt_lt_prog_compiler_static
20902 # Does compiler simultaneously support -c and -o options?
20903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20905 # Whether or not to add -lc for building shared libraries.
20906 build_libtool_need_lc=$archive_cmds_need_lc
20908 # Whether or not to disallow shared libs when runtime libs are static.
20909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20911 # Compiler flag to allow reflexive dlopens.
20912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20914 # Compiler flag to generate shared objects directly from archives.
20915 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20917 # Whether the compiler copes with passing no objects directly.
20918 compiler_needs_object=$lt_compiler_needs_object
20920 # Create an old-style archive from a shared archive.
20921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20923 # Create a temporary old-style archive to link instead of a shared archive.
20924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20926 # Commands used to build a shared archive.
20927 archive_cmds=$lt_archive_cmds
20928 archive_expsym_cmds=$lt_archive_expsym_cmds
20930 # Commands used to build a loadable module if different from building
20931 # a shared archive.
20932 module_cmds=$lt_module_cmds
20933 module_expsym_cmds=$lt_module_expsym_cmds
20935 # Whether we are building with GNU ld or not.
20936 with_gnu_ld=$lt_with_gnu_ld
20938 # Flag that allows shared libraries with undefined symbols to be built.
20939 allow_undefined_flag=$lt_allow_undefined_flag
20941 # Flag that enforces no undefined symbols.
20942 no_undefined_flag=$lt_no_undefined_flag
20944 # Flag to hardcode \$libdir into a binary during linking.
20945 # This must work even if \$libdir does not exist
20946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20948 # Whether we need a single "-rpath" flag with a separated argument.
20949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20952 # DIR into the resulting binary.
20953 hardcode_direct=$hardcode_direct
20955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20956 # DIR into the resulting binary and the resulting library dependency is
20957 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20958 # library is relocated.
20959 hardcode_direct_absolute=$hardcode_direct_absolute
20961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20962 # into the resulting binary.
20963 hardcode_minus_L=$hardcode_minus_L
20965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20966 # into the resulting binary.
20967 hardcode_shlibpath_var=$hardcode_shlibpath_var
20969 # Set to "yes" if building a shared library automatically hardcodes DIR
20970 # into the library and all subsequent libraries and executables linked
20972 hardcode_automatic=$hardcode_automatic
20974 # Set to yes if linker adds runtime paths of dependent libraries
20975 # to runtime path list.
20976 inherit_rpath=$inherit_rpath
20978 # Whether libtool must link a program against all its dependency libraries.
20979 link_all_deplibs=$link_all_deplibs
20981 # Set to "yes" if exported symbols are required.
20982 always_export_symbols=$always_export_symbols
20984 # The commands to list exported symbols.
20985 export_symbols_cmds=$lt_export_symbols_cmds
20987 # Symbols that should not be listed in the preloaded symbols.
20988 exclude_expsyms=$lt_exclude_expsyms
20990 # Symbols that must always be exported.
20991 include_expsyms=$lt_include_expsyms
20993 # Commands necessary for linking programs (against libraries) with templates.
20994 prelink_cmds=$lt_prelink_cmds
20996 # Commands necessary for finishing linking programs.
20997 postlink_cmds=$lt_postlink_cmds
20999 # Specify filename containing input files.
21000 file_list_spec=$lt_file_list_spec
21002 # How to hardcode a shared library path into an executable.
21003 hardcode_action=$hardcode_action
21005 # ### END LIBTOOL CONFIG
21011 cat <<\_LT_EOF >> "$cfgfile"
21012 # AIX sometimes has problems with the GCC collect2 program. For some
21013 # reason, if we set the COLLECT_NAMES environment variable, the problems
21014 # vanish in a puff of smoke.
21015 if test "X${COLLECT_NAMES+set}" != Xset; then
21017 export COLLECT_NAMES
21024 ltmain="$ac_aux_dir/ltmain.sh"
21027 # We use sed instead of cat because bash on DJGPP gets confused if
21028 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21029 # text mode, it properly converts lines to CR/LF. This bash problem
21030 # is reportedly fixed, but why not run on old versions too?
21031 sed '$q' "$ltmain" >> "$cfgfile" \
21032 || (rm -f "$cfgfile"; exit 1)
21034 if test x"$xsi_shell" = xyes; then
21035 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21039 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21040 \ * ) func_dirname_result="${3}" ;;\
21042 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21043 && mv -f "$cfgfile.tmp" "$cfgfile" \
21044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21045 test 0 -eq $? || _lt_function_replace_fail=:
21048 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21051 \ func_basename_result="${1##*/}"\
21052 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21053 && mv -f "$cfgfile.tmp" "$cfgfile" \
21054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21055 test 0 -eq $? || _lt_function_replace_fail=:
21058 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21059 func_dirname_and_basename ()\
21062 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21063 \ * ) func_dirname_result="${3}" ;;\
21065 \ func_basename_result="${1##*/}"\
21066 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21067 && mv -f "$cfgfile.tmp" "$cfgfile" \
21068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21069 test 0 -eq $? || _lt_function_replace_fail=:
21072 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21075 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21076 \ # positional parameters, so assign one to ordinary parameter first.\
21077 \ func_stripname_result=${3}\
21078 \ func_stripname_result=${func_stripname_result#"${1}"}\
21079 \ func_stripname_result=${func_stripname_result%"${2}"}\
21080 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21081 && mv -f "$cfgfile.tmp" "$cfgfile" \
21082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21083 test 0 -eq $? || _lt_function_replace_fail=:
21086 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21087 func_split_long_opt ()\
21089 \ func_split_long_opt_name=${1%%=*}\
21090 \ func_split_long_opt_arg=${1#*=}\
21091 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21092 && mv -f "$cfgfile.tmp" "$cfgfile" \
21093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21094 test 0 -eq $? || _lt_function_replace_fail=:
21097 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21098 func_split_short_opt ()\
21100 \ func_split_short_opt_arg=${1#??}\
21101 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21102 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21103 && mv -f "$cfgfile.tmp" "$cfgfile" \
21104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21105 test 0 -eq $? || _lt_function_replace_fail=:
21108 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21112 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21113 \ *) func_lo2o_result=${1} ;;\
21115 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21116 && mv -f "$cfgfile.tmp" "$cfgfile" \
21117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21118 test 0 -eq $? || _lt_function_replace_fail=:
21121 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21124 func_xform_result=${1%.*}.lo\
21125 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21126 && mv -f "$cfgfile.tmp" "$cfgfile" \
21127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21128 test 0 -eq $? || _lt_function_replace_fail=:
21131 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21134 func_arith_result=$(( $* ))\
21135 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21136 && mv -f "$cfgfile.tmp" "$cfgfile" \
21137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21138 test 0 -eq $? || _lt_function_replace_fail=:
21141 sed -e '/^func_len ()$/,/^} # func_len /c\
21144 func_len_result=${#1}\
21145 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21146 && mv -f "$cfgfile.tmp" "$cfgfile" \
21147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21148 test 0 -eq $? || _lt_function_replace_fail=:
21152 if test x"$lt_shell_append" = xyes; then
21153 sed -e '/^func_append ()$/,/^} # func_append /c\
21156 eval "${1}+=\\${2}"\
21157 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21158 && mv -f "$cfgfile.tmp" "$cfgfile" \
21159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21160 test 0 -eq $? || _lt_function_replace_fail=:
21163 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21164 func_append_quoted ()\
21166 \ func_quote_for_eval "${2}"\
21167 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21168 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21169 && mv -f "$cfgfile.tmp" "$cfgfile" \
21170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21171 test 0 -eq $? || _lt_function_replace_fail=:
21174 # Save a `func_append' function call where possible by direct use of '+='
21175 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21176 && mv -f "$cfgfile.tmp" "$cfgfile" \
21177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21178 test 0 -eq $? || _lt_function_replace_fail=:
21180 # Save a `func_append' function call even when '+=' is not available
21181 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21182 && mv -f "$cfgfile.tmp" "$cfgfile" \
21183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21184 test 0 -eq $? || _lt_function_replace_fail=:
21187 if test x"$_lt_function_replace_fail" = x":"; then
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21189 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21193 mv -f "$cfgfile" "$ofile" ||
21194 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21199 sed < libtool > libtool-2 \
21200 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
21201 mv libtool-2 libtool
21203 libtool="./libtool"
21212 ac_clean_files=$ac_clean_files_save
21214 test $ac_write_fail = 0 ||
21215 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21218 # configure is writing to config.log, and then calls config.status.
21219 # config.status does its own redirection, appending to config.log.
21220 # Unfortunately, on DOS this fails, as config.log is still kept open
21221 # by configure, so config.status won't be able to write to it; its
21222 # output is simply discarded. So we exec the FD to /dev/null,
21223 # effectively closing config.log, so it can be properly (re)opened and
21224 # appended to by config.status. When coming back to configure, we
21225 # need to make the FD available again.
21226 if test "$no_create" != yes; then
21228 ac_config_status_args=
21229 test "$silent" = yes &&
21230 ac_config_status_args="$ac_config_status_args --quiet"
21232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21235 # would make configure fail if this is the last instruction.
21236 $ac_cs_success || as_fn_exit 1
21238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}