2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ldns 1.7.0.
5 # Report bugs to <libdns@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: libdns@nlnetlabs.nl about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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.
592 PACKAGE_TARNAME='libdns'
593 PACKAGE_VERSION='1.7.0'
594 PACKAGE_STRING='ldns 1.7.0'
595 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
598 ac_unique_file="packet.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='LTLIBOBJS
637 ldns_build_config_have_attr_unused
638 ldns_build_config_have_attr_format
639 ldns_build_config_have_ssl
642 LDNS_TRUST_ANCHOR_FILE
644 ldns_build_config_have_b32_pton
645 ldns_build_config_have_b32_ntop
647 ldns_build_config_have_socklen_t
652 ldns_build_config_have_inttypes_h
658 ldns_build_config_use_dane_ta_usage
659 ldns_build_config_use_dane_verify
660 ldns_build_config_use_dane
665 UNINSTALL_P5_DNS_LDNS
688 UNINSTALL_CONFIG_MANPAGE
690 INSTALL_CONFIG_MANPAGE
777 program_transform_name
790 enable_option_checking
819 enable_no_dane_ta_usage
820 enable_no_dane_verify
823 enable_rrtype_openpgpkey
831 ac_precious_vars='build_alias
844 # Initialize some variables set by options.
846 ac_init_version=false
847 ac_unrecognized_opts=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name=s,x,x,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error $? "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1382 \`configure' configures ldns 1.7.0 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of ldns 1.7.0:";;
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --disable-ldns-config disable installation of ldns-config
1462 --enable-stderr-msgs Enable printing to stderr (default=disabled)
1463 --enable-poll This platform supports poll(7)
1464 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1465 --disable-gost Disable GOST support
1466 --enable-gost-anyway Enable GOST even whithout a GOST engine installed
1467 --disable-ecdsa Disable ECDSA support
1468 --disable-dsa Disable DSA support
1469 --enable-ed25519 Enable ED25519 support (experimental)
1470 --enable-ed448 Enable ED448 support (experimental)
1471 --disable-dane Disable DANE support
1472 --disable-dane-verify Disable DANE verify support
1473 --disable-dane-ta-usage Disable DANE-TA usage type support
1475 --enable-rrtype-ninfo Enable draft RR type ninfo.
1476 --enable-rrtype-rkey Enable draft RR type rkey.
1477 --disable-rrtype-openpgpkey
1478 Disable openpgpkey RR type.
1479 --enable-rrtype-ta Enable draft RR type ta.
1480 --enable-rrtype-avc Enable draft RR type avc.
1481 --disable-rpath disable hardcoded rpath (default=enabled)
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494 --with-drill Also build drill.
1495 --with-examples Also build examples.
1496 --with-pyldns generate python library, or --without-pyldns to
1497 disable Python support.
1498 --without-pyldnsx Do not install the ldnsx python module, or
1499 --with-pyldnsx to install it.
1500 --with-p5-dns-ldns generate DNS::LDNS perl bindings
1501 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1502 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1504 --with-trust-anchor=KEYFILE
1505 Default location of the trust anchor file for drill
1506 and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1507 --with-ca-file=CAFILE File containing CA certificates for ldns-dane
1508 --with-ca-path=CAPATH Directory containing CA certificate files for
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1521 User-defined run-time library search path.
1523 The installed Python version to use, for example '2.3'. This
1524 string will be appended to the Python interpreter canonical
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1530 Report bugs to <libdns@nlnetlabs.nl>.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1593 ldns configure 1.7.0
1594 generated by GNU Autoconf 2.69
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } > conftest.i && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1687 ac_fn_c_check_header_mongrel ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if eval \${$3+:} false; then :
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1700 # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 ac_header_compiler=yes
1711 ac_header_compiler=no
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725 ac_header_preproc=yes
1727 ac_header_preproc=no
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1733 # So? What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 ( $as_echo "## ---------------------------------- ##
1753 ## Report this to libdns@nlnetlabs.nl ##
1754 ## ---------------------------------- ##"
1755 ) | sed "s/^/$as_me: WARNING: /" >&2
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 eval "$3=\$ac_header_compiler"
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 } # ac_fn_c_check_header_mongrel
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1832 if ac_fn_c_try_compile "$LINENO"; then :
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_header_compile
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_c_try_link
1892 # ac_fn_c_check_func LINENO FUNC VAR
1893 # ----------------------------------
1894 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1895 ac_fn_c_check_func ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907 #define $2 innocuous_$2
1909 /* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (); below.
1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912 <limits.h> exists even on freestanding compilers. */
1915 # include <limits.h>
1917 # include <assert.h>
1922 /* Override any GCC internal prototype to avoid an error.
1923 Use char because int might match the return type of a GCC
1924 builtin and then its argument prototype would still apply. */
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined __stub_$2 || defined __stub___$2
1944 if ac_fn_c_try_link "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext \
1950 conftest$ac_exeext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 } # ac_fn_c_check_func
1959 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960 # -------------------------------------------
1961 # Tests whether TYPE exists after having included INCLUDES, setting cache
1962 # variable VAR accordingly.
1963 ac_fn_c_check_type ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_type
2013 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2014 # ---------------------------------------------
2015 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2017 ac_fn_c_check_decl ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 as_decl_name=`echo $2|sed 's/ *(.*//'`
2021 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2023 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 #ifndef $as_decl_name
2035 (void) $as_decl_use;
2037 (void) $as_decl_name;
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_decl
2059 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2060 # --------------------------------------------
2061 # Tries to find the compile-time value of EXPR in a program that includes
2062 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 ac_fn_c_compute_int ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if test "$cross_compiling" = yes; then
2068 # Depending upon the size, compute the lo and hi bounds.
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) >= 0)];
2077 return test_array [0];
2083 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 return test_array [0];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=$ac_mid; break
2103 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2104 if test $ac_lo -le $ac_mid; then
2108 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2119 static int test_array [1 - 2 * !(($2) < 0)];
2121 return test_array [0];
2127 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_lo=$ac_mid; break
2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148 if test $ac_mid -le $ac_hi; then
2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2173 return test_array [0];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2194 static long int longval () { return $2; }
2195 static unsigned long int ulongval () { return $2; }
2202 FILE *f = fopen ("conftest.val", "w");
2207 long int i = longval ();
2210 fprintf (f, "%ld", i);
2214 unsigned long int i = ulongval ();
2217 fprintf (f, "%lu", i);
2219 /* Do not output a trailing newline, as this causes \r\n confusion
2220 on some platforms. */
2221 return ferror (f) || fclose (f) != 0;
2227 if ac_fn_c_try_run "$LINENO"; then :
2228 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233 conftest.$ac_objext conftest.beam conftest.$ac_ext
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_compute_int
2242 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2243 # ----------------------------------------------------
2244 # Tries to find if the field MEMBER exists in type AGGR, after including
2245 # INCLUDES, setting cache variable VAR accordingly.
2246 ac_fn_c_check_member ()
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2250 $as_echo_n "checking for $2.$3... " >&6; }
2251 if eval \${$4+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2267 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2277 if (sizeof ac_aggr.$3)
2283 if ac_fn_c_try_compile "$LINENO"; then :
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_member
2298 cat >config.log <<_ACEOF
2299 This file contains any messages produced by compilers while
2300 running configure, to aid debugging if configure makes a mistake.
2302 It was created by ldns $as_me 1.7.0, which was
2303 generated by GNU Autoconf 2.69. Invocation command line was
2315 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2316 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2317 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2318 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2319 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2321 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2322 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2324 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2325 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2326 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2327 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2328 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2329 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2330 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 $as_echo "PATH: $as_dir"
2355 # Keep a trace of the command line.
2356 # Strip out --no-create and --no-recursion so they do not pile up.
2357 # Strip out --silent because we don't want to record it for future runs.
2358 # Also quote any args containing shell meta-characters.
2359 # Make two passes to allow for proper duplicate-argument suppression.
2363 ac_must_keep_next=false
2369 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2371 | -silent | --silent | --silen | --sile | --sil)
2374 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2379 as_fn_append ac_configure_args1 " '$ac_arg'"
2380 if test $ac_must_keep_next = true; then
2381 ac_must_keep_next=false # Got value, back to normal.
2384 *=* | --config-cache | -C | -disable-* | --disable-* \
2385 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2386 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2387 | -with-* | --with-* | -without-* | --without-* | --x)
2388 case "$ac_configure_args0 " in
2389 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 -* ) ac_must_keep_next=true ;;
2395 as_fn_append ac_configure_args " '$ac_arg'"
2400 { ac_configure_args0=; unset ac_configure_args0;}
2401 { ac_configure_args1=; unset ac_configure_args1;}
2403 # When interrupted or exit'd, cleanup temporary files, and complete
2404 # config.log. We remove comments because anyway the quotes in there
2405 # would cause problems or look ugly.
2406 # WARNING: Use '\'' to represent an apostrophe within the trap.
2407 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2408 trap 'exit_status=$?
2409 # Save into config.log some information that might help in debugging.
2413 $as_echo "## ---------------- ##
2414 ## Cache variables. ##
2415 ## ---------------- ##"
2417 # The following way of writing the cache mishandles newlines in values,
2419 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2420 eval ac_val=\$$ac_var
2424 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2425 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 _ | IFS | as_nl) ;; #(
2429 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2430 *) { eval $ac_var=; unset $ac_var;} ;;
2435 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436 *${as_nl}ac_space=\ *)
2438 "s/'\''/'\''\\\\'\'''\''/g;
2439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 $as_echo "## ----------------- ##
2450 ## Output variables. ##
2451 ## ----------------- ##"
2453 for ac_var in $ac_subst_vars
2455 eval ac_val=\$$ac_var
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 $as_echo "$ac_var='\''$ac_val'\''"
2463 if test -n "$ac_subst_files"; then
2464 $as_echo "## ------------------- ##
2465 ## File substitutions. ##
2466 ## ------------------- ##"
2468 for ac_var in $ac_subst_files
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2479 if test -s confdefs.h; then
2480 $as_echo "## ----------- ##
2487 test "$ac_signal" != 0 &&
2488 $as_echo "$as_me: caught signal $ac_signal"
2489 $as_echo "$as_me: exit $exit_status"
2491 rm -f core *.core core.conftest.* &&
2492 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 for ac_signal in 1 2 13 15; do
2496 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2501 rm -f -r conftest* confdefs.h
2503 $as_echo "/* confdefs.h */" > confdefs.h
2505 # Predefined preprocessor variables.
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_NAME "$PACKAGE_NAME"
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_STRING "$PACKAGE_STRING"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_URL "$PACKAGE_URL"
2532 # Let the site file select an alternate cache file if it wants to.
2533 # Prefer an explicitly selected file to automatically selected ones.
2536 if test -n "$CONFIG_SITE"; then
2537 # We do not want a PATH search for config.site.
2538 case $CONFIG_SITE in #((
2539 -*) ac_site_file1=./$CONFIG_SITE;;
2540 */*) ac_site_file1=$CONFIG_SITE;;
2541 *) ac_site_file1=./$CONFIG_SITE;;
2543 elif test "x$prefix" != xNONE; then
2544 ac_site_file1=$prefix/share/config.site
2545 ac_site_file2=$prefix/etc/config.site
2547 ac_site_file1=$ac_default_prefix/share/config.site
2548 ac_site_file2=$ac_default_prefix/etc/config.site
2550 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2552 test "x$ac_site_file" = xNONE && continue
2553 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2555 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2556 sed 's/^/| /' "$ac_site_file" >&5
2558 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 as_fn_error $? "failed to load site script $ac_site_file
2561 See \`config.log' for more details" "$LINENO" 5; }
2565 if test -r "$cache_file"; then
2566 # Some versions of bash will fail to source /dev/null (special files
2567 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2568 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2570 $as_echo "$as_me: loading cache $cache_file" >&6;}
2572 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2573 *) . "./$cache_file";;
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2578 $as_echo "$as_me: creating cache $cache_file" >&6;}
2582 # Check that the precious variables saved in the cache have kept the same
2584 ac_cache_corrupted=false
2585 for ac_var in $ac_precious_vars; do
2586 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587 eval ac_new_set=\$ac_env_${ac_var}_set
2588 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589 eval ac_new_val=\$ac_env_${ac_var}_value
2590 case $ac_old_set,$ac_new_set in
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2593 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2594 ac_cache_corrupted=: ;;
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2597 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2598 ac_cache_corrupted=: ;;
2601 if test "x$ac_old_val" != "x$ac_new_val"; then
2602 # differences in whitespace do not lead to failure.
2603 ac_old_val_w=`echo x $ac_old_val`
2604 ac_new_val_w=`echo x $ac_new_val`
2605 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2607 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2608 ac_cache_corrupted=:
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2611 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2612 eval $ac_var=\$ac_old_val
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2615 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2617 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2620 # Pass precious variables to config.status.
2621 if test "$ac_new_set" = set; then
2623 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624 *) ac_arg=$ac_var=$ac_new_val ;;
2626 case " $ac_configure_args " in
2627 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2628 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632 if $ac_cache_corrupted; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2637 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639 ## -------------------- ##
2640 ## Main body of script. ##
2641 ## -------------------- ##
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 # needed to build correct soname
2652 LDNS_VERSION_MAJOR=1
2654 LDNS_VERSION_MINOR=7
2656 LDNS_VERSION_MICRO=0
2661 # current:revision:age
2662 # (binary-api-number):(which-binary-api-version):(how-many-nrs-backwardscompat)
2663 # if source code changes increment revision
2664 # if any interfaces have been added/removed/changed since last update then
2665 # increment current and set revision to 0
2666 # if any interfaces have been added since the last public release then increment age
2667 # if any interfaces have been removed or changed since the last public release then
2670 # ldns-1.6.17 and before had a .so with version same as VERSION_INFO
2671 # ldns-1.7.0 will have libversion 2:0:0
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_CC+:} false; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$ac_cv_prog_CC"; then
2722 # Extract the first word of "gcc", so it can be a program name with args.
2723 set dummy gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_ac_ct_CC="gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752 $as_echo "$ac_ct_CC" >&6; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2758 if test "x$ac_ct_CC" = x; then
2761 case $cross_compiling:$ac_tool_warned in
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2814 if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816 set dummy cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$CC" && break
2914 if test -z "$CC"; then
2916 for ac_prog in cl.exe
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 test -n "$ac_ct_CC" && break
2958 if test "x$ac_ct_CC" = x; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $? "no acceptable C compiler found in \$PATH
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 # Provide some information about the compiler.
2980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983 for ac_option in --version -v -V -qversion; do
2984 { { ac_try="$ac_compiler $ac_option >&5"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993 if test -s conftest.err; then
2995 ... rest of stderr output deleted ...
2996 10q' conftest.err >conftest.er1
2997 cat conftest.er1 >&5
2999 rm -f conftest.er1 conftest.err
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3015 ac_clean_files_save=$ac_clean_files
3016 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017 # Try to create an executable without -o first, disregard a.out.
3018 # It will help us diagnose broken compilers, and finding out an intuition
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024 # The possible output files:
3025 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028 for ac_file in $ac_files
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037 if { { ac_try="$ac_link_default"
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link_default") 2>&5
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3051 # so that the user can short-circuit this test for compilers unknown to
3053 for ac_file in $ac_files ''
3055 test -f "$ac_file" || continue
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3060 # We found the default executable, but exeext='' is most
3064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3078 test "$ac_cv_exeext" = no && ac_cv_exeext=
3083 if test -z "$ac_file"; then :
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error 77 "C compiler cannot create executables
3092 See \`config.log' for more details" "$LINENO" 5; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098 $as_echo_n "checking for C compiler default output file name... " >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100 $as_echo "$ac_file" >&6; }
3101 ac_exeext=$ac_cv_exeext
3103 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3104 ac_clean_files=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try="$ac_link"
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details" "$LINENO" 5; }
3137 rm -f conftest conftest$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3141 rm -f conftest.$ac_ext
3142 EXEEXT=$ac_cv_exeext
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3150 FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3157 ac_clean_files="$ac_clean_files conftest.out"
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161 $as_echo_n "checking whether we are cross compiling... " >&6; }
3162 if test "$cross_compiling" != yes; then
3163 { { ac_try="$ac_link"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 if { ac_try='./conftest$ac_cv_exeext'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3187 if test "$cross_compiling" = maybe; then
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details" "$LINENO" 5; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199 $as_echo "$cross_compiling" >&6; }
3201 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204 $as_echo_n "checking for suffix of object files... " >&6; }
3205 if ${ac_cv_objext+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 rm -f conftest.o conftest.obj
3220 if { { ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compile") 2>&5
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
3231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251 $as_echo "$ac_cv_objext" >&6; }
3252 OBJEXT=$ac_cv_objext
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256 if ${ac_cv_c_compiler_gnu+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3273 if ac_fn_c_try_compile "$LINENO"; then :
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284 if test $ac_compiler_gnu = yes; then
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3293 if ${ac_cv_prog_cc_g+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3326 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_c_werror_flag=$ac_save_c_werror_flag
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3342 if ac_fn_c_try_compile "$LINENO"; then :
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3363 if test "$GCC" = yes; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if ${ac_cv_prog_cc_c89+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 ac_cv_prog_cc_c89=no
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3381 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3382 struct buf { int x; };
3383 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3384 static char *e (p, i)
3390 static char *f (char * (*g) (char **, int), char **p, ...)
3395 s = g (p, va_arg (v,int));
3400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3401 function prototypes and stuff, but not '\xHH' hex character constants.
3402 These don't provoke an error unfortunately, instead are silently treated
3403 as 'x'. The following induces an error, until -std is added to get
3404 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3405 array size at least. It's necessary to write '\x00'==0 to get something
3406 that's true only with -std. */
3407 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3410 inside strings and character constants. */
3412 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3428 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3429 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3431 CC="$ac_save_CC $ac_arg"
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_prog_cc_c89=$ac_arg
3435 rm -f core conftest.err conftest.$ac_objext
3436 test "x$ac_cv_prog_cc_c89" != "xno" && break
3438 rm -f conftest.$ac_ext
3443 case "x$ac_cv_prog_cc_c89" in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3446 $as_echo "none needed" >&6; } ;;
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3449 $as_echo "unsupported" >&6; } ;;
3451 CC="$CC $ac_cv_prog_cc_c89"
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3453 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3455 if test "x$ac_cv_prog_cc_c89" != xno; then :
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3473 # On Suns, sometimes $CPP names a directory.
3474 if test -n "$CPP" && test -d "$CPP"; then
3477 if test -z "$CPP"; then
3478 if ${ac_cv_prog_CPP+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 # Double quotes because CPP needs to be expanded
3482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485 for ac_c_preproc_warn_flag in '' yes
3487 # Use a header file that comes with gcc, so configuring glibc
3488 # with a fresh cross-compiler works.
3489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490 # <limits.h> exists even on freestanding compilers.
3491 # On the NeXT, cc -E runs the code through the compiler's parser,
3492 # not just through cpp. "Syntax error" is here to catch this case.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3505 # Broken: fails on valid input.
3508 rm -f conftest.err conftest.i conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: success on invalid input.
3520 # Passes both tests.
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.i conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then :
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542 $as_echo "$CPP" >&6; }
3544 for ac_c_preproc_warn_flag in '' yes
3546 # Use a header file that comes with gcc, so configuring glibc
3547 # with a fresh cross-compiler works.
3548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549 # <limits.h> exists even on freestanding compilers.
3550 # On the NeXT, cc -E runs the code through the compiler's parser,
3551 # not just through cpp. "Syntax error" is here to catch this case.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3555 # include <limits.h>
3557 # include <assert.h>
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3564 # Broken: fails on valid input.
3567 rm -f conftest.err conftest.i conftest.$ac_ext
3569 # OK, works on sane cases. Now check whether nonexistent headers
3570 # can be detected and how.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3576 # Broken: success on invalid input.
3579 # Passes both tests.
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.i conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then :
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details" "$LINENO" 5; }
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606 if ${ac_cv_path_GREP+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -z "$GREP"; then
3610 ac_path_GREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in grep ggrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620 as_fn_executable_p "$ac_path_GREP" || continue
3621 # Check for GNU ac_path_GREP and select it if it is found.
3622 # Check for GNU $ac_path_GREP
3623 case `"$ac_path_GREP" --version 2>&1` in
3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3628 $as_echo_n 0123456789 >"conftest.in"
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'GREP' >> "conftest.nl"
3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_GREP="$ac_path_GREP"
3641 ac_path_GREP_max=$ac_count
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 $ac_path_GREP_found && break 3
3654 if test -z "$ac_cv_path_GREP"; then
3655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658 ac_cv_path_GREP=$GREP
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663 $as_echo "$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668 $as_echo_n "checking for egrep... " >&6; }
3669 if ${ac_cv_path_EGREP+:} false; then :
3670 $as_echo_n "(cached) " >&6
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3675 if test -z "$EGREP"; then
3676 ac_path_EGREP_found=false
3677 # Loop through the user's path and test for each of PROGNAME-LIST
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682 test -z "$as_dir" && as_dir=.
3683 for ac_prog in egrep; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686 as_fn_executable_p "$ac_path_EGREP" || continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688 # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3694 $as_echo_n 0123456789 >"conftest.in"
3697 cat "conftest.in" "conftest.in" >"conftest.tmp"
3698 mv "conftest.tmp" "conftest.in"
3699 cp "conftest.in" "conftest.nl"
3700 $as_echo 'EGREP' >> "conftest.nl"
3701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703 as_fn_arith $ac_count + 1 && ac_count=$as_val
3704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705 # Best one so far, save it but keep looking for a better one
3706 ac_cv_path_EGREP="$ac_path_EGREP"
3707 ac_path_EGREP_max=$ac_count
3709 # 10*(2^10) chars as input seems more than enough
3710 test $ac_count -gt 10 && break
3712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715 $ac_path_EGREP_found && break 3
3720 if test -z "$ac_cv_path_EGREP"; then
3721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724 ac_cv_path_EGREP=$EGREP
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730 $as_echo "$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735 $as_echo_n "checking for ANSI C header files... " >&6; }
3736 if ${ac_cv_header_stdc+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_header_stdc=yes
3757 ac_cv_header_stdc=no
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 if test $ac_cv_header_stdc = yes; then
3762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769 $EGREP "memchr" >/dev/null 2>&1; then :
3772 ac_cv_header_stdc=no
3778 if test $ac_cv_header_stdc = yes; then
3779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786 $EGREP "free" >/dev/null 2>&1; then :
3789 ac_cv_header_stdc=no
3795 if test $ac_cv_header_stdc = yes; then
3796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797 if test "$cross_compiling" = yes; then :
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 #if ((' ' & 0x0FF) == 0x020)
3805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3808 # define ISLOWER(c) \
3809 (('a' <= (c) && (c) <= 'i') \
3810 || ('j' <= (c) && (c) <= 'r') \
3811 || ('s' <= (c) && (c) <= 'z'))
3812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3820 for (i = 0; i < 256; i++)
3821 if (XOR (islower (i), ISLOWER (i))
3822 || toupper (i) != TOUPPER (i))
3827 if ac_fn_c_try_run "$LINENO"; then :
3830 ac_cv_header_stdc=no
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833 conftest.$ac_objext conftest.beam conftest.$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839 $as_echo "$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854 cat >>confdefs.h <<_ACEOF
3855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3872 if test "$MINIX" = yes; then
3874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3880 $as_echo "#define _MINIX 1" >>confdefs.h
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3893 # define __EXTENSIONS__ 1
3894 $ac_includes_default
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_safe_to_define___extensions__=yes
3906 ac_cv_safe_to_define___extensions__=no
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912 test $ac_cv_safe_to_define___extensions__ = yes &&
3913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3925 if test "$ac_cv_header_minix_config_h" = "yes"; then
3927 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3932 if test -f "$ac_dir/install-sh"; then
3934 ac_install_sh="$ac_aux_dir/install-sh -c"
3936 elif test -f "$ac_dir/install.sh"; then
3938 ac_install_sh="$ac_aux_dir/install.sh -c"
3940 elif test -f "$ac_dir/shtool"; then
3942 ac_install_sh="$ac_aux_dir/shtool install -c"
3946 if test -z "$ac_aux_dir"; then
3947 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3950 # These three variables are undocumented and unsupported,
3951 # and are intended to be withdrawn in a future Autoconf release.
3952 # They can cause serious problems if a builder's source tree is in a directory
3953 # whose full name contains unusual characters.
3954 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3955 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3956 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3962 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3967 macro_version='2.4.6'
3968 macro_revision='2.4.6'
3982 ltmain=$ac_aux_dir/ltmain.sh
3984 # Make sure we can run config.sub.
3985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3986 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3989 $as_echo_n "checking build system type... " >&6; }
3990 if ${ac_cv_build+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_build_alias=$build_alias
3994 test "x$ac_build_alias" = x &&
3995 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3996 test "x$ac_build_alias" = x &&
3997 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3999 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4003 $as_echo "$ac_cv_build" >&6; }
4004 case $ac_cv_build in
4006 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4009 ac_save_IFS=$IFS; IFS='-'
4015 # Remember, the first character of IFS is used to create $*,
4016 # except with old shells:
4019 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4023 $as_echo_n "checking host system type... " >&6; }
4024 if ${ac_cv_host+:} false; then :
4025 $as_echo_n "(cached) " >&6
4027 if test "x$host_alias" = x; then
4028 ac_cv_host=$ac_cv_build
4030 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4031 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4036 $as_echo "$ac_cv_host" >&6; }
4039 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4042 ac_save_IFS=$IFS; IFS='-'
4048 # Remember, the first character of IFS is used to create $*,
4049 # except with old shells:
4052 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4055 # Backslashify metacharacters that are still active within
4056 # double-quoted strings.
4057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4059 # Same as above, but do not quote variable references.
4060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4062 # Sed substitution to delay expansion of an escaped shell variable in a
4063 # double_quote_subst'ed string.
4064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4066 # Sed substitution to delay expansion of an escaped single quote.
4067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4069 # Sed substitution to avoid accidental globbing in evaled expressions
4070 no_glob_subst='s/\*/\\\*/g'
4072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4077 $as_echo_n "checking how to print strings... " >&6; }
4078 # Test print first, because it will be a builtin if present.
4079 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4085 # Use this function as a fallback that always works.
4086 func_fallback_echo ()
4088 eval 'cat <<_LTECHO_EOF
4092 ECHO='func_fallback_echo'
4095 # func_echo_all arg...
4096 # Invoke $ECHO with all args, space-separated.
4103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4104 $as_echo "printf" >&6; } ;;
4105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4106 $as_echo "print -r" >&6; } ;;
4107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4108 $as_echo "cat" >&6; } ;;
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126 if ${ac_cv_path_SED+:} false; then :
4127 $as_echo_n "(cached) " >&6
4129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4130 for ac_i in 1 2 3 4 5 6 7; do
4131 ac_script="$ac_script$as_nl$ac_script"
4133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4134 { ac_script=; unset ac_script;}
4135 if test -z "$SED"; then
4136 ac_path_SED_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in sed gsed; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4146 as_fn_executable_p "$ac_path_SED" || continue
4147 # Check for GNU ac_path_SED and select it if it is found.
4148 # Check for GNU $ac_path_SED
4149 case `"$ac_path_SED" --version 2>&1` in
4151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4154 $as_echo_n 0123456789 >"conftest.in"
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 $as_echo '' >> "conftest.nl"
4161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 if test $ac_count -gt ${ac_path_SED_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_SED="$ac_path_SED"
4167 ac_path_SED_max=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175 $ac_path_SED_found && break 3
4180 if test -z "$ac_cv_path_SED"; then
4181 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4189 $as_echo "$ac_cv_path_SED" >&6; }
4190 SED="$ac_cv_path_SED"
4193 test -z "$SED" && SED=sed
4194 Xsed="$SED -e 1s/^X//"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4207 $as_echo_n "checking for fgrep... " >&6; }
4208 if ${ac_cv_path_FGREP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4212 then ac_cv_path_FGREP="$GREP -F"
4214 if test -z "$FGREP"; then
4215 ac_path_FGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in fgrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 as_fn_executable_p "$ac_path_FGREP" || continue
4226 # Check for GNU ac_path_FGREP and select it if it is found.
4227 # Check for GNU $ac_path_FGREP
4228 case `"$ac_path_FGREP" --version 2>&1` in
4230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4233 $as_echo_n 0123456789 >"conftest.in"
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'FGREP' >> "conftest.nl"
4240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_FGREP="$ac_path_FGREP"
4246 ac_path_FGREP_max=$ac_count
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 $ac_path_FGREP_found && break 3
4259 if test -z "$ac_cv_path_FGREP"; then
4260 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263 ac_cv_path_FGREP=$FGREP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4269 $as_echo "$ac_cv_path_FGREP" >&6; }
4270 FGREP="$ac_cv_path_FGREP"
4273 test -z "$GREP" && GREP=grep
4293 # Check whether --with-gnu-ld was given.
4294 if test "${with_gnu_ld+set}" = set; then :
4295 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4301 if test yes = "$GCC"; then
4302 # Check if gcc -print-prog-name=ld gives a path.
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4304 $as_echo_n "checking for ld used by $CC... " >&6; }
4307 # gcc leaves a trailing carriage return, which upsets mingw
4308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4313 # Accept absolute paths.
4315 re_direlt='/[^/][^/]*/\.\./'
4316 # Canonicalize the pathname of ld
4317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4321 test -z "$LD" && LD=$ac_prog
4324 # If it fails, then pretend we aren't using GCC.
4328 # If it is relative, then search for the first ld in PATH.
4332 elif test yes = "$with_gnu_ld"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4334 $as_echo_n "checking for GNU ld... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4337 $as_echo_n "checking for non-GNU ld... " >&6; }
4339 if ${lt_cv_path_LD+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -z "$LD"; then
4343 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4344 for ac_dir in $PATH; do
4346 test -z "$ac_dir" && ac_dir=.
4347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4348 lt_cv_path_LD=$ac_dir/$ac_prog
4349 # Check to see if the program is GNU ld. I'd rather use --version,
4350 # but apparently some variants of GNU ld only accept -v.
4351 # Break only if it was the GNU/non-GNU ld that we prefer.
4352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4353 *GNU* | *'with BFD'*)
4354 test no != "$with_gnu_ld" && break
4357 test yes != "$with_gnu_ld" && break
4364 lt_cv_path_LD=$LD # Let the user override the test with a path.
4369 if test -n "$LD"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4371 $as_echo "$LD" >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4376 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4379 if ${lt_cv_prog_gnu_ld+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4383 case `$LD -v 2>&1 </dev/null` in
4384 *GNU* | *'with BFD'*)
4385 lt_cv_prog_gnu_ld=yes
4388 lt_cv_prog_gnu_ld=no
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4394 with_gnu_ld=$lt_cv_prog_gnu_ld
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4406 if ${lt_cv_path_NM+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$NM"; then
4410 # Let the user override the test.
4413 lt_nm_to_check=${ac_tool_prefix}nm
4414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4415 lt_nm_to_check="$lt_nm_to_check nm"
4417 for lt_tmp_nm in $lt_nm_to_check; do
4418 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4421 test -z "$ac_dir" && ac_dir=.
4422 tmp_nm=$ac_dir/$lt_tmp_nm
4423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4424 # Check to see if the nm accepts a BSD-compat flag.
4425 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4426 # nm: unknown option "B" ignored
4427 # Tru64's nm complains that /dev/null is an invalid object file
4428 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4430 mingw*) lt_bad_file=conftest.nm/nofile ;;
4431 *) lt_bad_file=/dev/null ;;
4433 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4434 *$lt_bad_file* | *'Invalid file or object type'*)
4435 lt_cv_path_NM="$tmp_nm -B"
4439 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4441 lt_cv_path_NM="$tmp_nm -p"
4445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4446 continue # so that we can try to find one that supports BSD flags
4455 : ${lt_cv_path_NM=no}
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4459 $as_echo "$lt_cv_path_NM" >&6; }
4460 if test no != "$lt_cv_path_NM"; then
4463 # Didn't find any BSD compatible name lister, look for dumpbin.
4464 if test -n "$DUMPBIN"; then :
4465 # Let the user override the test.
4467 if test -n "$ac_tool_prefix"; then
4468 for ac_prog in dumpbin "link -dump"
4470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_DUMPBIN+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 if test -n "$DUMPBIN"; then
4478 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 DUMPBIN=$ac_cv_prog_DUMPBIN
4498 if test -n "$DUMPBIN"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4500 $as_echo "$DUMPBIN" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4507 test -n "$DUMPBIN" && break
4510 if test -z "$DUMPBIN"; then
4511 ac_ct_DUMPBIN=$DUMPBIN
4512 for ac_prog in dumpbin "link -dump"
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4519 $as_echo_n "(cached) " >&6
4521 if test -n "$ac_ct_DUMPBIN"; then
4522 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4542 if test -n "$ac_ct_DUMPBIN"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4544 $as_echo "$ac_ct_DUMPBIN" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$ac_ct_DUMPBIN" && break
4554 if test "x$ac_ct_DUMPBIN" = x; then
4557 case $cross_compiling:$ac_tool_warned in
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4563 DUMPBIN=$ac_ct_DUMPBIN
4567 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4569 DUMPBIN="$DUMPBIN -symbols -headers"
4577 if test : != "$DUMPBIN"; then
4581 test -z "$NM" && NM=nm
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4589 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4590 if ${lt_cv_nm_interface+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 lt_cv_nm_interface="BSD nm"
4594 echo "int some_variable = 0;" > conftest.$ac_ext
4595 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4596 (eval "$ac_compile" 2>conftest.err)
4597 cat conftest.err >&5
4598 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4599 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4600 cat conftest.err >&5
4601 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4602 cat conftest.out >&5
4603 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4604 lt_cv_nm_interface="MS dumpbin"
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4609 $as_echo "$lt_cv_nm_interface" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4612 $as_echo_n "checking whether ln -s works... " >&6; }
4614 if test "$LN_S" = "ln -s"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4619 $as_echo "no, using $LN_S" >&6; }
4622 # find the maximum length of command line arguments
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4624 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4625 if ${lt_cv_sys_max_cmd_len+:} false; then :
4626 $as_echo_n "(cached) " >&6
4633 # On DJGPP, this test can blow up pretty badly due to problems in libc
4634 # (any single argument exceeding 2000 bytes causes a buffer overrun
4635 # during glob expansion). Even if it were fixed, the result of this
4636 # check would be larger than it should be.
4637 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4641 # Under GNU Hurd, this test is not required because there is
4642 # no limit to the length of command line arguments.
4643 # Libtool will interpret -1 as no limit whatsoever
4644 lt_cv_sys_max_cmd_len=-1;
4647 cygwin* | mingw* | cegcc*)
4648 # On Win9x/ME, this test blows up -- it succeeds, but takes
4649 # about 5 minutes as the teststring grows exponentially.
4650 # Worse, since 9x/ME are not pre-emptively multitasking,
4651 # you end up with a "frozen" computer, even though with patience
4652 # the test eventually succeeds (with a max line length of 256k).
4653 # Instead, let's just punt: use the minimum linelength reported by
4654 # all of the supported platforms: 8192 (on NT/2K/XP).
4655 lt_cv_sys_max_cmd_len=8192;
4659 # On MiNT this can take a long time and run out of memory.
4660 lt_cv_sys_max_cmd_len=8192;
4664 # On AmigaOS with pdksh, this test takes hours, literally.
4665 # So we just punt and use a minimum line length of 8192.
4666 lt_cv_sys_max_cmd_len=8192;
4669 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4670 # This has been around since 386BSD, at least. Likely further.
4671 if test -x /sbin/sysctl; then
4672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4673 elif test -x /usr/sbin/sysctl; then
4674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4678 # And add a safety zone
4679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4684 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4685 lt_cv_sys_max_cmd_len=196608
4689 # The test takes a long time on OS/2.
4690 lt_cv_sys_max_cmd_len=8192
4694 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4695 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4696 # nice to cause kernel panics so lets avoid the loop below.
4697 # First set a reasonable default.
4698 lt_cv_sys_max_cmd_len=16384
4700 if test -x /sbin/sysconfig; then
4701 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4702 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4707 lt_cv_sys_max_cmd_len=102400
4709 sysv5* | sco5v6* | sysv4.2uw2*)
4710 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4711 if test -n "$kargmax"; then
4712 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4714 lt_cv_sys_max_cmd_len=32768
4718 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4719 if test -n "$lt_cv_sys_max_cmd_len" && \
4720 test undefined != "$lt_cv_sys_max_cmd_len"; then
4721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4724 # Make teststring a little bigger before we do anything with it.
4725 # a 1K string should be a reasonable start.
4726 for i in 1 2 3 4 5 6 7 8; do
4727 teststring=$teststring$teststring
4729 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4730 # If test is not a shell built-in, we'll probably end up computing a
4731 # maximum length that is only half of the actual maximum length, but
4733 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4734 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4735 test 17 != "$i" # 1/2 MB should be enough
4738 teststring=$teststring$teststring
4740 # Only check the string length outside the loop.
4741 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4743 # Add a significant safety factor because C++ compilers can tack on
4744 # massive amounts of additional arguments before passing them to the
4745 # linker. It appears as though 1/2 is a usable value.
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4753 if test -n "$lt_cv_sys_max_cmd_len"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4755 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4758 $as_echo "none" >&6; }
4760 max_cmd_len=$lt_cv_sys_max_cmd_len
4771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4781 # test EBCDIC or ASCII
4782 case `echo X|tr X '\101'` in
4783 A) # ASCII based system
4784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4785 lt_SP2NL='tr \040 \012'
4786 lt_NL2SP='tr \015\012 \040\040'
4788 *) # EBCDIC based system
4789 lt_SP2NL='tr \100 \n'
4790 lt_NL2SP='tr \r\n \100\100'
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4803 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4804 if ${lt_cv_to_host_file_cmd+:} false; then :
4805 $as_echo_n "(cached) " >&6
4810 *-*-mingw* ) # actually msys
4811 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4814 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4816 * ) # otherwise, assume *nix
4817 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4823 *-*-mingw* ) # actually msys
4824 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4827 lt_cv_to_host_file_cmd=func_convert_file_noop
4829 * ) # otherwise, assume *nix
4830 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4834 * ) # unhandled hosts (and "normal" native builds)
4835 lt_cv_to_host_file_cmd=func_convert_file_noop
4841 to_host_file_cmd=$lt_cv_to_host_file_cmd
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4843 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4850 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4851 if ${lt_cv_to_tool_file_cmd+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 #assume ordinary cross tools, or native build.
4855 lt_cv_to_tool_file_cmd=func_convert_file_noop
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4868 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4870 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4877 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4878 if ${lt_cv_ld_reload_flag+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 lt_cv_ld_reload_flag='-r'
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4884 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4885 reload_flag=$lt_cv_ld_reload_flag
4886 case $reload_flag in
4888 *) reload_flag=" $reload_flag" ;;
4890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4892 cygwin* | mingw* | pw32* | cegcc*)
4893 if test yes != "$GCC"; then
4898 if test yes = "$GCC"; then
4899 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914 if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_OBJDUMP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -n "$OBJDUMP"; then
4923 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 OBJDUMP=$ac_cv_prog_OBJDUMP
4943 if test -n "$OBJDUMP"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4945 $as_echo "$OBJDUMP" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4953 if test -z "$ac_cv_prog_OBJDUMP"; then
4954 ac_ct_OBJDUMP=$OBJDUMP
4955 # Extract the first word of "objdump", so it can be a program name with args.
4956 set dummy objdump; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$ac_ct_OBJDUMP"; then
4963 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4983 if test -n "$ac_ct_OBJDUMP"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4985 $as_echo "$ac_ct_OBJDUMP" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4991 if test "x$ac_ct_OBJDUMP" = x; then
4994 case $cross_compiling:$ac_tool_warned in
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
5000 OBJDUMP=$ac_ct_OBJDUMP
5003 OBJDUMP="$ac_cv_prog_OBJDUMP"
5006 test -z "$OBJDUMP" && OBJDUMP=objdump
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5017 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5018 if ${lt_cv_deplibs_check_method+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 lt_cv_file_magic_cmd='$MAGIC_CMD'
5022 lt_cv_file_magic_test_file=
5023 lt_cv_deplibs_check_method='unknown'
5024 # Need to set the preceding variable on all platforms that support
5025 # interlibrary dependencies.
5026 # 'none' -- dependencies not supported.
5027 # 'unknown' -- same as none, but documents that we really don't know.
5028 # 'pass_all' -- all dependencies passed with no checks.
5029 # 'test_compile' -- check by making test program.
5030 # 'file_magic [[regex]]' -- check by looking for files in library path
5031 # that responds to the $file_magic_cmd with a given extended regex.
5032 # If you have 'file' or equivalent on your system and you're not sure
5033 # whether 'pass_all' will *always* work, you probably want this one.
5037 lt_cv_deplibs_check_method=pass_all
5041 lt_cv_deplibs_check_method=pass_all
5045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5046 lt_cv_file_magic_cmd='/usr/bin/file -L'
5047 lt_cv_file_magic_test_file=/shlib/libc.so
5051 # func_win32_libid is a shell function defined in ltmain.sh
5052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5053 lt_cv_file_magic_cmd='func_win32_libid'
5057 # Base MSYS/MinGW do not provide the 'file' command needed by
5058 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5059 # unless we find 'file', for example because we are cross-compiling.
5060 if ( file / ) >/dev/null 2>&1; then
5061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5062 lt_cv_file_magic_cmd='func_win32_libid'
5064 # Keep this pattern in sync with the one in func_win32_libid.
5065 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5066 lt_cv_file_magic_cmd='$OBJDUMP -f'
5071 # use the weaker test based on 'objdump'. See mingw*.
5072 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5073 lt_cv_file_magic_cmd='$OBJDUMP -f'
5076 darwin* | rhapsody*)
5077 lt_cv_deplibs_check_method=pass_all
5080 freebsd* | dragonfly*)
5081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5084 # Not sure whether the presence of OpenBSD here was a mistake.
5085 # Let's accept both of them until this is cleared up.
5086 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5087 lt_cv_file_magic_cmd=/usr/bin/file
5088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5092 lt_cv_deplibs_check_method=pass_all
5097 lt_cv_deplibs_check_method=pass_all
5100 hpux10.20* | hpux11*)
5101 lt_cv_file_magic_cmd=/usr/bin/file
5104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5105 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5108 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]'
5109 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5113 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5119 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5123 irix5* | irix6* | nonstopux*)
5125 *-32|*"-32 ") libmagic=32-bit;;
5126 *-n32|*"-n32 ") libmagic=N32;;
5127 *-64|*"-64 ") libmagic=64-bit;;
5128 *) libmagic=never-match;;
5130 lt_cv_deplibs_check_method=pass_all
5133 # This must be glibc/ELF.
5134 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5135 lt_cv_deplibs_check_method=pass_all
5138 netbsd* | netbsdelf*-gnu)
5139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5148 lt_cv_file_magic_cmd=/usr/bin/file
5149 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5153 lt_cv_deplibs_check_method=pass_all
5157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5164 osf3* | osf4* | osf5*)
5165 lt_cv_deplibs_check_method=pass_all
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method=pass_all
5176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5177 lt_cv_deplibs_check_method=pass_all
5181 case $host_vendor in
5183 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]'
5184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5187 lt_cv_deplibs_check_method=pass_all
5190 lt_cv_file_magic_cmd='/bin/file'
5191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5194 lt_cv_file_magic_cmd='/bin/file'
5195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5196 lt_cv_file_magic_test_file=/lib/libc.so
5199 lt_cv_deplibs_check_method=pass_all
5202 lt_cv_deplibs_check_method=pass_all
5208 lt_cv_deplibs_check_method=pass_all
5211 lt_cv_deplibs_check_method=pass_all
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5217 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5221 if test "$build" = "$host"; then
5224 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5227 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5233 file_magic_cmd=$lt_cv_file_magic_cmd
5234 deplibs_check_method=$lt_cv_deplibs_check_method
5235 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5258 if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5260 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_DLLTOOL+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 if test -n "$DLLTOOL"; then
5267 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 DLLTOOL=$ac_cv_prog_DLLTOOL
5287 if test -n "$DLLTOOL"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5289 $as_echo "$DLLTOOL" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5297 if test -z "$ac_cv_prog_DLLTOOL"; then
5298 ac_ct_DLLTOOL=$DLLTOOL
5299 # Extract the first word of "dlltool", so it can be a program name with args.
5300 set dummy dlltool; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5304 $as_echo_n "(cached) " >&6
5306 if test -n "$ac_ct_DLLTOOL"; then
5307 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5327 if test -n "$ac_ct_DLLTOOL"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5329 $as_echo "$ac_ct_DLLTOOL" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5335 if test "x$ac_ct_DLLTOOL" = x; then
5338 case $cross_compiling:$ac_tool_warned in
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5344 DLLTOOL=$ac_ct_DLLTOOL
5347 DLLTOOL="$ac_cv_prog_DLLTOOL"
5350 test -z "$DLLTOOL" && DLLTOOL=dlltool
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5362 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5363 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5364 $as_echo_n "(cached) " >&6
5366 lt_cv_sharedlib_from_linklib_cmd='unknown'
5369 cygwin* | mingw* | pw32* | cegcc*)
5370 # two different shell functions defined in ltmain.sh;
5371 # decide which one to use based on capabilities of $DLLTOOL
5372 case `$DLLTOOL --help 2>&1` in
5373 *--identify-strict*)
5374 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5377 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5382 # fallback: assume linklib IS sharedlib
5383 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5389 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5390 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5391 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5399 if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_AR+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$AR"; then
5410 ac_cv_prog_AR="$AR" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 if test -n "$AR"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5432 $as_echo "$AR" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 test -n "$AR" && break
5442 if test -z "$AR"; then
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$ac_ct_AR"; then
5454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_AR="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5474 if test -n "$ac_ct_AR"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5476 $as_echo "$ac_ct_AR" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$ac_ct_AR" && break
5486 if test "x$ac_ct_AR" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5513 $as_echo_n "checking for archiver @FILE support... " >&6; }
5514 if ${lt_cv_ar_at_file+:} false; then :
5515 $as_echo_n "(cached) " >&6
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 echo conftest.$ac_objext > conftest.lst
5531 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5533 (eval $lt_ar_try) 2>&5
5535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }
5537 if test 0 -eq "$ac_status"; then
5538 # Ensure the archiver fails upon bogus file names.
5539 rm -f conftest.$ac_objext libconftest.a
5540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5541 (eval $lt_ar_try) 2>&5
5543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5544 test $ac_status = 0; }
5545 if test 0 -ne "$ac_status"; then
5549 rm -f conftest.* libconftest.a
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5556 $as_echo "$lt_cv_ar_at_file" >&6; }
5558 if test no = "$lt_cv_ar_at_file"; then
5561 archiver_list_spec=$lt_cv_ar_at_file
5570 if test -n "$ac_tool_prefix"; then
5571 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5572 set dummy ${ac_tool_prefix}strip; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_STRIP+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$STRIP"; then
5579 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 STRIP=$ac_cv_prog_STRIP
5599 if test -n "$STRIP"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5601 $as_echo "$STRIP" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test -z "$ac_cv_prog_STRIP"; then
5611 # Extract the first word of "strip", so it can be a program name with args.
5612 set dummy strip; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$ac_ct_STRIP"; then
5619 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_ac_ct_STRIP="strip"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5639 if test -n "$ac_ct_STRIP"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5641 $as_echo "$ac_ct_STRIP" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5647 if test "x$ac_ct_STRIP" = x; then
5650 case $cross_compiling:$ac_tool_warned in
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5659 STRIP="$ac_cv_prog_STRIP"
5662 test -z "$STRIP" && STRIP=:
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_prog_RANLIB+:} false; then :
5675 $as_echo_n "(cached) " >&6
5677 if test -n "$RANLIB"; then
5678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 RANLIB=$ac_cv_prog_RANLIB
5698 if test -n "$RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5700 $as_echo "$RANLIB" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5708 if test -z "$ac_cv_prog_RANLIB"; then
5709 ac_ct_RANLIB=$RANLIB
5710 # Extract the first word of "ranlib", so it can be a program name with args.
5711 set dummy ranlib; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5715 $as_echo_n "(cached) " >&6
5717 if test -n "$ac_ct_RANLIB"; then
5718 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_RANLIB="ranlib"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5738 if test -n "$ac_ct_RANLIB"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5740 $as_echo "$ac_ct_RANLIB" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5746 if test "x$ac_ct_RANLIB" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753 ac_tool_warned=yes ;;
5755 RANLIB=$ac_ct_RANLIB
5758 RANLIB="$ac_cv_prog_RANLIB"
5761 test -z "$RANLIB" && RANLIB=:
5768 # Determine commands to create old-style static archives.
5769 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5770 old_postinstall_cmds='chmod 644 $oldlib'
5771 old_postuninstall_cmds=
5773 if test -n "$RANLIB"; then
5776 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5779 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5782 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5787 lock_old_archive_extraction=yes ;;
5789 lock_old_archive_extraction=no ;;
5812 for ac_prog in gawk mawk nawk awk
5814 # Extract the first word of "$ac_prog", so it can be a program name with args.
5815 set dummy $ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_AWK+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 if test -n "$AWK"; then
5822 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_AWK="$ac_prog"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 if test -n "$AWK"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5844 $as_echo "$AWK" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5851 test -n "$AWK" && break
5872 # If no C compiler was specified, use CC.
5875 # If no C compiler flags were specified, use CFLAGS.
5876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5878 # Allow CC to be a program name with arguments.
5882 # Check for command to grab the raw symbol name followed by C symbol from nm.
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5884 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5885 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5886 $as_echo_n "(cached) " >&6
5889 # These are sane defaults that work on at least a few old systems.
5890 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5892 # Character class describing NM global symbol codes.
5893 symcode='[BCDEGRST]'
5895 # Regexp to match symbols that can be accessed directly from C.
5896 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5898 # Define system-specific variables.
5903 cygwin* | mingw* | pw32* | cegcc*)
5904 symcode='[ABCDGISTW]'
5907 if test ia64 = "$host_cpu"; then
5908 symcode='[ABCDEGRST]'
5912 symcode='[BCDEGRST]'
5915 symcode='[BCDEGQRST]'
5926 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5934 # If we're using GNU nm, then use its standard symbol codes.
5935 case `$NM -V 2>&1` in
5936 *GNU* | *'with BFD'*)
5937 symcode='[ABCDGIRSTW]' ;;
5940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5941 # Gets list of data symbols to import.
5942 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5943 # Adjust the below global symbol transforms to fixup imported variables.
5944 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5945 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5946 lt_c_name_lib_hook="\
5947 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5948 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5950 # Disable hooks by default.
5951 lt_cv_sys_global_symbol_to_import=
5957 # Transform an extracted symbol line into a proper C declaration.
5958 # Some systems (esp. on ia64) link data and code symbols differently,
5959 # so use this general approach.
5960 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5962 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5963 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5965 # Transform an extracted symbol line into symbol name and symbol address
5966 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5968 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5969 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5971 # Transform an extracted symbol line into symbol name with lib prefix and
5973 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5974 $lt_c_name_lib_hook\
5975 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5976 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5977 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5979 # Handle CRLF in mingw tool chain
5983 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5987 # Try without a prefix underscore, then with it.
5988 for ac_symprfx in "" "_"; do
5990 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5991 symxfrm="\\1 $ac_symprfx\\2 \\2"
5993 # Write the raw and C identifiers.
5994 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5995 # Fake it for dumpbin and say T for any non-static function,
5996 # D for any global variable and I for any imported variable.
5997 # Also find C++ and __fastcall symbols from MSVC++,
5998 # which start with @ or ?.
5999 lt_cv_sys_global_symbol_pipe="$AWK '"\
6000 " {last_section=section; section=\$ 3};"\
6001 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6002 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6003 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6004 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6005 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6006 " \$ 0!~/External *\|/{next};"\
6007 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008 " {if(hide[section]) next};"\
6009 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6010 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6011 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6012 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6013 " ' prfx=^$ac_symprfx"
6015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6017 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6019 # Check to see that the pipe works correctly.
6023 cat > conftest.$ac_ext <<_LT_EOF
6028 void nm_test_func(void);
6029 void nm_test_func(void){}
6033 int main(){nm_test_var='a';nm_test_func();return(0);}
6036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6037 (eval $ac_compile) 2>&5
6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }; then
6041 # Now try to grab the symbols.
6043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6044 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047 test $ac_status = 0; } && test -s "$nlist"; then
6048 # Try sorting and uniquifying the output.
6049 if sort "$nlist" | uniq > "$nlist"T; then
6050 mv -f "$nlist"T "$nlist"
6055 # Make sure that we snagged all the symbols we need.
6056 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6057 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6058 cat <<_LT_EOF > conftest.$ac_ext
6059 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6060 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6061 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6062 relocations are performed -- see ld's documentation on pseudo-relocs. */
6063 # define LT_DLSYM_CONST
6064 #elif defined __osf__
6065 /* This system does not cope well with relocations in const data. */
6066 # define LT_DLSYM_CONST
6068 # define LT_DLSYM_CONST const
6076 # Now generate the symbol file.
6077 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6079 cat <<_LT_EOF >> conftest.$ac_ext
6081 /* The mapping between symbol names and symbols. */
6082 LT_DLSYM_CONST struct {
6086 lt__PROGRAM__LTX_preloaded_symbols[] =
6088 { "@PROGRAM@", (void *) 0 },
6090 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6091 cat <<\_LT_EOF >> conftest.$ac_ext
6095 /* This works around a problem in FreeBSD linker */
6096 #ifdef FREEBSD_WORKAROUND
6097 static const void *lt_preloaded_setup() {
6098 return lt__PROGRAM__LTX_preloaded_symbols;
6106 # Now try linking the two files.
6107 mv conftest.$ac_objext conftstm.$ac_objext
6108 lt_globsym_save_LIBS=$LIBS
6109 lt_globsym_save_CFLAGS=$CFLAGS
6110 LIBS=conftstm.$ac_objext
6111 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113 (eval $ac_link) 2>&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6119 LIBS=$lt_globsym_save_LIBS
6120 CFLAGS=$lt_globsym_save_CFLAGS
6122 echo "cannot find nm_test_func in $nlist" >&5
6125 echo "cannot find nm_test_var in $nlist" >&5
6128 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6131 echo "$progname: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6134 rm -rf conftest* conftst*
6136 # Do not use the global_symbol_pipe unless it works.
6137 if test yes = "$pipe_works"; then
6140 lt_cv_sys_global_symbol_pipe=
6146 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147 lt_cv_sys_global_symbol_to_cdecl=
6149 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151 $as_echo "failed" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154 $as_echo "ok" >&6; }
6157 # Response file support.
6158 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159 nm_file_list_spec='@'
6160 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6161 nm_file_list_spec='@'
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6201 $as_echo_n "checking for sysroot... " >&6; }
6203 # Check whether --with-sysroot was given.
6204 if test "${with_sysroot+set}" = set; then :
6205 withval=$with_sysroot;
6212 case $with_sysroot in #(
6214 if test yes = "$GCC"; then
6215 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6219 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6225 $as_echo "$with_sysroot" >&6; }
6226 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6231 $as_echo "${lt_sysroot:-no}" >&6; }
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6238 $as_echo_n "checking for a working dd... " >&6; }
6239 if ${ac_cv_path_lt_DD+:} false; then :
6240 $as_echo_n "(cached) " >&6
6242 printf 0123456789abcdef0123456789abcdef >conftest.i
6243 cat conftest.i conftest.i >conftest2.i
6245 if test -z "$lt_DD"; then
6246 ac_path_lt_DD_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_prog in dd; do
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6256 as_fn_executable_p "$ac_path_lt_DD" || continue
6257 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6258 cmp -s conftest.i conftest.out \
6259 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6261 $ac_path_lt_DD_found && break 3
6266 if test -z "$ac_cv_path_lt_DD"; then
6270 ac_cv_path_lt_DD=$lt_DD
6273 rm -f conftest.i conftest2.i conftest.out
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6276 $as_echo "$ac_cv_path_lt_DD" >&6; }
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6280 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6281 if ${lt_cv_truncate_bin+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 printf 0123456789abcdef0123456789abcdef >conftest.i
6285 cat conftest.i conftest.i >conftest2.i
6287 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6288 cmp -s conftest.i conftest.out \
6289 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6291 rm -f conftest.i conftest2.i conftest.out
6292 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6295 $as_echo "$lt_cv_truncate_bin" >&6; }
6303 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6306 for cc_temp in $*""; do
6308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6314 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6317 # Check whether --enable-libtool-lock was given.
6318 if test "${enable_libtool_lock+set}" = set; then :
6319 enableval=$enable_libtool_lock;
6322 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6324 # Some flags need to be propagated to the compiler or linker for good
6328 # Find out what ABI is being produced by ac_compile, and set mode
6329 # options accordingly.
6330 echo 'int i;' > conftest.$ac_ext
6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6332 (eval $ac_compile) 2>&5
6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; then
6336 case `/usr/bin/file conftest.$ac_objext` in
6348 # Find out what ABI is being produced by ac_compile, and set linker
6349 # options accordingly.
6350 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6352 (eval $ac_compile) 2>&5
6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355 test $ac_status = 0; }; then
6356 if test yes = "$lt_cv_prog_gnu_ld"; then
6357 case `/usr/bin/file conftest.$ac_objext` in
6359 LD="${LD-ld} -melf32bsmip"
6362 LD="${LD-ld} -melf32bmipn32"
6365 LD="${LD-ld} -melf64bmip"
6369 case `/usr/bin/file conftest.$ac_objext` in
6386 # Find out what ABI is being produced by ac_compile, and set linker
6387 # options accordingly.
6388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390 (eval $ac_compile) 2>&5
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; }; then
6395 case `/usr/bin/file conftest.$ac_objext` in
6403 case `/usr/bin/file conftest.$ac_objext` in
6405 emul="${emul}btsmip"
6408 emul="${emul}ltsmip"
6411 case `/usr/bin/file conftest.$ac_objext` in
6416 LD="${LD-ld} -m $emul"
6421 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6422 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6423 # Find out what ABI is being produced by ac_compile, and set linker
6424 # options accordingly. Note that the listed cases only cover the
6425 # situations where additional linker options are needed (such as when
6426 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6427 # vice versa); the common cases where no linker options are needed do
6428 # not appear in the list.
6429 echo 'int i;' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 case `/usr/bin/file conftest.o` in
6438 x86_64-*kfreebsd*-gnu)
6439 LD="${LD-ld} -m elf_i386_fbsd"
6442 case `/usr/bin/file conftest.o` in
6444 LD="${LD-ld} -m elf32_x86_64"
6447 LD="${LD-ld} -m elf_i386"
6451 powerpc64le-*linux*)
6452 LD="${LD-ld} -m elf32lppclinux"
6455 LD="${LD-ld} -m elf32ppclinux"
6458 LD="${LD-ld} -m elf_s390"
6461 LD="${LD-ld} -m elf32_sparc"
6467 x86_64-*kfreebsd*-gnu)
6468 LD="${LD-ld} -m elf_x86_64_fbsd"
6471 LD="${LD-ld} -m elf_x86_64"
6474 LD="${LD-ld} -m elf64lppc"
6477 LD="${LD-ld} -m elf64ppc"
6479 s390*-*linux*|s390*-*tpf*)
6480 LD="${LD-ld} -m elf64_s390"
6483 LD="${LD-ld} -m elf64_sparc"
6493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6495 CFLAGS="$CFLAGS -belf"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6497 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6498 if ${lt_cv_cc_needs_belf+:} false; then :
6499 $as_echo_n "(cached) " >&6
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6518 if ac_fn_c_try_link "$LINENO"; then :
6519 lt_cv_cc_needs_belf=yes
6521 lt_cv_cc_needs_belf=no
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6534 if test yes != "$lt_cv_cc_needs_belf"; then
6535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6540 # Find out what ABI is being produced by ac_compile, and set linker
6541 # options accordingly.
6542 echo 'int i;' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 case `/usr/bin/file conftest.o` in
6550 case $lt_cv_prog_gnu_ld in
6553 i?86-*-solaris*|x86_64-*-solaris*)
6554 LD="${LD-ld} -m elf_x86_64"
6557 LD="${LD-ld} -m elf64_sparc"
6560 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6561 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6566 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6578 need_locks=$enable_libtool_lock
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}mt; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$MANIFEST_TOOL"; then
6589 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6609 if test -n "$MANIFEST_TOOL"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6611 $as_echo "$MANIFEST_TOOL" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6619 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6620 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6621 # Extract the first word of "mt", so it can be a program name with args.
6622 set dummy mt; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$ac_ct_MANIFEST_TOOL"; then
6629 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6649 if test -n "$ac_ct_MANIFEST_TOOL"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6651 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6657 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6660 case $cross_compiling:$ac_tool_warned in
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6664 ac_tool_warned=yes ;;
6666 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6669 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6672 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6674 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6675 if ${lt_cv_path_mainfest_tool+:} false; then :
6676 $as_echo_n "(cached) " >&6
6678 lt_cv_path_mainfest_tool=no
6679 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6680 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6681 cat conftest.err >&5
6682 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6683 lt_cv_path_mainfest_tool=yes
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6688 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6689 if test yes != "$lt_cv_path_mainfest_tool"; then
6699 rhapsody* | darwin*)
6700 if test -n "$ac_tool_prefix"; then
6701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6706 $as_echo_n "(cached) " >&6
6708 if test -n "$DSYMUTIL"; then
6709 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6729 if test -n "$DSYMUTIL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6731 $as_echo "$DSYMUTIL" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6739 if test -z "$ac_cv_prog_DSYMUTIL"; then
6740 ac_ct_DSYMUTIL=$DSYMUTIL
6741 # Extract the first word of "dsymutil", so it can be a program name with args.
6742 set dummy dsymutil; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6746 $as_echo_n "(cached) " >&6
6748 if test -n "$ac_ct_DSYMUTIL"; then
6749 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6769 if test -n "$ac_ct_DSYMUTIL"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6771 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6777 if test "x$ac_ct_DSYMUTIL" = x; then
6780 case $cross_compiling:$ac_tool_warned in
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6786 DSYMUTIL=$ac_ct_DSYMUTIL
6789 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_NMEDIT+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$NMEDIT"; then
6801 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 NMEDIT=$ac_cv_prog_NMEDIT
6821 if test -n "$NMEDIT"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6823 $as_echo "$NMEDIT" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6831 if test -z "$ac_cv_prog_NMEDIT"; then
6832 ac_ct_NMEDIT=$NMEDIT
6833 # Extract the first word of "nmedit", so it can be a program name with args.
6834 set dummy nmedit; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$ac_ct_NMEDIT"; then
6841 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6861 if test -n "$ac_ct_NMEDIT"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6863 $as_echo "$ac_ct_NMEDIT" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 if test "x$ac_ct_NMEDIT" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6878 NMEDIT=$ac_ct_NMEDIT
6881 NMEDIT="$ac_cv_prog_NMEDIT"
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_LIPO+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$LIPO"; then
6893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 LIPO=$ac_cv_prog_LIPO
6913 if test -n "$LIPO"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6915 $as_echo "$LIPO" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6923 if test -z "$ac_cv_prog_LIPO"; then
6925 # Extract the first word of "lipo", so it can be a program name with args.
6926 set dummy lipo; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$ac_ct_LIPO"; then
6933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_LIPO="lipo"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6953 if test -n "$ac_ct_LIPO"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6955 $as_echo "$ac_ct_LIPO" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 if test "x$ac_ct_LIPO" = x; then
6964 case $cross_compiling:$ac_tool_warned in
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6973 LIPO="$ac_cv_prog_LIPO"
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}otool; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_OTOOL+:} false; then :
6982 $as_echo_n "(cached) " >&6
6984 if test -n "$OTOOL"; then
6985 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 OTOOL=$ac_cv_prog_OTOOL
7005 if test -n "$OTOOL"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7007 $as_echo "$OTOOL" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7015 if test -z "$ac_cv_prog_OTOOL"; then
7017 # Extract the first word of "otool", so it can be a program name with args.
7018 set dummy otool; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$ac_ct_OTOOL"; then
7025 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_OTOOL="otool"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7045 if test -n "$ac_ct_OTOOL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7047 $as_echo "$ac_ct_OTOOL" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 if test "x$ac_ct_OTOOL" = x; then
7056 case $cross_compiling:$ac_tool_warned in
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7065 OTOOL="$ac_cv_prog_OTOOL"
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_OTOOL64+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 if test -n "$OTOOL64"; then
7077 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 OTOOL64=$ac_cv_prog_OTOOL64
7097 if test -n "$OTOOL64"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7099 $as_echo "$OTOOL64" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7107 if test -z "$ac_cv_prog_OTOOL64"; then
7108 ac_ct_OTOOL64=$OTOOL64
7109 # Extract the first word of "otool64", so it can be a program name with args.
7110 set dummy otool64; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7114 $as_echo_n "(cached) " >&6
7116 if test -n "$ac_ct_OTOOL64"; then
7117 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_OTOOL64="otool64"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7137 if test -n "$ac_ct_OTOOL64"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7139 $as_echo "$ac_ct_OTOOL64" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7145 if test "x$ac_ct_OTOOL64" = x; then
7148 case $cross_compiling:$ac_tool_warned in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7154 OTOOL64=$ac_ct_OTOOL64
7157 OTOOL64="$ac_cv_prog_OTOOL64"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7187 $as_echo_n "checking for -single_module linker flag... " >&6; }
7188 if ${lt_cv_apple_cc_single_mod+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 lt_cv_apple_cc_single_mod=no
7192 if test -z "$LT_MULTI_MODULE"; then
7193 # By default we will add the -single_module flag. You can override
7194 # by either setting the environment variable LT_MULTI_MODULE
7195 # non-empty at configure time, or by adding -multi_module to the
7197 rm -rf libconftest.dylib*
7198 echo "int foo(void){return 1;}" > conftest.c
7199 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7200 -dynamiclib -Wl,-single_module conftest.c" >&5
7201 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7202 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7204 # If there is a non-empty error log, and "single_module"
7205 # appears in it, assume the flag caused a linker warning
7206 if test -s conftest.err && $GREP single_module conftest.err; then
7207 cat conftest.err >&5
7208 # Otherwise, if the output was created with a 0 exit code from
7209 # the compiler, it worked.
7210 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7211 lt_cv_apple_cc_single_mod=yes
7213 cat conftest.err >&5
7215 rm -rf libconftest.dylib*
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7220 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 lt_cv_ld_exported_symbols_list=no
7228 save_LDFLAGS=$LDFLAGS
7229 echo "_main" > conftest.sym
7230 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 lt_cv_ld_exported_symbols_list=yes
7245 lt_cv_ld_exported_symbols_list=no
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 LDFLAGS=$save_LDFLAGS
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7256 $as_echo_n "checking for -force_load linker flag... " >&6; }
7257 if ${lt_cv_ld_force_load+:} false; then :
7258 $as_echo_n "(cached) " >&6
7260 lt_cv_ld_force_load=no
7261 cat > conftest.c << _LT_EOF
7262 int forced_loaded() { return 2;}
7264 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7265 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7266 echo "$AR cru libconftest.a conftest.o" >&5
7267 $AR cru libconftest.a conftest.o 2>&5
7268 echo "$RANLIB libconftest.a" >&5
7269 $RANLIB libconftest.a 2>&5
7270 cat > conftest.c << _LT_EOF
7271 int main() { return 0;}
7273 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7274 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7276 if test -s conftest.err && $GREP force_load conftest.err; then
7277 cat conftest.err >&5
7278 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7279 lt_cv_ld_force_load=yes
7281 cat conftest.err >&5
7283 rm -f conftest.err libconftest.a conftest conftest.c
7284 rm -rf conftest.dSYM
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7288 $as_echo "$lt_cv_ld_force_load" >&6; }
7290 rhapsody* | darwin1.[012])
7291 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7293 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7294 darwin*) # darwin 5.x on
7295 # if running on 10.5 or later, the deployment target defaults
7296 # to the OS version, if on x86, and 10.4, the deployment
7297 # target defaults to 10.4. Don't you love it?
7298 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7299 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7300 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7302 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7304 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7308 if test yes = "$lt_cv_apple_cc_single_mod"; then
7309 _lt_dar_single_mod='$single_module'
7311 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7312 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7314 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7316 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7317 _lt_dsymutil='~$DSYMUTIL $lib || :'
7324 # func_munge_path_list VARIABLE PATH
7325 # -----------------------------------
7326 # VARIABLE is name of variable containing _space_ separated list of
7327 # directories to be munged by the contents of PATH, which is string
7330 # string "DIR[ DIR]" will be prepended to VARIABLE
7332 # string "DIR[ DIR]" will be appended to VARIABLE
7333 # "DIRP[:DIRP]::[DIRA:]DIRA"
7334 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7335 # "DIRA[ DIRA]" will be appended to VARIABLE
7337 # VARIABLE will be replaced by "DIR[ DIR]"
7338 func_munge_path_list ()
7344 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7347 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7350 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7351 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7354 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7359 for ac_header in dlfcn.h
7361 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7363 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_DLFCN_H 1
7386 # Check whether --enable-shared was given.
7387 if test "${enable_shared+set}" = set; then :
7388 enableval=$enable_shared; p=${PACKAGE-default}
7390 yes) enable_shared=yes ;;
7391 no) enable_shared=no ;;
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7396 for pkg in $enableval; do
7398 if test "X$pkg" = "X$p"; then
7417 # Check whether --enable-static was given.
7418 if test "${enable_static+set}" = set; then :
7419 enableval=$enable_static; p=${PACKAGE-default}
7421 yes) enable_static=yes ;;
7422 no) enable_static=no ;;
7425 # Look at the argument we got. We use all the common list separators.
7426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7427 for pkg in $enableval; do
7429 if test "X$pkg" = "X$p"; then
7449 # Check whether --with-pic was given.
7450 if test "${with_pic+set}" = set; then :
7451 withval=$with_pic; lt_p=${PACKAGE-default}
7453 yes|no) pic_mode=$withval ;;
7456 # Look at the argument we got. We use all the common list separators.
7457 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7458 for lt_pkg in $withval; do
7460 if test "X$lt_pkg" = "X$lt_p"; then
7478 # Check whether --enable-fast-install was given.
7479 if test "${enable_fast_install+set}" = set; then :
7480 enableval=$enable_fast_install; p=${PACKAGE-default}
7482 yes) enable_fast_install=yes ;;
7483 no) enable_fast_install=no ;;
7485 enable_fast_install=no
7486 # Look at the argument we got. We use all the common list separators.
7487 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7488 for pkg in $enableval; do
7490 if test "X$pkg" = "X$p"; then
7491 enable_fast_install=yes
7498 enable_fast_install=yes
7508 shared_archive_member_spec=
7509 case $host,$enable_shared in
7510 power*-*-aix[5-9]*,yes)
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7512 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7514 # Check whether --with-aix-soname was given.
7515 if test "${with_aix_soname+set}" = set; then :
7516 withval=$with_aix_soname; case $withval in
7520 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7523 lt_cv_with_aix_soname=$with_aix_soname
7525 if ${lt_cv_with_aix_soname+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 lt_cv_with_aix_soname=aix
7531 with_aix_soname=$lt_cv_with_aix_soname
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7535 $as_echo "$with_aix_soname" >&6; }
7536 if test aix != "$with_aix_soname"; then
7537 # For the AIX way of multilib, we name the shared archive member
7538 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7539 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7540 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7541 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7542 if test 64 = "${OBJECT_MODE-32}"; then
7543 shared_archive_member_spec=shr_64
7545 shared_archive_member_spec=shr
7563 # This can be used to rebuild libtool when needed
7564 LIBTOOL_DEPS=$ltmain
7566 # Always use our own libtool.
7567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7598 test -z "$LN_S" && LN_S="ln -s"
7613 if test -n "${ZSH_VERSION+set}"; then
7614 setopt NO_GLOB_SUBST
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7618 $as_echo_n "checking for objdir... " >&6; }
7619 if ${lt_cv_objdir+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 rm -f .libs 2>/dev/null
7623 mkdir .libs 2>/dev/null
7624 if test -d .libs; then
7627 # MS-DOS does not allow filenames that begin with a dot.
7630 rmdir .libs 2>/dev/null
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7633 $as_echo "$lt_cv_objdir" >&6; }
7634 objdir=$lt_cv_objdir
7640 cat >>confdefs.h <<_ACEOF
7641 #define LT_OBJDIR "$lt_cv_objdir/"
7649 # AIX sometimes has problems with the GCC collect2 program. For some
7650 # reason, if we set the COLLECT_NAMES environment variable, the problems
7651 # vanish in a puff of smoke.
7652 if test set != "${COLLECT_NAMES+set}"; then
7654 export COLLECT_NAMES
7661 can_build_shared=yes
7663 # All known linkers require a '.a' archive for static linking (except MSVC,
7664 # which needs '.lib').
7667 with_gnu_ld=$lt_cv_prog_gnu_ld
7672 # Set sane defaults for various variables
7673 test -z "$CC" && CC=cc
7674 test -z "$LTCC" && LTCC=$CC
7675 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7676 test -z "$LD" && LD=ld
7677 test -z "$ac_objext" && ac_objext=o
7679 func_cc_basename $compiler
7680 cc_basename=$func_cc_basename_result
7683 # Only perform the check for file, if the check method requires it
7684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7685 case $deplibs_check_method in
7687 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7689 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7690 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7691 $as_echo_n "(cached) " >&6
7695 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7698 lt_save_MAGIC_CMD=$MAGIC_CMD
7699 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7701 for ac_dir in $ac_dummy; do
7703 test -z "$ac_dir" && ac_dir=.
7704 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7705 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7706 if test -n "$file_magic_test_file"; then
7707 case $deplibs_check_method in
7709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7710 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7712 $EGREP "$file_magic_regex" > /dev/null; then
7717 *** Warning: the command libtool uses to detect shared libraries,
7718 *** $file_magic_cmd, produces output that libtool cannot recognize.
7719 *** The result is that libtool may fail to recognize shared libraries
7720 *** as such. This will affect the creation of libtool libraries that
7721 *** depend on shared libraries, but programs linked with such libtool
7722 *** libraries will work regardless of this problem. Nevertheless, you
7723 *** may want to report the problem to your system manager and/or to
7724 *** bug-libtool@gnu.org
7734 MAGIC_CMD=$lt_save_MAGIC_CMD
7739 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7740 if test -n "$MAGIC_CMD"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7742 $as_echo "$MAGIC_CMD" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7752 if test -z "$lt_cv_path_MAGIC_CMD"; then
7753 if test -n "$ac_tool_prefix"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7755 $as_echo_n "checking for file... " >&6; }
7756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7757 $as_echo_n "(cached) " >&6
7761 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7764 lt_save_MAGIC_CMD=$MAGIC_CMD
7765 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767 for ac_dir in $ac_dummy; do
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f "$ac_dir/file"; then
7771 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7772 if test -n "$file_magic_test_file"; then
7773 case $deplibs_check_method in
7775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778 $EGREP "$file_magic_regex" > /dev/null; then
7783 *** Warning: the command libtool uses to detect shared libraries,
7784 *** $file_magic_cmd, produces output that libtool cannot recognize.
7785 *** The result is that libtool may fail to recognize shared libraries
7786 *** as such. This will affect the creation of libtool libraries that
7787 *** depend on shared libraries, but programs linked with such libtool
7788 *** libraries will work regardless of this problem. Nevertheless, you
7789 *** may want to report the problem to your system manager and/or to
7790 *** bug-libtool@gnu.org
7800 MAGIC_CMD=$lt_save_MAGIC_CMD
7805 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7806 if test -n "$MAGIC_CMD"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7808 $as_echo "$MAGIC_CMD" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7824 # Use C for the default configuration in the libtool script
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 # Source file extension for C test sources.
7837 # Object file extension for compiled C test sources.
7841 # Code to be used in simple compile tests
7842 lt_simple_compile_test_code="int some_variable = 0;"
7844 # Code to be used in simple link tests
7845 lt_simple_link_test_code='int main(){return(0);}'
7853 # If no C compiler was specified, use CC.
7856 # If no C compiler flags were specified, use CFLAGS.
7857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7859 # Allow CC to be a program name with arguments.
7862 # Save the default compiler, since it gets overwritten when the other
7863 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7864 compiler_DEFAULT=$CC
7866 # save warnings/boilerplate of simple test code
7867 ac_outfile=conftest.$ac_objext
7868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7870 _lt_compiler_boilerplate=`cat conftest.err`
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876 _lt_linker_boilerplate=`cat conftest.err`
7881 ## There is no encapsulation within the following macros, do not change
7882 ## the running order or otherwise move them around unless you know exactly
7883 ## what you are doing...
7884 if test -n "$compiler"; then
7886 lt_prog_compiler_no_builtin_flag=
7888 if test yes = "$GCC"; then
7889 case $cc_basename in
7891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7897 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7898 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7899 $as_echo_n "(cached) " >&6
7901 lt_cv_prog_compiler_rtti_exceptions=no
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7904 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7905 # Insert the option either (1) after the last *FLAGS variable, or
7906 # (2) before a word containing "conftest.", or (3) at the end.
7907 # Note that $ac_compile itself does not contain backslashes and begins
7908 # with a dollar sign (not a hyphen), so the echo should work correctly.
7909 # The option is referenced via a variable to avoid confusing sed.
7910 lt_compile=`echo "$ac_compile" | $SED \
7911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7913 -e 's:$: $lt_compiler_flag:'`
7914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7915 (eval "$lt_compile" 2>conftest.err)
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 if (exit $ac_status) && test -s "$ac_outfile"; then
7920 # The compiler can only warn and ignore the option if not recognized
7921 # So say no if there are warnings other than the usual output.
7922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7925 lt_cv_prog_compiler_rtti_exceptions=yes
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7932 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7934 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947 lt_prog_compiler_wl=
7948 lt_prog_compiler_pic=
7949 lt_prog_compiler_static=
7952 if test yes = "$GCC"; then
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_static='-static'
7958 # All AIX code is PIC.
7959 if test ia64 = "$host_cpu"; then
7960 # AIX 5 now supports IA64 processor
7961 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_pic='-fPIC'
7969 # see comment about AmigaOS4 .so support
7970 lt_prog_compiler_pic='-fPIC'
7973 # FIXME: we need at least 68020 code to build shared libraries, but
7974 # adding the '-m68020' flag to GCC prevents building anything better,
7976 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7981 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7982 # PIC is the default for these OSes.
7985 mingw* | cygwin* | pw32* | os2* | cegcc*)
7986 # This hack is so that the source file can tell whether it is being
7987 # built for inclusion in a dll (and should export symbols for example).
7988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7989 # (--disable-auto-import) libraries
7990 lt_prog_compiler_pic='-DDLL_EXPORT'
7993 lt_prog_compiler_static='$wl-static'
7998 darwin* | rhapsody*)
7999 # PIC is the default on this platform
8000 # Common symbols not allowed in MH_DYLIB files
8001 lt_prog_compiler_pic='-fno-common'
8005 # PIC is the default for Haiku.
8006 # The "-static" flag exists, but is broken.
8007 lt_prog_compiler_static=
8011 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8012 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8013 # sets the default TLS model and affects inlining.
8019 lt_prog_compiler_pic='-fPIC'
8025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8026 # Instead, we relocate shared libraries at runtime.
8030 # Just because we use GCC doesn't mean we suddenly get shared libraries
8031 # on systems that don't support them.
8032 lt_prog_compiler_can_build_shared=no
8037 # QNX uses GNU C++, but need to define -shared option too, otherwise
8039 lt_prog_compiler_pic='-fPIC -shared'
8043 if test -d /usr/nec; then
8044 lt_prog_compiler_pic=-Kconform_pic
8049 lt_prog_compiler_pic='-fPIC'
8053 case $cc_basename in
8054 nvcc*) # Cuda Compiler Driver 2.2
8055 lt_prog_compiler_wl='-Xlinker '
8056 if test -n "$lt_prog_compiler_pic"; then
8057 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8062 # PORTME Check for flag to pass linker flags through the system compiler.
8065 lt_prog_compiler_wl='-Wl,'
8066 if test ia64 = "$host_cpu"; then
8067 # AIX 5 now supports IA64 processor
8068 lt_prog_compiler_static='-Bstatic'
8070 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8074 darwin* | rhapsody*)
8075 # PIC is the default on this platform
8076 # Common symbols not allowed in MH_DYLIB files
8077 lt_prog_compiler_pic='-fno-common'
8078 case $cc_basename in
8080 # NAG Fortran compiler
8081 lt_prog_compiler_wl='-Wl,-Wl,,'
8082 lt_prog_compiler_pic='-PIC'
8083 lt_prog_compiler_static='-Bstatic'
8088 mingw* | cygwin* | pw32* | os2* | cegcc*)
8089 # This hack is so that the source file can tell whether it is being
8090 # built for inclusion in a dll (and should export symbols for example).
8091 lt_prog_compiler_pic='-DDLL_EXPORT'
8094 lt_prog_compiler_static='$wl-static'
8099 hpux9* | hpux10* | hpux11*)
8100 lt_prog_compiler_wl='-Wl,'
8101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8108 lt_prog_compiler_pic='+Z'
8111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8112 lt_prog_compiler_static='$wl-a ${wl}archive'
8115 irix5* | irix6* | nonstopux*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # PIC (with -KPIC) is the default.
8118 lt_prog_compiler_static='-non_shared'
8121 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8122 case $cc_basename in
8123 # old Intel for x86_64, which still supported -KPIC.
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-static'
8129 # icc used to be incompatible with GCC.
8130 # ICC 10 doesn't accept -KPIC any more.
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-fPIC'
8134 lt_prog_compiler_static='-static'
8136 # Lahey Fortran 8.1.
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='--shared'
8140 lt_prog_compiler_static='--static'
8143 # NAG Fortran compiler
8144 lt_prog_compiler_wl='-Wl,-Wl,,'
8145 lt_prog_compiler_pic='-PIC'
8146 lt_prog_compiler_static='-Bstatic'
8149 # Fabrice Bellard et al's Tiny C Compiler
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_pic='-fPIC'
8152 lt_prog_compiler_static='-static'
8154 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8155 # Portland Group compilers (*not* the Pentium gcc compiler,
8156 # which looks to be a dead project)
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_pic='-fpic'
8159 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_wl='-Wl,'
8163 # All Alpha code is PIC.
8164 lt_prog_compiler_static='-non_shared'
8166 xl* | bgxl* | bgf* | mpixl*)
8167 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-qpic'
8170 lt_prog_compiler_static='-qstaticlink'
8173 case `$CC -V 2>&1 | sed 5q` in
8174 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8175 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-Bstatic'
8178 lt_prog_compiler_wl=''
8180 *Sun\ F* | *Sun*Fortran*)
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_wl='-Qoption ld '
8187 lt_prog_compiler_pic='-KPIC'
8188 lt_prog_compiler_static='-Bstatic'
8189 lt_prog_compiler_wl='-Wl,'
8191 *Intel*\ [CF]*Compiler*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-fPIC'
8194 lt_prog_compiler_static='-static'
8197 lt_prog_compiler_wl='-Wl,'
8198 lt_prog_compiler_pic='-fpic'
8199 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_pic='-KPIC'
8208 lt_prog_compiler_static='-Bstatic'
8212 # QNX uses GNU C++, but need to define -shared option too, otherwise
8214 lt_prog_compiler_pic='-fPIC -shared'
8217 osf3* | osf4* | osf5*)
8218 lt_prog_compiler_wl='-Wl,'
8219 # All OSF/1 code is PIC.
8220 lt_prog_compiler_static='-non_shared'
8224 lt_prog_compiler_static='-non_shared'
8228 lt_prog_compiler_pic='-KPIC'
8229 lt_prog_compiler_static='-Bstatic'
8230 case $cc_basename in
8231 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8232 lt_prog_compiler_wl='-Qoption ld ';;
8234 lt_prog_compiler_wl='-Wl,';;
8239 lt_prog_compiler_wl='-Qoption ld '
8240 lt_prog_compiler_pic='-PIC'
8241 lt_prog_compiler_static='-Bstatic'
8244 sysv4 | sysv4.2uw2* | sysv4.3*)
8245 lt_prog_compiler_wl='-Wl,'
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8251 if test -d /usr/nec; then
8252 lt_prog_compiler_pic='-Kconform_pic'
8253 lt_prog_compiler_static='-Bstatic'
8257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_pic='-KPIC'
8260 lt_prog_compiler_static='-Bstatic'
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_can_build_shared=no
8269 lt_prog_compiler_pic='-pic'
8270 lt_prog_compiler_static='-Bstatic'
8274 lt_prog_compiler_can_build_shared=no
8280 # For platforms that do not support PIC, -DPIC is meaningless:
8282 lt_prog_compiler_pic=
8285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8291 if ${lt_cv_prog_compiler_pic+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8297 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8298 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8301 # Check to make sure the PIC flag actually works.
8303 if test -n "$lt_prog_compiler_pic"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8305 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8306 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8307 $as_echo_n "(cached) " >&6
8309 lt_cv_prog_compiler_pic_works=no
8310 ac_outfile=conftest.$ac_objext
8311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 # The option is referenced via a variable to avoid confusing sed.
8318 lt_compile=`echo "$ac_compile" | $SED \
8319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321 -e 's:$: $lt_compiler_flag:'`
8322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323 (eval "$lt_compile" 2>conftest.err)
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 if (exit $ac_status) && test -s "$ac_outfile"; then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings other than the usual output.
8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_pic_works=yes
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8340 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8342 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8343 case $lt_prog_compiler_pic in
8345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8348 lt_prog_compiler_pic=
8349 lt_prog_compiler_can_build_shared=no
8365 # Check to make sure the static flag actually works.
8367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370 if ${lt_cv_prog_compiler_static_works+:} false; then :
8371 $as_echo_n "(cached) " >&6
8373 lt_cv_prog_compiler_static_works=no
8374 save_LDFLAGS=$LDFLAGS
8375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378 # The linker can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 if test -s conftest.err; then
8381 # Append any errors to the config.log.
8382 cat conftest.err 1>&5
8383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_static_works=yes
8389 lt_cv_prog_compiler_static_works=yes
8393 LDFLAGS=$save_LDFLAGS
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8399 if test yes = "$lt_cv_prog_compiler_static_works"; then
8402 lt_prog_compiler_static=
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413 if ${lt_cv_prog_compiler_c_o+:} false; then :
8414 $as_echo_n "(cached) " >&6
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>out/conftest.err)
8435 cat out/conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468 if ${lt_cv_prog_compiler_c_o+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>out/conftest.err)
8490 cat out/conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8519 hard_links=nottested
8520 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8521 # do not overwrite the value of need_locks provided by the user
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523 $as_echo_n "checking if we can lock with hard links... " >&6; }
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8528 ln conftest.a conftest.b 2>&5 || hard_links=no
8529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531 $as_echo "$hard_links" >&6; }
8532 if test no = "$hard_links"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8534 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8550 allow_undefined_flag=
8551 always_export_symbols=no
8553 archive_expsym_cmds=
8554 compiler_needs_object=no
8555 enable_shared_with_static_runtimes=no
8556 export_dynamic_flag_spec=
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558 hardcode_automatic=no
8560 hardcode_direct_absolute=no
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_separator=
8564 hardcode_shlibpath_var=unsupported
8566 link_all_deplibs=unknown
8569 old_archive_from_new_cmds=
8570 old_archive_from_expsyms_cmds=
8571 thread_safe_flag_spec=
8572 whole_archive_flag_spec=
8573 # include_expsyms should be a list of space-separated symbols to be *always*
8574 # included in the symbol list
8576 # exclude_expsyms can be an extended regexp of symbols to exclude
8577 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8578 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8579 # as well as any symbol that contains 'd'.
8580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582 # platforms (ab)use it in PIC code, but their linkers get confused if
8583 # the symbol is explicitly referenced. Since portable code cannot
8584 # rely on this symbol name, it's probably fine to never include it in
8585 # preloaded symbol tables.
8586 # Exclude shared library initialization/finalization symbols.
8587 extract_expsyms_cmds=
8590 cygwin* | mingw* | pw32* | cegcc*)
8591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 if test yes != "$GCC"; then
8599 # we just hope/assume this is gcc and not c89 (= MSVC++)
8605 linux* | k*bsd*-gnu | gnu*)
8612 # On some targets, GNU ld is compatible enough with the native linker
8613 # that we're better off using the native interface for both.
8614 lt_use_gnu_ld_interface=no
8615 if test yes = "$with_gnu_ld"; then
8618 # The AIX port of GNU ld has always aspired to compatibility
8619 # with the native linker. However, as the warning in the GNU ld
8620 # block says, versions before 2.19.5* couldn't really create working
8621 # shared libraries, regardless of the interface used.
8622 case `$LD -v 2>&1` in
8623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8627 lt_use_gnu_ld_interface=yes
8632 lt_use_gnu_ld_interface=yes
8637 if test yes = "$lt_use_gnu_ld_interface"; then
8638 # If archive_cmds runs LD, not CC, wlarc should be empty
8641 # Set some defaults for GNU ld with shared library support. These
8642 # are reset later if shared libraries are not supported. Putting them
8643 # here allows them to be overridden if necessary.
8644 runpath_var=LD_RUN_PATH
8645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8646 export_dynamic_flag_spec='$wl--export-dynamic'
8647 # ancient GNU ld didn't support --whole-archive et. al.
8648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8649 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8651 whole_archive_flag_spec=
8653 supports_anon_versioning=no
8654 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8655 *GNU\ gold*) supports_anon_versioning=yes ;;
8656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8659 *\ 2.11.*) ;; # other 2.11 versions
8660 *) supports_anon_versioning=yes ;;
8663 # See if GNU ld supports shared libraries.
8666 # On AIX/PPC, the GNU linker is very broken
8667 if test ia64 != "$host_cpu"; then
8671 *** Warning: the GNU linker, at least up to release 2.19, is reported
8672 *** to be unable to reliably create shared libraries on AIX.
8673 *** Therefore, libtool is disabling shared libraries support. If you
8674 *** really care for shared libraries, you may want to install binutils
8675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8676 *** You will then need to restart the configuration process.
8685 # see comment about AmigaOS4 .so support
8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8687 archive_expsym_cmds=''
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 allow_undefined_flag=unsupported
8700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8701 # support --undefined. This deserves some investigation. FIXME
8702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8708 cygwin* | mingw* | pw32* | cegcc*)
8709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8710 # as there is no search path for DLLs.
8711 hardcode_libdir_flag_spec='-L$libdir'
8712 export_dynamic_flag_spec='$wl--export-all-symbols'
8713 allow_undefined_flag=unsupported
8714 always_export_symbols=no
8715 enable_shared_with_static_runtimes=yes
8716 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'
8717 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721 # If the export-symbols file already is a .def file, use it as
8722 # is; otherwise, prepend EXPORTS...
8723 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8724 cp $export_symbols $output_objdir/$soname.def;
8726 echo EXPORTS > $output_objdir/$soname.def;
8727 cat $export_symbols >> $output_objdir/$soname.def;
8729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8737 link_all_deplibs=yes
8741 hardcode_libdir_flag_spec='-L$libdir'
8742 hardcode_minus_L=yes
8743 allow_undefined_flag=unsupported
8745 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8748 $ECHO EXPORTS >> $output_objdir/$libname.def~
8749 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8750 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8751 emximp -o $lib $output_objdir/$libname.def'
8752 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8753 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8754 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8755 $ECHO EXPORTS >> $output_objdir/$libname.def~
8757 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8758 prefix_cmds="$prefix_cmds -e 1d";
8760 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8761 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8763 emximp -o $lib $output_objdir/$libname.def'
8764 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8765 enable_shared_with_static_runtimes=yes
8770 hardcode_shlibpath_var=no
8771 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8772 export_dynamic_flag_spec='$wl-E'
8773 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8774 # Instead, shared libraries are loaded at an image base (0x10000000 by
8775 # default) and relocated if they conflict, which is a slow very memory
8776 # consuming and fragmenting process. To avoid this, we pick a random,
8777 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8778 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8780 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'
8783 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8785 if test linux-dietlibc = "$host_os"; then
8786 case $cc_basename in
8787 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8790 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8791 && test no = "$tmp_diet"
8793 tmp_addflag=' $pic_flag'
8794 tmp_sharedflag='-shared'
8795 case $cc_basename,$host_cpu in
8796 pgcc*) # Portland Group C compiler
8797 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'
8798 tmp_addflag=' $pic_flag'
8800 pgf77* | pgf90* | pgf95* | pgfortran*)
8801 # Portland Group f77 and f90 compilers
8802 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'
8803 tmp_addflag=' $pic_flag -Mnomain' ;;
8804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8805 tmp_addflag=' -i_dynamic' ;;
8806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8807 tmp_addflag=' -i_dynamic -nofor_main' ;;
8808 ifc* | ifort*) # Intel Fortran compiler
8809 tmp_addflag=' -nofor_main' ;;
8810 lf95*) # Lahey Fortran 8.1
8811 whole_archive_flag_spec=
8812 tmp_sharedflag='--shared' ;;
8813 nagfor*) # NAGFOR 5.3
8814 tmp_sharedflag='-Wl,-shared' ;;
8815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8816 tmp_sharedflag='-qmkshrobj'
8818 nvcc*) # Cuda Compiler Driver 2.2
8819 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'
8820 compiler_needs_object=yes
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ C*) # Sun C 5.9
8825 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'
8826 compiler_needs_object=yes
8827 tmp_sharedflag='-G' ;;
8828 *Sun\ F*) # Sun Fortran 8.3
8829 tmp_sharedflag='-G' ;;
8831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8833 if test yes = "$supports_anon_versioning"; then
8834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836 echo "local: *; };" >> $output_objdir/$libname.ver~
8837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8840 case $cc_basename in
8842 export_dynamic_flag_spec='-rdynamic'
8844 xlf* | bgf* | bgxlf* | mpixlf*)
8845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8846 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8848 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8849 if test yes = "$supports_anon_versioning"; then
8850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8852 echo "local: *; };" >> $output_objdir/$libname.ver~
8853 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8862 netbsd* | netbsdelf*-gnu)
8863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8864 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8873 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8878 *** create shared libraries on Solaris systems. Therefore, libtool
8879 *** is disabling shared libraries support. We urge you to upgrade GNU
8880 *** binutils to release 2.9.1 or newer. Another option is to modify
8881 *** your PATH or compiler configuration so that the native linker is
8882 *** used, and then restart.
8885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8894 case `$LD -v 2>&1` in
8895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8900 *** reliably create shared libraries on SCO systems. Therefore, libtool
8901 *** is disabling shared libraries support. We urge you to upgrade GNU
8902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8903 *** your PATH or compiler configuration so that the native linker is
8904 *** used, and then restart.
8909 # For security reasons, it is highly recommended that you always
8910 # use absolute paths for naming shared libraries, and exclude the
8911 # DT_RUNPATH tag from executables and libraries. But doing so
8912 # requires that you compile everything twice, which is a pain.
8913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_shlibpath_var=no
8932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8941 if test no = "$ld_shlibs"; then
8943 hardcode_libdir_flag_spec=
8944 export_dynamic_flag_spec=
8945 whole_archive_flag_spec=
8948 # PORTME fill in a description of your system's linker (not GNU ld)
8951 allow_undefined_flag=unsupported
8952 always_export_symbols=yes
8953 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'
8954 # Note: this linker hardcodes the directories in LIBPATH if there
8955 # are no directories specified by -L.
8956 hardcode_minus_L=yes
8957 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8958 # Neither direct hardcoding nor static linking is supported with a
8960 hardcode_direct=unsupported
8965 if test ia64 = "$host_cpu"; then
8966 # On IA64, the linker does run time linking by default, so we don't
8967 # have to do anything special.
8968 aix_use_runtimelinking=no
8969 exp_sym_flag='-Bexport'
8972 # If we're using GNU nm, then we don't want the "-C" option.
8973 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8974 # Without the "-l" option, or with the "-B" option, AIX nm treats
8975 # weak defined symbols like other global defined symbols, whereas
8976 # GNU nm marks them as "W".
8977 # While the 'weak' keyword is ignored in the Export File, we need
8978 # it in the Import File for the 'aix-soname' feature, so we have
8979 # to replace the "-B" option with "-P" for AIX nm.
8980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8981 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8983 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8985 aix_use_runtimelinking=no
8987 # Test if we are trying to use run time linking or normal
8988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8989 # have runtime linking enabled, and use it for executables.
8990 # For shared libraries, we enable/disable runtime linking
8991 # depending on the kind of the shared library created -
8992 # when "with_aix_soname,aix_use_runtimelinking" is:
8993 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8994 # "aix,yes" lib.so shared, rtl:yes, for executables
8995 # lib.a static archive
8996 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8997 # lib.a(lib.so.V) shared, rtl:no, for executables
8998 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8999 # lib.a(lib.so.V) shared, rtl:no
9000 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9001 # lib.a static archive
9002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9003 for ld_flag in $LDFLAGS; do
9004 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9005 aix_use_runtimelinking=yes
9009 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9010 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9011 # so we don't have lib.a shared libs to link our executables.
9012 # We have to force runtime linking in this case.
9013 aix_use_runtimelinking=yes
9014 LDFLAGS="$LDFLAGS -Wl,-brtl"
9019 exp_sym_flag='-bexport'
9020 no_entry_flag='-bnoentry'
9023 # When large executables or shared objects are built, AIX ld can
9024 # have problems creating the table of contents. If linking a library
9025 # or program results in "error TOC overflow" add -mminimal-toc to
9026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9031 hardcode_direct_absolute=yes
9032 hardcode_libdir_separator=':'
9033 link_all_deplibs=yes
9034 file_list_spec='$wl-f,'
9035 case $with_aix_soname,$aix_use_runtimelinking in
9036 aix,*) ;; # traditional, no import file
9037 svr4,* | *,yes) # use import file
9038 # The Import File defines what to hardcode.
9040 hardcode_direct_absolute=no
9044 if test yes = "$GCC"; then
9045 case $host_os in aix4.[012]|aix4.[012].*)
9046 # We only want to do this on AIX 4.2 and lower, the check
9047 # below for broken collect2 doesn't work under 4.3+
9048 collect2name=`$CC -print-prog-name=collect2`
9049 if test -f "$collect2name" &&
9050 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9052 # We have reworked collect2
9055 # We have old collect2
9056 hardcode_direct=unsupported
9057 # It fails to find uninstalled libraries when the uninstalled
9058 # path is not listed in the libpath. Setting hardcode_minus_L
9059 # to unsupported forces relinking
9060 hardcode_minus_L=yes
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_libdir_separator=
9066 shared_flag='-shared'
9067 if test yes = "$aix_use_runtimelinking"; then
9068 shared_flag="$shared_flag "'$wl-G'
9070 # Need to ensure runtime linking is disabled for the traditional
9071 # shared library, or the linker may eventually find shared libraries
9072 # /with/ Import File - we do not want to mix them.
9073 shared_flag_aix='-shared'
9074 shared_flag_svr4='-shared $wl-G'
9077 if test ia64 = "$host_cpu"; then
9078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9079 # chokes on -Wl,-G. The following line is correct:
9082 if test yes = "$aix_use_runtimelinking"; then
9085 shared_flag='$wl-bM:SRE'
9087 shared_flag_aix='$wl-bM:SRE'
9088 shared_flag_svr4='$wl-G'
9092 export_dynamic_flag_spec='$wl-bexpall'
9093 # It seems that -bexpall does not export symbols beginning with
9094 # underscore (_), so it is better to generate a list of symbols to export.
9095 always_export_symbols=yes
9096 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9097 # Warning - without using the other runtime loading flags (-brtl),
9098 # -berok will link without error, but may produce a broken library.
9099 allow_undefined_flag='-berok'
9100 # Determine the default libpath from the value encoded in an
9102 if test set = "${lt_cv_aix_libpath+set}"; then
9103 aix_libpath=$lt_cv_aix_libpath
9105 if ${lt_cv_aix_libpath_+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9119 if ac_fn_c_try_link "$LINENO"; then :
9121 lt_aix_libpath_sed='
9122 /Import File Strings/,/^$/ {
9124 s/^0 *\([^ ]*\) *$/\1/
9128 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9129 # Check for a 64-bit object if we didn't find anything.
9130 if test -z "$lt_cv_aix_libpath_"; then
9131 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134 rm -f core conftest.err conftest.$ac_objext \
9135 conftest$ac_exeext conftest.$ac_ext
9136 if test -z "$lt_cv_aix_libpath_"; then
9137 lt_cv_aix_libpath_=/usr/lib:/lib
9142 aix_libpath=$lt_cv_aix_libpath_
9145 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9146 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9148 if test ia64 = "$host_cpu"; then
9149 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9150 allow_undefined_flag="-z nodefs"
9151 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"
9153 # Determine the default libpath from the value encoded in an
9155 if test set = "${lt_cv_aix_libpath+set}"; then
9156 aix_libpath=$lt_cv_aix_libpath
9158 if ${lt_cv_aix_libpath_+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9172 if ac_fn_c_try_link "$LINENO"; then :
9174 lt_aix_libpath_sed='
9175 /Import File Strings/,/^$/ {
9177 s/^0 *\([^ ]*\) *$/\1/
9181 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182 # Check for a 64-bit object if we didn't find anything.
9183 if test -z "$lt_cv_aix_libpath_"; then
9184 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$lt_cv_aix_libpath_"; then
9190 lt_cv_aix_libpath_=/usr/lib:/lib
9195 aix_libpath=$lt_cv_aix_libpath_
9198 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9199 # Warning - without using the other run time loading flags,
9200 # -berok will link without error, but may produce a broken library.
9201 no_undefined_flag=' $wl-bernotok'
9202 allow_undefined_flag=' $wl-berok'
9203 if test yes = "$with_gnu_ld"; then
9204 # We only use this code for GNU lds that support --whole-archive.
9205 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9207 # Exported symbols can be pulled into shared objects from archives
9208 whole_archive_flag_spec='$convenience'
9210 archive_cmds_need_lc=yes
9211 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9212 # -brtl affects multiple linker settings, -berok does not and is overridden later
9213 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9214 if test svr4 != "$with_aix_soname"; then
9215 # This is similar to how AIX traditionally builds its shared libraries.
9216 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9218 if test aix != "$with_aix_soname"; then
9219 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9221 # used by -dlpreopen to get the symbols
9222 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9224 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9232 # see comment about AmigaOS4 .so support
9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9234 archive_expsym_cmds=''
9237 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)'
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 hardcode_minus_L=yes
9245 export_dynamic_flag_spec=-rdynamic
9248 cygwin* | mingw* | pw32* | cegcc*)
9249 # When not using gcc, we currently assume that we are using
9250 # Microsoft Visual C++.
9251 # hardcode_libdir_flag_spec is actually meaningless, as there is
9252 # no search path for DLLs.
9253 case $cc_basename in
9256 hardcode_libdir_flag_spec=' '
9257 allow_undefined_flag=unsupported
9258 always_export_symbols=yes
9260 # Tell ltmain to make .lib files, not .a files.
9262 # Tell ltmain to make .dll files, not .so files.
9264 # FIXME: Setting linknames here is a bad hack.
9265 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9266 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9267 cp "$export_symbols" "$output_objdir/$soname.def";
9268 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9270 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9272 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9274 # The linker will not automatically build a static lib if we build a DLL.
9275 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9276 enable_shared_with_static_runtimes=yes
9277 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9280 old_postinstall_cmds='chmod 644 $oldlib'
9281 postlink_cmds='lt_outputfile="@OUTPUT@"~
9282 lt_tool_outputfile="@TOOL_OUTPUT@"~
9283 case $lt_outputfile in
9286 lt_outputfile=$lt_outputfile.exe
9287 lt_tool_outputfile=$lt_tool_outputfile.exe
9290 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9291 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9292 $RM "$lt_outputfile.manifest";
9296 # Assume MSVC wrapper
9297 hardcode_libdir_flag_spec=' '
9298 allow_undefined_flag=unsupported
9299 # Tell ltmain to make .lib files, not .a files.
9301 # Tell ltmain to make .dll files, not .so files.
9303 # FIXME: Setting linknames here is a bad hack.
9304 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9305 # The linker will automatically build a .lib file if we build a DLL.
9306 old_archive_from_new_cmds='true'
9307 # FIXME: Should let the user specify the lib program.
9308 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9309 enable_shared_with_static_runtimes=yes
9314 darwin* | rhapsody*)
9317 archive_cmds_need_lc=no
9319 hardcode_automatic=yes
9320 hardcode_shlibpath_var=unsupported
9321 if test yes = "$lt_cv_ld_force_load"; then
9322 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\"`'
9325 whole_archive_flag_spec=''
9327 link_all_deplibs=yes
9328 allow_undefined_flag=$_lt_dar_allow_undefined
9329 case $cc_basename in
9330 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9331 *) _lt_dar_can_shared=$GCC ;;
9333 if test yes = "$_lt_dar_can_shared"; then
9334 output_verbose_link_cmd=func_echo_all
9335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9337 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"
9338 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"
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-L$libdir'
9349 hardcode_shlibpath_var=no
9352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9353 # support. Future versions do this automatically, but an explicit c++rt0.o
9354 # does not break anything, and helps significantly (at the cost of a little
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9358 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_shlibpath_var=no
9363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_minus_L=yes
9368 hardcode_shlibpath_var=no
9371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9372 freebsd* | dragonfly*)
9373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9374 hardcode_libdir_flag_spec='-R$libdir'
9376 hardcode_shlibpath_var=no
9380 if test yes = "$GCC"; then
9381 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9383 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9385 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9386 hardcode_libdir_separator=:
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9392 export_dynamic_flag_spec='$wl-E'
9396 if test yes,no = "$GCC,$with_gnu_ld"; then
9397 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9401 if test no = "$with_gnu_ld"; then
9402 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9403 hardcode_libdir_separator=:
9405 hardcode_direct_absolute=yes
9406 export_dynamic_flag_spec='$wl-E'
9407 # hardcode_minus_L: Not really in the search PATH,
9408 # but as the default location of the library.
9409 hardcode_minus_L=yes
9414 if test yes,no = "$GCC,$with_gnu_ld"; then
9417 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9436 # Older versions of the 11.00 compiler do not understand -b yet
9437 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9439 $as_echo_n "checking if $CC understands -b... " >&6; }
9440 if ${lt_cv_prog_compiler__b+:} false; then :
9441 $as_echo_n "(cached) " >&6
9443 lt_cv_prog_compiler__b=no
9444 save_LDFLAGS=$LDFLAGS
9445 LDFLAGS="$LDFLAGS -b"
9446 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9448 # The linker can only warn and ignore the option if not recognized
9449 # So say no if there are warnings
9450 if test -s conftest.err; then
9451 # Append any errors to the config.log.
9452 cat conftest.err 1>&5
9453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9455 if diff conftest.exp conftest.er2 >/dev/null; then
9456 lt_cv_prog_compiler__b=yes
9459 lt_cv_prog_compiler__b=yes
9463 LDFLAGS=$save_LDFLAGS
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9467 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9469 if test yes = "$lt_cv_prog_compiler__b"; then
9470 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9478 if test no = "$with_gnu_ld"; then
9479 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9480 hardcode_libdir_separator=:
9485 hardcode_shlibpath_var=no
9489 hardcode_direct_absolute=yes
9490 export_dynamic_flag_spec='$wl-E'
9492 # hardcode_minus_L: Not really in the search PATH,
9493 # but as the default location of the library.
9494 hardcode_minus_L=yes
9500 irix5* | irix6* | nonstopux*)
9501 if test yes = "$GCC"; then
9502 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'
9503 # Try to use the -exported_symbol ld option, if it does not
9504 # work, assume that -exports_file does not work either and
9505 # implicitly export all symbols.
9506 # This should be the same for all languages, so no per-tag cache variable.
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9508 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9509 if ${lt_cv_irix_exported_symbol+:} false; then :
9510 $as_echo_n "(cached) " >&6
9512 save_LDFLAGS=$LDFLAGS
9513 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 int foo (void) { return 0; }
9518 if ac_fn_c_try_link "$LINENO"; then :
9519 lt_cv_irix_exported_symbol=yes
9521 lt_cv_irix_exported_symbol=no
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LDFLAGS=$save_LDFLAGS
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9528 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9529 if test yes = "$lt_cv_irix_exported_symbol"; then
9530 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'
9534 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'
9535 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'
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9539 hardcode_libdir_separator=:
9541 link_all_deplibs=yes
9545 case $cc_basename in
9547 # Fabrice Bellard et al's Tiny C Compiler
9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9554 netbsd* | netbsdelf*-gnu)
9555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9558 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9560 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_shlibpath_var=no
9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9569 hardcode_libdir_separator=:
9570 hardcode_shlibpath_var=no
9577 if test -f /usr/libexec/ld.so; then
9579 hardcode_shlibpath_var=no
9580 hardcode_direct_absolute=yes
9581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9584 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9585 export_dynamic_flag_spec='$wl-E'
9587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9588 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_minus_L=yes
9598 allow_undefined_flag=unsupported
9600 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9601 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9602 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9603 $ECHO EXPORTS >> $output_objdir/$libname.def~
9604 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9606 emximp -o $lib $output_objdir/$libname.def'
9607 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9610 $ECHO EXPORTS >> $output_objdir/$libname.def~
9612 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9613 prefix_cmds="$prefix_cmds -e 1d";
9615 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9616 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9617 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9618 emximp -o $lib $output_objdir/$libname.def'
9619 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9620 enable_shared_with_static_runtimes=yes
9624 if test yes = "$GCC"; then
9625 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9626 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'
9628 allow_undefined_flag=' -expect_unresolved \*'
9629 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'
9631 archive_cmds_need_lc='no'
9632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9633 hardcode_libdir_separator=:
9636 osf4* | osf5*) # as osf3* with the addition of -msym flag
9637 if test yes = "$GCC"; then
9638 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9639 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'
9640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9642 allow_undefined_flag=' -expect_unresolved \*'
9643 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'
9644 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~
9645 $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'
9647 # Both c and cxx compiler support -rpath directly
9648 hardcode_libdir_flag_spec='-rpath $libdir'
9650 archive_cmds_need_lc='no'
9651 hardcode_libdir_separator=:
9655 no_undefined_flag=' -z defs'
9656 if test yes = "$GCC"; then
9658 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660 $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'
9662 case `$CC -V 2>&1` in
9665 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9667 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9671 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 hardcode_shlibpath_var=no
9680 solaris2.[0-5] | solaris2.[0-5].*) ;;
9682 # The compiler driver will combine and reorder linker options,
9683 # but understands '-z linker_flag'. GCC discards it without '$wl',
9684 # but is careful enough not to reorder.
9685 # Supported since Solaris 2.6 (maybe 2.5.1?)
9686 if test yes = "$GCC"; then
9687 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9689 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9693 link_all_deplibs=yes
9697 if test sequent = "$host_vendor"; then
9698 # Use $CC to link under sequent, because it throws in some extra .o
9699 # files that make .init and .fini sections work.
9700 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_libdir_flag_spec='-L$libdir'
9706 hardcode_minus_L=yes
9707 hardcode_shlibpath_var=no
9711 case $host_vendor in
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_direct=yes # is this really true???
9717 ## LD is ld it makes a PLAMLIB
9718 ## CC just makes a GrossModule.
9719 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9720 reload_cmds='$CC -r -o $output$reload_objs'
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9728 runpath_var='LD_RUN_PATH'
9729 hardcode_shlibpath_var=no
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_shlibpath_var=no
9735 export_dynamic_flag_spec='-Bexport'
9739 if test -d /usr/nec; then
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_shlibpath_var=no
9742 runpath_var=LD_RUN_PATH
9743 hardcode_runpath_var=yes
9748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9749 no_undefined_flag='$wl-z,text'
9750 archive_cmds_need_lc=no
9751 hardcode_shlibpath_var=no
9752 runpath_var='LD_RUN_PATH'
9754 if test yes = "$GCC"; then
9755 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 sysv5* | sco3.2v5* | sco5v6*)
9764 # Note: We CANNOT use -z defs as we might desire, because we do not
9765 # link with -lc, and that would cause any symbols used from libc to
9766 # always be unresolved, which means just about no library would
9767 # ever link correctly. If we're not using GNU ld we use -z text
9768 # though, which does catch some bad symbols but isn't as heavy-handed
9770 no_undefined_flag='$wl-z,text'
9771 allow_undefined_flag='$wl-z,nodefs'
9772 archive_cmds_need_lc=no
9773 hardcode_shlibpath_var=no
9774 hardcode_libdir_flag_spec='$wl-R,$libdir'
9775 hardcode_libdir_separator=':'
9776 link_all_deplibs=yes
9777 export_dynamic_flag_spec='$wl-Bexport'
9778 runpath_var='LD_RUN_PATH'
9780 if test yes = "$GCC"; then
9781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_shlibpath_var=no
9800 if test sni = "$host_vendor"; then
9802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9803 export_dynamic_flag_spec='$wl-Blargedynsym'
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9810 $as_echo "$ld_shlibs" >&6; }
9811 test no = "$ld_shlibs" && can_build_shared=no
9813 with_gnu_ld=$with_gnu_ld
9830 # Do we need to explicitly link libc?
9832 case "x$archive_cmds_need_lc" in
9834 # Assume -lc should be added
9835 archive_cmds_need_lc=yes
9837 if test yes,yes = "$GCC,$enable_shared"; then
9838 case $archive_cmds in
9840 # FIXME: we may have to deal with multi-command sequences.
9843 # Test whether the compiler implicitly links with -lc since on some
9844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845 # to ld, don't add -lc before -lgcc.
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9848 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9849 $as_echo_n "(cached) " >&6
9852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9855 (eval $ac_compile) 2>&5
9857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9858 test $ac_status = 0; } 2>conftest.err; then
9861 libobjs=conftest.$ac_objext
9863 wl=$lt_prog_compiler_wl
9864 pic_flag=$lt_prog_compiler_pic
9870 lt_save_allow_undefined_flag=$allow_undefined_flag
9871 allow_undefined_flag=
9872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9873 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876 test $ac_status = 0; }
9878 lt_cv_archive_cmds_need_lc=no
9880 lt_cv_archive_cmds_need_lc=yes
9882 allow_undefined_flag=$lt_save_allow_undefined_flag
9884 cat conftest.err 1>&5
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9890 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9891 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10052 if test yes = "$GCC"; then
10054 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10055 *) lt_awk_arg='/^libraries:/' ;;
10058 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10059 *) lt_sed_strip_eq='s|=/|/|g' ;;
10061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10062 case $lt_search_path_spec in
10064 # if the path contains ";" then we assume it to be the separator
10065 # otherwise default to the standard path separator (i.e. ":") - it is
10066 # assumed that no part of a normal pathname contains ";" but that should
10067 # okay in the real world where ";" in dirpaths is itself problematic.
10068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10074 # Ok, now we have the path, separated by spaces, we can step through it
10075 # and add multilib dir if necessary...
10076 lt_tmp_lt_search_path_spec=
10077 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10078 # ...but if some path component already ends with the multilib dir we assume
10079 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10080 case "$lt_multi_os_dir; $lt_search_path_spec " in
10081 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10085 for lt_sys_path in $lt_search_path_spec; do
10086 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10087 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10088 elif test -n "$lt_multi_os_dir"; then
10089 test -d "$lt_sys_path" && \
10090 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10093 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10094 BEGIN {RS = " "; FS = "/|\n";} {
10097 for (lt_i = NF; lt_i > 0; lt_i--) {
10098 if ($lt_i != "" && $lt_i != ".") {
10099 if ($lt_i == "..") {
10102 if (lt_count == 0) {
10103 lt_foo = "/" $lt_i lt_foo;
10110 if (lt_foo != "") { lt_freq[lt_foo]++; }
10111 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10113 # AWK program above erroneously prepends '/' to C:/dos/paths
10116 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10117 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10119 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10123 library_names_spec=
10124 libname_spec='lib$name'
10128 postuninstall_cmds=
10132 shlibpath_overrides_runpath=unknown
10134 dynamic_linker="$host_os ld.so"
10135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10136 need_lib_prefix=unknown
10137 hardcode_into_libs=no
10139 # when you set need_version to no, make sure it does not cause -set_version
10140 # flags to be left without arguments
10141 need_version=unknown
10147 version_type=linux # correct to gnu/linux during the next big refactor
10148 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10149 shlibpath_var=LIBPATH
10151 # AIX 3 has no versioning support, so we append a major version to the name.
10152 soname_spec='$libname$release$shared_ext$major'
10156 version_type=linux # correct to gnu/linux during the next big refactor
10159 hardcode_into_libs=yes
10160 if test ia64 = "$host_cpu"; then
10161 # AIX 5 supports IA64
10162 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10163 shlibpath_var=LD_LIBRARY_PATH
10165 # With GCC up to 2.95.x, collect2 would create an import file
10166 # for dependence libraries. The import file would start with
10167 # the line '#! .'. This would cause the generated library to
10168 # depend on '.', always an invalid library. This was fixed in
10169 # development snapshots of GCC prior to 3.0.
10171 aix4 | aix4.[01] | aix4.[01].*)
10172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10174 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10177 can_build_shared=no
10181 # Using Import Files as archive members, it is possible to support
10182 # filename-based versioning of shared library archives on AIX. While
10183 # this would work for both with and without runtime linking, it will
10184 # prevent static linking of such archives. So we do filename-based
10185 # shared library versioning with .so extension only, which is used
10186 # when both runtime linking and shared linking is enabled.
10187 # Unfortunately, runtime linking may impact performance, so we do
10188 # not want this to be the default eventually. Also, we use the
10189 # versioned .so libs for executables only if there is the -brtl
10190 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10191 # To allow for filename-based versioning support, we need to create
10192 # libNAME.so.V as an archive file, containing:
10193 # *) an Import File, referring to the versioned filename of the
10194 # archive as well as the shared archive member, telling the
10195 # bitwidth (32 or 64) of that shared object, and providing the
10196 # list of exported symbols of that shared object, eventually
10197 # decorated with the 'weak' keyword
10198 # *) the shared object with the F_LOADONLY flag set, to really avoid
10199 # it being seen by the linker.
10200 # At run time we better use the real file rather than another symlink,
10201 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10203 case $with_aix_soname,$aix_use_runtimelinking in
10204 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10205 # soname into executable. Probably we can add versioning support to
10206 # collect2, so additional links can be useful in future.
10207 aix,yes) # traditional libtool
10208 dynamic_linker='AIX unversionable lib.so'
10209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10210 # instead of lib<name>.a to let people know that these are not
10211 # typical AIX shared libraries.
10212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10214 aix,no) # traditional AIX only
10215 dynamic_linker='AIX lib.a(lib.so.V)'
10216 # We preserve .a as extension for shared libraries through AIX4.2
10217 # and later when we are not doing run time linking.
10218 library_names_spec='$libname$release.a $libname.a'
10219 soname_spec='$libname$release$shared_ext$major'
10221 svr4,*) # full svr4 only
10222 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10223 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10224 # We do not specify a path in Import Files, so LIBPATH fires.
10225 shlibpath_overrides_runpath=yes
10227 *,yes) # both, prefer svr4
10228 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10229 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10230 # unpreferred sharedlib libNAME.a needs extra handling
10231 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10232 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10233 # We do not specify a path in Import Files, so LIBPATH fires.
10234 shlibpath_overrides_runpath=yes
10236 *,no) # both, prefer aix
10237 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10238 library_names_spec='$libname$release.a $libname.a'
10239 soname_spec='$libname$release$shared_ext$major'
10240 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10241 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10242 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10245 shlibpath_var=LIBPATH
10252 # Since July 2007 AmigaOS4 officially supports .so libraries.
10253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10257 library_names_spec='$libname.ixlibrary $libname.a'
10258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10259 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10265 library_names_spec='$libname$shared_ext'
10266 dynamic_linker="$host_os ld.so"
10267 shlibpath_var=LIBRARY_PATH
10271 version_type=linux # correct to gnu/linux during the next big refactor
10273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10274 soname_spec='$libname$release$shared_ext$major'
10275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10279 # the default ld.so.conf also contains /usr/contrib/lib and
10280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10281 # libtool to hard-code these into programs
10284 cygwin* | mingw* | pw32* | cegcc*)
10285 version_type=windows
10290 case $GCC,$cc_basename in
10293 library_names_spec='$libname.dll.a'
10294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10295 postinstall_cmds='base_file=`basename \$file`~
10296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10297 dldir=$destdir/`dirname \$dlpath`~
10298 test -d \$dldir || mkdir -p \$dldir~
10299 $install_prog $dir/$dlname \$dldir/$dlname~
10300 chmod a+x \$dldir/$dlname~
10301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10305 dlpath=$dir/\$dldll~
10307 shlibpath_overrides_runpath=yes
10311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10312 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10317 # MinGW DLLs use traditional 'lib' prefix
10318 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10321 # pw32 DLLs use 'pw' prefix rather than 'lib'
10322 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10325 dynamic_linker='Win32 ld.exe'
10330 libname_spec='$name'
10331 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10332 library_names_spec='$libname.dll.lib'
10336 sys_lib_search_path_spec=
10339 for lt_path in $LIB
10342 # Let DOS variable expansion print the short 8.3 style file name.
10343 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10347 # Convert to MSYS style.
10348 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10351 # Convert to unix form, then to dos form, then back to unix form
10352 # but this time dos style (no spaces!) so that the unix form looks
10353 # like /cygdrive/c/PROGRA~1:/cygdr...
10354 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10355 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10356 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10359 sys_lib_search_path_spec=$LIB
10360 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10361 # It is most probably a Windows format PATH.
10362 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10366 # FIXME: find the short name or the path components, as spaces are
10367 # common. (e.g. "Program Files" -> "PROGRA~1")
10371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10372 postinstall_cmds='base_file=`basename \$file`~
10373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10374 dldir=$destdir/`dirname \$dlpath`~
10375 test -d \$dldir || mkdir -p \$dldir~
10376 $install_prog $dir/$dlname \$dldir/$dlname'
10377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10378 dlpath=$dir/\$dldll~
10380 shlibpath_overrides_runpath=yes
10381 dynamic_linker='Win32 link.exe'
10385 # Assume MSVC wrapper
10386 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10387 dynamic_linker='Win32 ld.exe'
10390 # FIXME: first we should search . and the directory the executable is in
10394 darwin* | rhapsody*)
10395 dynamic_linker="$host_os dyld"
10396 version_type=darwin
10399 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10400 soname_spec='$libname$release$major$shared_ext'
10401 shlibpath_overrides_runpath=yes
10402 shlibpath_var=DYLD_LIBRARY_PATH
10403 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10405 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10406 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10410 version_type=linux # correct to gnu/linux during the next big refactor
10413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10414 soname_spec='$libname$release$shared_ext$major'
10415 shlibpath_var=LD_LIBRARY_PATH
10418 freebsd* | dragonfly*)
10419 # DragonFly does not have aout. When/if they implement a new
10420 # versioning mechanism, adjust this.
10421 if test -x /usr/bin/objformat; then
10422 objformat=`/usr/bin/objformat`
10425 freebsd[23].*) objformat=aout ;;
10426 *) objformat=elf ;;
10429 version_type=freebsd-$objformat
10430 case $version_type in
10432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10433 soname_spec='$libname$release$shared_ext$major'
10438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10442 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10447 freebsd3.[01]* | freebsdelf3.[01]*)
10448 shlibpath_overrides_runpath=yes
10449 hardcode_into_libs=yes
10451 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10452 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10453 shlibpath_overrides_runpath=no
10454 hardcode_into_libs=yes
10456 *) # from 4.6 on, and DragonFly
10457 shlibpath_overrides_runpath=yes
10458 hardcode_into_libs=yes
10464 version_type=linux # correct to gnu/linux during the next big refactor
10467 dynamic_linker="$host_os runtime_loader"
10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10469 soname_spec='$libname$release$shared_ext$major'
10470 shlibpath_var=LIBRARY_PATH
10471 shlibpath_overrides_runpath=no
10472 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10473 hardcode_into_libs=yes
10476 hpux9* | hpux10* | hpux11*)
10477 # Give a soname corresponding to the major version so that dld.sl refuses to
10478 # link against other versions.
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.so"
10487 shlibpath_var=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10490 soname_spec='$libname$release$shared_ext$major'
10491 if test 32 = "$HPUX_IA64_MODE"; then
10492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10493 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10496 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10501 hardcode_into_libs=yes
10502 dynamic_linker="$host_os dld.sl"
10503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10506 soname_spec='$libname$release$shared_ext$major'
10507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10512 dynamic_linker="$host_os dld.sl"
10513 shlibpath_var=SHLIB_PATH
10514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10516 soname_spec='$libname$release$shared_ext$major'
10519 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10520 postinstall_cmds='chmod 555 $lib'
10521 # or fails outright, so override atomically:
10522 install_override_mode=555
10526 version_type=linux # correct to gnu/linux during the next big refactor
10529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10530 soname_spec='$libname$release$shared_ext$major'
10531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10537 irix5* | irix6* | nonstopux*)
10539 nonstopux*) version_type=nonstopux ;;
10541 if test yes = "$lt_cv_prog_gnu_ld"; then
10542 version_type=linux # correct to gnu/linux during the next big refactor
10549 soname_spec='$libname$release$shared_ext$major'
10550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10552 irix5* | nonstopux*)
10553 libsuff= shlibsuff=
10556 case $LD in # libtool.m4 will add one of these switches to LD
10557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10558 libsuff= shlibsuff= libmagic=32-bit;;
10559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10560 libsuff=32 shlibsuff=N32 libmagic=N32;;
10561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10563 *) libsuff= shlibsuff= libmagic=never-match;;
10567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10568 shlibpath_overrides_runpath=no
10569 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10570 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10571 hardcode_into_libs=yes
10574 # No shared lib support for Linux oldld, aout, or coff.
10575 linux*oldld* | linux*aout* | linux*coff*)
10580 version_type=none # Android doesn't support versioned libraries.
10583 library_names_spec='$libname$release$shared_ext'
10584 soname_spec='$libname$release$shared_ext'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10589 # This implies no fast_install, which is unacceptable.
10590 # Some rework will be needed to allow for fast_install
10591 # before this can be enabled.
10592 hardcode_into_libs=yes
10594 dynamic_linker='Android linker'
10595 # Don't embed -rpath directories since the linker doesn't support them.
10596 hardcode_libdir_flag_spec='-L$libdir'
10599 # This must be glibc/ELF.
10600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10601 version_type=linux # correct to gnu/linux during the next big refactor
10604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10605 soname_spec='$libname$release$shared_ext$major'
10606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=no
10610 # Some binutils ld are patched to set DT_RUNPATH
10611 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10612 $as_echo_n "(cached) " >&6
10614 lt_cv_shlibpath_overrides_runpath=no
10615 save_LDFLAGS=$LDFLAGS
10616 save_libdir=$libdir
10617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10630 if ac_fn_c_try_link "$LINENO"; then :
10631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10632 lt_cv_shlibpath_overrides_runpath=yes
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext conftest.$ac_ext
10637 LDFLAGS=$save_LDFLAGS
10638 libdir=$save_libdir
10642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10644 # This implies no fast_install, which is unacceptable.
10645 # Some rework will be needed to allow for fast_install
10646 # before this can be enabled.
10647 hardcode_into_libs=yes
10649 # Ideally, we could use ldconfig to report *all* directores which are
10650 # searched for libraries, however this is still not possible. Aside from not
10651 # being certain /sbin/ldconfig is available, command
10652 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10653 # even though it is searched at run-time. Try to do the best guess by
10654 # appending ld.so.conf contents (and includes) to the search path.
10655 if test -f /etc/ld.so.conf; then
10656 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' ' '`
10657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10660 # We used to test for /lib/ld.so.1 and disable shared libraries on
10661 # powerpc, because MkLinux only supported shared libraries with the
10662 # GNU dynamic linker. Since this was broken with cross compilers,
10663 # most powerpc-linux boxes support dynamic linking these days and
10664 # people can always --disable-shared, the test was removed, and we
10665 # assume the GNU/Linux dynamic linker is in use.
10666 dynamic_linker='GNU/Linux ld.so'
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=no
10677 hardcode_into_libs=yes
10678 dynamic_linker='NetBSD ld.elf_so'
10685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10686 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 dynamic_linker='NetBSD (a.out) ld.so'
10690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10691 soname_spec='$libname$release$shared_ext$major'
10692 dynamic_linker='NetBSD ld.elf_so'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes
10696 hardcode_into_libs=yes
10700 version_type=linux # correct to gnu/linux during the next big refactor
10701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711 soname_spec='$libname$release$shared_ext$major'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10715 dynamic_linker='ldqnx.so'
10718 openbsd* | bitrig*)
10720 sys_lib_dlsearch_path_spec=/usr/lib
10722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10727 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 shlibpath_overrides_runpath=yes
10734 libname_spec='$name'
10735 version_type=windows
10739 # OS/2 can only load a DLL with a base name of 8 characters or less.
10740 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10741 v=$($ECHO $release$versuffix | tr -d .-);
10742 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10743 $ECHO $n$v`$shared_ext'
10744 library_names_spec='${libname}_dll.$libext'
10745 dynamic_linker='OS/2 ld.exe'
10746 shlibpath_var=BEGINLIBPATH
10747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10749 postinstall_cmds='base_file=`basename \$file`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname~
10754 chmod a+x \$dldir/$dlname~
10755 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10756 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10759 dlpath=$dir/\$dldll~
10763 osf3* | osf4* | osf5*)
10767 soname_spec='$libname$release$shared_ext$major'
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10779 version_type=linux # correct to gnu/linux during the next big refactor
10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10783 soname_spec='$libname$release$shared_ext$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes
10786 hardcode_into_libs=yes
10787 # ldd complains unless libraries are executable
10788 postinstall_cmds='chmod +x $lib'
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10794 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=yes
10797 if test yes = "$with_gnu_ld"; then
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10806 soname_spec='$libname$release$shared_ext$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 case $host_vendor in
10810 shlibpath_overrides_runpath=no
10812 runpath_var=LD_RUN_PATH
10820 shlibpath_overrides_runpath=no
10821 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10827 if test -d /usr/nec; then
10828 version_type=linux # correct to gnu/linux during the next big refactor
10829 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10830 soname_spec='$libname$shared_ext.$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10840 soname_spec='$libname$release$shared_ext$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 hardcode_into_libs=yes
10844 if test yes = "$with_gnu_ld"; then
10845 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10847 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10854 sys_lib_dlsearch_path_spec='/usr/lib'
10858 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10859 version_type=linux # correct to gnu/linux during the next big refactor
10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=no
10865 hardcode_into_libs=yes
10869 version_type=linux # correct to gnu/linux during the next big refactor
10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871 soname_spec='$libname$release$shared_ext$major'
10872 shlibpath_var=LD_LIBRARY_PATH
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10880 $as_echo "$dynamic_linker" >&6; }
10881 test no = "$dynamic_linker" && can_build_shared=no
10883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10884 if test yes = "$GCC"; then
10885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10888 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10889 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10892 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10893 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10896 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10897 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10899 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10900 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10902 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10903 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11004 if test -n "$hardcode_libdir_flag_spec" ||
11005 test -n "$runpath_var" ||
11006 test yes = "$hardcode_automatic"; then
11008 # We can hardcode non-existent directories.
11009 if test no != "$hardcode_direct" &&
11010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11011 # have to relink, otherwise we might link with an installed library
11012 # when we should be linking with a yet-to-be-installed one
11013 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11014 test no != "$hardcode_minus_L"; then
11015 # Linking always hardcodes the temporary library directory.
11016 hardcode_action=relink
11018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11019 hardcode_action=immediate
11022 # We cannot hardcode anything, or else we can only hardcode existing
11024 hardcode_action=unsupported
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11027 $as_echo "$hardcode_action" >&6; }
11029 if test relink = "$hardcode_action" ||
11030 test yes = "$inherit_rpath"; then
11031 # Fast installation is not supported
11032 enable_fast_install=no
11033 elif test yes = "$shlibpath_overrides_runpath" ||
11034 test no = "$enable_shared"; then
11035 # Fast installation is not necessary
11036 enable_fast_install=needless
11044 if test yes != "$enable_dlopen"; then
11045 enable_dlopen=unknown
11046 enable_dlopen_self=unknown
11047 enable_dlopen_self_static=unknown
11054 lt_cv_dlopen=load_add_on
11056 lt_cv_dlopen_self=yes
11059 mingw* | pw32* | cegcc*)
11060 lt_cv_dlopen=LoadLibrary
11065 lt_cv_dlopen=dlopen
11070 # if libdl is installed we need to link against it
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11073 if ${ac_cv_lib_dl_dlopen+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 ac_check_lib_save_LIBS=$LIBS
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 /* Override any GCC internal prototype to avoid an error.
11082 Use char because int might match the return type of a GCC
11083 builtin and then its argument prototype would still apply. */
11096 if ac_fn_c_try_link "$LINENO"; then :
11097 ac_cv_lib_dl_dlopen=yes
11099 ac_cv_lib_dl_dlopen=no
11101 rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11108 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11113 lt_cv_dlopen_self=yes
11120 # Don't try to run any link tests for TPF. We know it's impossible
11121 # because TPF is a cross-compiler, and we know how we open DSOs.
11122 lt_cv_dlopen=dlopen
11124 lt_cv_dlopen_self=no
11128 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11129 if test "x$ac_cv_func_shl_load" = xyes; then :
11130 lt_cv_dlopen=shl_load
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11133 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11134 if ${ac_cv_lib_dld_shl_load+:} false; then :
11135 $as_echo_n "(cached) " >&6
11137 ac_check_lib_save_LIBS=$LIBS
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11152 return shl_load ();
11157 if ac_fn_c_try_link "$LINENO"; then :
11158 ac_cv_lib_dld_shl_load=yes
11160 ac_cv_lib_dld_shl_load=no
11162 rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11167 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11168 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11169 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11171 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11172 if test "x$ac_cv_func_dlopen" = xyes; then :
11173 lt_cv_dlopen=dlopen
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11176 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11177 if ${ac_cv_lib_dl_dlopen+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 ac_check_lib_save_LIBS=$LIBS
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dl_dlopen=yes
11203 ac_cv_lib_dl_dlopen=no
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11210 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11211 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11212 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11215 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11216 if ${ac_cv_lib_svld_dlopen+:} false; then :
11217 $as_echo_n "(cached) " >&6
11219 ac_check_lib_save_LIBS=$LIBS
11220 LIBS="-lsvld $LIBS"
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 ac_cv_lib_svld_dlopen=yes
11242 ac_cv_lib_svld_dlopen=no
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_lib_save_LIBS
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11249 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11250 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11254 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11255 if ${ac_cv_lib_dld_dld_link+:} false; then :
11256 $as_echo_n "(cached) " >&6
11258 ac_check_lib_save_LIBS=$LIBS
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11273 return dld_link ();
11278 if ac_fn_c_try_link "$LINENO"; then :
11279 ac_cv_lib_dld_dld_link=yes
11281 ac_cv_lib_dld_dld_link=no
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11288 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11289 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11290 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11311 if test no = "$lt_cv_dlopen"; then
11317 case $lt_cv_dlopen in
11319 save_CPPFLAGS=$CPPFLAGS
11320 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11322 save_LDFLAGS=$LDFLAGS
11323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11326 LIBS="$lt_cv_dlopen_libs $LIBS"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11329 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11330 if ${lt_cv_dlopen_self+:} false; then :
11331 $as_echo_n "(cached) " >&6
11333 if test yes = "$cross_compiling"; then :
11334 lt_cv_dlopen_self=cross
11336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11337 lt_status=$lt_dlunknown
11338 cat > conftest.$ac_ext <<_LT_EOF
11339 #line $LINENO "configure"
11340 #include "confdefs.h"
11349 # define LT_DLGLOBAL RTLD_GLOBAL
11352 # define LT_DLGLOBAL DL_GLOBAL
11354 # define LT_DLGLOBAL 0
11358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11359 find out it does not work in some platform. */
11360 #ifndef LT_DLLAZY_OR_NOW
11362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11365 # define LT_DLLAZY_OR_NOW DL_LAZY
11368 # define LT_DLLAZY_OR_NOW RTLD_NOW
11371 # define LT_DLLAZY_OR_NOW DL_NOW
11373 # define LT_DLLAZY_OR_NOW 0
11380 /* When -fvisibility=hidden is used, assume the code has been annotated
11381 correspondingly for the symbols needed. */
11382 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11383 int fnord () __attribute__((visibility("default")));
11386 int fnord () { return 42; }
11389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11390 int status = $lt_dlunknown;
11394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11398 else puts (dlerror ());
11400 /* dlclose (self); */
11408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11409 (eval $ac_link) 2>&5
11411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11412 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11413 (./conftest; exit; ) >&5 2>/dev/null
11415 case x$lt_status in
11416 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11417 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11418 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11421 # compilation failed
11422 lt_cv_dlopen_self=no
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11430 $as_echo "$lt_cv_dlopen_self" >&6; }
11432 if test yes = "$lt_cv_dlopen_self"; then
11433 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11435 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11436 if ${lt_cv_dlopen_self_static+:} false; then :
11437 $as_echo_n "(cached) " >&6
11439 if test yes = "$cross_compiling"; then :
11440 lt_cv_dlopen_self_static=cross
11442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11443 lt_status=$lt_dlunknown
11444 cat > conftest.$ac_ext <<_LT_EOF
11445 #line $LINENO "configure"
11446 #include "confdefs.h"
11455 # define LT_DLGLOBAL RTLD_GLOBAL
11458 # define LT_DLGLOBAL DL_GLOBAL
11460 # define LT_DLGLOBAL 0
11464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11465 find out it does not work in some platform. */
11466 #ifndef LT_DLLAZY_OR_NOW
11468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11471 # define LT_DLLAZY_OR_NOW DL_LAZY
11474 # define LT_DLLAZY_OR_NOW RTLD_NOW
11477 # define LT_DLLAZY_OR_NOW DL_NOW
11479 # define LT_DLLAZY_OR_NOW 0
11486 /* When -fvisibility=hidden is used, assume the code has been annotated
11487 correspondingly for the symbols needed. */
11488 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11489 int fnord () __attribute__((visibility("default")));
11492 int fnord () { return 42; }
11495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11496 int status = $lt_dlunknown;
11500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11504 else puts (dlerror ());
11506 /* dlclose (self); */
11514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11515 (eval $ac_link) 2>&5
11517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11519 (./conftest; exit; ) >&5 2>/dev/null
11521 case x$lt_status in
11522 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11523 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11524 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11527 # compilation failed
11528 lt_cv_dlopen_self_static=no
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11536 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11539 CPPFLAGS=$save_CPPFLAGS
11540 LDFLAGS=$save_LDFLAGS
11545 case $lt_cv_dlopen_self in
11546 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11547 *) enable_dlopen_self=unknown ;;
11550 case $lt_cv_dlopen_self_static in
11551 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11552 *) enable_dlopen_self_static=unknown ;;
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11575 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11576 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11578 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580 $as_echo "yes" >&6; }
11582 # FIXME - insert some real tests, host_os isn't really good enough
11585 if test -n "$STRIP"; then
11586 striplib="$STRIP -x"
11587 old_striplib="$STRIP -S"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11613 # Report what library types will actually be built
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11615 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11617 $as_echo "$can_build_shared" >&6; }
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11620 $as_echo_n "checking whether to build shared libraries... " >&6; }
11621 test no = "$can_build_shared" && enable_shared=no
11623 # On AIX, shared libraries and static libraries use the same namespace, and
11624 # are all built from PIC.
11627 test yes = "$enable_shared" && enable_static=no
11628 if test -n "$RANLIB"; then
11629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11630 postinstall_cmds='$RANLIB $lib'
11635 if test ia64 != "$host_cpu"; then
11636 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11637 yes,aix,yes) ;; # shared object as lib.so file only
11638 yes,svr4,*) ;; # shared object as lib.so archive member only
11639 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11645 $as_echo "$enable_shared" >&6; }
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11648 $as_echo_n "checking whether to build static libraries... " >&6; }
11649 # Make sure either enable_shared or enable_static is yes.
11650 test yes = "$enable_shared" || enable_static=yes
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11652 $as_echo "$enable_static" >&6; }
11659 ac_cpp='$CPP $CPPFLAGS'
11660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11680 ac_config_commands="$ac_config_commands libtool"
11685 # Only expand once:
11691 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11694 # Checks for programs.
11696 ac_cpp='$CPP $CPPFLAGS'
11697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700 if test -n "$ac_tool_prefix"; then
11701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704 $as_echo_n "checking for $ac_word... " >&6; }
11705 if ${ac_cv_prog_CC+:} false; then :
11706 $as_echo_n "(cached) " >&6
11708 if test -n "$CC"; then
11709 ac_cv_prog_CC="$CC" # Let the user override the test.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 if test -n "$CC"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11731 $as_echo "$CC" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test -z "$ac_cv_prog_CC"; then
11741 # Extract the first word of "gcc", so it can be a program name with args.
11742 set dummy gcc; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11746 $as_echo_n "(cached) " >&6
11748 if test -n "$ac_ct_CC"; then
11749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758 ac_cv_prog_ac_ct_CC="gcc"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11769 if test -n "$ac_ct_CC"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11771 $as_echo "$ac_ct_CC" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11777 if test "x$ac_ct_CC" = x; then
11780 case $cross_compiling:$ac_tool_warned in
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11784 ac_tool_warned=yes ;;
11789 CC="$ac_cv_prog_CC"
11792 if test -z "$CC"; then
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}cc; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_prog_CC+:} false; then :
11799 $as_echo_n "(cached) " >&6
11801 if test -n "$CC"; then
11802 ac_cv_prog_CC="$CC" # Let the user override the test.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_CC="${ac_tool_prefix}cc"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11822 if test -n "$CC"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11824 $as_echo "$CC" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11833 if test -z "$CC"; then
11834 # Extract the first word of "cc", so it can be a program name with args.
11835 set dummy cc; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_CC+:} false; then :
11839 $as_echo_n "(cached) " >&6
11841 if test -n "$CC"; then
11842 ac_cv_prog_CC="$CC" # Let the user override the test.
11844 ac_prog_rejected=no
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11853 ac_prog_rejected=yes
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 if test $ac_prog_rejected = yes; then
11865 # We found a bogon in the path, so make sure we never use it.
11866 set dummy $ac_cv_prog_CC
11868 if test $# != 0; then
11869 # We chose a different compiler from the bogus one.
11870 # However, it has the same basename, so the bogon will be chosen
11871 # first if we set CC to just the basename; use the full file name.
11873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11879 if test -n "$CC"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11881 $as_echo "$CC" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11889 if test -z "$CC"; then
11890 if test -n "$ac_tool_prefix"; then
11891 for ac_prog in cl.exe
11893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_CC+:} false; then :
11898 $as_echo_n "(cached) " >&6
11900 if test -n "$CC"; then
11901 ac_cv_prog_CC="$CC" # Let the user override the test.
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 if test -n "$CC"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11923 $as_echo "$CC" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11930 test -n "$CC" && break
11933 if test -z "$CC"; then
11935 for ac_prog in cl.exe
11937 # Extract the first word of "$ac_prog", so it can be a program name with args.
11938 set dummy $ac_prog; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11942 $as_echo_n "(cached) " >&6
11944 if test -n "$ac_ct_CC"; then
11945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_ac_ct_CC="$ac_prog"
11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11965 if test -n "$ac_ct_CC"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11967 $as_echo "$ac_ct_CC" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11974 test -n "$ac_ct_CC" && break
11977 if test "x$ac_ct_CC" = x; then
11980 case $cross_compiling:$ac_tool_warned in
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11984 ac_tool_warned=yes ;;
11993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995 as_fn_error $? "no acceptable C compiler found in \$PATH
11996 See \`config.log' for more details" "$LINENO" 5; }
11998 # Provide some information about the compiler.
11999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12002 for ac_option in --version -v -V -qversion; do
12003 { { ac_try="$ac_compiler $ac_option >&5"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12009 $as_echo "$ac_try_echo"; } >&5
12010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12012 if test -s conftest.err; then
12014 ... rest of stderr output deleted ...
12015 10q' conftest.err >conftest.er1
12016 cat conftest.er1 >&5
12018 rm -f conftest.er1 conftest.err
12019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12020 test $ac_status = 0; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12025 if ${ac_cv_c_compiler_gnu+:} false; then :
12026 $as_echo_n "(cached) " >&6
12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12042 if ac_fn_c_try_compile "$LINENO"; then :
12043 ac_compiler_gnu=yes
12047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12053 if test $ac_compiler_gnu = yes; then
12058 ac_test_CFLAGS=${CFLAGS+set}
12059 ac_save_CFLAGS=$CFLAGS
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12062 if ${ac_cv_prog_cc_g+:} false; then :
12063 $as_echo_n "(cached) " >&6
12065 ac_save_c_werror_flag=$ac_c_werror_flag
12066 ac_c_werror_flag=yes
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12080 if ac_fn_c_try_compile "$LINENO"; then :
12081 ac_cv_prog_cc_g=yes
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12095 if ac_fn_c_try_compile "$LINENO"; then :
12098 ac_c_werror_flag=$ac_save_c_werror_flag
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12111 if ac_fn_c_try_compile "$LINENO"; then :
12112 ac_cv_prog_cc_g=yes
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 ac_c_werror_flag=$ac_save_c_werror_flag
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12122 $as_echo "$ac_cv_prog_cc_g" >&6; }
12123 if test "$ac_test_CFLAGS" = set; then
12124 CFLAGS=$ac_save_CFLAGS
12125 elif test $ac_cv_prog_cc_g = yes; then
12126 if test "$GCC" = yes; then
12132 if test "$GCC" = yes; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12140 if ${ac_cv_prog_cc_c89+:} false; then :
12141 $as_echo_n "(cached) " >&6
12143 ac_cv_prog_cc_c89=no
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147 #include <stdarg.h>
12150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12151 struct buf { int x; };
12152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12153 static char *e (p, i)
12159 static char *f (char * (*g) (char **, int), char **p, ...)
12164 s = g (p, va_arg (v,int));
12169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12170 function prototypes and stuff, but not '\xHH' hex character constants.
12171 These don't provoke an error unfortunately, instead are silently treated
12172 as 'x'. The following induces an error, until -std is added to get
12173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12174 array size at least. It's necessary to write '\x00'==0 to get something
12175 that's true only with -std. */
12176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12179 inside strings and character constants. */
12181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12183 int test (int i, double x);
12184 struct s1 {int (*f) (int a);};
12185 struct s2 {int (*f) (double a);};
12186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12200 CC="$ac_save_CC $ac_arg"
12201 if ac_fn_c_try_compile "$LINENO"; then :
12202 ac_cv_prog_cc_c89=$ac_arg
12204 rm -f core conftest.err conftest.$ac_objext
12205 test "x$ac_cv_prog_cc_c89" != "xno" && break
12207 rm -f conftest.$ac_ext
12212 case "x$ac_cv_prog_cc_c89" in
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12215 $as_echo "none needed" >&6; } ;;
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12218 $as_echo "unsupported" >&6; } ;;
12220 CC="$CC $ac_cv_prog_cc_c89"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12224 if test "x$ac_cv_prog_cc_c89" != xno; then :
12229 ac_cpp='$CPP $CPPFLAGS'
12230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
12236 $as_echo_n "checking $CC dependency flag... " >&6; }
12237 echo 'void f(){}' >conftest.c
12238 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
12241 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
12244 DEPFLAG="-MM" # dunno do something
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
12248 $as_echo "$DEPFLAG" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12253 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12255 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12256 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12257 $as_echo_n "(cached) " >&6
12259 cat >conftest.make <<\_ACEOF
12262 @echo '@@@%%%=$(MAKE)=@@@%%%'
12264 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12266 *@@@%%%=?*=@@@%%%*)
12267 eval ac_cv_prog_make_${ac_make}_set=yes;;
12269 eval ac_cv_prog_make_${ac_make}_set=no;;
12271 rm -f conftest.make
12273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12275 $as_echo "yes" >&6; }
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 SET_MAKE="MAKE=${MAKE-make}"
12284 # Extra (sp)lint flags for NetBSD
12287 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
12289 *) LINTFLAGS="$LINTFLAGS"
12295 $as_echo "#define WINVER 0x0502" >>confdefs.h
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12301 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12302 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12303 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12304 $as_echo_n "(cached) " >&6
12307 echo 'void f(void){}' >conftest.c
12308 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12309 eval "cv_prog_cc_flag_$cache=yes"
12311 eval "cv_prog_cc_flag_$cache=no"
12313 rm -f conftest conftest.o conftest.c
12317 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319 $as_echo "yes" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12332 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
12333 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12334 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12335 $as_echo_n "(cached) " >&6
12338 echo 'void f(void){}' >conftest.c
12339 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12340 eval "cv_prog_cc_flag_$cache=yes"
12342 eval "cv_prog_cc_flag_$cache=no"
12344 rm -f conftest conftest.o conftest.c
12348 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350 $as_echo "yes" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12361 # routine to copy files
12362 # argument 1 is a list of files (relative to the source dir)
12363 # argument 2 is a destination directory (relative to the current
12364 # working directory
12367 # copy all .h files in the dir at argument 1
12368 # (relative to source) to the dir at argument 2
12369 # (relative to current dir)
12372 # Checks for typedefs, structures, and compiler characteristics.
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12374 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12375 if ${ac_cv_c_const+:} false; then :
12376 $as_echo_n "(cached) " >&6
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12385 #ifndef __cplusplus
12386 /* Ultrix mips cc rejects this sort of thing. */
12387 typedef int charset[2];
12388 const charset cs = { 0, 0 };
12389 /* SunOS 4.1.1 cc rejects this. */
12390 char const *const *pcpcc;
12392 /* NEC SVR4.0.2 mips cc rejects this. */
12393 struct point {int x, y;};
12394 static struct point const zero = {0,0};
12395 /* AIX XL C 1.02.0.0 rejects this.
12396 It does not let you subtract one const X* pointer from another in
12397 an arm of an if-expression whose if-part is not a constant
12399 const char *g = "string";
12400 pcpcc = &g + (g ? g-g : 0);
12401 /* HPUX 7.0 cc rejects these. */
12403 ppc = (char**) pcpcc;
12404 pcpcc = (char const *const *) ppc;
12405 { /* SCO 3.2v4 cc rejects this sort of thing. */
12408 char const *s = 0 ? (char *) 0 : (char const *) 0;
12413 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12414 int x[] = {25, 17};
12415 const int *foo = &x[0];
12418 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12419 typedef const int *iptr;
12423 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12424 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12425 struct s { int j; const int *ap[3]; } bx;
12426 struct s *b = &bx; b->j = 5;
12428 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12429 const int foo = 10;
12430 if (!foo) return 0;
12432 return !cs[0] && !zero.x;
12439 if ac_fn_c_try_compile "$LINENO"; then :
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12447 $as_echo "$ac_cv_c_const" >&6; }
12448 if test $ac_cv_c_const = no; then
12450 $as_echo "#define const /**/" >>confdefs.h
12455 ac_cpp='$CPP $CPPFLAGS'
12456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 if test "x$CFLAGS" = "x" ; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
12464 $as_echo_n "checking whether $CC supports -g... " >&6; }
12465 cache=`echo g | sed 'y%.=/+-%___p_%'`
12466 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12467 $as_echo_n "(cached) " >&6
12470 echo 'void f(void){}' >conftest.c
12471 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
12472 eval "cv_prog_cc_flag_$cache=yes"
12474 eval "cv_prog_cc_flag_$cache=no"
12476 rm -f conftest conftest.o conftest.c
12480 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482 $as_echo "yes" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
12495 $as_echo_n "checking whether $CC supports -O2... " >&6; }
12496 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
12497 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12498 $as_echo_n "(cached) " >&6
12501 echo 'void f(void){}' >conftest.c
12502 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
12503 eval "cv_prog_cc_flag_$cache=yes"
12505 eval "cv_prog_cc_flag_$cache=no"
12507 rm -f conftest conftest.o conftest.c
12511 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12513 $as_echo "yes" >&6; }
12515 CFLAGS="-O2 $CFLAGS"
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12527 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
12528 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12529 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12530 $as_echo_n "(cached) " >&6
12533 echo 'void f(void){}' >conftest.c
12534 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12535 eval "cv_prog_cc_flag_$cache=yes"
12537 eval "cv_prog_cc_flag_$cache=no"
12539 rm -f conftest conftest.o conftest.c
12543 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545 $as_echo "yes" >&6; }
12547 CFLAGS="-Wall $CFLAGS"
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
12558 $as_echo_n "checking whether $CC supports -W... " >&6; }
12559 cache=`echo W | sed 'y%.=/+-%___p_%'`
12560 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12561 $as_echo_n "(cached) " >&6
12564 echo 'void f(void){}' >conftest.c
12565 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12566 eval "cv_prog_cc_flag_$cache=yes"
12568 eval "cv_prog_cc_flag_$cache=no"
12570 rm -f conftest conftest.o conftest.c
12574 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12576 $as_echo "yes" >&6; }
12578 CFLAGS="-W $CFLAGS"
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12589 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12590 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12591 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12592 $as_echo_n "(cached) " >&6
12595 echo 'void f(void){}' >conftest.c
12596 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12597 eval "cv_prog_cc_flag_$cache=yes"
12599 eval "cv_prog_cc_flag_$cache=no"
12601 rm -f conftest conftest.o conftest.c
12605 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607 $as_echo "yes" >&6; }
12609 CFLAGS="-Wwrite-strings $CFLAGS"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12620 $as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12621 cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12622 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12623 $as_echo_n "(cached) " >&6
12626 echo 'void f(void){}' >conftest.c
12627 if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12628 eval "cv_prog_cc_flag_$cache=yes"
12630 eval "cv_prog_cc_flag_$cache=no"
12632 rm -f conftest conftest.o conftest.c
12636 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12640 CFLAGS="-Wstrict-prototypes $CFLAGS"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12648 #ACX_CHECK_COMPILER_FLAG(Wshadow, [CFLAGS="-Wshadow $CFLAGS"])
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-function" >&5
12652 $as_echo_n "checking whether $CC supports -Wunused-function... " >&6; }
12653 cache=`echo Wunused-function | sed 'y%.=/+-%___p_%'`
12654 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12655 $as_echo_n "(cached) " >&6
12658 echo 'void f(void){}' >conftest.c
12659 if test -z "`$CC $CPPFLAGS $CFLAGS -Wunused-function -c conftest.c 2>&1`"; then
12660 eval "cv_prog_cc_flag_$cache=yes"
12662 eval "cv_prog_cc_flag_$cache=no"
12664 rm -f conftest conftest.o conftest.c
12668 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12670 $as_echo "yes" >&6; }
12672 CFLAGS="-Wunused-function $CFLAGS"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
12683 $as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
12684 cache=`echo Wmissing-prototypes | sed 'y%.=/+-%___p_%'`
12685 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12686 $as_echo_n "(cached) " >&6
12689 echo 'void f(void){}' >conftest.c
12690 if test -z "`$CC $CPPFLAGS $CFLAGS -Wmissing-prototypes -c conftest.c 2>&1`"; then
12691 eval "cv_prog_cc_flag_$cache=yes"
12693 eval "cv_prog_cc_flag_$cache=no"
12695 rm -f conftest conftest.o conftest.c
12699 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701 $as_echo "yes" >&6; }
12703 CFLAGS="-Wmissing-prototypes $CFLAGS"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12712 for ac_header in getopt.h time.h
12714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12718 cat >>confdefs.h <<_ACEOF
12719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12728 for ac_header in winsock2.h ws2tcpip.h
12730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12734 cat >>confdefs.h <<_ACEOF
12735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12742 # end mingw32 tests
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12748 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
12749 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
12750 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12751 $as_echo_n "(cached) " >&6
12754 echo 'void f(void){}' >conftest.c
12755 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12756 eval "cv_prog_cc_flag_$cache=yes"
12758 eval "cv_prog_cc_flag_$cache=no"
12760 rm -f conftest conftest.o conftest.c
12764 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12766 $as_echo "yes" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12779 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
12780 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12781 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12782 $as_echo_n "(cached) " >&6
12785 echo 'void f(void){}' >conftest.c
12786 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12787 eval "cv_prog_cc_flag_$cache=yes"
12789 eval "cv_prog_cc_flag_$cache=no"
12791 rm -f conftest conftest.o conftest.c
12795 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12797 $as_echo "yes" >&6; }
12799 ERRFLAG="$ERRFLAG -Wall"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802 $as_echo "no" >&6; }
12804 ERRFLAG="$ERRFLAG -errfmt"
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12812 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12813 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12814 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12815 $as_echo_n "(cached) " >&6
12818 echo 'void f(void){}' >conftest.c
12819 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12820 eval "cv_prog_cc_flag_$cache=yes"
12822 eval "cv_prog_cc_flag_$cache=no"
12824 rm -f conftest conftest.o conftest.c
12828 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830 $as_echo "yes" >&6; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12843 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
12844 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12845 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12846 $as_echo_n "(cached) " >&6
12849 echo 'void f(void){}' >conftest.c
12850 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12851 eval "cv_prog_cc_flag_$cache=yes"
12853 eval "cv_prog_cc_flag_$cache=no"
12855 rm -f conftest conftest.o conftest.c
12859 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12872 for ac_header in getopt.h time.h
12874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12878 cat >>confdefs.h <<_ACEOF
12879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
12891 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12892 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
12893 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12894 $as_echo_n "(cached) " >&6
12898 #include "confdefs.h"
12899 #include <stdlib.h>
12901 #include <sys/time.h>
12905 #include <unistd.h>
12907 #ifdef HAVE_GETOPT_H
12908 #include <getopt.h>
12913 char **opts = NULL;
12918 const char* str = NULL;
12920 msg.msg_control = 0;
12921 t = ctime_r(&time, buf);
12924 a = getopt(2, opts, "a");
12926 str = gai_strerror(0);
12927 if(str && t && tv.tv_usec && msg.msg_control)
12932 echo 'void f(){}' >>conftest.c
12933 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12934 eval "cv_prog_cc_flag_needed_$cache=no"
12937 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12938 eval "cv_prog_cc_flag_needed_$cache=yes"
12940 eval "cv_prog_cc_flag_needed_$cache=fail"
12941 #echo 'Test with flag fails too!'
12943 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12944 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12949 rm -f conftest conftest.c conftest.o
12953 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955 $as_echo "yes" >&6; }
12957 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
12959 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962 #echo 'Test with flag is no!'
12964 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12965 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12971 $as_echo "failed" >&6; }
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
12982 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12983 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12984 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12985 $as_echo_n "(cached) " >&6
12989 #include "confdefs.h"
12990 #include <stdlib.h>
12992 #include <sys/time.h>
12996 #include <unistd.h>
12998 #ifdef HAVE_GETOPT_H
12999 #include <getopt.h>
13004 char **opts = NULL;
13009 const char* str = NULL;
13011 msg.msg_control = 0;
13012 t = ctime_r(&time, buf);
13015 a = getopt(2, opts, "a");
13017 str = gai_strerror(0);
13018 if(str && t && tv.tv_usec && msg.msg_control)
13023 echo 'void f(){}' >>conftest.c
13024 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13025 eval "cv_prog_cc_flag_needed_$cache=no"
13028 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13029 eval "cv_prog_cc_flag_needed_$cache=yes"
13031 eval "cv_prog_cc_flag_needed_$cache=fail"
13032 #echo 'Test with flag fails too!'
13034 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13035 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13040 rm -f conftest conftest.c conftest.o
13044 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046 $as_echo "yes" >&6; }
13048 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
13050 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 #echo 'Test with flag is no!'
13055 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
13056 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13062 $as_echo "failed" >&6; }
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
13073 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
13074 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
13075 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13076 $as_echo_n "(cached) " >&6
13080 #include <stdbool.h>
13087 echo 'void f(){}' >>conftest.c
13088 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13089 eval "cv_prog_cc_flag_needed_$cache=no"
13092 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
13093 eval "cv_prog_cc_flag_needed_$cache=yes"
13095 eval "cv_prog_cc_flag_needed_$cache=fail"
13096 #echo 'Test with flag fails too!'
13098 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13099 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13104 rm -f conftest conftest.c conftest.o
13108 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13110 $as_echo "yes" >&6; }
13112 CFLAGS="$CFLAGS $C99FLAG"
13114 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 #echo 'Test with flag is no!'
13119 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
13120 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13126 $as_echo "failed" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC" >&5
13137 $as_echo_n "checking whether we need -D_BSD_SOURCE -D_DEFAULT_SOURCE as a flag for $CC... " >&6; }
13138 cache=_D_BSD_SOURCE__D_DEFAULT_SOURCE
13139 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13140 $as_echo_n "(cached) " >&6
13152 echo 'void f(){}' >>conftest.c
13153 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13154 eval "cv_prog_cc_flag_needed_$cache=no"
13157 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13158 eval "cv_prog_cc_flag_needed_$cache=yes"
13160 eval "cv_prog_cc_flag_needed_$cache=fail"
13161 #echo 'Test with flag fails too!'
13163 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
13164 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
13169 rm -f conftest conftest.c conftest.o
13173 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13175 $as_echo "yes" >&6; }
13177 CFLAGS="$CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE"
13179 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13182 #echo 'Test with flag is no!'
13184 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1"
13185 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE -D_DEFAULT_SOURCE $ERRFLAG -c conftest.c 2>&1`
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13191 $as_echo "failed" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
13202 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
13203 cache=_D_GNU_SOURCE
13204 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13205 $as_echo_n "(cached) " >&6
13209 #include <netinet/in.h>
13212 struct in6_pktinfo inf;
13213 int a = (int)sizeof(inf);
13217 echo 'void f(){}' >>conftest.c
13218 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13219 eval "cv_prog_cc_flag_needed_$cache=no"
13222 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
13223 eval "cv_prog_cc_flag_needed_$cache=yes"
13225 eval "cv_prog_cc_flag_needed_$cache=fail"
13226 #echo 'Test with flag fails too!'
13228 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
13229 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
13234 rm -f conftest conftest.c conftest.o
13238 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13242 CFLAGS="$CFLAGS -D_GNU_SOURCE"
13244 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247 #echo 'Test with flag is no!'
13249 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
13250 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13256 $as_echo "failed" >&6; }
13263 # check again for GNU_SOURCE for setresgid. May fail if setresgid
13264 # is not available at all. -D_FRSRESGID is to make this check unique.
13265 # otherwise we would get the previous cached result.
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
13270 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
13271 cache=_D_GNU_SOURCE__D_FRSRESGID
13272 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13273 $as_echo_n "(cached) " >&6
13277 #include <unistd.h>
13280 int a = setresgid(0,0,0);
13281 a = setresuid(0,0,0);
13285 echo 'void f(){}' >>conftest.c
13286 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13287 eval "cv_prog_cc_flag_needed_$cache=no"
13290 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
13291 eval "cv_prog_cc_flag_needed_$cache=yes"
13293 eval "cv_prog_cc_flag_needed_$cache=fail"
13294 #echo 'Test with flag fails too!'
13296 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
13297 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
13302 rm -f conftest conftest.c conftest.o
13306 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13308 $as_echo "yes" >&6; }
13310 CFLAGS="$CFLAGS -D_GNU_SOURCE"
13312 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 #echo 'Test with flag is no!'
13317 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
13318 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13324 $as_echo "failed" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
13335 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
13336 cache=_D_POSIX_C_SOURCE_200112
13337 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13338 $as_echo_n "(cached) " >&6
13342 #include "confdefs.h"
13353 const char* str = NULL;
13354 t = ctime_r(&time, buf);
13355 str = gai_strerror(0);
13361 echo 'void f(){}' >>conftest.c
13362 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13363 eval "cv_prog_cc_flag_needed_$cache=no"
13366 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
13367 eval "cv_prog_cc_flag_needed_$cache=yes"
13369 eval "cv_prog_cc_flag_needed_$cache=fail"
13370 #echo 'Test with flag fails too!'
13372 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
13373 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
13378 rm -f conftest conftest.c conftest.o
13382 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13384 $as_echo "yes" >&6; }
13386 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
13388 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13391 #echo 'Test with flag is no!'
13393 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
13394 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13400 $as_echo "failed" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
13411 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
13412 cache=_D__EXTENSIONS__
13413 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
13414 $as_echo_n "(cached) " >&6
13418 #include "confdefs.h"
13419 #include <stdlib.h>
13421 #include <sys/time.h>
13425 #include <unistd.h>
13426 #ifdef HAVE_GETOPT_H
13427 #include <getopt.h>
13432 char **opts = NULL;
13436 a = getopt(2, opts, "a");
13443 echo 'void f(){}' >>conftest.c
13444 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
13445 eval "cv_prog_cc_flag_needed_$cache=no"
13448 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
13449 eval "cv_prog_cc_flag_needed_$cache=yes"
13451 eval "cv_prog_cc_flag_needed_$cache=fail"
13452 #echo 'Test with flag fails too!'
13454 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
13455 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
13460 rm -f conftest conftest.c conftest.o
13464 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13466 $as_echo "yes" >&6; }
13468 CFLAGS="$CFLAGS -D__EXTENSIONS__"
13470 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473 #echo 'Test with flag is no!'
13475 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
13476 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13482 $as_echo "failed" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13492 $as_echo_n "checking for inline... " >&6; }
13493 if ${ac_cv_c_inline+:} false; then :
13494 $as_echo_n "(cached) " >&6
13497 for ac_kw in inline __inline__ __inline; do
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 #ifndef __cplusplus
13502 static $ac_kw foo_t static_foo () {return 0; }
13503 $ac_kw foo_t foo () {return 0; }
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508 ac_cv_c_inline=$ac_kw
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 test "$ac_cv_c_inline" != no && break
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13516 $as_echo "$ac_cv_c_inline" >&6; }
13518 case $ac_cv_c_inline in
13521 case $ac_cv_c_inline in
13523 *) ac_val=$ac_cv_c_inline;;
13525 cat >>confdefs.h <<_ACEOF
13526 #ifndef __cplusplus
13527 #define inline $ac_val
13533 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
13534 if test "x$ac_cv_type_int8_t" = xyes; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define int8_t char
13544 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13545 if test "x$ac_cv_type_int16_t" = xyes; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define int16_t short
13555 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13556 if test "x$ac_cv_type_int32_t" = xyes; then :
13560 cat >>confdefs.h <<_ACEOF
13561 #define int32_t int
13566 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13567 if test "x$ac_cv_type_int64_t" = xyes; then :
13571 cat >>confdefs.h <<_ACEOF
13572 #define int64_t long long
13577 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
13578 if test "x$ac_cv_type_uint8_t" = xyes; then :
13582 cat >>confdefs.h <<_ACEOF
13583 #define uint8_t unsigned char
13588 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13589 if test "x$ac_cv_type_uint16_t" = xyes; then :
13593 cat >>confdefs.h <<_ACEOF
13594 #define uint16_t unsigned short
13599 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13600 if test "x$ac_cv_type_uint32_t" = xyes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define uint32_t unsigned int
13610 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13611 if test "x$ac_cv_type_uint64_t" = xyes; then :
13615 cat >>confdefs.h <<_ACEOF
13616 #define uint64_t unsigned long long
13623 # Extract the first word of "doxygen", so it can be a program name with args.
13624 set dummy doxygen; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_prog_doxygen+:} false; then :
13628 $as_echo_n "(cached) " >&6
13630 if test -n "$doxygen"; then
13631 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_prog_doxygen="doxygen"
13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13650 doxygen=$ac_cv_prog_doxygen
13651 if test -n "$doxygen"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13653 $as_echo "$doxygen" >&6; }
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13661 # check to see if libraries are needed for these functions.
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13663 $as_echo_n "checking for library containing socket... " >&6; }
13664 if ${ac_cv_search_socket+:} false; then :
13665 $as_echo_n "(cached) " >&6
13667 ac_func_search_save_LIBS=$LIBS
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13671 /* Override any GCC internal prototype to avoid an error.
13672 Use char because int might match the return type of a GCC
13673 builtin and then its argument prototype would still apply. */
13686 for ac_lib in '' socket; do
13687 if test -z "$ac_lib"; then
13688 ac_res="none required"
13691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13693 if ac_fn_c_try_link "$LINENO"; then :
13694 ac_cv_search_socket=$ac_res
13696 rm -f core conftest.err conftest.$ac_objext \
13698 if ${ac_cv_search_socket+:} false; then :
13702 if ${ac_cv_search_socket+:} false; then :
13705 ac_cv_search_socket=no
13707 rm conftest.$ac_ext
13708 LIBS=$ac_func_search_save_LIBS
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13711 $as_echo "$ac_cv_search_socket" >&6; }
13712 ac_res=$ac_cv_search_socket
13713 if test "$ac_res" != no; then :
13714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13719 $as_echo_n "checking for library containing inet_pton... " >&6; }
13720 if ${ac_cv_search_inet_pton+:} false; then :
13721 $as_echo_n "(cached) " >&6
13723 ac_func_search_save_LIBS=$LIBS
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13737 return inet_pton ();
13742 for ac_lib in '' nsl; do
13743 if test -z "$ac_lib"; then
13744 ac_res="none required"
13747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13749 if ac_fn_c_try_link "$LINENO"; then :
13750 ac_cv_search_inet_pton=$ac_res
13752 rm -f core conftest.err conftest.$ac_objext \
13754 if ${ac_cv_search_inet_pton+:} false; then :
13758 if ${ac_cv_search_inet_pton+:} false; then :
13761 ac_cv_search_inet_pton=no
13763 rm conftest.$ac_ext
13764 LIBS=$ac_func_search_save_LIBS
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13767 $as_echo "$ac_cv_search_inet_pton" >&6; }
13768 ac_res=$ac_cv_search_inet_pton
13769 if test "$ac_res" != no; then :
13770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13777 # Check whether --with-drill was given.
13778 if test "${with_drill+set}" = set; then :
13779 withval=$with_drill;
13784 if test x_$with_drill != x_no ; then
13787 INSTALL_DRILL=install-drill
13789 UNINSTALL_DRILL=uninstall-drill
13791 CLEAN_DRILL=clean-drill
13793 LINT_DRILL=lint-drill
13795 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13797 A config.h was detected in the drill subdirectory.
13798 This does not work with the --with-drill option.
13799 Please remove the config.h from the drill subdirectory
13800 or do not use the --with-drill option." "$LINENO" 5
13817 # Check whether --with-examples was given.
13818 if test "${with_examples+set}" = set; then :
13819 withval=$with_examples;
13824 if test x_$with_examples != x_no ; then
13827 INSTALL_EXAMPLES=install-examples
13829 UNINSTALL_EXAMPLES=uninstall-examples
13831 CLEAN_EXAMPLES=clean-examples
13833 LINT_EXAMPLES=lint-examples
13835 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13837 A config.h was detected in the examples subdirectory.
13838 This does not work with the --with-examples option.
13839 Please remove the config.h from the examples subdirectory
13840 or do not use the --with-examples option." "$LINENO" 5
13845 INSTALL_EXAMPLES=""
13847 UNINSTALL_EXAMPLES=""
13855 # add option to disable installation of ldns-config script
13856 # Check whether --enable-ldns-config was given.
13857 if test "${enable_ldns_config+set}" = set; then :
13858 enableval=$enable_ldns_config; enable_ldns_config=$enableval
13860 enable_ldns_config=yes
13863 if test "x$enable_ldns_config" = xyes; then
13864 INSTALL_CONFIG=install-config
13866 INSTALL_CONFIG_MANPAGE=install-config-manpage
13868 UNINSTALL_CONFIG=uninstall-config
13870 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13875 INSTALL_CONFIG_MANPAGE=""
13877 UNINSTALL_CONFIG=""
13879 UNINSTALL_CONFIG_MANPAGE=""
13883 # add option to disable library printing to stderr
13884 # Check whether --enable-stderr-msgs was given.
13885 if test "${enable_stderr_msgs+set}" = set; then :
13886 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13888 enable_stderr_msgs=no
13891 case "$enable_stderr_msgs" in
13895 cat >>confdefs.h <<_ACEOF
13896 #define STDERR_MSGS 1
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll(2)" >&5
13903 $as_echo_n "checking for poll(2)... " >&6; }
13904 if ${ax_cv_have_poll+:} false; then :
13905 $as_echo_n "(cached) " >&6
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13913 int rc; rc = poll((struct pollfd *)(0), 0, 0);
13918 if ac_fn_c_try_link "$LINENO"; then :
13919 ax_cv_have_poll=yes
13923 rm -f core conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13927 if test "${ax_cv_have_poll}" = "yes"; then :
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929 $as_echo "yes" >&6; }
13930 ax_config_feature_poll=yes
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934 $as_echo "no" >&6; }
13935 ax_config_feature_poll=no
13940 # Check whether --enable-poll was given.
13941 if test "${enable_poll+set}" = set; then :
13942 enableval=$enable_poll;
13943 case "${enableval}" in
13945 ax_config_feature_poll="yes"
13948 ax_config_feature_poll="no"
13951 as_fn_error $? "bad value ${enableval} for feature --poll" "$LINENO" 5
13958 if test "$ax_config_feature_poll" = yes; then :
13959 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13962 if test "$ax_config_feature_verbose" = yes; then :
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: Feature poll is enabled" >&5
13964 $as_echo "$as_me: Feature poll is enabled" >&6;}
13970 if test "$ax_config_feature_verbose" = yes; then :
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: Feature poll is disabled" >&5
13972 $as_echo "$as_me: Feature poll is disabled" >&6;}
13984 ldns_with_pyldns=no
13985 ldns_with_pyldnsx=no
13987 # Check whether --with-pyldns was given.
13988 if test "${with_pyldns+set}" = set; then :
13989 withval=$with_pyldns;
13994 ldns_have_python=no
13995 if test x_$withval != x_no; then
13996 # ===========================================================================
13997 # http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13998 # ===========================================================================
14002 # AX_PYTHON_DEVEL([version])
14006 # Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
14007 # in your configure.ac.
14009 # This macro checks for Python and tries to get the include path to
14010 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
14011 # output variables. It also exports $(PYTHON_EXTRA_LIBS) and
14012 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
14014 # You can search for some particular version of Python by passing a
14015 # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
14016 # note that you *have* to pass also an operator along with the version to
14017 # match, and pay special attention to the single quotes surrounding the
14018 # version number. Don't use "PYTHON_VERSION" for this: that environment
14019 # variable is declared as precious and thus reserved for the end-user.
14021 # This macro should work for all versions of Python >= 2.1.0. As an end
14022 # user, you can disable the check for the python version by setting the
14023 # PYTHON_NOVERSIONCHECK environment variable to something else than the
14026 # If you need to use this macro for an older Python version, please
14027 # contact the authors. We're always open for feedback.
14031 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
14032 # Copyright (c) 2009 Alan W. Irwin
14033 # Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
14034 # Copyright (c) 2009 Andrew Collier
14035 # Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
14036 # Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
14037 # Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
14039 # This program is free software: you can redistribute it and/or modify it
14040 # under the terms of the GNU General Public License as published by the
14041 # Free Software Foundation, either version 3 of the License, or (at your
14042 # option) any later version.
14044 # This program is distributed in the hope that it will be useful, but
14045 # WITHOUT ANY WARRANTY; without even the implied warranty of
14046 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14047 # Public License for more details.
14049 # You should have received a copy of the GNU General Public License along
14050 # with this program. If not, see <http://www.gnu.org/licenses/>.
14052 # As a special exception, the respective Autoconf Macro's copyright owner
14053 # gives unlimited permission to copy, distribute and modify the configure
14054 # scripts that are the output of Autoconf when processing the Macro. You
14055 # need not follow the terms of the GNU General Public License when using
14056 # or distributing such scripts, even though portions of the text of the
14057 # Macro appear in them. The GNU General Public License (GPL) does govern
14058 # all other use of the material that constitutes the Autoconf Macro.
14060 # This special exception to the GPL applies to versions of the Autoconf
14061 # Macro released by the Autoconf Archive. When you make and distribute a
14062 # modified version of the Autoconf Macro, you may extend this special
14063 # exception to the GPL to apply to your modified version as well.
14067 # This is what autoupdate's m4 run will expand. It fires
14068 # the warning (with _au_warn_XXX), outputs it into the
14069 # updated configure.ac (with AC_DIAGNOSE), and then outputs
14070 # the replacement expansion.
14073 # This is an auxiliary macro that is also run when
14074 # autoupdate runs m4. It simply calls m4_warning, but
14075 # we need a wrapper so that each warning is emitted only
14076 # once. We break the quoting in m4_warning's argument in
14077 # order to expand this macro's arguments, not AU_DEFUN's.
14080 # Finally, this is the expansion that is picked up by
14081 # autoconf. It tells the user to run autoupdate, and
14082 # then outputs the replacement expansion. We do not care
14083 # about autoupdate's warning because that contains
14084 # information on what to do *after* running autoupdate.
14088 ac_save_LIBS="$LIBS"
14091 # Allow the use of a (user set) custom python version
14095 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14096 set dummy python$PYTHON_VERSION; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if ${ac_cv_path_PYTHON+:} false; then :
14100 $as_echo_n "(cached) " >&6
14104 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14114 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 PYTHON=$ac_cv_path_PYTHON
14126 if test -n "$PYTHON"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14128 $as_echo "$PYTHON" >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14135 if test -z "$PYTHON"; then
14136 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14141 # Check for a version of Python >= 2.1.0
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14144 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14145 ac_supports_python_ver=`$PYTHON -c "import sys; \
14146 ver = sys.version.split ()[0]; \
14147 print (ver >= '2.1.0')"`
14148 if test "$ac_supports_python_ver" != "True"; then
14149 if test -z "$PYTHON_NOVERSIONCHECK"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14151 $as_echo "no" >&6; }
14152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14155 This version of the AC_PYTHON_DEVEL macro
14156 doesn't work properly with versions of Python before
14157 2.1.0. You may need to re-run configure, setting the
14158 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14159 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14160 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14161 to something else than an empty string.
14163 See \`config.log' for more details" "$LINENO" 5; }
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14166 $as_echo "skip at user request" >&6; }
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14174 # if the macro parameter ``version'' is set, honour it
14176 if test -n ">= '2.4.0'"; then
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
14178 $as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
14179 ac_supports_python_ver=`$PYTHON -c "import sys; \
14180 ver = sys.version.split ()[0]; \
14181 print (ver >= '2.4.0')"`
14182 if test "$ac_supports_python_ver" = "True"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14184 $as_echo "yes" >&6; }
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14188 as_fn_error $? "this package requires Python >= '2.4.0'.
14189 If you have it installed, but it isn't the default Python
14190 interpreter in your system path, please pass the PYTHON_VERSION
14191 variable to configure. See \`\`configure --help'' for reference.
14198 # Check if you have distutils, else fail
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
14201 $as_echo_n "checking for the distutils Python package... " >&6; }
14202 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
14203 if test -z "$ac_distutils_result"; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205 $as_echo "yes" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208 $as_echo "no" >&6; }
14209 as_fn_error $? "cannot import Python module \"distutils\".
14210 Please check your Python installation. The error was:
14211 $ac_distutils_result" "$LINENO" 5
14216 # Check for Python include path
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
14219 $as_echo_n "checking for Python include path... " >&6; }
14220 if test -z "$PYTHON_CPPFLAGS"; then
14221 python_path=`$PYTHON -c "import distutils.sysconfig; \
14222 print (distutils.sysconfig.get_python_inc ());"`
14223 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
14224 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
14225 if test -n "${python_path}"; then
14226 if test "${plat_python_path}" != "${python_path}"; then
14227 python_path="-I$python_path -I$plat_python_path"
14229 python_path="-I$python_path"
14232 PYTHON_CPPFLAGS=$python_path
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
14235 $as_echo "$PYTHON_CPPFLAGS" >&6; }
14239 # Check for Python library path
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
14242 $as_echo_n "checking for Python library path... " >&6; }
14243 if test -z "$PYTHON_LDFLAGS"; then
14244 # (makes two attempts to ensure we've got a version number
14245 # from the interpreter)
14246 ac_python_version=`cat<<EOD | $PYTHON -
14248 # join all versioning strings, on some systems
14249 # major/minor numbers could be in different list elements
14250 from distutils.sysconfig import *
14251 e = get_config_var('VERSION')
14256 if test -z "$ac_python_version"; then
14257 if test -n "$PYTHON_VERSION"; then
14258 ac_python_version=$PYTHON_VERSION
14260 ac_python_version=`$PYTHON -c "import sys; \
14261 print (sys.version[:3])"`
14265 # Make the versioning information available to the compiler
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_PYTHON "$ac_python_version"
14272 # First, the library directory:
14273 ac_python_libdir=`cat<<EOD | $PYTHON -
14275 # There should be only one
14276 import distutils.sysconfig
14277 e = distutils.sysconfig.get_config_var('LIBDIR')
14282 # Now, for the library:
14283 ac_python_library=`cat<<EOD | $PYTHON -
14285 import distutils.sysconfig
14286 c = distutils.sysconfig.get_config_vars()
14287 if 'LDVERSION' in c:
14288 print ('python'+c['LDVERSION'])
14290 print ('python'+c['VERSION'])
14293 # This small piece shamelessly adapted from PostgreSQL python macro;
14294 # credits goes to momjian, I think. I'd like to put the right name
14295 # in the credits, if someone can point me in the right direction... ?
14297 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
14299 # use the official shared library
14300 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
14301 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
14303 # old way: use libpython from python_configdir
14304 ac_python_libdir=`$PYTHON -c \
14305 "from distutils.sysconfig import get_python_lib as f; \
14307 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
14308 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
14311 if test -z "PYTHON_LDFLAGS"; then
14313 Cannot determine location of your Python DSO. Please check it was installed with
14314 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
14319 $as_echo "$PYTHON_LDFLAGS" >&6; }
14323 # Check for site packages
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
14326 $as_echo_n "checking for Python site-packages path... " >&6; }
14327 if test -z "$PYTHON_SITE_PKG"; then
14328 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
14329 print (distutils.sysconfig.get_python_lib(1,0));"`
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
14332 $as_echo "$PYTHON_SITE_PKG" >&6; }
14336 # libraries which must be linked in when embedding
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
14339 $as_echo_n "checking python extra libraries... " >&6; }
14340 if test -z "$PYTHON_EXTRA_LIBS"; then
14341 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
14342 conf = distutils.sysconfig.get_config_var; \
14343 print (conf('LIBS'))"`
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
14346 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
14350 # linking flags needed when embedding
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
14353 $as_echo_n "checking python extra linking flags... " >&6; }
14354 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
14355 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
14356 conf = distutils.sysconfig.get_config_var; \
14357 print (conf('LINKFORSHARED'))"`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
14360 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
14364 # final check to see if everything compiles alright
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
14367 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
14368 # save current global flags
14369 ac_save_LIBS="$LIBS"
14370 ac_save_CPPFLAGS="$CPPFLAGS"
14371 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
14372 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14382 #include <Python.h>
14392 if ac_fn_c_try_link "$LINENO"; then :
14397 rm -f core conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14400 ac_cpp='$CPP $CPPFLAGS'
14401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14405 # turn back to default flags
14406 CPPFLAGS="$ac_save_CPPFLAGS"
14407 LIBS="$ac_save_LIBS"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
14410 $as_echo "$pythonexists" >&6; }
14412 if test ! "x$pythonexists" = "xyes"; then
14413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14416 Could not link test program to Python. Maybe the main Python library has been
14417 installed in some non-standard library path. If so, pass it to configure,
14418 via the LDFLAGS environment variable.
14419 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
14420 ============================================================================
14422 You probably have to install the development version of the Python package
14423 for your distribution. The exact name of this package varies among them.
14424 ============================================================================
14426 See \`config.log' for more details" "$LINENO" 5; }
14434 if test ! -z "$ac_python_version"; then
14435 ldns_have_python=yes
14438 # pass additional Python 3 option to SWIG
14439 if test `$PYTHON -c "import sys; \
14440 ver = sys.version.split()[0]; \
14441 print(ver >= '3')"` = "True"; then
14442 SWIGPY3="-py3 -DPY3"
14447 if test x_$ldns_have_python != x_no; then
14448 # ===========================================================================
14449 # http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
14450 # ===========================================================================
14454 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
14458 # This macro searches for a SWIG installation on your system. If found,
14459 # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is
14460 # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
14462 # You can use the optional first argument to check if the version of the
14463 # available SWIG is greater than or equal to the value of the argument. It
14464 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
14465 # the first N is mandatory.) If the version argument is given (e.g.
14466 # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number
14469 # As usual, action-if-found is executed if SWIG is found, otherwise
14470 # action-if-not-found is executed.
14472 # In configure.in, use as:
14474 # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
14475 # AX_SWIG_ENABLE_CXX
14476 # AX_SWIG_MULTI_MODULE_SUPPORT
14481 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
14482 # Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
14483 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
14484 # Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
14485 # Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
14487 # This program is free software; you can redistribute it and/or modify it
14488 # under the terms of the GNU General Public License as published by the
14489 # Free Software Foundation; either version 2 of the License, or (at your
14490 # option) any later version.
14492 # This program is distributed in the hope that it will be useful, but
14493 # WITHOUT ANY WARRANTY; without even the implied warranty of
14494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14495 # Public License for more details.
14497 # You should have received a copy of the GNU General Public License along
14498 # with this program. If not, see <http://www.gnu.org/licenses/>.
14500 # As a special exception, the respective Autoconf Macro's copyright owner
14501 # gives unlimited permission to copy, distribute and modify the configure
14502 # scripts that are the output of Autoconf when processing the Macro. You
14503 # need not follow the terms of the GNU General Public License when using
14504 # or distributing such scripts, even though portions of the text of the
14505 # Macro appear in them. The GNU General Public License (GPL) does govern
14506 # all other use of the material that constitutes the Autoconf Macro.
14508 # This special exception to the GPL applies to versions of the Autoconf
14509 # Macro released by the Autoconf Archive. When you make and distribute a
14510 # modified version of the Autoconf Macro, you may extend this special
14511 # exception to the GPL to apply to your modified version as well.
14518 # check for >=SWIG-2.0.4 if Python 3.2 used
14519 if test `$PYTHON -c "import sys; \
14520 ver = sys.version.split()[0]; \
14521 print(ver >= '3.2')"` = "True"; then
14523 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
14524 for ac_prog in swig2.0 swig
14526 # Extract the first word of "$ac_prog", so it can be a program name with args.
14527 set dummy $ac_prog; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529 $as_echo_n "checking for $ac_word... " >&6; }
14530 if ${ac_cv_path_SWIG+:} false; then :
14531 $as_echo_n "(cached) " >&6
14535 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14556 SWIG=$ac_cv_path_SWIG
14557 if test -n "$SWIG"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14559 $as_echo "$SWIG" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14562 $as_echo "no" >&6; }
14566 test -n "$SWIG" && break
14569 if test -z "$SWIG" ; then
14570 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14571 elif test -n "2.0.4" ; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14573 $as_echo_n "checking SWIG version... " >&6; }
14574 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'`
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14576 $as_echo "$swig_version" >&6; }
14577 if test -n "$swig_version" ; then
14578 # Calculate the required version number components
14580 required_major=`echo $required | sed 's/[^0-9].*//'`
14581 if test -z "$required_major" ; then
14584 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14585 required_minor=`echo $required | sed 's/[^0-9].*//'`
14586 if test -z "$required_minor" ; then
14589 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14590 required_patch=`echo $required | sed 's/[^0-9].*//'`
14591 if test -z "$required_patch" ; then
14594 # Calculate the available version number components
14595 available=$swig_version
14596 available_major=`echo $available | sed 's/[^0-9].*//'`
14597 if test -z "$available_major" ; then
14600 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14601 available_minor=`echo $available | sed 's/[^0-9].*//'`
14602 if test -z "$available_minor" ; then
14605 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14606 available_patch=`echo $available | sed 's/[^0-9].*//'`
14607 if test -z "$available_patch" ; then
14610 # Convert the version tuple into a single number for easier comparison.
14611 # Using base 100 should be safe since SWIG internally uses BCD values
14612 # to encode its version number.
14613 required_swig_vernum=`expr $required_major \* 10000 \
14614 \+ $required_minor \* 100 \+ $required_patch`
14615 available_swig_vernum=`expr $available_major \* 10000 \
14616 \+ $available_minor \* 100 \+ $available_patch`
14618 if test $available_swig_vernum -lt $required_swig_vernum; then
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5
14620 $as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;}
14622 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14625 $as_echo_n "checking for SWIG library... " >&6; }
14626 SWIG_LIB=`$SWIG -swiglib`
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14628 $as_echo "$SWIG_LIB" >&6; }
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14633 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14635 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
14642 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
14643 for ac_prog in swig2.0 swig
14645 # Extract the first word of "$ac_prog", so it can be a program name with args.
14646 set dummy $ac_prog; ac_word=$2
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14648 $as_echo_n "checking for $ac_word... " >&6; }
14649 if ${ac_cv_path_SWIG+:} false; then :
14650 $as_echo_n "(cached) " >&6
14654 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14658 for as_dir in $PATH
14661 test -z "$as_dir" && as_dir=.
14662 for ac_exec_ext in '' $ac_executable_extensions; do
14663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14664 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14675 SWIG=$ac_cv_path_SWIG
14676 if test -n "$SWIG"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14678 $as_echo "$SWIG" >&6; }
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14685 test -n "$SWIG" && break
14688 if test -z "$SWIG" ; then
14690 elif test -n "" ; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14692 $as_echo_n "checking SWIG version... " >&6; }
14693 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'`
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14695 $as_echo "$swig_version" >&6; }
14696 if test -n "$swig_version" ; then
14697 # Calculate the required version number components
14699 required_major=`echo $required | sed 's/[^0-9].*//'`
14700 if test -z "$required_major" ; then
14703 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14704 required_minor=`echo $required | sed 's/[^0-9].*//'`
14705 if test -z "$required_minor" ; then
14708 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14709 required_patch=`echo $required | sed 's/[^0-9].*//'`
14710 if test -z "$required_patch" ; then
14713 # Calculate the available version number components
14714 available=$swig_version
14715 available_major=`echo $available | sed 's/[^0-9].*//'`
14716 if test -z "$available_major" ; then
14719 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14720 available_minor=`echo $available | sed 's/[^0-9].*//'`
14721 if test -z "$available_minor" ; then
14724 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14725 available_patch=`echo $available | sed 's/[^0-9].*//'`
14726 if test -z "$available_patch" ; then
14729 # Convert the version tuple into a single number for easier comparison.
14730 # Using base 100 should be safe since SWIG internally uses BCD values
14731 # to encode its version number.
14732 required_swig_vernum=`expr $required_major \* 10000 \
14733 \+ $required_minor \* 100 \+ $required_patch`
14734 available_swig_vernum=`expr $available_major \* 10000 \
14735 \+ $available_minor \* 100 \+ $available_patch`
14737 if test $available_swig_vernum -lt $required_swig_vernum; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
14739 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14744 $as_echo_n "checking for SWIG library... " >&6; }
14745 SWIG_LIB=`$SWIG -swiglib`
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14747 $as_echo "$SWIG_LIB" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14752 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14761 if test ! -x "$SWIG"; then
14762 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14765 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
14771 ldns_with_pyldns=yes
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14775 $as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14778 # xtra cflags for pyldns
14779 if test x_$ldns_have_python != x_no; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14783 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14784 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14785 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14786 $as_echo_n "(cached) " >&6
14789 echo 'void f(void){}' >conftest.c
14790 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14791 eval "cv_prog_cc_flag_$cache=yes"
14793 eval "cv_prog_cc_flag_$cache=no"
14795 rm -f conftest conftest.o conftest.c
14799 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14801 $as_echo "yes" >&6; }
14803 PYTHON_X_CFLAGS="-fno-strict-aliasing"
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806 $as_echo "no" >&6; }
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14814 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14815 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14816 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14817 $as_echo_n "(cached) " >&6
14820 echo 'void f(void){}' >conftest.c
14821 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14822 eval "cv_prog_cc_flag_$cache=yes"
14824 eval "cv_prog_cc_flag_$cache=no"
14826 rm -f conftest conftest.o conftest.c
14830 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14832 $as_echo "yes" >&6; }
14834 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14837 $as_echo "no" >&6; }
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14845 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14846 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14847 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14848 $as_echo_n "(cached) " >&6
14851 echo 'void f(void){}' >conftest.c
14852 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14853 eval "cv_prog_cc_flag_$cache=yes"
14855 eval "cv_prog_cc_flag_$cache=no"
14857 rm -f conftest conftest.o conftest.c
14861 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14863 $as_echo "yes" >&6; }
14865 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14876 $as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14877 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14878 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14879 $as_echo_n "(cached) " >&6
14882 echo 'void f(void){}' >conftest.c
14883 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14884 eval "cv_prog_cc_flag_$cache=yes"
14886 eval "cv_prog_cc_flag_$cache=no"
14888 rm -f conftest conftest.o conftest.c
14892 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14894 $as_echo "yes" >&6; }
14896 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 $as_echo "no" >&6; }
14908 # Check for pyldnsx
14910 # Check whether --with-pyldnsx was given.
14911 if test "${with_pyldnsx+set}" = set; then :
14912 withval=$with_pyldnsx;
14914 withval="with_pyldns"
14917 if test x_$withval != x_no; then
14918 if test x_$ldns_with_pyldns != x_no; then
14921 ldns_with_pyldnsx=yes
14923 if test x_$withval != x_with_pyldns; then
14924 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14929 if test x_$ldns_with_pyldns != x_no; then
14930 PYLDNSINST="install-pyldns"
14931 PYLDNSUNINST="uninstall-pyldns"
14938 if test x_$ldns_with_pyldnsx != x_no; then
14939 PYLDNSXINST="install-pyldnsx"
14940 PYLDNSXUNINST="uninstall-pyldnsx"
14949 ldns_with_p5_dns_ldns=no
14951 # Check whether --with-p5-dns-ldns was given.
14952 if test "${with_p5_dns_ldns+set}" = set; then :
14953 withval=$with_p5_dns_ldns;
14959 if test x_$withval != x_no; then
14960 # Extract the first word of "perl", so it can be a program name with args.
14961 set dummy perl; ac_word=$2
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14963 $as_echo_n "checking for $ac_word... " >&6; }
14964 if ${ac_cv_path_PERL+:} false; then :
14965 $as_echo_n "(cached) " >&6
14969 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973 for as_dir in $PATH
14976 test -z "$as_dir" && as_dir=.
14977 for ac_exec_ext in '' $ac_executable_extensions; do
14978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14979 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14990 PERL=$ac_cv_path_PERL
14991 if test -n "$PERL"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14993 $as_echo "$PERL" >&6; }
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
15000 if test -z "$PERL"; then
15001 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
15003 P5_DNS_LDNS="p5-dns-ldns"
15004 TEST_P5_DNS_LDNS="test-p5-dns-ldns"
15005 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
15006 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
15007 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
15011 TEST_P5_DNS_LDNS=""
15012 INSTALL_P5_DNS_LDNS=""
15013 UNINSTALL_P5_DNS_LDNS=""
15014 CLEAN_P5_DNS_LDNS=""
15020 # skip these tests, we do not need them.
15029 # always use ./libtool unless override from commandline (libtool=mylibtool)
15030 if test -z "$libtool"; then
15031 libtool="./libtool"
15034 # avoid libtool max commandline length test on systems that fork slowly.
15036 if echo "$host_os" | grep "sunos4" >/dev/null; then
15037 lt_cv_sys_max_cmd_len=32750;
15039 if test -n "$ac_tool_prefix"; then
15040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15041 set dummy ${ac_tool_prefix}ar; ac_word=$2
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15043 $as_echo_n "checking for $ac_word... " >&6; }
15044 if ${ac_cv_path_AR+:} false; then :
15045 $as_echo_n "(cached) " >&6
15049 ac_cv_path_AR="$AR" # Let the user override the test with a path.
15052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15053 for as_dir in $PATH
15056 test -z "$as_dir" && as_dir=.
15057 for ac_exec_ext in '' $ac_executable_extensions; do
15058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15059 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
15060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15071 if test -n "$AR"; then
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15073 $as_echo "$AR" >&6; }
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076 $as_echo "no" >&6; }
15081 if test -z "$ac_cv_path_AR"; then
15083 # Extract the first word of "ar", so it can be a program name with args.
15084 set dummy ar; ac_word=$2
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15086 $as_echo_n "checking for $ac_word... " >&6; }
15087 if ${ac_cv_path_ac_pt_AR+:} false; then :
15088 $as_echo_n "(cached) " >&6
15092 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
15095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096 for as_dir in $PATH
15099 test -z "$as_dir" && as_dir=.
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15102 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
15103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15113 ac_pt_AR=$ac_cv_path_ac_pt_AR
15114 if test -n "$ac_pt_AR"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
15116 $as_echo "$ac_pt_AR" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15122 if test "x$ac_pt_AR" = x; then
15125 case $cross_compiling:$ac_tool_warned in
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15129 ac_tool_warned=yes ;;
15134 AR="$ac_cv_path_AR"
15137 if test $AR = false; then
15138 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
15146 tmp_CPPFLAGS=$CPPFLAGS
15147 tmp_LDFLAGS=$LDFLAGS
15152 # Check whether --with-ssl was given.
15153 if test "${with_ssl+set}" = set; then :
15164 if test x_$withval != x_no; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
15166 $as_echo_n "checking for SSL... " >&6; }
15167 if test x_$withval = x_ -o x_$withval = x_yes; then
15168 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
15170 for dir in $withval; do
15172 if test -f "$dir/include/openssl/ssl.h"; then
15175 cat >>confdefs.h <<_ACEOF
15176 #define HAVE_SSL /**/
15179 if test "$ssldir" != "/usr"; then
15180 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
15181 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
15186 if test x_$found_ssl != x_yes; then
15187 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
15190 $as_echo "found in $ssldir" >&6; }
15192 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
15193 LDFLAGS="$LDFLAGS -L$ssldir/lib"
15194 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
15196 if test "x$enable_rpath" = xyes; then
15197 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
15198 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
15205 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
15206 LIBS="$LIBS -lcrypto"
15207 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15215 int HMAC_Update(void);
15216 (void)HMAC_Update();
15222 if ac_fn_c_try_link "$LINENO"; then :
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225 $as_echo "yes" >&6; }
15227 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233 $as_echo "no" >&6; }
15234 # check if -lwsock32 or -lgdi32 are needed.
15236 BAKSSLLIBS="$LIBSSL_LIBS"
15237 LIBS="$LIBS -lgdi32"
15238 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
15240 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15248 int HMAC_Update(void);
15249 (void)HMAC_Update();
15255 if ac_fn_c_try_link "$LINENO"; then :
15258 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261 $as_echo "yes" >&6; }
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266 $as_echo "no" >&6; }
15268 LIBSSL_LIBS="$BAKSSLLIBS"
15270 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
15272 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15280 int HMAC_Update(void);
15281 (void)HMAC_Update();
15287 if ac_fn_c_try_link "$LINENO"; then :
15290 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15293 $as_echo "yes" >&6; }
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298 $as_echo "no" >&6; }
15300 LIBSSL_LIBS="$BAKSSLLIBS"
15301 LIBS="$LIBS -ldl -pthread"
15302 LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
15304 $as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15312 int HMAC_Update(void);
15313 (void)HMAC_Update();
15319 if ac_fn_c_try_link "$LINENO"; then :
15322 $as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15325 $as_echo "yes" >&6; }
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15330 $as_echo "no" >&6; }
15331 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15346 rm -f core conftest.err conftest.$ac_objext \
15347 conftest$ac_exeext conftest.$ac_ext
15352 for ac_header in openssl/ssl.h
15354 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
15356 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15357 cat >>confdefs.h <<_ACEOF
15358 #define HAVE_OPENSSL_SSL_H 1
15365 for ac_header in openssl/err.h
15367 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
15369 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_OPENSSL_ERR_H 1
15378 for ac_header in openssl/rand.h
15380 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
15382 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_OPENSSL_RAND_H 1
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5
15394 $as_echo_n "checking for LibreSSL... " >&6; }
15395 if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15397 $as_echo "yes" >&6; }
15399 $as_echo "#define HAVE_LIBRESSL 1" >>confdefs.h
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15405 for ac_func in EVP_sha256 EVP_sha384 EVP_sha512 ENGINE_load_cryptodev EVP_PKEY_keygen ECDSA_SIG_get0 EVP_MD_CTX_new EVP_PKEY_base_id DSA_SIG_set0 DSA_SIG_get0 EVP_dss1 DSA_get0_pqg DSA_get0_key
15407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15410 cat >>confdefs.h <<_ACEOF
15411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15418 # for macosx, see if glibtool exists and use that
15419 # BSD's need to know the version...
15420 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
15421 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
15423 # Check whether --enable-sha2 was given.
15424 if test "${enable_sha2+set}" = set; then :
15425 enableval=$enable_sha2;
15428 case "$enable_sha2" in
15432 if test "x$HAVE_SSL" != "xyes"; then
15433 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
15436 $as_echo_n "checking for SHA256 and SHA512... " >&6; }
15437 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
15438 if test "x$ac_cv_func_SHA256_Init" = xyes; then :
15442 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
15447 cat >>confdefs.h <<_ACEOF
15454 # check wether gost also works
15456 # Check whether --enable-gost was given.
15457 if test "${enable_gost+set}" = set; then :
15458 enableval=$enable_gost;
15461 case "$enable_gost" in
15464 *) if test "x$HAVE_SSL" != "xyes"; then
15465 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
15468 $as_echo_n "checking for GOST... " >&6; }
15469 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
15470 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
15473 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
15476 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
15477 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
15480 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GOST works" >&5
15485 $as_echo_n "checking if GOST works... " >&6; }
15486 if test c${cross_compiling} = cno; then
15487 BAKCFLAGS="$CFLAGS"
15488 if test -n "$ssldir"; then
15489 CFLAGS="$CFLAGS -Wl,-rpath,$ssldir/lib"
15491 if test "$cross_compiling" = yes; then :
15492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15494 as_fn_error $? "cannot run test program while cross compiling
15495 See \`config.log' for more details" "$LINENO" 5; }
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15500 #include <string.h>
15501 #include <openssl/ssl.h>
15502 #include <openssl/evp.h>
15503 #include <openssl/engine.h>
15504 #include <openssl/conf.h>
15505 /* routine to load gost (from sldns) */
15506 int load_gost_id(void)
15508 static int gost_id = 0;
15509 const EVP_PKEY_ASN1_METHOD* meth;
15512 if(gost_id) return gost_id;
15514 /* see if configuration loaded gost implementation from other engine*/
15515 meth = EVP_PKEY_asn1_find_str(NULL, "gost2001", -1);
15517 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
15521 /* see if engine can be loaded already */
15522 e = ENGINE_by_id("gost");
15524 /* load it ourself, in case statically linked */
15525 ENGINE_load_builtin_engines();
15526 ENGINE_load_dynamic();
15527 e = ENGINE_by_id("gost");
15530 /* no gost engine in openssl */
15533 if(!ENGINE_set_default(e, ENGINE_METHOD_ALL)) {
15539 meth = EVP_PKEY_asn1_find_str(&e, "gost2001", -1);
15541 /* algo not found */
15546 EVP_PKEY_asn1_get0_info(&gost_id, NULL, NULL, NULL, NULL, meth);
15552 unsigned char digest[64]; /* its a 256-bit digest, so uses 32 bytes */
15553 const char* str = "Hello world";
15554 const unsigned char check[] = {
15555 0x40 , 0xed , 0xf8 , 0x56 , 0x5a , 0xc5 , 0x36 , 0xe1 ,
15556 0x33 , 0x7c , 0x7e , 0x87 , 0x62 , 0x1c , 0x42 , 0xe0 ,
15557 0x17 , 0x1b , 0x5e , 0xce , 0xa8 , 0x46 , 0x65 , 0x4d ,
15558 0x8d , 0x3e , 0x22 , 0x9b , 0xe1 , 0x30 , 0x19 , 0x9d
15560 OPENSSL_config(NULL);
15561 (void)load_gost_id();
15562 md = EVP_get_digestbyname("md_gost94");
15564 memset(digest, 0, sizeof(digest));
15565 ctx = EVP_MD_CTX_create();
15567 if(!EVP_DigestInit_ex(ctx, md, NULL)) return 3;
15568 if(!EVP_DigestUpdate(ctx, str, 10)) return 4;
15569 if(!EVP_DigestFinal_ex(ctx, digest, NULL)) return 5;
15570 /* uncomment to see the hash calculated.
15572 for(i=0; i<32; i++)
15573 printf(" %2.2x", (int)digest[i]);
15576 if(memcmp(digest, check, sizeof(check)) != 0)
15582 if ac_fn_c_try_run "$LINENO"; then :
15583 eval "ac_cv_c_gost_works=yes"
15585 eval "ac_cv_c_gost_works=no"
15587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588 conftest.$ac_objext conftest.beam conftest.$ac_ext
15591 CFLAGS="$BAKCFLAGS"
15593 eval "ac_cv_c_gost_works=maybe"
15596 # Check whether --enable-gost-anyway was given.
15597 if test "${enable_gost_anyway+set}" = set; then :
15598 enableval=$enable_gost_anyway;
15601 if test "$ac_cv_c_gost_works" != "no" -o "$enable_gost_anyway" = "yes"; then
15602 if test "$ac_cv_c_gost_works" = "no"; then
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but compiling with GOST support anyway" >&5
15604 $as_echo "no, but compiling with GOST support anyway" >&6; }
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15611 $as_echo "#define USE_GOST 1" >>confdefs.h
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Gost support does not work because the engine is missing." >&5
15617 $as_echo "$as_me: WARNING: Gost support does not work because the engine is missing." >&2;}
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&5
15619 $as_echo "$as_me: WARNING: Install gost-engine first or use the --enable-gost-anyway to compile with GOST support anyway" >&2;}
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&5
15621 $as_echo "$as_me: WARNING: See also https://github.com/gost-engine/engine/wiki for information about gost-engine" >&2;}
15626 # Check whether --enable-ecdsa was given.
15627 if test "${enable_ecdsa+set}" = set; then :
15628 enableval=$enable_ecdsa;
15631 case "$enable_ecdsa" in
15634 *) if test "x$HAVE_SSL" != "xyes"; then
15635 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
15637 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
15638 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
15641 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15644 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
15645 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
15648 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15651 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
15652 #include <openssl/evp.h>
15655 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
15664 if test $ac_have_decl = 1; then :
15667 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15669 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
15670 #include <openssl/evp.h>
15673 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
15682 if test $ac_have_decl = 1; then :
15685 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
15688 # we now know we have ECDSA and the required curves.
15690 cat >>confdefs.h <<_ACEOF
15691 #define USE_ECDSA 1
15697 # Check whether --enable-dsa was given.
15698 if test "${enable_dsa+set}" = set; then :
15699 enableval=$enable_dsa;
15702 case "$enable_dsa" in
15705 *) # detect if DSA is supported, and turn it off if not.
15706 ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
15707 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
15710 cat >>confdefs.h <<_ACEOF
15716 if test "x$enable_dsa" = "xyes"; then as_fn_error $? "OpenSSL does not support DSA and you used --enable-dsa." "$LINENO" 5
15723 # Check whether --enable-ed25519 was given.
15724 if test "${enable_ed25519+set}" = set; then :
15725 enableval=$enable_ed25519;
15728 case "$enable_ed25519" in
15730 if test "x$HAVE_SSL" != "xyes"; then
15731 as_fn_error $? "ED25519 enabled, but no SSL support" "$LINENO" 5
15733 ac_fn_c_check_decl "$LINENO" "NID_X25519" "ac_cv_have_decl_NID_X25519" "$ac_includes_default
15734 #include <openssl/evp.h>
15737 if test "x$ac_cv_have_decl_NID_X25519" = xyes; then :
15743 cat >>confdefs.h <<_ACEOF
15744 #define HAVE_DECL_NID_X25519 $ac_have_decl
15746 if test $ac_have_decl = 1; then :
15749 as_fn_error $? "OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed25519" "$LINENO" 5
15753 cat >>confdefs.h <<_ACEOF
15754 #define USE_ED25519 1
15761 # Check whether --enable-ed448 was given.
15762 if test "${enable_ed448+set}" = set; then :
15763 enableval=$enable_ed448;
15766 case "$enable_ed448" in
15768 if test "x$HAVE_SSL" != "xyes"; then
15769 as_fn_error $? "ED448 enabled, but no SSL support" "$LINENO" 5
15771 ac_fn_c_check_decl "$LINENO" "NID_X448" "ac_cv_have_decl_NID_X448" "$ac_includes_default
15772 #include <openssl/evp.h>
15775 if test "x$ac_cv_have_decl_NID_X448" = xyes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_DECL_NID_X448 $ac_have_decl
15784 if test $ac_have_decl = 1; then :
15787 as_fn_error $? "OpenSSL does not support the EDDSA curve: please upgrade OpenSSL or rerun with --disable-ed448" "$LINENO" 5
15791 cat >>confdefs.h <<_ACEOF
15792 #define USE_ED448 1
15799 # Check whether --enable-dane was given.
15800 if test "${enable_dane+set}" = set; then :
15801 enableval=$enable_dane;
15804 # Check whether --enable-dane-verify was given.
15805 if test "${enable_dane_verify+set}" = set; then :
15806 enableval=$enable_dane_verify;
15809 # Check whether --enable-dane-ta-usage was given.
15810 if test "${enable_dane_ta_usage+set}" = set; then :
15811 enableval=$enable_dane_ta_usage;
15815 # Check whether --enable-full-dane was given.
15816 if test "${enable_full_dane+set}" = set; then :
15817 enableval=$enable_full_dane;
15818 enable_dane_ta_usage=yes
15819 enable_dane_verify=yes
15824 # Check whether --enable-no-dane-ta-usage was given.
15825 if test "${enable_no_dane_ta_usage+set}" = set; then :
15826 enableval=$enable_no_dane_ta_usage;
15827 enable_dane_ta_usage=no
15828 enable_dane_verify=yes
15833 # Check whether --enable-no-dane-verify was given.
15834 if test "${enable_no_dane_verify+set}" = set; then :
15835 enableval=$enable_no_dane_verify;
15836 enable_dane_ta_usage=no
15837 enable_dane_verify=no
15842 case "$enable_dane" in
15844 ldns_build_config_use_dane=0
15846 ldns_build_config_use_dane_verify=0
15848 ldns_build_config_use_dane_ta_usage=0
15851 *) if test "x$HAVE_SSL" != "xyes"; then
15852 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
15854 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
15855 if test "x$ac_cv_func_X509_check_ca" = xyes; then :
15858 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
15861 ldns_build_config_use_dane=1
15864 cat >>confdefs.h <<_ACEOF
15868 case "$enable_dane_verify" in
15870 ldns_build_config_use_dane_verify=0
15872 ldns_build_config_use_dane_ta_usage=0
15876 ldns_build_config_use_dane_verify=1
15879 cat >>confdefs.h <<_ACEOF
15880 #define USE_DANE_VERIFY 1
15883 case "$enable_dane_ta_usage" in
15885 ldns_build_config_use_dane_ta_usage=0
15888 *) LIBS="-lssl $LIBS"
15889 ac_fn_c_check_func "$LINENO" "SSL_get0_dane" "ac_cv_func_SSL_get0_dane"
15890 if test "x$ac_cv_func_SSL_get0_dane" = xyes; then :
15893 as_fn_error $? "OpenSSL does not support offline DANE verification (Needed for the DANE-TA usage type). Please upgrade OpenSSL to version >= 1.1.0 or rerun with --disable-dane-verify or --disable-dane-ta-usage" "$LINENO" 5
15896 LIBSSL_LIBS="$LIBSSL_LIBS -lssl"
15897 ldns_build_config_use_dane_ta_usage=1
15900 cat >>confdefs.h <<_ACEOF
15901 #define USE_DANE_TA_USAGE 1
15910 # Check whether --enable-rrtype-ninfo was given.
15911 if test "${enable_rrtype_ninfo+set}" = set; then :
15912 enableval=$enable_rrtype_ninfo;
15915 case "$enable_rrtype_ninfo" in
15918 cat >>confdefs.h <<_ACEOF
15919 #define RRTYPE_NINFO /**/
15926 # Check whether --enable-rrtype-rkey was given.
15927 if test "${enable_rrtype_rkey+set}" = set; then :
15928 enableval=$enable_rrtype_rkey;
15931 case "$enable_rrtype_rkey" in
15934 cat >>confdefs.h <<_ACEOF
15935 #define RRTYPE_RKEY /**/
15942 # Check whether --enable-rrtype-openpgpkey was given.
15943 if test "${enable_rrtype_openpgpkey+set}" = set; then :
15944 enableval=$enable_rrtype_openpgpkey;
15947 case "$enable_rrtype_openpgpkey" in
15952 cat >>confdefs.h <<_ACEOF
15953 #define RRTYPE_OPENPGPKEY /**/
15958 # Check whether --enable-rrtype-ta was given.
15959 if test "${enable_rrtype_ta+set}" = set; then :
15960 enableval=$enable_rrtype_ta;
15963 case "$enable_rrtype_ta" in
15966 cat >>confdefs.h <<_ACEOF
15967 #define RRTYPE_TA /**/
15974 # Check whether --enable-rrtype-avc was given.
15975 if test "${enable_rrtype_avc+set}" = set; then :
15976 enableval=$enable_rrtype_avc;
15979 case "$enable_rrtype_avc" in
15982 cat >>confdefs.h <<_ACEOF
15983 #define RRTYPE_AVC /**/
15994 if test "x$HAVE_SSL" = "xyes"; then
15995 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
15998 CPPFLAGS=$tmp_CPPFLAGS
15999 LDFLAGS=$tmp_LDFLAGS
16003 # add option to disable the evil rpath
16005 # Check whether --enable-rpath was given.
16006 if test "${enable_rpath+set}" = set; then :
16007 enableval=$enable_rpath; enable_rpath=$enableval
16012 if test "x$enable_rpath" = xno; then
16013 ac_config_commands="$ac_config_commands disable-rpath"
16018 #AC_RUN_IFELSE([AC_LANG_SOURCE(
16023 #char *cp = (char*)&one;
16030 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
16033 # should define WORDS_BIGENDIAN if the system is big-endian
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16035 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16036 if ${ac_cv_c_bigendian+:} false; then :
16037 $as_echo_n "(cached) " >&6
16039 ac_cv_c_bigendian=unknown
16040 # See if we're dealing with a universal compiler.
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #ifndef __APPLE_CC__
16044 not a universal capable compiler
16049 if ac_fn_c_try_compile "$LINENO"; then :
16051 # Check for potential -arch flags. It is not universal unless
16052 # there are at least two -arch flags with different values.
16055 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16056 if test -n "$ac_prev"; then
16058 i?86 | x86_64 | ppc | ppc64)
16059 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16062 ac_cv_c_bigendian=universal
16068 elif test "x$ac_word" = "x-arch"; then
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 if test $ac_cv_c_bigendian = unknown; then
16075 # See if sys/param.h defines the BYTE_ORDER macro.
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 #include <sys/types.h>
16079 #include <sys/param.h>
16084 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16085 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16087 bogus endian macros
16094 if ac_fn_c_try_compile "$LINENO"; then :
16095 # It does; now see whether it defined to BIG_ENDIAN or not.
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16098 #include <sys/types.h>
16099 #include <sys/param.h>
16104 #if BYTE_ORDER != BIG_ENDIAN
16112 if ac_fn_c_try_compile "$LINENO"; then :
16113 ac_cv_c_bigendian=yes
16115 ac_cv_c_bigendian=no
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 if test $ac_cv_c_bigendian = unknown; then
16122 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125 #include <limits.h>
16130 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16131 bogus endian macros
16138 if ac_fn_c_try_compile "$LINENO"; then :
16139 # It does; now see whether it defined to _BIG_ENDIAN or not.
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 #include <limits.h>
16147 #ifndef _BIG_ENDIAN
16155 if ac_fn_c_try_compile "$LINENO"; then :
16156 ac_cv_c_bigendian=yes
16158 ac_cv_c_bigendian=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 if test $ac_cv_c_bigendian = unknown; then
16165 # Compile a test program.
16166 if test "$cross_compiling" = yes; then :
16167 # Try to guess by grepping values from an object file.
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 short int ascii_mm[] =
16171 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16172 short int ascii_ii[] =
16173 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16174 int use_ascii (int i) {
16175 return ascii_mm[i] + ascii_ii[i];
16177 short int ebcdic_ii[] =
16178 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16179 short int ebcdic_mm[] =
16180 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16181 int use_ebcdic (int i) {
16182 return ebcdic_mm[i] + ebcdic_ii[i];
16189 return use_ascii (foo) == use_ebcdic (foo);
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16196 ac_cv_c_bigendian=yes
16198 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16199 if test "$ac_cv_c_bigendian" = unknown; then
16200 ac_cv_c_bigendian=no
16202 # finding both strings is unlikely to happen, but who knows?
16203 ac_cv_c_bigendian=unknown
16207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 $ac_includes_default
16216 /* Are we little or big endian? From Harbison&Steele. */
16220 char c[sizeof (long int)];
16223 return u.c[sizeof (long int) - 1] == 1;
16229 if ac_fn_c_try_run "$LINENO"; then :
16230 ac_cv_c_bigendian=no
16232 ac_cv_c_bigendian=yes
16234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16235 conftest.$ac_objext conftest.beam conftest.$ac_ext
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16241 $as_echo "$ac_cv_c_bigendian" >&6; }
16242 case $ac_cv_c_bigendian in #(
16244 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16250 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16254 as_fn_error $? "unknown endianness
16255 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16259 # Checks for header files.
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16261 $as_echo_n "checking for ANSI C header files... " >&6; }
16262 if ${ac_cv_header_stdc+:} false; then :
16263 $as_echo_n "(cached) " >&6
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 #include <stdlib.h>
16268 #include <stdarg.h>
16269 #include <string.h>
16280 if ac_fn_c_try_compile "$LINENO"; then :
16281 ac_cv_header_stdc=yes
16283 ac_cv_header_stdc=no
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287 if test $ac_cv_header_stdc = yes; then
16288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16291 #include <string.h>
16294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16295 $EGREP "memchr" >/dev/null 2>&1; then :
16298 ac_cv_header_stdc=no
16304 if test $ac_cv_header_stdc = yes; then
16305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 #include <stdlib.h>
16311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16312 $EGREP "free" >/dev/null 2>&1; then :
16315 ac_cv_header_stdc=no
16321 if test $ac_cv_header_stdc = yes; then
16322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16323 if test "$cross_compiling" = yes; then :
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16329 #include <stdlib.h>
16330 #if ((' ' & 0x0FF) == 0x020)
16331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16334 # define ISLOWER(c) \
16335 (('a' <= (c) && (c) <= 'i') \
16336 || ('j' <= (c) && (c) <= 'r') \
16337 || ('s' <= (c) && (c) <= 'z'))
16338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16346 for (i = 0; i < 256; i++)
16347 if (XOR (islower (i), ISLOWER (i))
16348 || toupper (i) != TOUPPER (i))
16353 if ac_fn_c_try_run "$LINENO"; then :
16356 ac_cv_header_stdc=no
16358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16359 conftest.$ac_objext conftest.beam conftest.$ac_ext
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16365 $as_echo "$ac_cv_header_stdc" >&6; }
16366 if test $ac_cv_header_stdc = yes; then
16368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16373 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16374 if ${ac_cv_header_stdbool_h+:} false; then :
16375 $as_echo_n "(cached) " >&6
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16380 #include <stdbool.h>
16382 "error: bool is not defined"
16385 "error: false is not defined"
16388 "error: false is not 0"
16391 "error: true is not defined"
16394 "error: true is not 1"
16396 #ifndef __bool_true_false_are_defined
16397 "error: __bool_true_false_are_defined is not defined"
16400 struct s { _Bool s: 1; _Bool t; } s;
16402 char a[true == 1 ? 1 : -1];
16403 char b[false == 0 ? 1 : -1];
16404 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16405 char d[(bool) 0.5 == true ? 1 : -1];
16406 /* See body of main program for 'e'. */
16407 char f[(_Bool) 0.0 == false ? 1 : -1];
16409 char h[sizeof (_Bool)];
16410 char i[sizeof s.t];
16411 enum { j = false, k = true, l = false * true, m = true * 256 };
16412 /* The following fails for
16413 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16415 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16416 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16417 /* Catch a bug in an HP-UX C compiler. See
16418 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16419 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16431 /* Refer to every declared value, to avoid compiler optimizations. */
16432 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16433 + !m + !n + !o + !p + !q + !pq);
16439 if ac_fn_c_try_compile "$LINENO"; then :
16440 ac_cv_header_stdbool_h=yes
16442 ac_cv_header_stdbool_h=no
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16447 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16448 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16449 if test "x$ac_cv_type__Bool" = xyes; then :
16451 cat >>confdefs.h <<_ACEOF
16452 #define HAVE__BOOL 1
16459 if test $ac_cv_header_stdbool_h = yes; then
16461 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16465 #AC_HEADER_SYS_WAIT
16466 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
16467 # do the very minimum - we can always extend this
16468 for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
16470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16471 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16474 cat >>confdefs.h <<_ACEOF
16475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16482 for ac_header in sys/param.h sys/mount.h
16484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16485 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16487 #if HAVE_SYS_PARAM_H
16488 # include <sys/param.h>
16493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16494 cat >>confdefs.h <<_ACEOF
16495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16502 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
16504 #if HAVE_SYS_PARAM_H
16505 # include <sys/param.h>
16510 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
16512 include_sys_socket_h='#include <sys/socket.h>'
16514 $as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
16519 include_sys_socket_h=''
16525 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
16528 if test "x$ac_cv_header_inttypes_h" = xyes; then :
16530 include_inttypes_h='#include <inttypes.h>'
16532 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
16534 ldns_build_config_have_inttypes_h=1
16539 include_inttypes_h=''
16540 ldns_build_config_have_inttypes_h=0
16547 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
16550 if test "x$ac_cv_header_sys_types_h" = xyes; then :
16552 include_systypes_h='#include <sys/types.h>'
16554 $as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
16559 include_systypes_h=''
16565 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
16568 if test "x$ac_cv_header_unistd_h" = xyes; then :
16570 include_unistd_h='#include <unistd.h>'
16572 $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
16577 include_unistd_h=''
16584 # The cast to long int works around a bug in the HP C Compiler
16585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16587 # This bug is HP SR number 8606223364.
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
16589 $as_echo_n "checking size of time_t... " >&6; }
16590 if ${ac_cv_sizeof_time_t+:} false; then :
16591 $as_echo_n "(cached) " >&6
16593 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
16594 $ac_includes_default
16595 #ifdef TIME_WITH_SYS_TIME
16596 # include <sys/time.h>
16599 # ifdef HAVE_SYS_TIME_H
16600 # include <sys/time.h>
16609 if test "$ac_cv_type_time_t" = yes; then
16610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16612 as_fn_error 77 "cannot compute sizeof (time_t)
16613 See \`config.log' for more details" "$LINENO" 5; }
16615 ac_cv_sizeof_time_t=0
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
16621 $as_echo "$ac_cv_sizeof_time_t" >&6; }
16625 cat >>confdefs.h <<_ACEOF
16626 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
16631 if test x_$with_examples != x_no; then
16632 for ac_header in pcap.h
16634 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
16636 if test "x$ac_cv_header_pcap_h" = xyes; then :
16637 cat >>confdefs.h <<_ACEOF
16638 #define HAVE_PCAP_H 1
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
16646 $as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
16647 if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
16648 $as_echo_n "(cached) " >&6
16650 ac_check_lib_save_LIBS=$LIBS
16651 LIBS="-lpcap $LIBS"
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16661 char pcap_open_offline ();
16665 return pcap_open_offline ();
16670 if ac_fn_c_try_link "$LINENO"; then :
16671 ac_cv_lib_pcap_pcap_open_offline=yes
16673 ac_cv_lib_pcap_pcap_open_offline=no
16675 rm -f core conftest.err conftest.$ac_objext \
16676 conftest$ac_exeext conftest.$ac_ext
16677 LIBS=$ac_check_lib_save_LIBS
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
16680 $as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
16681 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
16684 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16685 LIBPCAP_LIBS=-lpcap
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
16691 $as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
16696 for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/igmp.h netinet/if_ether.h netinet/ip6.h net/ethernet.h netinet/ip_compat.h
16698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16700 $ac_includes_default
16701 #ifdef HAVE_NETINET_IN_SYSTM_H
16702 #include <netinet/in_systm.h>
16704 #ifdef HAVE_NETINET_IN_H
16705 #include <netinet/in.h>
16707 #ifdef HAVE_SYS_SOCKET_H
16708 #include <sys/socket.h>
16710 #ifdef HAVE_NET_IF_H
16711 #include <net/if.h>
16714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16715 cat >>confdefs.h <<_ACEOF
16716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16726 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16727 $ac_includes_default
16728 #ifdef HAVE_SYS_SOCKET_H
16729 # include <sys/socket.h>
16731 #ifdef HAVE_WS2TCPIP_H
16732 # include <ws2tcpip.h>
16736 if test "x$ac_cv_type_socklen_t" = xyes; then :
16740 $as_echo "#define socklen_t int" >>confdefs.h
16744 if test "x$ac_cv_type_socklen_t" = xyes; then
16745 ldns_build_config_have_socklen_t=1
16748 ldns_build_config_have_socklen_t=0
16751 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16752 if test "x$ac_cv_type_size_t" = xyes; then :
16756 cat >>confdefs.h <<_ACEOF
16757 #define size_t unsigned int
16762 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16763 if test "x$ac_cv_type_ssize_t" = xyes; then :
16767 cat >>confdefs.h <<_ACEOF
16768 #define ssize_t int
16773 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16774 if test "x$ac_cv_type_intptr_t" = xyes; then :
16778 cat >>confdefs.h <<_ACEOF
16779 #define intptr_t size_t
16784 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
16785 #if HAVE_SYS_TYPES_H
16786 # include <sys/types.h>
16788 #if HAVE_NETINET_IN_H
16789 # include <netinet/in.h>
16792 if test "x$ac_cv_type_in_addr_t" = xyes; then :
16796 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
16800 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
16801 #if HAVE_SYS_TYPES_H
16802 # include <sys/types.h>
16804 #if HAVE_NETINET_IN_H
16805 # include <netinet/in.h>
16808 if test "x$ac_cv_type_in_port_t" = xyes; then :
16812 $as_echo "#define in_port_t uint16_t" >>confdefs.h
16816 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
16817 #ifdef HAVE_NETINET_IN_H
16818 #include <netinet/in.h>
16820 #ifdef HAVE_SYS_SOCKET_H
16821 #include <sys/socket.h>
16823 #ifdef HAVE_NETDB_H
16826 #ifdef HAVE_ARPA_INET_H
16827 #include <arpa/inet.h>
16831 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
16835 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
16836 #ifdef HAVE_NETINET_IN_H
16837 #include <netinet/in.h>
16839 #ifdef HAVE_SYS_SOCKET_H
16840 #include <sys/socket.h>
16842 #ifdef HAVE_NETDB_H
16845 #ifdef HAVE_ARPA_INET_H
16846 #include <arpa/inet.h>
16850 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
16853 $as_echo "#define ss_family __ss_family" >>confdefs.h
16862 for ac_header in stdlib.h
16864 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16865 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_STDLIB_H 1
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16875 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16876 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16877 $as_echo_n "(cached) " >&6
16879 if test "$cross_compiling" = yes; then :
16880 ac_cv_func_malloc_0_nonnull=no
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16885 # include <stdlib.h>
16893 return ! malloc (0);
16898 if ac_fn_c_try_run "$LINENO"; then :
16899 ac_cv_func_malloc_0_nonnull=yes
16901 ac_cv_func_malloc_0_nonnull=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16904 conftest.$ac_objext conftest.beam conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16909 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16910 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16912 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16915 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16917 case " $LIBOBJS " in
16918 *" malloc.$ac_objext "* ) ;;
16919 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16924 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16929 for ac_header in stdlib.h
16931 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16932 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STDLIB_H 1
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16942 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16943 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16944 $as_echo_n "(cached) " >&6
16946 if test "$cross_compiling" = yes; then :
16947 ac_cv_func_realloc_0_nonnull=no
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16952 # include <stdlib.h>
16960 return ! realloc (0, 0);
16965 if ac_fn_c_try_run "$LINENO"; then :
16966 ac_cv_func_realloc_0_nonnull=yes
16968 ac_cv_func_realloc_0_nonnull=no
16970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16971 conftest.$ac_objext conftest.beam conftest.$ac_ext
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16976 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16977 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16979 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16982 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16984 case " $LIBOBJS " in
16985 *" realloc.$ac_objext "* ) ;;
16986 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16991 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16997 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
16998 if test "x$ac_cv_func_b64_pton" = xyes; then :
16999 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
17002 case " $LIBOBJS " in
17003 *" b64_pton.$ac_objext "* ) ;;
17004 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
17011 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
17012 if test "x$ac_cv_func_b64_ntop" = xyes; then :
17013 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
17016 case " $LIBOBJS " in
17017 *" b64_ntop.$ac_objext "* ) ;;
17018 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
17025 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
17026 if test "x$ac_cv_func_calloc" = xyes; then :
17027 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
17030 case " $LIBOBJS " in
17031 *" calloc.$ac_objext "* ) ;;
17032 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
17039 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
17040 if test "x$ac_cv_func_timegm" = xyes; then :
17041 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
17044 case " $LIBOBJS " in
17045 *" timegm.$ac_objext "* ) ;;
17046 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
17053 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
17054 if test "x$ac_cv_func_gmtime_r" = xyes; then :
17055 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
17058 case " $LIBOBJS " in
17059 *" gmtime_r.$ac_objext "* ) ;;
17060 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
17067 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
17068 if test "x$ac_cv_func_ctime_r" = xyes; then :
17069 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
17072 case " $LIBOBJS " in
17073 *" ctime_r.$ac_objext "* ) ;;
17074 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
17081 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
17082 if test "x$ac_cv_func_localtime_r" = xyes; then :
17083 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
17086 case " $LIBOBJS " in
17087 *" localtime_r.$ac_objext "* ) ;;
17088 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17095 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
17096 if test "x$ac_cv_func_isblank" = xyes; then :
17097 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17100 case " $LIBOBJS " in
17101 *" isblank.$ac_objext "* ) ;;
17102 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17109 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
17110 if test "x$ac_cv_func_isascii" = xyes; then :
17111 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
17114 case " $LIBOBJS " in
17115 *" isascii.$ac_objext "* ) ;;
17116 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
17123 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
17124 if test "x$ac_cv_func_inet_aton" = xyes; then :
17125 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
17128 case " $LIBOBJS " in
17129 *" inet_aton.$ac_objext "* ) ;;
17130 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
17137 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17138 if test "x$ac_cv_func_inet_pton" = xyes; then :
17139 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
17142 case " $LIBOBJS " in
17143 *" inet_pton.$ac_objext "* ) ;;
17144 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
17151 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17152 if test "x$ac_cv_func_inet_ntop" = xyes; then :
17153 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
17156 case " $LIBOBJS " in
17157 *" inet_ntop.$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
17165 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17166 if test "x$ac_cv_func_snprintf" = xyes; then :
17167 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
17170 case " $LIBOBJS " in
17171 *" snprintf.$ac_objext "* ) ;;
17172 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17179 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17180 if test "x$ac_cv_func_strlcpy" = xyes; then :
17181 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17184 case " $LIBOBJS " in
17185 *" strlcpy.$ac_objext "* ) ;;
17186 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17193 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
17194 if test "x$ac_cv_func_memmove" = xyes; then :
17195 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
17198 case " $LIBOBJS " in
17199 *" memmove.$ac_objext "* ) ;;
17200 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
17207 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17208 if test "x$ac_cv_type_pid_t" = xyes; then :
17212 cat >>confdefs.h <<_ACEOF
17218 for ac_header in vfork.h
17220 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17221 if test "x$ac_cv_header_vfork_h" = xyes; then :
17222 cat >>confdefs.h <<_ACEOF
17223 #define HAVE_VFORK_H 1
17230 for ac_func in fork vfork
17232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17235 cat >>confdefs.h <<_ACEOF
17236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 if test "x$ac_cv_func_fork" = xyes; then
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17244 $as_echo_n "checking for working fork... " >&6; }
17245 if ${ac_cv_func_fork_works+:} false; then :
17246 $as_echo_n "(cached) " >&6
17248 if test "$cross_compiling" = yes; then :
17249 ac_cv_func_fork_works=cross
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 $ac_includes_default
17258 /* By Ruediger Kuhlmann. */
17259 return fork () < 0;
17265 if ac_fn_c_try_run "$LINENO"; then :
17266 ac_cv_func_fork_works=yes
17268 ac_cv_func_fork_works=no
17270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17271 conftest.$ac_objext conftest.beam conftest.$ac_ext
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17276 $as_echo "$ac_cv_func_fork_works" >&6; }
17279 ac_cv_func_fork_works=$ac_cv_func_fork
17281 if test "x$ac_cv_func_fork_works" = xcross; then
17283 *-*-amigaos* | *-*-msdosdjgpp*)
17284 # Override, as these systems have only a dummy fork() stub
17285 ac_cv_func_fork_works=no
17288 ac_cv_func_fork_works=yes
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17292 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17294 ac_cv_func_vfork_works=$ac_cv_func_vfork
17295 if test "x$ac_cv_func_vfork" = xyes; then
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17297 $as_echo_n "checking for working vfork... " >&6; }
17298 if ${ac_cv_func_vfork_works+:} false; then :
17299 $as_echo_n "(cached) " >&6
17301 if test "$cross_compiling" = yes; then :
17302 ac_cv_func_vfork_works=cross
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17306 /* Thanks to Paul Eggert for this test. */
17307 $ac_includes_default
17308 #include <sys/wait.h>
17309 #ifdef HAVE_VFORK_H
17310 # include <vfork.h>
17312 /* On some sparc systems, changes by the child to local and incoming
17313 argument registers are propagated back to the parent. The compiler
17314 is told about this with #include <vfork.h>, but some compilers
17315 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17316 static variable whose address is put into a register that is
17317 clobbered by the vfork. */
17320 sparc_address_test (int arg)
17322 sparc_address_test (arg) int arg;
17325 static pid_t child;
17343 pid_t parent = getpid ();
17346 sparc_address_test (0);
17351 /* Here is another test for sparc vfork register problems. This
17352 test uses lots of local variables, at least as many local
17353 variables as main has allocated so far including compiler
17354 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17355 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17356 reuse the register of parent for one of the local variables,
17357 since it will think that parent can't possibly be used any more
17358 in this routine. Assigning to the local variable will thus
17359 munge parent in the parent process. */
17361 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17362 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17363 /* Convince the compiler that p..p7 are live; otherwise, it might
17364 use the same hardware register for all 8 local variables. */
17365 if (p != p1 || p != p2 || p != p3 || p != p4
17366 || p != p5 || p != p6 || p != p7)
17369 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17370 from child file descriptors. If the child closes a descriptor
17371 before it execs or exits, this munges the parent's descriptor
17372 as well. Test for this by closing stdout in the child. */
17373 _exit(close(fileno(stdout)) != 0);
17378 while (wait(&status) != child)
17381 /* Was there some problem with vforking? */
17384 /* Did the child fail? (This shouldn't happen.) */
17387 /* Did the vfork/compiler bug occur? */
17388 || parent != getpid()
17390 /* Did the file descriptor bug occur? */
17391 || fstat(fileno(stdout), &st) != 0
17396 if ac_fn_c_try_run "$LINENO"; then :
17397 ac_cv_func_vfork_works=yes
17399 ac_cv_func_vfork_works=no
17401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17402 conftest.$ac_objext conftest.beam conftest.$ac_ext
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17407 $as_echo "$ac_cv_func_vfork_works" >&6; }
17410 if test "x$ac_cv_func_fork_works" = xcross; then
17411 ac_cv_func_vfork_works=$ac_cv_func_vfork
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17413 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17416 if test "x$ac_cv_func_vfork_works" = xyes; then
17418 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17422 $as_echo "#define vfork fork" >>confdefs.h
17425 if test "x$ac_cv_func_fork_works" = xyes; then
17427 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17431 for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
17433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17436 cat >>confdefs.h <<_ACEOF
17437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17443 if test "x$HAVE_B32_NTOP" = "xyes"; then
17444 ldns_build_config_have_b32_ntop=1
17447 ldns_build_config_have_b32_ntop=0
17450 if test "x$HAVE_B32_PTON" = "xyes"; then
17451 ldns_build_config_have_b32_pton=1
17454 ldns_build_config_have_b32_pton=0
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17460 $as_echo_n "checking for getaddrinfo... " >&6; }
17461 ac_cv_func_getaddrinfo=no
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17469 char* getaddrinfo();
17470 char* (*f) () = getaddrinfo;
17480 if ac_fn_c_try_link "$LINENO"; then :
17481 ac_cv_func_getaddrinfo="yes"
17482 if test "$ac_cv_header_windows_h" = "yes"; then
17484 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17487 LIBS="$LIBS -lws2_32"
17492 LIBS="$LIBS -lws2_32"
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17496 #ifdef HAVE_WS2TCPIP_H
17497 #include <ws2tcpip.h>
17504 (void)getaddrinfo(NULL, NULL, NULL, NULL);
17511 if ac_fn_c_try_link "$LINENO"; then :
17513 ac_cv_func_getaddrinfo="yes"
17515 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
17521 ac_cv_func_getaddrinfo="no"
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
17533 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
17534 if test $ac_cv_func_getaddrinfo = yes; then
17536 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
17540 if test $ac_cv_func_getaddrinfo = no; then
17541 case " $LIBOBJS " in
17542 *" fake-rfc2553.$ac_objext "* ) ;;
17543 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
17548 if test "$USE_WINSOCK" = 1; then
17549 if test -n "$ac_tool_prefix"; then
17550 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17551 set dummy ${ac_tool_prefix}windres; ac_word=$2
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17553 $as_echo_n "checking for $ac_word... " >&6; }
17554 if ${ac_cv_prog_WINDRES+:} false; then :
17555 $as_echo_n "(cached) " >&6
17557 if test -n "$WINDRES"; then
17558 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561 for as_dir in $PATH
17564 test -z "$as_dir" && as_dir=.
17565 for ac_exec_ext in '' $ac_executable_extensions; do
17566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17577 WINDRES=$ac_cv_prog_WINDRES
17578 if test -n "$WINDRES"; then
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
17580 $as_echo "$WINDRES" >&6; }
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17583 $as_echo "no" >&6; }
17588 if test -z "$ac_cv_prog_WINDRES"; then
17589 ac_ct_WINDRES=$WINDRES
17590 # Extract the first word of "windres", so it can be a program name with args.
17591 set dummy windres; ac_word=$2
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17593 $as_echo_n "checking for $ac_word... " >&6; }
17594 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
17595 $as_echo_n "(cached) " >&6
17597 if test -n "$ac_ct_WINDRES"; then
17598 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17601 for as_dir in $PATH
17604 test -z "$as_dir" && as_dir=.
17605 for ac_exec_ext in '' $ac_executable_extensions; do
17606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17607 ac_cv_prog_ac_ct_WINDRES="windres"
17608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17617 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17618 if test -n "$ac_ct_WINDRES"; then
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
17620 $as_echo "$ac_ct_WINDRES" >&6; }
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623 $as_echo "no" >&6; }
17626 if test "x$ac_ct_WINDRES" = x; then
17629 case $cross_compiling:$ac_tool_warned in
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17633 ac_tool_warned=yes ;;
17635 WINDRES=$ac_ct_WINDRES
17638 WINDRES="$ac_cv_prog_WINDRES"
17643 # check ioctlsocket
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
17645 $as_echo_n "checking for ioctlsocket... " >&6; }
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17649 #ifdef HAVE_WINSOCK2_H
17650 #include <winsock2.h>
17657 (void)ioctlsocket(0, 0, NULL);
17663 if ac_fn_c_try_link "$LINENO"; then :
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666 $as_echo "yes" >&6; }
17668 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673 $as_echo "no" >&6; }
17675 rm -f core conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17679 #AC_SEARCH_LIBS(RSA_new, [crypto])
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
17683 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
17684 if ${ac_cv_c_format_attribute+:} false; then :
17685 $as_echo_n "(cached) " >&6
17687 ac_cv_c_format_attribute=no
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17691 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
17692 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
17704 if ac_fn_c_try_compile "$LINENO"; then :
17705 ac_cv_c_format_attribute="yes"
17707 ac_cv_c_format_attribute="no"
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
17715 $as_echo "$ac_cv_c_format_attribute" >&6; }
17716 if test $ac_cv_c_format_attribute = yes; then
17718 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
17724 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
17725 if ${ac_cv_c_unused_attribute+:} false; then :
17726 $as_echo_n "(cached) " >&6
17728 ac_cv_c_unused_attribute=no
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17732 void f (char *u __attribute__((unused)));
17744 if ac_fn_c_try_compile "$LINENO"; then :
17745 ac_cv_c_unused_attribute="yes"
17747 ac_cv_c_unused_attribute="no"
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
17757 $as_echo "$ac_cv_c_unused_attribute" >&6; }
17758 if test $ac_cv_c_unused_attribute = yes; then
17760 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
17765 # check OSX deployment target, if needed
17766 if echo $build_os | grep darwin > /dev/null; then
17767 sdk_p=`xcode-select -print-path`;
17768 sdk_v="$( /usr/bin/xcrun --show-sdk-version )";
17770 10.9|10.8) sdk_c="10.7";;
17771 10.11|10.10|*) sdk_c="10.10";;
17773 export MACOSX_DEPLOYMENT_TARGET="${sdk_c}";
17774 export CFLAGS="$CFLAGS -mmacosx-version-min=${sdk_c} -isysroot ${sdk_p}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${sdk_v}.sdk";
17778 $as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
17782 # Check whether --with-trust-anchor was given.
17783 if test "${with_trust_anchor+set}" = set; then :
17784 withval=$with_trust_anchor;
17785 LDNS_TRUST_ANCHOR_FILE="$withval"
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $withval" >&5
17788 $as_echo "$as_me: Default trust anchor: $withval" >&6;}
17792 LDNS_TRUST_ANCHOR_FILE="\$(sysconfdir)/unbound/root.key"
17799 # Check whether --with-ca-file was given.
17800 if test "${with_ca_file+set}" = set; then :
17801 withval=$with_ca_file;
17803 $as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
17806 cat >>confdefs.h <<_ACEOF
17807 #define LDNS_DANE_CA_FILE "$withval"
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
17811 $as_echo "$as_me: Using CAfile: $withval" >&6;}
17812 DEFAULT_CAFILE="Default is $withval"
17818 $as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
17826 # Check whether --with-ca-path was given.
17827 if test "${with_ca_path+set}" = set; then :
17828 withval=$with_ca_path;
17830 $as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
17833 cat >>confdefs.h <<_ACEOF
17834 #define LDNS_DANE_CA_PATH "$withval"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
17838 $as_echo "$as_me: Using CApath: $withval" >&6;}
17839 DEFAULT_CAPATH="Default is $withval"
17845 $as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
17856 if test "x$HAVE_SSL" = "xyes"; then
17857 ldns_build_config_have_ssl=1
17860 ldns_build_config_have_ssl=0
17863 if test "x$ac_cv_c_format_attribute" = "xyes"; then
17864 ldns_build_config_have_attr_format=1
17867 ldns_build_config_have_attr_format=0
17870 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
17871 ldns_build_config_have_attr_unused=1
17874 ldns_build_config_have_attr_unused=0
17878 CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config"
17880 ac_config_files="$ac_config_files $CONFIG_FILES"
17883 ac_config_headers="$ac_config_headers ldns/config.h"
17885 cat >confcache <<\_ACEOF
17886 # This file is a shell script that caches the results of configure
17887 # tests run on this system so they can be shared between configure
17888 # scripts and configure runs, see configure's option --config-cache.
17889 # It is not useful on other systems. If it contains results you don't
17890 # want to keep, you may remove or edit it.
17892 # config.status only pays attention to the cache file if you give it
17893 # the --recheck option to rerun configure.
17895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17897 # following values.
17901 # The following way of writing the cache mishandles newlines in values,
17902 # but we know of no workaround that is simple, portable, and efficient.
17903 # So, we kill variables containing newlines.
17904 # Ultrix sh set writes to stderr and can't be redirected directly,
17905 # and sets the high bit in the cache file unless we assign to the vars.
17907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17908 eval ac_val=\$$ac_var
17912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17916 _ | IFS | as_nl) ;; #(
17917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17918 *) { eval $ac_var=; unset $ac_var;} ;;
17924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17925 *${as_nl}ac_space=\ *)
17926 # `set' does not quote correctly, so add quotes: double-quote
17927 # substitution turns \\\\ into \\, and sed turns \\ into \.
17930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17933 # `set' quotes correctly as required by POSIX, so do not add quotes.
17934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17948 if test -w "$cache_file"; then
17949 if test "x$cache_file" != "x/dev/null"; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17951 $as_echo "$as_me: updating cache $cache_file" >&6;}
17952 if test ! -f "$cache_file" || test -h "$cache_file"; then
17953 cat confcache >"$cache_file"
17955 case $cache_file in #(
17957 mv -f confcache "$cache_file"$$ &&
17958 mv -f "$cache_file"$$ "$cache_file" ;; #(
17960 mv -f confcache "$cache_file" ;;
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17972 # Let make expand exec_prefix.
17973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17975 DEFS=-DHAVE_CONFIG_H
17980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17981 # 1. Remove the extension, and $U if already installed.
17982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17983 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17985 # will be set to the directory where LIBOBJS objects are built.
17986 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17987 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17989 LIBOBJS=$ac_libobjs
17991 LTLIBOBJS=$ac_ltlibobjs
17996 : "${CONFIG_STATUS=./config.status}"
17998 ac_clean_files_save=$ac_clean_files
17999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18003 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18005 # Generated by $as_me.
18006 # Run this file to recreate the current configuration.
18007 # Compiler output produced by configure, useful for debugging
18008 # configure, is in config.log if it exists.
18011 ac_cs_recheck=false
18014 SHELL=\${CONFIG_SHELL-$SHELL}
18017 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18018 ## -------------------- ##
18019 ## M4sh Initialization. ##
18020 ## -------------------- ##
18022 # Be more Bourne compatible
18023 DUALCASE=1; export DUALCASE # for MKS sh
18024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18028 # is contrary to our usage. Disable this feature.
18029 alias -g '${1+"$@"}'='"$@"'
18030 setopt NO_GLOB_SUBST
18032 case `(set -o) 2>/dev/null` in #(
18044 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18045 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18048 # Prefer a ksh shell builtin over an external printf program on Solaris,
18049 # but without wasting forks for bash or zsh.
18050 if test -z "$BASH_VERSION$ZSH_VERSION" \
18051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18052 as_echo='print -r --'
18053 as_echo_n='print -rn --'
18054 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18055 as_echo='printf %s\n'
18056 as_echo_n='printf %s'
18058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18060 as_echo_n='/usr/ucb/echo -n'
18062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18063 as_echo_n_body='eval
18067 expr "X$arg" : "X\\(.*\\)$as_nl";
18068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18072 export as_echo_n_body
18073 as_echo_n='sh -c $as_echo_n_body as_echo'
18075 export as_echo_body
18076 as_echo='sh -c $as_echo_body as_echo'
18079 # The user is always right.
18080 if test "${PATH_SEPARATOR+set}" != set; then
18082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18090 # We need space, tab and new line, in precisely that order. Quoting is
18091 # there to prevent editors from complaining about space-tab.
18092 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18093 # splitting by setting IFS to empty value.)
18096 # Find who we are. Look in the path if we contain no directory separator.
18099 *[\\/]* ) as_myself=$0 ;;
18100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18101 for as_dir in $PATH
18104 test -z "$as_dir" && as_dir=.
18105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18111 # We did not find ourselves, most probably we were run as `sh COMMAND'
18112 # in which case we are not to be found in the path.
18113 if test "x$as_myself" = x; then
18116 if test ! -f "$as_myself"; then
18117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18121 # Unset variables that we do not need and which cause bugs (e.g. in
18122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18123 # suppresses any "Segmentation fault" message there. '((' could
18124 # trigger a bug in pdksh 5.2.14.
18125 for as_var in BASH_ENV ENV MAIL MAILPATH
18126 do eval test x\${$as_var+set} = xset \
18127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18143 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18144 # ----------------------------------------
18145 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18146 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18147 # script with STATUS, using 1 if that was 0.
18150 as_status=$1; test $as_status -eq 0 && as_status=1
18152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18155 $as_echo "$as_me: error: $2" >&2
18156 as_fn_exit $as_status
18160 # as_fn_set_status STATUS
18161 # -----------------------
18162 # Set $? to STATUS, without forking.
18163 as_fn_set_status ()
18166 } # as_fn_set_status
18168 # as_fn_exit STATUS
18169 # -----------------
18170 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18174 as_fn_set_status $1
18180 # Portably unset VAR.
18183 { eval $1=; unset $1;}
18185 as_unset=as_fn_unset
18186 # as_fn_append VAR VALUE
18187 # ----------------------
18188 # Append the text in VALUE to the end of the definition contained in VAR. Take
18189 # advantage of any shell optimizations that allow amortized linear growth over
18190 # repeated appends, instead of the typical quadratic growth present in naive
18192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18193 eval 'as_fn_append ()
18204 # as_fn_arith ARG...
18205 # ------------------
18206 # Perform arithmetic evaluation on the ARGs, and store the result in the
18207 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18208 # must be portable across $(()) and expr.
18209 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18210 eval 'as_fn_arith ()
18217 as_val=`expr "$@" || test $? -eq 1`
18222 if expr a : '\(a\)' >/dev/null 2>&1 &&
18223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18230 as_basename=basename
18235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18241 as_me=`$as_basename -- "$0" ||
18242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18243 X"$0" : 'X\(//\)$' \| \
18244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18246 sed '/^.*\/\([^/][^/]*\)\/*$/{
18260 # Avoid depending upon Character Ranges.
18261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18264 as_cr_digits='0123456789'
18265 as_cr_alnum=$as_cr_Letters$as_cr_digits
18267 ECHO_C= ECHO_N= ECHO_T=
18268 case `echo -n x` in #(((((
18270 case `echo 'xy\c'` in
18271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18280 rm -f conf$$ conf$$.exe conf$$.file
18281 if test -d conf$$.dir; then
18282 rm -f conf$$.dir/conf$$.file
18285 mkdir conf$$.dir 2>/dev/null
18287 if (echo >conf$$.file) 2>/dev/null; then
18288 if ln -s conf$$.file conf$$ 2>/dev/null; then
18290 # ... but there are two gotchas:
18291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18293 # In both cases, we have to default to `cp -pR'.
18294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18296 elif ln conf$$.file conf$$ 2>/dev/null; then
18304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18305 rmdir conf$$.dir 2>/dev/null
18310 # Create "$as_dir" as a directory, including parents if necessary.
18315 -*) as_dir=./$as_dir;;
18317 test -d "$as_dir" || eval $as_mkdir_p || {
18321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18322 *) as_qdir=$as_dir;;
18324 as_dirs="'$as_qdir' $as_dirs"
18325 as_dir=`$as_dirname -- "$as_dir" ||
18326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$as_dir" : 'X\(//\)[^/]' \| \
18328 X"$as_dir" : 'X\(//\)$' \| \
18329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18330 $as_echo X"$as_dir" |
18331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18335 /^X\(\/\/\)[^/].*/{
18348 test -d "$as_dir" && break
18350 test -z "$as_dirs" || eval "mkdir $as_dirs"
18351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18355 if mkdir -p . 2>/dev/null; then
18356 as_mkdir_p='mkdir -p "$as_dir"'
18358 test -d ./-p && rmdir ./-p
18363 # as_fn_executable_p FILE
18364 # -----------------------
18365 # Test if FILE is an executable regular file.
18366 as_fn_executable_p ()
18368 test -f "$1" && test -x "$1"
18369 } # as_fn_executable_p
18370 as_test_x='test -x'
18371 as_executable_p=as_fn_executable_p
18373 # Sed expression to map a string onto a valid CPP name.
18374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18376 # Sed expression to map a string onto a valid variable name.
18377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18381 ## ----------------------------------- ##
18382 ## Main body of $CONFIG_STATUS script. ##
18383 ## ----------------------------------- ##
18385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388 # Save the log message, to keep $0 and so on meaningful, and to
18389 # report actual input values of CONFIG_FILES etc. instead of their
18390 # values after options handling.
18392 This file was extended by ldns $as_me 1.7.0, which was
18393 generated by GNU Autoconf 2.69. Invocation command line was
18395 CONFIG_FILES = $CONFIG_FILES
18396 CONFIG_HEADERS = $CONFIG_HEADERS
18397 CONFIG_LINKS = $CONFIG_LINKS
18398 CONFIG_COMMANDS = $CONFIG_COMMANDS
18401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18406 case $ac_config_files in *"
18407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18410 case $ac_config_headers in *"
18411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18416 # Files that config.status was made for.
18417 config_files="$ac_config_files"
18418 config_headers="$ac_config_headers"
18419 config_commands="$ac_config_commands"
18423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18425 \`$as_me' instantiates files and other configuration actions
18426 from templates according to the current configuration. Unless the files
18427 and actions are specified as TAGs, all are instantiated by default.
18429 Usage: $0 [OPTION]... [TAG]...
18431 -h, --help print this help, then exit
18432 -V, --version print version number and configuration settings, then exit
18433 --config print configuration, then exit
18434 -q, --quiet, --silent
18435 do not print progress messages
18436 -d, --debug don't remove temporary files
18437 --recheck update $as_me by reconfiguring in the same conditions
18438 --file=FILE[:TEMPLATE]
18439 instantiate the configuration file FILE
18440 --header=FILE[:TEMPLATE]
18441 instantiate the configuration header FILE
18443 Configuration files:
18446 Configuration headers:
18449 Configuration commands:
18452 Report bugs to <libdns@nlnetlabs.nl>."
18455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18458 ldns config.status 1.7.0
18459 configured by $0, generated by GNU Autoconf 2.69,
18460 with options \\"\$ac_cs_config\\"
18462 Copyright (C) 2012 Free Software Foundation, Inc.
18463 This config.status script is free software; the Free Software Foundation
18464 gives unlimited permission to copy, distribute and modify it."
18469 test -n "\$AWK" || AWK=awk
18472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18473 # The default lists apply if the user does not specify any file.
18479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18496 # Handling of the options.
18497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18500 $as_echo "$ac_cs_version"; exit ;;
18501 --config | --confi | --conf | --con | --co | --c )
18502 $as_echo "$ac_cs_config"; exit ;;
18503 --debug | --debu | --deb | --de | --d | -d )
18505 --file | --fil | --fi | --f )
18508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18509 '') as_fn_error $? "missing file argument" ;;
18511 as_fn_append CONFIG_FILES " '$ac_optarg'"
18512 ac_need_defaults=false;;
18513 --header | --heade | --head | --hea )
18516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18518 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18519 ac_need_defaults=false;;
18521 # Conflict between --help and --header
18522 as_fn_error $? "ambiguous option: \`$1'
18523 Try \`$0 --help' for more information.";;
18524 --help | --hel | -h )
18525 $as_echo "$ac_cs_usage"; exit ;;
18526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18530 # This is an error.
18531 -*) as_fn_error $? "unrecognized option: \`$1'
18532 Try \`$0 --help' for more information." ;;
18534 *) as_fn_append ac_config_targets " $1"
18535 ac_need_defaults=false ;;
18541 ac_configure_extra_args=
18543 if $ac_cs_silent; then
18545 ac_configure_extra_args="$ac_configure_extra_args --silent"
18549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18550 if \$ac_cs_recheck; then
18551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18554 CONFIG_SHELL='$SHELL'
18555 export CONFIG_SHELL
18560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18565 ## Running $as_me. ##
18571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577 # The HP-UX ksh and POSIX shell print the target directory to stdout
18578 # if CDPATH is set.
18579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18581 sed_quote_subst='$sed_quote_subst'
18582 double_quote_subst='$double_quote_subst'
18583 delay_variable_subst='$delay_variable_subst'
18584 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18585 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18586 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18587 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18588 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18589 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18590 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18591 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18592 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18593 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18594 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18595 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18596 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18597 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18598 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18599 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18600 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18601 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18602 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18603 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18604 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18605 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18606 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18607 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18608 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18609 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18610 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18611 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18612 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18613 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18614 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18615 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18616 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18617 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18618 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18619 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18620 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18621 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18622 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18623 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18624 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18625 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18626 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18627 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18628 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18629 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18630 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18631 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18632 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18633 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18634 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18635 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18636 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18637 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18638 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18639 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18640 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18641 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18642 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"`'
18643 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18644 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18645 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18646 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18647 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18648 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18649 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18650 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18651 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18652 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18653 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18654 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18655 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18656 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18657 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18658 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18659 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18660 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18661 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18662 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18663 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18664 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18665 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18666 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18667 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18668 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18669 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18670 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18671 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18672 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18673 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18674 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18675 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18676 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18677 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18678 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18679 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18680 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18681 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18682 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18683 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18684 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18685 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18686 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18687 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18688 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18689 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18690 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18691 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18692 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18693 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18694 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18695 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18696 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18697 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18698 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18699 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18700 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18701 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18702 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18703 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18704 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18705 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18706 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18707 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18708 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18709 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18710 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18711 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18712 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18713 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18714 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18715 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18716 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18717 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18718 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18721 LTCFLAGS='$LTCFLAGS'
18722 compiler='$compiler_DEFAULT'
18724 # A function that is used when there is no print builtin or printf.
18725 func_fallback_echo ()
18727 eval 'cat <<_LTECHO_EOF
18732 # Quote evaled strings.
18747 deplibs_check_method \
18752 sharedlib_from_linklib_cmd \
18755 archiver_list_spec \
18761 lt_cv_sys_global_symbol_pipe \
18762 lt_cv_sys_global_symbol_to_cdecl \
18763 lt_cv_sys_global_symbol_to_import \
18764 lt_cv_sys_global_symbol_to_c_name_address \
18765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18766 lt_cv_nm_interface \
18767 nm_file_list_spec \
18768 lt_cv_truncate_bin \
18769 lt_prog_compiler_no_builtin_flag \
18770 lt_prog_compiler_pic \
18771 lt_prog_compiler_wl \
18772 lt_prog_compiler_static \
18773 lt_cv_prog_compiler_c_o \
18782 export_dynamic_flag_spec \
18783 whole_archive_flag_spec \
18784 compiler_needs_object \
18786 allow_undefined_flag \
18787 no_undefined_flag \
18788 hardcode_libdir_flag_spec \
18789 hardcode_libdir_separator \
18793 variables_saved_for_relink \
18795 library_names_spec \
18797 install_override_mode \
18801 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18802 *[\\\\\\\`\\"\\\$]*)
18803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18811 # Double-quote double-evaled strings.
18812 for var in reload_cmds \
18813 old_postinstall_cmds \
18814 old_postuninstall_cmds \
18816 extract_expsyms_cmds \
18817 old_archive_from_new_cmds \
18818 old_archive_from_expsyms_cmds \
18820 archive_expsym_cmds \
18822 module_expsym_cmds \
18823 export_symbols_cmds \
18827 postuninstall_cmds \
18829 sys_lib_search_path_spec \
18830 configure_time_dlsearch_path \
18831 configure_time_lt_sys_library_path; do
18832 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18833 *[\\\\\\\`\\"\\\$]*)
18834 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18837 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18842 ac_aux_dir='$ac_aux_dir'
18844 # See if we are running on zsh, and set the options that allow our
18845 # commands through without removal of \ escapes INIT.
18846 if test -n "\${ZSH_VERSION+set}"; then
18847 setopt NO_GLOB_SUBST
18861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18863 # Handling of arguments.
18864 for ac_config_target in $ac_config_targets
18866 case $ac_config_target in
18867 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18868 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
18869 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
18870 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
18872 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18877 # If the user did not use the arguments to specify the items to instantiate,
18878 # then the envvar interface is used. Set only those that are not.
18879 # We use the long form for the default assignment because of an extremely
18880 # bizarre bug on SunOS 4.1.3.
18881 if $ac_need_defaults; then
18882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18887 # Have a temporary directory for convenience. Make it in the build tree
18888 # simply because there is no reason against having it here, and in addition,
18889 # creating and moving files from /tmp can sometimes cause problems.
18890 # Hook for its removal unless debugging.
18891 # Note that there is a small window in which the directory will not be cleaned:
18892 # after its creation but before its name has been assigned to `$tmp'.
18896 trap 'exit_status=$?
18897 : "${ac_tmp:=$tmp}"
18898 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18900 trap 'as_fn_exit 1' 1 2 13 15
18902 # Create a (secure) tmp directory for tmp files.
18905 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18909 tmp=./conf$$-$RANDOM
18910 (umask 077 && mkdir "$tmp")
18911 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18914 # Set up the scripts for CONFIG_FILES section.
18915 # No need to generate them if there are no CONFIG_FILES.
18916 # This happens for instance with `./config.status config.h'.
18917 if test -n "$CONFIG_FILES"; then
18920 ac_cr=`echo X | tr X '\015'`
18921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18922 # But we know of no other shell where ac_cr would be empty at this
18923 # point, so we can use a bashism as a fallback.
18924 if test "x$ac_cr" = x; then
18925 eval ac_cr=\$\'\\r\'
18927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18931 ac_cs_awk_cr=$ac_cr
18934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18939 echo "cat >conf$$subs.awk <<_ACEOF" &&
18940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18942 } >conf$$subs.sh ||
18943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18946 for ac_last_try in false false false false false :; do
18947 . ./conf$$subs.sh ||
18948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18951 if test $ac_delim_n = $ac_delim_num; then
18953 elif $ac_last_try; then
18954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18959 rm -f conf$$subs.sh
18961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18962 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18966 s/^/S["/; s/!.*/"]=/
18976 s/\(.\{148\}\)..*/\1/
18978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18990 s/\(.\{148\}\)..*/\1/
18992 s/["\\]/\\&/g; s/^/"/; s/$/"/
18996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19001 ' <conf$$subs.awk | sed '
19006 ' >>$CONFIG_STATUS || ac_write_fail=1
19007 rm -f conf$$subs.awk
19008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19010 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19011 for (key in S) S_is_set[key] = 1
19017 nfields = split(line, field, "@")
19019 len = length(field[1])
19020 for (i = 2; i < nfields; i++) {
19022 keylen = length(key)
19023 if (S_is_set[key]) {
19025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19026 len += length(value) + length(field[++i])
19037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19042 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19043 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19046 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19047 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19048 # trailing colons and then remove the whole line if VPATH becomes empty
19049 # (actually we leave an empty line to preserve line numbers).
19050 if test "x$srcdir" = x.; then
19051 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19070 fi # test -n "$CONFIG_FILES"
19072 # Set up the scripts for CONFIG_HEADERS section.
19073 # No need to generate them if there are no CONFIG_HEADERS.
19074 # This happens for instance with `./config.status Makefile'.
19075 if test -n "$CONFIG_HEADERS"; then
19076 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19080 # Transform confdefs.h into an awk script `defines.awk', embedded as
19081 # here-document in config.status, that substitutes the proper values into
19082 # config.h.in to produce config.h.
19084 # Create a delimiter string that does not exist in confdefs.h, to ease
19085 # handling of long lines.
19087 for ac_last_try in false false :; do
19088 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19089 if test -z "$ac_tt"; then
19091 elif $ac_last_try; then
19092 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19094 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19098 # For the awk script, D is an array of macro values keyed by name,
19099 # likewise P contains macro parameters if any. Preserve backslash
19100 # newline sequences.
19102 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19104 s/.\{148\}/&'"$ac_delim"'/g
19107 s/^[ ]*#[ ]*define[ ][ ]*/ /
19114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19121 D["\1"]=" \3\\\\\\n"\\/p
19123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19128 s/.\{148\}/&'"$ac_delim"'/g
19133 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19136 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19138 ' <confdefs.h | sed '
19139 s/'"$ac_delim"'/"\\\
19140 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19143 for (key in D) D_is_set[key] = 1
19146 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19148 split(line, arg, " ")
19149 if (arg[1] == "#") {
19153 defundef = substr(arg[1], 2)
19156 split(mac1, mac2, "(") #)
19158 prefix = substr(line, 1, index(line, defundef) - 1)
19159 if (D_is_set[macro]) {
19160 # Preserve the white space surrounding the "#".
19161 print prefix "define", macro P[macro] D[macro]
19164 # Replace #undef with comments. This is necessary, for example,
19165 # in the case of _POSIX_SOURCE, which is predefined and required
19166 # on some systems where configure will not decide to define it.
19167 if (defundef == "undef") {
19168 print "/*", prefix defundef, macro, "*/"
19176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19177 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19178 fi # test -n "$CONFIG_HEADERS"
19181 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19186 :[FHLC]) ac_mode=$ac_tag; continue;;
19188 case $ac_mode$ac_tag in
19190 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19191 :[FH]-) ac_tag=-:-;;
19192 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19209 -) ac_f="$ac_tmp/stdin";;
19210 *) # Look for the file first in the build tree, then in the source tree
19211 # (if the path is not absolute). The absolute path cannot be DOS-style,
19212 # because $ac_f cannot contain `:'.
19216 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19218 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19220 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19221 as_fn_append ac_file_inputs " '$ac_f'"
19224 # Let's still pretend it is `configure' which instantiates (i.e., don't
19225 # use $as_me), people would be surprised to read:
19226 # /* config.h. Generated by config.status. */
19227 configure_input='Generated from '`
19228 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19230 if test x"$ac_file" != x-; then
19231 configure_input="$ac_file. $configure_input"
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19233 $as_echo "$as_me: creating $ac_file" >&6;}
19235 # Neutralize special characters interpreted by sed in replacement strings.
19236 case $configure_input in #(
19237 *\&* | *\|* | *\\* )
19238 ac_sed_conf_input=`$as_echo "$configure_input" |
19239 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19240 *) ac_sed_conf_input=$configure_input;;
19244 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19250 ac_dir=`$as_dirname -- "$ac_file" ||
19251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19252 X"$ac_file" : 'X\(//\)[^/]' \| \
19253 X"$ac_file" : 'X\(//\)$' \| \
19254 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19255 $as_echo X"$ac_file" |
19256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19260 /^X\(\/\/\)[^/].*/{
19273 as_dir="$ac_dir"; as_fn_mkdir_p
19277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19279 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19280 # A ".." for each directory in $ac_dir_suffix.
19281 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19282 case $ac_top_builddir_sub in
19283 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19284 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19287 ac_abs_top_builddir=$ac_pwd
19288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19289 # for backward compatibility:
19290 ac_top_builddir=$ac_top_build_prefix
19293 .) # We are building in place.
19295 ac_top_srcdir=$ac_top_builddir_sub
19296 ac_abs_top_srcdir=$ac_pwd ;;
19297 [\\/]* | ?:[\\/]* ) # Absolute name.
19298 ac_srcdir=$srcdir$ac_dir_suffix;
19299 ac_top_srcdir=$srcdir
19300 ac_abs_top_srcdir=$srcdir ;;
19301 *) # Relative name.
19302 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19303 ac_top_srcdir=$ac_top_build_prefix$srcdir
19304 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19318 # If the template does not know about datarootdir, expand it.
19319 # FIXME: This hack should be removed a few years after 2.60.
19320 ac_datarootdir_hack=; ac_datarootdir_seen=
19331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19332 *datarootdir*) ac_datarootdir_seen=yes;;
19333 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19338 ac_datarootdir_hack='
19339 s&@datadir@&$datadir&g
19340 s&@docdir@&$docdir&g
19341 s&@infodir@&$infodir&g
19342 s&@localedir@&$localedir&g
19343 s&@mandir@&$mandir&g
19344 s&\\\${datarootdir}&$datarootdir&g' ;;
19348 # Neutralize VPATH when `$srcdir' = `.'.
19349 # Shell code in configure.ac might set extrasub.
19350 # FIXME: do we really want to maintain this feature?
19351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19352 ac_sed_extra="$ac_vpsub
19355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19358 s|@configure_input@|$ac_sed_conf_input|;t t
19359 s&@top_builddir@&$ac_top_builddir_sub&;t t
19360 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19361 s&@srcdir@&$ac_srcdir&;t t
19362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19363 s&@top_srcdir@&$ac_top_srcdir&;t t
19364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19365 s&@builddir@&$ac_builddir&;t t
19366 s&@abs_builddir@&$ac_abs_builddir&;t t
19367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19368 $ac_datarootdir_hack
19370 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19371 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19376 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378 which seems to be undefined. Please make sure it is defined" >&5
19379 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19380 which seems to be undefined. Please make sure it is defined" >&2;}
19382 rm -f "$ac_tmp/stdin"
19384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19393 if test x"$ac_file" != x-; then
19395 $as_echo "/* $configure_input */" \
19396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19397 } >"$ac_tmp/config.h" \
19398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19401 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19404 mv "$ac_tmp/config.h" "$ac_file" \
19405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19408 $as_echo "/* $configure_input */" \
19409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19410 || as_fn_error $? "could not create -" "$LINENO" 5
19414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19415 $as_echo "$as_me: executing $ac_file commands" >&6;}
19420 case $ac_file$ac_mode in
19423 # See if we are running on zsh, and set the options that allow our
19424 # commands through without removal of \ escapes.
19425 if test -n "${ZSH_VERSION+set}"; then
19426 setopt NO_GLOB_SUBST
19430 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19433 cat <<_LT_EOF >> "$cfgfile"
19435 # Generated automatically by $as_me ($PACKAGE) $VERSION
19436 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19438 # Provide generalized library-building support services.
19439 # Written by Gordon Matzigkeit, 1996
19441 # Copyright (C) 2014 Free Software Foundation, Inc.
19442 # This is free software; see the source for copying conditions. There is NO
19443 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19445 # GNU Libtool is free software; you can redistribute it and/or modify
19446 # it under the terms of the GNU General Public License as published by
19447 # the Free Software Foundation; either version 2 of of the License, or
19448 # (at your option) any later version.
19450 # As a special exception to the GNU General Public License, if you
19451 # distribute this file as part of a program or library that is built
19452 # using GNU Libtool, you may include this file under the same
19453 # distribution terms that you use for the rest of that program.
19455 # GNU Libtool is distributed in the hope that it will be useful, but
19456 # WITHOUT ANY WARRANTY; without even the implied warranty of
19457 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19458 # GNU General Public License for more details.
19460 # You should have received a copy of the GNU General Public License
19461 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19464 # The names of the tagged configurations supported by this script.
19467 # Configured defaults for sys_lib_dlsearch_path munging.
19468 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19470 # ### BEGIN LIBTOOL CONFIG
19472 # Which release of libtool.m4 was used?
19473 macro_version=$macro_version
19474 macro_revision=$macro_revision
19476 # Whether or not to build shared libraries.
19477 build_libtool_libs=$enable_shared
19479 # Whether or not to build static libraries.
19480 build_old_libs=$enable_static
19482 # What type of objects to build.
19485 # Whether or not to optimize for fast installation.
19486 fast_install=$enable_fast_install
19488 # Shared archive member basename,for filename based shared library versioning on AIX.
19489 shared_archive_member_spec=$shared_archive_member_spec
19491 # Shell to use when invoking shell scripts.
19494 # An echo program that protects backslashes.
19497 # The PATH separator for the build system.
19498 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19501 host_alias=$host_alias
19505 # The build system.
19506 build_alias=$build_alias
19510 # A sed program that does not truncate output.
19513 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19514 Xsed="\$SED -e 1s/^X//"
19516 # A grep program that handles long lines.
19522 # A literal string matcher.
19525 # A BSD- or MS-compatible name lister.
19528 # Whether we need soft or hard links.
19531 # What is the maximum length of a command?
19532 max_cmd_len=$max_cmd_len
19534 # Object file suffix (normally "o").
19537 # Executable file suffix (normally "").
19540 # whether the shell understands "unset".
19543 # turn spaces into newlines.
19546 # turn newlines into spaces.
19549 # convert \$build file names to \$host format.
19550 to_host_file_cmd=$lt_cv_to_host_file_cmd
19552 # convert \$build files to toolchain format.
19553 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19555 # An object symbol dumper.
19556 OBJDUMP=$lt_OBJDUMP
19558 # Method to check whether dependent libraries are shared objects.
19559 deplibs_check_method=$lt_deplibs_check_method
19561 # Command to use when deplibs_check_method = "file_magic".
19562 file_magic_cmd=$lt_file_magic_cmd
19564 # How to find potential files when deplibs_check_method = "file_magic".
19565 file_magic_glob=$lt_file_magic_glob
19567 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19568 want_nocaseglob=$lt_want_nocaseglob
19570 # DLL creation program.
19571 DLLTOOL=$lt_DLLTOOL
19573 # Command to associate shared and link libraries.
19574 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19579 # Flags to create an archive.
19580 AR_FLAGS=$lt_AR_FLAGS
19582 # How to feed a file listing to the archiver.
19583 archiver_list_spec=$lt_archiver_list_spec
19585 # A symbol stripping program.
19588 # Commands used to install an old-style archive.
19590 old_postinstall_cmds=$lt_old_postinstall_cmds
19591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19593 # Whether to use a lock for old archive extraction.
19594 lock_old_archive_extraction=$lock_old_archive_extraction
19599 # LTCC compiler flags.
19600 LTCFLAGS=$lt_CFLAGS
19602 # Take the output of nm and produce a listing of raw symbols and C names.
19603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19605 # Transform the output of nm in a proper C declaration.
19606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19608 # Transform the output of nm into a list of symbols to manually relocate.
19609 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19611 # Transform the output of nm in a C name address pair.
19612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19614 # Transform the output of nm in a C name address pair when lib prefix is needed.
19615 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19617 # The name lister interface.
19618 nm_interface=$lt_lt_cv_nm_interface
19620 # Specify filename containing input files for \$NM.
19621 nm_file_list_spec=$lt_nm_file_list_spec
19623 # The root where to search for dependent libraries,and where our libraries should be installed.
19624 lt_sysroot=$lt_sysroot
19626 # Command to truncate a binary pipe.
19627 lt_truncate_bin=$lt_lt_cv_truncate_bin
19629 # The name of the directory that contains temporary libtool files.
19632 # Used to examine libraries when file_magic_cmd begins with "file".
19633 MAGIC_CMD=$MAGIC_CMD
19635 # Must we lock files when doing compilation?
19636 need_locks=$lt_need_locks
19639 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19641 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19642 DSYMUTIL=$lt_DSYMUTIL
19644 # Tool to change global to local symbols on Mac OS X.
19647 # Tool to manipulate fat objects and archives on Mac OS X.
19650 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19653 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19654 OTOOL64=$lt_OTOOL64
19656 # Old archive suffix (normally "a").
19659 # Shared library suffix (normally ".so").
19660 shrext_cmds=$lt_shrext_cmds
19662 # The commands to extract the exported symbol list from a shared archive.
19663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19665 # Variables whose values should be saved in libtool wrapper scripts and
19666 # restored at link time.
19667 variables_saved_for_relink=$lt_variables_saved_for_relink
19669 # Do we need the "lib" prefix for modules?
19670 need_lib_prefix=$need_lib_prefix
19672 # Do we need a version for libraries?
19673 need_version=$need_version
19675 # Library versioning type.
19676 version_type=$version_type
19678 # Shared library runtime path variable.
19679 runpath_var=$runpath_var
19681 # Shared library path variable.
19682 shlibpath_var=$shlibpath_var
19684 # Is shlibpath searched before the hard-coded library search path?
19685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19687 # Format of library name prefix.
19688 libname_spec=$lt_libname_spec
19690 # List of archive names. First name is the real one, the rest are links.
19691 # The last name is the one that the linker finds with -lNAME
19692 library_names_spec=$lt_library_names_spec
19694 # The coded name of the library, if different from the real name.
19695 soname_spec=$lt_soname_spec
19697 # Permission mode override for installation of shared libraries.
19698 install_override_mode=$lt_install_override_mode
19700 # Command to use after installation of a shared archive.
19701 postinstall_cmds=$lt_postinstall_cmds
19703 # Command to use after uninstallation of a shared archive.
19704 postuninstall_cmds=$lt_postuninstall_cmds
19706 # Commands used to finish a libtool library installation in a directory.
19707 finish_cmds=$lt_finish_cmds
19709 # As "finish_cmds", except a single script fragment to be evaled but
19711 finish_eval=$lt_finish_eval
19713 # Whether we should hardcode library paths into libraries.
19714 hardcode_into_libs=$hardcode_into_libs
19716 # Compile-time system search path for libraries.
19717 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19719 # Detected run-time system search path for libraries.
19720 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19722 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19723 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19725 # Whether dlopen is supported.
19726 dlopen_support=$enable_dlopen
19728 # Whether dlopen of programs is supported.
19729 dlopen_self=$enable_dlopen_self
19731 # Whether dlopen of statically linked programs is supported.
19732 dlopen_self_static=$enable_dlopen_self_static
19734 # Commands to strip libraries.
19735 old_striplib=$lt_old_striplib
19736 striplib=$lt_striplib
19739 # The linker used to build libraries.
19742 # How to create reloadable object files.
19743 reload_flag=$lt_reload_flag
19744 reload_cmds=$lt_reload_cmds
19746 # Commands used to build an old-style archive.
19747 old_archive_cmds=$lt_old_archive_cmds
19749 # A language specific compiler.
19752 # Is the compiler the GNU compiler?
19755 # Compiler flag to turn off builtin functions.
19756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19758 # Additional compiler flags for building library objects.
19759 pic_flag=$lt_lt_prog_compiler_pic
19761 # How to pass a linker flag through the compiler.
19762 wl=$lt_lt_prog_compiler_wl
19764 # Compiler flag to prevent dynamic linking.
19765 link_static_flag=$lt_lt_prog_compiler_static
19767 # Does compiler simultaneously support -c and -o options?
19768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19770 # Whether or not to add -lc for building shared libraries.
19771 build_libtool_need_lc=$archive_cmds_need_lc
19773 # Whether or not to disallow shared libs when runtime libs are static.
19774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19776 # Compiler flag to allow reflexive dlopens.
19777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19779 # Compiler flag to generate shared objects directly from archives.
19780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19782 # Whether the compiler copes with passing no objects directly.
19783 compiler_needs_object=$lt_compiler_needs_object
19785 # Create an old-style archive from a shared archive.
19786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19788 # Create a temporary old-style archive to link instead of a shared archive.
19789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19791 # Commands used to build a shared archive.
19792 archive_cmds=$lt_archive_cmds
19793 archive_expsym_cmds=$lt_archive_expsym_cmds
19795 # Commands used to build a loadable module if different from building
19796 # a shared archive.
19797 module_cmds=$lt_module_cmds
19798 module_expsym_cmds=$lt_module_expsym_cmds
19800 # Whether we are building with GNU ld or not.
19801 with_gnu_ld=$lt_with_gnu_ld
19803 # Flag that allows shared libraries with undefined symbols to be built.
19804 allow_undefined_flag=$lt_allow_undefined_flag
19806 # Flag that enforces no undefined symbols.
19807 no_undefined_flag=$lt_no_undefined_flag
19809 # Flag to hardcode \$libdir into a binary during linking.
19810 # This must work even if \$libdir does not exist
19811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19813 # Whether we need a single "-rpath" flag with a separated argument.
19814 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19816 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19817 # DIR into the resulting binary.
19818 hardcode_direct=$hardcode_direct
19820 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19821 # DIR into the resulting binary and the resulting library dependency is
19822 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19823 # library is relocated.
19824 hardcode_direct_absolute=$hardcode_direct_absolute
19826 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19827 # into the resulting binary.
19828 hardcode_minus_L=$hardcode_minus_L
19830 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19831 # into the resulting binary.
19832 hardcode_shlibpath_var=$hardcode_shlibpath_var
19834 # Set to "yes" if building a shared library automatically hardcodes DIR
19835 # into the library and all subsequent libraries and executables linked
19837 hardcode_automatic=$hardcode_automatic
19839 # Set to yes if linker adds runtime paths of dependent libraries
19840 # to runtime path list.
19841 inherit_rpath=$inherit_rpath
19843 # Whether libtool must link a program against all its dependency libraries.
19844 link_all_deplibs=$link_all_deplibs
19846 # Set to "yes" if exported symbols are required.
19847 always_export_symbols=$always_export_symbols
19849 # The commands to list exported symbols.
19850 export_symbols_cmds=$lt_export_symbols_cmds
19852 # Symbols that should not be listed in the preloaded symbols.
19853 exclude_expsyms=$lt_exclude_expsyms
19855 # Symbols that must always be exported.
19856 include_expsyms=$lt_include_expsyms
19858 # Commands necessary for linking programs (against libraries) with templates.
19859 prelink_cmds=$lt_prelink_cmds
19861 # Commands necessary for finishing linking programs.
19862 postlink_cmds=$lt_postlink_cmds
19864 # Specify filename containing input files.
19865 file_list_spec=$lt_file_list_spec
19867 # How to hardcode a shared library path into an executable.
19868 hardcode_action=$hardcode_action
19870 # ### END LIBTOOL CONFIG
19874 cat <<'_LT_EOF' >> "$cfgfile"
19876 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19878 # func_munge_path_list VARIABLE PATH
19879 # -----------------------------------
19880 # VARIABLE is name of variable containing _space_ separated list of
19881 # directories to be munged by the contents of PATH, which is string
19884 # string "DIR[ DIR]" will be prepended to VARIABLE
19886 # string "DIR[ DIR]" will be appended to VARIABLE
19887 # "DIRP[:DIRP]::[DIRA:]DIRA"
19888 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19889 # "DIRA[ DIRA]" will be appended to VARIABLE
19891 # VARIABLE will be replaced by "DIR[ DIR]"
19892 func_munge_path_list ()
19898 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19901 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19904 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19905 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19908 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19914 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19915 func_cc_basename ()
19917 for cc_temp in $*""; do
19919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19925 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19929 # ### END FUNCTIONS SHARED WITH CONFIGURE
19935 cat <<\_LT_EOF >> "$cfgfile"
19936 # AIX sometimes has problems with the GCC collect2 program. For some
19937 # reason, if we set the COLLECT_NAMES environment variable, the problems
19938 # vanish in a puff of smoke.
19939 if test set != "${COLLECT_NAMES+set}"; then
19941 export COLLECT_NAMES
19948 ltmain=$ac_aux_dir/ltmain.sh
19951 # We use sed instead of cat because bash on DJGPP gets confused if
19952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19953 # text mode, it properly converts lines to CR/LF. This bash problem
19954 # is reportedly fixed, but why not run on old versions too?
19955 sed '$q' "$ltmain" >> "$cfgfile" \
19956 || (rm -f "$cfgfile"; exit 1)
19958 mv -f "$cfgfile" "$ofile" ||
19959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19964 sed < libtool > libtool-2 \
19965 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19966 mv libtool-2 libtool
19968 libtool="./libtool"
19977 ac_clean_files=$ac_clean_files_save
19979 test $ac_write_fail = 0 ||
19980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19983 # configure is writing to config.log, and then calls config.status.
19984 # config.status does its own redirection, appending to config.log.
19985 # Unfortunately, on DOS this fails, as config.log is still kept open
19986 # by configure, so config.status won't be able to write to it; its
19987 # output is simply discarded. So we exec the FD to /dev/null,
19988 # effectively closing config.log, so it can be properly (re)opened and
19989 # appended to by config.status. When coming back to configure, we
19990 # need to make the FD available again.
19991 if test "$no_create" != yes; then
19993 ac_config_status_args=
19994 test "$silent" = yes &&
19995 ac_config_status_args="$ac_config_status_args --quiet"
19997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20000 # would make configure fail if this is the last instruction.
20001 $ac_cs_success || as_fn_exit 1
20003 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20005 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20009 echo "copying header files"
20011 for file in $srcdir/ldns//*.h; do
20012 sh $srcdir/install-sh -m 644 $file ldns/