2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unbound 1.4.20.
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.4.20'
594 PACKAGE_STRING='unbound 1.4.20'
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
641 COMMON_OBJ_ALL_SYMBOLS
643 WIN_CHECKCONF_OBJ_LINK
645 WIN_UBANCHOR_OBJ_LINK
714 UNBOUND_ROOTCERT_FILE
773 program_transform_name
786 enable_option_checking
808 enable_alloc_nonregional
826 ac_precious_vars='build_alias
840 # Initialize some variables set by options.
842 ac_init_version=false
843 ac_unrecognized_opts=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name=s,x,x,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of unbound 1.4.20:";;
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-checking Enable warnings, asserts, makefile-dependencies
1453 --enable-debug same as enable-checking
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --disable-rpath disable hardcoded rpath (default=enabled)
1460 --disable-largefile omit support for large files
1461 --enable-alloc-checks enable to memory allocation statistics, for debug
1463 --enable-alloc-lite enable for lightweight alloc assertions, for debug
1465 --enable-alloc-nonregional
1466 enable nonregional allocs, slow but exposes regional
1467 allocations to other memory purifiers, for debug
1469 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1470 --disable-gost Disable GOST support
1471 --disable-ecdsa Disable ECDSA support
1472 --enable-static-exe enable to compile executables statically against
1473 event, ldns libs, for debug purposes
1474 --enable-lock-checks enable to check lock and unlock calls, for debug
1476 --enable-allsymbols export all symbols from libunbound and link binaries
1477 to it, smaller install size but libunbound export
1478 table is polluted by internal symbols
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-conf-file=path Pathname to the Unbound configuration file
1484 --with-run-dir=path set default directory to chdir to (by default dir
1486 --with-chroot-dir=path set default directory to chroot to (by default same
1488 --with-share-dir=path set default directory with shared data (by default
1489 same as share/unbound)
1490 --with-pidfile=filename set default pathname to unbound pidfile (default
1491 run-dir/unbound.pid)
1492 --with-rootkey-file=filename
1493 set default pathname to root key file (default
1494 run-dir/root.key). This file is read and written.
1495 --with-rootcert-file=filename
1496 set default pathname to root update certificate file
1497 (default run-dir/icannbundle.pem). This file need
1498 not exist if you are content with the builtin.
1499 --with-username=user set default user that unbound changes to (default
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506 --with-pthreads use pthreads library, or --without-pthreads to
1507 disable threading support.
1508 --with-solaris-threads use solaris native thread library.
1509 --with-pyunbound build PyUnbound, or --without-pyunbound to skip it.
1511 --with-pythonmodule build Python module, or --without-pythonmodule to
1512 disable script engine. (default=no)
1513 --with-nss=path use libnss instead of openssl, installed at path.
1514 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1515 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1517 --with-libevent=pathname
1518 use libevent (will check /usr/local /opt/local
1519 /usr/lib /usr/pkg /usr/sfw /usr or you can specify
1520 an explicit path). Slower, but allows use of large
1521 outgoing port ranges.
1522 --with-libexpat=path specify explicit path for libexpat.
1523 --with-libunbound-only do not build daemon and tool programs
1524 --with-ldns=PATH specify prefix of path of ldns library to use
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 YACC The `Yet Another Compiler Compiler' implementation to use.
1536 Defaults to the first program found out of: `bison -y', `byacc',
1538 YFLAGS The list of arguments that will be passed by default to $YACC.
1539 This script will default YFLAGS to the empty string to avoid a
1540 default value of `-d' given by some make applications.
1542 The installed Python version to use, for example '2.3'. This
1543 string will be appended to the Python interpreter canonical
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to <unbound-bugs@nlnetlabs.nl>.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 unbound configure 1.4.20
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1706 ac_fn_c_check_header_mongrel ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1730 ac_header_compiler=no
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1746 ac_header_preproc=no
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ( $as_echo "## ---------------------------------------- ##
1772 ## Report this to unbound-bugs@nlnetlabs.nl ##
1773 ## ---------------------------------------- ##"
1774 ) | sed "s/^/$as_me: WARNING: /" >&2
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 eval "$3=\$ac_header_compiler"
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_header_mongrel
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_compile
1865 # ac_fn_c_try_link LINENO
1866 # -----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 test -x conftest$ac_exeext
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1909 } # ac_fn_c_try_link
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1926 #define $2 innocuous_$2
1928 /* System header to define __stub macros and hopefully few prototypes,
1929 which can conflict with char $2 (); below.
1930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931 <limits.h> exists even on freestanding compilers. */
1934 # include <limits.h>
1936 # include <assert.h>
1941 /* Override any GCC internal prototype to avoid an error.
1942 Use char because int might match the return type of a GCC
1943 builtin and then its argument prototype would still apply. */
1948 /* The GNU C library defines this for functions which it implements
1949 to always fail with ENOSYS. Some functions are actually named
1950 something starting with __ and the normal name is an alias. */
1951 #if defined __stub_$2 || defined __stub___$2
1963 if ac_fn_c_try_link "$LINENO"; then :
1968 rm -f core conftest.err conftest.$ac_objext \
1969 conftest$ac_exeext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 } # ac_fn_c_check_func
1978 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1979 # -------------------------------------------
1980 # Tests whether TYPE exists after having included INCLUDES, setting cache
1981 # variable VAR accordingly.
1982 ac_fn_c_check_type ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 } # ac_fn_c_check_type
2032 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2033 # ---------------------------------------------
2034 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2036 ac_fn_c_check_decl ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 as_decl_name=`echo $2|sed 's/ *(.*//'`
2040 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2042 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 #ifndef $as_decl_name
2054 (void) $as_decl_use;
2056 (void) $as_decl_name;
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_decl
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2113 if (sizeof ac_aggr.$3)
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_member
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2138 It was created by unbound $as_me 1.4.20, which was
2139 generated by GNU Autoconf 2.69. Invocation command line was
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_must_keep_next=false
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 -* ) ac_must_keep_next=true ;;
2231 as_fn_append ac_configure_args " '$ac_arg'"
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2249 $as_echo "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 $as_echo "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2289 for ac_var in $ac_subst_vars
2291 eval ac_val=\$$ac_var
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 $as_echo "$ac_var='\''$ac_val'\''"
2299 if test -n "$ac_subst_files"; then
2300 $as_echo "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2304 for ac_var in $ac_subst_files
2306 eval ac_val=\$$ac_var
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -s confdefs.h; then
2316 $as_echo "## ----------- ##
2323 test "$ac_signal" != 0 &&
2324 $as_echo "$as_me: caught signal $ac_signal"
2325 $as_echo "$as_me: exit $exit_status"
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2339 $as_echo "/* confdefs.h */" > confdefs.h
2341 # Predefined preprocessor variables.
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_URL "$PACKAGE_URL"
2368 # Let the site file select an alternate cache file if it wants to.
2369 # Prefer an explicitly selected file to automatically selected ones.
2372 if test -n "$CONFIG_SITE"; then
2373 # We do not want a PATH search for config.site.
2374 case $CONFIG_SITE in #((
2375 -*) ac_site_file1=./$CONFIG_SITE;;
2376 */*) ac_site_file1=$CONFIG_SITE;;
2377 *) ac_site_file1=./$CONFIG_SITE;;
2379 elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 test "x$ac_site_file" = xNONE && continue
2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 as_fn_error $? "failed to load site script $ac_site_file
2397 See \`config.log' for more details" "$LINENO" 5; }
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special files
2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418 # Check that the precious variables saved in the cache have kept the same
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2426 case $ac_old_set,$ac_new_set in
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x $ac_old_val`
2440 ac_new_val_w=`echo x $ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444 ac_cache_corrupted=:
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2451 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468 if $ac_cache_corrupted; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 LIBUNBOUND_CURRENT=3
2488 LIBUNBOUND_REVISION=5
2497 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2502 # 1.4.0-snapshots had 1:5:0
2503 # 1.4.0 had 1:5:0 (not 2:0:0) # ub_result.why_bogus
2517 # and 1.4.13p1 and 1.4.13.p2
2519 # 1.4.15 had 3:0:1 # adds ub_version()
2524 # 1.4.20 had 4:0:2 # adds libunbound.ttl
2526 # Current -- the number of the binary API that we're implementing
2527 # Revision -- which iteration of the implementation of the binary
2528 # API are we supplying?
2529 # Age -- How many previous binary API versions do we also
2532 # If we release a new version that does not change the binary API,
2533 # increment Revision.
2535 # If we release a new version that changes the binary API, but does
2536 # not break programs compiled against the old binary API, increment
2537 # Current and Age. Set Revision to 0, since this is the first
2538 # implementation of the new API.
2540 # Otherwise, we're changing the binary API and breaking bakward
2541 # compatibility with old binaries. Increment Current. Set Age to 0,
2542 # since we're backward compatible with no previous APIs. Set Revision
2550 while test -n "$1"; do
2551 cmdline="$cmdline '"`echo $1 | sed -e 's/\\\\/\\\\\\\\/g' | sed -e 's/"/\\\\"/g' `"'"
2557 cat >>confdefs.h <<_ACEOF
2558 #define CONFIGURE_BUILD_WITH "$cmdline"
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2590 # Make sure we can run config.sub.
2591 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2595 $as_echo_n "checking build system type... " >&6; }
2596 if ${ac_cv_build+:} false; then :
2597 $as_echo_n "(cached) " >&6
2599 ac_build_alias=$build_alias
2600 test "x$ac_build_alias" = x &&
2601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2602 test "x$ac_build_alias" = x &&
2603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2604 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2609 $as_echo "$ac_cv_build" >&6; }
2610 case $ac_cv_build in
2612 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2615 ac_save_IFS=$IFS; IFS='-'
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2625 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2629 $as_echo_n "checking host system type... " >&6; }
2630 if ${ac_cv_host+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 if test "x$host_alias" = x; then
2634 ac_cv_host=$ac_cv_build
2636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2642 $as_echo "$ac_cv_host" >&6; }
2645 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2648 ac_save_IFS=$IFS; IFS='-'
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2658 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2662 $as_echo_n "checking target system type... " >&6; }
2663 if ${ac_cv_target+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test "x$target_alias" = x; then
2667 ac_cv_target=$ac_cv_host
2669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2675 $as_echo "$ac_cv_target" >&6; }
2676 case $ac_cv_target in
2678 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2680 target=$ac_cv_target
2681 ac_save_IFS=$IFS; IFS='-'
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2691 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2694 # The aliases save the names the user supplied, while $host etc.
2695 # will get canonicalized.
2696 test -n "$target_alias" &&
2697 test "$program_prefix$program_suffix$program_transform_name" = \
2699 program_prefix=${target_alias}-
2701 cat >>confdefs.h <<_ACEOF
2702 #define CONFIGURE_TARGET "$target"
2706 cat >>confdefs.h <<_ACEOF
2707 #define CONFIGURE_DATE "`date`"
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2756 if test -z "$ac_cv_prog_CC"; then
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2794 if test "x$ac_ct_CC" = x; then
2797 case $cross_compiling:$ac_tool_warned in
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2809 if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2906 if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in cl.exe
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$CC" && break
2950 if test -z "$CC"; then
2952 for ac_prog in cl.exe
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2991 test -n "$ac_ct_CC" && break
2994 if test "x$ac_ct_CC" = x; then
2997 case $cross_compiling:$ac_tool_warned in
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error $? "no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details" "$LINENO" 5; }
3015 # Provide some information about the compiler.
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3019 for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3029 if test -s conftest.err; then
3031 ... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
3035 rm -f conftest.er1 conftest.err
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3051 ac_clean_files_save=$ac_clean_files
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3053 # Try to create an executable without -o first, disregard a.out.
3054 # It will help us diagnose broken compilers, and finding out an intuition
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057 $as_echo_n "checking whether the C compiler works... " >&6; }
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3060 # The possible output files:
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3064 for ac_file in $ac_files
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 if { { ac_try="$ac_link_default"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link_default") 2>&5
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3089 for ac_file in $ac_files ''
3091 test -f "$ac_file" || continue
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3096 # We found the default executable, but exeext='' is most
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3119 if test -z "$ac_file"; then :
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error 77 "C compiler cannot create executables
3128 See \`config.log' for more details" "$LINENO" 5; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136 $as_echo "$ac_file" >&6; }
3137 ac_exeext=$ac_cv_exeext
3139 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3140 ac_clean_files=$ac_clean_files_save
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142 $as_echo_n "checking for suffix of executables... " >&6; }
3143 if { { ac_try="$ac_link"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details" "$LINENO" 5; }
3173 rm -f conftest conftest$ac_cv_exeext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175 $as_echo "$ac_cv_exeext" >&6; }
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3186 FILE *f = fopen ("conftest.out", "w");
3187 return ferror (f) || fclose (f) != 0;
3193 ac_clean_files="$ac_clean_files conftest.out"
3194 # Check that the compiler produces executables we can run. If not, either
3195 # the compiler is broken, or we cross compile.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197 $as_echo_n "checking whether we are cross compiling... " >&6; }
3198 if test "$cross_compiling" != yes; then
3199 { { ac_try="$ac_link"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link") 2>&5
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 if { ac_try='./conftest$ac_cv_exeext'
3211 { { case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_try") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; }; then
3223 if test "$cross_compiling" = maybe; then
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error $? "cannot run C compiled programs.
3229 If you meant to cross compile, use \`--host'.
3230 See \`config.log' for more details" "$LINENO" 5; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3237 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238 ac_clean_files=$ac_clean_files_save
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240 $as_echo_n "checking for suffix of object files... " >&6; }
3241 if ${ac_cv_objext+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 rm -f conftest.o conftest.obj
3256 if { { ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compile") 2>&5
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error $? "cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details" "$LINENO" 5; }
3284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287 $as_echo "$ac_cv_objext" >&6; }
3288 OBJEXT=$ac_cv_objext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3292 if ${ac_cv_c_compiler_gnu+:} false; then :
3293 $as_echo_n "(cached) " >&6
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3309 if ac_fn_c_try_compile "$LINENO"; then :
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320 if test $ac_compiler_gnu = yes; then
3325 ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if ${ac_cv_prog_cc_g+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 if ac_fn_c_try_compile "$LINENO"; then :
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3399 if test "$GCC" = yes; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407 if ${ac_cv_prog_cc_c89+:} false; then :
3408 $as_echo_n "(cached) " >&6
3410 ac_cv_prog_cc_c89=no
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418 struct buf { int x; };
3419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420 static char *e (p, i)
3426 static char *f (char * (*g) (char **, int), char **p, ...)
3431 s = g (p, va_arg (v,int));
3436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
3439 as 'x'. The following induces an error, until -std is added to get
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
3442 that's true only with -std. */
3443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450 int test (int i, double x);
3451 struct s1 {int (*f) (int a);};
3452 struct s2 {int (*f) (double a);};
3453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 CC="$ac_save_CC $ac_arg"
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
3471 rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
3474 rm -f conftest.$ac_ext
3479 case "x$ac_cv_prog_cc_c89" in
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482 $as_echo "none needed" >&6; } ;;
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485 $as_echo "unsupported" >&6; } ;;
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3491 if test "x$ac_cv_prog_cc_c89" != xno; then :
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3509 # On Suns, sometimes $CPP names a directory.
3510 if test -n "$CPP" && test -d "$CPP"; then
3513 if test -z "$CPP"; then
3514 if ${ac_cv_prog_CPP+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 # Double quotes because CPP needs to be expanded
3518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3521 for ac_c_preproc_warn_flag in '' yes
3523 # Use a header file that comes with gcc, so configuring glibc
3524 # with a fresh cross-compiler works.
3525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3526 # <limits.h> exists even on freestanding compilers.
3527 # On the NeXT, cc -E runs the code through the compiler's parser,
3528 # not just through cpp. "Syntax error" is here to catch this case.
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3532 # include <limits.h>
3534 # include <assert.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3541 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.i conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550 #include <ac_nonexistent.h>
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3553 # Broken: success on invalid input.
3556 # Passes both tests.
3560 rm -f conftest.err conftest.i conftest.$ac_ext
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.i conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3578 $as_echo "$CPP" >&6; }
3580 for ac_c_preproc_warn_flag in '' yes
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3591 # include <limits.h>
3593 # include <assert.h>
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3600 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.i conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609 #include <ac_nonexistent.h>
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: success on invalid input.
3615 # Passes both tests.
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.i conftest.err conftest.$ac_ext
3624 if $ac_preproc_ok; then :
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3630 See \`config.log' for more details" "$LINENO" 5; }
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3642 if ${ac_cv_path_GREP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -z "$GREP"; then
3646 ac_path_GREP_found=false
3647 # Loop through the user's path and test for each of PROGNAME-LIST
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in grep ggrep; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3656 as_fn_executable_p "$ac_path_GREP" || continue
3657 # Check for GNU ac_path_GREP and select it if it is found.
3658 # Check for GNU $ac_path_GREP
3659 case `"$ac_path_GREP" --version 2>&1` in
3661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3664 $as_echo_n 0123456789 >"conftest.in"
3667 cat "conftest.in" "conftest.in" >"conftest.tmp"
3668 mv "conftest.tmp" "conftest.in"
3669 cp "conftest.in" "conftest.nl"
3670 $as_echo 'GREP' >> "conftest.nl"
3671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3673 as_fn_arith $ac_count + 1 && ac_count=$as_val
3674 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3675 # Best one so far, save it but keep looking for a better one
3676 ac_cv_path_GREP="$ac_path_GREP"
3677 ac_path_GREP_max=$ac_count
3679 # 10*(2^10) chars as input seems more than enough
3680 test $ac_count -gt 10 && break
3682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 $ac_path_GREP_found && break 3
3690 if test -z "$ac_cv_path_GREP"; then
3691 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3694 ac_cv_path_GREP=$GREP
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3699 $as_echo "$ac_cv_path_GREP" >&6; }
3700 GREP="$ac_cv_path_GREP"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3704 $as_echo_n "checking for egrep... " >&6; }
3705 if ${ac_cv_path_EGREP+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3709 then ac_cv_path_EGREP="$GREP -E"
3711 if test -z "$EGREP"; then
3712 ac_path_EGREP_found=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 test -z "$as_dir" && as_dir=.
3719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 as_fn_executable_p "$ac_path_EGREP" || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
3724 # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730 $as_echo_n 0123456789 >"conftest.in"
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
3736 $as_echo 'EGREP' >> "conftest.nl"
3737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739 as_fn_arith $ac_count + 1 && ac_count=$as_val
3740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 $ac_path_EGREP_found && break 3
3756 if test -z "$ac_cv_path_EGREP"; then
3757 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3760 ac_cv_path_EGREP=$EGREP
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3766 $as_echo "$ac_cv_path_EGREP" >&6; }
3767 EGREP="$ac_cv_path_EGREP"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3771 $as_echo_n "checking for ANSI C header files... " >&6; }
3772 if ${ac_cv_header_stdc+:} false; then :
3773 $as_echo_n "(cached) " >&6
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_header_stdc=yes
3793 ac_cv_header_stdc=no
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 if test $ac_cv_header_stdc = yes; then
3798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "memchr" >/dev/null 2>&1; then :
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3822 $EGREP "free" >/dev/null 2>&1; then :
3825 ac_cv_header_stdc=no
3831 if test $ac_cv_header_stdc = yes; then
3832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3833 if test "$cross_compiling" = yes; then :
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 #if ((' ' & 0x0FF) == 0x020)
3841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844 # define ISLOWER(c) \
3845 (('a' <= (c) && (c) <= 'i') \
3846 || ('j' <= (c) && (c) <= 'r') \
3847 || ('s' <= (c) && (c) <= 'z'))
3848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856 for (i = 0; i < 256; i++)
3857 if (XOR (islower (i), ISLOWER (i))
3858 || toupper (i) != TOUPPER (i))
3863 if ac_fn_c_try_run "$LINENO"; then :
3866 ac_cv_header_stdc=no
3868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3869 conftest.$ac_objext conftest.beam conftest.$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3875 $as_echo "$ac_cv_header_stdc" >&6; }
3876 if test $ac_cv_header_stdc = yes; then
3878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3884 inttypes.h stdint.h unistd.h
3886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3890 cat >>confdefs.h <<_ACEOF
3891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3901 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3908 if test "$MINIX" = yes; then
3910 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3913 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3916 $as_echo "#define _MINIX 1" >>confdefs.h
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3922 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3923 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3929 # define __EXTENSIONS__ 1
3930 $ac_includes_default
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_safe_to_define___extensions__=yes
3942 ac_cv_safe_to_define___extensions__=no
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3947 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3948 test $ac_cv_safe_to_define___extensions__ = yes &&
3949 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3951 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3953 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3955 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3957 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3969 if uname -s 2>&1 | grep MINGW32 >/dev/null; then on_mingw="yes"
3971 if echo $target | grep mingw32 >/dev/null; then on_mingw="yes"
3972 else on_mingw="no"; fi
3976 # Determine configuration file
3977 # the eval is to evaluate shell expansion twice
3978 if test $on_mingw = "no"; then
3979 ub_conf_file=`eval echo "${sysconfdir}/unbound/unbound.conf"`
3981 ub_conf_file="C:\\Program Files\\Unbound\\service.conf"
3984 # Check whether --with-conf_file was given.
3985 if test "${with_conf_file+set}" = set; then :
3986 withval=$with_conf_file; ub_conf_file="$withval"
3990 hdr_config="`echo $ub_conf_file | sed -e 's/\\\\/\\\\\\\\/g'`"
3993 cat >>confdefs.h <<_ACEOF
3994 #define CONFIGFILE "$hdr_config"
3998 # Determine run, chroot directory and pidfile locations
4000 # Check whether --with-run-dir was given.
4001 if test "${with_run_dir+set}" = set; then :
4002 withval=$with_run_dir; UNBOUND_RUN_DIR="$withval"
4004 if test $on_mingw = no; then
4005 UNBOUND_RUN_DIR=`dirname "$ub_conf_file"`
4013 hdr_run="`echo $UNBOUND_RUN_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4016 cat >>confdefs.h <<_ACEOF
4017 #define RUN_DIR "$hdr_run"
4022 # Check whether --with-chroot-dir was given.
4023 if test "${with_chroot_dir+set}" = set; then :
4024 withval=$with_chroot_dir; UNBOUND_CHROOT_DIR="$withval"
4026 if test $on_mingw = no; then
4027 UNBOUND_CHROOT_DIR="$UNBOUND_RUN_DIR"
4029 UNBOUND_CHROOT_DIR=""
4035 hdr_chroot="`echo $UNBOUND_CHROOT_DIR | sed -e 's/\\\\/\\\\\\\\/g'`"
4038 cat >>confdefs.h <<_ACEOF
4039 #define CHROOT_DIR "$hdr_chroot"
4044 # Check whether --with-share-dir was given.
4045 if test "${with_share_dir+set}" = set; then :
4046 withval=$with_share_dir; UNBOUND_SHARE_DIR="$withval"
4048 UNBOUND_SHARE_DIR="$UNBOUND_RUN_DIR"
4053 cat >>confdefs.h <<_ACEOF
4054 #define SHARE_DIR "$UNBOUND_SHARE_DIR"
4059 # Check whether --with-pidfile was given.
4060 if test "${with_pidfile+set}" = set; then :
4061 withval=$with_pidfile; UNBOUND_PIDFILE="$withval"
4063 if test $on_mingw = no; then
4064 UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid"
4072 hdr_pid="`echo $UNBOUND_PIDFILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4075 cat >>confdefs.h <<_ACEOF
4076 #define PIDFILE "$hdr_pid"
4081 # Check whether --with-rootkey-file was given.
4082 if test "${with_rootkey_file+set}" = set; then :
4083 withval=$with_rootkey_file; UNBOUND_ROOTKEY_FILE="$withval"
4085 if test $on_mingw = no; then
4086 UNBOUND_ROOTKEY_FILE="$UNBOUND_RUN_DIR/root.key"
4088 UNBOUND_ROOTKEY_FILE="C:\\Program Files\\Unbound\\root.key"
4094 hdr_rkey="`echo $UNBOUND_ROOTKEY_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4097 cat >>confdefs.h <<_ACEOF
4098 #define ROOT_ANCHOR_FILE "$hdr_rkey"
4103 # Check whether --with-rootcert-file was given.
4104 if test "${with_rootcert_file+set}" = set; then :
4105 withval=$with_rootcert_file; UNBOUND_ROOTCERT_FILE="$withval"
4107 if test $on_mingw = no; then
4108 UNBOUND_ROOTCERT_FILE="$UNBOUND_RUN_DIR/icannbundle.pem"
4110 UNBOUND_ROOTCERT_FILE="C:\\Program Files\\Unbound\\icannbundle.pem"
4116 hdr_rpem="`echo $UNBOUND_ROOTCERT_FILE | sed -e 's/\\\\/\\\\\\\\/g'`"
4119 cat >>confdefs.h <<_ACEOF
4120 #define ROOT_CERT_FILE "$hdr_rpem"
4125 # Check whether --with-username was given.
4126 if test "${with_username+set}" = set; then :
4127 withval=$with_username; UNBOUND_USERNAME="$withval"
4129 UNBOUND_USERNAME="unbound"
4134 cat >>confdefs.h <<_ACEOF
4135 #define UB_USERNAME "$UNBOUND_USERNAME"
4140 $as_echo "#define WINVER 0x0502" >>confdefs.h
4142 wnvs=`echo $PACKAGE_VERSION | sed -e 's/^[^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]*$/\1,\2,\3,0/' `
4145 cat >>confdefs.h <<_ACEOF
4146 #define RSRC_PACKAGE_VERSION $wnvs
4150 # Checks for typedefs, structures, and compiler characteristics.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4152 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4153 if ${ac_cv_c_const+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4164 /* Ultrix mips cc rejects this sort of thing. */
4165 typedef int charset[2];
4166 const charset cs = { 0, 0 };
4167 /* SunOS 4.1.1 cc rejects this. */
4168 char const *const *pcpcc;
4170 /* NEC SVR4.0.2 mips cc rejects this. */
4171 struct point {int x, y;};
4172 static struct point const zero = {0,0};
4173 /* AIX XL C 1.02.0.0 rejects this.
4174 It does not let you subtract one const X* pointer from another in
4175 an arm of an if-expression whose if-part is not a constant
4177 const char *g = "string";
4178 pcpcc = &g + (g ? g-g : 0);
4179 /* HPUX 7.0 cc rejects these. */
4181 ppc = (char**) pcpcc;
4182 pcpcc = (char const *const *) ppc;
4183 { /* SCO 3.2v4 cc rejects this sort of thing. */
4186 char const *s = 0 ? (char *) 0 : (char const *) 0;
4191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4193 const int *foo = &x[0];
4196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4197 typedef const int *iptr;
4201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4203 struct s { int j; const int *ap[3]; } bx;
4204 struct s *b = &bx; b->j = 5;
4206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4210 return !cs[0] && !zero.x;
4217 if ac_fn_c_try_compile "$LINENO"; then :
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4225 $as_echo "$ac_cv_c_const" >&6; }
4226 if test $ac_cv_c_const = no; then
4228 $as_echo "#define const /**/" >>confdefs.h
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 # allow user to override the -g -O2 flags.
4239 if test "x$CFLAGS" = "x" ; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4243 $as_echo_n "checking whether $CC supports -g... " >&6; }
4244 cache=`echo g | sed 'y%.=/+-%___p_%'`
4245 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4246 $as_echo_n "(cached) " >&6
4249 echo 'void f(){}' >conftest.c
4250 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4251 eval "cv_prog_cc_flag_$cache=yes"
4253 eval "cv_prog_cc_flag_$cache=no"
4255 rm -f conftest conftest.o conftest.c
4259 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261 $as_echo "yes" >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4274 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4275 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4276 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4277 $as_echo_n "(cached) " >&6
4280 echo 'void f(){}' >conftest.c
4281 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4282 eval "cv_prog_cc_flag_$cache=yes"
4284 eval "cv_prog_cc_flag_$cache=no"
4286 rm -f conftest conftest.o conftest.c
4290 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4294 CFLAGS="$CFLAGS -O2"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CC+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 if test -n "$CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339 $as_echo "$CC" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4347 if test -z "$ac_cv_prog_CC"; then
4349 # Extract the first word of "gcc", so it can be a program name with args.
4350 set dummy gcc; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$ac_ct_CC"; then
4357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_ac_ct_CC="gcc"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4377 if test -n "$ac_ct_CC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4379 $as_echo "$ac_ct_CC" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4385 if test "x$ac_ct_CC" = x; then
4388 case $cross_compiling:$ac_tool_warned in
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4400 if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}cc; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_prog_CC+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_CC="${ac_tool_prefix}cc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 if test -n "$CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4432 $as_echo "$CC" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4441 if test -z "$CC"; then
4442 # Extract the first word of "cc", so it can be a program name with args.
4443 set dummy cc; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_CC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -n "$CC"; then
4450 ac_cv_prog_CC="$CC" # Let the user override the test.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4461 ac_prog_rejected=yes
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 if test $ac_prog_rejected = yes; then
4473 # We found a bogon in the path, so make sure we never use it.
4474 set dummy $ac_cv_prog_CC
4476 if test $# != 0; then
4477 # We chose a different compiler from the bogus one.
4478 # However, it has the same basename, so the bogon will be chosen
4479 # first if we set CC to just the basename; use the full file name.
4481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4487 if test -n "$CC"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489 $as_echo "$CC" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4497 if test -z "$CC"; then
4498 if test -n "$ac_tool_prefix"; then
4499 for ac_prog in cl.exe
4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_CC+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 if test -n "$CC"; then
4509 ac_cv_prog_CC="$CC" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 if test -n "$CC"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531 $as_echo "$CC" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4538 test -n "$CC" && break
4541 if test -z "$CC"; then
4543 for ac_prog in cl.exe
4545 # Extract the first word of "$ac_prog", so it can be a program name with args.
4546 set dummy $ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 if test -n "$ac_ct_CC"; then
4553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_ac_ct_CC="$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4573 if test -n "$ac_ct_CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4575 $as_echo "$ac_ct_CC" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$ac_ct_CC" && break
4585 if test "x$ac_ct_CC" = x; then
4588 case $cross_compiling:$ac_tool_warned in
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4592 ac_tool_warned=yes ;;
4601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "no acceptable C compiler found in \$PATH
4604 See \`config.log' for more details" "$LINENO" 5; }
4606 # Provide some information about the compiler.
4607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4610 for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4620 if test -s conftest.err; then
4622 ... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4626 rm -f conftest.er1 conftest.err
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633 if ${ac_cv_c_compiler_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4650 if ac_fn_c_try_compile "$LINENO"; then :
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661 if test $ac_compiler_gnu = yes; then
4666 ac_test_CFLAGS=${CFLAGS+set}
4667 ac_save_CFLAGS=$CFLAGS
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4670 if ${ac_cv_prog_cc_g+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_save_c_werror_flag=$ac_c_werror_flag
4674 ac_c_werror_flag=yes
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4688 if ac_fn_c_try_compile "$LINENO"; then :
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4703 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 if ac_fn_c_try_compile "$LINENO"; then :
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730 $as_echo "$ac_cv_prog_cc_g" >&6; }
4731 if test "$ac_test_CFLAGS" = set; then
4732 CFLAGS=$ac_save_CFLAGS
4733 elif test $ac_cv_prog_cc_g = yes; then
4734 if test "$GCC" = yes; then
4740 if test "$GCC" = yes; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748 if ${ac_cv_prog_cc_c89+:} false; then :
4749 $as_echo_n "(cached) " >&6
4751 ac_cv_prog_cc_c89=no
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4759 struct buf { int x; };
4760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4761 static char *e (p, i)
4767 static char *f (char * (*g) (char **, int), char **p, ...)
4772 s = g (p, va_arg (v,int));
4777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4778 function prototypes and stuff, but not '\xHH' hex character constants.
4779 These don't provoke an error unfortunately, instead are silently treated
4780 as 'x'. The following induces an error, until -std is added to get
4781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4782 array size at least. It's necessary to write '\x00'==0 to get something
4783 that's true only with -std. */
4784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4787 inside strings and character constants. */
4789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4808 CC="$ac_save_CC $ac_arg"
4809 if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_prog_cc_c89=$ac_arg
4812 rm -f core conftest.err conftest.$ac_objext
4813 test "x$ac_cv_prog_cc_c89" != "xno" && break
4815 rm -f conftest.$ac_ext
4820 case "x$ac_cv_prog_cc_c89" in
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4823 $as_echo "none needed" >&6; } ;;
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4826 $as_echo "unsupported" >&6; } ;;
4828 CC="$CC $ac_cv_prog_cc_c89"
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4830 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4832 if test "x$ac_cv_prog_cc_c89" != xno; then :
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4844 $as_echo_n "checking $CC dependency flag... " >&6; }
4845 echo 'void f(){}' >conftest.c
4846 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4849 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4852 DEPFLAG="-MM" # dunno do something
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4856 $as_echo "$DEPFLAG" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4864 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4865 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4866 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4867 $as_echo_n "(cached) " >&6
4870 echo 'void f(){}' >conftest.c
4871 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4872 eval "cv_prog_cc_flag_$cache=yes"
4874 eval "cv_prog_cc_flag_$cache=no"
4876 rm -f conftest conftest.o conftest.c
4880 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4895 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4896 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4897 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 echo 'void f(){}' >conftest.c
4902 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4903 eval "cv_prog_cc_flag_$cache=yes"
4905 eval "cv_prog_cc_flag_$cache=no"
4907 rm -f conftest conftest.o conftest.c
4911 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913 $as_echo "yes" >&6; }
4915 ERRFLAG="$ERRFLAG -Wall"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4920 ERRFLAG="$ERRFLAG -errfmt"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4928 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4929 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4930 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4931 $as_echo_n "(cached) " >&6
4934 echo 'void f(){}' >conftest.c
4935 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4936 eval "cv_prog_cc_flag_$cache=yes"
4938 eval "cv_prog_cc_flag_$cache=no"
4940 rm -f conftest conftest.o conftest.c
4944 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4959 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4960 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4961 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4962 $as_echo_n "(cached) " >&6
4965 echo 'void f(){}' >conftest.c
4966 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4967 eval "cv_prog_cc_flag_$cache=yes"
4969 eval "cv_prog_cc_flag_$cache=no"
4971 rm -f conftest conftest.o conftest.c
4975 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4977 $as_echo "yes" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4988 for ac_header in getopt.h time.h
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4994 cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 { $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
5007 $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; }
5008 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`
5009 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5010 $as_echo_n "(cached) " >&6
5014 #include "confdefs.h"
5017 #include <sys/time.h>
5023 #ifdef HAVE_GETOPT_H
5034 const char* str = NULL;
5036 msg.msg_control = 0;
5037 t = ctime_r(&time, buf);
5040 a = getopt(2, opts, "a");
5042 str = gai_strerror(0);
5043 if(str && t && tv.tv_usec && msg.msg_control)
5048 echo 'void f(){}' >>conftest.c
5049 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5050 eval "cv_prog_cc_flag_needed_$cache=no"
5053 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
5054 eval "cv_prog_cc_flag_needed_$cache=yes"
5056 eval "cv_prog_cc_flag_needed_$cache=fail"
5057 #echo 'Test with flag fails too!'
5059 #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"
5060 #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`
5065 rm -f conftest conftest.c conftest.o
5069 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071 $as_echo "yes" >&6; }
5073 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"
5075 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 #echo 'Test with flag is no!'
5080 #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"
5081 #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`
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5087 $as_echo "failed" >&6; }
5097 { $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
5098 $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; }
5099 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5100 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5101 $as_echo_n "(cached) " >&6
5105 #include "confdefs.h"
5108 #include <sys/time.h>
5114 #ifdef HAVE_GETOPT_H
5125 const char* str = NULL;
5127 msg.msg_control = 0;
5128 t = ctime_r(&time, buf);
5131 a = getopt(2, opts, "a");
5133 str = gai_strerror(0);
5134 if(str && t && tv.tv_usec && msg.msg_control)
5139 echo 'void f(){}' >>conftest.c
5140 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5141 eval "cv_prog_cc_flag_needed_$cache=no"
5144 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
5145 eval "cv_prog_cc_flag_needed_$cache=yes"
5147 eval "cv_prog_cc_flag_needed_$cache=fail"
5148 #echo 'Test with flag fails too!'
5150 #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"
5151 #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`
5156 rm -f conftest conftest.c conftest.o
5160 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 $as_echo "yes" >&6; }
5164 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5166 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 #echo 'Test with flag is no!'
5171 #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"
5172 #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`
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5178 $as_echo "failed" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5189 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5190 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5191 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5192 $as_echo_n "(cached) " >&6
5196 #include <stdbool.h>
5203 echo 'void f(){}' >>conftest.c
5204 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5205 eval "cv_prog_cc_flag_needed_$cache=no"
5208 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5209 eval "cv_prog_cc_flag_needed_$cache=yes"
5211 eval "cv_prog_cc_flag_needed_$cache=fail"
5212 #echo 'Test with flag fails too!'
5214 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5215 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5220 rm -f conftest conftest.c conftest.o
5224 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5228 CFLAGS="$CFLAGS $C99FLAG"
5230 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 #echo 'Test with flag is no!'
5235 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5236 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5242 $as_echo "failed" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5253 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5255 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5256 $as_echo_n "(cached) " >&6
5268 echo 'void f(){}' >>conftest.c
5269 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5270 eval "cv_prog_cc_flag_needed_$cache=no"
5273 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5274 eval "cv_prog_cc_flag_needed_$cache=yes"
5276 eval "cv_prog_cc_flag_needed_$cache=fail"
5277 #echo 'Test with flag fails too!'
5279 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5280 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5285 rm -f conftest conftest.c conftest.o
5289 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5291 $as_echo "yes" >&6; }
5293 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5295 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 #echo 'Test with flag is no!'
5300 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5301 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5307 $as_echo "failed" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5318 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5320 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5321 $as_echo_n "(cached) " >&6
5325 #include <netinet/in.h>
5328 struct in6_pktinfo inf;
5329 int a = (int)sizeof(inf);
5333 echo 'void f(){}' >>conftest.c
5334 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5335 eval "cv_prog_cc_flag_needed_$cache=no"
5338 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5339 eval "cv_prog_cc_flag_needed_$cache=yes"
5341 eval "cv_prog_cc_flag_needed_$cache=fail"
5342 #echo 'Test with flag fails too!'
5344 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5345 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5350 rm -f conftest conftest.c conftest.o
5354 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }
5358 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5360 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5363 #echo 'Test with flag is no!'
5365 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5366 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5372 $as_echo "failed" >&6; }
5379 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5380 # is not available at all. -D_FRSRESGID is to make this check unique.
5381 # otherwise we would get the previous cached result.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5386 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5387 cache=_D_GNU_SOURCE__D_FRSRESGID
5388 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5389 $as_echo_n "(cached) " >&6
5396 int a = setresgid(0,0,0);
5397 a = setresuid(0,0,0);
5401 echo 'void f(){}' >>conftest.c
5402 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5403 eval "cv_prog_cc_flag_needed_$cache=no"
5406 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5407 eval "cv_prog_cc_flag_needed_$cache=yes"
5409 eval "cv_prog_cc_flag_needed_$cache=fail"
5410 #echo 'Test with flag fails too!'
5412 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5413 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5418 rm -f conftest conftest.c conftest.o
5422 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424 $as_echo "yes" >&6; }
5426 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5428 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 #echo 'Test with flag is no!'
5433 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5434 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5440 $as_echo "failed" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5451 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5452 cache=_D_POSIX_C_SOURCE_200112
5453 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5454 $as_echo_n "(cached) " >&6
5458 #include "confdefs.h"
5469 const char* str = NULL;
5470 t = ctime_r(&time, buf);
5471 str = gai_strerror(0);
5477 echo 'void f(){}' >>conftest.c
5478 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5479 eval "cv_prog_cc_flag_needed_$cache=no"
5482 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5483 eval "cv_prog_cc_flag_needed_$cache=yes"
5485 eval "cv_prog_cc_flag_needed_$cache=fail"
5486 #echo 'Test with flag fails too!'
5488 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5489 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5494 rm -f conftest conftest.c conftest.o
5498 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5502 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5504 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 #echo 'Test with flag is no!'
5509 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5510 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5516 $as_echo "failed" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5527 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5528 cache=_D__EXTENSIONS__
5529 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5530 $as_echo_n "(cached) " >&6
5534 #include "confdefs.h"
5537 #include <sys/time.h>
5542 #ifdef HAVE_GETOPT_H
5552 a = getopt(2, opts, "a");
5559 echo 'void f(){}' >>conftest.c
5560 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5561 eval "cv_prog_cc_flag_needed_$cache=no"
5564 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5565 eval "cv_prog_cc_flag_needed_$cache=yes"
5567 eval "cv_prog_cc_flag_needed_$cache=fail"
5568 #echo 'Test with flag fails too!'
5570 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5571 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5576 rm -f conftest conftest.c conftest.o
5580 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5582 $as_echo "yes" >&6; }
5584 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5586 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 #echo 'Test with flag is no!'
5591 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5592 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5598 $as_echo "failed" >&6; }
5607 # debug mode flags warnings
5608 # Check whether --enable-checking was given.
5609 if test "${enable_checking+set}" = set; then :
5610 enableval=$enable_checking;
5613 # Check whether --enable-debug was given.
5614 if test "${enable_debug+set}" = set; then :
5615 enableval=$enable_debug;
5618 if test "$enable_debug" = "yes"; then debug_enabled="$enable_debug";
5619 else debug_enabled="$enable_checking"; fi
5621 case "$debug_enabled" in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
5626 $as_echo_n "checking whether $CC supports -W... " >&6; }
5627 cache=`echo W | sed 'y%.=/+-%___p_%'`
5628 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5629 $as_echo_n "(cached) " >&6
5632 echo 'void f(){}' >conftest.c
5633 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
5634 eval "cv_prog_cc_flag_$cache=yes"
5636 eval "cv_prog_cc_flag_$cache=no"
5638 rm -f conftest conftest.o conftest.c
5642 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
5657 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
5658 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
5659 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5660 $as_echo_n "(cached) " >&6
5663 echo 'void f(){}' >conftest.c
5664 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
5665 eval "cv_prog_cc_flag_$cache=yes"
5667 eval "cv_prog_cc_flag_$cache=no"
5669 rm -f conftest conftest.o conftest.c
5673 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5677 CFLAGS="$CFLAGS -Wall"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
5688 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
5689 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
5690 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5691 $as_echo_n "(cached) " >&6
5694 echo 'void f(){}' >conftest.c
5695 if test -z "`$CC $CPPFLAGS $CFLAGS -Wextra -c conftest.c 2>&1`"; then
5696 eval "cv_prog_cc_flag_$cache=yes"
5698 eval "cv_prog_cc_flag_$cache=no"
5700 rm -f conftest conftest.o conftest.c
5704 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5708 CFLAGS="$CFLAGS -Wextra"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
5719 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
5720 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
5721 if eval \${cv_prog_cc_flag_$cache+:} false; then :
5722 $as_echo_n "(cached) " >&6
5725 echo 'void f(){}' >conftest.c
5726 if test -z "`$CC $CPPFLAGS $CFLAGS -Wdeclaration-after-statement -c conftest.c 2>&1`"; then
5727 eval "cv_prog_cc_flag_$cache=yes"
5729 eval "cv_prog_cc_flag_$cache=no"
5731 rm -f conftest conftest.o conftest.c
5735 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5739 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5748 $as_echo "#define UNBOUND_DEBUG /**/" >>confdefs.h
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -flto" >&5
5756 $as_echo_n "checking if $CC supports -flto... " >&6; }
5758 CFLAGS="$CFLAGS -flto"
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 if ac_fn_c_try_link "$LINENO"; then :
5772 if $CC $CFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executable" >/dev/null; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5780 rm -f conftest conftest.c conftest.o
5783 CFLAGS="$BAKCFLAGS" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5786 rm -f core conftest.err conftest.$ac_objext \
5787 conftest$ac_exeext conftest.$ac_ext
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5791 $as_echo_n "checking for inline... " >&6; }
5792 if ${ac_cv_c_inline+:} false; then :
5793 $as_echo_n "(cached) " >&6
5796 for ac_kw in inline __inline__ __inline; do
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5801 static $ac_kw foo_t static_foo () {return 0; }
5802 $ac_kw foo_t foo () {return 0; }
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_c_inline=$ac_kw
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 test "$ac_cv_c_inline" != no && break
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5815 $as_echo "$ac_cv_c_inline" >&6; }
5817 case $ac_cv_c_inline in
5820 case $ac_cv_c_inline in
5822 *) ac_val=$ac_cv_c_inline;;
5824 cat >>confdefs.h <<_ACEOF
5826 #define inline $ac_val
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5834 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
5835 if ${ac_cv_c_format_attribute+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 ac_cv_c_format_attribute=no
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5843 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 ac_cv_c_format_attribute="yes"
5858 ac_cv_c_format_attribute="no"
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
5866 $as_echo "$ac_cv_c_format_attribute" >&6; }
5867 if test $ac_cv_c_format_attribute = yes; then
5869 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5875 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
5876 if ${ac_cv_c_unused_attribute+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 ac_cv_c_unused_attribute=no
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5883 void f (char *u __attribute__((unused)));
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_c_unused_attribute="yes"
5898 ac_cv_c_unused_attribute="no"
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
5908 $as_echo "$ac_cv_c_unused_attribute" >&6; }
5909 if test $ac_cv_c_unused_attribute = yes; then
5911 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
5916 if test "$srcdir" != "."; then
5917 CPPFLAGS="$CPPFLAGS -I$srcdir"
5922 for ac_prog in flex lex
5924 # Extract the first word of "$ac_prog", so it can be a program name with args.
5925 set dummy $ac_prog; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_LEX+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$LEX"; then
5932 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_LEX="$ac_prog"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 if test -n "$LEX"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5954 $as_echo "$LEX" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5961 test -n "$LEX" && break
5963 test -n "$LEX" || LEX=":"
5965 if test "x$LEX" != "x:"; then
5966 cat >conftest.l <<_ACEOF
5972 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5973 yyless ((input () != 0)); }
5974 f { unput (yytext[0]); }
5975 . { BEGIN INITIAL; }
5977 #ifdef YYTEXT_POINTER
5978 extern char *yytext;
5983 return ! yylex () + ! yywrap ();
5986 { { ac_try="$LEX conftest.l"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5992 $as_echo "$ac_try_echo"; } >&5
5993 (eval "$LEX conftest.l") 2>&5
5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996 test $ac_status = 0; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5998 $as_echo_n "checking lex output file root... " >&6; }
5999 if ${ac_cv_prog_lex_root+:} false; then :
6000 $as_echo_n "(cached) " >&6
6003 if test -f lex.yy.c; then
6004 ac_cv_prog_lex_root=lex.yy
6005 elif test -f lexyy.c; then
6006 ac_cv_prog_lex_root=lexyy
6008 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6012 $as_echo "$ac_cv_prog_lex_root" >&6; }
6013 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6015 if test -z "${LEXLIB+set}"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6017 $as_echo_n "checking lex library... " >&6; }
6018 if ${ac_cv_lib_lex+:} false; then :
6019 $as_echo_n "(cached) " >&6
6023 ac_cv_lib_lex='none needed'
6024 for ac_lib in '' -lfl -ll; do
6025 LIBS="$ac_lib $ac_save_LIBS"
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 `cat $LEX_OUTPUT_ROOT.c`
6030 if ac_fn_c_try_link "$LINENO"; then :
6031 ac_cv_lib_lex=$ac_lib
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 test "$ac_cv_lib_lex" != 'none needed' && break
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6041 $as_echo "$ac_cv_lib_lex" >&6; }
6042 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6047 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6048 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6049 $as_echo_n "(cached) " >&6
6051 # POSIX says lex can declare yytext either as a pointer or an array; the
6052 # default is implementation-dependent. Figure out which it is, since
6053 # not all implementations provide the %pointer and %array declarations.
6054 ac_cv_prog_lex_yytext_pointer=no
6056 LIBS="$LEXLIB $ac_save_LIBS"
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6060 #define YYTEXT_POINTER 1
6061 `cat $LEX_OUTPUT_ROOT.c`
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 ac_cv_prog_lex_yytext_pointer=yes
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6072 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6073 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6075 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6078 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylex_destroy" >&5
6083 $as_echo_n "checking for yylex_destroy... " >&6; }
6084 if echo %% | $LEX -t 2>&1 | grep yylex_destroy >/dev/null 2>&1; then
6086 $as_echo "#define LEX_HAS_YYLEX_DESTROY 1" >>confdefs.h
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6089 $as_echo "yes" >&6; }
6090 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }; fi
6093 for ac_prog in 'bison -y' byacc
6095 # Extract the first word of "$ac_prog", so it can be a program name with args.
6096 set dummy $ac_prog; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if ${ac_cv_prog_YACC+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 if test -n "$YACC"; then
6103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_YACC="$ac_prog"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 YACC=$ac_cv_prog_YACC
6123 if test -n "$YACC"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6125 $as_echo "$YACC" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6132 test -n "$YACC" && break
6134 test -n "$YACC" || YACC="yacc"
6136 # Extract the first word of "doxygen", so it can be a program name with args.
6137 set dummy doxygen; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_doxygen+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$doxygen"; then
6144 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_doxygen="doxygen"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 doxygen=$ac_cv_prog_doxygen
6164 if test -n "$doxygen"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
6166 $as_echo "$doxygen" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6173 if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}strip; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_STRIP+:} false; then :
6179 $as_echo_n "(cached) " >&6
6181 if test -n "$STRIP"; then
6182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 STRIP=$ac_cv_prog_STRIP
6202 if test -n "$STRIP"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6204 $as_echo "$STRIP" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6212 if test -z "$ac_cv_prog_STRIP"; then
6214 # Extract the first word of "strip", so it can be a program name with args.
6215 set dummy strip; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$ac_ct_STRIP"; then
6222 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_ac_ct_STRIP="strip"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6242 if test -n "$ac_ct_STRIP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6244 $as_echo "$ac_ct_STRIP" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6250 if test "x$ac_ct_STRIP" = x; then
6253 case $cross_compiling:$ac_tool_warned in
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6262 STRIP="$ac_cv_prog_STRIP"
6266 # skip these tests, we do not need them.
6275 # always use ./libtool unless override from commandline (libtool=mylibtool)
6276 if test -z "$libtool"; then
6280 # avoid libtool max commandline length test on systems that fork slowly.
6282 if echo "$host_os" | grep "sunos4" >/dev/null; then
6283 lt_cv_sys_max_cmd_len=32750;
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}ar; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_path_AR+:} false; then :
6291 $as_echo_n "(cached) " >&6
6295 ac_cv_path_AR="$AR" # Let the user override the test with a path.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 if test -n "$AR"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6319 $as_echo "$AR" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_path_AR"; then
6329 # Extract the first word of "ar", so it can be a program name with args.
6330 set dummy ar; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_path_ac_pt_AR+:} false; then :
6334 $as_echo_n "(cached) " >&6
6338 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 ac_pt_AR=$ac_cv_path_ac_pt_AR
6360 if test -n "$ac_pt_AR"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
6362 $as_echo "$ac_pt_AR" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 if test "x$ac_pt_AR" = x; then
6371 case $cross_compiling:$ac_tool_warned in
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6383 if test $AR = false; then
6384 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6390 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6395 macro_version='2.4.2'
6396 macro_revision='1.3337'
6410 ltmain="$ac_aux_dir/ltmain.sh"
6412 # Backslashify metacharacters that are still active within
6413 # double-quoted strings.
6414 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6416 # Same as above, but do not quote variable references.
6417 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6419 # Sed substitution to delay expansion of an escaped shell variable in a
6420 # double_quote_subst'ed string.
6421 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6423 # Sed substitution to delay expansion of an escaped single quote.
6424 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6429 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6430 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6431 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6434 $as_echo_n "checking how to print strings... " >&6; }
6435 # Test print first, because it will be a builtin if present.
6436 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6437 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6439 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6442 # Use this function as a fallback that always works.
6443 func_fallback_echo ()
6445 eval 'cat <<_LTECHO_EOF
6449 ECHO='func_fallback_echo'
6452 # func_echo_all arg...
6453 # Invoke $ECHO with all args, space-separated.
6460 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6461 $as_echo "printf" >&6; } ;;
6462 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6463 $as_echo "print -r" >&6; } ;;
6464 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6465 $as_echo "cat" >&6; } ;;
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6483 if ${ac_cv_path_SED+:} false; then :
6484 $as_echo_n "(cached) " >&6
6486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6487 for ac_i in 1 2 3 4 5 6 7; do
6488 ac_script="$ac_script$as_nl$ac_script"
6490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6491 { ac_script=; unset ac_script;}
6492 if test -z "$SED"; then
6493 ac_path_SED_found=false
6494 # Loop through the user's path and test for each of PROGNAME-LIST
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_prog in sed gsed; do
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6503 as_fn_executable_p "$ac_path_SED" || continue
6504 # Check for GNU ac_path_SED and select it if it is found.
6505 # Check for GNU $ac_path_SED
6506 case `"$ac_path_SED" --version 2>&1` in
6508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6511 $as_echo_n 0123456789 >"conftest.in"
6514 cat "conftest.in" "conftest.in" >"conftest.tmp"
6515 mv "conftest.tmp" "conftest.in"
6516 cp "conftest.in" "conftest.nl"
6517 $as_echo '' >> "conftest.nl"
6518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6520 as_fn_arith $ac_count + 1 && ac_count=$as_val
6521 if test $ac_count -gt ${ac_path_SED_max-0}; then
6522 # Best one so far, save it but keep looking for a better one
6523 ac_cv_path_SED="$ac_path_SED"
6524 ac_path_SED_max=$ac_count
6526 # 10*(2^10) chars as input seems more than enough
6527 test $ac_count -gt 10 && break
6529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6532 $ac_path_SED_found && break 3
6537 if test -z "$ac_cv_path_SED"; then
6538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6546 $as_echo "$ac_cv_path_SED" >&6; }
6547 SED="$ac_cv_path_SED"
6550 test -z "$SED" && SED=sed
6551 Xsed="$SED -e 1s/^X//"
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6564 $as_echo_n "checking for fgrep... " >&6; }
6565 if ${ac_cv_path_FGREP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6569 then ac_cv_path_FGREP="$GREP -F"
6571 if test -z "$FGREP"; then
6572 ac_path_FGREP_found=false
6573 # Loop through the user's path and test for each of PROGNAME-LIST
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6578 test -z "$as_dir" && as_dir=.
6579 for ac_prog in fgrep; do
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6582 as_fn_executable_p "$ac_path_FGREP" || continue
6583 # Check for GNU ac_path_FGREP and select it if it is found.
6584 # Check for GNU $ac_path_FGREP
6585 case `"$ac_path_FGREP" --version 2>&1` in
6587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6590 $as_echo_n 0123456789 >"conftest.in"
6593 cat "conftest.in" "conftest.in" >"conftest.tmp"
6594 mv "conftest.tmp" "conftest.in"
6595 cp "conftest.in" "conftest.nl"
6596 $as_echo 'FGREP' >> "conftest.nl"
6597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6599 as_fn_arith $ac_count + 1 && ac_count=$as_val
6600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6601 # Best one so far, save it but keep looking for a better one
6602 ac_cv_path_FGREP="$ac_path_FGREP"
6603 ac_path_FGREP_max=$ac_count
6605 # 10*(2^10) chars as input seems more than enough
6606 test $ac_count -gt 10 && break
6608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6611 $ac_path_FGREP_found && break 3
6616 if test -z "$ac_cv_path_FGREP"; then
6617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6620 ac_cv_path_FGREP=$FGREP
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6626 $as_echo "$ac_cv_path_FGREP" >&6; }
6627 FGREP="$ac_cv_path_FGREP"
6630 test -z "$GREP" && GREP=grep
6650 # Check whether --with-gnu-ld was given.
6651 if test "${with_gnu_ld+set}" = set; then :
6652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6658 if test "$GCC" = yes; then
6659 # Check if gcc -print-prog-name=ld gives a path.
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6661 $as_echo_n "checking for ld used by $CC... " >&6; }
6664 # gcc leaves a trailing carriage return which upsets mingw
6665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6670 # Accept absolute paths.
6672 re_direlt='/[^/][^/]*/\.\./'
6673 # Canonicalize the pathname of ld
6674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6678 test -z "$LD" && LD="$ac_prog"
6681 # If it fails, then pretend we aren't using GCC.
6685 # If it is relative, then search for the first ld in PATH.
6689 elif test "$with_gnu_ld" = yes; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6691 $as_echo_n "checking for GNU ld... " >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6694 $as_echo_n "checking for non-GNU ld... " >&6; }
6696 if ${lt_cv_path_LD+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -z "$LD"; then
6700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6701 for ac_dir in $PATH; do
6703 test -z "$ac_dir" && ac_dir=.
6704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6705 lt_cv_path_LD="$ac_dir/$ac_prog"
6706 # Check to see if the program is GNU ld. I'd rather use --version,
6707 # but apparently some variants of GNU ld only accept -v.
6708 # Break only if it was the GNU/non-GNU ld that we prefer.
6709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6710 *GNU* | *'with BFD'*)
6711 test "$with_gnu_ld" != no && break
6714 test "$with_gnu_ld" != yes && break
6721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6726 if test -n "$LD"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6728 $as_echo "$LD" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6736 if ${lt_cv_prog_gnu_ld+:} false; then :
6737 $as_echo_n "(cached) " >&6
6739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6740 case `$LD -v 2>&1 </dev/null` in
6741 *GNU* | *'with BFD'*)
6742 lt_cv_prog_gnu_ld=yes
6745 lt_cv_prog_gnu_ld=no
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6751 with_gnu_ld=$lt_cv_prog_gnu_ld
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6762 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6763 if ${lt_cv_path_NM+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 if test -n "$NM"; then
6767 # Let the user override the test.
6770 lt_nm_to_check="${ac_tool_prefix}nm"
6771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6772 lt_nm_to_check="$lt_nm_to_check nm"
6774 for lt_tmp_nm in $lt_nm_to_check; do
6775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6778 test -z "$ac_dir" && ac_dir=.
6779 tmp_nm="$ac_dir/$lt_tmp_nm"
6780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6781 # Check to see if the nm accepts a BSD-compat flag.
6782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6783 # nm: unknown option "B" ignored
6784 # Tru64's nm complains that /dev/null is an invalid object file
6785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6786 */dev/null* | *'Invalid file or object type'*)
6787 lt_cv_path_NM="$tmp_nm -B"
6791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6793 lt_cv_path_NM="$tmp_nm -p"
6797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6798 continue # so that we can try to find one that supports BSD flags
6807 : ${lt_cv_path_NM=no}
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6811 $as_echo "$lt_cv_path_NM" >&6; }
6812 if test "$lt_cv_path_NM" != "no"; then
6815 # Didn't find any BSD compatible name lister, look for dumpbin.
6816 if test -n "$DUMPBIN"; then :
6817 # Let the user override the test.
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in dumpbin "link -dump"
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_DUMPBIN+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$DUMPBIN"; then
6830 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 DUMPBIN=$ac_cv_prog_DUMPBIN
6850 if test -n "$DUMPBIN"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6852 $as_echo "$DUMPBIN" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6859 test -n "$DUMPBIN" && break
6862 if test -z "$DUMPBIN"; then
6863 ac_ct_DUMPBIN=$DUMPBIN
6864 for ac_prog in dumpbin "link -dump"
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 if test -n "$ac_ct_DUMPBIN"; then
6874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6894 if test -n "$ac_ct_DUMPBIN"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6896 $as_echo "$ac_ct_DUMPBIN" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6903 test -n "$ac_ct_DUMPBIN" && break
6906 if test "x$ac_ct_DUMPBIN" = x; then
6909 case $cross_compiling:$ac_tool_warned in
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6915 DUMPBIN=$ac_ct_DUMPBIN
6919 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6921 DUMPBIN="$DUMPBIN -symbols"
6929 if test "$DUMPBIN" != ":"; then
6933 test -z "$NM" && NM=nm
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6941 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6942 if ${lt_cv_nm_interface+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 lt_cv_nm_interface="BSD nm"
6946 echo "int some_variable = 0;" > conftest.$ac_ext
6947 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6948 (eval "$ac_compile" 2>conftest.err)
6949 cat conftest.err >&5
6950 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6951 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6952 cat conftest.err >&5
6953 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6954 cat conftest.out >&5
6955 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6956 lt_cv_nm_interface="MS dumpbin"
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6961 $as_echo "$lt_cv_nm_interface" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6964 $as_echo_n "checking whether ln -s works... " >&6; }
6966 if test "$LN_S" = "ln -s"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6968 $as_echo "yes" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6971 $as_echo "no, using $LN_S" >&6; }
6974 # find the maximum length of command line arguments
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6976 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6977 if ${lt_cv_sys_max_cmd_len+:} false; then :
6978 $as_echo_n "(cached) " >&6
6985 # On DJGPP, this test can blow up pretty badly due to problems in libc
6986 # (any single argument exceeding 2000 bytes causes a buffer overrun
6987 # during glob expansion). Even if it were fixed, the result of this
6988 # check would be larger than it should be.
6989 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6993 # Under GNU Hurd, this test is not required because there is
6994 # no limit to the length of command line arguments.
6995 # Libtool will interpret -1 as no limit whatsoever
6996 lt_cv_sys_max_cmd_len=-1;
6999 cygwin* | mingw* | cegcc*)
7000 # On Win9x/ME, this test blows up -- it succeeds, but takes
7001 # about 5 minutes as the teststring grows exponentially.
7002 # Worse, since 9x/ME are not pre-emptively multitasking,
7003 # you end up with a "frozen" computer, even though with patience
7004 # the test eventually succeeds (with a max line length of 256k).
7005 # Instead, let's just punt: use the minimum linelength reported by
7006 # all of the supported platforms: 8192 (on NT/2K/XP).
7007 lt_cv_sys_max_cmd_len=8192;
7011 # On MiNT this can take a long time and run out of memory.
7012 lt_cv_sys_max_cmd_len=8192;
7016 # On AmigaOS with pdksh, this test takes hours, literally.
7017 # So we just punt and use a minimum line length of 8192.
7018 lt_cv_sys_max_cmd_len=8192;
7021 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7022 # This has been around since 386BSD, at least. Likely further.
7023 if test -x /sbin/sysctl; then
7024 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7025 elif test -x /usr/sbin/sysctl; then
7026 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7028 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7030 # And add a safety zone
7031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7032 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7036 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7037 lt_cv_sys_max_cmd_len=196608
7041 # The test takes a long time on OS/2.
7042 lt_cv_sys_max_cmd_len=8192
7046 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7047 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7048 # nice to cause kernel panics so lets avoid the loop below.
7049 # First set a reasonable default.
7050 lt_cv_sys_max_cmd_len=16384
7052 if test -x /sbin/sysconfig; then
7053 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7054 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7059 lt_cv_sys_max_cmd_len=102400
7061 sysv5* | sco5v6* | sysv4.2uw2*)
7062 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7063 if test -n "$kargmax"; then
7064 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7066 lt_cv_sys_max_cmd_len=32768
7070 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7071 if test -n "$lt_cv_sys_max_cmd_len"; then
7072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7075 # Make teststring a little bigger before we do anything with it.
7076 # a 1K string should be a reasonable start.
7077 for i in 1 2 3 4 5 6 7 8 ; do
7078 teststring=$teststring$teststring
7080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7081 # If test is not a shell built-in, we'll probably end up computing a
7082 # maximum length that is only half of the actual maximum length, but
7084 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7085 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7086 test $i != 17 # 1/2 MB should be enough
7089 teststring=$teststring$teststring
7091 # Only check the string length outside the loop.
7092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7094 # Add a significant safety factor because C++ compilers can tack on
7095 # massive amounts of additional arguments before passing them to the
7096 # linker. It appears as though 1/2 is a usable value.
7097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7104 if test -n $lt_cv_sys_max_cmd_len ; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7106 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7109 $as_echo "none" >&6; }
7111 max_cmd_len=$lt_cv_sys_max_cmd_len
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7123 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7124 # Try some XSI features
7127 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7129 && eval 'test $(( 1 + 1 )) -eq 2 \
7130 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7133 $as_echo "$xsi_shell" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7137 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7139 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7141 && lt_shell_append=yes
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7143 $as_echo "$lt_shell_append" >&6; }
7146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7156 # test EBCDIC or ASCII
7157 case `echo X|tr X '\101'` in
7158 A) # ASCII based system
7159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7160 lt_SP2NL='tr \040 \012'
7161 lt_NL2SP='tr \015\012 \040\040'
7163 *) # EBCDIC based system
7164 lt_SP2NL='tr \100 \n'
7165 lt_NL2SP='tr \r\n \100\100'
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7178 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7179 if ${lt_cv_to_host_file_cmd+:} false; then :
7180 $as_echo_n "(cached) " >&6
7185 *-*-mingw* ) # actually msys
7186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7191 * ) # otherwise, assume *nix
7192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7198 *-*-mingw* ) # actually msys
7199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7202 lt_cv_to_host_file_cmd=func_convert_file_noop
7204 * ) # otherwise, assume *nix
7205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7209 * ) # unhandled hosts (and "normal" native builds)
7210 lt_cv_to_host_file_cmd=func_convert_file_noop
7216 to_host_file_cmd=$lt_cv_to_host_file_cmd
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7218 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7225 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7226 if ${lt_cv_to_tool_file_cmd+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 #assume ordinary cross tools, or native build.
7230 lt_cv_to_tool_file_cmd=func_convert_file_noop
7234 *-*-mingw* ) # actually msys
7235 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7243 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7245 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7252 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7253 if ${lt_cv_ld_reload_flag+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 lt_cv_ld_reload_flag='-r'
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7259 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7260 reload_flag=$lt_cv_ld_reload_flag
7261 case $reload_flag in
7263 *) reload_flag=" $reload_flag" ;;
7265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7267 cygwin* | mingw* | pw32* | cegcc*)
7268 if test "$GCC" != yes; then
7273 if test "$GCC" = yes; then
7274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_OBJDUMP+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$OBJDUMP"; then
7298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 OBJDUMP=$ac_cv_prog_OBJDUMP
7318 if test -n "$OBJDUMP"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7320 $as_echo "$OBJDUMP" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7328 if test -z "$ac_cv_prog_OBJDUMP"; then
7329 ac_ct_OBJDUMP=$OBJDUMP
7330 # Extract the first word of "objdump", so it can be a program name with args.
7331 set dummy objdump; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$ac_ct_OBJDUMP"; then
7338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7358 if test -n "$ac_ct_OBJDUMP"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7360 $as_echo "$ac_ct_OBJDUMP" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_ct_OBJDUMP" = x; then
7369 case $cross_compiling:$ac_tool_warned in
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7375 OBJDUMP=$ac_ct_OBJDUMP
7378 OBJDUMP="$ac_cv_prog_OBJDUMP"
7381 test -z "$OBJDUMP" && OBJDUMP=objdump
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7392 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7393 if ${lt_cv_deplibs_check_method+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 lt_cv_file_magic_cmd='$MAGIC_CMD'
7397 lt_cv_file_magic_test_file=
7398 lt_cv_deplibs_check_method='unknown'
7399 # Need to set the preceding variable on all platforms that support
7400 # interlibrary dependencies.
7401 # 'none' -- dependencies not supported.
7402 # `unknown' -- same as none, but documents that we really don't know.
7403 # 'pass_all' -- all dependencies passed with no checks.
7404 # 'test_compile' -- check by making test program.
7405 # 'file_magic [[regex]]' -- check by looking for files in library path
7406 # which responds to the $file_magic_cmd with a given extended regex.
7407 # If you have `file' or equivalent on your system and you're not sure
7408 # whether `pass_all' will *always* work, you probably want this one.
7412 lt_cv_deplibs_check_method=pass_all
7416 lt_cv_deplibs_check_method=pass_all
7420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7421 lt_cv_file_magic_cmd='/usr/bin/file -L'
7422 lt_cv_file_magic_test_file=/shlib/libc.so
7426 # func_win32_libid is a shell function defined in ltmain.sh
7427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7428 lt_cv_file_magic_cmd='func_win32_libid'
7432 # Base MSYS/MinGW do not provide the 'file' command needed by
7433 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7434 # unless we find 'file', for example because we are cross-compiling.
7435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7438 lt_cv_file_magic_cmd='func_win32_libid'
7440 # Keep this pattern in sync with the one in func_win32_libid.
7441 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7442 lt_cv_file_magic_cmd='$OBJDUMP -f'
7447 # use the weaker test based on 'objdump'. See mingw*.
7448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7449 lt_cv_file_magic_cmd='$OBJDUMP -f'
7452 darwin* | rhapsody*)
7453 lt_cv_deplibs_check_method=pass_all
7456 freebsd* | dragonfly*)
7457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7460 # Not sure whether the presence of OpenBSD here was a mistake.
7461 # Let's accept both of them until this is cleared up.
7462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7463 lt_cv_file_magic_cmd=/usr/bin/file
7464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7468 lt_cv_deplibs_check_method=pass_all
7473 lt_cv_deplibs_check_method=pass_all
7477 lt_cv_deplibs_check_method=pass_all
7480 hpux10.20* | hpux11*)
7481 lt_cv_file_magic_cmd=/usr/bin/file
7484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7488 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]'
7489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7503 irix5* | irix6* | nonstopux*)
7505 *-32|*"-32 ") libmagic=32-bit;;
7506 *-n32|*"-n32 ") libmagic=N32;;
7507 *-64|*"-64 ") libmagic=64-bit;;
7508 *) libmagic=never-match;;
7510 lt_cv_deplibs_check_method=pass_all
7513 # This must be glibc/ELF.
7514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7515 lt_cv_deplibs_check_method=pass_all
7519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7528 lt_cv_file_magic_cmd=/usr/bin/file
7529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7533 lt_cv_deplibs_check_method=pass_all
7537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7544 osf3* | osf4* | osf5*)
7545 lt_cv_deplibs_check_method=pass_all
7549 lt_cv_deplibs_check_method=pass_all
7553 lt_cv_deplibs_check_method=pass_all
7556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7557 lt_cv_deplibs_check_method=pass_all
7561 case $host_vendor in
7563 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]'
7564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7567 lt_cv_deplibs_check_method=pass_all
7570 lt_cv_file_magic_cmd='/bin/file'
7571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7574 lt_cv_file_magic_cmd='/bin/file'
7575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7576 lt_cv_file_magic_test_file=/lib/libc.so
7579 lt_cv_deplibs_check_method=pass_all
7582 lt_cv_deplibs_check_method=pass_all
7588 lt_cv_deplibs_check_method=pass_all
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7598 if test "$build" = "$host"; then
7601 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7604 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7610 file_magic_cmd=$lt_cv_file_magic_cmd
7611 deplibs_check_method=$lt_cv_deplibs_check_method
7612 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_DLLTOOL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$DLLTOOL"; then
7644 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 DLLTOOL=$ac_cv_prog_DLLTOOL
7664 if test -n "$DLLTOOL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7666 $as_echo "$DLLTOOL" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7674 if test -z "$ac_cv_prog_DLLTOOL"; then
7675 ac_ct_DLLTOOL=$DLLTOOL
7676 # Extract the first word of "dlltool", so it can be a program name with args.
7677 set dummy dlltool; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$ac_ct_DLLTOOL"; then
7684 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7704 if test -n "$ac_ct_DLLTOOL"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7706 $as_echo "$ac_ct_DLLTOOL" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7712 if test "x$ac_ct_DLLTOOL" = x; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7721 DLLTOOL=$ac_ct_DLLTOOL
7724 DLLTOOL="$ac_cv_prog_DLLTOOL"
7727 test -z "$DLLTOOL" && DLLTOOL=dlltool
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7739 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7740 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 lt_cv_sharedlib_from_linklib_cmd='unknown'
7746 cygwin* | mingw* | pw32* | cegcc*)
7747 # two different shell functions defined in ltmain.sh
7748 # decide which to use based on capabilities of $DLLTOOL
7749 case `$DLLTOOL --help 2>&1` in
7750 *--identify-strict*)
7751 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7754 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7759 # fallback: assume linklib IS sharedlib
7760 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7766 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7767 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7768 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7776 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_AR+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$AR"; then
7787 ac_cv_prog_AR="$AR" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 if test -n "$AR"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7809 $as_echo "$AR" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 test -n "$AR" && break
7819 if test -z "$AR"; then
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7828 $as_echo_n "(cached) " >&6
7830 if test -n "$ac_ct_AR"; then
7831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_AR="$ac_prog"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7851 if test -n "$ac_ct_AR"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7853 $as_echo "$ac_ct_AR" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7860 test -n "$ac_ct_AR" && break
7863 if test "x$ac_ct_AR" = x; then
7866 case $cross_compiling:$ac_tool_warned in
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned=yes ;;
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7890 $as_echo_n "checking for archiver @FILE support... " >&6; }
7891 if ${lt_cv_ar_at_file+:} false; then :
7892 $as_echo_n "(cached) " >&6
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 echo conftest.$ac_objext > conftest.lst
7908 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7910 (eval $lt_ar_try) 2>&5
7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913 test $ac_status = 0; }
7914 if test "$ac_status" -eq 0; then
7915 # Ensure the archiver fails upon bogus file names.
7916 rm -f conftest.$ac_objext libconftest.a
7917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7918 (eval $lt_ar_try) 2>&5
7920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921 test $ac_status = 0; }
7922 if test "$ac_status" -ne 0; then
7926 rm -f conftest.* libconftest.a
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7933 $as_echo "$lt_cv_ar_at_file" >&6; }
7935 if test "x$lt_cv_ar_at_file" = xno; then
7938 archiver_list_spec=$lt_cv_ar_at_file
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}strip; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_STRIP+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 if test -n "$STRIP"; then
7956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 STRIP=$ac_cv_prog_STRIP
7976 if test -n "$STRIP"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7978 $as_echo "$STRIP" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7986 if test -z "$ac_cv_prog_STRIP"; then
7988 # Extract the first word of "strip", so it can be a program name with args.
7989 set dummy strip; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$ac_ct_STRIP"; then
7996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_STRIP="strip"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8016 if test -n "$ac_ct_STRIP"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8018 $as_echo "$ac_ct_STRIP" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8024 if test "x$ac_ct_STRIP" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8036 STRIP="$ac_cv_prog_STRIP"
8039 test -z "$STRIP" && STRIP=:
8046 if test -n "$ac_tool_prefix"; then
8047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_RANLIB+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 if test -n "$RANLIB"; then
8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 RANLIB=$ac_cv_prog_RANLIB
8075 if test -n "$RANLIB"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8077 $as_echo "$RANLIB" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8085 if test -z "$ac_cv_prog_RANLIB"; then
8086 ac_ct_RANLIB=$RANLIB
8087 # Extract the first word of "ranlib", so it can be a program name with args.
8088 set dummy ranlib; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$ac_ct_RANLIB"; then
8095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_ac_ct_RANLIB="ranlib"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8115 if test -n "$ac_ct_RANLIB"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8117 $as_echo "$ac_ct_RANLIB" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8123 if test "x$ac_ct_RANLIB" = x; then
8126 case $cross_compiling:$ac_tool_warned in
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130 ac_tool_warned=yes ;;
8132 RANLIB=$ac_ct_RANLIB
8135 RANLIB="$ac_cv_prog_RANLIB"
8138 test -z "$RANLIB" && RANLIB=:
8145 # Determine commands to create old-style static archives.
8146 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8147 old_postinstall_cmds='chmod 644 $oldlib'
8148 old_postuninstall_cmds=
8150 if test -n "$RANLIB"; then
8153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8159 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8164 lock_old_archive_extraction=yes ;;
8166 lock_old_archive_extraction=no ;;
8189 for ac_prog in gawk mawk nawk awk
8191 # Extract the first word of "$ac_prog", so it can be a program name with args.
8192 set dummy $ac_prog; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_AWK+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 if test -n "$AWK"; then
8199 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_AWK="$ac_prog"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 if test -n "$AWK"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8221 $as_echo "$AWK" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8228 test -n "$AWK" && break
8249 # If no C compiler was specified, use CC.
8252 # If no C compiler flags were specified, use CFLAGS.
8253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8255 # Allow CC to be a program name with arguments.
8259 # Check for command to grab the raw symbol name followed by C symbol from nm.
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8263 $as_echo_n "(cached) " >&6
8266 # These are sane defaults that work on at least a few old systems.
8267 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8269 # Character class describing NM global symbol codes.
8270 symcode='[BCDEGRST]'
8272 # Regexp to match symbols that can be accessed directly from C.
8273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8275 # Define system-specific variables.
8280 cygwin* | mingw* | pw32* | cegcc*)
8281 symcode='[ABCDGISTW]'
8284 if test "$host_cpu" = ia64; then
8285 symcode='[ABCDEGRST]'
8289 symcode='[BCDEGRST]'
8292 symcode='[BCDEGQRST]'
8303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8311 # If we're using GNU nm, then use its standard symbol codes.
8312 case `$NM -V 2>&1` in
8313 *GNU* | *'with BFD'*)
8314 symcode='[ABCDGIRSTW]' ;;
8317 # Transform an extracted symbol line into a proper C declaration.
8318 # Some systems (esp. on ia64) link data and code symbols differently,
8319 # so use this general approach.
8320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8322 # Transform an extracted symbol line into symbol name and symbol address
8323 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8324 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'"
8326 # Handle CRLF in mingw tool chain
8330 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8334 # Try without a prefix underscore, then with it.
8335 for ac_symprfx in "" "_"; do
8337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8338 symxfrm="\\1 $ac_symprfx\\2 \\2"
8340 # Write the raw and C identifiers.
8341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8342 # Fake it for dumpbin and say T for any non-static function
8343 # and D for any global variable.
8344 # Also find C++ and __fastcall symbols from MSVC++,
8345 # which start with @ or ?.
8346 lt_cv_sys_global_symbol_pipe="$AWK '"\
8347 " {last_section=section; section=\$ 3};"\
8348 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8349 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8350 " \$ 0!~/External *\|/{next};"\
8351 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8352 " {if(hide[section]) next};"\
8353 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8354 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8355 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8356 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8357 " ' prfx=^$ac_symprfx"
8359 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8361 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8363 # Check to see that the pipe works correctly.
8367 cat > conftest.$ac_ext <<_LT_EOF
8372 void nm_test_func(void);
8373 void nm_test_func(void){}
8377 int main(){nm_test_var='a';nm_test_func();return(0);}
8380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8381 (eval $ac_compile) 2>&5
8383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8384 test $ac_status = 0; }; then
8385 # Now try to grab the symbols.
8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8388 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; } && test -s "$nlist"; then
8392 # Try sorting and uniquifying the output.
8393 if sort "$nlist" | uniq > "$nlist"T; then
8394 mv -f "$nlist"T "$nlist"
8399 # Make sure that we snagged all the symbols we need.
8400 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8401 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8402 cat <<_LT_EOF > conftest.$ac_ext
8403 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8404 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8405 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8406 relocations are performed -- see ld's documentation on pseudo-relocs. */
8407 # define LT_DLSYM_CONST
8408 #elif defined(__osf__)
8409 /* This system does not cope well with relocations in const data. */
8410 # define LT_DLSYM_CONST
8412 # define LT_DLSYM_CONST const
8420 # Now generate the symbol file.
8421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8423 cat <<_LT_EOF >> conftest.$ac_ext
8425 /* The mapping between symbol names and symbols. */
8426 LT_DLSYM_CONST struct {
8430 lt__PROGRAM__LTX_preloaded_symbols[] =
8432 { "@PROGRAM@", (void *) 0 },
8434 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8435 cat <<\_LT_EOF >> conftest.$ac_ext
8439 /* This works around a problem in FreeBSD linker */
8440 #ifdef FREEBSD_WORKAROUND
8441 static const void *lt_preloaded_setup() {
8442 return lt__PROGRAM__LTX_preloaded_symbols;
8450 # Now try linking the two files.
8451 mv conftest.$ac_objext conftstm.$ac_objext
8452 lt_globsym_save_LIBS=$LIBS
8453 lt_globsym_save_CFLAGS=$CFLAGS
8454 LIBS="conftstm.$ac_objext"
8455 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8457 (eval $ac_link) 2>&5
8459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8463 LIBS=$lt_globsym_save_LIBS
8464 CFLAGS=$lt_globsym_save_CFLAGS
8466 echo "cannot find nm_test_func in $nlist" >&5
8469 echo "cannot find nm_test_var in $nlist" >&5
8472 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8475 echo "$progname: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 rm -rf conftest* conftst*
8480 # Do not use the global_symbol_pipe unless it works.
8481 if test "$pipe_works" = yes; then
8484 lt_cv_sys_global_symbol_pipe=
8490 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8491 lt_cv_sys_global_symbol_to_cdecl=
8493 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8495 $as_echo "failed" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8498 $as_echo "ok" >&6; }
8501 # Response file support.
8502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8503 nm_file_list_spec='@'
8504 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8505 nm_file_list_spec='@'
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8535 $as_echo_n "checking for sysroot... " >&6; }
8537 # Check whether --with-sysroot was given.
8538 if test "${with_sysroot+set}" = set; then :
8539 withval=$with_sysroot;
8546 case ${with_sysroot} in #(
8548 if test "$GCC" = yes; then
8549 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8553 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8559 $as_echo "${with_sysroot}" >&6; }
8560 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8565 $as_echo "${lt_sysroot:-no}" >&6; }
8571 # Check whether --enable-libtool-lock was given.
8572 if test "${enable_libtool_lock+set}" = set; then :
8573 enableval=$enable_libtool_lock;
8576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8578 # Some flags need to be propagated to the compiler or linker for good
8582 # Find out which ABI we are using.
8583 echo 'int i;' > conftest.$ac_ext
8584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8585 (eval $ac_compile) 2>&5
8587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8588 test $ac_status = 0; }; then
8589 case `/usr/bin/file conftest.$ac_objext` in
8601 # Find out which ABI we are using.
8602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8604 (eval $ac_compile) 2>&5
8606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8607 test $ac_status = 0; }; then
8608 if test "$lt_cv_prog_gnu_ld" = yes; then
8609 case `/usr/bin/file conftest.$ac_objext` in
8611 LD="${LD-ld} -melf32bsmip"
8614 LD="${LD-ld} -melf32bmipn32"
8617 LD="${LD-ld} -melf64bmip"
8621 case `/usr/bin/file conftest.$ac_objext` in
8637 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8638 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8639 # Find out which ABI we are using.
8640 echo 'int i;' > conftest.$ac_ext
8641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8642 (eval $ac_compile) 2>&5
8644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8645 test $ac_status = 0; }; then
8646 case `/usr/bin/file conftest.o` in
8649 x86_64-*kfreebsd*-gnu)
8650 LD="${LD-ld} -m elf_i386_fbsd"
8653 LD="${LD-ld} -m elf_i386"
8655 ppc64-*linux*|powerpc64-*linux*)
8656 LD="${LD-ld} -m elf32ppclinux"
8659 LD="${LD-ld} -m elf_s390"
8662 LD="${LD-ld} -m elf32_sparc"
8668 x86_64-*kfreebsd*-gnu)
8669 LD="${LD-ld} -m elf_x86_64_fbsd"
8672 LD="${LD-ld} -m elf_x86_64"
8674 ppc*-*linux*|powerpc*-*linux*)
8675 LD="${LD-ld} -m elf64ppc"
8677 s390*-*linux*|s390*-*tpf*)
8678 LD="${LD-ld} -m elf64_s390"
8681 LD="${LD-ld} -m elf64_sparc"
8691 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8692 SAVE_CFLAGS="$CFLAGS"
8693 CFLAGS="$CFLAGS -belf"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8695 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8696 if ${lt_cv_cc_needs_belf+:} false; then :
8697 $as_echo_n "(cached) " >&6
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 lt_cv_cc_needs_belf=yes
8719 lt_cv_cc_needs_belf=no
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8724 ac_cpp='$CPP $CPPFLAGS'
8725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8731 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8732 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8733 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8734 CFLAGS="$SAVE_CFLAGS"
8738 # Find out which ABI we are using.
8739 echo 'int i;' > conftest.$ac_ext
8740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8741 (eval $ac_compile) 2>&5
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }; then
8745 case `/usr/bin/file conftest.o` in
8747 case $lt_cv_prog_gnu_ld in
8751 LD="${LD-ld} -m elf_x86_64"
8754 LD="${LD-ld} -m elf64_sparc"
8757 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8758 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8763 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8775 need_locks="$enable_libtool_lock"
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}mt; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8783 $as_echo_n "(cached) " >&6
8785 if test -n "$MANIFEST_TOOL"; then
8786 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8806 if test -n "$MANIFEST_TOOL"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8808 $as_echo "$MANIFEST_TOOL" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8817 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8818 # Extract the first word of "mt", so it can be a program name with args.
8819 set dummy mt; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$ac_ct_MANIFEST_TOOL"; then
8826 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8846 if test -n "$ac_ct_MANIFEST_TOOL"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8848 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8857 case $cross_compiling:$ac_tool_warned in
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8863 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8866 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8869 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8871 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8872 if ${lt_cv_path_mainfest_tool+:} false; then :
8873 $as_echo_n "(cached) " >&6
8875 lt_cv_path_mainfest_tool=no
8876 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8877 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8878 cat conftest.err >&5
8879 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8880 lt_cv_path_mainfest_tool=yes
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8885 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8886 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8896 rhapsody* | darwin*)
8897 if test -n "$ac_tool_prefix"; then
8898 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8899 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 if test -n "$DSYMUTIL"; then
8906 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8926 if test -n "$DSYMUTIL"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8928 $as_echo "$DSYMUTIL" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8936 if test -z "$ac_cv_prog_DSYMUTIL"; then
8937 ac_ct_DSYMUTIL=$DSYMUTIL
8938 # Extract the first word of "dsymutil", so it can be a program name with args.
8939 set dummy dsymutil; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8943 $as_echo_n "(cached) " >&6
8945 if test -n "$ac_ct_DSYMUTIL"; then
8946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8966 if test -n "$ac_ct_DSYMUTIL"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8968 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8974 if test "x$ac_ct_DSYMUTIL" = x; then
8977 case $cross_compiling:$ac_tool_warned in
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8981 ac_tool_warned=yes ;;
8983 DSYMUTIL=$ac_ct_DSYMUTIL
8986 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8989 if test -n "$ac_tool_prefix"; then
8990 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8991 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993 $as_echo_n "checking for $ac_word... " >&6; }
8994 if ${ac_cv_prog_NMEDIT+:} false; then :
8995 $as_echo_n "(cached) " >&6
8997 if test -n "$NMEDIT"; then
8998 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9007 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 NMEDIT=$ac_cv_prog_NMEDIT
9018 if test -n "$NMEDIT"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9020 $as_echo "$NMEDIT" >&6; }
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9028 if test -z "$ac_cv_prog_NMEDIT"; then
9029 ac_ct_NMEDIT=$NMEDIT
9030 # Extract the first word of "nmedit", so it can be a program name with args.
9031 set dummy nmedit; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 if test -n "$ac_ct_NMEDIT"; then
9038 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 test -z "$as_dir" && as_dir=.
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9058 if test -n "$ac_ct_NMEDIT"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9060 $as_echo "$ac_ct_NMEDIT" >&6; }
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9066 if test "x$ac_ct_NMEDIT" = x; then
9069 case $cross_compiling:$ac_tool_warned in
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9075 NMEDIT=$ac_ct_NMEDIT
9078 NMEDIT="$ac_cv_prog_NMEDIT"
9081 if test -n "$ac_tool_prefix"; then
9082 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_LIPO+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 if test -n "$LIPO"; then
9090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109 LIPO=$ac_cv_prog_LIPO
9110 if test -n "$LIPO"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9112 $as_echo "$LIPO" >&6; }
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9120 if test -z "$ac_cv_prog_LIPO"; then
9122 # Extract the first word of "lipo", so it can be a program name with args.
9123 set dummy lipo; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9127 $as_echo_n "(cached) " >&6
9129 if test -n "$ac_ct_LIPO"; then
9130 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9139 ac_cv_prog_ac_ct_LIPO="lipo"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9150 if test -n "$ac_ct_LIPO"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9152 $as_echo "$ac_ct_LIPO" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9158 if test "x$ac_ct_LIPO" = x; then
9161 case $cross_compiling:$ac_tool_warned in
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9165 ac_tool_warned=yes ;;
9170 LIPO="$ac_cv_prog_LIPO"
9173 if test -n "$ac_tool_prefix"; then
9174 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9175 set dummy ${ac_tool_prefix}otool; ac_word=$2
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177 $as_echo_n "checking for $ac_word... " >&6; }
9178 if ${ac_cv_prog_OTOOL+:} false; then :
9179 $as_echo_n "(cached) " >&6
9181 if test -n "$OTOOL"; then
9182 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 OTOOL=$ac_cv_prog_OTOOL
9202 if test -n "$OTOOL"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9204 $as_echo "$OTOOL" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207 $as_echo "no" >&6; }
9212 if test -z "$ac_cv_prog_OTOOL"; then
9214 # Extract the first word of "otool", so it can be a program name with args.
9215 set dummy otool; ac_word=$2
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217 $as_echo_n "checking for $ac_word... " >&6; }
9218 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9219 $as_echo_n "(cached) " >&6
9221 if test -n "$ac_ct_OTOOL"; then
9222 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9231 ac_cv_prog_ac_ct_OTOOL="otool"
9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9242 if test -n "$ac_ct_OTOOL"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9244 $as_echo "$ac_ct_OTOOL" >&6; }
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9250 if test "x$ac_ct_OTOOL" = x; then
9253 case $cross_compiling:$ac_tool_warned in
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257 ac_tool_warned=yes ;;
9262 OTOOL="$ac_cv_prog_OTOOL"
9265 if test -n "$ac_tool_prefix"; then
9266 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9267 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_OTOOL64+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$OTOOL64"; then
9274 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 OTOOL64=$ac_cv_prog_OTOOL64
9294 if test -n "$OTOOL64"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9296 $as_echo "$OTOOL64" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9304 if test -z "$ac_cv_prog_OTOOL64"; then
9305 ac_ct_OTOOL64=$OTOOL64
9306 # Extract the first word of "otool64", so it can be a program name with args.
9307 set dummy otool64; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9311 $as_echo_n "(cached) " >&6
9313 if test -n "$ac_ct_OTOOL64"; then
9314 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 ac_cv_prog_ac_ct_OTOOL64="otool64"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9334 if test -n "$ac_ct_OTOOL64"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9336 $as_echo "$ac_ct_OTOOL64" >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9342 if test "x$ac_ct_OTOOL64" = x; then
9345 case $cross_compiling:$ac_tool_warned in
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349 ac_tool_warned=yes ;;
9351 OTOOL64=$ac_ct_OTOOL64
9354 OTOOL64="$ac_cv_prog_OTOOL64"
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9384 $as_echo_n "checking for -single_module linker flag... " >&6; }
9385 if ${lt_cv_apple_cc_single_mod+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 lt_cv_apple_cc_single_mod=no
9389 if test -z "${LT_MULTI_MODULE}"; then
9390 # By default we will add the -single_module flag. You can override
9391 # by either setting the environment variable LT_MULTI_MODULE
9392 # non-empty at configure time, or by adding -multi_module to the
9394 rm -rf libconftest.dylib*
9395 echo "int foo(void){return 1;}" > conftest.c
9396 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9397 -dynamiclib -Wl,-single_module conftest.c" >&5
9398 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9399 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9401 # If there is a non-empty error log, and "single_module"
9402 # appears in it, assume the flag caused a linker warning
9403 if test -s conftest.err && $GREP single_module conftest.err; then
9404 cat conftest.err >&5
9405 # Otherwise, if the output was created with a 0 exit code from
9406 # the compiler, it worked.
9407 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9408 lt_cv_apple_cc_single_mod=yes
9410 cat conftest.err >&5
9412 rm -rf libconftest.dylib*
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9417 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9420 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9421 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9422 $as_echo_n "(cached) " >&6
9424 lt_cv_ld_exported_symbols_list=no
9425 save_LDFLAGS=$LDFLAGS
9426 echo "_main" > conftest.sym
9427 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9439 if ac_fn_c_try_link "$LINENO"; then :
9440 lt_cv_ld_exported_symbols_list=yes
9442 lt_cv_ld_exported_symbols_list=no
9444 rm -f core conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
9446 LDFLAGS="$save_LDFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9450 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9453 $as_echo_n "checking for -force_load linker flag... " >&6; }
9454 if ${lt_cv_ld_force_load+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 lt_cv_ld_force_load=no
9458 cat > conftest.c << _LT_EOF
9459 int forced_loaded() { return 2;}
9461 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9462 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9463 echo "$AR cru libconftest.a conftest.o" >&5
9464 $AR cru libconftest.a conftest.o 2>&5
9465 echo "$RANLIB libconftest.a" >&5
9466 $RANLIB libconftest.a 2>&5
9467 cat > conftest.c << _LT_EOF
9468 int main() { return 0;}
9470 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9471 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9473 if test -s conftest.err && $GREP force_load conftest.err; then
9474 cat conftest.err >&5
9475 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9476 lt_cv_ld_force_load=yes
9478 cat conftest.err >&5
9480 rm -f conftest.err libconftest.a conftest conftest.c
9481 rm -rf conftest.dSYM
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9485 $as_echo "$lt_cv_ld_force_load" >&6; }
9487 rhapsody* | darwin1.[012])
9488 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9490 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9491 darwin*) # darwin 5.x on
9492 # if running on 10.5 or later, the deployment target defaults
9493 # to the OS version, if on x86, and 10.4, the deployment
9494 # target defaults to 10.4. Don't you love it?
9495 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9496 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9497 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9499 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9505 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9506 _lt_dar_single_mod='$single_module'
9508 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9509 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9511 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9513 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9514 _lt_dsymutil='~$DSYMUTIL $lib || :'
9521 for ac_header in dlfcn.h
9523 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9525 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_DLFCN_H 1
9550 # Check whether --enable-shared was given.
9551 if test "${enable_shared+set}" = set; then :
9552 enableval=$enable_shared; p=${PACKAGE-default}
9554 yes) enable_shared=yes ;;
9555 no) enable_shared=no ;;
9558 # Look at the argument we got. We use all the common list separators.
9559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9560 for pkg in $enableval; do
9562 if test "X$pkg" = "X$p"; then
9581 # Check whether --enable-static was given.
9582 if test "${enable_static+set}" = set; then :
9583 enableval=$enable_static; p=${PACKAGE-default}
9585 yes) enable_static=yes ;;
9586 no) enable_static=no ;;
9589 # Look at the argument we got. We use all the common list separators.
9590 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9591 for pkg in $enableval; do
9593 if test "X$pkg" = "X$p"; then
9613 # Check whether --with-pic was given.
9614 if test "${with_pic+set}" = set; then :
9615 withval=$with_pic; lt_p=${PACKAGE-default}
9617 yes|no) pic_mode=$withval ;;
9620 # Look at the argument we got. We use all the common list separators.
9621 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9622 for lt_pkg in $withval; do
9624 if test "X$lt_pkg" = "X$lt_p"; then
9636 test -z "$pic_mode" && pic_mode=default
9644 # Check whether --enable-fast-install was given.
9645 if test "${enable_fast_install+set}" = set; then :
9646 enableval=$enable_fast_install; p=${PACKAGE-default}
9648 yes) enable_fast_install=yes ;;
9649 no) enable_fast_install=no ;;
9651 enable_fast_install=no
9652 # Look at the argument we got. We use all the common list separators.
9653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9654 for pkg in $enableval; do
9656 if test "X$pkg" = "X$p"; then
9657 enable_fast_install=yes
9664 enable_fast_install=yes
9677 # This can be used to rebuild libtool when needed
9678 LIBTOOL_DEPS="$ltmain"
9680 # Always use our own libtool.
9681 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9712 test -z "$LN_S" && LN_S="ln -s"
9727 if test -n "${ZSH_VERSION+set}" ; then
9728 setopt NO_GLOB_SUBST
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9732 $as_echo_n "checking for objdir... " >&6; }
9733 if ${lt_cv_objdir+:} false; then :
9734 $as_echo_n "(cached) " >&6
9736 rm -f .libs 2>/dev/null
9737 mkdir .libs 2>/dev/null
9738 if test -d .libs; then
9741 # MS-DOS does not allow filenames that begin with a dot.
9744 rmdir .libs 2>/dev/null
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9747 $as_echo "$lt_cv_objdir" >&6; }
9748 objdir=$lt_cv_objdir
9754 cat >>confdefs.h <<_ACEOF
9755 #define LT_OBJDIR "$lt_cv_objdir/"
9763 # AIX sometimes has problems with the GCC collect2 program. For some
9764 # reason, if we set the COLLECT_NAMES environment variable, the problems
9765 # vanish in a puff of smoke.
9766 if test "X${COLLECT_NAMES+set}" != Xset; then
9768 export COLLECT_NAMES
9775 can_build_shared=yes
9777 # All known linkers require a `.a' archive for static linking (except MSVC,
9778 # which needs '.lib').
9781 with_gnu_ld="$lt_cv_prog_gnu_ld"
9784 old_CFLAGS="$CFLAGS"
9786 # Set sane defaults for various variables
9787 test -z "$CC" && CC=cc
9788 test -z "$LTCC" && LTCC=$CC
9789 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9790 test -z "$LD" && LD=ld
9791 test -z "$ac_objext" && ac_objext=o
9793 for cc_temp in $compiler""; do
9795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9801 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9804 # Only perform the check for file, if the check method requires it
9805 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9806 case $deplibs_check_method in
9808 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9810 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9811 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9812 $as_echo_n "(cached) " >&6
9816 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9819 lt_save_MAGIC_CMD="$MAGIC_CMD"
9820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9821 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9822 for ac_dir in $ac_dummy; do
9824 test -z "$ac_dir" && ac_dir=.
9825 if test -f $ac_dir/${ac_tool_prefix}file; then
9826 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9827 if test -n "$file_magic_test_file"; then
9828 case $deplibs_check_method in
9830 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9831 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9832 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9833 $EGREP "$file_magic_regex" > /dev/null; then
9838 *** Warning: the command libtool uses to detect shared libraries,
9839 *** $file_magic_cmd, produces output that libtool cannot recognize.
9840 *** The result is that libtool may fail to recognize shared libraries
9841 *** as such. This will affect the creation of libtool libraries that
9842 *** depend on shared libraries, but programs linked with such libtool
9843 *** libraries will work regardless of this problem. Nevertheless, you
9844 *** may want to report the problem to your system manager and/or to
9845 *** bug-libtool@gnu.org
9855 MAGIC_CMD="$lt_save_MAGIC_CMD"
9860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9861 if test -n "$MAGIC_CMD"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9863 $as_echo "$MAGIC_CMD" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9873 if test -z "$lt_cv_path_MAGIC_CMD"; then
9874 if test -n "$ac_tool_prefix"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9876 $as_echo_n "checking for file... " >&6; }
9877 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9878 $as_echo_n "(cached) " >&6
9882 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9885 lt_save_MAGIC_CMD="$MAGIC_CMD"
9886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9887 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9888 for ac_dir in $ac_dummy; do
9890 test -z "$ac_dir" && ac_dir=.
9891 if test -f $ac_dir/file; then
9892 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9893 if test -n "$file_magic_test_file"; then
9894 case $deplibs_check_method in
9896 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9898 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9899 $EGREP "$file_magic_regex" > /dev/null; then
9904 *** Warning: the command libtool uses to detect shared libraries,
9905 *** $file_magic_cmd, produces output that libtool cannot recognize.
9906 *** The result is that libtool may fail to recognize shared libraries
9907 *** as such. This will affect the creation of libtool libraries that
9908 *** depend on shared libraries, but programs linked with such libtool
9909 *** libraries will work regardless of this problem. Nevertheless, you
9910 *** may want to report the problem to your system manager and/or to
9911 *** bug-libtool@gnu.org
9921 MAGIC_CMD="$lt_save_MAGIC_CMD"
9926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9927 if test -n "$MAGIC_CMD"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9929 $as_echo "$MAGIC_CMD" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9945 # Use C for the default configuration in the libtool script
9949 ac_cpp='$CPP $CPPFLAGS'
9950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9955 # Source file extension for C test sources.
9958 # Object file extension for compiled C test sources.
9962 # Code to be used in simple compile tests
9963 lt_simple_compile_test_code="int some_variable = 0;"
9965 # Code to be used in simple link tests
9966 lt_simple_link_test_code='int main(){return(0);}'
9974 # If no C compiler was specified, use CC.
9977 # If no C compiler flags were specified, use CFLAGS.
9978 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9980 # Allow CC to be a program name with arguments.
9983 # Save the default compiler, since it gets overwritten when the other
9984 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9985 compiler_DEFAULT=$CC
9987 # save warnings/boilerplate of simple test code
9988 ac_outfile=conftest.$ac_objext
9989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9991 _lt_compiler_boilerplate=`cat conftest.err`
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9997 _lt_linker_boilerplate=`cat conftest.err`
10001 if test -n "$compiler"; then
10003 lt_prog_compiler_no_builtin_flag=
10005 if test "$GCC" = yes; then
10006 case $cc_basename in
10008 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10010 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10014 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10015 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10016 $as_echo_n "(cached) " >&6
10018 lt_cv_prog_compiler_rtti_exceptions=no
10019 ac_outfile=conftest.$ac_objext
10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10021 lt_compiler_flag="-fno-rtti -fno-exceptions"
10022 # Insert the option either (1) after the last *FLAGS variable, or
10023 # (2) before a word containing "conftest.", or (3) at the end.
10024 # Note that $ac_compile itself does not contain backslashes and begins
10025 # with a dollar sign (not a hyphen), so the echo should work correctly.
10026 # The option is referenced via a variable to avoid confusing sed.
10027 lt_compile=`echo "$ac_compile" | $SED \
10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10030 -e 's:$: $lt_compiler_flag:'`
10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10032 (eval "$lt_compile" 2>conftest.err)
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 if (exit $ac_status) && test -s "$ac_outfile"; then
10037 # The compiler can only warn and ignore the option if not recognized
10038 # So say no if there are warnings other than the usual output.
10039 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10042 lt_cv_prog_compiler_rtti_exceptions=yes
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10049 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10051 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10064 lt_prog_compiler_wl=
10065 lt_prog_compiler_pic=
10066 lt_prog_compiler_static=
10069 if test "$GCC" = yes; then
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_static='-static'
10075 # All AIX code is PIC.
10076 if test "$host_cpu" = ia64; then
10077 # AIX 5 now supports IA64 processor
10078 lt_prog_compiler_static='-Bstatic'
10085 # see comment about AmigaOS4 .so support
10086 lt_prog_compiler_pic='-fPIC'
10089 # FIXME: we need at least 68020 code to build shared libraries, but
10090 # adding the `-m68020' flag to GCC prevents building anything better,
10092 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10098 # PIC is the default for these OSes.
10101 mingw* | cygwin* | pw32* | os2* | cegcc*)
10102 # This hack is so that the source file can tell whether it is being
10103 # built for inclusion in a dll (and should export symbols for example).
10104 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10105 # (--disable-auto-import) libraries
10106 lt_prog_compiler_pic='-DDLL_EXPORT'
10109 darwin* | rhapsody*)
10110 # PIC is the default on this platform
10111 # Common symbols not allowed in MH_DYLIB files
10112 lt_prog_compiler_pic='-fno-common'
10116 # PIC is the default for Haiku.
10117 # The "-static" flag exists, but is broken.
10118 lt_prog_compiler_static=
10122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10124 # sets the default TLS model and affects inlining.
10130 lt_prog_compiler_pic='-fPIC'
10136 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10137 # Instead, we relocate shared libraries at runtime.
10141 # Just because we use GCC doesn't mean we suddenly get shared libraries
10142 # on systems that don't support them.
10143 lt_prog_compiler_can_build_shared=no
10148 # QNX uses GNU C++, but need to define -shared option too, otherwise
10149 # it will coredump.
10150 lt_prog_compiler_pic='-fPIC -shared'
10154 if test -d /usr/nec; then
10155 lt_prog_compiler_pic=-Kconform_pic
10160 lt_prog_compiler_pic='-fPIC'
10164 case $cc_basename in
10165 nvcc*) # Cuda Compiler Driver 2.2
10166 lt_prog_compiler_wl='-Xlinker '
10167 if test -n "$lt_prog_compiler_pic"; then
10168 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10173 # PORTME Check for flag to pass linker flags through the system compiler.
10176 lt_prog_compiler_wl='-Wl,'
10177 if test "$host_cpu" = ia64; then
10178 # AIX 5 now supports IA64 processor
10179 lt_prog_compiler_static='-Bstatic'
10181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10185 mingw* | cygwin* | pw32* | os2* | cegcc*)
10186 # This hack is so that the source file can tell whether it is being
10187 # built for inclusion in a dll (and should export symbols for example).
10188 lt_prog_compiler_pic='-DDLL_EXPORT'
10191 hpux9* | hpux10* | hpux11*)
10192 lt_prog_compiler_wl='-Wl,'
10193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194 # not for PA HP-UX.
10200 lt_prog_compiler_pic='+Z'
10203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204 lt_prog_compiler_static='${wl}-a ${wl}archive'
10207 irix5* | irix6* | nonstopux*)
10208 lt_prog_compiler_wl='-Wl,'
10209 # PIC (with -KPIC) is the default.
10210 lt_prog_compiler_static='-non_shared'
10213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10214 case $cc_basename in
10215 # old Intel for x86_64 which still supported -KPIC.
10217 lt_prog_compiler_wl='-Wl,'
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-static'
10221 # icc used to be incompatible with GCC.
10222 # ICC 10 doesn't accept -KPIC any more.
10224 lt_prog_compiler_wl='-Wl,'
10225 lt_prog_compiler_pic='-fPIC'
10226 lt_prog_compiler_static='-static'
10228 # Lahey Fortran 8.1.
10230 lt_prog_compiler_wl='-Wl,'
10231 lt_prog_compiler_pic='--shared'
10232 lt_prog_compiler_static='--static'
10235 # NAG Fortran compiler
10236 lt_prog_compiler_wl='-Wl,-Wl,,'
10237 lt_prog_compiler_pic='-PIC'
10238 lt_prog_compiler_static='-Bstatic'
10240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10241 # Portland Group compilers (*not* the Pentium gcc compiler,
10242 # which looks to be a dead project)
10243 lt_prog_compiler_wl='-Wl,'
10244 lt_prog_compiler_pic='-fpic'
10245 lt_prog_compiler_static='-Bstatic'
10248 lt_prog_compiler_wl='-Wl,'
10249 # All Alpha code is PIC.
10250 lt_prog_compiler_static='-non_shared'
10252 xl* | bgxl* | bgf* | mpixl*)
10253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10254 lt_prog_compiler_wl='-Wl,'
10255 lt_prog_compiler_pic='-qpic'
10256 lt_prog_compiler_static='-qstaticlink'
10259 case `$CC -V 2>&1 | sed 5q` in
10260 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10262 lt_prog_compiler_pic='-KPIC'
10263 lt_prog_compiler_static='-Bstatic'
10264 lt_prog_compiler_wl=''
10266 *Sun\ F* | *Sun*Fortran*)
10267 lt_prog_compiler_pic='-KPIC'
10268 lt_prog_compiler_static='-Bstatic'
10269 lt_prog_compiler_wl='-Qoption ld '
10273 lt_prog_compiler_pic='-KPIC'
10274 lt_prog_compiler_static='-Bstatic'
10275 lt_prog_compiler_wl='-Wl,'
10277 *Intel*\ [CF]*Compiler*)
10278 lt_prog_compiler_wl='-Wl,'
10279 lt_prog_compiler_pic='-fPIC'
10280 lt_prog_compiler_static='-static'
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fpic'
10285 lt_prog_compiler_static='-Bstatic'
10293 lt_prog_compiler_pic='-KPIC'
10294 lt_prog_compiler_static='-Bstatic'
10298 # QNX uses GNU C++, but need to define -shared option too, otherwise
10299 # it will coredump.
10300 lt_prog_compiler_pic='-fPIC -shared'
10303 osf3* | osf4* | osf5*)
10304 lt_prog_compiler_wl='-Wl,'
10305 # All OSF/1 code is PIC.
10306 lt_prog_compiler_static='-non_shared'
10310 lt_prog_compiler_static='-non_shared'
10314 lt_prog_compiler_pic='-KPIC'
10315 lt_prog_compiler_static='-Bstatic'
10316 case $cc_basename in
10317 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10318 lt_prog_compiler_wl='-Qoption ld ';;
10320 lt_prog_compiler_wl='-Wl,';;
10325 lt_prog_compiler_wl='-Qoption ld '
10326 lt_prog_compiler_pic='-PIC'
10327 lt_prog_compiler_static='-Bstatic'
10330 sysv4 | sysv4.2uw2* | sysv4.3*)
10331 lt_prog_compiler_wl='-Wl,'
10332 lt_prog_compiler_pic='-KPIC'
10333 lt_prog_compiler_static='-Bstatic'
10337 if test -d /usr/nec ;then
10338 lt_prog_compiler_pic='-Kconform_pic'
10339 lt_prog_compiler_static='-Bstatic'
10343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-KPIC'
10346 lt_prog_compiler_static='-Bstatic'
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_can_build_shared=no
10355 lt_prog_compiler_pic='-pic'
10356 lt_prog_compiler_static='-Bstatic'
10360 lt_prog_compiler_can_build_shared=no
10366 # For platforms which do not support PIC, -DPIC is meaningless:
10368 lt_prog_compiler_pic=
10371 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10377 if ${lt_cv_prog_compiler_pic+:} false; then :
10378 $as_echo_n "(cached) " >&6
10380 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10383 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10384 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10387 # Check to make sure the PIC flag actually works.
10389 if test -n "$lt_prog_compiler_pic"; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10391 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10392 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10393 $as_echo_n "(cached) " >&6
10395 lt_cv_prog_compiler_pic_works=no
10396 ac_outfile=conftest.$ac_objext
10397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10399 # Insert the option either (1) after the last *FLAGS variable, or
10400 # (2) before a word containing "conftest.", or (3) at the end.
10401 # Note that $ac_compile itself does not contain backslashes and begins
10402 # with a dollar sign (not a hyphen), so the echo should work correctly.
10403 # The option is referenced via a variable to avoid confusing sed.
10404 lt_compile=`echo "$ac_compile" | $SED \
10405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10407 -e 's:$: $lt_compiler_flag:'`
10408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10409 (eval "$lt_compile" 2>conftest.err)
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 if (exit $ac_status) && test -s "$ac_outfile"; then
10414 # The compiler can only warn and ignore the option if not recognized
10415 # So say no if there are warnings other than the usual output.
10416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10419 lt_cv_prog_compiler_pic_works=yes
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10426 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10428 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10429 case $lt_prog_compiler_pic in
10431 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10434 lt_prog_compiler_pic=
10435 lt_prog_compiler_can_build_shared=no
10451 # Check to make sure the static flag actually works.
10453 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10455 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10456 if ${lt_cv_prog_compiler_static_works+:} false; then :
10457 $as_echo_n "(cached) " >&6
10459 lt_cv_prog_compiler_static_works=no
10460 save_LDFLAGS="$LDFLAGS"
10461 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10464 # The linker can only warn and ignore the option if not recognized
10465 # So say no if there are warnings
10466 if test -s conftest.err; then
10467 # Append any errors to the config.log.
10468 cat conftest.err 1>&5
10469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10471 if diff conftest.exp conftest.er2 >/dev/null; then
10472 lt_cv_prog_compiler_static_works=yes
10475 lt_cv_prog_compiler_static_works=yes
10479 LDFLAGS="$save_LDFLAGS"
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10483 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10485 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10488 lt_prog_compiler_static=
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10498 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10499 if ${lt_cv_prog_compiler_c_o+:} false; then :
10500 $as_echo_n "(cached) " >&6
10502 lt_cv_prog_compiler_c_o=no
10503 $RM -r conftest 2>/dev/null
10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10509 lt_compiler_flag="-o out/conftest2.$ac_objext"
10510 # Insert the option either (1) after the last *FLAGS variable, or
10511 # (2) before a word containing "conftest.", or (3) at the end.
10512 # Note that $ac_compile itself does not contain backslashes and begins
10513 # with a dollar sign (not a hyphen), so the echo should work correctly.
10514 lt_compile=`echo "$ac_compile" | $SED \
10515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517 -e 's:$: $lt_compiler_flag:'`
10518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10519 (eval "$lt_compile" 2>out/conftest.err)
10521 cat out/conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10525 # The compiler can only warn and ignore the option if not recognized
10526 # So say no if there are warnings
10527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10530 lt_cv_prog_compiler_c_o=yes
10535 # SGI C++ compiler will create directory out/ii_files/ for
10536 # template instantiation
10537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10538 $RM out/* && rmdir out
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10545 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10554 if ${lt_cv_prog_compiler_c_o+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 lt_cv_prog_compiler_c_o=no
10558 $RM -r conftest 2>/dev/null
10562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10564 lt_compiler_flag="-o out/conftest2.$ac_objext"
10565 # Insert the option either (1) after the last *FLAGS variable, or
10566 # (2) before a word containing "conftest.", or (3) at the end.
10567 # Note that $ac_compile itself does not contain backslashes and begins
10568 # with a dollar sign (not a hyphen), so the echo should work correctly.
10569 lt_compile=`echo "$ac_compile" | $SED \
10570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10572 -e 's:$: $lt_compiler_flag:'`
10573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10574 (eval "$lt_compile" 2>out/conftest.err)
10576 cat out/conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10580 # The compiler can only warn and ignore the option if not recognized
10581 # So say no if there are warnings
10582 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10583 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10584 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10585 lt_cv_prog_compiler_c_o=yes
10590 # SGI C++ compiler will create directory out/ii_files/ for
10591 # template instantiation
10592 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10593 $RM out/* && rmdir out
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10600 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10605 hard_links="nottested"
10606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10607 # do not overwrite the value of need_locks provided by the user
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10609 $as_echo_n "checking if we can lock with hard links... " >&6; }
10612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10614 ln conftest.a conftest.b 2>&5 || hard_links=no
10615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10617 $as_echo "$hard_links" >&6; }
10618 if test "$hard_links" = no; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10620 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10636 allow_undefined_flag=
10637 always_export_symbols=no
10639 archive_expsym_cmds=
10640 compiler_needs_object=no
10641 enable_shared_with_static_runtimes=no
10642 export_dynamic_flag_spec=
10643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10644 hardcode_automatic=no
10646 hardcode_direct_absolute=no
10647 hardcode_libdir_flag_spec=
10648 hardcode_libdir_separator=
10649 hardcode_minus_L=no
10650 hardcode_shlibpath_var=unsupported
10652 link_all_deplibs=unknown
10654 module_expsym_cmds=
10655 old_archive_from_new_cmds=
10656 old_archive_from_expsyms_cmds=
10657 thread_safe_flag_spec=
10658 whole_archive_flag_spec=
10659 # include_expsyms should be a list of space-separated symbols to be *always*
10660 # included in the symbol list
10662 # exclude_expsyms can be an extended regexp of symbols to exclude
10663 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10664 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10665 # as well as any symbol that contains `d'.
10666 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10667 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10668 # platforms (ab)use it in PIC code, but their linkers get confused if
10669 # the symbol is explicitly referenced. Since portable code cannot
10670 # rely on this symbol name, it's probably fine to never include it in
10671 # preloaded symbol tables.
10672 # Exclude shared library initialization/finalization symbols.
10673 extract_expsyms_cmds=
10676 cygwin* | mingw* | pw32* | cegcc*)
10677 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10678 # When not using gcc, we currently assume that we are using
10679 # Microsoft Visual C++.
10680 if test "$GCC" != yes; then
10685 # we just hope/assume this is gcc and not c89 (= MSVC++)
10695 # On some targets, GNU ld is compatible enough with the native linker
10696 # that we're better off using the native interface for both.
10697 lt_use_gnu_ld_interface=no
10698 if test "$with_gnu_ld" = yes; then
10701 # The AIX port of GNU ld has always aspired to compatibility
10702 # with the native linker. However, as the warning in the GNU ld
10703 # block says, versions before 2.19.5* couldn't really create working
10704 # shared libraries, regardless of the interface used.
10705 case `$LD -v 2>&1` in
10706 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10707 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10708 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10710 lt_use_gnu_ld_interface=yes
10715 lt_use_gnu_ld_interface=yes
10720 if test "$lt_use_gnu_ld_interface" = yes; then
10721 # If archive_cmds runs LD, not CC, wlarc should be empty
10724 # Set some defaults for GNU ld with shared library support. These
10725 # are reset later if shared libraries are not supported. Putting them
10726 # here allows them to be overridden if necessary.
10727 runpath_var=LD_RUN_PATH
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 export_dynamic_flag_spec='${wl}--export-dynamic'
10730 # ancient GNU ld didn't support --whole-archive et. al.
10731 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10732 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10734 whole_archive_flag_spec=
10736 supports_anon_versioning=no
10737 case `$LD -v 2>&1` in
10738 *GNU\ gold*) supports_anon_versioning=yes ;;
10739 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10740 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10741 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10742 *\ 2.11.*) ;; # other 2.11 versions
10743 *) supports_anon_versioning=yes ;;
10746 # See if GNU ld supports shared libraries.
10749 # On AIX/PPC, the GNU linker is very broken
10750 if test "$host_cpu" != ia64; then
10754 *** Warning: the GNU linker, at least up to release 2.19, is reported
10755 *** to be unable to reliably create shared libraries on AIX.
10756 *** Therefore, libtool is disabling shared libraries support. If you
10757 *** really care for shared libraries, you may want to install binutils
10758 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10759 *** You will then need to restart the configuration process.
10768 # see comment about AmigaOS4 .so support
10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770 archive_expsym_cmds=''
10773 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)'
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_minus_L=yes
10781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10782 allow_undefined_flag=unsupported
10783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10784 # support --undefined. This deserves some investigation. FIXME
10785 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 cygwin* | mingw* | pw32* | cegcc*)
10792 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10793 # as there is no search path for DLLs.
10794 hardcode_libdir_flag_spec='-L$libdir'
10795 export_dynamic_flag_spec='${wl}--export-all-symbols'
10796 allow_undefined_flag=unsupported
10797 always_export_symbols=no
10798 enable_shared_with_static_runtimes=yes
10799 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'
10800 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10802 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10804 # If the export-symbols file already is a .def file (1st line
10805 # is EXPORTS), use it as is; otherwise, prepend...
10806 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10807 cp $export_symbols $output_objdir/$soname.def;
10809 echo EXPORTS > $output_objdir/$soname.def;
10810 cat $export_symbols >> $output_objdir/$soname.def;
10812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 link_all_deplibs=yes
10825 hardcode_shlibpath_var=no
10826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10827 export_dynamic_flag_spec='${wl}-E'
10828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10829 # Instead, shared libraries are loaded at an image base (0x10000000 by
10830 # default) and relocated if they conflict, which is a slow very memory
10831 # consuming and fragmenting process. To avoid this, we pick a random,
10832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10835 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'
10838 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10840 if test "$host_os" = linux-dietlibc; then
10841 case $cc_basename in
10842 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10845 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10846 && test "$tmp_diet" = no
10848 tmp_addflag=' $pic_flag'
10849 tmp_sharedflag='-shared'
10850 case $cc_basename,$host_cpu in
10851 pgcc*) # Portland Group C compiler
10852 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'
10853 tmp_addflag=' $pic_flag'
10855 pgf77* | pgf90* | pgf95* | pgfortran*)
10856 # Portland Group f77 and f90 compilers
10857 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'
10858 tmp_addflag=' $pic_flag -Mnomain' ;;
10859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10860 tmp_addflag=' -i_dynamic' ;;
10861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10862 tmp_addflag=' -i_dynamic -nofor_main' ;;
10863 ifc* | ifort*) # Intel Fortran compiler
10864 tmp_addflag=' -nofor_main' ;;
10865 lf95*) # Lahey Fortran 8.1
10866 whole_archive_flag_spec=
10867 tmp_sharedflag='--shared' ;;
10868 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10869 tmp_sharedflag='-qmkshrobj'
10871 nvcc*) # Cuda Compiler Driver 2.2
10872 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'
10873 compiler_needs_object=yes
10876 case `$CC -V 2>&1 | sed 5q` in
10877 *Sun\ C*) # Sun C 5.9
10878 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'
10879 compiler_needs_object=yes
10880 tmp_sharedflag='-G' ;;
10881 *Sun\ F*) # Sun Fortran 8.3
10882 tmp_sharedflag='-G' ;;
10884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 if test "x$supports_anon_versioning" = xyes; then
10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889 echo "local: *; };" >> $output_objdir/$libname.ver~
10890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10893 case $cc_basename in
10894 xlf* | bgf* | bgxlf* | mpixlf*)
10895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10899 if test "x$supports_anon_versioning" = xyes; then
10900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10902 echo "local: *; };" >> $output_objdir/$libname.ver~
10903 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10928 *** create shared libraries on Solaris systems. Therefore, libtool
10929 *** is disabling shared libraries support. We urge you to upgrade GNU
10930 *** binutils to release 2.9.1 or newer. Another option is to modify
10931 *** your PATH or compiler configuration so that the native linker is
10932 *** used, and then restart.
10935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10944 case `$LD -v 2>&1` in
10945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10950 *** reliably create shared libraries on SCO systems. Therefore, libtool
10951 *** is disabling shared libraries support. We urge you to upgrade GNU
10952 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10953 *** your PATH or compiler configuration so that the native linker is
10954 *** used, and then restart.
10959 # For security reasons, it is highly recommended that you always
10960 # use absolute paths for naming shared libraries, and exclude the
10961 # DT_RUNPATH tag from executables and libraries. But doing so
10962 # requires that you compile everything twice, which is a pain.
10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10991 if test "$ld_shlibs" = no; then
10993 hardcode_libdir_flag_spec=
10994 export_dynamic_flag_spec=
10995 whole_archive_flag_spec=
10998 # PORTME fill in a description of your system's linker (not GNU ld)
11001 allow_undefined_flag=unsupported
11002 always_export_symbols=yes
11003 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'
11004 # Note: this linker hardcodes the directories in LIBPATH if there
11005 # are no directories specified by -L.
11006 hardcode_minus_L=yes
11007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11008 # Neither direct hardcoding nor static linking is supported with a
11010 hardcode_direct=unsupported
11015 if test "$host_cpu" = ia64; then
11016 # On IA64, the linker does run time linking by default, so we don't
11017 # have to do anything special.
11018 aix_use_runtimelinking=no
11019 exp_sym_flag='-Bexport'
11022 # If we're using GNU nm, then we don't want the "-C" option.
11023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11024 # Also, AIX nm treats weak defined symbols like other global
11025 # defined symbols, whereas GNU nm marks them as "W".
11026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11027 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'
11029 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'
11031 aix_use_runtimelinking=no
11033 # Test if we are trying to use run time linking or normal
11034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11035 # need to do runtime linking.
11036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11037 for ld_flag in $LDFLAGS; do
11038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11039 aix_use_runtimelinking=yes
11046 exp_sym_flag='-bexport'
11047 no_entry_flag='-bnoentry'
11050 # When large executables or shared objects are built, AIX ld can
11051 # have problems creating the table of contents. If linking a library
11052 # or program results in "error TOC overflow" add -mminimal-toc to
11053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 hardcode_libdir_separator=':'
11060 link_all_deplibs=yes
11061 file_list_spec='${wl}-f,'
11063 if test "$GCC" = yes; then
11064 case $host_os in aix4.[012]|aix4.[012].*)
11065 # We only want to do this on AIX 4.2 and lower, the check
11066 # below for broken collect2 doesn't work under 4.3+
11067 collect2name=`${CC} -print-prog-name=collect2`
11068 if test -f "$collect2name" &&
11069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11071 # We have reworked collect2
11074 # We have old collect2
11075 hardcode_direct=unsupported
11076 # It fails to find uninstalled libraries when the uninstalled
11077 # path is not listed in the libpath. Setting hardcode_minus_L
11078 # to unsupported forces relinking
11079 hardcode_minus_L=yes
11080 hardcode_libdir_flag_spec='-L$libdir'
11081 hardcode_libdir_separator=
11085 shared_flag='-shared'
11086 if test "$aix_use_runtimelinking" = yes; then
11087 shared_flag="$shared_flag "'${wl}-G'
11091 if test "$host_cpu" = ia64; then
11092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11093 # chokes on -Wl,-G. The following line is correct:
11096 if test "$aix_use_runtimelinking" = yes; then
11097 shared_flag='${wl}-G'
11099 shared_flag='${wl}-bM:SRE'
11104 export_dynamic_flag_spec='${wl}-bexpall'
11105 # It seems that -bexpall does not export symbols beginning with
11106 # underscore (_), so it is better to generate a list of symbols to export.
11107 always_export_symbols=yes
11108 if test "$aix_use_runtimelinking" = yes; then
11109 # Warning - without using the other runtime loading flags (-brtl),
11110 # -berok will link without error, but may produce a broken library.
11111 allow_undefined_flag='-berok'
11112 # Determine the default libpath from the value encoded in an
11113 # empty executable.
11114 if test "${lt_cv_aix_libpath+set}" = set; then
11115 aix_libpath=$lt_cv_aix_libpath
11117 if ${lt_cv_aix_libpath_+:} false; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11131 if ac_fn_c_try_link "$LINENO"; then :
11133 lt_aix_libpath_sed='
11134 /Import File Strings/,/^$/ {
11136 s/^0 *\([^ ]*\) *$/\1/
11140 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141 # Check for a 64-bit object if we didn't find anything.
11142 if test -z "$lt_cv_aix_libpath_"; then
11143 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 if test -z "$lt_cv_aix_libpath_"; then
11149 lt_cv_aix_libpath_="/usr/lib:/lib"
11154 aix_libpath=$lt_cv_aix_libpath_
11157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11158 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"
11160 if test "$host_cpu" = ia64; then
11161 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11162 allow_undefined_flag="-z nodefs"
11163 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"
11165 # Determine the default libpath from the value encoded in an
11166 # empty executable.
11167 if test "${lt_cv_aix_libpath+set}" = set; then
11168 aix_libpath=$lt_cv_aix_libpath
11170 if ${lt_cv_aix_libpath_+:} false; then :
11171 $as_echo_n "(cached) " >&6
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11184 if ac_fn_c_try_link "$LINENO"; then :
11186 lt_aix_libpath_sed='
11187 /Import File Strings/,/^$/ {
11189 s/^0 *\([^ ]*\) *$/\1/
11193 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11194 # Check for a 64-bit object if we didn't find anything.
11195 if test -z "$lt_cv_aix_libpath_"; then
11196 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 if test -z "$lt_cv_aix_libpath_"; then
11202 lt_cv_aix_libpath_="/usr/lib:/lib"
11207 aix_libpath=$lt_cv_aix_libpath_
11210 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11211 # Warning - without using the other run time loading flags,
11212 # -berok will link without error, but may produce a broken library.
11213 no_undefined_flag=' ${wl}-bernotok'
11214 allow_undefined_flag=' ${wl}-berok'
11215 if test "$with_gnu_ld" = yes; then
11216 # We only use this code for GNU lds that support --whole-archive.
11217 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11219 # Exported symbols can be pulled into shared objects from archives
11220 whole_archive_flag_spec='$convenience'
11222 archive_cmds_need_lc=yes
11223 # This is similar to how AIX traditionally builds its shared libraries.
11224 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'
11232 # see comment about AmigaOS4 .so support
11233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 archive_expsym_cmds=''
11237 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)'
11238 hardcode_libdir_flag_spec='-L$libdir'
11239 hardcode_minus_L=yes
11245 export_dynamic_flag_spec=-rdynamic
11248 cygwin* | mingw* | pw32* | cegcc*)
11249 # When not using gcc, we currently assume that we are using
11250 # Microsoft Visual C++.
11251 # hardcode_libdir_flag_spec is actually meaningless, as there is
11252 # no search path for DLLs.
11253 case $cc_basename in
11256 hardcode_libdir_flag_spec=' '
11257 allow_undefined_flag=unsupported
11258 always_export_symbols=yes
11260 # Tell ltmain to make .lib files, not .a files.
11262 # Tell ltmain to make .dll files, not .so files.
11264 # FIXME: Setting linknames here is a bad hack.
11265 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11266 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11269 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11271 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11273 # The linker will not automatically build a static lib if we build a DLL.
11274 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11275 enable_shared_with_static_runtimes=yes
11276 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11279 old_postinstall_cmds='chmod 644 $oldlib'
11280 postlink_cmds='lt_outputfile="@OUTPUT@"~
11281 lt_tool_outputfile="@TOOL_OUTPUT@"~
11282 case $lt_outputfile in
11285 lt_outputfile="$lt_outputfile.exe"
11286 lt_tool_outputfile="$lt_tool_outputfile.exe"
11289 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11290 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11291 $RM "$lt_outputfile.manifest";
11295 # Assume MSVC wrapper
11296 hardcode_libdir_flag_spec=' '
11297 allow_undefined_flag=unsupported
11298 # Tell ltmain to make .lib files, not .a files.
11300 # Tell ltmain to make .dll files, not .so files.
11302 # FIXME: Setting linknames here is a bad hack.
11303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11304 # The linker will automatically build a .lib file if we build a DLL.
11305 old_archive_from_new_cmds='true'
11306 # FIXME: Should let the user specify the lib program.
11307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11308 enable_shared_with_static_runtimes=yes
11313 darwin* | rhapsody*)
11316 archive_cmds_need_lc=no
11318 hardcode_automatic=yes
11319 hardcode_shlibpath_var=unsupported
11320 if test "$lt_cv_ld_force_load" = "yes"; then
11321 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\"`'
11324 whole_archive_flag_spec=''
11326 link_all_deplibs=yes
11327 allow_undefined_flag="$_lt_dar_allow_undefined"
11328 case $cc_basename in
11329 ifort*) _lt_dar_can_shared=yes ;;
11330 *) _lt_dar_can_shared=$GCC ;;
11332 if test "$_lt_dar_can_shared" = "yes"; then
11333 output_verbose_link_cmd=func_echo_all
11334 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11335 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11336 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}"
11337 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}"
11346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_shlibpath_var=no
11351 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11352 # support. Future versions do this automatically, but an explicit c++rt0.o
11353 # does not break anything, and helps significantly (at the cost of a little
11356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11357 hardcode_libdir_flag_spec='-R$libdir'
11358 hardcode_direct=yes
11359 hardcode_shlibpath_var=no
11362 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_direct=yes
11366 hardcode_minus_L=yes
11367 hardcode_shlibpath_var=no
11370 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11371 freebsd* | dragonfly*)
11372 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373 hardcode_libdir_flag_spec='-R$libdir'
11374 hardcode_direct=yes
11375 hardcode_shlibpath_var=no
11379 if test "$GCC" = yes; then
11380 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'
11382 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'
11384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11385 hardcode_libdir_separator=:
11386 hardcode_direct=yes
11388 # hardcode_minus_L: Not really in the search PATH,
11389 # but as the default location of the library.
11390 hardcode_minus_L=yes
11391 export_dynamic_flag_spec='${wl}-E'
11395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11396 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11398 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11400 if test "$with_gnu_ld" = no; then
11401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11402 hardcode_libdir_separator=:
11403 hardcode_direct=yes
11404 hardcode_direct_absolute=yes
11405 export_dynamic_flag_spec='${wl}-E'
11406 # hardcode_minus_L: Not really in the search PATH,
11407 # but as the default location of the library.
11408 hardcode_minus_L=yes
11413 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11422 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11435 # Older versions of the 11.00 compiler do not understand -b yet
11436 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11438 $as_echo_n "checking if $CC understands -b... " >&6; }
11439 if ${lt_cv_prog_compiler__b+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 lt_cv_prog_compiler__b=no
11443 save_LDFLAGS="$LDFLAGS"
11444 LDFLAGS="$LDFLAGS -b"
11445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11447 # The linker can only warn and ignore the option if not recognized
11448 # So say no if there are warnings
11449 if test -s conftest.err; then
11450 # Append any errors to the config.log.
11451 cat conftest.err 1>&5
11452 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11454 if diff conftest.exp conftest.er2 >/dev/null; then
11455 lt_cv_prog_compiler__b=yes
11458 lt_cv_prog_compiler__b=yes
11462 LDFLAGS="$save_LDFLAGS"
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11466 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11468 if test x"$lt_cv_prog_compiler__b" = xyes; then
11469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11471 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11477 if test "$with_gnu_ld" = no; then
11478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11479 hardcode_libdir_separator=:
11484 hardcode_shlibpath_var=no
11487 hardcode_direct=yes
11488 hardcode_direct_absolute=yes
11489 export_dynamic_flag_spec='${wl}-E'
11491 # hardcode_minus_L: Not really in the search PATH,
11492 # but as the default location of the library.
11493 hardcode_minus_L=yes
11499 irix5* | irix6* | nonstopux*)
11500 if test "$GCC" = yes; then
11501 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'
11502 # Try to use the -exported_symbol ld option, if it does not
11503 # work, assume that -exports_file does not work either and
11504 # implicitly export all symbols.
11505 # This should be the same for all languages, so no per-tag cache variable.
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11507 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11508 if ${lt_cv_irix_exported_symbol+:} false; then :
11509 $as_echo_n "(cached) " >&6
11511 save_LDFLAGS="$LDFLAGS"
11512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 int foo (void) { return 0; }
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 lt_cv_irix_exported_symbol=yes
11520 lt_cv_irix_exported_symbol=no
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LDFLAGS="$save_LDFLAGS"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11527 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11528 if test "$lt_cv_irix_exported_symbol" = yes; then
11529 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'
11532 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'
11533 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'
11535 archive_cmds_need_lc='no'
11536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11537 hardcode_libdir_separator=:
11539 link_all_deplibs=yes
11543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11548 hardcode_libdir_flag_spec='-R$libdir'
11549 hardcode_direct=yes
11550 hardcode_shlibpath_var=no
11554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11555 hardcode_direct=yes
11556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11557 hardcode_libdir_separator=:
11558 hardcode_shlibpath_var=no
11565 if test -f /usr/libexec/ld.so; then
11566 hardcode_direct=yes
11567 hardcode_shlibpath_var=no
11568 hardcode_direct_absolute=yes
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11573 export_dynamic_flag_spec='${wl}-E'
11576 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578 hardcode_libdir_flag_spec='-R$libdir'
11581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11592 hardcode_libdir_flag_spec='-L$libdir'
11593 hardcode_minus_L=yes
11594 allow_undefined_flag=unsupported
11595 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'
11596 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11600 if test "$GCC" = yes; then
11601 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11602 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'
11604 allow_undefined_flag=' -expect_unresolved \*'
11605 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'
11607 archive_cmds_need_lc='no'
11608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11609 hardcode_libdir_separator=:
11612 osf4* | osf5*) # as osf3* with the addition of -msym flag
11613 if test "$GCC" = yes; then
11614 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11615 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'
11616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11618 allow_undefined_flag=' -expect_unresolved \*'
11619 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'
11620 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~
11621 $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'
11623 # Both c and cxx compiler support -rpath directly
11624 hardcode_libdir_flag_spec='-rpath $libdir'
11626 archive_cmds_need_lc='no'
11627 hardcode_libdir_separator=:
11631 no_undefined_flag=' -z defs'
11632 if test "$GCC" = yes; then
11634 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11636 $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'
11638 case `$CC -V 2>&1` in
11641 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11647 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11649 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11653 hardcode_libdir_flag_spec='-R$libdir'
11654 hardcode_shlibpath_var=no
11656 solaris2.[0-5] | solaris2.[0-5].*) ;;
11658 # The compiler driver will combine and reorder linker options,
11659 # but understands `-z linker_flag'. GCC discards it without `$wl',
11660 # but is careful enough not to reorder.
11661 # Supported since Solaris 2.6 (maybe 2.5.1?)
11662 if test "$GCC" = yes; then
11663 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11665 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11669 link_all_deplibs=yes
11673 if test "x$host_vendor" = xsequent; then
11674 # Use $CC to link under sequent, because it throws in some extra .o
11675 # files that make .init and .fini sections work.
11676 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11678 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11680 hardcode_libdir_flag_spec='-L$libdir'
11681 hardcode_direct=yes
11682 hardcode_minus_L=yes
11683 hardcode_shlibpath_var=no
11687 case $host_vendor in
11689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11690 hardcode_direct=yes # is this really true???
11693 ## LD is ld it makes a PLAMLIB
11694 ## CC just makes a GrossModule.
11695 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11696 reload_cmds='$CC -r -o $output$reload_objs'
11700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11701 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11704 runpath_var='LD_RUN_PATH'
11705 hardcode_shlibpath_var=no
11709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710 hardcode_shlibpath_var=no
11711 export_dynamic_flag_spec='-Bexport'
11715 if test -d /usr/nec; then
11716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11717 hardcode_shlibpath_var=no
11718 runpath_var=LD_RUN_PATH
11719 hardcode_runpath_var=yes
11724 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11725 no_undefined_flag='${wl}-z,text'
11726 archive_cmds_need_lc=no
11727 hardcode_shlibpath_var=no
11728 runpath_var='LD_RUN_PATH'
11730 if test "$GCC" = yes; then
11731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11739 sysv5* | sco3.2v5* | sco5v6*)
11740 # Note: We can NOT use -z defs as we might desire, because we do not
11741 # link with -lc, and that would cause any symbols used from libc to
11742 # always be unresolved, which means just about no library would
11743 # ever link correctly. If we're not using GNU ld we use -z text
11744 # though, which does catch some bad symbols but isn't as heavy-handed
11746 no_undefined_flag='${wl}-z,text'
11747 allow_undefined_flag='${wl}-z,nodefs'
11748 archive_cmds_need_lc=no
11749 hardcode_shlibpath_var=no
11750 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11751 hardcode_libdir_separator=':'
11752 link_all_deplibs=yes
11753 export_dynamic_flag_spec='${wl}-Bexport'
11754 runpath_var='LD_RUN_PATH'
11756 if test "$GCC" = yes; then
11757 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11767 hardcode_libdir_flag_spec='-L$libdir'
11768 hardcode_shlibpath_var=no
11776 if test x$host_vendor = xsni; then
11778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11779 export_dynamic_flag_spec='${wl}-Blargedynsym'
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11786 $as_echo "$ld_shlibs" >&6; }
11787 test "$ld_shlibs" = no && can_build_shared=no
11789 with_gnu_ld=$with_gnu_ld
11806 # Do we need to explicitly link libc?
11808 case "x$archive_cmds_need_lc" in
11810 # Assume -lc should be added
11811 archive_cmds_need_lc=yes
11813 if test "$enable_shared" = yes && test "$GCC" = yes; then
11814 case $archive_cmds in
11816 # FIXME: we may have to deal with multi-command sequences.
11819 # Test whether the compiler implicitly links with -lc since on some
11820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11821 # to ld, don't add -lc before -lgcc.
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11824 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11825 $as_echo_n "(cached) " >&6
11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11831 (eval $ac_compile) 2>&5
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } 2>conftest.err; then
11837 libobjs=conftest.$ac_objext
11839 wl=$lt_prog_compiler_wl
11840 pic_flag=$lt_prog_compiler_pic
11846 lt_save_allow_undefined_flag=$allow_undefined_flag
11847 allow_undefined_flag=
11848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852 test $ac_status = 0; }
11854 lt_cv_archive_cmds_need_lc=no
11856 lt_cv_archive_cmds_need_lc=yes
11858 allow_undefined_flag=$lt_save_allow_undefined_flag
11860 cat conftest.err 1>&5
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11866 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11867 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12028 if test "$GCC" = yes; then
12030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12031 *) lt_awk_arg="/^libraries:/" ;;
12034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12035 *) lt_sed_strip_eq="s,=/,/,g" ;;
12037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12038 case $lt_search_path_spec in
12040 # if the path contains ";" then we assume it to be the separator
12041 # otherwise default to the standard path separator (i.e. ":") - it is
12042 # assumed that no part of a normal pathname contains ";" but that should
12043 # okay in the real world where ";" in dirpaths is itself problematic.
12044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12050 # Ok, now we have the path, separated by spaces, we can step through it
12051 # and add multilib dir if necessary.
12052 lt_tmp_lt_search_path_spec=
12053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12054 for lt_sys_path in $lt_search_path_spec; do
12055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12058 test -d "$lt_sys_path" && \
12059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12063 BEGIN {RS=" "; FS="/|\n";} {
12066 for (lt_i = NF; lt_i > 0; lt_i--) {
12067 if ($lt_i != "" && $lt_i != ".") {
12068 if ($lt_i == "..") {
12071 if (lt_count == 0) {
12072 lt_foo="/" $lt_i lt_foo;
12079 if (lt_foo != "") { lt_freq[lt_foo]++; }
12080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12082 # AWK program above erroneously prepends '/' to C:/dos/paths
12085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12092 library_names_spec=
12093 libname_spec='lib$name'
12097 postuninstall_cmds=
12101 shlibpath_overrides_runpath=unknown
12103 dynamic_linker="$host_os ld.so"
12104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12105 need_lib_prefix=unknown
12106 hardcode_into_libs=no
12108 # when you set need_version to no, make sure it does not cause -set_version
12109 # flags to be left without arguments
12110 need_version=unknown
12114 version_type=linux # correct to gnu/linux during the next big refactor
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116 shlibpath_var=LIBPATH
12118 # AIX 3 has no versioning support, so we append a major version to the name.
12119 soname_spec='${libname}${release}${shared_ext}$major'
12123 version_type=linux # correct to gnu/linux during the next big refactor
12126 hardcode_into_libs=yes
12127 if test "$host_cpu" = ia64; then
12128 # AIX 5 supports IA64
12129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130 shlibpath_var=LD_LIBRARY_PATH
12132 # With GCC up to 2.95.x, collect2 would create an import file
12133 # for dependence libraries. The import file would start with
12134 # the line `#! .'. This would cause the generated library to
12135 # depend on `.', always an invalid library. This was fixed in
12136 # development snapshots of GCC prior to 3.0.
12138 aix4 | aix4.[01] | aix4.[01].*)
12139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12144 can_build_shared=no
12148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149 # soname into executable. Probably we can add versioning support to
12150 # collect2, so additional links can be useful in future.
12151 if test "$aix_use_runtimelinking" = yes; then
12152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153 # instead of lib<name>.a to let people know that these are not
12154 # typical AIX shared libraries.
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 # We preserve .a as extension for shared libraries through AIX4.2
12158 # and later when we are not doing run time linking.
12159 library_names_spec='${libname}${release}.a $libname.a'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LIBPATH
12169 # Since July 2007 AmigaOS4 officially supports .so libraries.
12170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 library_names_spec='$libname.ixlibrary $libname.a'
12175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12176 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'
12182 library_names_spec='${libname}${shared_ext}'
12183 dynamic_linker="$host_os ld.so"
12184 shlibpath_var=LIBRARY_PATH
12188 version_type=linux # correct to gnu/linux during the next big refactor
12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12191 soname_spec='${libname}${release}${shared_ext}$major'
12192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12196 # the default ld.so.conf also contains /usr/contrib/lib and
12197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12198 # libtool to hard-code these into programs
12201 cygwin* | mingw* | pw32* | cegcc*)
12202 version_type=windows
12207 case $GCC,$cc_basename in
12210 library_names_spec='$libname.dll.a'
12211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12212 postinstall_cmds='base_file=`basename \${file}`~
12213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12214 dldir=$destdir/`dirname \$dlpath`~
12215 test -d \$dldir || mkdir -p \$dldir~
12216 $install_prog $dir/$dlname \$dldir/$dlname~
12217 chmod a+x \$dldir/$dlname~
12218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12222 dlpath=$dir/\$dldll~
12224 shlibpath_overrides_runpath=yes
12228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12229 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12234 # MinGW DLLs use traditional 'lib' prefix
12235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12238 # pw32 DLLs use 'pw' prefix rather than 'lib'
12239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12242 dynamic_linker='Win32 ld.exe'
12247 libname_spec='$name'
12248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12249 library_names_spec='${libname}.dll.lib'
12253 sys_lib_search_path_spec=
12256 for lt_path in $LIB
12259 # Let DOS variable expansion print the short 8.3 style file name.
12260 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12261 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12264 # Convert to MSYS style.
12265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12268 # Convert to unix form, then to dos form, then back to unix form
12269 # but this time dos style (no spaces!) so that the unix form looks
12270 # like /cygdrive/c/PROGRA~1:/cygdr...
12271 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12272 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12273 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12276 sys_lib_search_path_spec="$LIB"
12277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12278 # It is most probably a Windows format PATH.
12279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283 # FIXME: find the short name or the path components, as spaces are
12284 # common. (e.g. "Program Files" -> "PROGRA~1")
12288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12289 postinstall_cmds='base_file=`basename \${file}`~
12290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12291 dldir=$destdir/`dirname \$dlpath`~
12292 test -d \$dldir || mkdir -p \$dldir~
12293 $install_prog $dir/$dlname \$dldir/$dlname'
12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12295 dlpath=$dir/\$dldll~
12297 shlibpath_overrides_runpath=yes
12298 dynamic_linker='Win32 link.exe'
12302 # Assume MSVC wrapper
12303 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12304 dynamic_linker='Win32 ld.exe'
12307 # FIXME: first we should search . and the directory the executable is in
12311 darwin* | rhapsody*)
12312 dynamic_linker="$host_os dyld"
12313 version_type=darwin
12316 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12317 soname_spec='${libname}${release}${major}$shared_ext'
12318 shlibpath_overrides_runpath=yes
12319 shlibpath_var=DYLD_LIBRARY_PATH
12320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12327 version_type=linux # correct to gnu/linux during the next big refactor
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12335 freebsd* | dragonfly*)
12336 # DragonFly does not have aout. When/if they implement a new
12337 # versioning mechanism, adjust this.
12338 if test -x /usr/bin/objformat; then
12339 objformat=`/usr/bin/objformat`
12342 freebsd[23].*) objformat=aout ;;
12343 *) objformat=elf ;;
12346 version_type=freebsd-$objformat
12347 case $version_type in
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12358 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes
12363 freebsd3.[01]* | freebsdelf3.[01]*)
12364 shlibpath_overrides_runpath=yes
12365 hardcode_into_libs=yes
12367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369 shlibpath_overrides_runpath=no
12370 hardcode_into_libs=yes
12372 *) # from 4.6 on, and DragonFly
12373 shlibpath_overrides_runpath=yes
12374 hardcode_into_libs=yes
12380 version_type=linux # correct to gnu/linux during the next big refactor
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 shlibpath_overrides_runpath=no
12387 hardcode_into_libs=yes
12391 version_type=linux # correct to gnu/linux during the next big refactor
12394 dynamic_linker="$host_os runtime_loader"
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 shlibpath_var=LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12400 hardcode_into_libs=yes
12403 hpux9* | hpux10* | hpux11*)
12404 # Give a soname corresponding to the major version so that dld.sl refuses to
12405 # link against other versions.
12412 hardcode_into_libs=yes
12413 dynamic_linker="$host_os dld.so"
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417 soname_spec='${libname}${release}${shared_ext}$major'
12418 if test "X$HPUX_IA64_MODE" = X32; then
12419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12427 hardcode_into_libs=yes
12428 dynamic_linker="$host_os dld.sl"
12429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432 soname_spec='${libname}${release}${shared_ext}$major'
12433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12438 dynamic_linker="$host_os dld.sl"
12439 shlibpath_var=SHLIB_PATH
12440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12446 postinstall_cmds='chmod 555 $lib'
12447 # or fails outright, so override atomically:
12448 install_override_mode=555
12452 version_type=linux # correct to gnu/linux during the next big refactor
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12458 shlibpath_var=LD_LIBRARY_PATH
12459 shlibpath_overrides_runpath=no
12460 hardcode_into_libs=yes
12463 irix5* | irix6* | nonstopux*)
12465 nonstopux*) version_type=nonstopux ;;
12467 if test "$lt_cv_prog_gnu_ld" = yes; then
12468 version_type=linux # correct to gnu/linux during the next big refactor
12475 soname_spec='${libname}${release}${shared_ext}$major'
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 irix5* | nonstopux*)
12479 libsuff= shlibsuff=
12482 case $LD in # libtool.m4 will add one of these switches to LD
12483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12484 libsuff= shlibsuff= libmagic=32-bit;;
12485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12486 libsuff=32 shlibsuff=N32 libmagic=N32;;
12487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12489 *) libsuff= shlibsuff= libmagic=never-match;;
12493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12494 shlibpath_overrides_runpath=no
12495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12497 hardcode_into_libs=yes
12500 # No shared lib support for Linux oldld, aout, or coff.
12501 linux*oldld* | linux*aout* | linux*coff*)
12505 # This must be glibc/ELF.
12506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12507 version_type=linux # correct to gnu/linux during the next big refactor
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 shlibpath_overrides_runpath=no
12516 # Some binutils ld are patched to set DT_RUNPATH
12517 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12518 $as_echo_n "(cached) " >&6
12520 lt_cv_shlibpath_overrides_runpath=no
12521 save_LDFLAGS=$LDFLAGS
12522 save_libdir=$libdir
12523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12538 lt_cv_shlibpath_overrides_runpath=yes
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LDFLAGS=$save_LDFLAGS
12544 libdir=$save_libdir
12548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12550 # This implies no fast_install, which is unacceptable.
12551 # Some rework will be needed to allow for fast_install
12552 # before this can be enabled.
12553 hardcode_into_libs=yes
12555 # Append ld.so.conf contents to the search path
12556 if test -f /etc/ld.so.conf; then
12557 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' ' '`
12558 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12561 # We used to test for /lib/ld.so.1 and disable shared libraries on
12562 # powerpc, because MkLinux only supported shared libraries with the
12563 # GNU dynamic linker. Since this was broken with cross compilers,
12564 # most powerpc-linux boxes support dynamic linking these days and
12565 # people can always --disable-shared, the test was removed, and we
12566 # assume the GNU/Linux dynamic linker is in use.
12567 dynamic_linker='GNU/Linux ld.so'
12574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12577 dynamic_linker='NetBSD (a.out) ld.so'
12579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12580 soname_spec='${libname}${release}${shared_ext}$major'
12581 dynamic_linker='NetBSD ld.elf_so'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=yes
12585 hardcode_into_libs=yes
12589 version_type=linux # correct to gnu/linux during the next big refactor
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=yes
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=no
12603 hardcode_into_libs=yes
12604 dynamic_linker='ldqnx.so'
12609 sys_lib_dlsearch_path_spec="/usr/lib"
12611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12614 *) need_version=no ;;
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12618 shlibpath_var=LD_LIBRARY_PATH
12619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12621 openbsd2.[89] | openbsd2.[89].*)
12622 shlibpath_overrides_runpath=no
12625 shlibpath_overrides_runpath=yes
12629 shlibpath_overrides_runpath=yes
12634 libname_spec='$name'
12637 library_names_spec='$libname${shared_ext} $libname.a'
12638 dynamic_linker='OS/2 ld.exe'
12639 shlibpath_var=LIBPATH
12642 osf3* | osf4* | osf5*)
12646 soname_spec='${libname}${release}${shared_ext}$major'
12647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12658 version_type=linux # correct to gnu/linux during the next big refactor
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 shlibpath_overrides_runpath=yes
12665 hardcode_into_libs=yes
12666 # ldd complains unless libraries are executable
12667 postinstall_cmds='chmod +x $lib'
12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 shlibpath_overrides_runpath=yes
12676 if test "$with_gnu_ld" = yes; then
12683 version_type=linux # correct to gnu/linux during the next big refactor
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12685 soname_spec='${libname}${release}${shared_ext}$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 case $host_vendor in
12689 shlibpath_overrides_runpath=no
12691 runpath_var=LD_RUN_PATH
12699 shlibpath_overrides_runpath=no
12700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12706 if test -d /usr/nec ;then
12707 version_type=linux # correct to gnu/linux during the next big refactor
12708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12709 soname_spec='$libname${shared_ext}.$major'
12710 shlibpath_var=LD_LIBRARY_PATH
12714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12715 version_type=freebsd-elf
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12719 soname_spec='${libname}${release}${shared_ext}$major'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 shlibpath_overrides_runpath=yes
12722 hardcode_into_libs=yes
12723 if test "$with_gnu_ld" = yes; then
12724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12733 sys_lib_dlsearch_path_spec='/usr/lib'
12737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12738 version_type=linux # correct to gnu/linux during the next big refactor
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 shlibpath_overrides_runpath=no
12744 hardcode_into_libs=yes
12748 version_type=linux # correct to gnu/linux during the next big refactor
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 shlibpath_var=LD_LIBRARY_PATH
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12759 $as_echo "$dynamic_linker" >&6; }
12760 test "$dynamic_linker" = no && can_build_shared=no
12762 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12763 if test "$GCC" = yes; then
12764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12767 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12770 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12771 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12866 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12868 if test -n "$hardcode_libdir_flag_spec" ||
12869 test -n "$runpath_var" ||
12870 test "X$hardcode_automatic" = "Xyes" ; then
12872 # We can hardcode non-existent directories.
12873 if test "$hardcode_direct" != no &&
12874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12875 # have to relink, otherwise we might link with an installed library
12876 # when we should be linking with a yet-to-be-installed one
12877 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12878 test "$hardcode_minus_L" != no; then
12879 # Linking always hardcodes the temporary library directory.
12880 hardcode_action=relink
12882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12883 hardcode_action=immediate
12886 # We cannot hardcode anything, or else we can only hardcode existing
12888 hardcode_action=unsupported
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12891 $as_echo "$hardcode_action" >&6; }
12893 if test "$hardcode_action" = relink ||
12894 test "$inherit_rpath" = yes; then
12895 # Fast installation is not supported
12896 enable_fast_install=no
12897 elif test "$shlibpath_overrides_runpath" = yes ||
12898 test "$enable_shared" = no; then
12899 # Fast installation is not necessary
12900 enable_fast_install=needless
12908 if test "x$enable_dlopen" != xyes; then
12909 enable_dlopen=unknown
12910 enable_dlopen_self=unknown
12911 enable_dlopen_self_static=unknown
12918 lt_cv_dlopen="load_add_on"
12920 lt_cv_dlopen_self=yes
12923 mingw* | pw32* | cegcc*)
12924 lt_cv_dlopen="LoadLibrary"
12929 lt_cv_dlopen="dlopen"
12934 # if libdl is installed we need to link against it
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12937 if ${ac_cv_lib_dl_dlopen+:} false; then :
12938 $as_echo_n "(cached) " >&6
12940 ac_check_lib_save_LIBS=$LIBS
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_dl_dlopen=yes
12963 ac_cv_lib_dl_dlopen=no
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12975 lt_cv_dlopen="dyld"
12977 lt_cv_dlopen_self=yes
12984 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12985 if test "x$ac_cv_func_shl_load" = xyes; then :
12986 lt_cv_dlopen="shl_load"
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12989 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12990 if ${ac_cv_lib_dld_shl_load+:} false; then :
12991 $as_echo_n "(cached) " >&6
12993 ac_check_lib_save_LIBS=$LIBS
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13008 return shl_load ();
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 ac_cv_lib_dld_shl_load=yes
13016 ac_cv_lib_dld_shl_load=no
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13023 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13024 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13025 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13027 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13028 if test "x$ac_cv_func_dlopen" = xyes; then :
13029 lt_cv_dlopen="dlopen"
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13032 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13033 if ${ac_cv_lib_dl_dlopen+:} false; then :
13034 $as_echo_n "(cached) " >&6
13036 ac_check_lib_save_LIBS=$LIBS
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 ac_cv_lib_dl_dlopen=yes
13059 ac_cv_lib_dl_dlopen=no
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13066 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13067 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13071 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13072 if ${ac_cv_lib_svld_dlopen+:} false; then :
13073 $as_echo_n "(cached) " >&6
13075 ac_check_lib_save_LIBS=$LIBS
13076 LIBS="-lsvld $LIBS"
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13095 if ac_fn_c_try_link "$LINENO"; then :
13096 ac_cv_lib_svld_dlopen=yes
13098 ac_cv_lib_svld_dlopen=no
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 LIBS=$ac_check_lib_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13105 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13110 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13111 if ${ac_cv_lib_dld_dld_link+:} false; then :
13112 $as_echo_n "(cached) " >&6
13114 ac_check_lib_save_LIBS=$LIBS
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13129 return dld_link ();
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_lib_dld_dld_link=yes
13137 ac_cv_lib_dld_dld_link=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13144 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13145 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13146 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13167 if test "x$lt_cv_dlopen" != xno; then
13173 case $lt_cv_dlopen in
13175 save_CPPFLAGS="$CPPFLAGS"
13176 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13178 save_LDFLAGS="$LDFLAGS"
13179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13182 LIBS="$lt_cv_dlopen_libs $LIBS"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13185 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13186 if ${lt_cv_dlopen_self+:} false; then :
13187 $as_echo_n "(cached) " >&6
13189 if test "$cross_compiling" = yes; then :
13190 lt_cv_dlopen_self=cross
13192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13193 lt_status=$lt_dlunknown
13194 cat > conftest.$ac_ext <<_LT_EOF
13195 #line $LINENO "configure"
13196 #include "confdefs.h"
13205 # define LT_DLGLOBAL RTLD_GLOBAL
13208 # define LT_DLGLOBAL DL_GLOBAL
13210 # define LT_DLGLOBAL 0
13214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13215 find out it does not work in some platform. */
13216 #ifndef LT_DLLAZY_OR_NOW
13218 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13221 # define LT_DLLAZY_OR_NOW DL_LAZY
13224 # define LT_DLLAZY_OR_NOW RTLD_NOW
13227 # define LT_DLLAZY_OR_NOW DL_NOW
13229 # define LT_DLLAZY_OR_NOW 0
13236 /* When -fvisbility=hidden is used, assume the code has been annotated
13237 correspondingly for the symbols needed. */
13238 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13239 int fnord () __attribute__((visibility("default")));
13242 int fnord () { return 42; }
13245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13246 int status = $lt_dlunknown;
13250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13253 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13254 else puts (dlerror ());
13256 /* dlclose (self); */
13264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13265 (eval $ac_link) 2>&5
13267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13268 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13269 (./conftest; exit; ) >&5 2>/dev/null
13271 case x$lt_status in
13272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13277 # compilation failed
13278 lt_cv_dlopen_self=no
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13286 $as_echo "$lt_cv_dlopen_self" >&6; }
13288 if test "x$lt_cv_dlopen_self" = xyes; then
13289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13291 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13292 if ${lt_cv_dlopen_self_static+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 if test "$cross_compiling" = yes; then :
13296 lt_cv_dlopen_self_static=cross
13298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13299 lt_status=$lt_dlunknown
13300 cat > conftest.$ac_ext <<_LT_EOF
13301 #line $LINENO "configure"
13302 #include "confdefs.h"
13311 # define LT_DLGLOBAL RTLD_GLOBAL
13314 # define LT_DLGLOBAL DL_GLOBAL
13316 # define LT_DLGLOBAL 0
13320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13321 find out it does not work in some platform. */
13322 #ifndef LT_DLLAZY_OR_NOW
13324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13327 # define LT_DLLAZY_OR_NOW DL_LAZY
13330 # define LT_DLLAZY_OR_NOW RTLD_NOW
13333 # define LT_DLLAZY_OR_NOW DL_NOW
13335 # define LT_DLLAZY_OR_NOW 0
13342 /* When -fvisbility=hidden is used, assume the code has been annotated
13343 correspondingly for the symbols needed. */
13344 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13345 int fnord () __attribute__((visibility("default")));
13348 int fnord () { return 42; }
13351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13352 int status = $lt_dlunknown;
13356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13359 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13360 else puts (dlerror ());
13362 /* dlclose (self); */
13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13371 (eval $ac_link) 2>&5
13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13374 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13375 (./conftest; exit; ) >&5 2>/dev/null
13377 case x$lt_status in
13378 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13379 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13380 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13383 # compilation failed
13384 lt_cv_dlopen_self_static=no
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13392 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13395 CPPFLAGS="$save_CPPFLAGS"
13396 LDFLAGS="$save_LDFLAGS"
13401 case $lt_cv_dlopen_self in
13402 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13403 *) enable_dlopen_self=unknown ;;
13406 case $lt_cv_dlopen_self_static in
13407 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13408 *) enable_dlopen_self_static=unknown ;;
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13431 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13432 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13433 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13434 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13436 $as_echo "yes" >&6; }
13438 # FIXME - insert some real tests, host_os isn't really good enough
13441 if test -n "$STRIP" ; then
13442 striplib="$STRIP -x"
13443 old_striplib="$STRIP -S"
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13445 $as_echo "yes" >&6; }
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13469 # Report which library types will actually be built
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13471 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13473 $as_echo "$can_build_shared" >&6; }
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13476 $as_echo_n "checking whether to build shared libraries... " >&6; }
13477 test "$can_build_shared" = "no" && enable_shared=no
13479 # On AIX, shared libraries and static libraries use the same namespace, and
13480 # are all built from PIC.
13483 test "$enable_shared" = yes && enable_static=no
13484 if test -n "$RANLIB"; then
13485 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13486 postinstall_cmds='$RANLIB $lib'
13491 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13492 test "$enable_shared" = yes && enable_static=no
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13497 $as_echo "$enable_shared" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13500 $as_echo_n "checking whether to build static libraries... " >&6; }
13501 # Make sure either enable_shared or enable_static is yes.
13502 test "$enable_shared" = yes || enable_static=yes
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13504 $as_echo "$enable_static" >&6; }
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13532 ac_config_commands="$ac_config_commands libtool"
13537 # Only expand once:
13542 # Checks for header files.
13543 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h
13545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13559 # Using own tests for int64* because autoconf builtin only give 32bit.
13560 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13561 if test "x$ac_cv_type_int8_t" = xyes; then :
13565 cat >>confdefs.h <<_ACEOF
13566 #define int8_t signed char
13571 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13572 if test "x$ac_cv_type_int16_t" = xyes; then :
13576 cat >>confdefs.h <<_ACEOF
13577 #define int16_t short
13582 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13583 if test "x$ac_cv_type_int32_t" = xyes; then :
13587 cat >>confdefs.h <<_ACEOF
13588 #define int32_t int
13593 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13594 if test "x$ac_cv_type_int64_t" = xyes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define int64_t long long
13604 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13605 if test "x$ac_cv_type_uint8_t" = xyes; then :
13609 cat >>confdefs.h <<_ACEOF
13610 #define uint8_t unsigned char
13615 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13616 if test "x$ac_cv_type_uint16_t" = xyes; then :
13620 cat >>confdefs.h <<_ACEOF
13621 #define uint16_t unsigned short
13626 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13627 if test "x$ac_cv_type_uint32_t" = xyes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define uint32_t unsigned int
13637 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13638 if test "x$ac_cv_type_uint64_t" = xyes; then :
13642 cat >>confdefs.h <<_ACEOF
13643 #define uint64_t unsigned long long
13648 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13649 if test "x$ac_cv_type_size_t" = xyes; then :
13653 cat >>confdefs.h <<_ACEOF
13654 #define size_t unsigned int
13659 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13660 if test "x$ac_cv_type_ssize_t" = xyes; then :
13664 cat >>confdefs.h <<_ACEOF
13665 #define ssize_t int
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13671 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13672 if ${ac_cv_type_uid_t+:} false; then :
13673 $as_echo_n "(cached) " >&6
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <sys/types.h>
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "uid_t" >/dev/null 2>&1; then :
13682 ac_cv_type_uid_t=yes
13684 ac_cv_type_uid_t=no
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13690 $as_echo "$ac_cv_type_uid_t" >&6; }
13691 if test $ac_cv_type_uid_t = no; then
13693 $as_echo "#define uid_t int" >>confdefs.h
13696 $as_echo "#define gid_t int" >>confdefs.h
13700 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13701 if test "x$ac_cv_type_pid_t" = xyes; then :
13705 cat >>confdefs.h <<_ACEOF
13711 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13712 if test "x$ac_cv_type_off_t" = xyes; then :
13716 cat >>confdefs.h <<_ACEOF
13717 #define off_t long int
13722 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "
13723 $ac_includes_default
13724 #ifdef HAVE_WINSOCK2_H
13725 # include <winsock2.h>
13729 if test "x$ac_cv_type_u_char" = xyes; then :
13733 $as_echo "#define u_char unsigned char" >>confdefs.h
13737 ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "
13738 $ac_includes_default
13739 #ifdef HAVE_SYS_RESOURCE_H
13740 # include <sys/resource.h>
13744 if test "x$ac_cv_type_rlim_t" = xyes; then :
13748 $as_echo "#define rlim_t unsigned long" >>confdefs.h
13753 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13754 $ac_includes_default
13755 #ifdef HAVE_SYS_SOCKET_H
13756 # include <sys/socket.h>
13758 #ifdef HAVE_WS2TCPIP_H
13759 # include <ws2tcpip.h>
13763 if test "x$ac_cv_type_socklen_t" = xyes; then :
13767 $as_echo "#define socklen_t int" >>confdefs.h
13771 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
13772 $ac_includes_default
13773 #ifdef HAVE_SYS_TYPES_H
13774 # include <sys/types.h>
13776 #ifdef HAVE_NETINET_IN_H
13777 # include <netinet/in.h>
13781 if test "x$ac_cv_type_in_addr_t" = xyes; then :
13785 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13789 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
13790 $ac_includes_default
13791 #ifdef HAVE_SYS_TYPES_H
13792 # include <sys/types.h>
13794 #ifdef HAVE_NETINET_IN_H
13795 # include <netinet/in.h>
13799 if test "x$ac_cv_type_in_port_t" = xyes; then :
13803 $as_echo "#define in_port_t uint16_t" >>confdefs.h
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memcmp compares unsigned" >&5
13808 $as_echo_n "checking if memcmp compares unsigned... " >&6; }
13809 if test "$cross_compiling" = yes; then :
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile no" >&5
13811 $as_echo "cross-compile no" >&6; }
13813 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13815 case " $LIBOBJS " in
13816 *" memcmp.$ac_objext "* ) ;;
13817 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13827 #include <stdlib.h>
13828 #include <string.h>
13831 char a = 255, b = 0;
13832 if(memcmp(&a, &b, 1) < 0)
13838 if ac_fn_c_try_run "$LINENO"; then :
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13840 $as_echo "yes" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13845 $as_echo "#define MEMCMP_IS_BROKEN 1" >>confdefs.h
13847 case " $LIBOBJS " in
13848 *" memcmp.$ac_objext "* ) ;;
13849 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13856 conftest.$ac_objext conftest.beam conftest.$ac_ext
13860 # add option to disable the evil rpath
13862 # Check whether --enable-rpath was given.
13863 if test "${enable_rpath+set}" = set; then :
13864 enableval=$enable_rpath; enable_rpath=$enableval
13869 if test "x$enable_rpath" = xno; then
13870 ac_config_commands="$ac_config_commands disable-rpath"
13876 # check to see if libraries are needed for these functions.
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13878 $as_echo_n "checking for library containing inet_pton... " >&6; }
13879 if ${ac_cv_search_inet_pton+:} false; then :
13880 $as_echo_n "(cached) " >&6
13882 ac_func_search_save_LIBS=$LIBS
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13886 /* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
13896 return inet_pton ();
13901 for ac_lib in '' nsl; do
13902 if test -z "$ac_lib"; then
13903 ac_res="none required"
13906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_search_inet_pton=$ac_res
13911 rm -f core conftest.err conftest.$ac_objext \
13913 if ${ac_cv_search_inet_pton+:} false; then :
13917 if ${ac_cv_search_inet_pton+:} false; then :
13920 ac_cv_search_inet_pton=no
13922 rm conftest.$ac_ext
13923 LIBS=$ac_func_search_save_LIBS
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13926 $as_echo "$ac_cv_search_inet_pton" >&6; }
13927 ac_res=$ac_cv_search_inet_pton
13928 if test "$ac_res" != no; then :
13929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13934 $as_echo_n "checking for library containing socket... " >&6; }
13935 if ${ac_cv_search_socket+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 ac_func_search_save_LIBS=$LIBS
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13957 for ac_lib in '' socket; do
13958 if test -z "$ac_lib"; then
13959 ac_res="none required"
13962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13964 if ac_fn_c_try_link "$LINENO"; then :
13965 ac_cv_search_socket=$ac_res
13967 rm -f core conftest.err conftest.$ac_objext \
13969 if ${ac_cv_search_socket+:} false; then :
13973 if ${ac_cv_search_socket+:} false; then :
13976 ac_cv_search_socket=no
13978 rm conftest.$ac_ext
13979 LIBS=$ac_func_search_save_LIBS
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13982 $as_echo "$ac_cv_search_socket" >&6; }
13983 ac_res=$ac_cv_search_socket
13984 if test "$ac_res" != no; then :
13985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13990 # check wether strptime also works
13992 # check some functions of the OS before linking libs (while still runnable).
13993 for ac_header in unistd.h
13995 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13996 if test "x$ac_cv_header_unistd_h" = xyes; then :
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_UNISTD_H 1
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14006 $as_echo_n "checking for working chown... " >&6; }
14007 if ${ac_cv_func_chown_works+:} false; then :
14008 $as_echo_n "(cached) " >&6
14010 if test "$cross_compiling" = yes; then :
14011 ac_cv_func_chown_works=no
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 $ac_includes_default
14021 char *f = "conftest.chown";
14022 struct stat before, after;
14024 if (creat (f, 0600) < 0)
14026 if (stat (f, &before) < 0)
14028 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14030 if (stat (f, &after) < 0)
14032 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14038 if ac_fn_c_try_run "$LINENO"; then :
14039 ac_cv_func_chown_works=yes
14041 ac_cv_func_chown_works=no
14043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14044 conftest.$ac_objext conftest.beam conftest.$ac_ext
14047 rm -f conftest.chown
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14051 $as_echo "$ac_cv_func_chown_works" >&6; }
14052 if test $ac_cv_func_chown_works = yes; then
14054 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
14058 for ac_header in vfork.h
14060 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14061 if test "x$ac_cv_header_vfork_h" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_VFORK_H 1
14070 for ac_func in fork vfork
14072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14082 if test "x$ac_cv_func_fork" = xyes; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14084 $as_echo_n "checking for working fork... " >&6; }
14085 if ${ac_cv_func_fork_works+:} false; then :
14086 $as_echo_n "(cached) " >&6
14088 if test "$cross_compiling" = yes; then :
14089 ac_cv_func_fork_works=cross
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 $ac_includes_default
14098 /* By Ruediger Kuhlmann. */
14099 return fork () < 0;
14105 if ac_fn_c_try_run "$LINENO"; then :
14106 ac_cv_func_fork_works=yes
14108 ac_cv_func_fork_works=no
14110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14111 conftest.$ac_objext conftest.beam conftest.$ac_ext
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14116 $as_echo "$ac_cv_func_fork_works" >&6; }
14119 ac_cv_func_fork_works=$ac_cv_func_fork
14121 if test "x$ac_cv_func_fork_works" = xcross; then
14123 *-*-amigaos* | *-*-msdosdjgpp*)
14124 # Override, as these systems have only a dummy fork() stub
14125 ac_cv_func_fork_works=no
14128 ac_cv_func_fork_works=yes
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14134 ac_cv_func_vfork_works=$ac_cv_func_vfork
14135 if test "x$ac_cv_func_vfork" = xyes; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14137 $as_echo_n "checking for working vfork... " >&6; }
14138 if ${ac_cv_func_vfork_works+:} false; then :
14139 $as_echo_n "(cached) " >&6
14141 if test "$cross_compiling" = yes; then :
14142 ac_cv_func_vfork_works=cross
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 /* Thanks to Paul Eggert for this test. */
14147 $ac_includes_default
14148 #include <sys/wait.h>
14149 #ifdef HAVE_VFORK_H
14150 # include <vfork.h>
14152 /* On some sparc systems, changes by the child to local and incoming
14153 argument registers are propagated back to the parent. The compiler
14154 is told about this with #include <vfork.h>, but some compilers
14155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14156 static variable whose address is put into a register that is
14157 clobbered by the vfork. */
14160 sparc_address_test (int arg)
14162 sparc_address_test (arg) int arg;
14165 static pid_t child;
14183 pid_t parent = getpid ();
14186 sparc_address_test (0);
14191 /* Here is another test for sparc vfork register problems. This
14192 test uses lots of local variables, at least as many local
14193 variables as main has allocated so far including compiler
14194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14196 reuse the register of parent for one of the local variables,
14197 since it will think that parent can't possibly be used any more
14198 in this routine. Assigning to the local variable will thus
14199 munge parent in the parent process. */
14201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14203 /* Convince the compiler that p..p7 are live; otherwise, it might
14204 use the same hardware register for all 8 local variables. */
14205 if (p != p1 || p != p2 || p != p3 || p != p4
14206 || p != p5 || p != p6 || p != p7)
14209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14210 from child file descriptors. If the child closes a descriptor
14211 before it execs or exits, this munges the parent's descriptor
14212 as well. Test for this by closing stdout in the child. */
14213 _exit(close(fileno(stdout)) != 0);
14218 while (wait(&status) != child)
14221 /* Was there some problem with vforking? */
14224 /* Did the child fail? (This shouldn't happen.) */
14227 /* Did the vfork/compiler bug occur? */
14228 || parent != getpid()
14230 /* Did the file descriptor bug occur? */
14231 || fstat(fileno(stdout), &st) != 0
14236 if ac_fn_c_try_run "$LINENO"; then :
14237 ac_cv_func_vfork_works=yes
14239 ac_cv_func_vfork_works=no
14241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14242 conftest.$ac_objext conftest.beam conftest.$ac_ext
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14247 $as_echo "$ac_cv_func_vfork_works" >&6; }
14250 if test "x$ac_cv_func_fork_works" = xcross; then
14251 ac_cv_func_vfork_works=$ac_cv_func_vfork
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14256 if test "x$ac_cv_func_vfork_works" = xyes; then
14258 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14262 $as_echo "#define vfork fork" >>confdefs.h
14265 if test "x$ac_cv_func_fork_works" = xyes; then
14267 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14272 $as_echo_n "checking return type of signal handlers... " >&6; }
14273 if ${ac_cv_type_signal+:} false; then :
14274 $as_echo_n "(cached) " >&6
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278 #include <sys/types.h>
14279 #include <signal.h>
14284 return *(signal (0, 0)) (0) == 1;
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 ac_cv_type_signal=int
14292 ac_cv_type_signal=void
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14297 $as_echo "$ac_cv_type_signal" >&6; }
14299 cat >>confdefs.h <<_ACEOF
14300 #define RETSIGTYPE $ac_cv_type_signal
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14305 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14306 if ${ac_cv_sys_largefile_source+:} false; then :
14307 $as_echo_n "(cached) " >&6
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <sys/types.h> /* for off_t */
14317 int (*fp) (FILE *, off_t, int) = fseeko;
14318 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 ac_cv_sys_largefile_source=no; break
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330 #define _LARGEFILE_SOURCE 1
14331 #include <sys/types.h> /* for off_t */
14336 int (*fp) (FILE *, off_t, int) = fseeko;
14337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14342 if ac_fn_c_try_link "$LINENO"; then :
14343 ac_cv_sys_largefile_source=1; break
14345 rm -f core conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 ac_cv_sys_largefile_source=unknown
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14352 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14353 case $ac_cv_sys_largefile_source in #(
14356 cat >>confdefs.h <<_ACEOF
14357 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14363 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14364 # in glibc 2.1.3, but that breaks too many other things.
14365 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14366 if test $ac_cv_sys_largefile_source != unknown; then
14368 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14373 # Check whether --enable-largefile was given.
14374 if test "${enable_largefile+set}" = set; then :
14375 enableval=$enable_largefile;
14378 if test "$enable_largefile" != no; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14382 if ${ac_cv_sys_largefile_CC+:} false; then :
14383 $as_echo_n "(cached) " >&6
14385 ac_cv_sys_largefile_CC=no
14386 if test "$GCC" != yes; then
14389 # IRIX 6.2 and later do not support large files by default,
14390 # so use the C compiler's -n32 option if that helps.
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 #include <sys/types.h>
14394 /* Check that off_t can represent 2**63 - 1 correctly.
14395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14396 since some C++ compilers masquerading as C compilers
14397 incorrectly reject 9223372036854775807. */
14398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14400 && LARGE_OFF_T % 2147483647 == 1)
14410 if ac_fn_c_try_compile "$LINENO"; then :
14413 rm -f core conftest.err conftest.$ac_objext
14415 if ac_fn_c_try_compile "$LINENO"; then :
14416 ac_cv_sys_largefile_CC=' -n32'; break
14418 rm -f core conftest.err conftest.$ac_objext
14422 rm -f conftest.$ac_ext
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14427 if test "$ac_cv_sys_largefile_CC" != no; then
14428 CC=$CC$ac_cv_sys_largefile_CC
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14433 if ${ac_cv_sys_file_offset_bits+:} false; then :
14434 $as_echo_n "(cached) " >&6
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <sys/types.h>
14440 /* Check that off_t can represent 2**63 - 1 correctly.
14441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14442 since some C++ compilers masquerading as C compilers
14443 incorrectly reject 9223372036854775807. */
14444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14446 && LARGE_OFF_T % 2147483647 == 1)
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457 ac_cv_sys_file_offset_bits=no; break
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #define _FILE_OFFSET_BITS 64
14463 #include <sys/types.h>
14464 /* Check that off_t can represent 2**63 - 1 correctly.
14465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14466 since some C++ compilers masquerading as C compilers
14467 incorrectly reject 9223372036854775807. */
14468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14470 && LARGE_OFF_T % 2147483647 == 1)
14480 if ac_fn_c_try_compile "$LINENO"; then :
14481 ac_cv_sys_file_offset_bits=64; break
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484 ac_cv_sys_file_offset_bits=unknown
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14490 case $ac_cv_sys_file_offset_bits in #(
14493 cat >>confdefs.h <<_ACEOF
14494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14499 if test $ac_cv_sys_file_offset_bits = unknown; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14502 if ${ac_cv_sys_large_files+:} false; then :
14503 $as_echo_n "(cached) " >&6
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #include <sys/types.h>
14509 /* Check that off_t can represent 2**63 - 1 correctly.
14510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14511 since some C++ compilers masquerading as C compilers
14512 incorrectly reject 9223372036854775807. */
14513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14515 && LARGE_OFF_T % 2147483647 == 1)
14525 if ac_fn_c_try_compile "$LINENO"; then :
14526 ac_cv_sys_large_files=no; break
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #define _LARGE_FILES 1
14532 #include <sys/types.h>
14533 /* Check that off_t can represent 2**63 - 1 correctly.
14534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14535 since some C++ compilers masquerading as C compilers
14536 incorrectly reject 9223372036854775807. */
14537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14539 && LARGE_OFF_T % 2147483647 == 1)
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550 ac_cv_sys_large_files=1; break
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 ac_cv_sys_large_files=unknown
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14558 $as_echo "$ac_cv_sys_large_files" >&6; }
14559 case $ac_cv_sys_large_files in #(
14562 cat >>confdefs.h <<_ACEOF
14563 #define _LARGE_FILES $ac_cv_sys_large_files
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
14577 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14578 cache=_D_LARGEFILE_SOURCE_1
14579 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
14580 $as_echo_n "(cached) " >&6
14586 int a = fseeko(stdin, 0, 0);
14590 echo 'void f(){}' >>conftest.c
14591 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
14592 eval "cv_prog_cc_flag_needed_$cache=no"
14595 if test -z "`$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`"; then
14596 eval "cv_prog_cc_flag_needed_$cache=yes"
14598 eval "cv_prog_cc_flag_needed_$cache=fail"
14599 #echo 'Test with flag fails too!'
14601 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14602 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14607 rm -f conftest conftest.c conftest.o
14611 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14613 $as_echo "yes" >&6; }
14615 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
14617 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 #echo 'Test with flag is no!'
14622 #echo "$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
14623 #echo `$CC $CPPFLAGS $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1`
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14629 $as_echo "failed" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
14638 $as_echo_n "checking if nonblocking sockets work... " >&6; }
14639 if echo $target | grep mingw32 >/dev/null; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
14641 $as_echo "no (windows)" >&6; }
14643 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14646 if test "$cross_compiling" = yes; then :
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: crosscompile(yes)" >&5
14649 $as_echo "crosscompile(yes)" >&6; }
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14657 #include <string.h>
14658 #include <stdlib.h>
14661 #ifdef HAVE_SYS_TYPES_H
14662 #include <sys/types.h>
14664 #ifdef HAVE_SYS_SOCKET_H
14665 #include <sys/socket.h>
14667 #ifdef HAVE_NETINET_IN_H
14668 #include <netinet/in.h>
14670 #ifdef HAVE_ARPA_INET_H
14671 #include <arpa/inet.h>
14673 #ifdef HAVE_UNISTD_H
14674 #include <unistd.h>
14686 struct sockaddr_in a;
14687 /* test if select and nonblocking reads work well together */
14689 fork child to send 10 messages.
14691 then try to nonblocking read the 10 messages
14692 then, nonblocking read must give EAGAIN
14695 port = 12345 + (time(0)%32);
14696 sfd = socket(PF_INET, SOCK_DGRAM, 0);
14701 memset(&a, 0, sizeof(a));
14702 a.sin_family = AF_INET;
14703 a.sin_port = htons(port);
14704 a.sin_addr.s_addr = inet_addr("127.0.0.1");
14705 if(bind(sfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14709 if(fcntl(sfd, F_SETFL, O_NONBLOCK) == -1) {
14714 cfd = socket(PF_INET, SOCK_DGRAM, 0);
14716 perror("client socket");
14720 if(bind(cfd, (struct sockaddr*)&a, sizeof(a)) < 0) {
14721 perror("client bind");
14724 a.sin_port = htons(port);
14726 /* no handler, causes exit in 10 seconds */
14729 /* send and receive on the socket */
14730 if((p=fork()) == 0) {
14731 for(i=0; i<num; i++) {
14732 if(sendto(cfd, &i, sizeof(i), 0,
14733 (struct sockaddr*)&a, sizeof(a)) < 0) {
14747 FD_SET(sfd, &rset);
14748 if(select(sfd+1, &rset, NULL, NULL, NULL) < 1) {
14754 if(recv(sfd, &x, sizeof(x), 0) != sizeof(x)) {
14755 if(errno == EAGAIN)
14762 /* now we want to get EAGAIN: nonblocking goodness */
14764 recv(sfd, &x, sizeof(x), 0);
14765 if(errno != EAGAIN) {
14766 perror("trying to recv again");
14769 /* EAGAIN encountered */
14778 if ac_fn_c_try_run "$LINENO"; then :
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 $as_echo "yes" >&6; }
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14788 $as_echo "#define NONBLOCKING_IS_BROKEN 1" >>confdefs.h
14792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14793 conftest.$ac_objext conftest.beam conftest.$ac_ext
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir has one arg" >&5
14800 $as_echo_n "checking whether mkdir has one arg... " >&6; }
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14805 #include <unistd.h>
14806 #ifdef HAVE_WINSOCK2_H
14807 #include <winsock2.h>
14809 #ifdef HAVE_SYS_STAT_H
14810 #include <sys/stat.h>
14817 (void)mkdir("directory");
14823 if ac_fn_c_try_compile "$LINENO"; then :
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825 $as_echo "yes" >&6; }
14827 $as_echo "#define MKDIR_HAS_ONE_ARG 1" >>confdefs.h
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 for ac_func in strptime
14839 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
14840 if test "x$ac_cv_func_strptime" = xyes; then :
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_STRPTIME 1
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime works" >&5
14846 $as_echo_n "checking whether strptime works... " >&6; }
14847 if test c${cross_compiling} = cno; then
14848 if test "$cross_compiling" = yes; then :
14849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14851 as_fn_error $? "cannot run test program while cross compiling
14852 See \`config.log' for more details" "$LINENO" 5; }
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14857 #define _XOPEN_SOURCE
14859 int main(void) { struct tm tm; char *res;
14860 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);
14861 if (!res) return 2;
14862 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
14863 if (!res) return 1; return 0; }
14866 if ac_fn_c_try_run "$LINENO"; then :
14867 eval "ac_cv_c_strptime_works=yes"
14869 eval "ac_cv_c_strptime_works=no"
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872 conftest.$ac_objext conftest.beam conftest.$ac_ext
14876 eval "ac_cv_c_strptime_works=maybe"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_strptime_works" >&5
14879 $as_echo "$ac_cv_c_strptime_works" >&6; }
14880 if test $ac_cv_c_strptime_works = no; then
14881 case " $LIBOBJS " in
14882 *" strptime.$ac_objext "* ) ;;
14883 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14889 cat >>confdefs.h <<_ACEOF
14890 #define STRPTIME_WORKS 1
14896 case " $LIBOBJS " in
14897 *" strptime.$ac_objext "* ) ;;
14898 *) LIBOBJS="$LIBOBJS strptime.$ac_objext"
14906 # set memory allocation checking if requested
14907 # Check whether --enable-alloc-checks was given.
14908 if test "${enable_alloc_checks+set}" = set; then :
14909 enableval=$enable_alloc_checks;
14912 # Check whether --enable-alloc-lite was given.
14913 if test "${enable_alloc_lite+set}" = set; then :
14914 enableval=$enable_alloc_lite;
14917 # Check whether --enable-alloc-nonregional was given.
14918 if test "${enable_alloc_nonregional+set}" = set; then :
14919 enableval=$enable_alloc_nonregional;
14922 if test x_$enable_alloc_nonregional = x_yes; then
14924 $as_echo "#define UNBOUND_ALLOC_NONREGIONAL 1" >>confdefs.h
14927 if test x_$enable_alloc_checks = x_yes; then
14929 $as_echo "#define UNBOUND_ALLOC_STATS 1" >>confdefs.h
14932 if test x_$enable_alloc_lite = x_yes; then
14934 $as_echo "#define UNBOUND_ALLOC_LITE 1" >>confdefs.h
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14939 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14940 if test "$cross_compiling" = yes; then :
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (crosscompile)" >&5
14942 $as_echo "no (crosscompile)" >&6; }
14943 case " $LIBOBJS " in
14944 *" malloc.$ac_objext "* ) ;;
14945 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14950 cat >>confdefs.h <<_ACEOF
14951 #define malloc rpl_malloc_unbound
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14958 #include <stdlib.h>
14966 if(malloc(0) != 0) return 1;
14972 if ac_fn_c_try_run "$LINENO"; then :
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 $as_echo "no" >&6; }
14975 case " $LIBOBJS " in
14976 *" malloc.$ac_objext "* ) ;;
14977 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14982 cat >>confdefs.h <<_ACEOF
14983 #define malloc rpl_malloc_unbound
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14988 $as_echo "yes" >&6; }
14990 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14994 conftest.$ac_objext conftest.beam conftest.$ac_ext
15001 # check windows threads (we use them, not pthreads, on windows).
15002 if test "$on_mingw" = "yes"; then
15003 # check windows threads
15004 for ac_header in windows.h
15006 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15008 if test "x$ac_cv_header_windows_h" = xyes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_WINDOWS_H 1
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread" >&5
15018 $as_echo_n "checking for CreateThread... " >&6; }
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15022 #ifdef HAVE_WINDOWS_H
15023 #include <windows.h>
15030 HANDLE t = CreateThread(NULL, 0, NULL, NULL, 0, NULL);
15036 if ac_fn_c_try_compile "$LINENO"; then :
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15038 $as_echo "yes" >&6; }
15040 $as_echo "#define HAVE_WINDOWS_THREADS 1" >>confdefs.h
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 $as_echo "no" >&6; }
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 # not on mingw, check thread libraries.
15053 # check for thread library.
15054 # check this first, so that the pthread lib does not get linked in via
15055 # libssl or libpython, and thus distorts the tests, and we end up using
15056 # the non-threadsafe C libraries.
15058 # Check whether --with-pthreads was given.
15059 if test "${with_pthreads+set}" = set; then :
15060 withval=$with_pthreads;
15065 ub_have_pthreads=no
15066 if test x_$withval != x_no; then
15071 ac_cpp='$CPP $CPPFLAGS'
15072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078 # We used to check for pthread.h first, but this fails if pthread.h
15079 # requires special compiler flags (e.g. on True64 or Sequent).
15080 # It gets checked for in the link test anyway.
15082 # First of all, check if the user has set any of the PTHREAD_LIBS,
15083 # etcetera environment variables, and if threads linking works using
15085 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15086 save_CFLAGS="$CFLAGS"
15087 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15089 LIBS="$PTHREAD_LIBS $LIBS"
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15091 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char pthread_join ();
15105 return pthread_join ();
15110 if ac_fn_c_try_link "$LINENO"; then :
15113 rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15116 $as_echo "$acx_pthread_ok" >&6; }
15117 if test x"$acx_pthread_ok" = xno; then
15122 CFLAGS="$save_CFLAGS"
15125 # We must check for the threads library under a number of different
15126 # names; the ordering is very important because some systems
15127 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15128 # libraries is broken (non-POSIX).
15130 # Create a list of thread flags to try. Items starting with a "-" are
15131 # C compiler flags, and other items are library names, except for "none"
15132 # which indicates that we try without any flags at all, and "pthread-config"
15133 # which is a program returning the flags for the Pth emulation library.
15135 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15137 # The ordering *is* (sometimes) important. Some notes on the
15138 # individual items follow:
15140 # pthreads: AIX (must check this before -lpthread)
15141 # none: in case threads are in libc; should be tried before -Kthread and
15142 # other compiler flags to prevent continual compiler warnings
15143 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15144 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15145 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15146 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15147 # -pthreads: Solaris/gcc
15148 # -mthreads: Mingw32/gcc, Lynx/gcc
15149 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15150 # doesn't hurt to check since this sometimes defines pthreads too;
15151 # also defines -D_REENTRANT)
15152 # ... -mt is also the pthreads flag for HP/aCC
15153 # pthread: Linux, etcetera
15154 # --thread-safe: KAI C++
15155 # pthread-config: use pthread-config program (for GNU Pth library)
15157 case "${host_cpu}-${host_os}" in
15160 # On Solaris (at least, for some versions), libc contains stubbed
15161 # (non-functional) versions of the pthreads routines, so link-based
15162 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15163 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15164 # a function called by this macro, so we could check for that, but
15165 # who knows whether they'll stub that too in a future libc.) So,
15166 # we'll just look for -pthreads and -lpthread first:
15168 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15172 if test x"$acx_pthread_ok" = xno; then
15173 for flag in $acx_pthread_flags; do
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15178 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15183 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15184 PTHREAD_CFLAGS="$flag"
15188 # Extract the first word of "pthread-config", so it can be a program name with args.
15189 set dummy pthread-config; ac_word=$2
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191 $as_echo_n "checking for $ac_word... " >&6; }
15192 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15193 $as_echo_n "(cached) " >&6
15195 if test -n "$acx_pthread_config"; then
15196 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205 ac_cv_prog_acx_pthread_config="yes"
15206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15213 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15216 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15217 if test -n "$acx_pthread_config"; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15219 $as_echo "$acx_pthread_config" >&6; }
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15222 $as_echo "no" >&6; }
15226 if test x"$acx_pthread_config" = xno; then continue; fi
15227 PTHREAD_CFLAGS="`pthread-config --cflags`"
15228 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15233 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15234 PTHREAD_LIBS="-l$flag"
15239 save_CFLAGS="$CFLAGS"
15240 LIBS="$PTHREAD_LIBS $LIBS"
15241 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15243 # Check for various functions. We must include pthread.h,
15244 # since some functions may be macros. (On the Sequent, we
15245 # need a special flag -Kthread to make this header compile.)
15246 # We check for pthread_join because it is in -lpthread on IRIX
15247 # while pthread_create is in libc. We check for pthread_attr_init
15248 # due to DEC craziness with -lpthreads. We check for
15249 # pthread_cleanup_push because it is one of the few pthread
15250 # functions on Solaris that doesn't have a non-functional libc stub.
15251 # We try pthread_create on general principles.
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include <pthread.h>
15258 pthread_t th; pthread_join(th, 0);
15259 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15260 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15265 if ac_fn_c_try_link "$LINENO"; then :
15268 rm -f core conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15272 CFLAGS="$save_CFLAGS"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15275 $as_echo "$acx_pthread_ok" >&6; }
15276 if test "x$acx_pthread_ok" = xyes; then
15285 # Various other checks:
15286 if test "x$acx_pthread_ok" = xyes; then
15288 LIBS="$PTHREAD_LIBS $LIBS"
15289 save_CFLAGS="$CFLAGS"
15290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15292 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15294 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15296 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 #include <pthread.h>
15303 int attr=$attr; return attr;
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 attr_name=$attr; break
15311 rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15315 $as_echo "$attr_name" >&6; }
15316 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15318 cat >>confdefs.h <<_ACEOF
15319 #define PTHREAD_CREATE_JOINABLE $attr_name
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15325 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15327 case "${host_cpu}-${host_os}" in
15328 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15329 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15332 $as_echo "${flag}" >&6; }
15333 if test "x$flag" != xno; then
15334 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15338 CFLAGS="$save_CFLAGS"
15340 # More AIX lossage: must compile with xlc_r or cc_r
15341 if test x"$GCC" != xyes; then
15342 for ac_prog in xlc_r cc_r
15344 # Extract the first word of "$ac_prog", so it can be a program name with args.
15345 set dummy $ac_prog; ac_word=$2
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15347 $as_echo_n "checking for $ac_word... " >&6; }
15348 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15349 $as_echo_n "(cached) " >&6
15351 if test -n "$PTHREAD_CC"; then
15352 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355 for as_dir in $PATH
15358 test -z "$as_dir" && as_dir=.
15359 for ac_exec_ext in '' $ac_executable_extensions; do
15360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15361 ac_cv_prog_PTHREAD_CC="$ac_prog"
15362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15372 if test -n "$PTHREAD_CC"; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15374 $as_echo "$PTHREAD_CC" >&6; }
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15381 test -n "$PTHREAD_CC" && break
15383 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15396 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15397 if test x"$acx_pthread_ok" = xyes; then
15400 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15402 LIBS="$PTHREAD_LIBS $LIBS"
15403 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15405 ub_have_pthreads=yes
15406 ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "#include <pthread.h>
15408 if test "x$ac_cv_type_pthread_spinlock_t" = xyes; then :
15410 cat >>confdefs.h <<_ACEOF
15411 #define HAVE_PTHREAD_SPINLOCK_T 1
15416 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15418 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_PTHREAD_RWLOCK_T 1
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15442 # check solaris thread library
15444 # Check whether --with-solaris-threads was given.
15445 if test "${with_solaris_threads+set}" = set; then :
15446 withval=$with_solaris_threads;
15451 ub_have_sol_threads=no
15452 if test x_$withval != x_no; then
15453 if test x_$ub_have_pthreads != x_no; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
15455 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
15458 $as_echo_n "checking for library containing thr_create... " >&6; }
15459 if ${ac_cv_search_thr_create+:} false; then :
15460 $as_echo_n "(cached) " >&6
15462 ac_func_search_save_LIBS=$LIBS
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15466 /* Override any GCC internal prototype to avoid an error.
15467 Use char because int might match the return type of a GCC
15468 builtin and then its argument prototype would still apply. */
15472 char thr_create ();
15476 return thr_create ();
15481 for ac_lib in '' thread; do
15482 if test -z "$ac_lib"; then
15483 ac_res="none required"
15486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15488 if ac_fn_c_try_link "$LINENO"; then :
15489 ac_cv_search_thr_create=$ac_res
15491 rm -f core conftest.err conftest.$ac_objext \
15493 if ${ac_cv_search_thr_create+:} false; then :
15497 if ${ac_cv_search_thr_create+:} false; then :
15500 ac_cv_search_thr_create=no
15502 rm conftest.$ac_ext
15503 LIBS=$ac_func_search_save_LIBS
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15506 $as_echo "$ac_cv_search_thr_create" >&6; }
15507 ac_res=$ac_cv_search_thr_create
15508 if test "$ac_res" != no; then :
15509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15512 $as_echo "#define HAVE_SOLARIS_THREADS 1" >>confdefs.h
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mt" >&5
15518 $as_echo_n "checking whether $CC supports -mt... " >&6; }
15519 cache=`echo mt | sed 'y%.=/+-%___p_%'`
15520 if eval \${cv_prog_cc_flag_$cache+:} false; then :
15521 $as_echo_n "(cached) " >&6
15524 echo 'void f(){}' >conftest.c
15525 if test -z "`$CC $CPPFLAGS $CFLAGS -mt -c conftest.c 2>&1`"; then
15526 eval "cv_prog_cc_flag_$cache=yes"
15528 eval "cv_prog_cc_flag_$cache=no"
15530 rm -f conftest conftest.o conftest.c
15534 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15536 $as_echo "yes" >&6; }
15538 CFLAGS="$CFLAGS -mt"
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15541 $as_echo "no" >&6; }
15543 CFLAGS="$CFLAGS -D_REENTRANT"
15546 ub_have_sol_threads=yes
15550 as_fn_error $? "no solaris threads found." "$LINENO" 5
15557 fi # end of non-mingw check of thread libraries
15559 # Check for PyUnbound
15561 # Check whether --with-pyunbound was given.
15562 if test "${with_pyunbound+set}" = set; then :
15563 withval=$with_pyunbound;
15570 ub_with_pyunbound=no
15571 if test x_$withval != x_no; then
15572 ub_with_pyunbound=yes
15576 # Check for Python module
15578 # Check whether --with-pythonmodule was given.
15579 if test "${with_pythonmodule+set}" = set; then :
15580 withval=$with_pythonmodule;
15586 ub_with_pythonmod=no
15587 if test x_$withval != x_no; then
15588 ub_with_pythonmod=yes
15592 # Check for Python & SWIG only on PyUnbound or PyModule
15593 if test x_$ub_test_python != x_no; then
15597 ac_save_LIBS="$LIBS"
15599 # Allow the use of a (user set) custom python version
15603 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
15604 set dummy python$PYTHON_VERSION; ac_word=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PYTHON+:} false; then :
15608 $as_echo_n "(cached) " >&6
15612 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15633 PYTHON=$ac_cv_path_PYTHON
15634 if test -n "$PYTHON"; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15636 $as_echo "$PYTHON" >&6; }
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639 $as_echo "no" >&6; }
15643 if test -z "$PYTHON"; then
15644 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
15648 if test -z "$PYTHON_VERSION"; then
15649 PYTHON_VERSION=`$PYTHON -c "import sys, string; \
15650 print string.split(sys.version)[0]"`
15654 # Check for a version of Python >= 2.1.0
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
15657 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
15658 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15659 ver = string.split(sys.version)[0]; \
15660 print ver >= '2.1.0'"`
15661 if test "$ac_supports_python_ver" != "True"; then
15662 if test -z "$PYTHON_NOVERSIONCHECK"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15664 $as_echo "no" >&6; }
15665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15668 This version of the AC_PYTHON_DEVEL macro
15669 doesn't work properly with versions of Python before
15670 2.1.0. You may need to re-run configure, setting the
15671 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
15672 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
15673 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
15674 to something else than an empty string.
15676 See \`config.log' for more details" "$LINENO" 5; }
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
15679 $as_echo "skip at user request" >&6; }
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15687 # if the macro parameter ``version'' is set, honour it
15689 if test -n ""; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15691 $as_echo_n "checking for a version of Python ... " >&6; }
15692 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15693 ver = string.split(sys.version)[0]; \
15695 if test "$ac_supports_python_ver" = "True"; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15700 $as_echo "no" >&6; }
15701 as_fn_error $? "this package requires Python .
15702 If you have it installed, but it isn't the default Python
15703 interpreter in your system path, please pass the PYTHON_VERSION
15704 variable to configure. See \`\`configure --help'' for reference.
15711 # Check if you have distutils, else fail
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15714 $as_echo_n "checking for the distutils Python package... " >&6; }
15715 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15716 if test -z "$ac_distutils_result"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15722 as_fn_error $? "cannot import Python module \"distutils\".
15723 Please check your Python installation. The error was:
15724 $ac_distutils_result" "$LINENO" 5
15729 # Check for Python include path
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15732 $as_echo_n "checking for Python include path... " >&6; }
15733 if test -z "$PYTHON_CPPFLAGS"; then
15734 python_path=`$PYTHON -c "import distutils.sysconfig; \
15735 print distutils.sysconfig.get_python_inc();"`
15736 if test -n "${python_path}"; then
15737 python_path="-I$python_path"
15739 PYTHON_CPPFLAGS=$python_path
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15742 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15746 # Check for Python library path
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15749 $as_echo_n "checking for Python library path... " >&6; }
15750 if test -z "$PYTHON_LDFLAGS"; then
15751 # (makes two attempts to ensure we've got a version number
15752 # from the interpreter)
15753 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15754 from string import join; \
15755 print join(get_config_vars('VERSION'))"`
15756 if test "$py_version" = "None"; then
15757 if test -n "$PYTHON_VERSION"; then
15758 py_version=$PYTHON_VERSION
15760 py_version=`$PYTHON -c "import sys; \
15761 print sys.version[:3]"`
15765 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15766 from string import join; \
15767 print '-L' + get_python_lib(0,1), \
15768 '-L' + os.path.dirname(get_python_lib(0,1)), \
15769 '-lpython';"`$py_version
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15772 $as_echo "$PYTHON_LDFLAGS" >&6; }
15776 # Check for site packages
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15779 $as_echo_n "checking for Python site-packages path... " >&6; }
15780 if test -z "$PYTHON_SITE_PKG"; then
15781 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15782 print distutils.sysconfig.get_python_lib(1,0);"`
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15785 $as_echo "$PYTHON_SITE_PKG" >&6; }
15789 # libraries which must be linked in when embedding
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15792 $as_echo_n "checking python extra libraries... " >&6; }
15793 if test -z "$PYTHON_EXTRA_LIBS"; then
15794 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15795 conf = distutils.sysconfig.get_config_var; \
15796 print conf('LOCALMODLIBS'), conf('LIBS')"`
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15799 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15803 # linking flags needed when embedding
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15806 $as_echo_n "checking python extra linking flags... " >&6; }
15807 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15808 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15809 conf = distutils.sysconfig.get_config_var; \
15810 print conf('LINKFORSHARED')"`
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15813 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15817 # final check to see if everything compiles alright
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15820 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15822 ac_cpp='$CPP $CPPFLAGS'
15823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827 # save current global flags
15828 ac_save_LIBS="$LIBS"
15829 ac_save_CPPFLAGS="$CPPFLAGS"
15831 LIBS="$LIBS $PYTHON_LDFLAGS"
15832 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15836 #include <Python.h>
15848 if ac_fn_c_try_link "$LINENO"; then :
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15857 $as_echo "$pythonexists" >&6; }
15859 if test ! "$pythonexists" = "yes"; then
15861 Could not link test program to Python. Maybe the main Python library has been
15862 installed in some non-standard library path. If so, pass it to configure,
15863 via the LDFLAGS environment variable.
15864 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
15865 ============================================================================
15867 You probably have to install the development version of the Python package
15868 for your distribution. The exact name of this package varies among them.
15869 ============================================================================
15874 ac_cpp='$CPP $CPPFLAGS'
15875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879 # turn back to default flags
15880 CPPFLAGS="$ac_save_CPPFLAGS"
15881 LIBS="$ac_save_LIBS"
15887 if test ! -z "$PYTHON_VERSION"; then
15888 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
15889 as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
15894 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
15896 LIBS="$PYTHON_LDFLAGS $LIBS"
15897 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15903 # Extract the first word of "swig", so it can be a program name with args.
15904 set dummy swig; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_path_SWIG+:} false; then :
15908 $as_echo_n "(cached) " >&6
15912 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15933 SWIG=$ac_cv_path_SWIG
15934 if test -n "$SWIG"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
15936 $as_echo "$SWIG" >&6; }
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15943 if test -z "$SWIG" ; then
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
15945 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
15946 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
15947 elif test -n "" ; then
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
15949 $as_echo_n "checking for SWIG version... " >&6; }
15950 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'`
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
15952 $as_echo "$swig_version" >&6; }
15953 if test -n "$swig_version" ; then
15954 # Calculate the required version number components
15956 required_major=`echo $required | sed 's/[^0-9].*//'`
15957 if test -z "$required_major" ; then
15960 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15961 required_minor=`echo $required | sed 's/[^0-9].*//'`
15962 if test -z "$required_minor" ; then
15965 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
15966 required_patch=`echo $required | sed 's/[^0-9].*//'`
15967 if test -z "$required_patch" ; then
15970 # Calculate the available version number components
15971 available=$swig_version
15972 available_major=`echo $available | sed 's/[^0-9].*//'`
15973 if test -z "$available_major" ; then
15976 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15977 available_minor=`echo $available | sed 's/[^0-9].*//'`
15978 if test -z "$available_minor" ; then
15981 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
15982 available_patch=`echo $available | sed 's/[^0-9].*//'`
15983 if test -z "$available_patch" ; then
15986 if test $available_major -ne $required_major \
15987 -o $available_minor -ne $required_minor \
15988 -o $available_patch -lt $required_patch ; then
15989 { $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
15990 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
15991 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
15994 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
15995 SWIG_LIB=`$SWIG -swiglib`
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
15997 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
16001 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16002 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG" >&5
16008 $as_echo_n "checking SWIG... " >&6; }
16009 if test ! -x "$SWIG"; then
16010 as_fn_error $? "failed to find swig tool, install it, or do not build Python module and PyUnbound" "$LINENO" 5
16013 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present" >&5
16018 $as_echo "present" >&6; }
16020 # If have Python & SWIG
16021 # Declare PythonMod
16022 if test x_$ub_with_pythonmod != x_no; then
16024 $as_echo "#define WITH_PYTHONMODULE 1" >>confdefs.h
16026 WITH_PYTHONMODULE=yes
16028 PYTHONMOD_OBJ="pythonmod.lo pythonmod_utils.lo"
16030 PYTHONMOD_HEADER='$(srcdir)/pythonmod/pythonmod.h'
16032 PYTHONMOD_INSTALL=pythonmod-install
16034 PYTHONMOD_UNINSTALL=pythonmod-uninstall
16038 # Declare PyUnbound
16039 if test x_$ub_with_pyunbound != x_no; then
16041 $as_echo "#define WITH_PYUNBOUND 1" >>confdefs.h
16045 PYUNBOUND_OBJ="libunbound_wrap.lo"
16047 PYUNBOUND_TARGET="_unbound.la"
16049 PYUNBOUND_INSTALL=pyunbound-install
16051 PYUNBOUND_UNINSTALL=pyunbound-uninstall
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16057 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16058 ub_with_pyunbound=no
16059 ub_with_pythonmod=no
16063 if test "`uname`" = "NetBSD"; then
16064 NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
16067 CONFIG_DATE=`date +%Y%m%d`
16070 # Checks for libraries.
16075 # Check whether --with-nss was given.
16076 if test "${with_nss+set}" = set; then :
16080 $as_echo "#define HAVE_NSS 1" >>confdefs.h
16082 if test "$withval" != "" -a "$withval" != "yes"; then
16083 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
16084 LDFLAGS="$LDFLAGS -L$withval/lib"
16086 if test "x$enable_rpath" = xyes; then
16087 if echo "$withval/lib" | grep "^/" >/dev/null; then
16088 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
16092 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
16094 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
16095 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
16097 LIBS="$LIBS -lnss3 -lnspr4"
16104 if test $USE_NSS = "no"; then
16107 # Check whether --with-ssl was given.
16108 if test "${with_ssl+set}" = set; then :
16117 if test x_$withval = x_no; then
16118 as_fn_error $? "Need SSL library to do digital signature cryptography" "$LINENO" 5
16122 if test x_$withval != x_no; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
16124 $as_echo_n "checking for SSL... " >&6; }
16125 if test x_$withval = x_ -o x_$withval = x_yes; then
16126 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
16128 for dir in $withval; do
16130 if test -f "$dir/include/openssl/ssl.h"; then
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_SSL /**/
16137 if test "$ssldir" != "/usr"; then
16138 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
16139 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
16144 if test x_$found_ssl != x_yes; then
16145 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
16148 $as_echo "found in $ssldir" >&6; }
16150 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
16151 LDFLAGS="$LDFLAGS -L$ssldir/lib"
16152 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
16154 if test "x$enable_rpath" = xyes; then
16155 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
16156 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
16163 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
16164 LIBS="$LIBS -lcrypto"
16165 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16173 int HMAC_CTX_init(void);
16174 (void)HMAC_CTX_init();
16180 if ac_fn_c_try_link "$LINENO"; then :
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183 $as_echo "yes" >&6; }
16185 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16192 # check if -lwsock32 or -lgdi32 are needed.
16194 BAKSSLLIBS="$LIBSSL_LIBS"
16195 LIBS="$LIBS -lgdi32"
16196 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
16198 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16206 int HMAC_CTX_init(void);
16207 (void)HMAC_CTX_init();
16213 if ac_fn_c_try_link "$LINENO"; then :
16216 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16219 $as_echo "yes" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16226 LIBSSL_LIBS="$BAKSSLLIBS"
16228 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
16230 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16238 int HMAC_CTX_init(void);
16239 (void)HMAC_CTX_init();
16245 if ac_fn_c_try_link "$LINENO"; then :
16248 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16251 $as_echo "yes" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
16260 rm -f core conftest.err conftest.$ac_objext \
16261 conftest$ac_exeext conftest.$ac_ext
16264 rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16273 # openssl engine functionality needs dlopen().
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16276 $as_echo_n "checking for library containing dlopen... " >&6; }
16277 if ${ac_cv_search_dlopen+:} false; then :
16278 $as_echo_n "(cached) " >&6
16280 ac_func_search_save_LIBS=$LIBS
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16299 for ac_lib in '' dl; do
16300 if test -z "$ac_lib"; then
16301 ac_res="none required"
16304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 ac_cv_search_dlopen=$ac_res
16309 rm -f core conftest.err conftest.$ac_objext \
16311 if ${ac_cv_search_dlopen+:} false; then :
16315 if ${ac_cv_search_dlopen+:} false; then :
16318 ac_cv_search_dlopen=no
16320 rm conftest.$ac_ext
16321 LIBS=$ac_func_search_save_LIBS
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16324 $as_echo "$ac_cv_search_dlopen" >&6; }
16325 ac_res=$ac_cv_search_dlopen
16326 if test "$ac_res" != no; then :
16327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16331 if test "$LIBS" != "$BAKLIBS"; then
16332 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
16335 for ac_header in openssl/ssl.h
16337 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
16339 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE_OPENSSL_SSL_H 1
16348 for ac_header in openssl/err.h
16350 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
16352 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
16353 cat >>confdefs.h <<_ACEOF
16354 #define HAVE_OPENSSL_ERR_H 1
16361 for ac_header in openssl/rand.h
16363 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
16365 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
16366 cat >>confdefs.h <<_ACEOF
16367 #define HAVE_OPENSSL_RAND_H 1
16377 # check if libssl needs libdl
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libssl needs libdl" >&5
16381 $as_echo_n "checking if libssl needs libdl... " >&6; }
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16391 char SSL_CTX_new ();
16395 return SSL_CTX_new ();
16400 if ac_fn_c_try_link "$LINENO"; then :
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16403 $as_echo "no" >&6; }
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16409 $as_echo "yes" >&6; }
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16412 $as_echo_n "checking for library containing dlopen... " >&6; }
16413 if ${ac_cv_search_dlopen+:} false; then :
16414 $as_echo_n "(cached) " >&6
16416 ac_func_search_save_LIBS=$LIBS
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16420 /* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16435 for ac_lib in '' dl; do
16436 if test -z "$ac_lib"; then
16437 ac_res="none required"
16440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16442 if ac_fn_c_try_link "$LINENO"; then :
16443 ac_cv_search_dlopen=$ac_res
16445 rm -f core conftest.err conftest.$ac_objext \
16447 if ${ac_cv_search_dlopen+:} false; then :
16451 if ${ac_cv_search_dlopen+:} false; then :
16454 ac_cv_search_dlopen=no
16456 rm conftest.$ac_ext
16457 LIBS=$ac_func_search_save_LIBS
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16460 $as_echo "$ac_cv_search_dlopen" >&6; }
16461 ac_res=$ac_cv_search_dlopen
16462 if test "$ac_res" != no; then :
16463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16469 rm -f core conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16471 for ac_header in openssl/conf.h
16473 ac_fn_c_check_header_compile "$LINENO" "openssl/conf.h" "ac_cv_header_openssl_conf_h" "$ac_includes_default
16475 if test "x$ac_cv_header_openssl_conf_h" = xyes; then :
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_OPENSSL_CONF_H 1
16484 for ac_header in openssl/engine.h
16486 ac_fn_c_check_header_compile "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default
16488 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
16489 cat >>confdefs.h <<_ACEOF
16490 #define HAVE_OPENSSL_ENGINE_H 1
16497 for ac_func in OPENSSL_config EVP_sha1 EVP_sha256 EVP_sha512 FIPS_mode
16499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16501 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16502 cat >>confdefs.h <<_ACEOF
16503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16509 ac_fn_c_check_decl "$LINENO" "SSL_COMP_get_compression_methods" "ac_cv_have_decl_SSL_COMP_get_compression_methods" "
16510 $ac_includes_default
16511 #ifdef HAVE_OPENSSL_ERR_H
16512 #include <openssl/err.h>
16515 #ifdef HAVE_OPENSSL_RAND_H
16516 #include <openssl/rand.h>
16519 #ifdef HAVE_OPENSSL_CONF_H
16520 #include <openssl/conf.h>
16523 #ifdef HAVE_OPENSSL_ENGINE_H
16524 #include <openssl/engine.h>
16526 #include <openssl/ssl.h>
16527 #include <openssl/evp.h>
16530 if test "x$ac_cv_have_decl_SSL_COMP_get_compression_methods" = xyes; then :
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS $ac_have_decl
16539 ac_fn_c_check_decl "$LINENO" "sk_SSL_COMP_pop_free" "ac_cv_have_decl_sk_SSL_COMP_pop_free" "
16540 $ac_includes_default
16541 #ifdef HAVE_OPENSSL_ERR_H
16542 #include <openssl/err.h>
16545 #ifdef HAVE_OPENSSL_RAND_H
16546 #include <openssl/rand.h>
16549 #ifdef HAVE_OPENSSL_CONF_H
16550 #include <openssl/conf.h>
16553 #ifdef HAVE_OPENSSL_ENGINE_H
16554 #include <openssl/engine.h>
16556 #include <openssl/ssl.h>
16557 #include <openssl/evp.h>
16560 if test "x$ac_cv_have_decl_sk_SSL_COMP_pop_free" = xyes; then :
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_DECL_SK_SSL_COMP_POP_FREE $ac_have_decl
16573 # Check whether --enable-sha2 was given.
16574 if test "${enable_sha2+set}" = set; then :
16575 enableval=$enable_sha2;
16578 case "$enable_sha2" in
16583 $as_echo "#define USE_SHA2 1" >>confdefs.h
16588 # check wether gost also works
16590 # Check whether --enable-gost was given.
16591 if test "${enable_gost+set}" = set; then :
16592 enableval=$enable_gost;
16596 if test $USE_NSS = "no"; then
16597 case "$enable_gost" in
16601 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
16602 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
16605 as_fn_error $? "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
16608 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
16609 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
16612 as_fn_error $? "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
16617 $as_echo_n "checking if GOST works... " >&6; }
16618 if test c${cross_compiling} = cno; then
16619 BAKCFLAGS="$CFLAGS"
16620 if test -n "$ssldir"; then
16621 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
16623 if test "$cross_compiling" = yes; then :
16624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16626 as_fn_error $? "cannot run test program while cross compiling
16627 See \`config.log' for more details" "$LINENO" 5; }
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16632 #include <string.h>
16633 #include <openssl/ssl.h>
16634 #include <openssl/evp.h>
16635 #include <openssl/engine.h>
16636 #include <openssl/conf.h>
16637 /* routine to load gost from ldns */
16638 int load_gost_id(void)
16640 static int gost_id = 0;
16641 const EVP_PKEY_ASN1_METHOD* meth;
16644 if(gost_id) return gost_id;
16646 /* see if configuration loaded gost implementation from other engine*/
16647 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
16649 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16653 /* see if engine can be loaded already */
16654 e = ENGINE_by_id("gost");
16656 /* load it ourself, in case statically linked */
16657 ENGINE_load_builtin_engines();
16658 ENGINE_load_dynamic();
16659 e = ENGINE_by_id("gost");
16662 /* no gost engine in openssl */
16665 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
16671 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
16673 /* algo not found */
16678 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
16684 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
16685 const char* str = "Hello world";
16686 const unsigned char check[] = {
16687 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
16688 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
16689 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
16690 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
16692 OPENSSL_config(NULL);
16693 (void)load_gost_id();
16694 md = EVP_get_digestbyname("md_gost94");
16696 memset(digest, 0, sizeof(digest));
16697 ctx = EVP_MD_CTX_create();
16699 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
16700 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
16701 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
16702 /* uncomment to see the hash calculated.
16704 for(i=0; i<32; i++)
16705 printf(" %2.2x", (int)digest[i]);
16708 if(memcmp(digest, check, sizeof(check)) != 0)
16714 if ac_fn_c_try_run "$LINENO"; then :
16715 eval "ac_cv_c_gost_works=yes"
16717 eval "ac_cv_c_gost_works=no"
16719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16720 conftest.$ac_objext conftest.beam conftest.$ac_ext
16723 CFLAGS="$BAKCFLAGS"
16725 eval "ac_cv_c_gost_works=maybe"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gost_works" >&5
16728 $as_echo "$ac_cv_c_gost_works" >&6; }
16730 if test "$ac_cv_c_gost_works" != no; then
16733 $as_echo "#define USE_GOST 1" >>confdefs.h
16739 # Check whether --enable-ecdsa was given.
16740 if test "${enable_ecdsa+set}" = set; then :
16741 enableval=$enable_ecdsa;
16745 case "$enable_ecdsa" in
16749 if test $USE_NSS = "no"; then
16750 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
16751 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
16754 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16757 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
16758 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
16761 as_fn_error $? "OpenSSL does not support SHA384: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16764 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
16765 #include <openssl/evp.h>
16768 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
16777 if test $ac_have_decl = 1; then :
16780 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16782 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
16783 #include <openssl/evp.h>
16786 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
16795 if test $ac_have_decl = 1; then :
16798 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade or rerun with --disable-ecdsa" "$LINENO" 5
16801 # see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
16803 $as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
16804 if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16808 cat >>confdefs.h <<_ACEOF
16809 #define USE_ECDSA_EVP_WORKAROUND 1
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 $as_echo "yes" >&6; }
16817 # we now know we have ECDSA and the required curves.
16819 cat >>confdefs.h <<_ACEOF
16820 #define USE_ECDSA 1
16827 # check for libevent
16829 # Check whether --with-libevent was given.
16830 if test "${with_libevent+set}" = set; then :
16831 withval=$with_libevent;
16836 if test x_$withval = x_yes -o x_$withval != x_no; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
16838 $as_echo_n "checking for libevent... " >&6; }
16839 if test x_$withval = x_ -o x_$withval = x_yes; then
16840 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
16842 for dir in $withval; do
16844 if test -f "$dir/include/event.h"; then
16845 found_libevent="yes"
16846 if test "$thedir" != "/usr"; then
16847 CPPFLAGS="$CPPFLAGS -I$thedir/include"
16852 if test x_$found_libevent != x_yes; then
16853 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
16854 # libevent source directory
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16856 $as_echo "found in $thedir" >&6; }
16857 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
16858 BAK_LDFLAGS_SET="1"
16859 BAK_LDFLAGS="$LDFLAGS"
16860 # remove evdns from linking
16861 mkdir build >/dev/null 2>&1
16862 mkdir build/libevent >/dev/null 2>&1
16863 mkdir build/libevent/.libs >/dev/null 2>&1
16864 ev_files_o=`ls $thedir/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16865 ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo | grep -v bufferevent_openssl\.lo`
16866 ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o | grep -v bufferevent_openssl\.o`
16867 cp $ev_files_o build/libevent
16868 cp $ev_files_lo build/libevent
16869 cp $ev_files_libso build/libevent/.libs
16870 LATE_LDFLAGS="build/libevent/*.lo -lm"
16871 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
16873 as_fn_error $? "Cannot find the libevent library in $withval
16874 You can restart ./configure --with-libevent=no to use a builtin alternative.
16875 Please note that this alternative is not as capable as libevent when using
16876 large outgoing port ranges. " "$LINENO" 5
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $thedir" >&5
16880 $as_echo "found in $thedir" >&6; }
16881 if test "$thedir" != "/usr" -a "$thedir" != ""; then
16882 LDFLAGS="$LDFLAGS -L$thedir/lib"
16884 if test "x$enable_rpath" = xyes; then
16885 if echo "$thedir/lib" | grep "^/" >/dev/null; then
16886 RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
16892 # check for library used by libevent after 1.3c
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16894 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16895 if ${ac_cv_search_clock_gettime+:} false; then :
16896 $as_echo_n "(cached) " >&6
16898 ac_func_search_save_LIBS=$LIBS
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16902 /* Override any GCC internal prototype to avoid an error.
16903 Use char because int might match the return type of a GCC
16904 builtin and then its argument prototype would still apply. */
16908 char clock_gettime ();
16912 return clock_gettime ();
16917 for ac_lib in '' rt; do
16918 if test -z "$ac_lib"; then
16919 ac_res="none required"
16922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16924 if ac_fn_c_try_link "$LINENO"; then :
16925 ac_cv_search_clock_gettime=$ac_res
16927 rm -f core conftest.err conftest.$ac_objext \
16929 if ${ac_cv_search_clock_gettime+:} false; then :
16933 if ${ac_cv_search_clock_gettime+:} false; then :
16936 ac_cv_search_clock_gettime=no
16938 rm conftest.$ac_ext
16939 LIBS=$ac_func_search_save_LIBS
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16942 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16943 ac_res=$ac_cv_search_clock_gettime
16944 if test "$ac_res" != no; then :
16945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16950 # is the event.h header libev or libevent?
16951 for ac_header in event.h
16953 ac_fn_c_check_header_compile "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default
16955 if test "x$ac_cv_header_event_h" = xyes; then :
16956 cat >>confdefs.h <<_ACEOF
16957 #define HAVE_EVENT_H 1
16964 ac_fn_c_check_decl "$LINENO" "EV_VERSION_MAJOR" "ac_cv_have_decl_EV_VERSION_MAJOR" "$ac_includes_default
16968 if test "x$ac_cv_have_decl_EV_VERSION_MAJOR" = xyes; then :
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
16971 $as_echo_n "checking for library containing event_set... " >&6; }
16972 if ${ac_cv_search_event_set+:} false; then :
16973 $as_echo_n "(cached) " >&6
16975 ac_func_search_save_LIBS=$LIBS
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16989 return event_set ();
16994 for ac_lib in '' ev; do
16995 if test -z "$ac_lib"; then
16996 ac_res="none required"
16999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 ac_cv_search_event_set=$ac_res
17004 rm -f core conftest.err conftest.$ac_objext \
17006 if ${ac_cv_search_event_set+:} false; then :
17010 if ${ac_cv_search_event_set+:} false; then :
17013 ac_cv_search_event_set=no
17015 rm conftest.$ac_ext
17016 LIBS=$ac_func_search_save_LIBS
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17019 $as_echo "$ac_cv_search_event_set" >&6; }
17020 ac_res=$ac_cv_search_event_set
17021 if test "$ac_res" != no; then :
17022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_set" >&5
17030 $as_echo_n "checking for library containing event_set... " >&6; }
17031 if ${ac_cv_search_event_set+:} false; then :
17032 $as_echo_n "(cached) " >&6
17034 ac_func_search_save_LIBS=$LIBS
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17048 return event_set ();
17053 for ac_lib in '' event; do
17054 if test -z "$ac_lib"; then
17055 ac_res="none required"
17058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 ac_cv_search_event_set=$ac_res
17063 rm -f core conftest.err conftest.$ac_objext \
17065 if ${ac_cv_search_event_set+:} false; then :
17069 if ${ac_cv_search_event_set+:} false; then :
17072 ac_cv_search_event_set=no
17074 rm conftest.$ac_ext
17075 LIBS=$ac_func_search_save_LIBS
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_set" >&5
17078 $as_echo "$ac_cv_search_event_set" >&6; }
17079 ac_res=$ac_cv_search_event_set
17080 if test "$ac_res" != no; then :
17081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17088 for ac_func in event_base_free
17090 ac_fn_c_check_func "$LINENO" "event_base_free" "ac_cv_func_event_base_free"
17091 if test "x$ac_cv_func_event_base_free" = xyes; then :
17092 cat >>confdefs.h <<_ACEOF
17093 #define HAVE_EVENT_BASE_FREE 1
17098 # only in libevent 1.2 and later
17099 for ac_func in event_base_once
17101 ac_fn_c_check_func "$LINENO" "event_base_once" "ac_cv_func_event_base_once"
17102 if test "x$ac_cv_func_event_base_once" = xyes; then :
17103 cat >>confdefs.h <<_ACEOF
17104 #define HAVE_EVENT_BASE_ONCE 1
17109 # only in libevent 1.4.1 and later
17110 for ac_func in event_base_new
17112 ac_fn_c_check_func "$LINENO" "event_base_new" "ac_cv_func_event_base_new"
17113 if test "x$ac_cv_func_event_base_new" = xyes; then :
17114 cat >>confdefs.h <<_ACEOF
17115 #define HAVE_EVENT_BASE_NEW 1
17120 # only in libevent 1.4.1 and later
17121 for ac_func in event_base_get_method
17123 ac_fn_c_check_func "$LINENO" "event_base_get_method" "ac_cv_func_event_base_get_method"
17124 if test "x$ac_cv_func_event_base_get_method" = xyes; then :
17125 cat >>confdefs.h <<_ACEOF
17126 #define HAVE_EVENT_BASE_GET_METHOD 1
17131 # only in libevent 1.4.3 and later
17132 for ac_func in ev_loop
17134 ac_fn_c_check_func "$LINENO" "ev_loop" "ac_cv_func_ev_loop"
17135 if test "x$ac_cv_func_ev_loop" = xyes; then :
17136 cat >>confdefs.h <<_ACEOF
17137 #define HAVE_EV_LOOP 1
17142 # only in libev. (tested on 3.51)
17143 for ac_func in ev_default_loop
17145 ac_fn_c_check_func "$LINENO" "ev_default_loop" "ac_cv_func_ev_default_loop"
17146 if test "x$ac_cv_func_ev_default_loop" = xyes; then :
17147 cat >>confdefs.h <<_ACEOF
17148 #define HAVE_EV_DEFAULT_LOOP 1
17153 # only in libev. (tested on 4.00)
17154 if test -n "$BAK_LDFLAGS_SET"; then
17155 LDFLAGS="$BAK_LDFLAGS"
17159 $as_echo "#define USE_MINI_EVENT 1" >>confdefs.h
17163 # check for libexpat
17165 # Check whether --with-libexpat was given.
17166 if test "${with_libexpat+set}" = set; then :
17167 withval=$with_libexpat;
17169 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
17173 $as_echo_n "checking for libexpat... " >&6; }
17174 found_libexpat="no"
17175 for dir in $withval ; do
17176 if test -f "$dir/include/expat.h"; then
17177 found_libexpat="yes"
17178 if test "$dir" != "/usr"; then
17179 CPPFLAGS="$CPPFLAGS -I$dir/include"
17180 LDFLAGS="$LDFLAGS -L$dir/lib"
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $dir" >&5
17183 $as_echo "found in $dir" >&6; }
17187 if test x_$found_libexpat != x_yes; then
17188 as_fn_error $? "Could not find libexpat, expat.h" "$LINENO" 5
17190 for ac_header in expat.h
17192 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default
17194 if test "x$ac_cv_header_expat_h" = xyes; then :
17195 cat >>confdefs.h <<_ACEOF
17196 #define HAVE_EXPAT_H 1
17204 # set static linking if requested
17207 # Check whether --enable-static-exe was given.
17208 if test "${enable_static_exe+set}" = set; then :
17209 enableval=$enable_static_exe;
17212 if test x_$enable_static_exe = x_yes; then
17213 staticexe="-static"
17214 if test "$on_mingw" = yes; then
17215 staticexe="-all-static"
17216 # for static crosscompile, include gdi32 and zlib here.
17217 if test "`uname`" = "Linux"; then
17218 LIBS="$LIBS -lgdi32 -lz"
17223 # set lock checking if requested
17224 # Check whether --enable-lock_checks was given.
17225 if test "${enable_lock_checks+set}" = set; then :
17226 enableval=$enable_lock_checks;
17229 if test x_$enable_lock_checks = x_yes; then
17231 $as_echo "#define ENABLE_LOCK_CHECKS 1" >>confdefs.h
17233 CHECKLOCK_OBJ="checklocks.lo"
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17239 $as_echo_n "checking for getaddrinfo... " >&6; }
17240 ac_cv_func_getaddrinfo=no
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17248 char* getaddrinfo();
17249 char* (*f) () = getaddrinfo;
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 ac_cv_func_getaddrinfo="yes"
17261 if test "$ac_cv_header_windows_h" = "yes"; then
17263 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17266 LIBS="$LIBS -lws2_32"
17271 LIBS="$LIBS -lws2_32"
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17275 #ifdef HAVE_WS2TCPIP_H
17276 #include <ws2tcpip.h>
17283 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17290 if ac_fn_c_try_link "$LINENO"; then :
17292 ac_cv_func_getaddrinfo="yes"
17294 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17300 ac_cv_func_getaddrinfo="no"
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17312 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17313 if test $ac_cv_func_getaddrinfo = yes; then
17315 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17319 if test "$USE_WINSOCK" = 1; then
17321 $as_echo "#define UB_ON_WINDOWS 1" >>confdefs.h
17323 for ac_header in iphlpapi.h
17325 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "$ac_includes_default
17326 #include <windows.h>
17329 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
17330 cat >>confdefs.h <<_ACEOF
17331 #define HAVE_IPHLPAPI_H 1
17338 if test -n "$ac_tool_prefix"; then
17339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17340 set dummy ${ac_tool_prefix}windres; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17342 $as_echo_n "checking for $ac_word... " >&6; }
17343 if ${ac_cv_prog_WINDRES+:} false; then :
17344 $as_echo_n "(cached) " >&6
17346 if test -n "$WINDRES"; then
17347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17366 WINDRES=$ac_cv_prog_WINDRES
17367 if test -n "$WINDRES"; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17369 $as_echo "$WINDRES" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17377 if test -z "$ac_cv_prog_WINDRES"; then
17378 ac_ct_WINDRES=$WINDRES
17379 # Extract the first word of "windres", so it can be a program name with args.
17380 set dummy windres; ac_word=$2
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17382 $as_echo_n "checking for $ac_word... " >&6; }
17383 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17384 $as_echo_n "(cached) " >&6
17386 if test -n "$ac_ct_WINDRES"; then
17387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17390 for as_dir in $PATH
17393 test -z "$as_dir" && as_dir=.
17394 for ac_exec_ext in '' $ac_executable_extensions; do
17395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17396 ac_cv_prog_ac_ct_WINDRES="windres"
17397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17406 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17407 if test -n "$ac_ct_WINDRES"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17409 $as_echo "$ac_ct_WINDRES" >&6; }
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17412 $as_echo "no" >&6; }
17415 if test "x$ac_ct_WINDRES" = x; then
17418 case $cross_compiling:$ac_tool_warned in
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17422 ac_tool_warned=yes ;;
17424 WINDRES=$ac_ct_WINDRES
17427 WINDRES="$ac_cv_prog_WINDRES"
17430 LIBS="$LIBS -liphlpapi"
17431 WINAPPS="unbound-service-install.exe unbound-service-remove.exe anchor-update.exe"
17433 WIN_DAEMON_SRC="winrc/win_svc.c winrc/w_inst.c"
17435 WIN_DAEMON_OBJ="win_svc.lo w_inst.lo"
17437 WIN_DAEMON_OBJ_LINK="rsrc_unbound.o"
17439 WIN_HOST_OBJ_LINK="rsrc_unbound_host.o"
17441 WIN_UBANCHOR_OBJ_LINK="rsrc_unbound_anchor.o log.lo locks.lo"
17443 WIN_CONTROL_OBJ_LINK="rsrc_unbound_control.o"
17445 WIN_CHECKCONF_OBJ_LINK="rsrc_unbound_checkconf.o"
17448 if test $ac_cv_func_getaddrinfo = no; then
17449 case " $LIBOBJS " in
17450 *" fake-rfc2553.$ac_objext "* ) ;;
17451 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17456 # check after getaddrinfo for its libraries
17458 # check ioctlsocket
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17460 $as_echo_n "checking for ioctlsocket... " >&6; }
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 #ifdef HAVE_WINSOCK2_H
17465 #include <winsock2.h>
17472 (void)ioctlsocket(0, 0, NULL);
17478 if ac_fn_c_try_link "$LINENO"; then :
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17481 $as_echo "yes" >&6; }
17483 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17490 rm -f core conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17494 # see if daemon(3) exists, and if it is deprecated.
17495 for ac_func in daemon
17497 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
17498 if test "x$ac_cv_func_daemon" = xyes; then :
17499 cat >>confdefs.h <<_ACEOF
17500 #define HAVE_DAEMON 1
17506 if test $ac_cv_func_daemon = yes; then
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon is deprecated" >&5
17510 $as_echo_n "checking if daemon is deprecated... " >&6; }
17511 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
17512 if eval \${cv_cc_deprecated_$cache+:} false; then :
17513 $as_echo_n "(cached) " >&6
17517 #include <stdlib.h>
17519 echo 'void f(){ (void)daemon(0, 0); }' >>conftest.c
17520 if test -z "`$CC -c conftest.c 2>&1 | grep deprecated`"; then
17521 eval "cv_cc_deprecated_$cache=no"
17523 eval "cv_cc_deprecated_$cache=yes"
17525 rm -f conftest conftest.o conftest.c
17529 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17531 $as_echo "yes" >&6; }
17533 cat >>confdefs.h <<_ACEOF
17534 #define DEPRECATED_DAEMON 1
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17548 ac_fn_c_check_member "$LINENO" "struct in_pktinfo" "ipi_spec_dst" "ac_cv_member_struct_in_pktinfo_ipi_spec_dst" "
17549 $ac_includes_default
17550 #if HAVE_SYS_PARAM_H
17551 #include <sys/param.h>
17554 #ifdef HAVE_SYS_SOCKET_H
17555 #include <sys/socket.h>
17558 #ifdef HAVE_SYS_UIO_H
17559 #include <sys/uio.h>
17562 #ifdef HAVE_NETINET_IN_H
17563 #include <netinet/in.h>
17566 #ifdef HAVE_ARPA_INET_H
17567 #include <arpa/inet.h>
17570 #ifdef HAVE_WINSOCK2_H
17571 #include <winsock2.h>
17574 #ifdef HAVE_WS2TCPIP_H
17575 #include <ws2tcpip.h>
17579 if test "x$ac_cv_member_struct_in_pktinfo_ipi_spec_dst" = xyes; then :
17581 cat >>confdefs.h <<_ACEOF
17582 #define HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST 1
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setusercontext" >&5
17589 $as_echo_n "checking for library containing setusercontext... " >&6; }
17590 if ${ac_cv_search_setusercontext+:} false; then :
17591 $as_echo_n "(cached) " >&6
17593 ac_func_search_save_LIBS=$LIBS
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17597 /* Override any GCC internal prototype to avoid an error.
17598 Use char because int might match the return type of a GCC
17599 builtin and then its argument prototype would still apply. */
17603 char setusercontext ();
17607 return setusercontext ();
17612 for ac_lib in '' util; do
17613 if test -z "$ac_lib"; then
17614 ac_res="none required"
17617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17619 if ac_fn_c_try_link "$LINENO"; then :
17620 ac_cv_search_setusercontext=$ac_res
17622 rm -f core conftest.err conftest.$ac_objext \
17624 if ${ac_cv_search_setusercontext+:} false; then :
17628 if ${ac_cv_search_setusercontext+:} false; then :
17631 ac_cv_search_setusercontext=no
17633 rm conftest.$ac_ext
17634 LIBS=$ac_func_search_save_LIBS
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setusercontext" >&5
17637 $as_echo "$ac_cv_search_setusercontext" >&6; }
17638 ac_res=$ac_cv_search_setusercontext
17639 if test "$ac_res" != no; then :
17640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17644 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev socketpair glob initgroups strftime localtime_r setusercontext _beginthreadex
17646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17649 cat >>confdefs.h <<_ACEOF
17650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 for ac_func in setresuid
17658 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17659 if test "x$ac_cv_func_setresuid" = xyes; then :
17660 cat >>confdefs.h <<_ACEOF
17661 #define HAVE_SETRESUID 1
17665 for ac_func in setreuid
17667 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17668 if test "x$ac_cv_func_setreuid" = xyes; then :
17669 cat >>confdefs.h <<_ACEOF
17670 #define HAVE_SETREUID 1
17679 for ac_func in setresgid
17681 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
17682 if test "x$ac_cv_func_setresgid" = xyes; then :
17683 cat >>confdefs.h <<_ACEOF
17684 #define HAVE_SETRESGID 1
17688 for ac_func in setregid
17690 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
17691 if test "x$ac_cv_func_setregid" = xyes; then :
17692 cat >>confdefs.h <<_ACEOF
17693 #define HAVE_SETREGID 1
17703 # check if setreuid en setregid fail, on MacOSX10.4(darwin8).
17704 if echo $build_os | grep darwin8 > /dev/null; then
17706 $as_echo "#define DARWIN_BROKEN_SETREUID 1" >>confdefs.h
17709 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17710 if test "x$ac_cv_func_inet_aton" = xyes; then :
17711 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17714 case " $LIBOBJS " in
17715 *" inet_aton.$ac_objext "* ) ;;
17716 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17723 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17724 if test "x$ac_cv_func_inet_pton" = xyes; then :
17725 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17728 case " $LIBOBJS " in
17729 *" inet_pton.$ac_objext "* ) ;;
17730 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17737 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17738 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17739 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17742 case " $LIBOBJS " in
17743 *" inet_ntop.$ac_objext "* ) ;;
17744 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17751 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17752 if test "x$ac_cv_func_snprintf" = xyes; then :
17753 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17756 case " $LIBOBJS " in
17757 *" snprintf.$ac_objext "* ) ;;
17758 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17765 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17766 if test "x$ac_cv_func_strlcpy" = xyes; then :
17767 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17770 case " $LIBOBJS " in
17771 *" strlcpy.$ac_objext "* ) ;;
17772 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17779 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17780 if test "x$ac_cv_func_memmove" = xyes; then :
17781 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17784 case " $LIBOBJS " in
17785 *" memmove.$ac_objext "* ) ;;
17786 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17793 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17794 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17795 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17798 case " $LIBOBJS " in
17799 *" gmtime_r.$ac_objext "* ) ;;
17800 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17807 LIBOBJ_WITHOUT_CTIME="$LIBOBJS"
17809 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17810 if test "x$ac_cv_func_ctime_r" = xyes; then :
17811 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17814 case " $LIBOBJS " in
17815 *" ctime_r.$ac_objext "* ) ;;
17816 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17824 # Check whether --enable-allsymbols was given.
17825 if test "${enable_allsymbols+set}" = set; then :
17826 enableval=$enable_allsymbols;
17829 case "$enable_allsymbols" in
17831 COMMON_OBJ_ALL_SYMBOLS=""
17833 EXTRALINK="-L. -L.libs -lunbound"
17835 $as_echo "#define EXPORT_ALL_SYMBOLS 1" >>confdefs.h
17839 COMMON_OBJ_ALL_SYMBOLS='$(COMMON_OBJ)'
17840 UBSYMS='-export-symbols $(srcdir)/libunbound/ubsyms.def'
17847 if test x_$enable_lock_checks = x_yes; then
17848 UBSYMS="-export-symbols clubsyms.def"
17849 cp ${srcdir}/libunbound/ubsyms.def clubsyms.def
17850 echo lock_protect >> clubsyms.def
17851 echo lock_unprotect >> clubsyms.def
17852 echo lock_get_mem >> clubsyms.def
17853 echo checklock_start >> clubsyms.def
17854 echo checklock_stop >> clubsyms.def
17855 echo checklock_lock >> clubsyms.def
17856 echo checklock_unlock >> clubsyms.def
17857 echo checklock_init >> clubsyms.def
17858 echo checklock_thrcreate >> clubsyms.def
17859 echo checklock_thrjoin >> clubsyms.def
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${MAKE:-make} supports $< with implicit rule in scope" >&5
17863 $as_echo_n "checking if ${MAKE:-make} supports $< with implicit rule in scope... " >&6; }
17864 # on openBSD, the implicit rule make $< work.
17865 # on Solaris, it does not work ($? is changed sources, $^ lists dependencies).
17867 cat >conftest.make <<EOF
17870 conftest.lo foo.lo bla.lo:
17871 if test -f "\$<"; then touch \$@; fi
17875 if test -f "\$<"; then touch \$@; fi
17877 conftest.lo: conftest.dir/conftest.c
17880 touch conftest.dir/conftest.c
17881 rm -f conftest.lo conftest.c
17882 ${MAKE:-make} -f conftest.make >/dev/null
17883 rm -f conftest.make conftest.c conftest.dir/conftest.c
17884 rm -rf conftest.dir
17885 if test ! -f conftest.lo; then
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17887 $as_echo "no" >&6; }
17888 SOURCEDETERMINE='echo "$^" | awk "-F " "{print \$$1;}" > .source'
17889 SOURCEFILE='`cat .source`'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17892 $as_echo "yes" >&6; }
17893 SOURCEDETERMINE=':'
17900 # see if we want to build the library or everything
17901 ALLTARGET="alltargets"
17903 # Check whether --with-libunbound-only was given.
17904 if test "${with_libunbound_only+set}" = set; then :
17905 withval=$with_libunbound_only;
17906 if test "$withval" = "yes"; then
17914 # check this after all other compilation checks, since the linking of the lib
17915 # may break checks after this.
17917 # Check whether --with-ldns was given.
17918 if test "${with_ldns+set}" = set; then :
17919 withval=$with_ldns;
17920 if test "$withval" != "yes"; then
17921 if test "$withval" != "/usr" -a "$withval" != ""; then
17922 CPPFLAGS="-I$withval/include $CPPFLAGS"
17923 LDFLAGS="-L$withval/lib $LDFLAGS"
17925 if test "x$enable_rpath" = xyes; then
17926 if echo "$withval/lib" | grep "^/" >/dev/null; then
17927 RUNTIME_PATH="$RUNTIME_PATH -R$withval/lib"
17939 # check if ldns is good enough
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
17941 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
17942 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
17943 $as_echo_n "(cached) " >&6
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-lldns $LIBS"
17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17948 /* end confdefs.h. */
17950 /* Override any GCC internal prototype to avoid an error.
17951 Use char because int might match the return type of a GCC
17952 builtin and then its argument prototype would still apply. */
17956 char ldns_rr_new ();
17960 return ldns_rr_new ();
17965 if ac_fn_c_try_link "$LINENO"; then :
17966 ac_cv_lib_ldns_ldns_rr_new=yes
17968 ac_cv_lib_ldns_ldns_rr_new=no
17970 rm -f core conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972 LIBS=$ac_check_lib_save_LIBS
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
17975 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
17976 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_LIBLDNS 1
17981 LIBS="-lldns $LIBS"
17985 as_fn_error $? "No ldns library found, install the ldns library into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Install the package ldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
17989 ac_fn_c_check_func "$LINENO" "ldns_buffer_copy" "ac_cv_func_ldns_buffer_copy"
17990 if test "x$ac_cv_func_ldns_buffer_copy" = xyes; then :
17994 if test $USE_NSS = "no"; then
17995 ac_fn_c_check_func "$LINENO" "ldns_key_buf2rsa_raw" "ac_cv_func_ldns_key_buf2rsa_raw"
17996 if test "x$ac_cv_func_ldns_key_buf2rsa_raw" = xyes; then :
18001 ac_cv_func_ldns_key_buf2rsa_raw="yes"
18003 ac_fn_c_check_func "$LINENO" "ldns_get_random" "ac_cv_func_ldns_get_random"
18004 if test "x$ac_cv_func_ldns_get_random" = xyes; then :
18008 ac_fn_c_check_func "$LINENO" "ldns_b32_ntop_extended_hex" "ac_cv_func_ldns_b32_ntop_extended_hex"
18009 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = xyes; then :
18013 if test x$use_gost = xyes -a x$USE_NSS = xno; then
18014 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_load_gost_id" "ac_cv_func_ldns_key_EVP_load_gost_id"
18015 if test "x$ac_cv_func_ldns_key_EVP_load_gost_id" = xyes; then :
18019 for ac_func in ldns_key_EVP_unload_gost
18021 ac_fn_c_check_func "$LINENO" "ldns_key_EVP_unload_gost" "ac_cv_func_ldns_key_EVP_unload_gost"
18022 if test "x$ac_cv_func_ldns_key_EVP_unload_gost" = xyes; then :
18023 cat >>confdefs.h <<_ACEOF
18024 #define HAVE_LDNS_KEY_EVP_UNLOAD_GOST 1
18031 ac_cv_func_ldns_key_EVP_load_gost_id="yes"
18033 if test x$use_ecdsa = xyes; then
18034 ac_fn_c_check_decl "$LINENO" "LDNS_ECDSAP384SHA384" "ac_cv_have_decl_LDNS_ECDSAP384SHA384" "
18035 $ac_includes_default
18036 #ifdef HAVE_SYS_SOCKET_H
18037 # include <sys/socket.h>
18039 #ifdef HAVE_WS2TCPIP_H
18040 # include <ws2tcpip.h>
18042 #include <ldns/ldns.h>
18045 if test "x$ac_cv_have_decl_LDNS_ECDSAP384SHA384" = xyes; then :
18050 ac_cv_have_decl_LDNS_ECDSAP384SHA384="yes"
18052 for ac_header in ldns/ldns.h
18054 ac_fn_c_check_header_compile "$LINENO" "ldns/ldns.h" "ac_cv_header_ldns_ldns_h" "$ac_includes_default
18055 #ifdef HAVE_SYS_SOCKET_H
18056 #include <sys/socket.h>
18059 #ifdef HAVE_NETINET_IN_H
18060 #include <netinet/in.h>
18063 #ifdef HAVE_ARPA_INET_H
18064 #include <arpa/inet.h>
18067 #ifdef HAVE_WINSOCK2_H
18068 #include <winsock2.h>
18071 #ifdef HAVE_WS2TCPIP_H
18072 #include <ws2tcpip.h>
18076 if test "x$ac_cv_header_ldns_ldns_h" = xyes; then :
18077 cat >>confdefs.h <<_ACEOF
18078 #define HAVE_LDNS_LDNS_H 1
18083 as_fn_error $? "No ldns include file found, install the ldns library development files. Install package ldns-dev or ldns-devel or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18089 if test $ac_cv_func_ldns_buffer_copy = yes \
18090 -a $ac_cv_func_ldns_key_buf2rsa_raw = yes \
18091 -a $ac_cv_func_ldns_get_random = yes \
18092 -a $ac_cv_header_ldns_ldns_h = yes \
18093 -a $ac_cv_func_ldns_b32_ntop_extended_hex = yes \
18094 -a $ac_cv_func_ldns_key_EVP_load_gost_id = yes \
18095 -a $ac_cv_have_decl_LDNS_ECDSAP384SHA384 = yes; then
18098 as_fn_error $? "ldns library is not recent, update the ldns library, install it into system lib dir or use --with-ldns=path to other location. The --with-ldns can point to the make-dir of ldns. Package libldns or download source http://www.nlnetlabs.nl/projects/ldns" "$LINENO" 5
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: Stripping extension flags..." >&5
18103 $as_echo "$as_me: Stripping extension flags..." >&6;}
18105 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
18106 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
18108 $as_echo "#define OMITTED__D_GNU_SOURCE 1" >>confdefs.h
18113 if echo $CFLAGS | grep " -D_BSD_SOURCE" >/dev/null 2>&1; then
18114 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_BSD_SOURCE//g'`"
18116 $as_echo "#define OMITTED__D_BSD_SOURCE 1" >>confdefs.h
18121 if echo $CFLAGS | grep " -D__EXTENSIONS__" >/dev/null 2>&1; then
18122 CFLAGS="`echo $CFLAGS | sed -e 's/ -D__EXTENSIONS__//g'`"
18124 $as_echo "#define OMITTED__D__EXTENSIONS__ 1" >>confdefs.h
18129 if echo $CFLAGS | grep " -D_POSIX_C_SOURCE=200112" >/dev/null 2>&1; then
18130 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_POSIX_C_SOURCE=200112//g'`"
18132 $as_echo "#define OMITTED__D_POSIX_C_SOURCE_200112 1" >>confdefs.h
18137 if echo $CFLAGS | grep " -D_XOPEN_SOURCE=600" >/dev/null 2>&1; then
18138 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE=600//g'`"
18140 $as_echo "#define OMITTED__D_XOPEN_SOURCE_600 1" >>confdefs.h
18145 if echo $CFLAGS | grep " -D_XOPEN_SOURCE_EXTENDED=1" >/dev/null 2>&1; then
18146 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_XOPEN_SOURCE_EXTENDED=1//g'`"
18148 $as_echo "#define OMITTED__D_XOPEN_SOURCE_EXTENDED_1 1" >>confdefs.h
18153 if echo $CFLAGS | grep " -D_ALL_SOURCE" >/dev/null 2>&1; then
18154 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_ALL_SOURCE//g'`"
18156 $as_echo "#define OMITTED__D_ALL_SOURCE 1" >>confdefs.h
18161 if echo $CFLAGS | grep " -D_LARGEFILE_SOURCE=1" >/dev/null 2>&1; then
18162 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_LARGEFILE_SOURCE=1//g'`"
18164 $as_echo "#define OMITTED__D_LARGEFILE_SOURCE_1 1" >>confdefs.h
18169 LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
18172 cat >>confdefs.h <<_ACEOF
18173 #define MAXSYSLOGMSGLEN 10240
18179 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 smallapp/unbound-control-setup.sh"
18181 ac_config_headers="$ac_config_headers config.h"
18183 cat >confcache <<\_ACEOF
18184 # This file is a shell script that caches the results of configure
18185 # tests run on this system so they can be shared between configure
18186 # scripts and configure runs, see configure's option --config-cache.
18187 # It is not useful on other systems. If it contains results you don't
18188 # want to keep, you may remove or edit it.
18190 # config.status only pays attention to the cache file if you give it
18191 # the --recheck option to rerun configure.
18193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18195 # following values.
18199 # The following way of writing the cache mishandles newlines in values,
18200 # but we know of no workaround that is simple, portable, and efficient.
18201 # So, we kill variables containing newlines.
18202 # Ultrix sh set writes to stderr and can't be redirected directly,
18203 # and sets the high bit in the cache file unless we assign to the vars.
18205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18206 eval ac_val=\$$ac_var
18210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18214 _ | IFS | as_nl) ;; #(
18215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18216 *) { eval $ac_var=; unset $ac_var;} ;;
18222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18223 *${as_nl}ac_space=\ *)
18224 # `set' does not quote correctly, so add quotes: double-quote
18225 # substitution turns \\\\ into \\, and sed turns \\ into \.
18228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18231 # `set' quotes correctly as required by POSIX, so do not add quotes.
18232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18246 if test -w "$cache_file"; then
18247 if test "x$cache_file" != "x/dev/null"; then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18249 $as_echo "$as_me: updating cache $cache_file" >&6;}
18250 if test ! -f "$cache_file" || test -h "$cache_file"; then
18251 cat confcache >"$cache_file"
18253 case $cache_file in #(
18255 mv -f confcache "$cache_file"$$ &&
18256 mv -f "$cache_file"$$ "$cache_file" ;; #(
18258 mv -f confcache "$cache_file" ;;
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18270 # Let make expand exec_prefix.
18271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18273 DEFS=-DHAVE_CONFIG_H
18278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18279 # 1. Remove the extension, and $U if already installed.
18280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18283 # will be set to the directory where LIBOBJS objects are built.
18284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18287 LIBOBJS=$ac_libobjs
18289 LTLIBOBJS=$ac_ltlibobjs
18293 : "${CONFIG_STATUS=./config.status}"
18295 ac_clean_files_save=$ac_clean_files
18296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18302 # Generated by $as_me.
18303 # Run this file to recreate the current configuration.
18304 # Compiler output produced by configure, useful for debugging
18305 # configure, is in config.log if it exists.
18308 ac_cs_recheck=false
18311 SHELL=\${CONFIG_SHELL-$SHELL}
18314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18315 ## -------------------- ##
18316 ## M4sh Initialization. ##
18317 ## -------------------- ##
18319 # Be more Bourne compatible
18320 DUALCASE=1; export DUALCASE # for MKS sh
18321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18325 # is contrary to our usage. Disable this feature.
18326 alias -g '${1+"$@"}'='"$@"'
18327 setopt NO_GLOB_SUBST
18329 case `(set -o) 2>/dev/null` in #(
18341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18345 # Prefer a ksh shell builtin over an external printf program on Solaris,
18346 # but without wasting forks for bash or zsh.
18347 if test -z "$BASH_VERSION$ZSH_VERSION" \
18348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18349 as_echo='print -r --'
18350 as_echo_n='print -rn --'
18351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18352 as_echo='printf %s\n'
18353 as_echo_n='printf %s'
18355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18357 as_echo_n='/usr/ucb/echo -n'
18359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18360 as_echo_n_body='eval
18364 expr "X$arg" : "X\\(.*\\)$as_nl";
18365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18369 export as_echo_n_body
18370 as_echo_n='sh -c $as_echo_n_body as_echo'
18372 export as_echo_body
18373 as_echo='sh -c $as_echo_body as_echo'
18376 # The user is always right.
18377 if test "${PATH_SEPARATOR+set}" != set; then
18379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18387 # We need space, tab and new line, in precisely that order. Quoting is
18388 # there to prevent editors from complaining about space-tab.
18389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18390 # splitting by setting IFS to empty value.)
18393 # Find who we are. Look in the path if we contain no directory separator.
18396 *[\\/]* ) as_myself=$0 ;;
18397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18401 test -z "$as_dir" && as_dir=.
18402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18408 # We did not find ourselves, most probably we were run as `sh COMMAND'
18409 # in which case we are not to be found in the path.
18410 if test "x$as_myself" = x; then
18413 if test ! -f "$as_myself"; then
18414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18418 # Unset variables that we do not need and which cause bugs (e.g. in
18419 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18420 # suppresses any "Segmentation fault" message there. '((' could
18421 # trigger a bug in pdksh 5.2.14.
18422 for as_var in BASH_ENV ENV MAIL MAILPATH
18423 do eval test x\${$as_var+set} = xset \
18424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18437 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18440 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18441 # ----------------------------------------
18442 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18443 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18444 # script with STATUS, using 1 if that was 0.
18447 as_status=$1; test $as_status -eq 0 && as_status=1
18449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18452 $as_echo "$as_me: error: $2" >&2
18453 as_fn_exit $as_status
18457 # as_fn_set_status STATUS
18458 # -----------------------
18459 # Set $? to STATUS, without forking.
18460 as_fn_set_status ()
18463 } # as_fn_set_status
18465 # as_fn_exit STATUS
18466 # -----------------
18467 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18471 as_fn_set_status $1
18477 # Portably unset VAR.
18480 { eval $1=; unset $1;}
18482 as_unset=as_fn_unset
18483 # as_fn_append VAR VALUE
18484 # ----------------------
18485 # Append the text in VALUE to the end of the definition contained in VAR. Take
18486 # advantage of any shell optimizations that allow amortized linear growth over
18487 # repeated appends, instead of the typical quadratic growth present in naive
18489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18490 eval 'as_fn_append ()
18501 # as_fn_arith ARG...
18502 # ------------------
18503 # Perform arithmetic evaluation on the ARGs, and store the result in the
18504 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18505 # must be portable across $(()) and expr.
18506 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18507 eval 'as_fn_arith ()
18514 as_val=`expr "$@" || test $? -eq 1`
18519 if expr a : '\(a\)' >/dev/null 2>&1 &&
18520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18526 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18527 as_basename=basename
18532 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18538 as_me=`$as_basename -- "$0" ||
18539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18540 X"$0" : 'X\(//\)$' \| \
18541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18543 sed '/^.*\/\([^/][^/]*\)\/*$/{
18557 # Avoid depending upon Character Ranges.
18558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18561 as_cr_digits='0123456789'
18562 as_cr_alnum=$as_cr_Letters$as_cr_digits
18564 ECHO_C= ECHO_N= ECHO_T=
18565 case `echo -n x` in #(((((
18567 case `echo 'xy\c'` in
18568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18577 rm -f conf$$ conf$$.exe conf$$.file
18578 if test -d conf$$.dir; then
18579 rm -f conf$$.dir/conf$$.file
18582 mkdir conf$$.dir 2>/dev/null
18584 if (echo >conf$$.file) 2>/dev/null; then
18585 if ln -s conf$$.file conf$$ 2>/dev/null; then
18587 # ... but there are two gotchas:
18588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18590 # In both cases, we have to default to `cp -pR'.
18591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18593 elif ln conf$$.file conf$$ 2>/dev/null; then
18601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18602 rmdir conf$$.dir 2>/dev/null
18607 # Create "$as_dir" as a directory, including parents if necessary.
18612 -*) as_dir=./$as_dir;;
18614 test -d "$as_dir" || eval $as_mkdir_p || {
18618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18619 *) as_qdir=$as_dir;;
18621 as_dirs="'$as_qdir' $as_dirs"
18622 as_dir=`$as_dirname -- "$as_dir" ||
18623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624 X"$as_dir" : 'X\(//\)[^/]' \| \
18625 X"$as_dir" : 'X\(//\)$' \| \
18626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18627 $as_echo X"$as_dir" |
18628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18632 /^X\(\/\/\)[^/].*/{
18645 test -d "$as_dir" && break
18647 test -z "$as_dirs" || eval "mkdir $as_dirs"
18648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18652 if mkdir -p . 2>/dev/null; then
18653 as_mkdir_p='mkdir -p "$as_dir"'
18655 test -d ./-p && rmdir ./-p
18660 # as_fn_executable_p FILE
18661 # -----------------------
18662 # Test if FILE is an executable regular file.
18663 as_fn_executable_p ()
18665 test -f "$1" && test -x "$1"
18666 } # as_fn_executable_p
18667 as_test_x='test -x'
18668 as_executable_p=as_fn_executable_p
18670 # Sed expression to map a string onto a valid CPP name.
18671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18673 # Sed expression to map a string onto a valid variable name.
18674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18678 ## ----------------------------------- ##
18679 ## Main body of $CONFIG_STATUS script. ##
18680 ## ----------------------------------- ##
18682 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18685 # Save the log message, to keep $0 and so on meaningful, and to
18686 # report actual input values of CONFIG_FILES etc. instead of their
18687 # values after options handling.
18689 This file was extended by unbound $as_me 1.4.20, which was
18690 generated by GNU Autoconf 2.69. Invocation command line was
18692 CONFIG_FILES = $CONFIG_FILES
18693 CONFIG_HEADERS = $CONFIG_HEADERS
18694 CONFIG_LINKS = $CONFIG_LINKS
18695 CONFIG_COMMANDS = $CONFIG_COMMANDS
18698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18703 case $ac_config_files in *"
18704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18707 case $ac_config_headers in *"
18708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713 # Files that config.status was made for.
18714 config_files="$ac_config_files"
18715 config_headers="$ac_config_headers"
18716 config_commands="$ac_config_commands"
18720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18722 \`$as_me' instantiates files and other configuration actions
18723 from templates according to the current configuration. Unless the files
18724 and actions are specified as TAGs, all are instantiated by default.
18726 Usage: $0 [OPTION]... [TAG]...
18728 -h, --help print this help, then exit
18729 -V, --version print version number and configuration settings, then exit
18730 --config print configuration, then exit
18731 -q, --quiet, --silent
18732 do not print progress messages
18733 -d, --debug don't remove temporary files
18734 --recheck update $as_me by reconfiguring in the same conditions
18735 --file=FILE[:TEMPLATE]
18736 instantiate the configuration file FILE
18737 --header=FILE[:TEMPLATE]
18738 instantiate the configuration header FILE
18740 Configuration files:
18743 Configuration headers:
18746 Configuration commands:
18749 Report bugs to <unbound-bugs@nlnetlabs.nl>."
18752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18753 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18755 unbound config.status 1.4.20
18756 configured by $0, generated by GNU Autoconf 2.69,
18757 with options \\"\$ac_cs_config\\"
18759 Copyright (C) 2012 Free Software Foundation, Inc.
18760 This config.status script is free software; the Free Software Foundation
18761 gives unlimited permission to copy, distribute and modify it."
18766 test -n "\$AWK" || AWK=awk
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 # The default lists apply if the user does not specify any file.
18776 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18777 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18793 # Handling of the options.
18794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18797 $as_echo "$ac_cs_version"; exit ;;
18798 --config | --confi | --conf | --con | --co | --c )
18799 $as_echo "$ac_cs_config"; exit ;;
18800 --debug | --debu | --deb | --de | --d | -d )
18802 --file | --fil | --fi | --f )
18805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18806 '') as_fn_error $? "missing file argument" ;;
18808 as_fn_append CONFIG_FILES " '$ac_optarg'"
18809 ac_need_defaults=false;;
18810 --header | --heade | --head | --hea )
18813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18815 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18816 ac_need_defaults=false;;
18818 # Conflict between --help and --header
18819 as_fn_error $? "ambiguous option: \`$1'
18820 Try \`$0 --help' for more information.";;
18821 --help | --hel | -h )
18822 $as_echo "$ac_cs_usage"; exit ;;
18823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18824 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18827 # This is an error.
18828 -*) as_fn_error $? "unrecognized option: \`$1'
18829 Try \`$0 --help' for more information." ;;
18831 *) as_fn_append ac_config_targets " $1"
18832 ac_need_defaults=false ;;
18838 ac_configure_extra_args=
18840 if $ac_cs_silent; then
18842 ac_configure_extra_args="$ac_configure_extra_args --silent"
18846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18847 if \$ac_cs_recheck; then
18848 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18850 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18851 CONFIG_SHELL='$SHELL'
18852 export CONFIG_SHELL
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18862 ## Running $as_me. ##
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18874 # The HP-UX ksh and POSIX shell print the target directory to stdout
18875 # if CDPATH is set.
18876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18878 sed_quote_subst='$sed_quote_subst'
18879 double_quote_subst='$double_quote_subst'
18880 delay_variable_subst='$delay_variable_subst'
18881 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18882 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18883 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18884 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18885 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18886 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18887 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18888 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18889 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18890 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18891 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18892 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18893 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18894 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18895 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18896 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18897 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18898 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18899 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18900 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18901 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18902 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18903 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18904 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18905 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18906 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18907 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18908 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18909 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18910 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18911 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18912 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18913 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18914 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18915 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18916 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18917 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18918 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18919 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18920 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18921 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18922 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18923 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18924 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18925 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18926 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18927 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18928 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18929 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18930 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18931 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18932 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18933 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18934 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18935 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18936 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18937 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"`'
18938 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18939 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18940 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18941 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18942 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18943 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18944 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18945 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18946 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18947 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18948 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18949 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18950 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18951 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18952 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18953 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18954 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18955 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18956 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18957 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18958 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18959 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18960 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18961 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18962 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18963 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18964 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18965 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18966 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18967 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18968 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18969 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18970 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18971 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18972 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18973 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18974 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18975 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18976 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18977 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18978 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18979 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18980 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18981 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18982 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18983 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18984 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18985 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18986 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18987 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18988 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18989 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18990 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18991 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18992 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18993 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18994 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18995 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18996 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18997 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18998 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18999 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19000 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19001 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19002 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19003 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19004 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19005 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19006 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19007 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19008 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19009 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19010 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19013 LTCFLAGS='$LTCFLAGS'
19014 compiler='$compiler_DEFAULT'
19016 # A function that is used when there is no print builtin or printf.
19017 func_fallback_echo ()
19019 eval 'cat <<_LTECHO_EOF
19024 # Quote evaled strings.
19039 deplibs_check_method \
19044 sharedlib_from_linklib_cmd \
19047 archiver_list_spec \
19053 lt_cv_sys_global_symbol_pipe \
19054 lt_cv_sys_global_symbol_to_cdecl \
19055 lt_cv_sys_global_symbol_to_c_name_address \
19056 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19057 nm_file_list_spec \
19058 lt_prog_compiler_no_builtin_flag \
19059 lt_prog_compiler_pic \
19060 lt_prog_compiler_wl \
19061 lt_prog_compiler_static \
19062 lt_cv_prog_compiler_c_o \
19071 export_dynamic_flag_spec \
19072 whole_archive_flag_spec \
19073 compiler_needs_object \
19075 allow_undefined_flag \
19076 no_undefined_flag \
19077 hardcode_libdir_flag_spec \
19078 hardcode_libdir_separator \
19082 variables_saved_for_relink \
19084 library_names_spec \
19086 install_override_mode \
19090 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19091 *[\\\\\\\`\\"\\\$]*)
19092 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19095 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19100 # Double-quote double-evaled strings.
19101 for var in reload_cmds \
19102 old_postinstall_cmds \
19103 old_postuninstall_cmds \
19105 extract_expsyms_cmds \
19106 old_archive_from_new_cmds \
19107 old_archive_from_expsyms_cmds \
19109 archive_expsym_cmds \
19111 module_expsym_cmds \
19112 export_symbols_cmds \
19116 postuninstall_cmds \
19118 sys_lib_search_path_spec \
19119 sys_lib_dlsearch_path_spec; do
19120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19121 *[\\\\\\\`\\"\\\$]*)
19122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19130 ac_aux_dir='$ac_aux_dir'
19131 xsi_shell='$xsi_shell'
19132 lt_shell_append='$lt_shell_append'
19134 # See if we are running on zsh, and set the options which allow our
19135 # commands through without removal of \ escapes INIT.
19136 if test -n "\${ZSH_VERSION+set}" ; then
19137 setopt NO_GLOB_SUBST
19143 TIMESTAMP='$TIMESTAMP'
19152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19154 # Handling of arguments.
19155 for ac_config_target in $ac_config_targets
19157 case $ac_config_target in
19158 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19159 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
19160 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19161 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
19162 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
19163 "doc/unbound.8") CONFIG_FILES="$CONFIG_FILES doc/unbound.8" ;;
19164 "doc/unbound-anchor.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-anchor.8" ;;
19165 "doc/unbound-checkconf.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-checkconf.8" ;;
19166 "doc/unbound.conf.5") CONFIG_FILES="$CONFIG_FILES doc/unbound.conf.5" ;;
19167 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
19168 "smallapp/unbound-control-setup.sh") CONFIG_FILES="$CONFIG_FILES smallapp/unbound-control-setup.sh" ;;
19169 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19171 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19176 # If the user did not use the arguments to specify the items to instantiate,
19177 # then the envvar interface is used. Set only those that are not.
19178 # We use the long form for the default assignment because of an extremely
19179 # bizarre bug on SunOS 4.1.3.
19180 if $ac_need_defaults; then
19181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19183 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19186 # Have a temporary directory for convenience. Make it in the build tree
19187 # simply because there is no reason against having it here, and in addition,
19188 # creating and moving files from /tmp can sometimes cause problems.
19189 # Hook for its removal unless debugging.
19190 # Note that there is a small window in which the directory will not be cleaned:
19191 # after its creation but before its name has been assigned to `$tmp'.
19195 trap 'exit_status=$?
19196 : "${ac_tmp:=$tmp}"
19197 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19199 trap 'as_fn_exit 1' 1 2 13 15
19201 # Create a (secure) tmp directory for tmp files.
19204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19208 tmp=./conf$$-$RANDOM
19209 (umask 077 && mkdir "$tmp")
19210 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19213 # Set up the scripts for CONFIG_FILES section.
19214 # No need to generate them if there are no CONFIG_FILES.
19215 # This happens for instance with `./config.status config.h'.
19216 if test -n "$CONFIG_FILES"; then
19219 ac_cr=`echo X | tr X '\015'`
19220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19221 # But we know of no other shell where ac_cr would be empty at this
19222 # point, so we can use a bashism as a fallback.
19223 if test "x$ac_cr" = x; then
19224 eval ac_cr=\$\'\\r\'
19226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19230 ac_cs_awk_cr=$ac_cr
19233 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19238 echo "cat >conf$$subs.awk <<_ACEOF" &&
19239 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19241 } >conf$$subs.sh ||
19242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19243 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19245 for ac_last_try in false false false false false :; do
19246 . ./conf$$subs.sh ||
19247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19249 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19250 if test $ac_delim_n = $ac_delim_num; then
19252 elif $ac_last_try; then
19253 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19258 rm -f conf$$subs.sh
19260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19261 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19265 s/^/S["/; s/!.*/"]=/
19275 s/\(.\{148\}\)..*/\1/
19277 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19289 s/\(.\{148\}\)..*/\1/
19291 s/["\\]/\\&/g; s/^/"/; s/$/"/
19295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19300 ' <conf$$subs.awk | sed '
19305 ' >>$CONFIG_STATUS || ac_write_fail=1
19306 rm -f conf$$subs.awk
19307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19309 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19310 for (key in S) S_is_set[key] = 1
19316 nfields = split(line, field, "@")
19318 len = length(field[1])
19319 for (i = 2; i < nfields; i++) {
19321 keylen = length(key)
19322 if (S_is_set[key]) {
19324 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19325 len += length(value) + length(field[++i])
19336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19341 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19342 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19345 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19346 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19347 # trailing colons and then remove the whole line if VPATH becomes empty
19348 # (actually we leave an empty line to preserve line numbers).
19349 if test "x$srcdir" = x.; then
19350 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19369 fi # test -n "$CONFIG_FILES"
19371 # Set up the scripts for CONFIG_HEADERS section.
19372 # No need to generate them if there are no CONFIG_HEADERS.
19373 # This happens for instance with `./config.status Makefile'.
19374 if test -n "$CONFIG_HEADERS"; then
19375 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19379 # Transform confdefs.h into an awk script `defines.awk', embedded as
19380 # here-document in config.status, that substitutes the proper values into
19381 # config.h.in to produce config.h.
19383 # Create a delimiter string that does not exist in confdefs.h, to ease
19384 # handling of long lines.
19386 for ac_last_try in false false :; do
19387 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19388 if test -z "$ac_tt"; then
19390 elif $ac_last_try; then
19391 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19397 # For the awk script, D is an array of macro values keyed by name,
19398 # likewise P contains macro parameters if any. Preserve backslash
19399 # newline sequences.
19401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19403 s/.\{148\}/&'"$ac_delim"'/g
19406 s/^[ ]*#[ ]*define[ ][ ]*/ /
19413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19415 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19420 D["\1"]=" \3\\\\\\n"\\/p
19422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19427 s/.\{148\}/&'"$ac_delim"'/g
19432 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19435 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19437 ' <confdefs.h | sed '
19438 s/'"$ac_delim"'/"\\\
19439 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19442 for (key in D) D_is_set[key] = 1
19445 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19447 split(line, arg, " ")
19448 if (arg[1] == "#") {
19452 defundef = substr(arg[1], 2)
19455 split(mac1, mac2, "(") #)
19457 prefix = substr(line, 1, index(line, defundef) - 1)
19458 if (D_is_set[macro]) {
19459 # Preserve the white space surrounding the "#".
19460 print prefix "define", macro P[macro] D[macro]
19463 # Replace #undef with comments. This is necessary, for example,
19464 # in the case of _POSIX_SOURCE, which is predefined and required
19465 # on some systems where configure will not decide to define it.
19466 if (defundef == "undef") {
19467 print "/*", prefix defundef, macro, "*/"
19475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19476 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19477 fi # test -n "$CONFIG_HEADERS"
19480 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19485 :[FHLC]) ac_mode=$ac_tag; continue;;
19487 case $ac_mode$ac_tag in
19489 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19490 :[FH]-) ac_tag=-:-;;
19491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19508 -) ac_f="$ac_tmp/stdin";;
19509 *) # Look for the file first in the build tree, then in the source tree
19510 # (if the path is not absolute). The absolute path cannot be DOS-style,
19511 # because $ac_f cannot contain `:'.
19515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19517 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19520 as_fn_append ac_file_inputs " '$ac_f'"
19523 # Let's still pretend it is `configure' which instantiates (i.e., don't
19524 # use $as_me), people would be surprised to read:
19525 # /* config.h. Generated by config.status. */
19526 configure_input='Generated from '`
19527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19529 if test x"$ac_file" != x-; then
19530 configure_input="$ac_file. $configure_input"
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19532 $as_echo "$as_me: creating $ac_file" >&6;}
19534 # Neutralize special characters interpreted by sed in replacement strings.
19535 case $configure_input in #(
19536 *\&* | *\|* | *\\* )
19537 ac_sed_conf_input=`$as_echo "$configure_input" |
19538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19539 *) ac_sed_conf_input=$configure_input;;
19543 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19549 ac_dir=`$as_dirname -- "$ac_file" ||
19550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19551 X"$ac_file" : 'X\(//\)[^/]' \| \
19552 X"$ac_file" : 'X\(//\)$' \| \
19553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19554 $as_echo X"$ac_file" |
19555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19559 /^X\(\/\/\)[^/].*/{
19572 as_dir="$ac_dir"; as_fn_mkdir_p
19576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19579 # A ".." for each directory in $ac_dir_suffix.
19580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19581 case $ac_top_builddir_sub in
19582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19586 ac_abs_top_builddir=$ac_pwd
19587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19588 # for backward compatibility:
19589 ac_top_builddir=$ac_top_build_prefix
19592 .) # We are building in place.
19594 ac_top_srcdir=$ac_top_builddir_sub
19595 ac_abs_top_srcdir=$ac_pwd ;;
19596 [\\/]* | ?:[\\/]* ) # Absolute name.
19597 ac_srcdir=$srcdir$ac_dir_suffix;
19598 ac_top_srcdir=$srcdir
19599 ac_abs_top_srcdir=$srcdir ;;
19600 *) # Relative name.
19601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19602 ac_top_srcdir=$ac_top_build_prefix$srcdir
19603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19617 # If the template does not know about datarootdir, expand it.
19618 # FIXME: This hack should be removed a few years after 2.60.
19619 ac_datarootdir_hack=; ac_datarootdir_seen=
19630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19631 *datarootdir*) ac_datarootdir_seen=yes;;
19632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19637 ac_datarootdir_hack='
19638 s&@datadir@&$datadir&g
19639 s&@docdir@&$docdir&g
19640 s&@infodir@&$infodir&g
19641 s&@localedir@&$localedir&g
19642 s&@mandir@&$mandir&g
19643 s&\\\${datarootdir}&$datarootdir&g' ;;
19647 # Neutralize VPATH when `$srcdir' = `.'.
19648 # Shell code in configure.ac might set extrasub.
19649 # FIXME: do we really want to maintain this feature?
19650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19651 ac_sed_extra="$ac_vpsub
19654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19657 s|@configure_input@|$ac_sed_conf_input|;t t
19658 s&@top_builddir@&$ac_top_builddir_sub&;t t
19659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19660 s&@srcdir@&$ac_srcdir&;t t
19661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19662 s&@top_srcdir@&$ac_top_srcdir&;t t
19663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19664 s&@builddir@&$ac_builddir&;t t
19665 s&@abs_builddir@&$ac_abs_builddir&;t t
19666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19667 $ac_datarootdir_hack
19669 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19670 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19675 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19677 which seems to be undefined. Please make sure it is defined" >&5
19678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19679 which seems to be undefined. Please make sure it is defined" >&2;}
19681 rm -f "$ac_tmp/stdin"
19683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19692 if test x"$ac_file" != x-; then
19694 $as_echo "/* $configure_input */" \
19695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19696 } >"$ac_tmp/config.h" \
19697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19703 mv "$ac_tmp/config.h" "$ac_file" \
19704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19707 $as_echo "/* $configure_input */" \
19708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19709 || as_fn_error $? "could not create -" "$LINENO" 5
19713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19714 $as_echo "$as_me: executing $ac_file commands" >&6;}
19719 case $ac_file$ac_mode in
19722 # See if we are running on zsh, and set the options which allow our
19723 # commands through without removal of \ escapes.
19724 if test -n "${ZSH_VERSION+set}" ; then
19725 setopt NO_GLOB_SUBST
19728 cfgfile="${ofile}T"
19729 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19732 cat <<_LT_EOF >> "$cfgfile"
19735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19736 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19740 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19741 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19743 # Written by Gordon Matzigkeit, 1996
19745 # This file is part of GNU Libtool.
19747 # GNU Libtool is free software; you can redistribute it and/or
19748 # modify it under the terms of the GNU General Public License as
19749 # published by the Free Software Foundation; either version 2 of
19750 # the License, or (at your option) any later version.
19752 # As a special exception to the GNU General Public License,
19753 # if you distribute this file as part of a program or library that
19754 # is built using GNU Libtool, you may include this file under the
19755 # same distribution terms that you use for the rest of that program.
19757 # GNU Libtool is distributed in the hope that it will be useful,
19758 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19759 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19760 # GNU General Public License for more details.
19762 # You should have received a copy of the GNU General Public License
19763 # along with GNU Libtool; see the file COPYING. If not, a copy
19764 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19765 # obtained by writing to the Free Software Foundation, Inc.,
19766 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19769 # The names of the tagged configurations supported by this script.
19772 # ### BEGIN LIBTOOL CONFIG
19774 # Which release of libtool.m4 was used?
19775 macro_version=$macro_version
19776 macro_revision=$macro_revision
19778 # Whether or not to build shared libraries.
19779 build_libtool_libs=$enable_shared
19781 # Whether or not to build static libraries.
19782 build_old_libs=$enable_static
19784 # What type of objects to build.
19787 # Whether or not to optimize for fast installation.
19788 fast_install=$enable_fast_install
19790 # Shell to use when invoking shell scripts.
19793 # An echo program that protects backslashes.
19796 # The PATH separator for the build system.
19797 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19800 host_alias=$host_alias
19804 # The build system.
19805 build_alias=$build_alias
19809 # A sed program that does not truncate output.
19812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19813 Xsed="\$SED -e 1s/^X//"
19815 # A grep program that handles long lines.
19821 # A literal string matcher.
19824 # A BSD- or MS-compatible name lister.
19827 # Whether we need soft or hard links.
19830 # What is the maximum length of a command?
19831 max_cmd_len=$max_cmd_len
19833 # Object file suffix (normally "o").
19836 # Executable file suffix (normally "").
19839 # whether the shell understands "unset".
19842 # turn spaces into newlines.
19845 # turn newlines into spaces.
19848 # convert \$build file names to \$host format.
19849 to_host_file_cmd=$lt_cv_to_host_file_cmd
19851 # convert \$build files to toolchain format.
19852 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19854 # An object symbol dumper.
19855 OBJDUMP=$lt_OBJDUMP
19857 # Method to check whether dependent libraries are shared objects.
19858 deplibs_check_method=$lt_deplibs_check_method
19860 # Command to use when deplibs_check_method = "file_magic".
19861 file_magic_cmd=$lt_file_magic_cmd
19863 # How to find potential files when deplibs_check_method = "file_magic".
19864 file_magic_glob=$lt_file_magic_glob
19866 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19867 want_nocaseglob=$lt_want_nocaseglob
19869 # DLL creation program.
19870 DLLTOOL=$lt_DLLTOOL
19872 # Command to associate shared and link libraries.
19873 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19878 # Flags to create an archive.
19879 AR_FLAGS=$lt_AR_FLAGS
19881 # How to feed a file listing to the archiver.
19882 archiver_list_spec=$lt_archiver_list_spec
19884 # A symbol stripping program.
19887 # Commands used to install an old-style archive.
19889 old_postinstall_cmds=$lt_old_postinstall_cmds
19890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19892 # Whether to use a lock for old archive extraction.
19893 lock_old_archive_extraction=$lock_old_archive_extraction
19898 # LTCC compiler flags.
19899 LTCFLAGS=$lt_CFLAGS
19901 # Take the output of nm and produce a listing of raw symbols and C names.
19902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19904 # Transform the output of nm in a proper C declaration.
19905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19907 # Transform the output of nm in a C name address pair.
19908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19910 # Transform the output of nm in a C name address pair when lib prefix is needed.
19911 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19913 # Specify filename containing input files for \$NM.
19914 nm_file_list_spec=$lt_nm_file_list_spec
19916 # The root where to search for dependent libraries,and in which our libraries should be installed.
19917 lt_sysroot=$lt_sysroot
19919 # The name of the directory that contains temporary libtool files.
19922 # Used to examine libraries when file_magic_cmd begins with "file".
19923 MAGIC_CMD=$MAGIC_CMD
19925 # Must we lock files when doing compilation?
19926 need_locks=$lt_need_locks
19929 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19931 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19932 DSYMUTIL=$lt_DSYMUTIL
19934 # Tool to change global to local symbols on Mac OS X.
19937 # Tool to manipulate fat objects and archives on Mac OS X.
19940 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19943 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19944 OTOOL64=$lt_OTOOL64
19946 # Old archive suffix (normally "a").
19949 # Shared library suffix (normally ".so").
19950 shrext_cmds=$lt_shrext_cmds
19952 # The commands to extract the exported symbol list from a shared archive.
19953 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19955 # Variables whose values should be saved in libtool wrapper scripts and
19956 # restored at link time.
19957 variables_saved_for_relink=$lt_variables_saved_for_relink
19959 # Do we need the "lib" prefix for modules?
19960 need_lib_prefix=$need_lib_prefix
19962 # Do we need a version for libraries?
19963 need_version=$need_version
19965 # Library versioning type.
19966 version_type=$version_type
19968 # Shared library runtime path variable.
19969 runpath_var=$runpath_var
19971 # Shared library path variable.
19972 shlibpath_var=$shlibpath_var
19974 # Is shlibpath searched before the hard-coded library search path?
19975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19977 # Format of library name prefix.
19978 libname_spec=$lt_libname_spec
19980 # List of archive names. First name is the real one, the rest are links.
19981 # The last name is the one that the linker finds with -lNAME
19982 library_names_spec=$lt_library_names_spec
19984 # The coded name of the library, if different from the real name.
19985 soname_spec=$lt_soname_spec
19987 # Permission mode override for installation of shared libraries.
19988 install_override_mode=$lt_install_override_mode
19990 # Command to use after installation of a shared archive.
19991 postinstall_cmds=$lt_postinstall_cmds
19993 # Command to use after uninstallation of a shared archive.
19994 postuninstall_cmds=$lt_postuninstall_cmds
19996 # Commands used to finish a libtool library installation in a directory.
19997 finish_cmds=$lt_finish_cmds
19999 # As "finish_cmds", except a single script fragment to be evaled but
20001 finish_eval=$lt_finish_eval
20003 # Whether we should hardcode library paths into libraries.
20004 hardcode_into_libs=$hardcode_into_libs
20006 # Compile-time system search path for libraries.
20007 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20009 # Run-time system search path for libraries.
20010 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20012 # Whether dlopen is supported.
20013 dlopen_support=$enable_dlopen
20015 # Whether dlopen of programs is supported.
20016 dlopen_self=$enable_dlopen_self
20018 # Whether dlopen of statically linked programs is supported.
20019 dlopen_self_static=$enable_dlopen_self_static
20021 # Commands to strip libraries.
20022 old_striplib=$lt_old_striplib
20023 striplib=$lt_striplib
20026 # The linker used to build libraries.
20029 # How to create reloadable object files.
20030 reload_flag=$lt_reload_flag
20031 reload_cmds=$lt_reload_cmds
20033 # Commands used to build an old-style archive.
20034 old_archive_cmds=$lt_old_archive_cmds
20036 # A language specific compiler.
20039 # Is the compiler the GNU compiler?
20042 # Compiler flag to turn off builtin functions.
20043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20045 # Additional compiler flags for building library objects.
20046 pic_flag=$lt_lt_prog_compiler_pic
20048 # How to pass a linker flag through the compiler.
20049 wl=$lt_lt_prog_compiler_wl
20051 # Compiler flag to prevent dynamic linking.
20052 link_static_flag=$lt_lt_prog_compiler_static
20054 # Does compiler simultaneously support -c and -o options?
20055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20057 # Whether or not to add -lc for building shared libraries.
20058 build_libtool_need_lc=$archive_cmds_need_lc
20060 # Whether or not to disallow shared libs when runtime libs are static.
20061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20063 # Compiler flag to allow reflexive dlopens.
20064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20066 # Compiler flag to generate shared objects directly from archives.
20067 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20069 # Whether the compiler copes with passing no objects directly.
20070 compiler_needs_object=$lt_compiler_needs_object
20072 # Create an old-style archive from a shared archive.
20073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20075 # Create a temporary old-style archive to link instead of a shared archive.
20076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20078 # Commands used to build a shared archive.
20079 archive_cmds=$lt_archive_cmds
20080 archive_expsym_cmds=$lt_archive_expsym_cmds
20082 # Commands used to build a loadable module if different from building
20083 # a shared archive.
20084 module_cmds=$lt_module_cmds
20085 module_expsym_cmds=$lt_module_expsym_cmds
20087 # Whether we are building with GNU ld or not.
20088 with_gnu_ld=$lt_with_gnu_ld
20090 # Flag that allows shared libraries with undefined symbols to be built.
20091 allow_undefined_flag=$lt_allow_undefined_flag
20093 # Flag that enforces no undefined symbols.
20094 no_undefined_flag=$lt_no_undefined_flag
20096 # Flag to hardcode \$libdir into a binary during linking.
20097 # This must work even if \$libdir does not exist
20098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20100 # Whether we need a single "-rpath" flag with a separated argument.
20101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20104 # DIR into the resulting binary.
20105 hardcode_direct=$hardcode_direct
20107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20108 # DIR into the resulting binary and the resulting library dependency is
20109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20110 # library is relocated.
20111 hardcode_direct_absolute=$hardcode_direct_absolute
20113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20114 # into the resulting binary.
20115 hardcode_minus_L=$hardcode_minus_L
20117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20118 # into the resulting binary.
20119 hardcode_shlibpath_var=$hardcode_shlibpath_var
20121 # Set to "yes" if building a shared library automatically hardcodes DIR
20122 # into the library and all subsequent libraries and executables linked
20124 hardcode_automatic=$hardcode_automatic
20126 # Set to yes if linker adds runtime paths of dependent libraries
20127 # to runtime path list.
20128 inherit_rpath=$inherit_rpath
20130 # Whether libtool must link a program against all its dependency libraries.
20131 link_all_deplibs=$link_all_deplibs
20133 # Set to "yes" if exported symbols are required.
20134 always_export_symbols=$always_export_symbols
20136 # The commands to list exported symbols.
20137 export_symbols_cmds=$lt_export_symbols_cmds
20139 # Symbols that should not be listed in the preloaded symbols.
20140 exclude_expsyms=$lt_exclude_expsyms
20142 # Symbols that must always be exported.
20143 include_expsyms=$lt_include_expsyms
20145 # Commands necessary for linking programs (against libraries) with templates.
20146 prelink_cmds=$lt_prelink_cmds
20148 # Commands necessary for finishing linking programs.
20149 postlink_cmds=$lt_postlink_cmds
20151 # Specify filename containing input files.
20152 file_list_spec=$lt_file_list_spec
20154 # How to hardcode a shared library path into an executable.
20155 hardcode_action=$hardcode_action
20157 # ### END LIBTOOL CONFIG
20163 cat <<\_LT_EOF >> "$cfgfile"
20164 # AIX sometimes has problems with the GCC collect2 program. For some
20165 # reason, if we set the COLLECT_NAMES environment variable, the problems
20166 # vanish in a puff of smoke.
20167 if test "X${COLLECT_NAMES+set}" != Xset; then
20169 export COLLECT_NAMES
20176 ltmain="$ac_aux_dir/ltmain.sh"
20179 # We use sed instead of cat because bash on DJGPP gets confused if
20180 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20181 # text mode, it properly converts lines to CR/LF. This bash problem
20182 # is reportedly fixed, but why not run on old versions too?
20183 sed '$q' "$ltmain" >> "$cfgfile" \
20184 || (rm -f "$cfgfile"; exit 1)
20186 if test x"$xsi_shell" = xyes; then
20187 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20191 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20192 \ * ) func_dirname_result="${3}" ;;\
20194 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20195 && mv -f "$cfgfile.tmp" "$cfgfile" \
20196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20197 test 0 -eq $? || _lt_function_replace_fail=:
20200 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20203 \ func_basename_result="${1##*/}"\
20204 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20205 && mv -f "$cfgfile.tmp" "$cfgfile" \
20206 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20207 test 0 -eq $? || _lt_function_replace_fail=:
20210 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20211 func_dirname_and_basename ()\
20214 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20215 \ * ) func_dirname_result="${3}" ;;\
20217 \ func_basename_result="${1##*/}"\
20218 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20219 && mv -f "$cfgfile.tmp" "$cfgfile" \
20220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20221 test 0 -eq $? || _lt_function_replace_fail=:
20224 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20227 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20228 \ # positional parameters, so assign one to ordinary parameter first.\
20229 \ func_stripname_result=${3}\
20230 \ func_stripname_result=${func_stripname_result#"${1}"}\
20231 \ func_stripname_result=${func_stripname_result%"${2}"}\
20232 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20233 && mv -f "$cfgfile.tmp" "$cfgfile" \
20234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20235 test 0 -eq $? || _lt_function_replace_fail=:
20238 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20239 func_split_long_opt ()\
20241 \ func_split_long_opt_name=${1%%=*}\
20242 \ func_split_long_opt_arg=${1#*=}\
20243 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20244 && mv -f "$cfgfile.tmp" "$cfgfile" \
20245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20246 test 0 -eq $? || _lt_function_replace_fail=:
20249 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20250 func_split_short_opt ()\
20252 \ func_split_short_opt_arg=${1#??}\
20253 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20254 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20255 && mv -f "$cfgfile.tmp" "$cfgfile" \
20256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20257 test 0 -eq $? || _lt_function_replace_fail=:
20260 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20264 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20265 \ *) func_lo2o_result=${1} ;;\
20267 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20268 && mv -f "$cfgfile.tmp" "$cfgfile" \
20269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20270 test 0 -eq $? || _lt_function_replace_fail=:
20273 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20276 func_xform_result=${1%.*}.lo\
20277 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20278 && mv -f "$cfgfile.tmp" "$cfgfile" \
20279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20280 test 0 -eq $? || _lt_function_replace_fail=:
20283 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20286 func_arith_result=$(( $* ))\
20287 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20288 && mv -f "$cfgfile.tmp" "$cfgfile" \
20289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20290 test 0 -eq $? || _lt_function_replace_fail=:
20293 sed -e '/^func_len ()$/,/^} # func_len /c\
20296 func_len_result=${#1}\
20297 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20298 && mv -f "$cfgfile.tmp" "$cfgfile" \
20299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20300 test 0 -eq $? || _lt_function_replace_fail=:
20304 if test x"$lt_shell_append" = xyes; then
20305 sed -e '/^func_append ()$/,/^} # func_append /c\
20308 eval "${1}+=\\${2}"\
20309 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20310 && mv -f "$cfgfile.tmp" "$cfgfile" \
20311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20312 test 0 -eq $? || _lt_function_replace_fail=:
20315 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20316 func_append_quoted ()\
20318 \ func_quote_for_eval "${2}"\
20319 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20320 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20321 && mv -f "$cfgfile.tmp" "$cfgfile" \
20322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20323 test 0 -eq $? || _lt_function_replace_fail=:
20326 # Save a `func_append' function call where possible by direct use of '+='
20327 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20328 && mv -f "$cfgfile.tmp" "$cfgfile" \
20329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20330 test 0 -eq $? || _lt_function_replace_fail=:
20332 # Save a `func_append' function call even when '+=' is not available
20333 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20334 && mv -f "$cfgfile.tmp" "$cfgfile" \
20335 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20336 test 0 -eq $? || _lt_function_replace_fail=:
20339 if test x"$_lt_function_replace_fail" = x":"; then
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20341 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20345 mv -f "$cfgfile" "$ofile" ||
20346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20351 sed < libtool > libtool-2 \
20352 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
20353 mv libtool-2 libtool
20355 libtool="./libtool"
20364 ac_clean_files=$ac_clean_files_save
20366 test $ac_write_fail = 0 ||
20367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20370 # configure is writing to config.log, and then calls config.status.
20371 # config.status does its own redirection, appending to config.log.
20372 # Unfortunately, on DOS this fails, as config.log is still kept open
20373 # by configure, so config.status won't be able to write to it; its
20374 # output is simply discarded. So we exec the FD to /dev/null,
20375 # effectively closing config.log, so it can be properly (re)opened and
20376 # appended to by config.status. When coming back to configure, we
20377 # need to make the FD available again.
20378 if test "$no_create" != yes; then
20380 ac_config_status_args=
20381 test "$silent" = yes &&
20382 ac_config_status_args="$ac_config_status_args --quiet"
20384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20387 # would make configure fail if this is the last instruction.
20388 $ac_cs_success || as_fn_exit 1
20390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}