2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ldns 1.6.17.
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.6.17'
594 PACKAGE_STRING='ldns 1.6.17'
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
663 UNINSTALL_P5_DNS_LDNS
686 UNINSTALL_CONFIG_MANPAGE
688 INSTALL_CONFIG_MANPAGE
774 program_transform_name
787 enable_option_checking
817 ac_precious_vars='build_alias
829 # Initialize some variables set by options.
831 ac_init_version=false
832 ac_unrecognized_opts=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
987 -help | --help | --hel | --he | -h)
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1136 -site=* | --site=* | --sit=*)
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1192 eval with_$ac_useropt=no ;;
1195 # Obsolete; use --with-x.
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1367 \`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of ldns 1.6.17:";;
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --disable-ldns-config disable installation of ldns-config
1447 --enable-stderr-msgs Enable printing to stderr (default=disabled)
1448 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1449 --disable-gost Disable GOST support
1450 --disable-ecdsa Disable ECDSA support
1451 --disable-dane Disable DANE support
1452 --enable-rrtype-ninfo Enable draft RR type ninfo.
1453 --enable-rrtype-rkey Enable draft RR type rkey.
1454 --enable-rrtype-cds Enable draft RR type cds.
1455 --enable-rrtype-uri Enable draft RR type uri.
1456 --enable-rrtype-ta Enable draft RR type ta.
1457 --disable-rpath disable hardcoded rpath (default=enabled)
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-drill Also build drill.
1468 --with-examples Also build examples.
1469 --with-pyldns generate python library, or --without-pyldns to
1470 disable Python support.
1471 --without-pyldnsx Do not install the ldnsx python module, or
1472 --with-pyldnsx to install it.
1473 --with-p5-dns-ldns generate DNS::LDNS perl bindings
1474 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1475 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1477 --with-trust-anchor=KEYFILE
1478 Default location of the trust anchor file for drill
1479 and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1480 --with-ca-file=CAFILE File containing CA certificates for ldns-dane
1481 --with-ca-path=CAPATH Directory containing CA certificate files for
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1494 The installed Python version to use, for example '2.3'. This
1495 string will be appended to the Python interpreter canonical
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <libdns@nlnetlabs.nl>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 ldns configure 1.6.17
1565 generated by GNU Autoconf 2.69
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1653 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656 # the include files in INCLUDES and setting the cache variable VAR
1658 ac_fn_c_check_header_mongrel ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if eval \${$3+:} false; then :
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1671 # Is the header compilable?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673 $as_echo_n "checking $2 usability... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_header_compiler=yes
1682 ac_header_compiler=no
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686 $as_echo "$ac_header_compiler" >&6; }
1688 # Is the header present?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690 $as_echo_n "checking $2 presence... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1695 if ac_fn_c_try_cpp "$LINENO"; then :
1696 ac_header_preproc=yes
1698 ac_header_preproc=no
1700 rm -f conftest.err conftest.i conftest.$ac_ext
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702 $as_echo "$ac_header_preproc" >&6; }
1704 # So? What about this header?
1705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1716 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1720 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ( $as_echo "## ---------------------------------- ##
1724 ## Report this to libdns@nlnetlabs.nl ##
1725 ## ---------------------------------- ##"
1726 ) | sed "s/^/$as_me: WARNING: /" >&2
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1734 eval "$3=\$ac_header_compiler"
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 } # ac_fn_c_check_header_mongrel
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=$ac_status
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 } # ac_fn_c_check_header_compile
1817 # ac_fn_c_try_link LINENO
1818 # -----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext conftest$ac_exeext
1824 if { { ac_try="$ac_link"
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest$ac_exeext && {
1843 test "$cross_compiling" = yes ||
1844 test -x conftest$ac_exeext
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855 # interfere with the next link command; also delete a directory that is
1856 # left behind by Apple's compiler. We do this before executing the actions.
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_link
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1886 # include <limits.h>
1888 # include <assert.h>
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1915 if ac_fn_c_try_link "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_func
1930 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931 # -------------------------------------------
1932 # Tests whether TYPE exists after having included INCLUDES, setting cache
1933 # variable VAR accordingly.
1934 ac_fn_c_check_type ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1968 if ac_fn_c_try_compile "$LINENO"; then :
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_type
1984 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1985 # ---------------------------------------------
1986 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1988 ac_fn_c_check_decl ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 as_decl_name=`echo $2|sed 's/ *(.*//'`
1992 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1994 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 #ifndef $as_decl_name
2006 (void) $as_decl_use;
2008 (void) $as_decl_name;
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_decl
2030 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2031 # --------------------------------------------
2032 # Tries to find the compile-time value of EXPR in a program that includes
2033 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 ac_fn_c_compute_int ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if test "$cross_compiling" = yes; then
2039 # Depending upon the size, compute the lo and hi bounds.
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) >= 0)];
2048 return test_array [0];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2065 return test_array [0];
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_hi=$ac_mid; break
2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2075 if test $ac_lo -le $ac_mid; then
2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2090 static int test_array [1 - 2 * !(($2) < 0)];
2092 return test_array [0];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2109 return test_array [0];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_lo=$ac_mid; break
2118 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2119 if test $ac_mid -le $ac_hi; then
2123 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 # Binary search between lo and hi bounds.
2134 while test "x$ac_lo" != "x$ac_hi"; do
2135 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 return test_array [0];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2173 FILE *f = fopen ("conftest.val", "w");
2178 long int i = longval ();
2181 fprintf (f, "%ld", i);
2185 unsigned long int i = ulongval ();
2188 fprintf (f, "%lu", i);
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 as_fn_set_status $ac_retval
2211 } # ac_fn_c_compute_int
2213 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2214 # ----------------------------------------------------
2215 # Tries to find if the field MEMBER exists in type AGGR, after including
2216 # INCLUDES, setting cache variable VAR accordingly.
2217 ac_fn_c_check_member ()
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2221 $as_echo_n "checking for $2.$3... " >&6; }
2222 if eval \${$4+:} false; then :
2223 $as_echo_n "(cached) " >&6
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2238 if ac_fn_c_try_compile "$LINENO"; then :
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2248 if (sizeof ac_aggr.$3)
2254 if ac_fn_c_try_compile "$LINENO"; then :
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_member
2269 cat >config.log <<_ACEOF
2270 This file contains any messages produced by compilers while
2271 running configure, to aid debugging if configure makes a mistake.
2273 It was created by ldns $as_me 1.6.17, which was
2274 generated by GNU Autoconf 2.69. Invocation command line was
2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2287 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2288 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2289 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2290 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2293 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2296 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2298 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2299 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2300 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2301 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 $as_echo "PATH: $as_dir"
2326 # Keep a trace of the command line.
2327 # Strip out --no-create and --no-recursion so they do not pile up.
2328 # Strip out --silent because we don't want to record it for future runs.
2329 # Also quote any args containing shell meta-characters.
2330 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_must_keep_next=false
2340 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2342 | -silent | --silent | --silen | --sile | --sil)
2345 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 as_fn_append ac_configure_args1 " '$ac_arg'"
2351 if test $ac_must_keep_next = true; then
2352 ac_must_keep_next=false # Got value, back to normal.
2355 *=* | --config-cache | -C | -disable-* | --disable-* \
2356 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2357 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2358 | -with-* | --with-* | -without-* | --without-* | --x)
2359 case "$ac_configure_args0 " in
2360 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2363 -* ) ac_must_keep_next=true ;;
2366 as_fn_append ac_configure_args " '$ac_arg'"
2371 { ac_configure_args0=; unset ac_configure_args0;}
2372 { ac_configure_args1=; unset ac_configure_args1;}
2374 # When interrupted or exit'd, cleanup temporary files, and complete
2375 # config.log. We remove comments because anyway the quotes in there
2376 # would cause problems or look ugly.
2377 # WARNING: Use '\'' to represent an apostrophe within the trap.
2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2379 trap 'exit_status=$?
2380 # Save into config.log some information that might help in debugging.
2384 $as_echo "## ---------------- ##
2385 ## Cache variables. ##
2386 ## ---------------- ##"
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420 $as_echo "## ----------------- ##
2421 ## Output variables. ##
2422 ## ----------------- ##"
2424 for ac_var in $ac_subst_vars
2426 eval ac_val=\$$ac_var
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 $as_echo "$ac_var='\''$ac_val'\''"
2434 if test -n "$ac_subst_files"; then
2435 $as_echo "## ------------------- ##
2436 ## File substitutions. ##
2437 ## ------------------- ##"
2439 for ac_var in $ac_subst_files
2441 eval ac_val=\$$ac_var
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 $as_echo "$ac_var='\''$ac_val'\''"
2450 if test -s confdefs.h; then
2451 $as_echo "## ----------- ##
2458 test "$ac_signal" != 0 &&
2459 $as_echo "$as_me: caught signal $ac_signal"
2460 $as_echo "$as_me: exit $exit_status"
2462 rm -f core *.core core.conftest.* &&
2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466 for ac_signal in 1 2 13 15; do
2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2472 rm -f -r conftest* confdefs.h
2474 $as_echo "/* confdefs.h */" > confdefs.h
2476 # Predefined preprocessor variables.
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_NAME "$PACKAGE_NAME"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_STRING "$PACKAGE_STRING"
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_URL "$PACKAGE_URL"
2503 # Let the site file select an alternate cache file if it wants to.
2504 # Prefer an explicitly selected file to automatically selected ones.
2507 if test -n "$CONFIG_SITE"; then
2508 # We do not want a PATH search for config.site.
2509 case $CONFIG_SITE in #((
2510 -*) ac_site_file1=./$CONFIG_SITE;;
2511 */*) ac_site_file1=$CONFIG_SITE;;
2512 *) ac_site_file1=./$CONFIG_SITE;;
2514 elif test "x$prefix" != xNONE; then
2515 ac_site_file1=$prefix/share/config.site
2516 ac_site_file2=$prefix/etc/config.site
2518 ac_site_file1=$ac_default_prefix/share/config.site
2519 ac_site_file2=$ac_default_prefix/etc/config.site
2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 test "x$ac_site_file" = xNONE && continue
2524 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2527 sed 's/^/| /' "$ac_site_file" >&5
2529 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 as_fn_error $? "failed to load site script $ac_site_file
2532 See \`config.log' for more details" "$LINENO" 5; }
2536 if test -r "$cache_file"; then
2537 # Some versions of bash will fail to source /dev/null (special files
2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2541 $as_echo "$as_me: loading cache $cache_file" >&6;}
2543 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2544 *) . "./$cache_file";;
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2549 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 # Check that the precious variables saved in the cache have kept the same
2555 ac_cache_corrupted=false
2556 for ac_var in $ac_precious_vars; do
2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558 eval ac_new_set=\$ac_env_${ac_var}_set
2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560 eval ac_new_val=\$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w=`echo x $ac_old_val`
2575 ac_new_val_w=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted=:
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\$ac_old_val
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2594 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg=$ac_var=$ac_new_val ;;
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 # needed to build correct soname
2623 LDNS_VERSION_MAJOR=1
2625 LDNS_VERSION_MINOR=6
2627 LDNS_VERSION_MICRO=17
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_CC+:} false; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$ac_cv_prog_CC"; then
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679 set dummy gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2683 $as_echo_n "(cached) " >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2714 if test "x$ac_ct_CC" = x; then
2717 case $cross_compiling:$ac_tool_warned in
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}cc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_CC+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$CC" && break
2870 if test -z "$CC"; then
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $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_ac_ct_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$ac_ct_CC" && break
2914 if test "x$ac_ct_CC" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $? "no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details" "$LINENO" 5; }
2935 # Provide some information about the compiler.
2936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2939 for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2949 if test -s conftest.err; then
2951 ... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2955 rm -f conftest.er1 conftest.err
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2971 ac_clean_files_save=$ac_clean_files
2972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2973 # Try to create an executable without -o first, disregard a.out.
2974 # It will help us diagnose broken compilers, and finding out an intuition
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2977 $as_echo_n "checking whether the C compiler works... " >&6; }
2978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980 # The possible output files:
2981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2984 for ac_file in $ac_files
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2993 if { { ac_try="$ac_link_default"
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3007 # so that the user can short-circuit this test for compilers unknown to
3009 for ac_file in $ac_files ''
3011 test -f "$ac_file" || continue
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3016 # We found the default executable, but exeext='' is most
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3034 test "$ac_cv_exeext" = no && ac_cv_exeext=
3039 if test -z "$ac_file"; then :
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error 77 "C compiler cannot create executables
3048 See \`config.log' for more details" "$LINENO" 5; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 $as_echo "yes" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3054 $as_echo_n "checking for C compiler default output file name... " >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3056 $as_echo "$ac_file" >&6; }
3057 ac_exeext=$ac_cv_exeext
3059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3060 ac_clean_files=$ac_clean_files_save
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3062 $as_echo_n "checking for suffix of executables... " >&6; }
3063 if { { ac_try="$ac_link"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069 $as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_link") 2>&5
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; then :
3074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3076 # work properly (i.e., refer to `conftest.exe'), while it won't with
3078 for ac_file in conftest.exe conftest conftest.*; do
3079 test -f "$ac_file" || continue
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3091 See \`config.log' for more details" "$LINENO" 5; }
3093 rm -f conftest conftest$ac_cv_exeext
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3095 $as_echo "$ac_cv_exeext" >&6; }
3097 rm -f conftest.$ac_ext
3098 EXEEXT=$ac_cv_exeext
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3106 FILE *f = fopen ("conftest.out", "w");
3107 return ferror (f) || fclose (f) != 0;
3113 ac_clean_files="$ac_clean_files conftest.out"
3114 # Check that the compiler produces executables we can run. If not, either
3115 # the compiler is broken, or we cross compile.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3117 $as_echo_n "checking whether we are cross compiling... " >&6; }
3118 if test "$cross_compiling" != yes; then
3119 { { ac_try="$ac_link"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 if { ac_try='./conftest$ac_cv_exeext'
3131 { { case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_try") 2>&5
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; }; then
3143 if test "$cross_compiling" = maybe; then
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot run C compiled programs.
3149 If you meant to cross compile, use \`--host'.
3150 See \`config.log' for more details" "$LINENO" 5; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3155 $as_echo "$cross_compiling" >&6; }
3157 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3158 ac_clean_files=$ac_clean_files_save
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3160 $as_echo_n "checking for suffix of object files... " >&6; }
3161 if ${ac_cv_objext+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3175 rm -f conftest.o conftest.obj
3176 if { { ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_compile") 2>&5
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 for ac_file in conftest.o conftest.obj conftest.*; do
3188 test -f "$ac_file" || continue;
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196 $as_echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "cannot compute suffix of object files: cannot compile
3202 See \`config.log' for more details" "$LINENO" 5; }
3204 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3207 $as_echo "$ac_cv_objext" >&6; }
3208 OBJEXT=$ac_cv_objext
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3212 if ${ac_cv_c_compiler_gnu+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3229 if ac_fn_c_try_compile "$LINENO"; then :
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3240 if test $ac_compiler_gnu = yes; then
3245 ac_test_CFLAGS=${CFLAGS+set}
3246 ac_save_CFLAGS=$CFLAGS
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3249 if ${ac_cv_prog_cc_g+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 ac_save_c_werror_flag=$ac_c_werror_flag
3253 ac_c_werror_flag=yes
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3267 if ac_fn_c_try_compile "$LINENO"; then :
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3282 if ac_fn_c_try_compile "$LINENO"; then :
3285 ac_c_werror_flag=$ac_save_c_werror_flag
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3298 if ac_fn_c_try_compile "$LINENO"; then :
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3309 $as_echo "$ac_cv_prog_cc_g" >&6; }
3310 if test "$ac_test_CFLAGS" = set; then
3311 CFLAGS=$ac_save_CFLAGS
3312 elif test $ac_cv_prog_cc_g = yes; then
3313 if test "$GCC" = yes; then
3319 if test "$GCC" = yes; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3327 if ${ac_cv_prog_cc_c89+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 ac_cv_prog_cc_c89=no
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3338 struct buf { int x; };
3339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3340 static char *e (p, i)
3346 static char *f (char * (*g) (char **, int), char **p, ...)
3351 s = g (p, va_arg (v,int));
3356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3357 function prototypes and stuff, but not '\xHH' hex character constants.
3358 These don't provoke an error unfortunately, instead are silently treated
3359 as 'x'. The following induces an error, until -std is added to get
3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3361 array size at least. It's necessary to write '\x00'==0 to get something
3362 that's true only with -std. */
3363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3366 inside strings and character constants. */
3368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370 int test (int i, double x);
3371 struct s1 {int (*f) (int a);};
3372 struct s2 {int (*f) (double a);};
3373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387 CC="$ac_save_CC $ac_arg"
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_c89=$ac_arg
3391 rm -f core conftest.err conftest.$ac_objext
3392 test "x$ac_cv_prog_cc_c89" != "xno" && break
3394 rm -f conftest.$ac_ext
3399 case "x$ac_cv_prog_cc_c89" in
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3402 $as_echo "none needed" >&6; } ;;
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3405 $as_echo "unsupported" >&6; } ;;
3407 CC="$CC $ac_cv_prog_cc_c89"
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3409 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3411 if test "x$ac_cv_prog_cc_c89" != xno; then :
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3429 # On Suns, sometimes $CPP names a directory.
3430 if test -n "$CPP" && test -d "$CPP"; then
3433 if test -z "$CPP"; then
3434 if ${ac_cv_prog_CPP+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 # Double quotes because CPP needs to be expanded
3438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3441 for ac_c_preproc_warn_flag in '' yes
3443 # Use a header file that comes with gcc, so configuring glibc
3444 # with a fresh cross-compiler works.
3445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446 # <limits.h> exists even on freestanding compilers.
3447 # On the NeXT, cc -E runs the code through the compiler's parser,
3448 # not just through cpp. "Syntax error" is here to catch this case.
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3452 # include <limits.h>
3454 # include <assert.h>
3458 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: fails on valid input.
3464 rm -f conftest.err conftest.i conftest.$ac_ext
3466 # OK, works on sane cases. Now check whether nonexistent headers
3467 # can be detected and how.
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if ac_fn_c_try_cpp "$LINENO"; then :
3473 # Broken: success on invalid input.
3476 # Passes both tests.
3480 rm -f conftest.err conftest.i conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.i conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then :
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3498 $as_echo "$CPP" >&6; }
3500 for ac_c_preproc_warn_flag in '' yes
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3511 # include <limits.h>
3513 # include <assert.h>
3517 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: fails on valid input.
3523 rm -f conftest.err conftest.i conftest.$ac_ext
3525 # OK, works on sane cases. Now check whether nonexistent headers
3526 # can be detected and how.
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <ac_nonexistent.h>
3531 if ac_fn_c_try_cpp "$LINENO"; then :
3532 # Broken: success on invalid input.
3535 # Passes both tests.
3539 rm -f conftest.err conftest.i conftest.$ac_ext
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.i conftest.err conftest.$ac_ext
3544 if $ac_preproc_ok; then :
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3550 See \`config.log' for more details" "$LINENO" 5; }
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3561 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3562 if ${ac_cv_path_GREP+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 if test -z "$GREP"; then
3566 ac_path_GREP_found=false
3567 # Loop through the user's path and test for each of PROGNAME-LIST
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3572 test -z "$as_dir" && as_dir=.
3573 for ac_prog in grep ggrep; do
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3576 as_fn_executable_p "$ac_path_GREP" || continue
3577 # Check for GNU ac_path_GREP and select it if it is found.
3578 # Check for GNU $ac_path_GREP
3579 case `"$ac_path_GREP" --version 2>&1` in
3581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3584 $as_echo_n 0123456789 >"conftest.in"
3587 cat "conftest.in" "conftest.in" >"conftest.tmp"
3588 mv "conftest.tmp" "conftest.in"
3589 cp "conftest.in" "conftest.nl"
3590 $as_echo 'GREP' >> "conftest.nl"
3591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3593 as_fn_arith $ac_count + 1 && ac_count=$as_val
3594 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3595 # Best one so far, save it but keep looking for a better one
3596 ac_cv_path_GREP="$ac_path_GREP"
3597 ac_path_GREP_max=$ac_count
3599 # 10*(2^10) chars as input seems more than enough
3600 test $ac_count -gt 10 && break
3602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3605 $ac_path_GREP_found && break 3
3610 if test -z "$ac_cv_path_GREP"; then
3611 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3614 ac_cv_path_GREP=$GREP
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3619 $as_echo "$ac_cv_path_GREP" >&6; }
3620 GREP="$ac_cv_path_GREP"
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3624 $as_echo_n "checking for egrep... " >&6; }
3625 if ${ac_cv_path_EGREP+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3629 then ac_cv_path_EGREP="$GREP -E"
3631 if test -z "$EGREP"; then
3632 ac_path_EGREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p "$ac_path_EGREP" || continue
3643 # Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP
3645 case `"$ac_path_EGREP" --version 2>&1` in
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3650 $as_echo_n 0123456789 >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 $ac_path_EGREP_found && break 3
3676 if test -z "$ac_cv_path_EGREP"; then
3677 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3680 ac_cv_path_EGREP=$EGREP
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3686 $as_echo "$ac_cv_path_EGREP" >&6; }
3687 EGREP="$ac_cv_path_EGREP"
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3691 $as_echo_n "checking for ANSI C header files... " >&6; }
3692 if ${ac_cv_header_stdc+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_header_stdc=yes
3713 ac_cv_header_stdc=no
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 if test $ac_cv_header_stdc = yes; then
3718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "memchr" >/dev/null 2>&1; then :
3728 ac_cv_header_stdc=no
3734 if test $ac_cv_header_stdc = yes; then
3735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3742 $EGREP "free" >/dev/null 2>&1; then :
3745 ac_cv_header_stdc=no
3751 if test $ac_cv_header_stdc = yes; then
3752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3753 if test "$cross_compiling" = yes; then :
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3760 #if ((' ' & 0x0FF) == 0x020)
3761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3764 # define ISLOWER(c) \
3765 (('a' <= (c) && (c) <= 'i') \
3766 || ('j' <= (c) && (c) <= 'r') \
3767 || ('s' <= (c) && (c) <= 'z'))
3768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3776 for (i = 0; i < 256; i++)
3777 if (XOR (islower (i), ISLOWER (i))
3778 || toupper (i) != TOUPPER (i))
3783 if ac_fn_c_try_run "$LINENO"; then :
3786 ac_cv_header_stdc=no
3788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3789 conftest.$ac_objext conftest.beam conftest.$ac_ext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3795 $as_echo "$ac_cv_header_stdc" >&6; }
3796 if test $ac_cv_header_stdc = yes; then
3798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3802 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3803 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3804 inttypes.h stdint.h unistd.h
3806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3807 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3809 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3810 cat >>confdefs.h <<_ACEOF
3811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3820 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3821 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3828 if test "$MINIX" = yes; then
3830 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3833 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3836 $as_echo "#define _MINIX 1" >>confdefs.h
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3842 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3843 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3849 # define __EXTENSIONS__ 1
3850 $ac_includes_default
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_safe_to_define___extensions__=yes
3862 ac_cv_safe_to_define___extensions__=no
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3867 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3868 test $ac_cv_safe_to_define___extensions__ = yes &&
3869 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3871 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3873 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3875 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3877 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3882 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3883 if test -f "$ac_dir/install-sh"; then
3885 ac_install_sh="$ac_aux_dir/install-sh -c"
3887 elif test -f "$ac_dir/install.sh"; then
3889 ac_install_sh="$ac_aux_dir/install.sh -c"
3891 elif test -f "$ac_dir/shtool"; then
3893 ac_install_sh="$ac_aux_dir/shtool install -c"
3897 if test -z "$ac_aux_dir"; then
3898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3901 # These three variables are undocumented and unsupported,
3902 # and are intended to be withdrawn in a future Autoconf release.
3903 # They can cause serious problems if a builder's source tree is in a directory
3904 # whose full name contains unusual characters.
3905 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3906 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3907 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3913 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3918 macro_version='2.4.2'
3919 macro_revision='1.3337'
3933 ltmain="$ac_aux_dir/ltmain.sh"
3935 # Make sure we can run config.sub.
3936 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3937 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3940 $as_echo_n "checking build system type... " >&6; }
3941 if ${ac_cv_build+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_build_alias=$build_alias
3945 test "x$ac_build_alias" = x &&
3946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3947 test "x$ac_build_alias" = x &&
3948 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3949 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3954 $as_echo "$ac_cv_build" >&6; }
3955 case $ac_cv_build in
3957 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3960 ac_save_IFS=$IFS; IFS='-'
3966 # Remember, the first character of IFS is used to create $*,
3967 # except with old shells:
3970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3974 $as_echo_n "checking host system type... " >&6; }
3975 if ${ac_cv_host+:} false; then :
3976 $as_echo_n "(cached) " >&6
3978 if test "x$host_alias" = x; then
3979 ac_cv_host=$ac_cv_build
3981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3982 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3987 $as_echo "$ac_cv_host" >&6; }
3990 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3993 ac_save_IFS=$IFS; IFS='-'
3999 # Remember, the first character of IFS is used to create $*,
4000 # except with old shells:
4003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006 # Backslashify metacharacters that are still active within
4007 # double-quoted strings.
4008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4010 # Same as above, but do not quote variable references.
4011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4013 # Sed substitution to delay expansion of an escaped shell variable in a
4014 # double_quote_subst'ed string.
4015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4017 # Sed substitution to delay expansion of an escaped single quote.
4018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4020 # Sed substitution to avoid accidental globbing in evaled expressions
4021 no_glob_subst='s/\*/\\\*/g'
4023 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4025 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4028 $as_echo_n "checking how to print strings... " >&6; }
4029 # Test print first, because it will be a builtin if present.
4030 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4031 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4033 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4036 # Use this function as a fallback that always works.
4037 func_fallback_echo ()
4039 eval 'cat <<_LTECHO_EOF
4043 ECHO='func_fallback_echo'
4046 # func_echo_all arg...
4047 # Invoke $ECHO with all args, space-separated.
4054 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4055 $as_echo "printf" >&6; } ;;
4056 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4057 $as_echo "print -r" >&6; } ;;
4058 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4059 $as_echo "cat" >&6; } ;;
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4077 if ${ac_cv_path_SED+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4081 for ac_i in 1 2 3 4 5 6 7; do
4082 ac_script="$ac_script$as_nl$ac_script"
4084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4085 { ac_script=; unset ac_script;}
4086 if test -z "$SED"; then
4087 ac_path_SED_found=false
4088 # Loop through the user's path and test for each of PROGNAME-LIST
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 test -z "$as_dir" && as_dir=.
4094 for ac_prog in sed gsed; do
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4097 as_fn_executable_p "$ac_path_SED" || continue
4098 # Check for GNU ac_path_SED and select it if it is found.
4099 # Check for GNU $ac_path_SED
4100 case `"$ac_path_SED" --version 2>&1` in
4102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4105 $as_echo_n 0123456789 >"conftest.in"
4108 cat "conftest.in" "conftest.in" >"conftest.tmp"
4109 mv "conftest.tmp" "conftest.in"
4110 cp "conftest.in" "conftest.nl"
4111 $as_echo '' >> "conftest.nl"
4112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4114 as_fn_arith $ac_count + 1 && ac_count=$as_val
4115 if test $ac_count -gt ${ac_path_SED_max-0}; then
4116 # Best one so far, save it but keep looking for a better one
4117 ac_cv_path_SED="$ac_path_SED"
4118 ac_path_SED_max=$ac_count
4120 # 10*(2^10) chars as input seems more than enough
4121 test $ac_count -gt 10 && break
4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4126 $ac_path_SED_found && break 3
4131 if test -z "$ac_cv_path_SED"; then
4132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4140 $as_echo "$ac_cv_path_SED" >&6; }
4141 SED="$ac_cv_path_SED"
4144 test -z "$SED" && SED=sed
4145 Xsed="$SED -e 1s/^X//"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4158 $as_echo_n "checking for fgrep... " >&6; }
4159 if ${ac_cv_path_FGREP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163 then ac_cv_path_FGREP="$GREP -F"
4165 if test -z "$FGREP"; then
4166 ac_path_FGREP_found=false
4167 # Loop through the user's path and test for each of PROGNAME-LIST
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 test -z "$as_dir" && as_dir=.
4173 for ac_prog in fgrep; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176 as_fn_executable_p "$ac_path_FGREP" || continue
4177 # Check for GNU ac_path_FGREP and select it if it is found.
4178 # Check for GNU $ac_path_FGREP
4179 case `"$ac_path_FGREP" --version 2>&1` in
4181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4184 $as_echo_n 0123456789 >"conftest.in"
4187 cat "conftest.in" "conftest.in" >"conftest.tmp"
4188 mv "conftest.tmp" "conftest.in"
4189 cp "conftest.in" "conftest.nl"
4190 $as_echo 'FGREP' >> "conftest.nl"
4191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193 as_fn_arith $ac_count + 1 && ac_count=$as_val
4194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195 # Best one so far, save it but keep looking for a better one
4196 ac_cv_path_FGREP="$ac_path_FGREP"
4197 ac_path_FGREP_max=$ac_count
4199 # 10*(2^10) chars as input seems more than enough
4200 test $ac_count -gt 10 && break
4202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 $ac_path_FGREP_found && break 3
4210 if test -z "$ac_cv_path_FGREP"; then
4211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 ac_cv_path_FGREP=$FGREP
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4220 $as_echo "$ac_cv_path_FGREP" >&6; }
4221 FGREP="$ac_cv_path_FGREP"
4224 test -z "$GREP" && GREP=grep
4244 # Check whether --with-gnu-ld was given.
4245 if test "${with_gnu_ld+set}" = set; then :
4246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4252 if test "$GCC" = yes; then
4253 # Check if gcc -print-prog-name=ld gives a path.
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4255 $as_echo_n "checking for ld used by $CC... " >&6; }
4258 # gcc leaves a trailing carriage return which upsets mingw
4259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4264 # Accept absolute paths.
4266 re_direlt='/[^/][^/]*/\.\./'
4267 # Canonicalize the pathname of ld
4268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4272 test -z "$LD" && LD="$ac_prog"
4275 # If it fails, then pretend we aren't using GCC.
4279 # If it is relative, then search for the first ld in PATH.
4283 elif test "$with_gnu_ld" = yes; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4285 $as_echo_n "checking for GNU ld... " >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4288 $as_echo_n "checking for non-GNU ld... " >&6; }
4290 if ${lt_cv_path_LD+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -z "$LD"; then
4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295 for ac_dir in $PATH; do
4297 test -z "$ac_dir" && ac_dir=.
4298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299 lt_cv_path_LD="$ac_dir/$ac_prog"
4300 # Check to see if the program is GNU ld. I'd rather use --version,
4301 # but apparently some variants of GNU ld only accept -v.
4302 # Break only if it was the GNU/non-GNU ld that we prefer.
4303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304 *GNU* | *'with BFD'*)
4305 test "$with_gnu_ld" != no && break
4308 test "$with_gnu_ld" != yes && break
4315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4320 if test -n "$LD"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4322 $as_echo "$LD" >&6; }
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330 if ${lt_cv_prog_gnu_ld+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334 case `$LD -v 2>&1 </dev/null` in
4335 *GNU* | *'with BFD'*)
4336 lt_cv_prog_gnu_ld=yes
4339 lt_cv_prog_gnu_ld=no
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345 with_gnu_ld=$lt_cv_prog_gnu_ld
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357 if ${lt_cv_path_NM+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -n "$NM"; then
4361 # Let the user override the test.
4364 lt_nm_to_check="${ac_tool_prefix}nm"
4365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366 lt_nm_to_check="$lt_nm_to_check nm"
4368 for lt_tmp_nm in $lt_nm_to_check; do
4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4372 test -z "$ac_dir" && ac_dir=.
4373 tmp_nm="$ac_dir/$lt_tmp_nm"
4374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375 # Check to see if the nm accepts a BSD-compat flag.
4376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377 # nm: unknown option "B" ignored
4378 # Tru64's nm complains that /dev/null is an invalid object file
4379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380 */dev/null* | *'Invalid file or object type'*)
4381 lt_cv_path_NM="$tmp_nm -B"
4385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4387 lt_cv_path_NM="$tmp_nm -p"
4391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392 continue # so that we can try to find one that supports BSD flags
4401 : ${lt_cv_path_NM=no}
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4405 $as_echo "$lt_cv_path_NM" >&6; }
4406 if test "$lt_cv_path_NM" != "no"; then
4409 # Didn't find any BSD compatible name lister, look for dumpbin.
4410 if test -n "$DUMPBIN"; then :
4411 # Let the user override the test.
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in dumpbin "link -dump"
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_DUMPBIN+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$DUMPBIN"; then
4424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 DUMPBIN=$ac_cv_prog_DUMPBIN
4444 if test -n "$DUMPBIN"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4446 $as_echo "$DUMPBIN" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$DUMPBIN" && break
4456 if test -z "$DUMPBIN"; then
4457 ac_ct_DUMPBIN=$DUMPBIN
4458 for ac_prog in dumpbin "link -dump"
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 if test -n "$ac_ct_DUMPBIN"; then
4468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4488 if test -n "$ac_ct_DUMPBIN"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4490 $as_echo "$ac_ct_DUMPBIN" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$ac_ct_DUMPBIN" && break
4500 if test "x$ac_ct_DUMPBIN" = x; then
4503 case $cross_compiling:$ac_tool_warned in
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4509 DUMPBIN=$ac_ct_DUMPBIN
4513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4515 DUMPBIN="$DUMPBIN -symbols"
4523 if test "$DUMPBIN" != ":"; then
4527 test -z "$NM" && NM=nm
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4536 if ${lt_cv_nm_interface+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 lt_cv_nm_interface="BSD nm"
4540 echo "int some_variable = 0;" > conftest.$ac_ext
4541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4542 (eval "$ac_compile" 2>conftest.err)
4543 cat conftest.err >&5
4544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4546 cat conftest.err >&5
4547 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4548 cat conftest.out >&5
4549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4550 lt_cv_nm_interface="MS dumpbin"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4555 $as_echo "$lt_cv_nm_interface" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4558 $as_echo_n "checking whether ln -s works... " >&6; }
4560 if test "$LN_S" = "ln -s"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4565 $as_echo "no, using $LN_S" >&6; }
4568 # find the maximum length of command line arguments
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4570 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4571 if ${lt_cv_sys_max_cmd_len+:} false; then :
4572 $as_echo_n "(cached) " >&6
4579 # On DJGPP, this test can blow up pretty badly due to problems in libc
4580 # (any single argument exceeding 2000 bytes causes a buffer overrun
4581 # during glob expansion). Even if it were fixed, the result of this
4582 # check would be larger than it should be.
4583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4587 # Under GNU Hurd, this test is not required because there is
4588 # no limit to the length of command line arguments.
4589 # Libtool will interpret -1 as no limit whatsoever
4590 lt_cv_sys_max_cmd_len=-1;
4593 cygwin* | mingw* | cegcc*)
4594 # On Win9x/ME, this test blows up -- it succeeds, but takes
4595 # about 5 minutes as the teststring grows exponentially.
4596 # Worse, since 9x/ME are not pre-emptively multitasking,
4597 # you end up with a "frozen" computer, even though with patience
4598 # the test eventually succeeds (with a max line length of 256k).
4599 # Instead, let's just punt: use the minimum linelength reported by
4600 # all of the supported platforms: 8192 (on NT/2K/XP).
4601 lt_cv_sys_max_cmd_len=8192;
4605 # On MiNT this can take a long time and run out of memory.
4606 lt_cv_sys_max_cmd_len=8192;
4610 # On AmigaOS with pdksh, this test takes hours, literally.
4611 # So we just punt and use a minimum line length of 8192.
4612 lt_cv_sys_max_cmd_len=8192;
4615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4616 # This has been around since 386BSD, at least. Likely further.
4617 if test -x /sbin/sysctl; then
4618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4619 elif test -x /usr/sbin/sysctl; then
4620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4624 # And add a safety zone
4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4630 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4631 lt_cv_sys_max_cmd_len=196608
4635 # The test takes a long time on OS/2.
4636 lt_cv_sys_max_cmd_len=8192
4640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642 # nice to cause kernel panics so lets avoid the loop below.
4643 # First set a reasonable default.
4644 lt_cv_sys_max_cmd_len=16384
4646 if test -x /sbin/sysconfig; then
4647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4653 lt_cv_sys_max_cmd_len=102400
4655 sysv5* | sco5v6* | sysv4.2uw2*)
4656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657 if test -n "$kargmax"; then
4658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4660 lt_cv_sys_max_cmd_len=32768
4664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665 if test -n "$lt_cv_sys_max_cmd_len"; then
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4669 # Make teststring a little bigger before we do anything with it.
4670 # a 1K string should be a reasonable start.
4671 for i in 1 2 3 4 5 6 7 8 ; do
4672 teststring=$teststring$teststring
4674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675 # If test is not a shell built-in, we'll probably end up computing a
4676 # maximum length that is only half of the actual maximum length, but
4678 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4679 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4680 test $i != 17 # 1/2 MB should be enough
4683 teststring=$teststring$teststring
4685 # Only check the string length outside the loop.
4686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4688 # Add a significant safety factor because C++ compilers can tack on
4689 # massive amounts of additional arguments before passing them to the
4690 # linker. It appears as though 1/2 is a usable value.
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4698 if test -n $lt_cv_sys_max_cmd_len ; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703 $as_echo "none" >&6; }
4705 max_cmd_len=$lt_cv_sys_max_cmd_len
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718 # Try some XSI features
4721 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4723 && eval 'test $(( 1 + 1 )) -eq 2 \
4724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727 $as_echo "$xsi_shell" >&6; }
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4735 && lt_shell_append=yes
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737 $as_echo "$lt_shell_append" >&6; }
4740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4750 # test EBCDIC or ASCII
4751 case `echo X|tr X '\101'` in
4752 A) # ASCII based system
4753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754 lt_SP2NL='tr \040 \012'
4755 lt_NL2SP='tr \015\012 \040\040'
4757 *) # EBCDIC based system
4758 lt_SP2NL='tr \100 \n'
4759 lt_NL2SP='tr \r\n \100\100'
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4772 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4773 if ${lt_cv_to_host_file_cmd+:} false; then :
4774 $as_echo_n "(cached) " >&6
4779 *-*-mingw* ) # actually msys
4780 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4783 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4785 * ) # otherwise, assume *nix
4786 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4792 *-*-mingw* ) # actually msys
4793 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4796 lt_cv_to_host_file_cmd=func_convert_file_noop
4798 * ) # otherwise, assume *nix
4799 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4803 * ) # unhandled hosts (and "normal" native builds)
4804 lt_cv_to_host_file_cmd=func_convert_file_noop
4810 to_host_file_cmd=$lt_cv_to_host_file_cmd
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4812 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4819 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4820 if ${lt_cv_to_tool_file_cmd+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 #assume ordinary cross tools, or native build.
4824 lt_cv_to_tool_file_cmd=func_convert_file_noop
4828 *-*-mingw* ) # actually msys
4829 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4837 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4839 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4847 if ${lt_cv_ld_reload_flag+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 lt_cv_ld_reload_flag='-r'
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4854 reload_flag=$lt_cv_ld_reload_flag
4855 case $reload_flag in
4857 *) reload_flag=" $reload_flag" ;;
4859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4861 cygwin* | mingw* | pw32* | cegcc*)
4862 if test "$GCC" != yes; then
4867 if test "$GCC" = yes; then
4868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_OBJDUMP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 if test -n "$OBJDUMP"; then
4892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 OBJDUMP=$ac_cv_prog_OBJDUMP
4912 if test -n "$OBJDUMP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914 $as_echo "$OBJDUMP" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4922 if test -z "$ac_cv_prog_OBJDUMP"; then
4923 ac_ct_OBJDUMP=$OBJDUMP
4924 # Extract the first word of "objdump", so it can be a program name with args.
4925 set dummy objdump; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954 $as_echo "$ac_ct_OBJDUMP" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4960 if test "x$ac_ct_OBJDUMP" = x; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4969 OBJDUMP=$ac_ct_OBJDUMP
4972 OBJDUMP="$ac_cv_prog_OBJDUMP"
4975 test -z "$OBJDUMP" && OBJDUMP=objdump
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987 if ${lt_cv_deplibs_check_method+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 lt_cv_file_magic_cmd='$MAGIC_CMD'
4991 lt_cv_file_magic_test_file=
4992 lt_cv_deplibs_check_method='unknown'
4993 # Need to set the preceding variable on all platforms that support
4994 # interlibrary dependencies.
4995 # 'none' -- dependencies not supported.
4996 # `unknown' -- same as none, but documents that we really don't know.
4997 # 'pass_all' -- all dependencies passed with no checks.
4998 # 'test_compile' -- check by making test program.
4999 # 'file_magic [[regex]]' -- check by looking for files in library path
5000 # which responds to the $file_magic_cmd with a given extended regex.
5001 # If you have `file' or equivalent on your system and you're not sure
5002 # whether `pass_all' will *always* work, you probably want this one.
5006 lt_cv_deplibs_check_method=pass_all
5010 lt_cv_deplibs_check_method=pass_all
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015 lt_cv_file_magic_cmd='/usr/bin/file -L'
5016 lt_cv_file_magic_test_file=/shlib/libc.so
5020 # func_win32_libid is a shell function defined in ltmain.sh
5021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022 lt_cv_file_magic_cmd='func_win32_libid'
5026 # Base MSYS/MinGW do not provide the 'file' command needed by
5027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028 # unless we find 'file', for example because we are cross-compiling.
5029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032 lt_cv_file_magic_cmd='func_win32_libid'
5034 # Keep this pattern in sync with the one in func_win32_libid.
5035 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5036 lt_cv_file_magic_cmd='$OBJDUMP -f'
5041 # use the weaker test based on 'objdump'. See mingw*.
5042 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5043 lt_cv_file_magic_cmd='$OBJDUMP -f'
5046 darwin* | rhapsody*)
5047 lt_cv_deplibs_check_method=pass_all
5050 freebsd* | dragonfly*)
5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5054 # Not sure whether the presence of OpenBSD here was a mistake.
5055 # Let's accept both of them until this is cleared up.
5056 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5057 lt_cv_file_magic_cmd=/usr/bin/file
5058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5062 lt_cv_deplibs_check_method=pass_all
5067 lt_cv_deplibs_check_method=pass_all
5071 lt_cv_deplibs_check_method=pass_all
5074 hpux10.20* | hpux11*)
5075 lt_cv_file_magic_cmd=/usr/bin/file
5078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5082 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]'
5083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5087 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5097 irix5* | irix6* | nonstopux*)
5099 *-32|*"-32 ") libmagic=32-bit;;
5100 *-n32|*"-n32 ") libmagic=N32;;
5101 *-64|*"-64 ") libmagic=64-bit;;
5102 *) libmagic=never-match;;
5104 lt_cv_deplibs_check_method=pass_all
5107 # This must be glibc/ELF.
5108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5109 lt_cv_deplibs_check_method=pass_all
5112 netbsd* | netbsdelf*-gnu)
5113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5122 lt_cv_file_magic_cmd=/usr/bin/file
5123 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5127 lt_cv_deplibs_check_method=pass_all
5131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5138 osf3* | osf4* | osf5*)
5139 lt_cv_deplibs_check_method=pass_all
5143 lt_cv_deplibs_check_method=pass_all
5147 lt_cv_deplibs_check_method=pass_all
5150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5151 lt_cv_deplibs_check_method=pass_all
5155 case $host_vendor in
5157 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]'
5158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5161 lt_cv_deplibs_check_method=pass_all
5164 lt_cv_file_magic_cmd='/bin/file'
5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5168 lt_cv_file_magic_cmd='/bin/file'
5169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5170 lt_cv_file_magic_test_file=/lib/libc.so
5173 lt_cv_deplibs_check_method=pass_all
5176 lt_cv_deplibs_check_method=pass_all
5182 lt_cv_deplibs_check_method=pass_all
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5192 if test "$build" = "$host"; then
5195 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5198 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5204 file_magic_cmd=$lt_cv_file_magic_cmd
5205 deplibs_check_method=$lt_cv_deplibs_check_method
5206 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_DLLTOOL+:} false; then :
5235 $as_echo_n "(cached) " >&6
5237 if test -n "$DLLTOOL"; then
5238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 DLLTOOL=$ac_cv_prog_DLLTOOL
5258 if test -n "$DLLTOOL"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5260 $as_echo "$DLLTOOL" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5268 if test -z "$ac_cv_prog_DLLTOOL"; then
5269 ac_ct_DLLTOOL=$DLLTOOL
5270 # Extract the first word of "dlltool", so it can be a program name with args.
5271 set dummy dlltool; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 if test -n "$ac_ct_DLLTOOL"; then
5278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5298 if test -n "$ac_ct_DLLTOOL"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5300 $as_echo "$ac_ct_DLLTOOL" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5306 if test "x$ac_ct_DLLTOOL" = x; then
5309 case $cross_compiling:$ac_tool_warned in
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313 ac_tool_warned=yes ;;
5315 DLLTOOL=$ac_ct_DLLTOOL
5318 DLLTOOL="$ac_cv_prog_DLLTOOL"
5321 test -z "$DLLTOOL" && DLLTOOL=dlltool
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5333 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5334 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 lt_cv_sharedlib_from_linklib_cmd='unknown'
5340 cygwin* | mingw* | pw32* | cegcc*)
5341 # two different shell functions defined in ltmain.sh
5342 # decide which to use based on capabilities of $DLLTOOL
5343 case `$DLLTOOL --help 2>&1` in
5344 *--identify-strict*)
5345 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5353 # fallback: assume linklib IS sharedlib
5354 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5360 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5361 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5362 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5370 if test -n "$ac_tool_prefix"; then
5373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_AR+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -n "$AR"; then
5381 ac_cv_prog_AR="$AR" # Let the user override the test.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 if test -n "$AR"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5403 $as_echo "$AR" >&6; }
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5410 test -n "$AR" && break
5413 if test -z "$AR"; then
5417 # Extract the first word of "$ac_prog", so it can be a program name with args.
5418 set dummy $ac_prog; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$ac_ct_AR"; then
5425 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_AR="$ac_prog"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5445 if test -n "$ac_ct_AR"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5447 $as_echo "$ac_ct_AR" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5454 test -n "$ac_ct_AR" && break
5457 if test "x$ac_ct_AR" = x; then
5460 case $cross_compiling:$ac_tool_warned in
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5484 $as_echo_n "checking for archiver @FILE support... " >&6; }
5485 if ${lt_cv_ar_at_file+:} false; then :
5486 $as_echo_n "(cached) " >&6
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 echo conftest.$ac_objext > conftest.lst
5502 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5504 (eval $lt_ar_try) 2>&5
5506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5507 test $ac_status = 0; }
5508 if test "$ac_status" -eq 0; then
5509 # Ensure the archiver fails upon bogus file names.
5510 rm -f conftest.$ac_objext libconftest.a
5511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5512 (eval $lt_ar_try) 2>&5
5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515 test $ac_status = 0; }
5516 if test "$ac_status" -ne 0; then
5520 rm -f conftest.* libconftest.a
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5527 $as_echo "$lt_cv_ar_at_file" >&6; }
5529 if test "x$lt_cv_ar_at_file" = xno; then
5532 archiver_list_spec=$lt_cv_ar_at_file
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5543 set dummy ${ac_tool_prefix}strip; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_STRIP+:} false; then :
5547 $as_echo_n "(cached) " >&6
5549 if test -n "$STRIP"; then
5550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 STRIP=$ac_cv_prog_STRIP
5570 if test -n "$STRIP"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5572 $as_echo "$STRIP" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_STRIP"; then
5582 # Extract the first word of "strip", so it can be a program name with args.
5583 set dummy strip; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$ac_ct_STRIP"; then
5590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_STRIP="strip"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5610 if test -n "$ac_ct_STRIP"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5612 $as_echo "$ac_ct_STRIP" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_STRIP" = x; then
5621 case $cross_compiling:$ac_tool_warned in
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5630 STRIP="$ac_cv_prog_STRIP"
5633 test -z "$STRIP" && STRIP=:
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_RANLIB+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 if test -n "$RANLIB"; then
5649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 RANLIB=$ac_cv_prog_RANLIB
5669 if test -n "$RANLIB"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5671 $as_echo "$RANLIB" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5679 if test -z "$ac_cv_prog_RANLIB"; then
5680 ac_ct_RANLIB=$RANLIB
5681 # Extract the first word of "ranlib", so it can be a program name with args.
5682 set dummy ranlib; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 if test -n "$ac_ct_RANLIB"; then
5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_RANLIB="ranlib"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709 if test -n "$ac_ct_RANLIB"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5711 $as_echo "$ac_ct_RANLIB" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5717 if test "x$ac_ct_RANLIB" = x; then
5720 case $cross_compiling:$ac_tool_warned in
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5726 RANLIB=$ac_ct_RANLIB
5729 RANLIB="$ac_cv_prog_RANLIB"
5732 test -z "$RANLIB" && RANLIB=:
5739 # Determine commands to create old-style static archives.
5740 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5741 old_postinstall_cmds='chmod 644 $oldlib'
5742 old_postuninstall_cmds=
5744 if test -n "$RANLIB"; then
5747 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5753 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5758 lock_old_archive_extraction=yes ;;
5760 lock_old_archive_extraction=no ;;
5783 for ac_prog in gawk mawk nawk awk
5785 # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_AWK+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$AWK"; then
5793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_AWK="$ac_prog"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 if test -n "$AWK"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5815 $as_echo "$AWK" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5822 test -n "$AWK" && break
5843 # If no C compiler was specified, use CC.
5846 # If no C compiler flags were specified, use CFLAGS.
5847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5849 # Allow CC to be a program name with arguments.
5853 # Check for command to grab the raw symbol name followed by C symbol from nm.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5855 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5856 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5857 $as_echo_n "(cached) " >&6
5860 # These are sane defaults that work on at least a few old systems.
5861 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5863 # Character class describing NM global symbol codes.
5864 symcode='[BCDEGRST]'
5866 # Regexp to match symbols that can be accessed directly from C.
5867 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5869 # Define system-specific variables.
5874 cygwin* | mingw* | pw32* | cegcc*)
5875 symcode='[ABCDGISTW]'
5878 if test "$host_cpu" = ia64; then
5879 symcode='[ABCDEGRST]'
5883 symcode='[BCDEGRST]'
5886 symcode='[BCDEGQRST]'
5897 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5905 # If we're using GNU nm, then use its standard symbol codes.
5906 case `$NM -V 2>&1` in
5907 *GNU* | *'with BFD'*)
5908 symcode='[ABCDGIRSTW]' ;;
5911 # Transform an extracted symbol line into a proper C declaration.
5912 # Some systems (esp. on ia64) link data and code symbols differently,
5913 # so use this general approach.
5914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5916 # Transform an extracted symbol line into symbol name and symbol address
5917 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5918 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5920 # Handle CRLF in mingw tool chain
5924 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5928 # Try without a prefix underscore, then with it.
5929 for ac_symprfx in "" "_"; do
5931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5932 symxfrm="\\1 $ac_symprfx\\2 \\2"
5934 # Write the raw and C identifiers.
5935 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5936 # Fake it for dumpbin and say T for any non-static function
5937 # and D for any global variable.
5938 # Also find C++ and __fastcall symbols from MSVC++,
5939 # which start with @ or ?.
5940 lt_cv_sys_global_symbol_pipe="$AWK '"\
5941 " {last_section=section; section=\$ 3};"\
5942 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5943 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5944 " \$ 0!~/External *\|/{next};"\
5945 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5946 " {if(hide[section]) next};"\
5947 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5948 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5949 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5950 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5951 " ' prfx=^$ac_symprfx"
5953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5955 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5957 # Check to see that the pipe works correctly.
5961 cat > conftest.$ac_ext <<_LT_EOF
5966 void nm_test_func(void);
5967 void nm_test_func(void){}
5971 int main(){nm_test_var='a';nm_test_func();return(0);}
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975 (eval $ac_compile) 2>&5
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }; then
5979 # Now try to grab the symbols.
5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5982 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; } && test -s "$nlist"; then
5986 # Try sorting and uniquifying the output.
5987 if sort "$nlist" | uniq > "$nlist"T; then
5988 mv -f "$nlist"T "$nlist"
5993 # Make sure that we snagged all the symbols we need.
5994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5996 cat <<_LT_EOF > conftest.$ac_ext
5997 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5998 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5999 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6000 relocations are performed -- see ld's documentation on pseudo-relocs. */
6001 # define LT_DLSYM_CONST
6002 #elif defined(__osf__)
6003 /* This system does not cope well with relocations in const data. */
6004 # define LT_DLSYM_CONST
6006 # define LT_DLSYM_CONST const
6014 # Now generate the symbol file.
6015 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6017 cat <<_LT_EOF >> conftest.$ac_ext
6019 /* The mapping between symbol names and symbols. */
6020 LT_DLSYM_CONST struct {
6024 lt__PROGRAM__LTX_preloaded_symbols[] =
6026 { "@PROGRAM@", (void *) 0 },
6028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6029 cat <<\_LT_EOF >> conftest.$ac_ext
6033 /* This works around a problem in FreeBSD linker */
6034 #ifdef FREEBSD_WORKAROUND
6035 static const void *lt_preloaded_setup() {
6036 return lt__PROGRAM__LTX_preloaded_symbols;
6044 # Now try linking the two files.
6045 mv conftest.$ac_objext conftstm.$ac_objext
6046 lt_globsym_save_LIBS=$LIBS
6047 lt_globsym_save_CFLAGS=$CFLAGS
6048 LIBS="conftstm.$ac_objext"
6049 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6051 (eval $ac_link) 2>&5
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6057 LIBS=$lt_globsym_save_LIBS
6058 CFLAGS=$lt_globsym_save_CFLAGS
6060 echo "cannot find nm_test_func in $nlist" >&5
6063 echo "cannot find nm_test_var in $nlist" >&5
6066 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6069 echo "$progname: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 rm -rf conftest* conftst*
6074 # Do not use the global_symbol_pipe unless it works.
6075 if test "$pipe_works" = yes; then
6078 lt_cv_sys_global_symbol_pipe=
6084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6085 lt_cv_sys_global_symbol_to_cdecl=
6087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6089 $as_echo "failed" >&6; }
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6092 $as_echo "ok" >&6; }
6095 # Response file support.
6096 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6097 nm_file_list_spec='@'
6098 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6099 nm_file_list_spec='@'
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6129 $as_echo_n "checking for sysroot... " >&6; }
6131 # Check whether --with-sysroot was given.
6132 if test "${with_sysroot+set}" = set; then :
6133 withval=$with_sysroot;
6140 case ${with_sysroot} in #(
6142 if test "$GCC" = yes; then
6143 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6147 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6153 $as_echo "${with_sysroot}" >&6; }
6154 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6159 $as_echo "${lt_sysroot:-no}" >&6; }
6165 # Check whether --enable-libtool-lock was given.
6166 if test "${enable_libtool_lock+set}" = set; then :
6167 enableval=$enable_libtool_lock;
6170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172 # Some flags need to be propagated to the compiler or linker for good
6176 # Find out which ABI we are using.
6177 echo 'int i;' > conftest.$ac_ext
6178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6179 (eval $ac_compile) 2>&5
6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 test $ac_status = 0; }; then
6183 case `/usr/bin/file conftest.$ac_objext` in
6195 # Find out which ABI we are using.
6196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 if test "$lt_cv_prog_gnu_ld" = yes; then
6203 case `/usr/bin/file conftest.$ac_objext` in
6205 LD="${LD-ld} -melf32bsmip"
6208 LD="${LD-ld} -melf32bmipn32"
6211 LD="${LD-ld} -melf64bmip"
6215 case `/usr/bin/file conftest.$ac_objext` in
6231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6233 # Find out which ABI we are using.
6234 echo 'int i;' > conftest.$ac_ext
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236 (eval $ac_compile) 2>&5
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
6240 case `/usr/bin/file conftest.o` in
6243 x86_64-*kfreebsd*-gnu)
6244 LD="${LD-ld} -m elf_i386_fbsd"
6247 LD="${LD-ld} -m elf_i386"
6249 ppc64-*linux*|powerpc64-*linux*)
6250 LD="${LD-ld} -m elf32ppclinux"
6253 LD="${LD-ld} -m elf_s390"
6256 LD="${LD-ld} -m elf32_sparc"
6262 x86_64-*kfreebsd*-gnu)
6263 LD="${LD-ld} -m elf_x86_64_fbsd"
6266 LD="${LD-ld} -m elf_x86_64"
6268 ppc*-*linux*|powerpc*-*linux*)
6269 LD="${LD-ld} -m elf64ppc"
6271 s390*-*linux*|s390*-*tpf*)
6272 LD="${LD-ld} -m elf64_s390"
6275 LD="${LD-ld} -m elf64_sparc"
6285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6286 SAVE_CFLAGS="$CFLAGS"
6287 CFLAGS="$CFLAGS -belf"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6290 if ${lt_cv_cc_needs_belf+:} false; then :
6291 $as_echo_n "(cached) " >&6
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 lt_cv_cc_needs_belf=yes
6313 lt_cv_cc_needs_belf=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6328 CFLAGS="$SAVE_CFLAGS"
6332 # Find out which ABI we are using.
6333 echo 'int i;' > conftest.$ac_ext
6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335 (eval $ac_compile) 2>&5
6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; }; then
6339 case `/usr/bin/file conftest.o` in
6341 case $lt_cv_prog_gnu_ld in
6345 LD="${LD-ld} -m elf_x86_64"
6348 LD="${LD-ld} -m elf64_sparc"
6351 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6352 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6357 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6369 need_locks="$enable_libtool_lock"
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}mt; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$MANIFEST_TOOL"; then
6380 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6400 if test -n "$MANIFEST_TOOL"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6402 $as_echo "$MANIFEST_TOOL" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6411 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6412 # Extract the first word of "mt", so it can be a program name with args.
6413 set dummy mt; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$ac_ct_MANIFEST_TOOL"; then
6420 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6440 if test -n "$ac_ct_MANIFEST_TOOL"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6442 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6448 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6457 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6460 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6463 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6465 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6466 if ${lt_cv_path_mainfest_tool+:} false; then :
6467 $as_echo_n "(cached) " >&6
6469 lt_cv_path_mainfest_tool=no
6470 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6471 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6472 cat conftest.err >&5
6473 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6474 lt_cv_path_mainfest_tool=yes
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6479 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6480 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6490 rhapsody* | darwin*)
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$DSYMUTIL"; then
6500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6520 if test -n "$DSYMUTIL"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522 $as_echo "$DSYMUTIL" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_DSYMUTIL"; then
6531 ac_ct_DSYMUTIL=$DSYMUTIL
6532 # Extract the first word of "dsymutil", so it can be a program name with args.
6533 set dummy dsymutil; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_DSYMUTIL"; then
6540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560 if test -n "$ac_ct_DSYMUTIL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_DSYMUTIL" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 DSYMUTIL=$ac_ct_DSYMUTIL
6580 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_NMEDIT+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$NMEDIT"; then
6592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 NMEDIT=$ac_cv_prog_NMEDIT
6612 if test -n "$NMEDIT"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614 $as_echo "$NMEDIT" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_NMEDIT"; then
6623 ac_ct_NMEDIT=$NMEDIT
6624 # Extract the first word of "nmedit", so it can be a program name with args.
6625 set dummy nmedit; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_NMEDIT"; then
6632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652 if test -n "$ac_ct_NMEDIT"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654 $as_echo "$ac_ct_NMEDIT" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_NMEDIT" = x; then
6663 case $cross_compiling:$ac_tool_warned in
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6669 NMEDIT=$ac_ct_NMEDIT
6672 NMEDIT="$ac_cv_prog_NMEDIT"
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_LIPO+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$LIPO"; then
6684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 LIPO=$ac_cv_prog_LIPO
6704 if test -n "$LIPO"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706 $as_echo "$LIPO" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_LIPO"; then
6716 # Extract the first word of "lipo", so it can be a program name with args.
6717 set dummy lipo; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_LIPO"; then
6724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_LIPO="lipo"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744 if test -n "$ac_ct_LIPO"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746 $as_echo "$ac_ct_LIPO" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_LIPO" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6764 LIPO="$ac_cv_prog_LIPO"
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}otool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_OTOOL+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 if test -n "$OTOOL"; then
6776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 OTOOL=$ac_cv_prog_OTOOL
6796 if test -n "$OTOOL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798 $as_echo "$OTOOL" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OTOOL"; then
6808 # Extract the first word of "otool", so it can be a program name with args.
6809 set dummy otool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$ac_ct_OTOOL"; then
6816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_OTOOL="otool"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836 if test -n "$ac_ct_OTOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838 $as_echo "$ac_ct_OTOOL" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OTOOL" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6856 OTOOL="$ac_cv_prog_OTOOL"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_OTOOL64+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 if test -n "$OTOOL64"; then
6868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 OTOOL64=$ac_cv_prog_OTOOL64
6888 if test -n "$OTOOL64"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890 $as_echo "$OTOOL64" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6898 if test -z "$ac_cv_prog_OTOOL64"; then
6899 ac_ct_OTOOL64=$OTOOL64
6900 # Extract the first word of "otool64", so it can be a program name with args.
6901 set dummy otool64; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 if test -n "$ac_ct_OTOOL64"; then
6908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_ac_ct_OTOOL64="otool64"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928 if test -n "$ac_ct_OTOOL64"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930 $as_echo "$ac_ct_OTOOL64" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$ac_ct_OTOOL64" = x; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6945 OTOOL64=$ac_ct_OTOOL64
6948 OTOOL64="$ac_cv_prog_OTOOL64"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6978 $as_echo_n "checking for -single_module linker flag... " >&6; }
6979 if ${lt_cv_apple_cc_single_mod+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 lt_cv_apple_cc_single_mod=no
6983 if test -z "${LT_MULTI_MODULE}"; then
6984 # By default we will add the -single_module flag. You can override
6985 # by either setting the environment variable LT_MULTI_MODULE
6986 # non-empty at configure time, or by adding -multi_module to the
6988 rm -rf libconftest.dylib*
6989 echo "int foo(void){return 1;}" > conftest.c
6990 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991 -dynamiclib -Wl,-single_module conftest.c" >&5
6992 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6993 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6995 # If there is a non-empty error log, and "single_module"
6996 # appears in it, assume the flag caused a linker warning
6997 if test -s conftest.err && $GREP single_module conftest.err; then
6998 cat conftest.err >&5
6999 # Otherwise, if the output was created with a 0 exit code from
7000 # the compiler, it worked.
7001 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7002 lt_cv_apple_cc_single_mod=yes
7004 cat conftest.err >&5
7006 rm -rf libconftest.dylib*
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7014 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7015 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 lt_cv_ld_exported_symbols_list=no
7019 save_LDFLAGS=$LDFLAGS
7020 echo "_main" > conftest.sym
7021 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 lt_cv_ld_exported_symbols_list=yes
7036 lt_cv_ld_exported_symbols_list=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 LDFLAGS="$save_LDFLAGS"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7044 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7047 $as_echo_n "checking for -force_load linker flag... " >&6; }
7048 if ${lt_cv_ld_force_load+:} false; then :
7049 $as_echo_n "(cached) " >&6
7051 lt_cv_ld_force_load=no
7052 cat > conftest.c << _LT_EOF
7053 int forced_loaded() { return 2;}
7055 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7056 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7057 echo "$AR cru libconftest.a conftest.o" >&5
7058 $AR cru libconftest.a conftest.o 2>&5
7059 echo "$RANLIB libconftest.a" >&5
7060 $RANLIB libconftest.a 2>&5
7061 cat > conftest.c << _LT_EOF
7062 int main() { return 0;}
7064 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7065 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7067 if test -s conftest.err && $GREP force_load conftest.err; then
7068 cat conftest.err >&5
7069 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7070 lt_cv_ld_force_load=yes
7072 cat conftest.err >&5
7074 rm -f conftest.err libconftest.a conftest conftest.c
7075 rm -rf conftest.dSYM
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7079 $as_echo "$lt_cv_ld_force_load" >&6; }
7081 rhapsody* | darwin1.[012])
7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085 darwin*) # darwin 5.x on
7086 # if running on 10.5 or later, the deployment target defaults
7087 # to the OS version, if on x86, and 10.4, the deployment
7088 # target defaults to 10.4. Don't you love it?
7089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7090 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7100 _lt_dar_single_mod='$single_module'
7102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7107 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7108 _lt_dsymutil='~$DSYMUTIL $lib || :'
7115 for ac_header in dlfcn.h
7117 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7119 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7120 cat >>confdefs.h <<_ACEOF
7121 #define HAVE_DLFCN_H 1
7142 # Check whether --enable-shared was given.
7143 if test "${enable_shared+set}" = set; then :
7144 enableval=$enable_shared; p=${PACKAGE-default}
7146 yes) enable_shared=yes ;;
7147 no) enable_shared=no ;;
7150 # Look at the argument we got. We use all the common list separators.
7151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7152 for pkg in $enableval; do
7154 if test "X$pkg" = "X$p"; then
7173 # Check whether --enable-static was given.
7174 if test "${enable_static+set}" = set; then :
7175 enableval=$enable_static; p=${PACKAGE-default}
7177 yes) enable_static=yes ;;
7178 no) enable_static=no ;;
7181 # Look at the argument we got. We use all the common list separators.
7182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183 for pkg in $enableval; do
7185 if test "X$pkg" = "X$p"; then
7205 # Check whether --with-pic was given.
7206 if test "${with_pic+set}" = set; then :
7207 withval=$with_pic; lt_p=${PACKAGE-default}
7209 yes|no) pic_mode=$withval ;;
7212 # Look at the argument we got. We use all the common list separators.
7213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7214 for lt_pkg in $withval; do
7216 if test "X$lt_pkg" = "X$lt_p"; then
7228 test -z "$pic_mode" && pic_mode=default
7236 # Check whether --enable-fast-install was given.
7237 if test "${enable_fast_install+set}" = set; then :
7238 enableval=$enable_fast_install; p=${PACKAGE-default}
7240 yes) enable_fast_install=yes ;;
7241 no) enable_fast_install=no ;;
7243 enable_fast_install=no
7244 # Look at the argument we got. We use all the common list separators.
7245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7246 for pkg in $enableval; do
7248 if test "X$pkg" = "X$p"; then
7249 enable_fast_install=yes
7256 enable_fast_install=yes
7269 # This can be used to rebuild libtool when needed
7270 LIBTOOL_DEPS="$ltmain"
7272 # Always use our own libtool.
7273 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7304 test -z "$LN_S" && LN_S="ln -s"
7319 if test -n "${ZSH_VERSION+set}" ; then
7320 setopt NO_GLOB_SUBST
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7324 $as_echo_n "checking for objdir... " >&6; }
7325 if ${lt_cv_objdir+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 rm -f .libs 2>/dev/null
7329 mkdir .libs 2>/dev/null
7330 if test -d .libs; then
7333 # MS-DOS does not allow filenames that begin with a dot.
7336 rmdir .libs 2>/dev/null
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7339 $as_echo "$lt_cv_objdir" >&6; }
7340 objdir=$lt_cv_objdir
7346 cat >>confdefs.h <<_ACEOF
7347 #define LT_OBJDIR "$lt_cv_objdir/"
7355 # AIX sometimes has problems with the GCC collect2 program. For some
7356 # reason, if we set the COLLECT_NAMES environment variable, the problems
7357 # vanish in a puff of smoke.
7358 if test "X${COLLECT_NAMES+set}" != Xset; then
7360 export COLLECT_NAMES
7367 can_build_shared=yes
7369 # All known linkers require a `.a' archive for static linking (except MSVC,
7370 # which needs '.lib').
7373 with_gnu_ld="$lt_cv_prog_gnu_ld"
7376 old_CFLAGS="$CFLAGS"
7378 # Set sane defaults for various variables
7379 test -z "$CC" && CC=cc
7380 test -z "$LTCC" && LTCC=$CC
7381 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7382 test -z "$LD" && LD=ld
7383 test -z "$ac_objext" && ac_objext=o
7385 for cc_temp in $compiler""; do
7387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7393 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7396 # Only perform the check for file, if the check method requires it
7397 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7398 case $deplibs_check_method in
7400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7402 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7404 $as_echo_n "(cached) " >&6
7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7411 lt_save_MAGIC_CMD="$MAGIC_CMD"
7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir in $ac_dummy; do
7416 test -z "$ac_dir" && ac_dir=.
7417 if test -f $ac_dir/${ac_tool_prefix}file; then
7418 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425 $EGREP "$file_magic_regex" > /dev/null; then
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7447 MAGIC_CMD="$lt_save_MAGIC_CMD"
7452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7455 $as_echo "$MAGIC_CMD" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7465 if test -z "$lt_cv_path_MAGIC_CMD"; then
7466 if test -n "$ac_tool_prefix"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7468 $as_echo_n "checking for file... " >&6; }
7469 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7470 $as_echo_n "(cached) " >&6
7474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7477 lt_save_MAGIC_CMD="$MAGIC_CMD"
7478 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7479 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7480 for ac_dir in $ac_dummy; do
7482 test -z "$ac_dir" && ac_dir=.
7483 if test -f $ac_dir/file; then
7484 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7485 if test -n "$file_magic_test_file"; then
7486 case $deplibs_check_method in
7488 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7489 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7490 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7491 $EGREP "$file_magic_regex" > /dev/null; then
7496 *** Warning: the command libtool uses to detect shared libraries,
7497 *** $file_magic_cmd, produces output that libtool cannot recognize.
7498 *** The result is that libtool may fail to recognize shared libraries
7499 *** as such. This will affect the creation of libtool libraries that
7500 *** depend on shared libraries, but programs linked with such libtool
7501 *** libraries will work regardless of this problem. Nevertheless, you
7502 *** may want to report the problem to your system manager and/or to
7503 *** bug-libtool@gnu.org
7513 MAGIC_CMD="$lt_save_MAGIC_CMD"
7518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519 if test -n "$MAGIC_CMD"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7521 $as_echo "$MAGIC_CMD" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7537 # Use C for the default configuration in the libtool script
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547 # Source file extension for C test sources.
7550 # Object file extension for compiled C test sources.
7554 # Code to be used in simple compile tests
7555 lt_simple_compile_test_code="int some_variable = 0;"
7557 # Code to be used in simple link tests
7558 lt_simple_link_test_code='int main(){return(0);}'
7566 # If no C compiler was specified, use CC.
7569 # If no C compiler flags were specified, use CFLAGS.
7570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7572 # Allow CC to be a program name with arguments.
7575 # Save the default compiler, since it gets overwritten when the other
7576 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7577 compiler_DEFAULT=$CC
7579 # save warnings/boilerplate of simple test code
7580 ac_outfile=conftest.$ac_objext
7581 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7582 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7583 _lt_compiler_boilerplate=`cat conftest.err`
7586 ac_outfile=conftest.$ac_objext
7587 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7588 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7589 _lt_linker_boilerplate=`cat conftest.err`
7593 if test -n "$compiler"; then
7595 lt_prog_compiler_no_builtin_flag=
7597 if test "$GCC" = yes; then
7598 case $cc_basename in
7600 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7602 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7606 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7607 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 lt_cv_prog_compiler_rtti_exceptions=no
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613 lt_compiler_flag="-fno-rtti -fno-exceptions"
7614 # Insert the option either (1) after the last *FLAGS variable, or
7615 # (2) before a word containing "conftest.", or (3) at the end.
7616 # Note that $ac_compile itself does not contain backslashes and begins
7617 # with a dollar sign (not a hyphen), so the echo should work correctly.
7618 # The option is referenced via a variable to avoid confusing sed.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>conftest.err)
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s "$ac_outfile"; then
7629 # The compiler can only warn and ignore the option if not recognized
7630 # So say no if there are warnings other than the usual output.
7631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7634 lt_cv_prog_compiler_rtti_exceptions=yes
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7641 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7643 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7644 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7656 lt_prog_compiler_wl=
7657 lt_prog_compiler_pic=
7658 lt_prog_compiler_static=
7661 if test "$GCC" = yes; then
7662 lt_prog_compiler_wl='-Wl,'
7663 lt_prog_compiler_static='-static'
7667 # All AIX code is PIC.
7668 if test "$host_cpu" = ia64; then
7669 # AIX 5 now supports IA64 processor
7670 lt_prog_compiler_static='-Bstatic'
7677 # see comment about AmigaOS4 .so support
7678 lt_prog_compiler_pic='-fPIC'
7681 # FIXME: we need at least 68020 code to build shared libraries, but
7682 # adding the `-m68020' flag to GCC prevents building anything better,
7684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7689 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7690 # PIC is the default for these OSes.
7693 mingw* | cygwin* | pw32* | os2* | cegcc*)
7694 # This hack is so that the source file can tell whether it is being
7695 # built for inclusion in a dll (and should export symbols for example).
7696 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7697 # (--disable-auto-import) libraries
7698 lt_prog_compiler_pic='-DDLL_EXPORT'
7701 darwin* | rhapsody*)
7702 # PIC is the default on this platform
7703 # Common symbols not allowed in MH_DYLIB files
7704 lt_prog_compiler_pic='-fno-common'
7708 # PIC is the default for Haiku.
7709 # The "-static" flag exists, but is broken.
7710 lt_prog_compiler_static=
7714 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7715 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7716 # sets the default TLS model and affects inlining.
7722 lt_prog_compiler_pic='-fPIC'
7728 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7729 # Instead, we relocate shared libraries at runtime.
7733 # Just because we use GCC doesn't mean we suddenly get shared libraries
7734 # on systems that don't support them.
7735 lt_prog_compiler_can_build_shared=no
7740 # QNX uses GNU C++, but need to define -shared option too, otherwise
7742 lt_prog_compiler_pic='-fPIC -shared'
7746 if test -d /usr/nec; then
7747 lt_prog_compiler_pic=-Kconform_pic
7752 lt_prog_compiler_pic='-fPIC'
7756 case $cc_basename in
7757 nvcc*) # Cuda Compiler Driver 2.2
7758 lt_prog_compiler_wl='-Xlinker '
7759 if test -n "$lt_prog_compiler_pic"; then
7760 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7765 # PORTME Check for flag to pass linker flags through the system compiler.
7768 lt_prog_compiler_wl='-Wl,'
7769 if test "$host_cpu" = ia64; then
7770 # AIX 5 now supports IA64 processor
7771 lt_prog_compiler_static='-Bstatic'
7773 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7777 mingw* | cygwin* | pw32* | os2* | cegcc*)
7778 # This hack is so that the source file can tell whether it is being
7779 # built for inclusion in a dll (and should export symbols for example).
7780 lt_prog_compiler_pic='-DDLL_EXPORT'
7783 hpux9* | hpux10* | hpux11*)
7784 lt_prog_compiler_wl='-Wl,'
7785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7792 lt_prog_compiler_pic='+Z'
7795 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7796 lt_prog_compiler_static='${wl}-a ${wl}archive'
7799 irix5* | irix6* | nonstopux*)
7800 lt_prog_compiler_wl='-Wl,'
7801 # PIC (with -KPIC) is the default.
7802 lt_prog_compiler_static='-non_shared'
7805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7806 case $cc_basename in
7807 # old Intel for x86_64 which still supported -KPIC.
7809 lt_prog_compiler_wl='-Wl,'
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-static'
7813 # icc used to be incompatible with GCC.
7814 # ICC 10 doesn't accept -KPIC any more.
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_pic='-fPIC'
7818 lt_prog_compiler_static='-static'
7820 # Lahey Fortran 8.1.
7822 lt_prog_compiler_wl='-Wl,'
7823 lt_prog_compiler_pic='--shared'
7824 lt_prog_compiler_static='--static'
7827 # NAG Fortran compiler
7828 lt_prog_compiler_wl='-Wl,-Wl,,'
7829 lt_prog_compiler_pic='-PIC'
7830 lt_prog_compiler_static='-Bstatic'
7832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7833 # Portland Group compilers (*not* the Pentium gcc compiler,
7834 # which looks to be a dead project)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-fpic'
7837 lt_prog_compiler_static='-Bstatic'
7840 lt_prog_compiler_wl='-Wl,'
7841 # All Alpha code is PIC.
7842 lt_prog_compiler_static='-non_shared'
7844 xl* | bgxl* | bgf* | mpixl*)
7845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7846 lt_prog_compiler_wl='-Wl,'
7847 lt_prog_compiler_pic='-qpic'
7848 lt_prog_compiler_static='-qstaticlink'
7851 case `$CC -V 2>&1 | sed 5q` in
7852 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7856 lt_prog_compiler_wl=''
7858 *Sun\ F* | *Sun*Fortran*)
7859 lt_prog_compiler_pic='-KPIC'
7860 lt_prog_compiler_static='-Bstatic'
7861 lt_prog_compiler_wl='-Qoption ld '
7865 lt_prog_compiler_pic='-KPIC'
7866 lt_prog_compiler_static='-Bstatic'
7867 lt_prog_compiler_wl='-Wl,'
7869 *Intel*\ [CF]*Compiler*)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-fPIC'
7872 lt_prog_compiler_static='-static'
7875 lt_prog_compiler_wl='-Wl,'
7876 lt_prog_compiler_pic='-fpic'
7877 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-Bstatic'
7890 # QNX uses GNU C++, but need to define -shared option too, otherwise
7892 lt_prog_compiler_pic='-fPIC -shared'
7895 osf3* | osf4* | osf5*)
7896 lt_prog_compiler_wl='-Wl,'
7897 # All OSF/1 code is PIC.
7898 lt_prog_compiler_static='-non_shared'
7902 lt_prog_compiler_static='-non_shared'
7906 lt_prog_compiler_pic='-KPIC'
7907 lt_prog_compiler_static='-Bstatic'
7908 case $cc_basename in
7909 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7910 lt_prog_compiler_wl='-Qoption ld ';;
7912 lt_prog_compiler_wl='-Wl,';;
7917 lt_prog_compiler_wl='-Qoption ld '
7918 lt_prog_compiler_pic='-PIC'
7919 lt_prog_compiler_static='-Bstatic'
7922 sysv4 | sysv4.2uw2* | sysv4.3*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='-KPIC'
7925 lt_prog_compiler_static='-Bstatic'
7929 if test -d /usr/nec ;then
7930 lt_prog_compiler_pic='-Kconform_pic'
7931 lt_prog_compiler_static='-Bstatic'
7935 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-KPIC'
7938 lt_prog_compiler_static='-Bstatic'
7942 lt_prog_compiler_wl='-Wl,'
7943 lt_prog_compiler_can_build_shared=no
7947 lt_prog_compiler_pic='-pic'
7948 lt_prog_compiler_static='-Bstatic'
7952 lt_prog_compiler_can_build_shared=no
7958 # For platforms which do not support PIC, -DPIC is meaningless:
7960 lt_prog_compiler_pic=
7963 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7968 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7969 if ${lt_cv_prog_compiler_pic+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7975 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7976 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7979 # Check to make sure the PIC flag actually works.
7981 if test -n "$lt_prog_compiler_pic"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7983 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7984 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 lt_cv_prog_compiler_pic_works=no
7988 ac_outfile=conftest.$ac_objext
7989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 # The option is referenced via a variable to avoid confusing sed.
7996 lt_compile=`echo "$ac_compile" | $SED \
7997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7999 -e 's:$: $lt_compiler_flag:'`
8000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8001 (eval "$lt_compile" 2>conftest.err)
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 if (exit $ac_status) && test -s "$ac_outfile"; then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings other than the usual output.
8008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_pic_works=yes
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8018 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8020 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8021 case $lt_prog_compiler_pic in
8023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8026 lt_prog_compiler_pic=
8027 lt_prog_compiler_can_build_shared=no
8043 # Check to make sure the static flag actually works.
8045 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8047 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8048 if ${lt_cv_prog_compiler_static_works+:} false; then :
8049 $as_echo_n "(cached) " >&6
8051 lt_cv_prog_compiler_static_works=no
8052 save_LDFLAGS="$LDFLAGS"
8053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8056 # The linker can only warn and ignore the option if not recognized
8057 # So say no if there are warnings
8058 if test -s conftest.err; then
8059 # Append any errors to the config.log.
8060 cat conftest.err 1>&5
8061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063 if diff conftest.exp conftest.er2 >/dev/null; then
8064 lt_cv_prog_compiler_static_works=yes
8067 lt_cv_prog_compiler_static_works=yes
8071 LDFLAGS="$save_LDFLAGS"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8075 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8077 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8080 lt_prog_compiler_static=
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8091 if ${lt_cv_prog_compiler_c_o+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 lt_cv_prog_compiler_c_o=no
8095 $RM -r conftest 2>/dev/null
8099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-o out/conftest2.$ac_objext"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 lt_compile=`echo "$ac_compile" | $SED \
8107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8109 -e 's:$: $lt_compiler_flag:'`
8110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8111 (eval "$lt_compile" 2>out/conftest.err)
8113 cat out/conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_c_o=yes
8127 # SGI C++ compiler will create directory out/ii_files/ for
8128 # template instantiation
8129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8130 $RM out/* && rmdir out
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8137 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8146 if ${lt_cv_prog_compiler_c_o+:} false; then :
8147 $as_echo_n "(cached) " >&6
8149 lt_cv_prog_compiler_c_o=no
8150 $RM -r conftest 2>/dev/null
8154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8156 lt_compiler_flag="-o out/conftest2.$ac_objext"
8157 # Insert the option either (1) after the last *FLAGS variable, or
8158 # (2) before a word containing "conftest.", or (3) at the end.
8159 # Note that $ac_compile itself does not contain backslashes and begins
8160 # with a dollar sign (not a hyphen), so the echo should work correctly.
8161 lt_compile=`echo "$ac_compile" | $SED \
8162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164 -e 's:$: $lt_compiler_flag:'`
8165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8166 (eval "$lt_compile" 2>out/conftest.err)
8168 cat out/conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8172 # The compiler can only warn and ignore the option if not recognized
8173 # So say no if there are warnings
8174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8177 lt_cv_prog_compiler_c_o=yes
8182 # SGI C++ compiler will create directory out/ii_files/ for
8183 # template instantiation
8184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8185 $RM out/* && rmdir out
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8192 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8197 hard_links="nottested"
8198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8199 # do not overwrite the value of need_locks provided by the user
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8201 $as_echo_n "checking if we can lock with hard links... " >&6; }
8204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8206 ln conftest.a conftest.b 2>&5 || hard_links=no
8207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8209 $as_echo "$hard_links" >&6; }
8210 if test "$hard_links" = no; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8212 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8225 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8228 allow_undefined_flag=
8229 always_export_symbols=no
8231 archive_expsym_cmds=
8232 compiler_needs_object=no
8233 enable_shared_with_static_runtimes=no
8234 export_dynamic_flag_spec=
8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8236 hardcode_automatic=no
8238 hardcode_direct_absolute=no
8239 hardcode_libdir_flag_spec=
8240 hardcode_libdir_separator=
8242 hardcode_shlibpath_var=unsupported
8244 link_all_deplibs=unknown
8247 old_archive_from_new_cmds=
8248 old_archive_from_expsyms_cmds=
8249 thread_safe_flag_spec=
8250 whole_archive_flag_spec=
8251 # include_expsyms should be a list of space-separated symbols to be *always*
8252 # included in the symbol list
8254 # exclude_expsyms can be an extended regexp of symbols to exclude
8255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8257 # as well as any symbol that contains `d'.
8258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8260 # platforms (ab)use it in PIC code, but their linkers get confused if
8261 # the symbol is explicitly referenced. Since portable code cannot
8262 # rely on this symbol name, it's probably fine to never include it in
8263 # preloaded symbol tables.
8264 # Exclude shared library initialization/finalization symbols.
8265 extract_expsyms_cmds=
8268 cygwin* | mingw* | pw32* | cegcc*)
8269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8270 # When not using gcc, we currently assume that we are using
8271 # Microsoft Visual C++.
8272 if test "$GCC" != yes; then
8277 # we just hope/assume this is gcc and not c89 (= MSVC++)
8283 linux* | k*bsd*-gnu | gnu*)
8290 # On some targets, GNU ld is compatible enough with the native linker
8291 # that we're better off using the native interface for both.
8292 lt_use_gnu_ld_interface=no
8293 if test "$with_gnu_ld" = yes; then
8296 # The AIX port of GNU ld has always aspired to compatibility
8297 # with the native linker. However, as the warning in the GNU ld
8298 # block says, versions before 2.19.5* couldn't really create working
8299 # shared libraries, regardless of the interface used.
8300 case `$LD -v 2>&1` in
8301 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8302 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8303 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8305 lt_use_gnu_ld_interface=yes
8310 lt_use_gnu_ld_interface=yes
8315 if test "$lt_use_gnu_ld_interface" = yes; then
8316 # If archive_cmds runs LD, not CC, wlarc should be empty
8319 # Set some defaults for GNU ld with shared library support. These
8320 # are reset later if shared libraries are not supported. Putting them
8321 # here allows them to be overridden if necessary.
8322 runpath_var=LD_RUN_PATH
8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 export_dynamic_flag_spec='${wl}--export-dynamic'
8325 # ancient GNU ld didn't support --whole-archive et. al.
8326 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8329 whole_archive_flag_spec=
8331 supports_anon_versioning=no
8332 case `$LD -v 2>&1` in
8333 *GNU\ gold*) supports_anon_versioning=yes ;;
8334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8337 *\ 2.11.*) ;; # other 2.11 versions
8338 *) supports_anon_versioning=yes ;;
8341 # See if GNU ld supports shared libraries.
8344 # On AIX/PPC, the GNU linker is very broken
8345 if test "$host_cpu" != ia64; then
8349 *** Warning: the GNU linker, at least up to release 2.19, is reported
8350 *** to be unable to reliably create shared libraries on AIX.
8351 *** Therefore, libtool is disabling shared libraries support. If you
8352 *** really care for shared libraries, you may want to install binutils
8353 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8354 *** You will then need to restart the configuration process.
8363 # see comment about AmigaOS4 .so support
8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 archive_expsym_cmds=''
8368 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)'
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377 allow_undefined_flag=unsupported
8378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8379 # support --undefined. This deserves some investigation. FIXME
8380 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8386 cygwin* | mingw* | pw32* | cegcc*)
8387 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8388 # as there is no search path for DLLs.
8389 hardcode_libdir_flag_spec='-L$libdir'
8390 export_dynamic_flag_spec='${wl}--export-all-symbols'
8391 allow_undefined_flag=unsupported
8392 always_export_symbols=no
8393 enable_shared_with_static_runtimes=yes
8394 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'
8395 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399 # If the export-symbols file already is a .def file (1st line
8400 # is EXPORTS), use it as is; otherwise, prepend...
8401 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8402 cp $export_symbols $output_objdir/$soname.def;
8404 echo EXPORTS > $output_objdir/$soname.def;
8405 cat $export_symbols >> $output_objdir/$soname.def;
8407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415 link_all_deplibs=yes
8420 hardcode_shlibpath_var=no
8421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422 export_dynamic_flag_spec='${wl}-E'
8423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8424 # Instead, shared libraries are loaded at an image base (0x10000000 by
8425 # default) and relocated if they conflict, which is a slow very memory
8426 # consuming and fragmenting process. To avoid this, we pick a random,
8427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8430 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'
8433 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8435 if test "$host_os" = linux-dietlibc; then
8436 case $cc_basename in
8437 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8440 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8441 && test "$tmp_diet" = no
8443 tmp_addflag=' $pic_flag'
8444 tmp_sharedflag='-shared'
8445 case $cc_basename,$host_cpu in
8446 pgcc*) # Portland Group C compiler
8447 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'
8448 tmp_addflag=' $pic_flag'
8450 pgf77* | pgf90* | pgf95* | pgfortran*)
8451 # Portland Group f77 and f90 compilers
8452 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'
8453 tmp_addflag=' $pic_flag -Mnomain' ;;
8454 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8455 tmp_addflag=' -i_dynamic' ;;
8456 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8457 tmp_addflag=' -i_dynamic -nofor_main' ;;
8458 ifc* | ifort*) # Intel Fortran compiler
8459 tmp_addflag=' -nofor_main' ;;
8460 lf95*) # Lahey Fortran 8.1
8461 whole_archive_flag_spec=
8462 tmp_sharedflag='--shared' ;;
8463 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8464 tmp_sharedflag='-qmkshrobj'
8466 nvcc*) # Cuda Compiler Driver 2.2
8467 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'
8468 compiler_needs_object=yes
8471 case `$CC -V 2>&1 | sed 5q` in
8472 *Sun\ C*) # Sun C 5.9
8473 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'
8474 compiler_needs_object=yes
8475 tmp_sharedflag='-G' ;;
8476 *Sun\ F*) # Sun Fortran 8.3
8477 tmp_sharedflag='-G' ;;
8479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8481 if test "x$supports_anon_versioning" = xyes; then
8482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484 echo "local: *; };" >> $output_objdir/$libname.ver~
8485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8488 case $cc_basename in
8489 xlf* | bgf* | bgxlf* | mpixlf*)
8490 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8491 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8493 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8494 if test "x$supports_anon_versioning" = xyes; then
8495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497 echo "local: *; };" >> $output_objdir/$libname.ver~
8498 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8507 netbsd* | netbsdelf*-gnu)
8508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523 *** create shared libraries on Solaris systems. Therefore, libtool
8524 *** is disabling shared libraries support. We urge you to upgrade GNU
8525 *** binutils to release 2.9.1 or newer. Another option is to modify
8526 *** your PATH or compiler configuration so that the native linker is
8527 *** used, and then restart.
8530 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539 case `$LD -v 2>&1` in
8540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545 *** reliably create shared libraries on SCO systems. Therefore, libtool
8546 *** is disabling shared libraries support. We urge you to upgrade GNU
8547 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8548 *** your PATH or compiler configuration so that the native linker is
8549 *** used, and then restart.
8554 # For security reasons, it is highly recommended that you always
8555 # use absolute paths for naming shared libraries, and exclude the
8556 # DT_RUNPATH tag from executables and libraries. But doing so
8557 # requires that you compile everything twice, which is a pain.
8558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8570 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8573 hardcode_shlibpath_var=no
8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 if test "$ld_shlibs" = no; then
8588 hardcode_libdir_flag_spec=
8589 export_dynamic_flag_spec=
8590 whole_archive_flag_spec=
8593 # PORTME fill in a description of your system's linker (not GNU ld)
8596 allow_undefined_flag=unsupported
8597 always_export_symbols=yes
8598 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'
8599 # Note: this linker hardcodes the directories in LIBPATH if there
8600 # are no directories specified by -L.
8601 hardcode_minus_L=yes
8602 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603 # Neither direct hardcoding nor static linking is supported with a
8605 hardcode_direct=unsupported
8610 if test "$host_cpu" = ia64; then
8611 # On IA64, the linker does run time linking by default, so we don't
8612 # have to do anything special.
8613 aix_use_runtimelinking=no
8614 exp_sym_flag='-Bexport'
8617 # If we're using GNU nm, then we don't want the "-C" option.
8618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8619 # Also, AIX nm treats weak defined symbols like other global
8620 # defined symbols, whereas GNU nm marks them as "W".
8621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8622 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8624 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8626 aix_use_runtimelinking=no
8628 # Test if we are trying to use run time linking or normal
8629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8630 # need to do runtime linking.
8631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8632 for ld_flag in $LDFLAGS; do
8633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8634 aix_use_runtimelinking=yes
8641 exp_sym_flag='-bexport'
8642 no_entry_flag='-bnoentry'
8645 # When large executables or shared objects are built, AIX ld can
8646 # have problems creating the table of contents. If linking a library
8647 # or program results in "error TOC overflow" add -mminimal-toc to
8648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8653 hardcode_direct_absolute=yes
8654 hardcode_libdir_separator=':'
8655 link_all_deplibs=yes
8656 file_list_spec='${wl}-f,'
8658 if test "$GCC" = yes; then
8659 case $host_os in aix4.[012]|aix4.[012].*)
8660 # We only want to do this on AIX 4.2 and lower, the check
8661 # below for broken collect2 doesn't work under 4.3+
8662 collect2name=`${CC} -print-prog-name=collect2`
8663 if test -f "$collect2name" &&
8664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8666 # We have reworked collect2
8669 # We have old collect2
8670 hardcode_direct=unsupported
8671 # It fails to find uninstalled libraries when the uninstalled
8672 # path is not listed in the libpath. Setting hardcode_minus_L
8673 # to unsupported forces relinking
8674 hardcode_minus_L=yes
8675 hardcode_libdir_flag_spec='-L$libdir'
8676 hardcode_libdir_separator=
8680 shared_flag='-shared'
8681 if test "$aix_use_runtimelinking" = yes; then
8682 shared_flag="$shared_flag "'${wl}-G'
8687 if test "$host_cpu" = ia64; then
8688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8689 # chokes on -Wl,-G. The following line is correct:
8692 if test "$aix_use_runtimelinking" = yes; then
8693 shared_flag='${wl}-G'
8695 shared_flag='${wl}-bM:SRE'
8700 export_dynamic_flag_spec='${wl}-bexpall'
8701 # It seems that -bexpall does not export symbols beginning with
8702 # underscore (_), so it is better to generate a list of symbols to export.
8703 always_export_symbols=yes
8704 if test "$aix_use_runtimelinking" = yes; then
8705 # Warning - without using the other runtime loading flags (-brtl),
8706 # -berok will link without error, but may produce a broken library.
8707 allow_undefined_flag='-berok'
8708 # Determine the default libpath from the value encoded in an
8710 if test "${lt_cv_aix_libpath+set}" = set; then
8711 aix_libpath=$lt_cv_aix_libpath
8713 if ${lt_cv_aix_libpath_+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8727 if ac_fn_c_try_link "$LINENO"; then :
8729 lt_aix_libpath_sed='
8730 /Import File Strings/,/^$/ {
8732 s/^0 *\([^ ]*\) *$/\1/
8736 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8737 # Check for a 64-bit object if we didn't find anything.
8738 if test -z "$lt_cv_aix_libpath_"; then
8739 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8742 rm -f core conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 if test -z "$lt_cv_aix_libpath_"; then
8745 lt_cv_aix_libpath_="/usr/lib:/lib"
8750 aix_libpath=$lt_cv_aix_libpath_
8753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8754 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8756 if test "$host_cpu" = ia64; then
8757 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8758 allow_undefined_flag="-z nodefs"
8759 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"
8761 # Determine the default libpath from the value encoded in an
8763 if test "${lt_cv_aix_libpath+set}" = set; then
8764 aix_libpath=$lt_cv_aix_libpath
8766 if ${lt_cv_aix_libpath_+:} false; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8780 if ac_fn_c_try_link "$LINENO"; then :
8782 lt_aix_libpath_sed='
8783 /Import File Strings/,/^$/ {
8785 s/^0 *\([^ ]*\) *$/\1/
8789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8790 # Check for a 64-bit object if we didn't find anything.
8791 if test -z "$lt_cv_aix_libpath_"; then
8792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8795 rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 if test -z "$lt_cv_aix_libpath_"; then
8798 lt_cv_aix_libpath_="/usr/lib:/lib"
8803 aix_libpath=$lt_cv_aix_libpath_
8806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8807 # Warning - without using the other run time loading flags,
8808 # -berok will link without error, but may produce a broken library.
8809 no_undefined_flag=' ${wl}-bernotok'
8810 allow_undefined_flag=' ${wl}-berok'
8811 if test "$with_gnu_ld" = yes; then
8812 # We only use this code for GNU lds that support --whole-archive.
8813 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8815 # Exported symbols can be pulled into shared objects from archives
8816 whole_archive_flag_spec='$convenience'
8818 archive_cmds_need_lc=yes
8819 # This is similar to how AIX traditionally builds its shared libraries.
8820 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8841 export_dynamic_flag_spec=-rdynamic
8844 cygwin* | mingw* | pw32* | cegcc*)
8845 # When not using gcc, we currently assume that we are using
8846 # Microsoft Visual C++.
8847 # hardcode_libdir_flag_spec is actually meaningless, as there is
8848 # no search path for DLLs.
8849 case $cc_basename in
8852 hardcode_libdir_flag_spec=' '
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=yes
8856 # Tell ltmain to make .lib files, not .a files.
8858 # Tell ltmain to make .dll files, not .so files.
8860 # FIXME: Setting linknames here is a bad hack.
8861 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8862 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8863 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8865 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8867 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8869 # The linker will not automatically build a static lib if we build a DLL.
8870 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8871 enable_shared_with_static_runtimes=yes
8872 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8875 old_postinstall_cmds='chmod 644 $oldlib'
8876 postlink_cmds='lt_outputfile="@OUTPUT@"~
8877 lt_tool_outputfile="@TOOL_OUTPUT@"~
8878 case $lt_outputfile in
8881 lt_outputfile="$lt_outputfile.exe"
8882 lt_tool_outputfile="$lt_tool_outputfile.exe"
8885 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8886 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8887 $RM "$lt_outputfile.manifest";
8891 # Assume MSVC wrapper
8892 hardcode_libdir_flag_spec=' '
8893 allow_undefined_flag=unsupported
8894 # Tell ltmain to make .lib files, not .a files.
8896 # Tell ltmain to make .dll files, not .so files.
8898 # FIXME: Setting linknames here is a bad hack.
8899 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8900 # The linker will automatically build a .lib file if we build a DLL.
8901 old_archive_from_new_cmds='true'
8902 # FIXME: Should let the user specify the lib program.
8903 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8904 enable_shared_with_static_runtimes=yes
8909 darwin* | rhapsody*)
8912 archive_cmds_need_lc=no
8914 hardcode_automatic=yes
8915 hardcode_shlibpath_var=unsupported
8916 if test "$lt_cv_ld_force_load" = "yes"; then
8917 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\"`'
8920 whole_archive_flag_spec=''
8922 link_all_deplibs=yes
8923 allow_undefined_flag="$_lt_dar_allow_undefined"
8924 case $cc_basename in
8925 ifort*) _lt_dar_can_shared=yes ;;
8926 *) _lt_dar_can_shared=$GCC ;;
8928 if test "$_lt_dar_can_shared" = "yes"; then
8929 output_verbose_link_cmd=func_echo_all
8930 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8931 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8932 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}"
8933 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}"
8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_shlibpath_var=no
8947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8948 # support. Future versions do this automatically, but an explicit c++rt0.o
8949 # does not break anything, and helps significantly (at the cost of a little
8952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8953 hardcode_libdir_flag_spec='-R$libdir'
8955 hardcode_shlibpath_var=no
8958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_minus_L=yes
8963 hardcode_shlibpath_var=no
8966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8967 freebsd* | dragonfly*)
8968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8969 hardcode_libdir_flag_spec='-R$libdir'
8971 hardcode_shlibpath_var=no
8975 if test "$GCC" = yes; then
8976 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8978 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981 hardcode_libdir_separator=:
8984 # hardcode_minus_L: Not really in the search PATH,
8985 # but as the default location of the library.
8986 hardcode_minus_L=yes
8987 export_dynamic_flag_spec='${wl}-E'
8991 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8992 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8996 if test "$with_gnu_ld" = no; then
8997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8998 hardcode_libdir_separator=:
9000 hardcode_direct_absolute=yes
9001 export_dynamic_flag_spec='${wl}-E'
9002 # hardcode_minus_L: Not really in the search PATH,
9003 # but as the default location of the library.
9004 hardcode_minus_L=yes
9009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9031 # Older versions of the 11.00 compiler do not understand -b yet
9032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9034 $as_echo_n "checking if $CC understands -b... " >&6; }
9035 if ${lt_cv_prog_compiler__b+:} false; then :
9036 $as_echo_n "(cached) " >&6
9038 lt_cv_prog_compiler__b=no
9039 save_LDFLAGS="$LDFLAGS"
9040 LDFLAGS="$LDFLAGS -b"
9041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9043 # The linker can only warn and ignore the option if not recognized
9044 # So say no if there are warnings
9045 if test -s conftest.err; then
9046 # Append any errors to the config.log.
9047 cat conftest.err 1>&5
9048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050 if diff conftest.exp conftest.er2 >/dev/null; then
9051 lt_cv_prog_compiler__b=yes
9054 lt_cv_prog_compiler__b=yes
9058 LDFLAGS="$save_LDFLAGS"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9062 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9064 if test x"$lt_cv_prog_compiler__b" = xyes; then
9065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9073 if test "$with_gnu_ld" = no; then
9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9075 hardcode_libdir_separator=:
9080 hardcode_shlibpath_var=no
9084 hardcode_direct_absolute=yes
9085 export_dynamic_flag_spec='${wl}-E'
9087 # hardcode_minus_L: Not really in the search PATH,
9088 # but as the default location of the library.
9089 hardcode_minus_L=yes
9095 irix5* | irix6* | nonstopux*)
9096 if test "$GCC" = yes; then
9097 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'
9098 # Try to use the -exported_symbol ld option, if it does not
9099 # work, assume that -exports_file does not work either and
9100 # implicitly export all symbols.
9101 # This should be the same for all languages, so no per-tag cache variable.
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9103 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9104 if ${lt_cv_irix_exported_symbol+:} false; then :
9105 $as_echo_n "(cached) " >&6
9107 save_LDFLAGS="$LDFLAGS"
9108 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int foo (void) { return 0; }
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 lt_cv_irix_exported_symbol=yes
9116 lt_cv_irix_exported_symbol=no
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LDFLAGS="$save_LDFLAGS"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9123 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9124 if test "$lt_cv_irix_exported_symbol" = yes; then
9125 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'
9128 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'
9129 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'
9131 archive_cmds_need_lc='no'
9132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133 hardcode_libdir_separator=:
9135 link_all_deplibs=yes
9138 netbsd* | netbsdelf*-gnu)
9139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9144 hardcode_libdir_flag_spec='-R$libdir'
9146 hardcode_shlibpath_var=no
9150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153 hardcode_libdir_separator=:
9154 hardcode_shlibpath_var=no
9161 if test -f /usr/libexec/ld.so; then
9163 hardcode_shlibpath_var=no
9164 hardcode_direct_absolute=yes
9165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9169 export_dynamic_flag_spec='${wl}-E'
9172 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_libdir_flag_spec='-R$libdir'
9177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9178 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_minus_L=yes
9190 allow_undefined_flag=unsupported
9191 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9192 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9196 if test "$GCC" = yes; then
9197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9198 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'
9200 allow_undefined_flag=' -expect_unresolved \*'
9201 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'
9203 archive_cmds_need_lc='no'
9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 hardcode_libdir_separator=:
9208 osf4* | osf5*) # as osf3* with the addition of -msym flag
9209 if test "$GCC" = yes; then
9210 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9211 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'
9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 allow_undefined_flag=' -expect_unresolved \*'
9215 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'
9216 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~
9217 $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'
9219 # Both c and cxx compiler support -rpath directly
9220 hardcode_libdir_flag_spec='-rpath $libdir'
9222 archive_cmds_need_lc='no'
9223 hardcode_libdir_separator=:
9227 no_undefined_flag=' -z defs'
9228 if test "$GCC" = yes; then
9230 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9232 $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'
9234 case `$CC -V 2>&1` in
9237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9243 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9244 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9245 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9249 hardcode_libdir_flag_spec='-R$libdir'
9250 hardcode_shlibpath_var=no
9252 solaris2.[0-5] | solaris2.[0-5].*) ;;
9254 # The compiler driver will combine and reorder linker options,
9255 # but understands `-z linker_flag'. GCC discards it without `$wl',
9256 # but is careful enough not to reorder.
9257 # Supported since Solaris 2.6 (maybe 2.5.1?)
9258 if test "$GCC" = yes; then
9259 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9261 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9265 link_all_deplibs=yes
9269 if test "x$host_vendor" = xsequent; then
9270 # Use $CC to link under sequent, because it throws in some extra .o
9271 # files that make .init and .fini sections work.
9272 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9274 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-L$libdir'
9278 hardcode_minus_L=yes
9279 hardcode_shlibpath_var=no
9283 case $host_vendor in
9285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286 hardcode_direct=yes # is this really true???
9289 ## LD is ld it makes a PLAMLIB
9290 ## CC just makes a GrossModule.
9291 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9292 reload_cmds='$CC -r -o $output$reload_objs'
9296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9300 runpath_var='LD_RUN_PATH'
9301 hardcode_shlibpath_var=no
9305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_shlibpath_var=no
9307 export_dynamic_flag_spec='-Bexport'
9311 if test -d /usr/nec; then
9312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_shlibpath_var=no
9314 runpath_var=LD_RUN_PATH
9315 hardcode_runpath_var=yes
9320 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9321 no_undefined_flag='${wl}-z,text'
9322 archive_cmds_need_lc=no
9323 hardcode_shlibpath_var=no
9324 runpath_var='LD_RUN_PATH'
9326 if test "$GCC" = yes; then
9327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 sysv5* | sco3.2v5* | sco5v6*)
9336 # Note: We can NOT use -z defs as we might desire, because we do not
9337 # link with -lc, and that would cause any symbols used from libc to
9338 # always be unresolved, which means just about no library would
9339 # ever link correctly. If we're not using GNU ld we use -z text
9340 # though, which does catch some bad symbols but isn't as heavy-handed
9342 no_undefined_flag='${wl}-z,text'
9343 allow_undefined_flag='${wl}-z,nodefs'
9344 archive_cmds_need_lc=no
9345 hardcode_shlibpath_var=no
9346 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9347 hardcode_libdir_separator=':'
9348 link_all_deplibs=yes
9349 export_dynamic_flag_spec='${wl}-Bexport'
9350 runpath_var='LD_RUN_PATH'
9352 if test "$GCC" = yes; then
9353 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9357 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_shlibpath_var=no
9372 if test x$host_vendor = xsni; then
9374 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9375 export_dynamic_flag_spec='${wl}-Blargedynsym'
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9382 $as_echo "$ld_shlibs" >&6; }
9383 test "$ld_shlibs" = no && can_build_shared=no
9385 with_gnu_ld=$with_gnu_ld
9402 # Do we need to explicitly link libc?
9404 case "x$archive_cmds_need_lc" in
9406 # Assume -lc should be added
9407 archive_cmds_need_lc=yes
9409 if test "$enable_shared" = yes && test "$GCC" = yes; then
9410 case $archive_cmds in
9412 # FIXME: we may have to deal with multi-command sequences.
9415 # Test whether the compiler implicitly links with -lc since on some
9416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9417 # to ld, don't add -lc before -lgcc.
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9420 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9421 $as_echo_n "(cached) " >&6
9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9427 (eval $ac_compile) 2>&5
9429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9430 test $ac_status = 0; } 2>conftest.err; then
9433 libobjs=conftest.$ac_objext
9435 wl=$lt_prog_compiler_wl
9436 pic_flag=$lt_prog_compiler_pic
9442 lt_save_allow_undefined_flag=$allow_undefined_flag
9443 allow_undefined_flag=
9444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9445 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9448 test $ac_status = 0; }
9450 lt_cv_archive_cmds_need_lc=no
9452 lt_cv_archive_cmds_need_lc=yes
9454 allow_undefined_flag=$lt_save_allow_undefined_flag
9456 cat conftest.err 1>&5
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9462 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9463 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9622 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9624 if test "$GCC" = yes; then
9626 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9627 *) lt_awk_arg="/^libraries:/" ;;
9630 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9631 *) lt_sed_strip_eq="s,=/,/,g" ;;
9633 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9634 case $lt_search_path_spec in
9636 # if the path contains ";" then we assume it to be the separator
9637 # otherwise default to the standard path separator (i.e. ":") - it is
9638 # assumed that no part of a normal pathname contains ";" but that should
9639 # okay in the real world where ";" in dirpaths is itself problematic.
9640 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9646 # Ok, now we have the path, separated by spaces, we can step through it
9647 # and add multilib dir if necessary.
9648 lt_tmp_lt_search_path_spec=
9649 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9650 for lt_sys_path in $lt_search_path_spec; do
9651 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9652 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9654 test -d "$lt_sys_path" && \
9655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9658 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9659 BEGIN {RS=" "; FS="/|\n";} {
9662 for (lt_i = NF; lt_i > 0; lt_i--) {
9663 if ($lt_i != "" && $lt_i != ".") {
9664 if ($lt_i == "..") {
9667 if (lt_count == 0) {
9668 lt_foo="/" $lt_i lt_foo;
9675 if (lt_foo != "") { lt_freq[lt_foo]++; }
9676 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9678 # AWK program above erroneously prepends '/' to C:/dos/paths
9681 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9682 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9684 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9689 libname_spec='lib$name'
9697 shlibpath_overrides_runpath=unknown
9699 dynamic_linker="$host_os ld.so"
9700 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9701 need_lib_prefix=unknown
9702 hardcode_into_libs=no
9704 # when you set need_version to no, make sure it does not cause -set_version
9705 # flags to be left without arguments
9706 need_version=unknown
9710 version_type=linux # correct to gnu/linux during the next big refactor
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9712 shlibpath_var=LIBPATH
9714 # AIX 3 has no versioning support, so we append a major version to the name.
9715 soname_spec='${libname}${release}${shared_ext}$major'
9719 version_type=linux # correct to gnu/linux during the next big refactor
9722 hardcode_into_libs=yes
9723 if test "$host_cpu" = ia64; then
9724 # AIX 5 supports IA64
9725 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9726 shlibpath_var=LD_LIBRARY_PATH
9728 # With GCC up to 2.95.x, collect2 would create an import file
9729 # for dependence libraries. The import file would start with
9730 # the line `#! .'. This would cause the generated library to
9731 # depend on `.', always an invalid library. This was fixed in
9732 # development snapshots of GCC prior to 3.0.
9734 aix4 | aix4.[01] | aix4.[01].*)
9735 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9737 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9744 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9745 # soname into executable. Probably we can add versioning support to
9746 # collect2, so additional links can be useful in future.
9747 if test "$aix_use_runtimelinking" = yes; then
9748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9749 # instead of lib<name>.a to let people know that these are not
9750 # typical AIX shared libraries.
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 # We preserve .a as extension for shared libraries through AIX4.2
9754 # and later when we are not doing run time linking.
9755 library_names_spec='${libname}${release}.a $libname.a'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LIBPATH
9765 # Since July 2007 AmigaOS4 officially supports .so libraries.
9766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 library_names_spec='$libname.ixlibrary $libname.a'
9771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9772 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9778 library_names_spec='${libname}${shared_ext}'
9779 dynamic_linker="$host_os ld.so"
9780 shlibpath_var=LIBRARY_PATH
9784 version_type=linux # correct to gnu/linux during the next big refactor
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9792 # the default ld.so.conf also contains /usr/contrib/lib and
9793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9794 # libtool to hard-code these into programs
9797 cygwin* | mingw* | pw32* | cegcc*)
9798 version_type=windows
9803 case $GCC,$cc_basename in
9806 library_names_spec='$libname.dll.a'
9807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9808 postinstall_cmds='base_file=`basename \${file}`~
9809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9810 dldir=$destdir/`dirname \$dlpath`~
9811 test -d \$dldir || mkdir -p \$dldir~
9812 $install_prog $dir/$dlname \$dldir/$dlname~
9813 chmod a+x \$dldir/$dlname~
9814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9818 dlpath=$dir/\$dldll~
9820 shlibpath_overrides_runpath=yes
9824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9830 # MinGW DLLs use traditional 'lib' prefix
9831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9834 # pw32 DLLs use 'pw' prefix rather than 'lib'
9835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9838 dynamic_linker='Win32 ld.exe'
9843 libname_spec='$name'
9844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9845 library_names_spec='${libname}.dll.lib'
9849 sys_lib_search_path_spec=
9855 # Let DOS variable expansion print the short 8.3 style file name.
9856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9860 # Convert to MSYS style.
9861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9864 # Convert to unix form, then to dos form, then back to unix form
9865 # but this time dos style (no spaces!) so that the unix form looks
9866 # like /cygdrive/c/PROGRA~1:/cygdr...
9867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9872 sys_lib_search_path_spec="$LIB"
9873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9874 # It is most probably a Windows format PATH.
9875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9879 # FIXME: find the short name or the path components, as spaces are
9880 # common. (e.g. "Program Files" -> "PROGRA~1")
9884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9885 postinstall_cmds='base_file=`basename \${file}`~
9886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9887 dldir=$destdir/`dirname \$dlpath`~
9888 test -d \$dldir || mkdir -p \$dldir~
9889 $install_prog $dir/$dlname \$dldir/$dlname'
9890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891 dlpath=$dir/\$dldll~
9893 shlibpath_overrides_runpath=yes
9894 dynamic_linker='Win32 link.exe'
9898 # Assume MSVC wrapper
9899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9900 dynamic_linker='Win32 ld.exe'
9903 # FIXME: first we should search . and the directory the executable is in
9907 darwin* | rhapsody*)
9908 dynamic_linker="$host_os dyld"
9912 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913 soname_spec='${libname}${release}${major}$shared_ext'
9914 shlibpath_overrides_runpath=yes
9915 shlibpath_var=DYLD_LIBRARY_PATH
9916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9923 version_type=linux # correct to gnu/linux during the next big refactor
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9931 freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9938 freebsd[23].*) objformat=aout ;;
9942 version_type=freebsd-$objformat
9943 case $version_type in
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9954 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9959 freebsd3.[01]* | freebsdelf3.[01]*)
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9968 *) # from 4.6 on, and DragonFly
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9976 version_type=linux # correct to gnu/linux during the next big refactor
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 shlibpath_overrides_runpath=no
9983 hardcode_into_libs=yes
9987 version_type=linux # correct to gnu/linux during the next big refactor
9990 dynamic_linker="$host_os runtime_loader"
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LIBRARY_PATH
9994 shlibpath_overrides_runpath=yes
9995 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9996 hardcode_into_libs=yes
9999 hpux9* | hpux10* | hpux11*)
10000 # Give a soname corresponding to the major version so that dld.sl refuses to
10001 # link against other versions.
10008 hardcode_into_libs=yes
10009 dynamic_linker="$host_os dld.so"
10010 shlibpath_var=LD_LIBRARY_PATH
10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 if test "X$HPUX_IA64_MODE" = X32; then
10015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 hardcode_into_libs=yes
10024 dynamic_linker="$host_os dld.sl"
10025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10034 dynamic_linker="$host_os dld.sl"
10035 shlibpath_var=SHLIB_PATH
10036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10041 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10042 postinstall_cmds='chmod 555 $lib'
10043 # or fails outright, so override atomically:
10044 install_override_mode=555
10048 version_type=linux # correct to gnu/linux during the next big refactor
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10054 shlibpath_var=LD_LIBRARY_PATH
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10059 irix5* | irix6* | nonstopux*)
10061 nonstopux*) version_type=nonstopux ;;
10063 if test "$lt_cv_prog_gnu_ld" = yes; then
10064 version_type=linux # correct to gnu/linux during the next big refactor
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10074 irix5* | nonstopux*)
10075 libsuff= shlibsuff=
10078 case $LD in # libtool.m4 will add one of these switches to LD
10079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10080 libsuff= shlibsuff= libmagic=32-bit;;
10081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10082 libsuff=32 shlibsuff=N32 libmagic=N32;;
10083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10084 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10085 *) libsuff= shlibsuff= libmagic=never-match;;
10089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10090 shlibpath_overrides_runpath=no
10091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10093 hardcode_into_libs=yes
10096 # No shared lib support for Linux oldld, aout, or coff.
10097 linux*oldld* | linux*aout* | linux*coff*)
10101 # This must be glibc/ELF.
10102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10103 version_type=linux # correct to gnu/linux during the next big refactor
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=no
10112 # Some binutils ld are patched to set DT_RUNPATH
10113 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10114 $as_echo_n "(cached) " >&6
10116 lt_cv_shlibpath_overrides_runpath=no
10117 save_LDFLAGS=$LDFLAGS
10118 save_libdir=$libdir
10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10134 lt_cv_shlibpath_overrides_runpath=yes
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 LDFLAGS=$save_LDFLAGS
10140 libdir=$save_libdir
10144 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10146 # This implies no fast_install, which is unacceptable.
10147 # Some rework will be needed to allow for fast_install
10148 # before this can be enabled.
10149 hardcode_into_libs=yes
10151 # Append ld.so.conf contents to the search path
10152 if test -f /etc/ld.so.conf; then
10153 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' ' '`
10154 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10157 # We used to test for /lib/ld.so.1 and disable shared libraries on
10158 # powerpc, because MkLinux only supported shared libraries with the
10159 # GNU dynamic linker. Since this was broken with cross compilers,
10160 # most powerpc-linux boxes support dynamic linking these days and
10161 # people can always --disable-shared, the test was removed, and we
10162 # assume the GNU/Linux dynamic linker is in use.
10163 dynamic_linker='GNU/Linux ld.so'
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 hardcode_into_libs=yes
10175 dynamic_linker='NetBSD ld.elf_so'
10182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10185 dynamic_linker='NetBSD (a.out) ld.so'
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 dynamic_linker='NetBSD ld.elf_so'
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes
10193 hardcode_into_libs=yes
10197 version_type=linux # correct to gnu/linux during the next big refactor
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=yes
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=no
10211 hardcode_into_libs=yes
10212 dynamic_linker='ldqnx.so'
10217 sys_lib_dlsearch_path_spec="/usr/lib"
10219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10222 *) need_version=no ;;
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10229 openbsd2.[89] | openbsd2.[89].*)
10230 shlibpath_overrides_runpath=no
10233 shlibpath_overrides_runpath=yes
10237 shlibpath_overrides_runpath=yes
10242 libname_spec='$name'
10245 library_names_spec='$libname${shared_ext} $libname.a'
10246 dynamic_linker='OS/2 ld.exe'
10247 shlibpath_var=LIBPATH
10250 osf3* | osf4* | osf5*)
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10266 version_type=linux # correct to gnu/linux during the next big refactor
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10274 # ldd complains unless libraries are executable
10275 postinstall_cmds='chmod +x $lib'
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 if test "$with_gnu_ld" = yes; then
10291 version_type=linux # correct to gnu/linux during the next big refactor
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 case $host_vendor in
10297 shlibpath_overrides_runpath=no
10299 runpath_var=LD_RUN_PATH
10307 shlibpath_overrides_runpath=no
10308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10314 if test -d /usr/nec ;then
10315 version_type=linux # correct to gnu/linux during the next big refactor
10316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10317 soname_spec='$libname${shared_ext}.$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10323 version_type=freebsd-elf
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10331 if test "$with_gnu_ld" = yes; then
10332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10341 sys_lib_dlsearch_path_spec='/usr/lib'
10345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10346 version_type=linux # correct to gnu/linux during the next big refactor
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=no
10352 hardcode_into_libs=yes
10356 version_type=linux # correct to gnu/linux during the next big refactor
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10367 $as_echo "$dynamic_linker" >&6; }
10368 test "$dynamic_linker" = no && can_build_shared=no
10370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10371 if test "$GCC" = yes; then
10372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10375 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10376 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10378 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10474 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10476 if test -n "$hardcode_libdir_flag_spec" ||
10477 test -n "$runpath_var" ||
10478 test "X$hardcode_automatic" = "Xyes" ; then
10480 # We can hardcode non-existent directories.
10481 if test "$hardcode_direct" != no &&
10482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10483 # have to relink, otherwise we might link with an installed library
10484 # when we should be linking with a yet-to-be-installed one
10485 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10486 test "$hardcode_minus_L" != no; then
10487 # Linking always hardcodes the temporary library directory.
10488 hardcode_action=relink
10490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10491 hardcode_action=immediate
10494 # We cannot hardcode anything, or else we can only hardcode existing
10496 hardcode_action=unsupported
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10499 $as_echo "$hardcode_action" >&6; }
10501 if test "$hardcode_action" = relink ||
10502 test "$inherit_rpath" = yes; then
10503 # Fast installation is not supported
10504 enable_fast_install=no
10505 elif test "$shlibpath_overrides_runpath" = yes ||
10506 test "$enable_shared" = no; then
10507 # Fast installation is not necessary
10508 enable_fast_install=needless
10516 if test "x$enable_dlopen" != xyes; then
10517 enable_dlopen=unknown
10518 enable_dlopen_self=unknown
10519 enable_dlopen_self_static=unknown
10526 lt_cv_dlopen="load_add_on"
10528 lt_cv_dlopen_self=yes
10531 mingw* | pw32* | cegcc*)
10532 lt_cv_dlopen="LoadLibrary"
10537 lt_cv_dlopen="dlopen"
10542 # if libdl is installed we need to link against it
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10544 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10545 if ${ac_cv_lib_dl_dlopen+:} false; then :
10546 $as_echo_n "(cached) " >&6
10548 ac_check_lib_save_LIBS=$LIBS
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10553 /* Override any GCC internal prototype to avoid an error.
10554 Use char because int might match the return type of a GCC
10555 builtin and then its argument prototype would still apply. */
10568 if ac_fn_c_try_link "$LINENO"; then :
10569 ac_cv_lib_dl_dlopen=yes
10571 ac_cv_lib_dl_dlopen=no
10573 rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10578 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10579 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10583 lt_cv_dlopen="dyld"
10585 lt_cv_dlopen_self=yes
10592 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10593 if test "x$ac_cv_func_shl_load" = xyes; then :
10594 lt_cv_dlopen="shl_load"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10597 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10598 if ${ac_cv_lib_dld_shl_load+:} false; then :
10599 $as_echo_n "(cached) " >&6
10601 ac_check_lib_save_LIBS=$LIBS
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10606 /* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
10616 return shl_load ();
10621 if ac_fn_c_try_link "$LINENO"; then :
10622 ac_cv_lib_dld_shl_load=yes
10624 ac_cv_lib_dld_shl_load=no
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10631 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10632 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10633 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10635 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10636 if test "x$ac_cv_func_dlopen" = xyes; then :
10637 lt_cv_dlopen="dlopen"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10641 if ${ac_cv_lib_dl_dlopen+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 ac_check_lib_save_LIBS=$LIBS
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10649 /* Override any GCC internal prototype to avoid an error.
10650 Use char because int might match the return type of a GCC
10651 builtin and then its argument prototype would still apply. */
10664 if ac_fn_c_try_link "$LINENO"; then :
10665 ac_cv_lib_dl_dlopen=yes
10667 ac_cv_lib_dl_dlopen=no
10669 rm -f core conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10676 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10679 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10680 if ${ac_cv_lib_svld_dlopen+:} false; then :
10681 $as_echo_n "(cached) " >&6
10683 ac_check_lib_save_LIBS=$LIBS
10684 LIBS="-lsvld $LIBS"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 ac_cv_lib_svld_dlopen=yes
10706 ac_cv_lib_svld_dlopen=no
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10713 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10714 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10715 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10718 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10719 if ${ac_cv_lib_dld_dld_link+:} false; then :
10720 $as_echo_n "(cached) " >&6
10722 ac_check_lib_save_LIBS=$LIBS
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10727 /* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10737 return dld_link ();
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 ac_cv_lib_dld_dld_link=yes
10745 ac_cv_lib_dld_dld_link=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10752 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10753 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10754 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10775 if test "x$lt_cv_dlopen" != xno; then
10781 case $lt_cv_dlopen in
10783 save_CPPFLAGS="$CPPFLAGS"
10784 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10786 save_LDFLAGS="$LDFLAGS"
10787 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10790 LIBS="$lt_cv_dlopen_libs $LIBS"
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10793 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10794 if ${lt_cv_dlopen_self+:} false; then :
10795 $as_echo_n "(cached) " >&6
10797 if test "$cross_compiling" = yes; then :
10798 lt_cv_dlopen_self=cross
10800 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10801 lt_status=$lt_dlunknown
10802 cat > conftest.$ac_ext <<_LT_EOF
10803 #line $LINENO "configure"
10804 #include "confdefs.h"
10813 # define LT_DLGLOBAL RTLD_GLOBAL
10816 # define LT_DLGLOBAL DL_GLOBAL
10818 # define LT_DLGLOBAL 0
10822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10823 find out it does not work in some platform. */
10824 #ifndef LT_DLLAZY_OR_NOW
10826 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10829 # define LT_DLLAZY_OR_NOW DL_LAZY
10832 # define LT_DLLAZY_OR_NOW RTLD_NOW
10835 # define LT_DLLAZY_OR_NOW DL_NOW
10837 # define LT_DLLAZY_OR_NOW 0
10844 /* When -fvisbility=hidden is used, assume the code has been annotated
10845 correspondingly for the symbols needed. */
10846 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10847 int fnord () __attribute__((visibility("default")));
10850 int fnord () { return 42; }
10853 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10854 int status = $lt_dlunknown;
10858 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10861 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10862 else puts (dlerror ());
10864 /* dlclose (self); */
10872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10873 (eval $ac_link) 2>&5
10875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10877 (./conftest; exit; ) >&5 2>/dev/null
10879 case x$lt_status in
10880 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10881 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10882 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10885 # compilation failed
10886 lt_cv_dlopen_self=no
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10894 $as_echo "$lt_cv_dlopen_self" >&6; }
10896 if test "x$lt_cv_dlopen_self" = xyes; then
10897 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10899 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10900 if ${lt_cv_dlopen_self_static+:} false; then :
10901 $as_echo_n "(cached) " >&6
10903 if test "$cross_compiling" = yes; then :
10904 lt_cv_dlopen_self_static=cross
10906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907 lt_status=$lt_dlunknown
10908 cat > conftest.$ac_ext <<_LT_EOF
10909 #line $LINENO "configure"
10910 #include "confdefs.h"
10919 # define LT_DLGLOBAL RTLD_GLOBAL
10922 # define LT_DLGLOBAL DL_GLOBAL
10924 # define LT_DLGLOBAL 0
10928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929 find out it does not work in some platform. */
10930 #ifndef LT_DLLAZY_OR_NOW
10932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10935 # define LT_DLLAZY_OR_NOW DL_LAZY
10938 # define LT_DLLAZY_OR_NOW RTLD_NOW
10941 # define LT_DLLAZY_OR_NOW DL_NOW
10943 # define LT_DLLAZY_OR_NOW 0
10950 /* When -fvisbility=hidden is used, assume the code has been annotated
10951 correspondingly for the symbols needed. */
10952 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10953 int fnord () __attribute__((visibility("default")));
10956 int fnord () { return 42; }
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968 else puts (dlerror ());
10970 /* dlclose (self); */
10978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10979 (eval $ac_link) 2>&5
10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10983 (./conftest; exit; ) >&5 2>/dev/null
10985 case x$lt_status in
10986 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10987 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10988 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10991 # compilation failed
10992 lt_cv_dlopen_self_static=no
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11000 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11003 CPPFLAGS="$save_CPPFLAGS"
11004 LDFLAGS="$save_LDFLAGS"
11009 case $lt_cv_dlopen_self in
11010 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11011 *) enable_dlopen_self=unknown ;;
11014 case $lt_cv_dlopen_self_static in
11015 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11016 *) enable_dlopen_self_static=unknown ;;
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11039 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11040 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11042 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11044 $as_echo "yes" >&6; }
11046 # FIXME - insert some real tests, host_os isn't really good enough
11049 if test -n "$STRIP" ; then
11050 striplib="$STRIP -x"
11051 old_striplib="$STRIP -S"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11053 $as_echo "yes" >&6; }
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11077 # Report which library types will actually be built
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11079 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11081 $as_echo "$can_build_shared" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11084 $as_echo_n "checking whether to build shared libraries... " >&6; }
11085 test "$can_build_shared" = "no" && enable_shared=no
11087 # On AIX, shared libraries and static libraries use the same namespace, and
11088 # are all built from PIC.
11091 test "$enable_shared" = yes && enable_static=no
11092 if test -n "$RANLIB"; then
11093 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11094 postinstall_cmds='$RANLIB $lib'
11099 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11100 test "$enable_shared" = yes && enable_static=no
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11105 $as_echo "$enable_shared" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11108 $as_echo_n "checking whether to build static libraries... " >&6; }
11109 # Make sure either enable_shared or enable_static is yes.
11110 test "$enable_shared" = yes || enable_static=yes
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11112 $as_echo "$enable_static" >&6; }
11119 ac_cpp='$CPP $CPPFLAGS'
11120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11140 ac_config_commands="$ac_config_commands libtool"
11145 # Only expand once:
11151 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11154 # Checks for programs.
11156 ac_cpp='$CPP $CPPFLAGS'
11157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11160 if test -n "$ac_tool_prefix"; then
11161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_prog_CC+:} false; then :
11166 $as_echo_n "(cached) " >&6
11168 if test -n "$CC"; then
11169 ac_cv_prog_CC="$CC" # Let the user override the test.
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 if test -n "$CC"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11191 $as_echo "$CC" >&6; }
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11199 if test -z "$ac_cv_prog_CC"; then
11201 # Extract the first word of "gcc", so it can be a program name with args.
11202 set dummy gcc; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11206 $as_echo_n "(cached) " >&6
11208 if test -n "$ac_ct_CC"; then
11209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_prog_ac_ct_CC="gcc"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11229 if test -n "$ac_ct_CC"; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11231 $as_echo "$ac_ct_CC" >&6; }
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11237 if test "x$ac_ct_CC" = x; then
11240 case $cross_compiling:$ac_tool_warned in
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11244 ac_tool_warned=yes ;;
11249 CC="$ac_cv_prog_CC"
11252 if test -z "$CC"; then
11253 if test -n "$ac_tool_prefix"; then
11254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11255 set dummy ${ac_tool_prefix}cc; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_prog_CC+:} false; then :
11259 $as_echo_n "(cached) " >&6
11261 if test -n "$CC"; then
11262 ac_cv_prog_CC="$CC" # Let the user override the test.
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271 ac_cv_prog_CC="${ac_tool_prefix}cc"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 if test -n "$CC"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11284 $as_echo "$CC" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11293 if test -z "$CC"; then
11294 # Extract the first word of "cc", so it can be a program name with args.
11295 set dummy cc; ac_word=$2
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297 $as_echo_n "checking for $ac_word... " >&6; }
11298 if ${ac_cv_prog_CC+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 if test -n "$CC"; then
11302 ac_cv_prog_CC="$CC" # Let the user override the test.
11304 ac_prog_rejected=no
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11313 ac_prog_rejected=yes
11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 if test $ac_prog_rejected = yes; then
11325 # We found a bogon in the path, so make sure we never use it.
11326 set dummy $ac_cv_prog_CC
11328 if test $# != 0; then
11329 # We chose a different compiler from the bogus one.
11330 # However, it has the same basename, so the bogon will be chosen
11331 # first if we set CC to just the basename; use the full file name.
11333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11339 if test -n "$CC"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11341 $as_echo "$CC" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11349 if test -z "$CC"; then
11350 if test -n "$ac_tool_prefix"; then
11351 for ac_prog in cl.exe
11353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_CC+:} false; then :
11358 $as_echo_n "(cached) " >&6
11360 if test -n "$CC"; then
11361 ac_cv_prog_CC="$CC" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 if test -n "$CC"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11383 $as_echo "$CC" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11390 test -n "$CC" && break
11393 if test -z "$CC"; then
11395 for ac_prog in cl.exe
11397 # Extract the first word of "$ac_prog", so it can be a program name with args.
11398 set dummy $ac_prog; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11402 $as_echo_n "(cached) " >&6
11404 if test -n "$ac_ct_CC"; then
11405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414 ac_cv_prog_ac_ct_CC="$ac_prog"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11425 if test -n "$ac_ct_CC"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11427 $as_echo "$ac_ct_CC" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11434 test -n "$ac_ct_CC" && break
11437 if test "x$ac_ct_CC" = x; then
11440 case $cross_compiling:$ac_tool_warned in
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11444 ac_tool_warned=yes ;;
11453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11455 as_fn_error $? "no acceptable C compiler found in \$PATH
11456 See \`config.log' for more details" "$LINENO" 5; }
11458 # Provide some information about the compiler.
11459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11462 for ac_option in --version -v -V -qversion; do
11463 { { ac_try="$ac_compiler $ac_option >&5"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11469 $as_echo "$ac_try_echo"; } >&5
11470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11472 if test -s conftest.err; then
11474 ... rest of stderr output deleted ...
11475 10q' conftest.err >conftest.er1
11476 cat conftest.er1 >&5
11478 rm -f conftest.er1 conftest.err
11479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480 test $ac_status = 0; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11484 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11485 if ${ac_cv_c_compiler_gnu+:} false; then :
11486 $as_echo_n "(cached) " >&6
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11502 if ac_fn_c_try_compile "$LINENO"; then :
11503 ac_compiler_gnu=yes
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11513 if test $ac_compiler_gnu = yes; then
11518 ac_test_CFLAGS=${CFLAGS+set}
11519 ac_save_CFLAGS=$CFLAGS
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11522 if ${ac_cv_prog_cc_g+:} false; then :
11523 $as_echo_n "(cached) " >&6
11525 ac_save_c_werror_flag=$ac_c_werror_flag
11526 ac_c_werror_flag=yes
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11540 if ac_fn_c_try_compile "$LINENO"; then :
11541 ac_cv_prog_cc_g=yes
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11555 if ac_fn_c_try_compile "$LINENO"; then :
11558 ac_c_werror_flag=$ac_save_c_werror_flag
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11571 if ac_fn_c_try_compile "$LINENO"; then :
11572 ac_cv_prog_cc_g=yes
11574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 ac_c_werror_flag=$ac_save_c_werror_flag
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11582 $as_echo "$ac_cv_prog_cc_g" >&6; }
11583 if test "$ac_test_CFLAGS" = set; then
11584 CFLAGS=$ac_save_CFLAGS
11585 elif test $ac_cv_prog_cc_g = yes; then
11586 if test "$GCC" = yes; then
11592 if test "$GCC" = yes; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11599 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11600 if ${ac_cv_prog_cc_c89+:} false; then :
11601 $as_echo_n "(cached) " >&6
11603 ac_cv_prog_cc_c89=no
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #include <stdarg.h>
11610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11611 struct buf { int x; };
11612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11613 static char *e (p, i)
11619 static char *f (char * (*g) (char **, int), char **p, ...)
11624 s = g (p, va_arg (v,int));
11629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11630 function prototypes and stuff, but not '\xHH' hex character constants.
11631 These don't provoke an error unfortunately, instead are silently treated
11632 as 'x'. The following induces an error, until -std is added to get
11633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11634 array size at least. It's necessary to write '\x00'==0 to get something
11635 that's true only with -std. */
11636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11639 inside strings and character constants. */
11641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11643 int test (int i, double x);
11644 struct s1 {int (*f) (int a);};
11645 struct s2 {int (*f) (double a);};
11646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11660 CC="$ac_save_CC $ac_arg"
11661 if ac_fn_c_try_compile "$LINENO"; then :
11662 ac_cv_prog_cc_c89=$ac_arg
11664 rm -f core conftest.err conftest.$ac_objext
11665 test "x$ac_cv_prog_cc_c89" != "xno" && break
11667 rm -f conftest.$ac_ext
11672 case "x$ac_cv_prog_cc_c89" in
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11675 $as_echo "none needed" >&6; } ;;
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11678 $as_echo "unsupported" >&6; } ;;
11680 CC="$CC $ac_cv_prog_cc_c89"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11684 if test "x$ac_cv_prog_cc_c89" != xno; then :
11689 ac_cpp='$CPP $CPPFLAGS'
11690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
11696 $as_echo_n "checking $CC dependency flag... " >&6; }
11697 echo 'void f(){}' >conftest.c
11698 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11701 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11704 DEPFLAG="-MM" # dunno do something
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
11708 $as_echo "$DEPFLAG" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11713 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11715 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11716 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11717 $as_echo_n "(cached) " >&6
11719 cat >conftest.make <<\_ACEOF
11722 @echo '@@@%%%=$(MAKE)=@@@%%%'
11724 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11725 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11726 *@@@%%%=?*=@@@%%%*)
11727 eval ac_cv_prog_make_${ac_make}_set=yes;;
11729 eval ac_cv_prog_make_${ac_make}_set=no;;
11731 rm -f conftest.make
11733 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11740 SET_MAKE="MAKE=${MAKE-make}"
11744 # Extra (sp)lint flags for NetBSD
11747 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
11749 *) LINTFLAGS="$LINTFLAGS"
11755 $as_echo "#define WINVER 0x0502" >>confdefs.h
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
11761 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
11762 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
11763 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11764 $as_echo_n "(cached) " >&6
11767 echo 'void f(void){}' >conftest.c
11768 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
11769 eval "cv_prog_cc_flag_$cache=yes"
11771 eval "cv_prog_cc_flag_$cache=no"
11773 rm -f conftest conftest.o conftest.c
11777 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779 $as_echo "yes" >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
11792 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
11793 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
11794 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11795 $as_echo_n "(cached) " >&6
11798 echo 'void f(void){}' >conftest.c
11799 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
11800 eval "cv_prog_cc_flag_$cache=yes"
11802 eval "cv_prog_cc_flag_$cache=no"
11804 rm -f conftest conftest.o conftest.c
11808 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810 $as_echo "yes" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11821 # routine to copy files
11822 # argument 1 is a list of files (relative to the source dir)
11823 # argument 2 is a destination directory (relative to the current
11824 # working directory
11827 # copy all .h files in the dir at argument 1
11828 # (relative to source) to the dir at argument 2
11829 # (relative to current dir)
11832 # Checks for typedefs, structures, and compiler characteristics.
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11834 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11835 if ${ac_cv_c_const+:} false; then :
11836 $as_echo_n "(cached) " >&6
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11845 #ifndef __cplusplus
11846 /* Ultrix mips cc rejects this sort of thing. */
11847 typedef int charset[2];
11848 const charset cs = { 0, 0 };
11849 /* SunOS 4.1.1 cc rejects this. */
11850 char const *const *pcpcc;
11852 /* NEC SVR4.0.2 mips cc rejects this. */
11853 struct point {int x, y;};
11854 static struct point const zero = {0,0};
11855 /* AIX XL C 1.02.0.0 rejects this.
11856 It does not let you subtract one const X* pointer from another in
11857 an arm of an if-expression whose if-part is not a constant
11859 const char *g = "string";
11860 pcpcc = &g + (g ? g-g : 0);
11861 /* HPUX 7.0 cc rejects these. */
11863 ppc = (char**) pcpcc;
11864 pcpcc = (char const *const *) ppc;
11865 { /* SCO 3.2v4 cc rejects this sort of thing. */
11868 char const *s = 0 ? (char *) 0 : (char const *) 0;
11873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11874 int x[] = {25, 17};
11875 const int *foo = &x[0];
11878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11879 typedef const int *iptr;
11883 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11885 struct s { int j; const int *ap[3]; } bx;
11886 struct s *b = &bx; b->j = 5;
11888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11889 const int foo = 10;
11890 if (!foo) return 0;
11892 return !cs[0] && !zero.x;
11899 if ac_fn_c_try_compile "$LINENO"; then :
11904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11907 $as_echo "$ac_cv_c_const" >&6; }
11908 if test $ac_cv_c_const = no; then
11910 $as_echo "#define const /**/" >>confdefs.h
11915 ac_cpp='$CPP $CPPFLAGS'
11916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920 if test "x$CFLAGS" = "x" ; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
11924 $as_echo_n "checking whether $CC supports -g... " >&6; }
11925 cache=`echo g | sed 'y%.=/+-%___p_%'`
11926 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11927 $as_echo_n "(cached) " >&6
11930 echo 'void f(void){}' >conftest.c
11931 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
11932 eval "cv_prog_cc_flag_$cache=yes"
11934 eval "cv_prog_cc_flag_$cache=no"
11936 rm -f conftest conftest.o conftest.c
11940 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942 $as_echo "yes" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
11955 $as_echo_n "checking whether $CC supports -O2... " >&6; }
11956 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
11957 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11958 $as_echo_n "(cached) " >&6
11961 echo 'void f(void){}' >conftest.c
11962 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
11963 eval "cv_prog_cc_flag_$cache=yes"
11965 eval "cv_prog_cc_flag_$cache=no"
11967 rm -f conftest conftest.o conftest.c
11971 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11975 CFLAGS="-O2 $CFLAGS"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11987 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
11988 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
11989 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11990 $as_echo_n "(cached) " >&6
11993 echo 'void f(void){}' >conftest.c
11994 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
11995 eval "cv_prog_cc_flag_$cache=yes"
11997 eval "cv_prog_cc_flag_$cache=no"
11999 rm -f conftest conftest.o conftest.c
12003 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12005 $as_echo "yes" >&6; }
12007 CFLAGS="-Wall $CFLAGS"
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
12018 $as_echo_n "checking whether $CC supports -W... " >&6; }
12019 cache=`echo W | sed 'y%.=/+-%___p_%'`
12020 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12021 $as_echo_n "(cached) " >&6
12024 echo 'void f(void){}' >conftest.c
12025 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12026 eval "cv_prog_cc_flag_$cache=yes"
12028 eval "cv_prog_cc_flag_$cache=no"
12030 rm -f conftest conftest.o conftest.c
12034 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12038 CFLAGS="-W $CFLAGS"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12049 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12050 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12051 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12052 $as_echo_n "(cached) " >&6
12055 echo 'void f(void){}' >conftest.c
12056 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12057 eval "cv_prog_cc_flag_$cache=yes"
12059 eval "cv_prog_cc_flag_$cache=no"
12061 rm -f conftest conftest.o conftest.c
12065 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067 $as_echo "yes" >&6; }
12069 CFLAGS="-Wwrite-strings $CFLAGS"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12080 $as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12081 cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12082 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12083 $as_echo_n "(cached) " >&6
12086 echo 'void f(void){}' >conftest.c
12087 if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12088 eval "cv_prog_cc_flag_$cache=yes"
12090 eval "cv_prog_cc_flag_$cache=no"
12092 rm -f conftest conftest.o conftest.c
12096 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; }
12100 CFLAGS="-Wstrict-prototypes $CFLAGS"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12110 for ac_header in getopt.h time.h
12112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12113 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12116 cat >>confdefs.h <<_ACEOF
12117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126 for ac_header in winsock2.h ws2tcpip.h
12128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12132 cat >>confdefs.h <<_ACEOF
12133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 # end mingw32 tests
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12146 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
12147 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
12148 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12149 $as_echo_n "(cached) " >&6
12152 echo 'void f(void){}' >conftest.c
12153 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12154 eval "cv_prog_cc_flag_$cache=yes"
12156 eval "cv_prog_cc_flag_$cache=no"
12158 rm -f conftest conftest.o conftest.c
12162 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12164 $as_echo "yes" >&6; }
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12177 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
12178 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12179 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12180 $as_echo_n "(cached) " >&6
12183 echo 'void f(void){}' >conftest.c
12184 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12185 eval "cv_prog_cc_flag_$cache=yes"
12187 eval "cv_prog_cc_flag_$cache=no"
12189 rm -f conftest conftest.o conftest.c
12193 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12195 $as_echo "yes" >&6; }
12197 ERRFLAG="$ERRFLAG -Wall"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12202 ERRFLAG="$ERRFLAG -errfmt"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12210 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12211 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12212 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12213 $as_echo_n "(cached) " >&6
12216 echo 'void f(void){}' >conftest.c
12217 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12218 eval "cv_prog_cc_flag_$cache=yes"
12220 eval "cv_prog_cc_flag_$cache=no"
12222 rm -f conftest conftest.o conftest.c
12226 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12228 $as_echo "yes" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12241 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
12242 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12243 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12244 $as_echo_n "(cached) " >&6
12247 echo 'void f(void){}' >conftest.c
12248 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12249 eval "cv_prog_cc_flag_$cache=yes"
12251 eval "cv_prog_cc_flag_$cache=no"
12253 rm -f conftest conftest.o conftest.c
12257 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259 $as_echo "yes" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12270 for ac_header in getopt.h time.h
12272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12276 cat >>confdefs.h <<_ACEOF
12277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
12289 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12290 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
12291 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12292 $as_echo_n "(cached) " >&6
12296 #include "confdefs.h"
12297 #include <stdlib.h>
12299 #include <sys/time.h>
12303 #include <unistd.h>
12305 #ifdef HAVE_GETOPT_H
12306 #include <getopt.h>
12311 char **opts = NULL;
12316 const char* str = NULL;
12318 msg.msg_control = 0;
12319 t = ctime_r(&time, buf);
12322 a = getopt(2, opts, "a");
12324 str = gai_strerror(0);
12325 if(str && t && tv.tv_usec && msg.msg_control)
12330 echo 'void f(){}' >>conftest.c
12331 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12332 eval "cv_prog_cc_flag_needed_$cache=no"
12335 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12336 eval "cv_prog_cc_flag_needed_$cache=yes"
12338 eval "cv_prog_cc_flag_needed_$cache=fail"
12339 #echo 'Test with flag fails too!'
12341 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12342 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12347 rm -f conftest conftest.c conftest.o
12351 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12353 $as_echo "yes" >&6; }
12355 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
12357 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12360 #echo 'Test with flag is no!'
12362 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12363 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12369 $as_echo "failed" >&6; }
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
12380 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
12381 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12382 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12383 $as_echo_n "(cached) " >&6
12387 #include "confdefs.h"
12388 #include <stdlib.h>
12390 #include <sys/time.h>
12394 #include <unistd.h>
12396 #ifdef HAVE_GETOPT_H
12397 #include <getopt.h>
12402 char **opts = NULL;
12407 const char* str = NULL;
12409 msg.msg_control = 0;
12410 t = ctime_r(&time, buf);
12413 a = getopt(2, opts, "a");
12415 str = gai_strerror(0);
12416 if(str && t && tv.tv_usec && msg.msg_control)
12421 echo 'void f(){}' >>conftest.c
12422 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12423 eval "cv_prog_cc_flag_needed_$cache=no"
12426 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12427 eval "cv_prog_cc_flag_needed_$cache=yes"
12429 eval "cv_prog_cc_flag_needed_$cache=fail"
12430 #echo 'Test with flag fails too!'
12432 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12433 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12438 rm -f conftest conftest.c conftest.o
12442 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444 $as_echo "yes" >&6; }
12446 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
12448 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12451 #echo 'Test with flag is no!'
12453 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
12454 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12460 $as_echo "failed" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
12471 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
12472 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
12473 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12474 $as_echo_n "(cached) " >&6
12478 #include <stdbool.h>
12485 echo 'void f(){}' >>conftest.c
12486 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12487 eval "cv_prog_cc_flag_needed_$cache=no"
12490 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
12491 eval "cv_prog_cc_flag_needed_$cache=yes"
12493 eval "cv_prog_cc_flag_needed_$cache=fail"
12494 #echo 'Test with flag fails too!'
12496 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12497 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12502 rm -f conftest conftest.c conftest.o
12506 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12508 $as_echo "yes" >&6; }
12510 CFLAGS="$CFLAGS $C99FLAG"
12512 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12515 #echo 'Test with flag is no!'
12517 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12518 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12524 $as_echo "failed" >&6; }
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
12535 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
12536 cache=_D_BSD_SOURCE
12537 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12538 $as_echo_n "(cached) " >&6
12550 echo 'void f(){}' >>conftest.c
12551 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12552 eval "cv_prog_cc_flag_needed_$cache=no"
12555 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12556 eval "cv_prog_cc_flag_needed_$cache=yes"
12558 eval "cv_prog_cc_flag_needed_$cache=fail"
12559 #echo 'Test with flag fails too!'
12561 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12562 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12567 rm -f conftest conftest.c conftest.o
12571 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 $as_echo "yes" >&6; }
12575 CFLAGS="$CFLAGS -D_BSD_SOURCE"
12577 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 #echo 'Test with flag is no!'
12582 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12583 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12589 $as_echo "failed" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
12600 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
12601 cache=_D_GNU_SOURCE
12602 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12603 $as_echo_n "(cached) " >&6
12607 #include <netinet/in.h>
12610 struct in6_pktinfo inf;
12611 int a = (int)sizeof(inf);
12615 echo 'void f(){}' >>conftest.c
12616 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12617 eval "cv_prog_cc_flag_needed_$cache=no"
12620 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12621 eval "cv_prog_cc_flag_needed_$cache=yes"
12623 eval "cv_prog_cc_flag_needed_$cache=fail"
12624 #echo 'Test with flag fails too!'
12626 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12627 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12632 rm -f conftest conftest.c conftest.o
12636 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12640 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12642 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 #echo 'Test with flag is no!'
12647 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12648 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12654 $as_echo "failed" >&6; }
12661 # check again for GNU_SOURCE for setresgid. May fail if setresgid
12662 # is not available at all. -D_FRSRESGID is to make this check unique.
12663 # otherwise we would get the previous cached result.
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
12668 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
12669 cache=_D_GNU_SOURCE__D_FRSRESGID
12670 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12671 $as_echo_n "(cached) " >&6
12675 #include <unistd.h>
12678 int a = setresgid(0,0,0);
12679 a = setresuid(0,0,0);
12683 echo 'void f(){}' >>conftest.c
12684 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12685 eval "cv_prog_cc_flag_needed_$cache=no"
12688 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
12689 eval "cv_prog_cc_flag_needed_$cache=yes"
12691 eval "cv_prog_cc_flag_needed_$cache=fail"
12692 #echo 'Test with flag fails too!'
12694 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12695 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12700 rm -f conftest conftest.c conftest.o
12704 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 $as_echo "yes" >&6; }
12708 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12710 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712 $as_echo "no" >&6; }
12713 #echo 'Test with flag is no!'
12715 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12716 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12722 $as_echo "failed" >&6; }
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
12733 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
12734 cache=_D_POSIX_C_SOURCE_200112
12735 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12736 $as_echo_n "(cached) " >&6
12740 #include "confdefs.h"
12751 const char* str = NULL;
12752 t = ctime_r(&time, buf);
12753 str = gai_strerror(0);
12759 echo 'void f(){}' >>conftest.c
12760 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12761 eval "cv_prog_cc_flag_needed_$cache=no"
12764 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
12765 eval "cv_prog_cc_flag_needed_$cache=yes"
12767 eval "cv_prog_cc_flag_needed_$cache=fail"
12768 #echo 'Test with flag fails too!'
12770 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12771 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12776 rm -f conftest conftest.c conftest.o
12780 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12782 $as_echo "yes" >&6; }
12784 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
12786 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 #echo 'Test with flag is no!'
12791 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12792 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12798 $as_echo "failed" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
12809 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
12810 cache=_D__EXTENSIONS__
12811 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12812 $as_echo_n "(cached) " >&6
12816 #include "confdefs.h"
12817 #include <stdlib.h>
12819 #include <sys/time.h>
12823 #include <unistd.h>
12824 #ifdef HAVE_GETOPT_H
12825 #include <getopt.h>
12830 char **opts = NULL;
12834 a = getopt(2, opts, "a");
12841 echo 'void f(){}' >>conftest.c
12842 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12843 eval "cv_prog_cc_flag_needed_$cache=no"
12846 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
12847 eval "cv_prog_cc_flag_needed_$cache=yes"
12849 eval "cv_prog_cc_flag_needed_$cache=fail"
12850 #echo 'Test with flag fails too!'
12852 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12853 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12858 rm -f conftest conftest.c conftest.o
12862 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12866 CFLAGS="$CFLAGS -D__EXTENSIONS__"
12868 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12871 #echo 'Test with flag is no!'
12873 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12874 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12880 $as_echo "failed" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12890 $as_echo_n "checking for inline... " >&6; }
12891 if ${ac_cv_c_inline+:} false; then :
12892 $as_echo_n "(cached) " >&6
12895 for ac_kw in inline __inline__ __inline; do
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 #ifndef __cplusplus
12900 static $ac_kw foo_t static_foo () {return 0; }
12901 $ac_kw foo_t foo () {return 0; }
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 ac_cv_c_inline=$ac_kw
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 test "$ac_cv_c_inline" != no && break
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12914 $as_echo "$ac_cv_c_inline" >&6; }
12916 case $ac_cv_c_inline in
12919 case $ac_cv_c_inline in
12921 *) ac_val=$ac_cv_c_inline;;
12923 cat >>confdefs.h <<_ACEOF
12924 #ifndef __cplusplus
12925 #define inline $ac_val
12931 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12932 if test "x$ac_cv_type_int8_t" = xyes; then :
12936 cat >>confdefs.h <<_ACEOF
12937 #define int8_t char
12942 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12943 if test "x$ac_cv_type_int16_t" = xyes; then :
12947 cat >>confdefs.h <<_ACEOF
12948 #define int16_t short
12953 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12954 if test "x$ac_cv_type_int32_t" = xyes; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define int32_t int
12964 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12965 if test "x$ac_cv_type_int64_t" = xyes; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define int64_t long long
12975 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12976 if test "x$ac_cv_type_uint8_t" = xyes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define uint8_t unsigned char
12986 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12987 if test "x$ac_cv_type_uint16_t" = xyes; then :
12991 cat >>confdefs.h <<_ACEOF
12992 #define uint16_t unsigned short
12997 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12998 if test "x$ac_cv_type_uint32_t" = xyes; then :
13002 cat >>confdefs.h <<_ACEOF
13003 #define uint32_t unsigned int
13008 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13009 if test "x$ac_cv_type_uint64_t" = xyes; then :
13013 cat >>confdefs.h <<_ACEOF
13014 #define uint64_t unsigned long long
13021 # Extract the first word of "doxygen", so it can be a program name with args.
13022 set dummy doxygen; ac_word=$2
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024 $as_echo_n "checking for $ac_word... " >&6; }
13025 if ${ac_cv_prog_doxygen+:} false; then :
13026 $as_echo_n "(cached) " >&6
13028 if test -n "$doxygen"; then
13029 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13038 ac_cv_prog_doxygen="doxygen"
13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 doxygen=$ac_cv_prog_doxygen
13049 if test -n "$doxygen"; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13051 $as_echo "$doxygen" >&6; }
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13059 # check to see if libraries are needed for these functions.
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13061 $as_echo_n "checking for library containing socket... " >&6; }
13062 if ${ac_cv_search_socket+:} false; then :
13063 $as_echo_n "(cached) " >&6
13065 ac_func_search_save_LIBS=$LIBS
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13069 /* Override any GCC internal prototype to avoid an error.
13070 Use char because int might match the return type of a GCC
13071 builtin and then its argument prototype would still apply. */
13084 for ac_lib in '' socket; do
13085 if test -z "$ac_lib"; then
13086 ac_res="none required"
13089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 ac_cv_search_socket=$ac_res
13094 rm -f core conftest.err conftest.$ac_objext \
13096 if ${ac_cv_search_socket+:} false; then :
13100 if ${ac_cv_search_socket+:} false; then :
13103 ac_cv_search_socket=no
13105 rm conftest.$ac_ext
13106 LIBS=$ac_func_search_save_LIBS
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13109 $as_echo "$ac_cv_search_socket" >&6; }
13110 ac_res=$ac_cv_search_socket
13111 if test "$ac_res" != no; then :
13112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13117 $as_echo_n "checking for library containing inet_pton... " >&6; }
13118 if ${ac_cv_search_inet_pton+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 ac_func_search_save_LIBS=$LIBS
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13135 return inet_pton ();
13140 for ac_lib in '' nsl; do
13141 if test -z "$ac_lib"; then
13142 ac_res="none required"
13145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13147 if ac_fn_c_try_link "$LINENO"; then :
13148 ac_cv_search_inet_pton=$ac_res
13150 rm -f core conftest.err conftest.$ac_objext \
13152 if ${ac_cv_search_inet_pton+:} false; then :
13156 if ${ac_cv_search_inet_pton+:} false; then :
13159 ac_cv_search_inet_pton=no
13161 rm conftest.$ac_ext
13162 LIBS=$ac_func_search_save_LIBS
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13165 $as_echo "$ac_cv_search_inet_pton" >&6; }
13166 ac_res=$ac_cv_search_inet_pton
13167 if test "$ac_res" != no; then :
13168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13175 # Check whether --with-drill was given.
13176 if test "${with_drill+set}" = set; then :
13177 withval=$with_drill;
13182 if test x_$with_drill != x_no ; then
13185 INSTALL_DRILL=install-drill
13187 UNINSTALL_DRILL=uninstall-drill
13189 CLEAN_DRILL=clean-drill
13191 LINT_DRILL=lint-drill
13193 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13195 A config.h was detected in the drill subdirectory.
13196 This does not work with the --with-drill option.
13197 Please remove the config.h from the drill subdirectory
13198 or do not use the --with-drill option." "$LINENO" 5
13200 DRILL_CONFIG=" drill/drill.1"
13217 # Check whether --with-examples was given.
13218 if test "${with_examples+set}" = set; then :
13219 withval=$with_examples;
13224 if test x_$with_examples != x_no ; then
13227 INSTALL_EXAMPLES=install-examples
13229 UNINSTALL_EXAMPLES=uninstall-examples
13231 CLEAN_EXAMPLES=clean-examples
13233 LINT_EXAMPLES=lint-examples
13235 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13237 A config.h was detected in the examples subdirectory.
13238 This does not work with the --with-examples option.
13239 Please remove the config.h from the examples subdirectory
13240 or do not use the --with-examples option." "$LINENO" 5
13242 EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1"
13246 INSTALL_EXAMPLES=""
13248 UNINSTALL_EXAMPLES=""
13257 # add option to disable installation of ldns-config script
13258 # Check whether --enable-ldns-config was given.
13259 if test "${enable_ldns_config+set}" = set; then :
13260 enableval=$enable_ldns_config; enable_ldns_config=$enableval
13262 enable_ldns_config=yes
13265 if test "x$enable_ldns_config" = xyes; then
13266 INSTALL_CONFIG=install-config
13268 INSTALL_CONFIG_MANPAGE=install-config-manpage
13270 UNINSTALL_CONFIG=uninstall-config
13272 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13277 INSTALL_CONFIG_MANPAGE=""
13279 UNINSTALL_CONFIG=""
13281 UNINSTALL_CONFIG_MANPAGE=""
13285 # add option to disable library printing to stderr
13286 # Check whether --enable-stderr-msgs was given.
13287 if test "${enable_stderr_msgs+set}" = set; then :
13288 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13290 enable_stderr_msgs=no
13293 case "$enable_stderr_msgs" in
13297 cat >>confdefs.h <<_ACEOF
13298 #define STDERR_MSGS 1
13306 ldns_with_pyldns=no
13307 ldns_with_pyldnsx=no
13309 # Check whether --with-pyldns was given.
13310 if test "${with_pyldns+set}" = set; then :
13311 withval=$with_pyldns;
13316 ldns_have_python=no
13317 if test x_$withval != x_no; then
13318 # ===========================================================================
13319 # http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13320 # ===========================================================================
13324 # AX_PYTHON_DEVEL([version])
13328 # Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
13329 # in your configure.ac.
13331 # This macro checks for Python and tries to get the include path to
13332 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
13333 # output variables. It also exports $(PYTHON_EXTRA_LIBS) and
13334 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
13336 # You can search for some particular version of Python by passing a
13337 # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
13338 # note that you *have* to pass also an operator along with the version to
13339 # match, and pay special attention to the single quotes surrounding the
13340 # version number. Don't use "PYTHON_VERSION" for this: that environment
13341 # variable is declared as precious and thus reserved for the end-user.
13343 # This macro should work for all versions of Python >= 2.1.0. As an end
13344 # user, you can disable the check for the python version by setting the
13345 # PYTHON_NOVERSIONCHECK environment variable to something else than the
13348 # If you need to use this macro for an older Python version, please
13349 # contact the authors. We're always open for feedback.
13353 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
13354 # Copyright (c) 2009 Alan W. Irwin
13355 # Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
13356 # Copyright (c) 2009 Andrew Collier
13357 # Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
13358 # Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
13359 # Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
13361 # This program is free software: you can redistribute it and/or modify it
13362 # under the terms of the GNU General Public License as published by the
13363 # Free Software Foundation, either version 3 of the License, or (at your
13364 # option) any later version.
13366 # This program is distributed in the hope that it will be useful, but
13367 # WITHOUT ANY WARRANTY; without even the implied warranty of
13368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13369 # Public License for more details.
13371 # You should have received a copy of the GNU General Public License along
13372 # with this program. If not, see <http://www.gnu.org/licenses/>.
13374 # As a special exception, the respective Autoconf Macro's copyright owner
13375 # gives unlimited permission to copy, distribute and modify the configure
13376 # scripts that are the output of Autoconf when processing the Macro. You
13377 # need not follow the terms of the GNU General Public License when using
13378 # or distributing such scripts, even though portions of the text of the
13379 # Macro appear in them. The GNU General Public License (GPL) does govern
13380 # all other use of the material that constitutes the Autoconf Macro.
13382 # This special exception to the GPL applies to versions of the Autoconf
13383 # Macro released by the Autoconf Archive. When you make and distribute a
13384 # modified version of the Autoconf Macro, you may extend this special
13385 # exception to the GPL to apply to your modified version as well.
13389 # This is what autoupdate's m4 run will expand. It fires
13390 # the warning (with _au_warn_XXX), outputs it into the
13391 # updated configure.ac (with AC_DIAGNOSE), and then outputs
13392 # the replacement expansion.
13395 # This is an auxiliary macro that is also run when
13396 # autoupdate runs m4. It simply calls m4_warning, but
13397 # we need a wrapper so that each warning is emitted only
13398 # once. We break the quoting in m4_warning's argument in
13399 # order to expand this macro's arguments, not AU_DEFUN's.
13402 # Finally, this is the expansion that is picked up by
13403 # autoconf. It tells the user to run autoupdate, and
13404 # then outputs the replacement expansion. We do not care
13405 # about autoupdate's warning because that contains
13406 # information on what to do *after* running autoupdate.
13410 ac_save_LIBS="$LIBS"
13413 # Allow the use of a (user set) custom python version
13417 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
13418 set dummy python$PYTHON_VERSION; ac_word=$2
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if ${ac_cv_path_PYTHON+:} false; then :
13422 $as_echo_n "(cached) " >&6
13426 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447 PYTHON=$ac_cv_path_PYTHON
13448 if test -n "$PYTHON"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13450 $as_echo "$PYTHON" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13457 if test -z "$PYTHON"; then
13458 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
13463 # Check for a version of Python >= 2.1.0
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
13466 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
13467 ac_supports_python_ver=`$PYTHON -c "import sys; \
13468 ver = sys.version.split ()[0]; \
13469 print (ver >= '2.1.0')"`
13470 if test "$ac_supports_python_ver" != "True"; then
13471 if test -z "$PYTHON_NOVERSIONCHECK"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13477 This version of the AC_PYTHON_DEVEL macro
13478 doesn't work properly with versions of Python before
13479 2.1.0. You may need to re-run configure, setting the
13480 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
13481 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
13482 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
13483 to something else than an empty string.
13485 See \`config.log' for more details" "$LINENO" 5; }
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
13488 $as_echo "skip at user request" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13492 $as_echo "yes" >&6; }
13496 # if the macro parameter ``version'' is set, honour it
13498 if test -n ">= '2.4.0'"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
13500 $as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
13501 ac_supports_python_ver=`$PYTHON -c "import sys; \
13502 ver = sys.version.split ()[0]; \
13503 print (ver >= '2.4.0')"`
13504 if test "$ac_supports_python_ver" = "True"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13506 $as_echo "yes" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13510 as_fn_error $? "this package requires Python >= '2.4.0'.
13511 If you have it installed, but it isn't the default Python
13512 interpreter in your system path, please pass the PYTHON_VERSION
13513 variable to configure. See \`\`configure --help'' for reference.
13520 # Check if you have distutils, else fail
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
13523 $as_echo_n "checking for the distutils Python package... " >&6; }
13524 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
13525 if test -z "$ac_distutils_result"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527 $as_echo "yes" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 as_fn_error $? "cannot import Python module \"distutils\".
13532 Please check your Python installation. The error was:
13533 $ac_distutils_result" "$LINENO" 5
13538 # Check for Python include path
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
13541 $as_echo_n "checking for Python include path... " >&6; }
13542 if test -z "$PYTHON_CPPFLAGS"; then
13543 python_path=`$PYTHON -c "import distutils.sysconfig; \
13544 print (distutils.sysconfig.get_python_inc ());"`
13545 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
13546 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
13547 if test -n "${python_path}"; then
13548 if test "${plat_python_path}" != "${python_path}"; then
13549 python_path="-I$python_path -I$plat_python_path"
13551 python_path="-I$python_path"
13554 PYTHON_CPPFLAGS=$python_path
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
13557 $as_echo "$PYTHON_CPPFLAGS" >&6; }
13561 # Check for Python library path
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
13564 $as_echo_n "checking for Python library path... " >&6; }
13565 if test -z "$PYTHON_LDFLAGS"; then
13566 # (makes two attempts to ensure we've got a version number
13567 # from the interpreter)
13568 ac_python_version=`cat<<EOD | $PYTHON -
13570 # join all versioning strings, on some systems
13571 # major/minor numbers could be in different list elements
13572 from distutils.sysconfig import *
13573 e = get_config_var('VERSION')
13578 if test -z "$ac_python_version"; then
13579 if test -n "$PYTHON_VERSION"; then
13580 ac_python_version=$PYTHON_VERSION
13582 ac_python_version=`$PYTHON -c "import sys; \
13583 print (sys.version[:3])"`
13587 # Make the versioning information available to the compiler
13589 cat >>confdefs.h <<_ACEOF
13590 #define HAVE_PYTHON "$ac_python_version"
13594 # First, the library directory:
13595 ac_python_libdir=`cat<<EOD | $PYTHON -
13597 # There should be only one
13598 import distutils.sysconfig
13599 e = distutils.sysconfig.get_config_var('LIBDIR')
13604 # Now, for the library:
13605 ac_python_library=`cat<<EOD | $PYTHON -
13607 import distutils.sysconfig
13608 c = distutils.sysconfig.get_config_vars()
13609 if 'LDVERSION' in c:
13610 print ('python'+c['LDVERSION'])
13612 print ('python'+c['VERSION'])
13615 # This small piece shamelessly adapted from PostgreSQL python macro;
13616 # credits goes to momjian, I think. I'd like to put the right name
13617 # in the credits, if someone can point me in the right direction... ?
13619 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
13621 # use the official shared library
13622 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
13623 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
13625 # old way: use libpython from python_configdir
13626 ac_python_libdir=`$PYTHON -c \
13627 "from distutils.sysconfig import get_python_lib as f; \
13629 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
13630 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
13633 if test -z "PYTHON_LDFLAGS"; then
13635 Cannot determine location of your Python DSO. Please check it was installed with
13636 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
13641 $as_echo "$PYTHON_LDFLAGS" >&6; }
13645 # Check for site packages
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
13648 $as_echo_n "checking for Python site-packages path... " >&6; }
13649 if test -z "$PYTHON_SITE_PKG"; then
13650 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
13651 print (distutils.sysconfig.get_python_lib(1,0));"`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
13654 $as_echo "$PYTHON_SITE_PKG" >&6; }
13658 # libraries which must be linked in when embedding
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
13661 $as_echo_n "checking python extra libraries... " >&6; }
13662 if test -z "$PYTHON_EXTRA_LIBS"; then
13663 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
13664 conf = distutils.sysconfig.get_config_var; \
13665 print (conf('LIBS'))"`
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
13668 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
13672 # linking flags needed when embedding
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
13675 $as_echo_n "checking python extra linking flags... " >&6; }
13676 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
13677 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
13678 conf = distutils.sysconfig.get_config_var; \
13679 print (conf('LINKFORSHARED'))"`
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
13682 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
13686 # final check to see if everything compiles alright
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
13689 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
13690 # save current global flags
13691 ac_save_LIBS="$LIBS"
13692 ac_save_CPPFLAGS="$CPPFLAGS"
13693 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
13694 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
13696 ac_cpp='$CPP $CPPFLAGS'
13697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #include <Python.h>
13714 if ac_fn_c_try_link "$LINENO"; then :
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13727 # turn back to default flags
13728 CPPFLAGS="$ac_save_CPPFLAGS"
13729 LIBS="$ac_save_LIBS"
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
13732 $as_echo "$pythonexists" >&6; }
13734 if test ! "x$pythonexists" = "xyes"; then
13735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13738 Could not link test program to Python. Maybe the main Python library has been
13739 installed in some non-standard library path. If so, pass it to configure,
13740 via the LDFLAGS environment variable.
13741 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
13742 ============================================================================
13744 You probably have to install the development version of the Python package
13745 for your distribution. The exact name of this package varies among them.
13746 ============================================================================
13748 See \`config.log' for more details" "$LINENO" 5; }
13756 if test ! -z "$ac_python_version"; then
13757 ldns_have_python=yes
13760 # pass additional Python 3 option to SWIG
13761 if test `$PYTHON -c "import sys; \
13762 ver = sys.version.split()[0]; \
13763 print(ver >= '3')"` = "True"; then
13764 SWIGPY3="-py3 -DPY3"
13769 if test x_$ldns_have_python != x_no; then
13770 # ===========================================================================
13771 # http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
13772 # ===========================================================================
13776 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
13780 # This macro searches for a SWIG installation on your system. If found,
13781 # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is
13782 # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
13784 # You can use the optional first argument to check if the version of the
13785 # available SWIG is greater than or equal to the value of the argument. It
13786 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
13787 # the first N is mandatory.) If the version argument is given (e.g.
13788 # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number
13791 # As usual, action-if-found is executed if SWIG is found, otherwise
13792 # action-if-not-found is executed.
13794 # In configure.in, use as:
13796 # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
13797 # AX_SWIG_ENABLE_CXX
13798 # AX_SWIG_MULTI_MODULE_SUPPORT
13803 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
13804 # Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
13805 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
13806 # Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
13807 # Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
13809 # This program is free software; you can redistribute it and/or modify it
13810 # under the terms of the GNU General Public License as published by the
13811 # Free Software Foundation; either version 2 of the License, or (at your
13812 # option) any later version.
13814 # This program is distributed in the hope that it will be useful, but
13815 # WITHOUT ANY WARRANTY; without even the implied warranty of
13816 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13817 # Public License for more details.
13819 # You should have received a copy of the GNU General Public License along
13820 # with this program. If not, see <http://www.gnu.org/licenses/>.
13822 # As a special exception, the respective Autoconf Macro's copyright owner
13823 # gives unlimited permission to copy, distribute and modify the configure
13824 # scripts that are the output of Autoconf when processing the Macro. You
13825 # need not follow the terms of the GNU General Public License when using
13826 # or distributing such scripts, even though portions of the text of the
13827 # Macro appear in them. The GNU General Public License (GPL) does govern
13828 # all other use of the material that constitutes the Autoconf Macro.
13830 # This special exception to the GPL applies to versions of the Autoconf
13831 # Macro released by the Autoconf Archive. When you make and distribute a
13832 # modified version of the Autoconf Macro, you may extend this special
13833 # exception to the GPL to apply to your modified version as well.
13840 # check for >=SWIG-2.0.4 if Python 3.2 used
13841 if test `$PYTHON -c "import sys; \
13842 ver = sys.version.split()[0]; \
13843 print(ver >= '3.2')"` = "True"; then
13845 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13846 for ac_prog in swig2.0 swig
13848 # Extract the first word of "$ac_prog", so it can be a program name with args.
13849 set dummy $ac_prog; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_path_SWIG+:} false; then :
13853 $as_echo_n "(cached) " >&6
13857 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861 for as_dir in $PATH
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 SWIG=$ac_cv_path_SWIG
13879 if test -n "$SWIG"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13881 $as_echo "$SWIG" >&6; }
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13888 test -n "$SWIG" && break
13891 if test -z "$SWIG" ; then
13892 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13893 elif test -n "2.0.4" ; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13895 $as_echo_n "checking SWIG version... " >&6; }
13896 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'`
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13898 $as_echo "$swig_version" >&6; }
13899 if test -n "$swig_version" ; then
13900 # Calculate the required version number components
13902 required_major=`echo $required | sed 's/[^0-9].*//'`
13903 if test -z "$required_major" ; then
13906 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13907 required_minor=`echo $required | sed 's/[^0-9].*//'`
13908 if test -z "$required_minor" ; then
13911 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13912 required_patch=`echo $required | sed 's/[^0-9].*//'`
13913 if test -z "$required_patch" ; then
13916 # Calculate the available version number components
13917 available=$swig_version
13918 available_major=`echo $available | sed 's/[^0-9].*//'`
13919 if test -z "$available_major" ; then
13922 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13923 available_minor=`echo $available | sed 's/[^0-9].*//'`
13924 if test -z "$available_minor" ; then
13927 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13928 available_patch=`echo $available | sed 's/[^0-9].*//'`
13929 if test -z "$available_patch" ; then
13932 # Convert the version tuple into a single number for easier comparison.
13933 # Using base 100 should be safe since SWIG internally uses BCD values
13934 # to encode its version number.
13935 required_swig_vernum=`expr $required_major \* 10000 \
13936 \+ $required_minor \* 100 \+ $required_patch`
13937 available_swig_vernum=`expr $available_major \* 10000 \
13938 \+ $available_minor \* 100 \+ $available_patch`
13940 if test $available_swig_vernum -lt $required_swig_vernum; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5
13942 $as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;}
13944 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
13947 $as_echo_n "checking for SWIG library... " >&6; }
13948 SWIG_LIB=`$SWIG -swiglib`
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
13950 $as_echo "$SWIG_LIB" >&6; }
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
13955 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
13957 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13964 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13965 for ac_prog in swig2.0 swig
13967 # Extract the first word of "$ac_prog", so it can be a program name with args.
13968 set dummy $ac_prog; ac_word=$2
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13970 $as_echo_n "checking for $ac_word... " >&6; }
13971 if ${ac_cv_path_SWIG+:} false; then :
13972 $as_echo_n "(cached) " >&6
13976 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13980 for as_dir in $PATH
13983 test -z "$as_dir" && as_dir=.
13984 for ac_exec_ext in '' $ac_executable_extensions; do
13985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13986 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13997 SWIG=$ac_cv_path_SWIG
13998 if test -n "$SWIG"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14000 $as_echo "$SWIG" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14007 test -n "$SWIG" && break
14010 if test -z "$SWIG" ; then
14012 elif test -n "" ; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
14014 $as_echo_n "checking SWIG version... " >&6; }
14015 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'`
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14017 $as_echo "$swig_version" >&6; }
14018 if test -n "$swig_version" ; then
14019 # Calculate the required version number components
14021 required_major=`echo $required | sed 's/[^0-9].*//'`
14022 if test -z "$required_major" ; then
14025 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14026 required_minor=`echo $required | sed 's/[^0-9].*//'`
14027 if test -z "$required_minor" ; then
14030 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14031 required_patch=`echo $required | sed 's/[^0-9].*//'`
14032 if test -z "$required_patch" ; then
14035 # Calculate the available version number components
14036 available=$swig_version
14037 available_major=`echo $available | sed 's/[^0-9].*//'`
14038 if test -z "$available_major" ; then
14041 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14042 available_minor=`echo $available | sed 's/[^0-9].*//'`
14043 if test -z "$available_minor" ; then
14046 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14047 available_patch=`echo $available | sed 's/[^0-9].*//'`
14048 if test -z "$available_patch" ; then
14051 # Convert the version tuple into a single number for easier comparison.
14052 # Using base 100 should be safe since SWIG internally uses BCD values
14053 # to encode its version number.
14054 required_swig_vernum=`expr $required_major \* 10000 \
14055 \+ $required_minor \* 100 \+ $required_patch`
14056 available_swig_vernum=`expr $available_major \* 10000 \
14057 \+ $available_minor \* 100 \+ $available_patch`
14059 if test $available_swig_vernum -lt $required_swig_vernum; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
14061 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14066 $as_echo_n "checking for SWIG library... " >&6; }
14067 SWIG_LIB=`$SWIG -swiglib`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14069 $as_echo "$SWIG_LIB" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14074 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14083 if test ! -x "$SWIG"; then
14084 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14087 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
14093 ldns_with_pyldns=yes
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14097 $as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14100 # xtra cflags for pyldns
14101 if test x_$ldns_have_python != x_no; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14105 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14106 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14107 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14108 $as_echo_n "(cached) " >&6
14111 echo 'void f(void){}' >conftest.c
14112 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14113 eval "cv_prog_cc_flag_$cache=yes"
14115 eval "cv_prog_cc_flag_$cache=no"
14117 rm -f conftest conftest.o conftest.c
14121 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14123 $as_echo "yes" >&6; }
14125 PYTHON_X_CFLAGS="-fno-strict-aliasing"
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14136 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14137 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14138 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14139 $as_echo_n "(cached) " >&6
14142 echo 'void f(void){}' >conftest.c
14143 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14144 eval "cv_prog_cc_flag_$cache=yes"
14146 eval "cv_prog_cc_flag_$cache=no"
14148 rm -f conftest conftest.o conftest.c
14152 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 $as_echo "yes" >&6; }
14156 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14167 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14168 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14169 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14170 $as_echo_n "(cached) " >&6
14173 echo 'void f(void){}' >conftest.c
14174 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14175 eval "cv_prog_cc_flag_$cache=yes"
14177 eval "cv_prog_cc_flag_$cache=no"
14179 rm -f conftest conftest.o conftest.c
14183 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185 $as_echo "yes" >&6; }
14187 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "no" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14198 $as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14199 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14200 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14201 $as_echo_n "(cached) " >&6
14204 echo 'void f(void){}' >conftest.c
14205 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14206 eval "cv_prog_cc_flag_$cache=yes"
14208 eval "cv_prog_cc_flag_$cache=no"
14210 rm -f conftest conftest.o conftest.c
14214 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14216 $as_echo "yes" >&6; }
14218 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14230 # Check for pyldnsx
14232 # Check whether --with-pyldnsx was given.
14233 if test "${with_pyldnsx+set}" = set; then :
14234 withval=$with_pyldnsx;
14236 withval="with_pyldns"
14239 if test x_$withval != x_no; then
14240 if test x_$ldns_with_pyldns != x_no; then
14243 ldns_with_pyldnsx=yes
14245 if test x_$withval != x_with_pyldns; then
14246 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14251 if test x_$ldns_with_pyldns != x_no; then
14252 PYLDNSINST="install-pyldns"
14253 PYLDNSUNINST="uninstall-pyldns"
14260 if test x_$ldns_with_pyldnsx != x_no; then
14261 PYLDNSXINST="install-pyldnsx"
14262 PYLDNSXUNINST="uninstall-pyldnsx"
14271 ldns_with_p5_dns_ldns=no
14273 # Check whether --with-p5-dns-ldns was given.
14274 if test "${with_p5_dns_ldns+set}" = set; then :
14275 withval=$with_p5_dns_ldns;
14281 if test x_$withval != x_no; then
14282 # Extract the first word of "perl", so it can be a program name with args.
14283 set dummy perl; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_path_PERL+:} false; then :
14287 $as_echo_n "(cached) " >&6
14291 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14298 test -z "$as_dir" && as_dir=.
14299 for ac_exec_ext in '' $ac_executable_extensions; do
14300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14301 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14312 PERL=$ac_cv_path_PERL
14313 if test -n "$PERL"; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14315 $as_echo "$PERL" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14322 if test -z "$PERL"; then
14323 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
14325 P5_DNS_LDNS="p5-dns-ldns"
14326 TEST_P5_DNS_LDNS="test-p5-dns-ldns"
14327 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
14328 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
14329 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
14333 TEST_P5_DNS_LDNS=""
14334 INSTALL_P5_DNS_LDNS=""
14335 UNINSTALL_P5_DNS_LDNS=""
14336 CLEAN_P5_DNS_LDNS=""
14342 # skip these tests, we do not need them.
14351 # always use ./libtool unless override from commandline (libtool=mylibtool)
14352 if test -z "$libtool"; then
14353 libtool="./libtool"
14356 # avoid libtool max commandline length test on systems that fork slowly.
14358 if echo "$host_os" | grep "sunos4" >/dev/null; then
14359 lt_cv_sys_max_cmd_len=32750;
14361 if test -n "$ac_tool_prefix"; then
14362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14363 set dummy ${ac_tool_prefix}ar; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if ${ac_cv_path_AR+:} false; then :
14367 $as_echo_n "(cached) " >&6
14371 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14381 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14393 if test -n "$AR"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14395 $as_echo "$AR" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14403 if test -z "$ac_cv_path_AR"; then
14405 # Extract the first word of "ar", so it can be a program name with args.
14406 set dummy ar; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if ${ac_cv_path_ac_pt_AR+:} false; then :
14410 $as_echo_n "(cached) " >&6
14414 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418 for as_dir in $PATH
14421 test -z "$as_dir" && as_dir=.
14422 for ac_exec_ext in '' $ac_executable_extensions; do
14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
14425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 ac_pt_AR=$ac_cv_path_ac_pt_AR
14436 if test -n "$ac_pt_AR"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
14438 $as_echo "$ac_pt_AR" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14444 if test "x$ac_pt_AR" = x; then
14447 case $cross_compiling:$ac_tool_warned in
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14451 ac_tool_warned=yes ;;
14456 AR="$ac_cv_path_AR"
14459 if test $AR = false; then
14460 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
14468 tmp_CPPFLAGS=$CPPFLAGS
14469 tmp_LDFLAGS=$LDFLAGS
14474 # Check whether --with-ssl was given.
14475 if test "${with_ssl+set}" = set; then :
14486 if test x_$withval != x_no; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
14488 $as_echo_n "checking for SSL... " >&6; }
14489 if test x_$withval = x_ -o x_$withval = x_yes; then
14490 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
14492 for dir in $withval; do
14494 if test -f "$dir/include/openssl/ssl.h"; then
14497 cat >>confdefs.h <<_ACEOF
14498 #define HAVE_SSL /**/
14501 if test "$ssldir" != "/usr"; then
14502 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
14503 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
14508 if test x_$found_ssl != x_yes; then
14509 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
14512 $as_echo "found in $ssldir" >&6; }
14514 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
14515 LDFLAGS="$LDFLAGS -L$ssldir/lib"
14516 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
14518 if test "x$enable_rpath" = xyes; then
14519 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
14520 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
14527 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
14528 LIBS="$LIBS -lcrypto"
14529 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14537 int HMAC_CTX_init(void);
14538 (void)HMAC_CTX_init();
14544 if ac_fn_c_try_link "$LINENO"; then :
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14547 $as_echo "yes" >&6; }
14549 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14556 # check if -lwsock32 or -lgdi32 are needed.
14558 BAKSSLLIBS="$LIBSSL_LIBS"
14559 LIBS="$LIBS -lgdi32"
14560 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
14562 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14570 int HMAC_CTX_init(void);
14571 (void)HMAC_CTX_init();
14577 if ac_fn_c_try_link "$LINENO"; then :
14580 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14583 $as_echo "yes" >&6; }
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14588 $as_echo "no" >&6; }
14590 LIBSSL_LIBS="$BAKSSLLIBS"
14592 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
14594 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14602 int HMAC_CTX_init(void);
14603 (void)HMAC_CTX_init();
14609 if ac_fn_c_try_link "$LINENO"; then :
14612 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14615 $as_echo "yes" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
14624 rm -f core conftest.err conftest.$ac_objext \
14625 conftest$ac_exeext conftest.$ac_ext
14628 rm -f core conftest.err conftest.$ac_objext \
14629 conftest$ac_exeext conftest.$ac_ext
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14637 # openssl engine functionality needs dlopen().
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14640 $as_echo_n "checking for library containing dlopen... " >&6; }
14641 if ${ac_cv_search_dlopen+:} false; then :
14642 $as_echo_n "(cached) " >&6
14644 ac_func_search_save_LIBS=$LIBS
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14648 /* Override any GCC internal prototype to avoid an error.
14649 Use char because int might match the return type of a GCC
14650 builtin and then its argument prototype would still apply. */
14663 for ac_lib in '' dl; do
14664 if test -z "$ac_lib"; then
14665 ac_res="none required"
14668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14670 if ac_fn_c_try_link "$LINENO"; then :
14671 ac_cv_search_dlopen=$ac_res
14673 rm -f core conftest.err conftest.$ac_objext \
14675 if ${ac_cv_search_dlopen+:} false; then :
14679 if ${ac_cv_search_dlopen+:} false; then :
14682 ac_cv_search_dlopen=no
14684 rm conftest.$ac_ext
14685 LIBS=$ac_func_search_save_LIBS
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14688 $as_echo "$ac_cv_search_dlopen" >&6; }
14689 ac_res=$ac_cv_search_dlopen
14690 if test "$ac_res" != no; then :
14691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14695 if test "$LIBS" != "$BAKLIBS"; then
14696 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14699 for ac_header in openssl/ssl.h
14701 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
14703 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14704 cat >>confdefs.h <<_ACEOF
14705 #define HAVE_OPENSSL_SSL_H 1
14712 for ac_header in openssl/err.h
14714 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
14716 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_OPENSSL_ERR_H 1
14725 for ac_header in openssl/rand.h
14727 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
14729 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_OPENSSL_RAND_H 1
14741 for ac_func in EVP_sha256
14743 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
14744 if test "x$ac_cv_func_EVP_sha256" = xyes; then :
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_EVP_SHA256 1
14753 # for macosx, see if glibtool exists and use that
14754 # BSD's need to know the version...
14755 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
14756 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
14758 # Check whether --enable-sha2 was given.
14759 if test "${enable_sha2+set}" = set; then :
14760 enableval=$enable_sha2;
14763 case "$enable_sha2" in
14767 if test "x$HAVE_SSL" != "xyes"; then
14768 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
14771 $as_echo_n "checking for SHA256 and SHA512... " >&6; }
14772 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
14773 if test "x$ac_cv_func_SHA256_Init" = xyes; then :
14777 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
14782 cat >>confdefs.h <<_ACEOF
14789 # Check whether --enable-gost was given.
14790 if test "${enable_gost+set}" = set; then :
14791 enableval=$enable_gost;
14794 case "$enable_gost" in
14797 *) if test "x$HAVE_SSL" != "xyes"; then
14798 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
14801 $as_echo_n "checking for GOST... " >&6; }
14802 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
14803 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
14806 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
14809 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
14810 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
14813 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
14817 cat >>confdefs.h <<_ACEOF
14824 # Check whether --enable-ecdsa was given.
14825 if test "${enable_ecdsa+set}" = set; then :
14826 enableval=$enable_ecdsa;
14829 case "$enable_ecdsa" in
14832 *) if test "x$HAVE_SSL" != "xyes"; then
14833 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
14835 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
14836 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
14839 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14842 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
14843 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
14846 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14849 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
14850 #include <openssl/evp.h>
14853 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
14862 if test $ac_have_decl = 1; then :
14865 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14867 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
14868 #include <openssl/evp.h>
14871 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
14877 cat >>confdefs.h <<_ACEOF
14878 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
14880 if test $ac_have_decl = 1; then :
14883 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14886 # we now know we have ECDSA and the required curves.
14888 cat >>confdefs.h <<_ACEOF
14889 #define USE_ECDSA 1
14895 # Check whether --enable-dane was given.
14896 if test "${enable_dane+set}" = set; then :
14897 enableval=$enable_dane;
14900 case "$enable_dane" in
14902 ldns_build_config_use_dane=0
14905 *) if test "x$HAVE_SSL" != "xyes"; then
14906 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
14908 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
14909 if test "x$ac_cv_func_X509_check_ca" = xyes; then :
14912 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
14916 cat >>confdefs.h <<_ACEOF
14920 ldns_build_config_use_dane=1
14925 # Check whether --enable-rrtype-ninfo was given.
14926 if test "${enable_rrtype_ninfo+set}" = set; then :
14927 enableval=$enable_rrtype_ninfo;
14930 case "$enable_rrtype_ninfo" in
14933 cat >>confdefs.h <<_ACEOF
14934 #define RRTYPE_NINFO /**/
14941 # Check whether --enable-rrtype-rkey was given.
14942 if test "${enable_rrtype_rkey+set}" = set; then :
14943 enableval=$enable_rrtype_rkey;
14946 case "$enable_rrtype_rkey" in
14949 cat >>confdefs.h <<_ACEOF
14950 #define RRTYPE_RKEY /**/
14957 # Check whether --enable-rrtype-cds was given.
14958 if test "${enable_rrtype_cds+set}" = set; then :
14959 enableval=$enable_rrtype_cds;
14962 case "$enable_rrtype_cds" in
14965 cat >>confdefs.h <<_ACEOF
14966 #define RRTYPE_CDS /**/
14973 # Check whether --enable-rrtype-uri was given.
14974 if test "${enable_rrtype_uri+set}" = set; then :
14975 enableval=$enable_rrtype_uri;
14978 case "$enable_rrtype_uri" in
14981 cat >>confdefs.h <<_ACEOF
14982 #define RRTYPE_URI /**/
14989 # Check whether --enable-rrtype-ta was given.
14990 if test "${enable_rrtype_ta+set}" = set; then :
14991 enableval=$enable_rrtype_ta;
14994 case "$enable_rrtype_ta" in
14997 cat >>confdefs.h <<_ACEOF
14998 #define RRTYPE_TA /**/
15009 if test "x$HAVE_SSL" = "xyes"; then
15010 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
15013 CPPFLAGS=$tmp_CPPFLAGS
15014 LDFLAGS=$tmp_LDFLAGS
15018 # add option to disable the evil rpath
15020 # Check whether --enable-rpath was given.
15021 if test "${enable_rpath+set}" = set; then :
15022 enableval=$enable_rpath; enable_rpath=$enableval
15027 if test "x$enable_rpath" = xno; then
15028 ac_config_commands="$ac_config_commands disable-rpath"
15033 #AC_RUN_IFELSE([AC_LANG_SOURCE(
15038 #char *cp = (char*)&one;
15045 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
15048 # should define WORDS_BIGENDIAN if the system is big-endian
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15050 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15051 if ${ac_cv_c_bigendian+:} false; then :
15052 $as_echo_n "(cached) " >&6
15054 ac_cv_c_bigendian=unknown
15055 # See if we're dealing with a universal compiler.
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #ifndef __APPLE_CC__
15059 not a universal capable compiler
15064 if ac_fn_c_try_compile "$LINENO"; then :
15066 # Check for potential -arch flags. It is not universal unless
15067 # there are at least two -arch flags with different values.
15070 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15071 if test -n "$ac_prev"; then
15073 i?86 | x86_64 | ppc | ppc64)
15074 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15077 ac_cv_c_bigendian=universal
15083 elif test "x$ac_word" = "x-arch"; then
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 if test $ac_cv_c_bigendian = unknown; then
15090 # See if sys/param.h defines the BYTE_ORDER macro.
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #include <sys/types.h>
15094 #include <sys/param.h>
15099 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15102 bogus endian macros
15109 if ac_fn_c_try_compile "$LINENO"; then :
15110 # It does; now see whether it defined to BIG_ENDIAN or not.
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 #include <sys/types.h>
15114 #include <sys/param.h>
15119 #if BYTE_ORDER != BIG_ENDIAN
15127 if ac_fn_c_try_compile "$LINENO"; then :
15128 ac_cv_c_bigendian=yes
15130 ac_cv_c_bigendian=no
15132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 if test $ac_cv_c_bigendian = unknown; then
15137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <limits.h>
15145 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15146 bogus endian macros
15153 if ac_fn_c_try_compile "$LINENO"; then :
15154 # It does; now see whether it defined to _BIG_ENDIAN or not.
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <limits.h>
15162 #ifndef _BIG_ENDIAN
15170 if ac_fn_c_try_compile "$LINENO"; then :
15171 ac_cv_c_bigendian=yes
15173 ac_cv_c_bigendian=no
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15179 if test $ac_cv_c_bigendian = unknown; then
15180 # Compile a test program.
15181 if test "$cross_compiling" = yes; then :
15182 # Try to guess by grepping values from an object file.
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 short int ascii_mm[] =
15186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15187 short int ascii_ii[] =
15188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15189 int use_ascii (int i) {
15190 return ascii_mm[i] + ascii_ii[i];
15192 short int ebcdic_ii[] =
15193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15194 short int ebcdic_mm[] =
15195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15196 int use_ebcdic (int i) {
15197 return ebcdic_mm[i] + ebcdic_ii[i];
15204 return use_ascii (foo) == use_ebcdic (foo);
15209 if ac_fn_c_try_compile "$LINENO"; then :
15210 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15211 ac_cv_c_bigendian=yes
15213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15214 if test "$ac_cv_c_bigendian" = unknown; then
15215 ac_cv_c_bigendian=no
15217 # finding both strings is unlikely to happen, but who knows?
15218 ac_cv_c_bigendian=unknown
15222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15226 $ac_includes_default
15231 /* Are we little or big endian? From Harbison&Steele. */
15235 char c[sizeof (long int)];
15238 return u.c[sizeof (long int) - 1] == 1;
15244 if ac_fn_c_try_run "$LINENO"; then :
15245 ac_cv_c_bigendian=no
15247 ac_cv_c_bigendian=yes
15249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15250 conftest.$ac_objext conftest.beam conftest.$ac_ext
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15256 $as_echo "$ac_cv_c_bigendian" >&6; }
15257 case $ac_cv_c_bigendian in #(
15259 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15265 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15269 as_fn_error $? "unknown endianness
15270 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15274 # Checks for header files.
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15276 $as_echo_n "checking for ANSI C header files... " >&6; }
15277 if ${ac_cv_header_stdc+:} false; then :
15278 $as_echo_n "(cached) " >&6
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282 #include <stdlib.h>
15283 #include <stdarg.h>
15284 #include <string.h>
15295 if ac_fn_c_try_compile "$LINENO"; then :
15296 ac_cv_header_stdc=yes
15298 ac_cv_header_stdc=no
15300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 if test $ac_cv_header_stdc = yes; then
15303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 #include <string.h>
15309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15310 $EGREP "memchr" >/dev/null 2>&1; then :
15313 ac_cv_header_stdc=no
15319 if test $ac_cv_header_stdc = yes; then
15320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 #include <stdlib.h>
15326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15327 $EGREP "free" >/dev/null 2>&1; then :
15330 ac_cv_header_stdc=no
15336 if test $ac_cv_header_stdc = yes; then
15337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15338 if test "$cross_compiling" = yes; then :
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15344 #include <stdlib.h>
15345 #if ((' ' & 0x0FF) == 0x020)
15346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15349 # define ISLOWER(c) \
15350 (('a' <= (c) && (c) <= 'i') \
15351 || ('j' <= (c) && (c) <= 'r') \
15352 || ('s' <= (c) && (c) <= 'z'))
15353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15361 for (i = 0; i < 256; i++)
15362 if (XOR (islower (i), ISLOWER (i))
15363 || toupper (i) != TOUPPER (i))
15368 if ac_fn_c_try_run "$LINENO"; then :
15371 ac_cv_header_stdc=no
15373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15374 conftest.$ac_objext conftest.beam conftest.$ac_ext
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15380 $as_echo "$ac_cv_header_stdc" >&6; }
15381 if test $ac_cv_header_stdc = yes; then
15383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15388 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15389 if ${ac_cv_header_stdbool_h+:} false; then :
15390 $as_echo_n "(cached) " >&6
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15395 #include <stdbool.h>
15397 "error: bool is not defined"
15400 "error: false is not defined"
15403 "error: false is not 0"
15406 "error: true is not defined"
15409 "error: true is not 1"
15411 #ifndef __bool_true_false_are_defined
15412 "error: __bool_true_false_are_defined is not defined"
15415 struct s { _Bool s: 1; _Bool t; } s;
15417 char a[true == 1 ? 1 : -1];
15418 char b[false == 0 ? 1 : -1];
15419 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15420 char d[(bool) 0.5 == true ? 1 : -1];
15421 /* See body of main program for 'e'. */
15422 char f[(_Bool) 0.0 == false ? 1 : -1];
15424 char h[sizeof (_Bool)];
15425 char i[sizeof s.t];
15426 enum { j = false, k = true, l = false * true, m = true * 256 };
15427 /* The following fails for
15428 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15430 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15431 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15432 /* Catch a bug in an HP-UX C compiler. See
15433 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15434 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15446 /* Refer to every declared value, to avoid compiler optimizations. */
15447 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15448 + !m + !n + !o + !p + !q + !pq);
15454 if ac_fn_c_try_compile "$LINENO"; then :
15455 ac_cv_header_stdbool_h=yes
15457 ac_cv_header_stdbool_h=no
15459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15462 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15463 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15464 if test "x$ac_cv_type__Bool" = xyes; then :
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE__BOOL 1
15474 if test $ac_cv_header_stdbool_h = yes; then
15476 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15480 #AC_HEADER_SYS_WAIT
15481 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
15482 # do the very minimum - we can always extend this
15483 for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
15485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15489 cat >>confdefs.h <<_ACEOF
15490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15497 for ac_header in sys/param.h sys/mount.h
15499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15500 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15502 #if HAVE_SYS_PARAM_H
15503 # include <sys/param.h>
15508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15509 cat >>confdefs.h <<_ACEOF
15510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15517 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15519 #if HAVE_SYS_PARAM_H
15520 # include <sys/param.h>
15525 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15527 include_sys_socket_h='#include <sys/socket.h>'
15529 $as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15534 include_sys_socket_h=''
15540 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
15543 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15545 include_inttypes_h='#include <inttypes.h>'
15547 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
15549 ldns_build_config_have_inttypes_h=1
15554 include_inttypes_h=''
15555 ldns_build_config_have_inttypes_h=0
15562 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
15565 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15567 include_systypes_h='#include <sys/types.h>'
15569 $as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15574 include_systypes_h=''
15580 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
15583 if test "x$ac_cv_header_unistd_h" = xyes; then :
15585 include_unistd_h='#include <unistd.h>'
15587 $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
15592 include_unistd_h=''
15599 # The cast to long int works around a bug in the HP C Compiler
15600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15602 # This bug is HP SR number 8606223364.
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15604 $as_echo_n "checking size of time_t... " >&6; }
15605 if ${ac_cv_sizeof_time_t+:} false; then :
15606 $as_echo_n "(cached) " >&6
15608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15609 $ac_includes_default
15610 #ifdef TIME_WITH_SYS_TIME
15611 # include <sys/time.h>
15614 # ifdef HAVE_SYS_TIME_H
15615 # include <sys/time.h>
15624 if test "$ac_cv_type_time_t" = yes; then
15625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627 as_fn_error 77 "cannot compute sizeof (time_t)
15628 See \`config.log' for more details" "$LINENO" 5; }
15630 ac_cv_sizeof_time_t=0
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15636 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15640 cat >>confdefs.h <<_ACEOF
15641 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15646 if test x_$with_examples != x_no; then
15647 for ac_header in pcap.h
15649 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
15651 if test "x$ac_cv_header_pcap_h" = xyes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_PCAP_H 1
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
15661 $as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
15662 if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
15663 $as_echo_n "(cached) " >&6
15665 ac_check_lib_save_LIBS=$LIBS
15666 LIBS="-lpcap $LIBS"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15676 char pcap_open_offline ();
15680 return pcap_open_offline ();
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 ac_cv_lib_pcap_pcap_open_offline=yes
15688 ac_cv_lib_pcap_pcap_open_offline=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 LIBS=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
15695 $as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
15696 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
15699 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
15700 LIBPCAP_LIBS=-lpcap
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
15706 $as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
15711 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
15713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15715 $ac_includes_default
15716 #ifdef HAVE_NETINET_IN_SYSTM_H
15717 #include <netinet/in_systm.h>
15719 #ifdef HAVE_NETINET_IN_H
15720 #include <netinet/in.h>
15722 #ifdef HAVE_SYS_SOCKET_H
15723 #include <sys/socket.h>
15725 #ifdef HAVE_NET_IF_H
15726 #include <net/if.h>
15729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15730 cat >>confdefs.h <<_ACEOF
15731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15741 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15742 $ac_includes_default
15743 #ifdef HAVE_SYS_SOCKET_H
15744 # include <sys/socket.h>
15746 #ifdef HAVE_WS2TCPIP_H
15747 # include <ws2tcpip.h>
15751 if test "x$ac_cv_type_socklen_t" = xyes; then :
15755 $as_echo "#define socklen_t int" >>confdefs.h
15759 if test "x$ac_cv_type_socklen_t" = xyes; then
15760 ldns_build_config_have_socklen_t=1
15763 ldns_build_config_have_socklen_t=0
15766 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15767 if test "x$ac_cv_type_size_t" = xyes; then :
15771 cat >>confdefs.h <<_ACEOF
15772 #define size_t unsigned int
15777 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15778 if test "x$ac_cv_type_ssize_t" = xyes; then :
15782 cat >>confdefs.h <<_ACEOF
15783 #define ssize_t int
15788 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15789 if test "x$ac_cv_type_intptr_t" = xyes; then :
15793 cat >>confdefs.h <<_ACEOF
15794 #define intptr_t size_t
15799 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15800 #if HAVE_SYS_TYPES_H
15801 # include <sys/types.h>
15803 #if HAVE_NETINET_IN_H
15804 # include <netinet/in.h>
15807 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15811 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15815 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15816 #if HAVE_SYS_TYPES_H
15817 # include <sys/types.h>
15819 #if HAVE_NETINET_IN_H
15820 # include <netinet/in.h>
15823 if test "x$ac_cv_type_in_port_t" = xyes; then :
15827 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15831 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
15832 #ifdef HAVE_NETINET_IN_H
15833 #include <netinet/in.h>
15835 #ifdef HAVE_SYS_SOCKET_H
15836 #include <sys/socket.h>
15838 #ifdef HAVE_NETDB_H
15841 #ifdef HAVE_ARPA_INET_H
15842 #include <arpa/inet.h>
15846 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15850 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
15851 #ifdef HAVE_NETINET_IN_H
15852 #include <netinet/in.h>
15854 #ifdef HAVE_SYS_SOCKET_H
15855 #include <sys/socket.h>
15857 #ifdef HAVE_NETDB_H
15860 #ifdef HAVE_ARPA_INET_H
15861 #include <arpa/inet.h>
15865 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15868 $as_echo "#define ss_family __ss_family" >>confdefs.h
15877 for ac_header in stdlib.h
15879 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15880 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_STDLIB_H 1
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15890 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15891 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15892 $as_echo_n "(cached) " >&6
15894 if test "$cross_compiling" = yes; then :
15895 ac_cv_func_malloc_0_nonnull=no
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15900 # include <stdlib.h>
15908 return ! malloc (0);
15913 if ac_fn_c_try_run "$LINENO"; then :
15914 ac_cv_func_malloc_0_nonnull=yes
15916 ac_cv_func_malloc_0_nonnull=no
15918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15919 conftest.$ac_objext conftest.beam conftest.$ac_ext
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15924 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15925 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15927 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15930 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15932 case " $LIBOBJS " in
15933 *" malloc.$ac_objext "* ) ;;
15934 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15939 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15944 for ac_header in stdlib.h
15946 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15947 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15948 cat >>confdefs.h <<_ACEOF
15949 #define HAVE_STDLIB_H 1
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15957 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15958 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15959 $as_echo_n "(cached) " >&6
15961 if test "$cross_compiling" = yes; then :
15962 ac_cv_func_realloc_0_nonnull=no
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15967 # include <stdlib.h>
15975 return ! realloc (0, 0);
15980 if ac_fn_c_try_run "$LINENO"; then :
15981 ac_cv_func_realloc_0_nonnull=yes
15983 ac_cv_func_realloc_0_nonnull=no
15985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15986 conftest.$ac_objext conftest.beam conftest.$ac_ext
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15991 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15992 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15994 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15997 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15999 case " $LIBOBJS " in
16000 *" realloc.$ac_objext "* ) ;;
16001 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16006 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16012 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
16013 if test "x$ac_cv_func_b64_pton" = xyes; then :
16014 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
16017 case " $LIBOBJS " in
16018 *" b64_pton.$ac_objext "* ) ;;
16019 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
16026 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
16027 if test "x$ac_cv_func_b64_ntop" = xyes; then :
16028 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
16031 case " $LIBOBJS " in
16032 *" b64_ntop.$ac_objext "* ) ;;
16033 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
16040 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
16041 if test "x$ac_cv_func_calloc" = xyes; then :
16042 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
16045 case " $LIBOBJS " in
16046 *" calloc.$ac_objext "* ) ;;
16047 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
16054 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
16055 if test "x$ac_cv_func_timegm" = xyes; then :
16056 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
16059 case " $LIBOBJS " in
16060 *" timegm.$ac_objext "* ) ;;
16061 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
16068 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16069 if test "x$ac_cv_func_gmtime_r" = xyes; then :
16070 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16073 case " $LIBOBJS " in
16074 *" gmtime_r.$ac_objext "* ) ;;
16075 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
16082 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
16083 if test "x$ac_cv_func_ctime_r" = xyes; then :
16084 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
16087 case " $LIBOBJS " in
16088 *" ctime_r.$ac_objext "* ) ;;
16089 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
16096 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16097 if test "x$ac_cv_func_localtime_r" = xyes; then :
16098 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16101 case " $LIBOBJS " in
16102 *" localtime_r.$ac_objext "* ) ;;
16103 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
16110 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
16111 if test "x$ac_cv_func_isblank" = xyes; then :
16112 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16115 case " $LIBOBJS " in
16116 *" isblank.$ac_objext "* ) ;;
16117 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16124 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
16125 if test "x$ac_cv_func_isascii" = xyes; then :
16126 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
16129 case " $LIBOBJS " in
16130 *" isascii.$ac_objext "* ) ;;
16131 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
16138 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16139 if test "x$ac_cv_func_inet_aton" = xyes; then :
16140 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16143 case " $LIBOBJS " in
16144 *" inet_aton.$ac_objext "* ) ;;
16145 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
16152 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16153 if test "x$ac_cv_func_inet_pton" = xyes; then :
16154 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
16157 case " $LIBOBJS " in
16158 *" inet_pton.$ac_objext "* ) ;;
16159 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
16166 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16167 if test "x$ac_cv_func_inet_ntop" = xyes; then :
16168 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
16171 case " $LIBOBJS " in
16172 *" inet_ntop.$ac_objext "* ) ;;
16173 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
16180 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16181 if test "x$ac_cv_func_snprintf" = xyes; then :
16182 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16185 case " $LIBOBJS " in
16186 *" snprintf.$ac_objext "* ) ;;
16187 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16194 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16195 if test "x$ac_cv_func_strlcpy" = xyes; then :
16196 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16199 case " $LIBOBJS " in
16200 *" strlcpy.$ac_objext "* ) ;;
16201 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16208 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16209 if test "x$ac_cv_func_memmove" = xyes; then :
16210 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
16213 case " $LIBOBJS " in
16214 *" memmove.$ac_objext "* ) ;;
16215 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
16222 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16223 if test "x$ac_cv_type_pid_t" = xyes; then :
16227 cat >>confdefs.h <<_ACEOF
16233 for ac_header in vfork.h
16235 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16236 if test "x$ac_cv_header_vfork_h" = xyes; then :
16237 cat >>confdefs.h <<_ACEOF
16238 #define HAVE_VFORK_H 1
16245 for ac_func in fork vfork
16247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16250 cat >>confdefs.h <<_ACEOF
16251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16257 if test "x$ac_cv_func_fork" = xyes; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16259 $as_echo_n "checking for working fork... " >&6; }
16260 if ${ac_cv_func_fork_works+:} false; then :
16261 $as_echo_n "(cached) " >&6
16263 if test "$cross_compiling" = yes; then :
16264 ac_cv_func_fork_works=cross
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 $ac_includes_default
16273 /* By Ruediger Kuhlmann. */
16274 return fork () < 0;
16280 if ac_fn_c_try_run "$LINENO"; then :
16281 ac_cv_func_fork_works=yes
16283 ac_cv_func_fork_works=no
16285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16286 conftest.$ac_objext conftest.beam conftest.$ac_ext
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16291 $as_echo "$ac_cv_func_fork_works" >&6; }
16294 ac_cv_func_fork_works=$ac_cv_func_fork
16296 if test "x$ac_cv_func_fork_works" = xcross; then
16298 *-*-amigaos* | *-*-msdosdjgpp*)
16299 # Override, as these systems have only a dummy fork() stub
16300 ac_cv_func_fork_works=no
16303 ac_cv_func_fork_works=yes
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16307 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16309 ac_cv_func_vfork_works=$ac_cv_func_vfork
16310 if test "x$ac_cv_func_vfork" = xyes; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16312 $as_echo_n "checking for working vfork... " >&6; }
16313 if ${ac_cv_func_vfork_works+:} false; then :
16314 $as_echo_n "(cached) " >&6
16316 if test "$cross_compiling" = yes; then :
16317 ac_cv_func_vfork_works=cross
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 /* Thanks to Paul Eggert for this test. */
16322 $ac_includes_default
16323 #include <sys/wait.h>
16324 #ifdef HAVE_VFORK_H
16325 # include <vfork.h>
16327 /* On some sparc systems, changes by the child to local and incoming
16328 argument registers are propagated back to the parent. The compiler
16329 is told about this with #include <vfork.h>, but some compilers
16330 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16331 static variable whose address is put into a register that is
16332 clobbered by the vfork. */
16335 sparc_address_test (int arg)
16337 sparc_address_test (arg) int arg;
16340 static pid_t child;
16358 pid_t parent = getpid ();
16361 sparc_address_test (0);
16366 /* Here is another test for sparc vfork register problems. This
16367 test uses lots of local variables, at least as many local
16368 variables as main has allocated so far including compiler
16369 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16370 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16371 reuse the register of parent for one of the local variables,
16372 since it will think that parent can't possibly be used any more
16373 in this routine. Assigning to the local variable will thus
16374 munge parent in the parent process. */
16376 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16377 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16378 /* Convince the compiler that p..p7 are live; otherwise, it might
16379 use the same hardware register for all 8 local variables. */
16380 if (p != p1 || p != p2 || p != p3 || p != p4
16381 || p != p5 || p != p6 || p != p7)
16384 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16385 from child file descriptors. If the child closes a descriptor
16386 before it execs or exits, this munges the parent's descriptor
16387 as well. Test for this by closing stdout in the child. */
16388 _exit(close(fileno(stdout)) != 0);
16393 while (wait(&status) != child)
16396 /* Was there some problem with vforking? */
16399 /* Did the child fail? (This shouldn't happen.) */
16402 /* Did the vfork/compiler bug occur? */
16403 || parent != getpid()
16405 /* Did the file descriptor bug occur? */
16406 || fstat(fileno(stdout), &st) != 0
16411 if ac_fn_c_try_run "$LINENO"; then :
16412 ac_cv_func_vfork_works=yes
16414 ac_cv_func_vfork_works=no
16416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16417 conftest.$ac_objext conftest.beam conftest.$ac_ext
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16422 $as_echo "$ac_cv_func_vfork_works" >&6; }
16425 if test "x$ac_cv_func_fork_works" = xcross; then
16426 ac_cv_func_vfork_works=$ac_cv_func_vfork
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16428 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16431 if test "x$ac_cv_func_vfork_works" = xyes; then
16433 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16437 $as_echo "#define vfork fork" >>confdefs.h
16440 if test "x$ac_cv_func_fork_works" = xyes; then
16442 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16446 for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
16448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16450 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16451 cat >>confdefs.h <<_ACEOF
16452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 if test "x$HAVE_B32_NTOP" = "xyes"; then
16459 ldns_build_config_have_b32_ntop=1
16462 ldns_build_config_have_b32_ntop=0
16465 if test "x$HAVE_B32_PTON" = "xyes"; then
16466 ldns_build_config_have_b32_pton=1
16469 ldns_build_config_have_b32_pton=0
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16475 $as_echo_n "checking for getaddrinfo... " >&6; }
16476 ac_cv_func_getaddrinfo=no
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16484 char* getaddrinfo();
16485 char* (*f) () = getaddrinfo;
16495 if ac_fn_c_try_link "$LINENO"; then :
16496 ac_cv_func_getaddrinfo="yes"
16497 if test "$ac_cv_header_windows_h" = "yes"; then
16499 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16502 LIBS="$LIBS -lws2_32"
16507 LIBS="$LIBS -lws2_32"
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16511 #ifdef HAVE_WS2TCPIP_H
16512 #include <ws2tcpip.h>
16519 (void)getaddrinfo(NULL, NULL, NULL, NULL);
16526 if ac_fn_c_try_link "$LINENO"; then :
16528 ac_cv_func_getaddrinfo="yes"
16530 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16536 ac_cv_func_getaddrinfo="no"
16540 rm -f core conftest.err conftest.$ac_objext \
16541 conftest$ac_exeext conftest.$ac_ext
16544 rm -f core conftest.err conftest.$ac_objext \
16545 conftest$ac_exeext conftest.$ac_ext
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
16548 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
16549 if test $ac_cv_func_getaddrinfo = yes; then
16551 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16555 if test $ac_cv_func_getaddrinfo = no; then
16556 case " $LIBOBJS " in
16557 *" fake-rfc2553.$ac_objext "* ) ;;
16558 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
16563 if test "$USE_WINSOCK" = 1; then
16564 if test -n "$ac_tool_prefix"; then
16565 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16566 set dummy ${ac_tool_prefix}windres; ac_word=$2
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16568 $as_echo_n "checking for $ac_word... " >&6; }
16569 if ${ac_cv_prog_WINDRES+:} false; then :
16570 $as_echo_n "(cached) " >&6
16572 if test -n "$WINDRES"; then
16573 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $PATH
16579 test -z "$as_dir" && as_dir=.
16580 for ac_exec_ext in '' $ac_executable_extensions; do
16581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16592 WINDRES=$ac_cv_prog_WINDRES
16593 if test -n "$WINDRES"; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
16595 $as_echo "$WINDRES" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 $as_echo "no" >&6; }
16603 if test -z "$ac_cv_prog_WINDRES"; then
16604 ac_ct_WINDRES=$WINDRES
16605 # Extract the first word of "windres", so it can be a program name with args.
16606 set dummy windres; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
16610 $as_echo_n "(cached) " >&6
16612 if test -n "$ac_ct_WINDRES"; then
16613 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_ac_ct_WINDRES="windres"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16632 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16633 if test -n "$ac_ct_WINDRES"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
16635 $as_echo "$ac_ct_WINDRES" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16641 if test "x$ac_ct_WINDRES" = x; then
16644 case $cross_compiling:$ac_tool_warned in
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16648 ac_tool_warned=yes ;;
16650 WINDRES=$ac_ct_WINDRES
16653 WINDRES="$ac_cv_prog_WINDRES"
16658 # check ioctlsocket
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16660 $as_echo_n "checking for ioctlsocket... " >&6; }
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16664 #ifdef HAVE_WINSOCK2_H
16665 #include <winsock2.h>
16672 (void)ioctlsocket(0, 0, NULL);
16678 if ac_fn_c_try_link "$LINENO"; then :
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681 $as_echo "yes" >&6; }
16683 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16690 rm -f core conftest.err conftest.$ac_objext \
16691 conftest$ac_exeext conftest.$ac_ext
16694 #AC_SEARCH_LIBS(RSA_new, [crypto])
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
16698 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
16699 if ${ac_cv_c_format_attribute+:} false; then :
16700 $as_echo_n "(cached) " >&6
16702 ac_cv_c_format_attribute=no
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16707 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16719 if ac_fn_c_try_compile "$LINENO"; then :
16720 ac_cv_c_format_attribute="yes"
16722 ac_cv_c_format_attribute="no"
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
16730 $as_echo "$ac_cv_c_format_attribute" >&6; }
16731 if test $ac_cv_c_format_attribute = yes; then
16733 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
16739 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
16740 if ${ac_cv_c_unused_attribute+:} false; then :
16741 $as_echo_n "(cached) " >&6
16743 ac_cv_c_unused_attribute=no
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16747 void f (char *u __attribute__((unused)));
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 ac_cv_c_unused_attribute="yes"
16762 ac_cv_c_unused_attribute="no"
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
16772 $as_echo "$ac_cv_c_unused_attribute" >&6; }
16773 if test $ac_cv_c_unused_attribute = yes; then
16775 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
16780 # check OSX deployment target which is needed
16781 if echo $build_os | grep darwin > /dev/null; then
16782 export MACOSX_DEPLOYMENT_TARGET="10.4"
16786 $as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
16790 # Check whether --with-trust-anchor was given.
16791 if test "${with_trust_anchor+set}" = set; then :
16792 withval=$with_trust_anchor;
16793 LDNS_TRUST_ANCHOR_FILE="$withval"
16797 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
16798 if test "x$sysconfdir" = 'x${prefix}/etc' ; then
16799 if test "x$prefix" = 'xNONE' ; then
16800 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
16802 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
16805 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
16812 cat >>confdefs.h <<_ACEOF
16813 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
16818 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
16821 # Check whether --with-ca-file was given.
16822 if test "${with_ca_file+set}" = set; then :
16823 withval=$with_ca_file;
16825 $as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
16828 cat >>confdefs.h <<_ACEOF
16829 #define LDNS_DANE_CA_FILE "$withval"
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
16833 $as_echo "$as_me: Using CAfile: $withval" >&6;}
16834 DEFAULT_CAFILE="Default is $withval"
16840 $as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
16848 # Check whether --with-ca-path was given.
16849 if test "${with_ca_path+set}" = set; then :
16850 withval=$with_ca_path;
16852 $as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
16855 cat >>confdefs.h <<_ACEOF
16856 #define LDNS_DANE_CA_PATH "$withval"
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
16860 $as_echo "$as_me: Using CApath: $withval" >&6;}
16861 DEFAULT_CAPATH="Default is $withval"
16867 $as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
16878 if test "x$HAVE_SSL" = "xyes"; then
16879 ldns_build_config_have_ssl=1
16882 ldns_build_config_have_ssl=0
16885 if test "x$ac_cv_c_format_attribute" = "xyes"; then
16886 ldns_build_config_have_attr_format=1
16889 ldns_build_config_have_attr_format=0
16892 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
16893 ldns_build_config_have_attr_unused=1
16896 ldns_build_config_have_attr_unused=0
16900 CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG"
16902 ac_config_files="$ac_config_files $CONFIG_FILES"
16905 ac_config_headers="$ac_config_headers ldns/config.h"
16907 cat >confcache <<\_ACEOF
16908 # This file is a shell script that caches the results of configure
16909 # tests run on this system so they can be shared between configure
16910 # scripts and configure runs, see configure's option --config-cache.
16911 # It is not useful on other systems. If it contains results you don't
16912 # want to keep, you may remove or edit it.
16914 # config.status only pays attention to the cache file if you give it
16915 # the --recheck option to rerun configure.
16917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16919 # following values.
16923 # The following way of writing the cache mishandles newlines in values,
16924 # but we know of no workaround that is simple, portable, and efficient.
16925 # So, we kill variables containing newlines.
16926 # Ultrix sh set writes to stderr and can't be redirected directly,
16927 # and sets the high bit in the cache file unless we assign to the vars.
16929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16930 eval ac_val=\$$ac_var
16934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16938 _ | IFS | as_nl) ;; #(
16939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16940 *) { eval $ac_var=; unset $ac_var;} ;;
16946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16947 *${as_nl}ac_space=\ *)
16948 # `set' does not quote correctly, so add quotes: double-quote
16949 # substitution turns \\\\ into \\, and sed turns \\ into \.
16952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16955 # `set' quotes correctly as required by POSIX, so do not add quotes.
16956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16970 if test -w "$cache_file"; then
16971 if test "x$cache_file" != "x/dev/null"; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16973 $as_echo "$as_me: updating cache $cache_file" >&6;}
16974 if test ! -f "$cache_file" || test -h "$cache_file"; then
16975 cat confcache >"$cache_file"
16977 case $cache_file in #(
16979 mv -f confcache "$cache_file"$$ &&
16980 mv -f "$cache_file"$$ "$cache_file" ;; #(
16982 mv -f confcache "$cache_file" ;;
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16994 # Let make expand exec_prefix.
16995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16997 DEFS=-DHAVE_CONFIG_H
17002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17003 # 1. Remove the extension, and $U if already installed.
17004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17007 # will be set to the directory where LIBOBJS objects are built.
17008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17011 LIBOBJS=$ac_libobjs
17013 LTLIBOBJS=$ac_ltlibobjs
17018 : "${CONFIG_STATUS=./config.status}"
17020 ac_clean_files_save=$ac_clean_files
17021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17027 # Generated by $as_me.
17028 # Run this file to recreate the current configuration.
17029 # Compiler output produced by configure, useful for debugging
17030 # configure, is in config.log if it exists.
17033 ac_cs_recheck=false
17036 SHELL=\${CONFIG_SHELL-$SHELL}
17039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17040 ## -------------------- ##
17041 ## M4sh Initialization. ##
17042 ## -------------------- ##
17044 # Be more Bourne compatible
17045 DUALCASE=1; export DUALCASE # for MKS sh
17046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17050 # is contrary to our usage. Disable this feature.
17051 alias -g '${1+"$@"}'='"$@"'
17052 setopt NO_GLOB_SUBST
17054 case `(set -o) 2>/dev/null` in #(
17066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17070 # Prefer a ksh shell builtin over an external printf program on Solaris,
17071 # but without wasting forks for bash or zsh.
17072 if test -z "$BASH_VERSION$ZSH_VERSION" \
17073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17074 as_echo='print -r --'
17075 as_echo_n='print -rn --'
17076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17077 as_echo='printf %s\n'
17078 as_echo_n='printf %s'
17080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17082 as_echo_n='/usr/ucb/echo -n'
17084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17085 as_echo_n_body='eval
17089 expr "X$arg" : "X\\(.*\\)$as_nl";
17090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17094 export as_echo_n_body
17095 as_echo_n='sh -c $as_echo_n_body as_echo'
17097 export as_echo_body
17098 as_echo='sh -c $as_echo_body as_echo'
17101 # The user is always right.
17102 if test "${PATH_SEPARATOR+set}" != set; then
17104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17112 # We need space, tab and new line, in precisely that order. Quoting is
17113 # there to prevent editors from complaining about space-tab.
17114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17115 # splitting by setting IFS to empty value.)
17118 # Find who we are. Look in the path if we contain no directory separator.
17121 *[\\/]* ) as_myself=$0 ;;
17122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17123 for as_dir in $PATH
17126 test -z "$as_dir" && as_dir=.
17127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17133 # We did not find ourselves, most probably we were run as `sh COMMAND'
17134 # in which case we are not to be found in the path.
17135 if test "x$as_myself" = x; then
17138 if test ! -f "$as_myself"; then
17139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17143 # Unset variables that we do not need and which cause bugs (e.g. in
17144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17145 # suppresses any "Segmentation fault" message there. '((' could
17146 # trigger a bug in pdksh 5.2.14.
17147 for as_var in BASH_ENV ENV MAIL MAILPATH
17148 do eval test x\${$as_var+set} = xset \
17149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17166 # ----------------------------------------
17167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17169 # script with STATUS, using 1 if that was 0.
17172 as_status=$1; test $as_status -eq 0 && as_status=1
17174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17177 $as_echo "$as_me: error: $2" >&2
17178 as_fn_exit $as_status
17182 # as_fn_set_status STATUS
17183 # -----------------------
17184 # Set $? to STATUS, without forking.
17185 as_fn_set_status ()
17188 } # as_fn_set_status
17190 # as_fn_exit STATUS
17191 # -----------------
17192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17196 as_fn_set_status $1
17202 # Portably unset VAR.
17205 { eval $1=; unset $1;}
17207 as_unset=as_fn_unset
17208 # as_fn_append VAR VALUE
17209 # ----------------------
17210 # Append the text in VALUE to the end of the definition contained in VAR. Take
17211 # advantage of any shell optimizations that allow amortized linear growth over
17212 # repeated appends, instead of the typical quadratic growth present in naive
17214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17215 eval 'as_fn_append ()
17226 # as_fn_arith ARG...
17227 # ------------------
17228 # Perform arithmetic evaluation on the ARGs, and store the result in the
17229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17230 # must be portable across $(()) and expr.
17231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17232 eval 'as_fn_arith ()
17239 as_val=`expr "$@" || test $? -eq 1`
17244 if expr a : '\(a\)' >/dev/null 2>&1 &&
17245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17252 as_basename=basename
17257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17263 as_me=`$as_basename -- "$0" ||
17264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17265 X"$0" : 'X\(//\)$' \| \
17266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17268 sed '/^.*\/\([^/][^/]*\)\/*$/{
17282 # Avoid depending upon Character Ranges.
17283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17286 as_cr_digits='0123456789'
17287 as_cr_alnum=$as_cr_Letters$as_cr_digits
17289 ECHO_C= ECHO_N= ECHO_T=
17290 case `echo -n x` in #(((((
17292 case `echo 'xy\c'` in
17293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17302 rm -f conf$$ conf$$.exe conf$$.file
17303 if test -d conf$$.dir; then
17304 rm -f conf$$.dir/conf$$.file
17307 mkdir conf$$.dir 2>/dev/null
17309 if (echo >conf$$.file) 2>/dev/null; then
17310 if ln -s conf$$.file conf$$ 2>/dev/null; then
17312 # ... but there are two gotchas:
17313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17315 # In both cases, we have to default to `cp -pR'.
17316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17318 elif ln conf$$.file conf$$ 2>/dev/null; then
17326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17327 rmdir conf$$.dir 2>/dev/null
17332 # Create "$as_dir" as a directory, including parents if necessary.
17337 -*) as_dir=./$as_dir;;
17339 test -d "$as_dir" || eval $as_mkdir_p || {
17343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17344 *) as_qdir=$as_dir;;
17346 as_dirs="'$as_qdir' $as_dirs"
17347 as_dir=`$as_dirname -- "$as_dir" ||
17348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17349 X"$as_dir" : 'X\(//\)[^/]' \| \
17350 X"$as_dir" : 'X\(//\)$' \| \
17351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17352 $as_echo X"$as_dir" |
17353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17357 /^X\(\/\/\)[^/].*/{
17370 test -d "$as_dir" && break
17372 test -z "$as_dirs" || eval "mkdir $as_dirs"
17373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17377 if mkdir -p . 2>/dev/null; then
17378 as_mkdir_p='mkdir -p "$as_dir"'
17380 test -d ./-p && rmdir ./-p
17385 # as_fn_executable_p FILE
17386 # -----------------------
17387 # Test if FILE is an executable regular file.
17388 as_fn_executable_p ()
17390 test -f "$1" && test -x "$1"
17391 } # as_fn_executable_p
17392 as_test_x='test -x'
17393 as_executable_p=as_fn_executable_p
17395 # Sed expression to map a string onto a valid CPP name.
17396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17398 # Sed expression to map a string onto a valid variable name.
17399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17403 ## ----------------------------------- ##
17404 ## Main body of $CONFIG_STATUS script. ##
17405 ## ----------------------------------- ##
17407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410 # Save the log message, to keep $0 and so on meaningful, and to
17411 # report actual input values of CONFIG_FILES etc. instead of their
17412 # values after options handling.
17414 This file was extended by ldns $as_me 1.6.17, which was
17415 generated by GNU Autoconf 2.69. Invocation command line was
17417 CONFIG_FILES = $CONFIG_FILES
17418 CONFIG_HEADERS = $CONFIG_HEADERS
17419 CONFIG_LINKS = $CONFIG_LINKS
17420 CONFIG_COMMANDS = $CONFIG_COMMANDS
17423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17428 case $ac_config_files in *"
17429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17432 case $ac_config_headers in *"
17433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17438 # Files that config.status was made for.
17439 config_files="$ac_config_files"
17440 config_headers="$ac_config_headers"
17441 config_commands="$ac_config_commands"
17445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17447 \`$as_me' instantiates files and other configuration actions
17448 from templates according to the current configuration. Unless the files
17449 and actions are specified as TAGs, all are instantiated by default.
17451 Usage: $0 [OPTION]... [TAG]...
17453 -h, --help print this help, then exit
17454 -V, --version print version number and configuration settings, then exit
17455 --config print configuration, then exit
17456 -q, --quiet, --silent
17457 do not print progress messages
17458 -d, --debug don't remove temporary files
17459 --recheck update $as_me by reconfiguring in the same conditions
17460 --file=FILE[:TEMPLATE]
17461 instantiate the configuration file FILE
17462 --header=FILE[:TEMPLATE]
17463 instantiate the configuration header FILE
17465 Configuration files:
17468 Configuration headers:
17471 Configuration commands:
17474 Report bugs to <libdns@nlnetlabs.nl>."
17477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17480 ldns config.status 1.6.17
17481 configured by $0, generated by GNU Autoconf 2.69,
17482 with options \\"\$ac_cs_config\\"
17484 Copyright (C) 2012 Free Software Foundation, Inc.
17485 This config.status script is free software; the Free Software Foundation
17486 gives unlimited permission to copy, distribute and modify it."
17491 test -n "\$AWK" || AWK=awk
17494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17495 # The default lists apply if the user does not specify any file.
17501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17518 # Handling of the options.
17519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17522 $as_echo "$ac_cs_version"; exit ;;
17523 --config | --confi | --conf | --con | --co | --c )
17524 $as_echo "$ac_cs_config"; exit ;;
17525 --debug | --debu | --deb | --de | --d | -d )
17527 --file | --fil | --fi | --f )
17530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17531 '') as_fn_error $? "missing file argument" ;;
17533 as_fn_append CONFIG_FILES " '$ac_optarg'"
17534 ac_need_defaults=false;;
17535 --header | --heade | --head | --hea )
17538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17540 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17541 ac_need_defaults=false;;
17543 # Conflict between --help and --header
17544 as_fn_error $? "ambiguous option: \`$1'
17545 Try \`$0 --help' for more information.";;
17546 --help | --hel | -h )
17547 $as_echo "$ac_cs_usage"; exit ;;
17548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17552 # This is an error.
17553 -*) as_fn_error $? "unrecognized option: \`$1'
17554 Try \`$0 --help' for more information." ;;
17556 *) as_fn_append ac_config_targets " $1"
17557 ac_need_defaults=false ;;
17563 ac_configure_extra_args=
17565 if $ac_cs_silent; then
17567 ac_configure_extra_args="$ac_configure_extra_args --silent"
17571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17572 if \$ac_cs_recheck; then
17573 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17576 CONFIG_SHELL='$SHELL'
17577 export CONFIG_SHELL
17582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17587 ## Running $as_me. ##
17593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599 # The HP-UX ksh and POSIX shell print the target directory to stdout
17600 # if CDPATH is set.
17601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17603 sed_quote_subst='$sed_quote_subst'
17604 double_quote_subst='$double_quote_subst'
17605 delay_variable_subst='$delay_variable_subst'
17606 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17607 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17608 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17609 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17612 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17613 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17614 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17662 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"`'
17663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17705 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17706 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17707 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17708 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17709 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17710 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17712 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17713 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17714 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17715 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17716 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17717 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17718 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17719 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17720 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17721 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17722 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17723 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17724 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17725 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17726 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17727 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17728 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17729 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17730 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17731 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17732 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17733 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17734 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17735 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17738 LTCFLAGS='$LTCFLAGS'
17739 compiler='$compiler_DEFAULT'
17741 # A function that is used when there is no print builtin or printf.
17742 func_fallback_echo ()
17744 eval 'cat <<_LTECHO_EOF
17749 # Quote evaled strings.
17764 deplibs_check_method \
17769 sharedlib_from_linklib_cmd \
17772 archiver_list_spec \
17778 lt_cv_sys_global_symbol_pipe \
17779 lt_cv_sys_global_symbol_to_cdecl \
17780 lt_cv_sys_global_symbol_to_c_name_address \
17781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17782 nm_file_list_spec \
17783 lt_prog_compiler_no_builtin_flag \
17784 lt_prog_compiler_pic \
17785 lt_prog_compiler_wl \
17786 lt_prog_compiler_static \
17787 lt_cv_prog_compiler_c_o \
17796 export_dynamic_flag_spec \
17797 whole_archive_flag_spec \
17798 compiler_needs_object \
17800 allow_undefined_flag \
17801 no_undefined_flag \
17802 hardcode_libdir_flag_spec \
17803 hardcode_libdir_separator \
17807 variables_saved_for_relink \
17809 library_names_spec \
17811 install_override_mode \
17815 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17816 *[\\\\\\\`\\"\\\$]*)
17817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17825 # Double-quote double-evaled strings.
17826 for var in reload_cmds \
17827 old_postinstall_cmds \
17828 old_postuninstall_cmds \
17830 extract_expsyms_cmds \
17831 old_archive_from_new_cmds \
17832 old_archive_from_expsyms_cmds \
17834 archive_expsym_cmds \
17836 module_expsym_cmds \
17837 export_symbols_cmds \
17841 postuninstall_cmds \
17843 sys_lib_search_path_spec \
17844 sys_lib_dlsearch_path_spec; do
17845 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17846 *[\\\\\\\`\\"\\\$]*)
17847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17855 ac_aux_dir='$ac_aux_dir'
17856 xsi_shell='$xsi_shell'
17857 lt_shell_append='$lt_shell_append'
17859 # See if we are running on zsh, and set the options which allow our
17860 # commands through without removal of \ escapes INIT.
17861 if test -n "\${ZSH_VERSION+set}" ; then
17862 setopt NO_GLOB_SUBST
17868 TIMESTAMP='$TIMESTAMP'
17877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17879 # Handling of arguments.
17880 for ac_config_target in $ac_config_targets
17882 case $ac_config_target in
17883 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17884 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
17885 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
17886 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
17888 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17893 # If the user did not use the arguments to specify the items to instantiate,
17894 # then the envvar interface is used. Set only those that are not.
17895 # We use the long form for the default assignment because of an extremely
17896 # bizarre bug on SunOS 4.1.3.
17897 if $ac_need_defaults; then
17898 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17899 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17900 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17903 # Have a temporary directory for convenience. Make it in the build tree
17904 # simply because there is no reason against having it here, and in addition,
17905 # creating and moving files from /tmp can sometimes cause problems.
17906 # Hook for its removal unless debugging.
17907 # Note that there is a small window in which the directory will not be cleaned:
17908 # after its creation but before its name has been assigned to `$tmp'.
17912 trap 'exit_status=$?
17913 : "${ac_tmp:=$tmp}"
17914 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17916 trap 'as_fn_exit 1' 1 2 13 15
17918 # Create a (secure) tmp directory for tmp files.
17921 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17925 tmp=./conf$$-$RANDOM
17926 (umask 077 && mkdir "$tmp")
17927 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17930 # Set up the scripts for CONFIG_FILES section.
17931 # No need to generate them if there are no CONFIG_FILES.
17932 # This happens for instance with `./config.status config.h'.
17933 if test -n "$CONFIG_FILES"; then
17936 ac_cr=`echo X | tr X '\015'`
17937 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17938 # But we know of no other shell where ac_cr would be empty at this
17939 # point, so we can use a bashism as a fallback.
17940 if test "x$ac_cr" = x; then
17941 eval ac_cr=\$\'\\r\'
17943 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17944 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17947 ac_cs_awk_cr=$ac_cr
17950 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17955 echo "cat >conf$$subs.awk <<_ACEOF" &&
17956 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17958 } >conf$$subs.sh ||
17959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17962 for ac_last_try in false false false false false :; do
17963 . ./conf$$subs.sh ||
17964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17966 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17967 if test $ac_delim_n = $ac_delim_num; then
17969 elif $ac_last_try; then
17970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17975 rm -f conf$$subs.sh
17977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17982 s/^/S["/; s/!.*/"]=/
17992 s/\(.\{148\}\)..*/\1/
17994 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18006 s/\(.\{148\}\)..*/\1/
18008 s/["\\]/\\&/g; s/^/"/; s/$/"/
18012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18017 ' <conf$$subs.awk | sed '
18022 ' >>$CONFIG_STATUS || ac_write_fail=1
18023 rm -f conf$$subs.awk
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18026 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18027 for (key in S) S_is_set[key] = 1
18033 nfields = split(line, field, "@")
18035 len = length(field[1])
18036 for (i = 2; i < nfields; i++) {
18038 keylen = length(key)
18039 if (S_is_set[key]) {
18041 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18042 len += length(value) + length(field[++i])
18053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18055 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18058 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18059 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18062 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18063 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18064 # trailing colons and then remove the whole line if VPATH becomes empty
18065 # (actually we leave an empty line to preserve line numbers).
18066 if test "x$srcdir" = x.; then
18067 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18086 fi # test -n "$CONFIG_FILES"
18088 # Set up the scripts for CONFIG_HEADERS section.
18089 # No need to generate them if there are no CONFIG_HEADERS.
18090 # This happens for instance with `./config.status Makefile'.
18091 if test -n "$CONFIG_HEADERS"; then
18092 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18096 # Transform confdefs.h into an awk script `defines.awk', embedded as
18097 # here-document in config.status, that substitutes the proper values into
18098 # config.h.in to produce config.h.
18100 # Create a delimiter string that does not exist in confdefs.h, to ease
18101 # handling of long lines.
18103 for ac_last_try in false false :; do
18104 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18105 if test -z "$ac_tt"; then
18107 elif $ac_last_try; then
18108 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18114 # For the awk script, D is an array of macro values keyed by name,
18115 # likewise P contains macro parameters if any. Preserve backslash
18116 # newline sequences.
18118 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18120 s/.\{148\}/&'"$ac_delim"'/g
18123 s/^[ ]*#[ ]*define[ ][ ]*/ /
18130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18132 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18137 D["\1"]=" \3\\\\\\n"\\/p
18139 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18144 s/.\{148\}/&'"$ac_delim"'/g
18149 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18152 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18154 ' <confdefs.h | sed '
18155 s/'"$ac_delim"'/"\\\
18156 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159 for (key in D) D_is_set[key] = 1
18162 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18164 split(line, arg, " ")
18165 if (arg[1] == "#") {
18169 defundef = substr(arg[1], 2)
18172 split(mac1, mac2, "(") #)
18174 prefix = substr(line, 1, index(line, defundef) - 1)
18175 if (D_is_set[macro]) {
18176 # Preserve the white space surrounding the "#".
18177 print prefix "define", macro P[macro] D[macro]
18180 # Replace #undef with comments. This is necessary, for example,
18181 # in the case of _POSIX_SOURCE, which is predefined and required
18182 # on some systems where configure will not decide to define it.
18183 if (defundef == "undef") {
18184 print "/*", prefix defundef, macro, "*/"
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18194 fi # test -n "$CONFIG_HEADERS"
18197 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18202 :[FHLC]) ac_mode=$ac_tag; continue;;
18204 case $ac_mode$ac_tag in
18206 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18207 :[FH]-) ac_tag=-:-;;
18208 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18225 -) ac_f="$ac_tmp/stdin";;
18226 *) # Look for the file first in the build tree, then in the source tree
18227 # (if the path is not absolute). The absolute path cannot be DOS-style,
18228 # because $ac_f cannot contain `:'.
18232 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18234 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18236 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18237 as_fn_append ac_file_inputs " '$ac_f'"
18240 # Let's still pretend it is `configure' which instantiates (i.e., don't
18241 # use $as_me), people would be surprised to read:
18242 # /* config.h. Generated by config.status. */
18243 configure_input='Generated from '`
18244 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18246 if test x"$ac_file" != x-; then
18247 configure_input="$ac_file. $configure_input"
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18249 $as_echo "$as_me: creating $ac_file" >&6;}
18251 # Neutralize special characters interpreted by sed in replacement strings.
18252 case $configure_input in #(
18253 *\&* | *\|* | *\\* )
18254 ac_sed_conf_input=`$as_echo "$configure_input" |
18255 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18256 *) ac_sed_conf_input=$configure_input;;
18260 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18266 ac_dir=`$as_dirname -- "$ac_file" ||
18267 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18268 X"$ac_file" : 'X\(//\)[^/]' \| \
18269 X"$ac_file" : 'X\(//\)$' \| \
18270 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18271 $as_echo X"$ac_file" |
18272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18276 /^X\(\/\/\)[^/].*/{
18289 as_dir="$ac_dir"; as_fn_mkdir_p
18293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18295 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18296 # A ".." for each directory in $ac_dir_suffix.
18297 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18298 case $ac_top_builddir_sub in
18299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18303 ac_abs_top_builddir=$ac_pwd
18304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18305 # for backward compatibility:
18306 ac_top_builddir=$ac_top_build_prefix
18309 .) # We are building in place.
18311 ac_top_srcdir=$ac_top_builddir_sub
18312 ac_abs_top_srcdir=$ac_pwd ;;
18313 [\\/]* | ?:[\\/]* ) # Absolute name.
18314 ac_srcdir=$srcdir$ac_dir_suffix;
18315 ac_top_srcdir=$srcdir
18316 ac_abs_top_srcdir=$srcdir ;;
18317 *) # Relative name.
18318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18319 ac_top_srcdir=$ac_top_build_prefix$srcdir
18320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 # If the template does not know about datarootdir, expand it.
18335 # FIXME: This hack should be removed a few years after 2.60.
18336 ac_datarootdir_hack=; ac_datarootdir_seen=
18347 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18348 *datarootdir*) ac_datarootdir_seen=yes;;
18349 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18351 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18354 ac_datarootdir_hack='
18355 s&@datadir@&$datadir&g
18356 s&@docdir@&$docdir&g
18357 s&@infodir@&$infodir&g
18358 s&@localedir@&$localedir&g
18359 s&@mandir@&$mandir&g
18360 s&\\\${datarootdir}&$datarootdir&g' ;;
18364 # Neutralize VPATH when `$srcdir' = `.'.
18365 # Shell code in configure.ac might set extrasub.
18366 # FIXME: do we really want to maintain this feature?
18367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368 ac_sed_extra="$ac_vpsub
18371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18374 s|@configure_input@|$ac_sed_conf_input|;t t
18375 s&@top_builddir@&$ac_top_builddir_sub&;t t
18376 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18377 s&@srcdir@&$ac_srcdir&;t t
18378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18379 s&@top_srcdir@&$ac_top_srcdir&;t t
18380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18381 s&@builddir@&$ac_builddir&;t t
18382 s&@abs_builddir@&$ac_abs_builddir&;t t
18383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18384 $ac_datarootdir_hack
18386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18392 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18394 which seems to be undefined. Please make sure it is defined" >&5
18395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18396 which seems to be undefined. Please make sure it is defined" >&2;}
18398 rm -f "$ac_tmp/stdin"
18400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18409 if test x"$ac_file" != x-; then
18411 $as_echo "/* $configure_input */" \
18412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18413 } >"$ac_tmp/config.h" \
18414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18420 mv "$ac_tmp/config.h" "$ac_file" \
18421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18424 $as_echo "/* $configure_input */" \
18425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18426 || as_fn_error $? "could not create -" "$LINENO" 5
18430 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18431 $as_echo "$as_me: executing $ac_file commands" >&6;}
18436 case $ac_file$ac_mode in
18439 # See if we are running on zsh, and set the options which allow our
18440 # commands through without removal of \ escapes.
18441 if test -n "${ZSH_VERSION+set}" ; then
18442 setopt NO_GLOB_SUBST
18445 cfgfile="${ofile}T"
18446 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18449 cat <<_LT_EOF >> "$cfgfile"
18452 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18453 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18457 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18458 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18460 # Written by Gordon Matzigkeit, 1996
18462 # This file is part of GNU Libtool.
18464 # GNU Libtool is free software; you can redistribute it and/or
18465 # modify it under the terms of the GNU General Public License as
18466 # published by the Free Software Foundation; either version 2 of
18467 # the License, or (at your option) any later version.
18469 # As a special exception to the GNU General Public License,
18470 # if you distribute this file as part of a program or library that
18471 # is built using GNU Libtool, you may include this file under the
18472 # same distribution terms that you use for the rest of that program.
18474 # GNU Libtool is distributed in the hope that it will be useful,
18475 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18476 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18477 # GNU General Public License for more details.
18479 # You should have received a copy of the GNU General Public License
18480 # along with GNU Libtool; see the file COPYING. If not, a copy
18481 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18482 # obtained by writing to the Free Software Foundation, Inc.,
18483 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18486 # The names of the tagged configurations supported by this script.
18489 # ### BEGIN LIBTOOL CONFIG
18491 # Which release of libtool.m4 was used?
18492 macro_version=$macro_version
18493 macro_revision=$macro_revision
18495 # Whether or not to build shared libraries.
18496 build_libtool_libs=$enable_shared
18498 # Whether or not to build static libraries.
18499 build_old_libs=$enable_static
18501 # What type of objects to build.
18504 # Whether or not to optimize for fast installation.
18505 fast_install=$enable_fast_install
18507 # Shell to use when invoking shell scripts.
18510 # An echo program that protects backslashes.
18513 # The PATH separator for the build system.
18514 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18517 host_alias=$host_alias
18521 # The build system.
18522 build_alias=$build_alias
18526 # A sed program that does not truncate output.
18529 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18530 Xsed="\$SED -e 1s/^X//"
18532 # A grep program that handles long lines.
18538 # A literal string matcher.
18541 # A BSD- or MS-compatible name lister.
18544 # Whether we need soft or hard links.
18547 # What is the maximum length of a command?
18548 max_cmd_len=$max_cmd_len
18550 # Object file suffix (normally "o").
18553 # Executable file suffix (normally "").
18556 # whether the shell understands "unset".
18559 # turn spaces into newlines.
18562 # turn newlines into spaces.
18565 # convert \$build file names to \$host format.
18566 to_host_file_cmd=$lt_cv_to_host_file_cmd
18568 # convert \$build files to toolchain format.
18569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18571 # An object symbol dumper.
18572 OBJDUMP=$lt_OBJDUMP
18574 # Method to check whether dependent libraries are shared objects.
18575 deplibs_check_method=$lt_deplibs_check_method
18577 # Command to use when deplibs_check_method = "file_magic".
18578 file_magic_cmd=$lt_file_magic_cmd
18580 # How to find potential files when deplibs_check_method = "file_magic".
18581 file_magic_glob=$lt_file_magic_glob
18583 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18584 want_nocaseglob=$lt_want_nocaseglob
18586 # DLL creation program.
18587 DLLTOOL=$lt_DLLTOOL
18589 # Command to associate shared and link libraries.
18590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18595 # Flags to create an archive.
18596 AR_FLAGS=$lt_AR_FLAGS
18598 # How to feed a file listing to the archiver.
18599 archiver_list_spec=$lt_archiver_list_spec
18601 # A symbol stripping program.
18604 # Commands used to install an old-style archive.
18606 old_postinstall_cmds=$lt_old_postinstall_cmds
18607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18609 # Whether to use a lock for old archive extraction.
18610 lock_old_archive_extraction=$lock_old_archive_extraction
18615 # LTCC compiler flags.
18616 LTCFLAGS=$lt_CFLAGS
18618 # Take the output of nm and produce a listing of raw symbols and C names.
18619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18621 # Transform the output of nm in a proper C declaration.
18622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18624 # Transform the output of nm in a C name address pair.
18625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18627 # Transform the output of nm in a C name address pair when lib prefix is needed.
18628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18630 # Specify filename containing input files for \$NM.
18631 nm_file_list_spec=$lt_nm_file_list_spec
18633 # The root where to search for dependent libraries,and in which our libraries should be installed.
18634 lt_sysroot=$lt_sysroot
18636 # The name of the directory that contains temporary libtool files.
18639 # Used to examine libraries when file_magic_cmd begins with "file".
18640 MAGIC_CMD=$MAGIC_CMD
18642 # Must we lock files when doing compilation?
18643 need_locks=$lt_need_locks
18646 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18648 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18649 DSYMUTIL=$lt_DSYMUTIL
18651 # Tool to change global to local symbols on Mac OS X.
18654 # Tool to manipulate fat objects and archives on Mac OS X.
18657 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18660 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18661 OTOOL64=$lt_OTOOL64
18663 # Old archive suffix (normally "a").
18666 # Shared library suffix (normally ".so").
18667 shrext_cmds=$lt_shrext_cmds
18669 # The commands to extract the exported symbol list from a shared archive.
18670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18672 # Variables whose values should be saved in libtool wrapper scripts and
18673 # restored at link time.
18674 variables_saved_for_relink=$lt_variables_saved_for_relink
18676 # Do we need the "lib" prefix for modules?
18677 need_lib_prefix=$need_lib_prefix
18679 # Do we need a version for libraries?
18680 need_version=$need_version
18682 # Library versioning type.
18683 version_type=$version_type
18685 # Shared library runtime path variable.
18686 runpath_var=$runpath_var
18688 # Shared library path variable.
18689 shlibpath_var=$shlibpath_var
18691 # Is shlibpath searched before the hard-coded library search path?
18692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18694 # Format of library name prefix.
18695 libname_spec=$lt_libname_spec
18697 # List of archive names. First name is the real one, the rest are links.
18698 # The last name is the one that the linker finds with -lNAME
18699 library_names_spec=$lt_library_names_spec
18701 # The coded name of the library, if different from the real name.
18702 soname_spec=$lt_soname_spec
18704 # Permission mode override for installation of shared libraries.
18705 install_override_mode=$lt_install_override_mode
18707 # Command to use after installation of a shared archive.
18708 postinstall_cmds=$lt_postinstall_cmds
18710 # Command to use after uninstallation of a shared archive.
18711 postuninstall_cmds=$lt_postuninstall_cmds
18713 # Commands used to finish a libtool library installation in a directory.
18714 finish_cmds=$lt_finish_cmds
18716 # As "finish_cmds", except a single script fragment to be evaled but
18718 finish_eval=$lt_finish_eval
18720 # Whether we should hardcode library paths into libraries.
18721 hardcode_into_libs=$hardcode_into_libs
18723 # Compile-time system search path for libraries.
18724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18726 # Run-time system search path for libraries.
18727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18729 # Whether dlopen is supported.
18730 dlopen_support=$enable_dlopen
18732 # Whether dlopen of programs is supported.
18733 dlopen_self=$enable_dlopen_self
18735 # Whether dlopen of statically linked programs is supported.
18736 dlopen_self_static=$enable_dlopen_self_static
18738 # Commands to strip libraries.
18739 old_striplib=$lt_old_striplib
18740 striplib=$lt_striplib
18743 # The linker used to build libraries.
18746 # How to create reloadable object files.
18747 reload_flag=$lt_reload_flag
18748 reload_cmds=$lt_reload_cmds
18750 # Commands used to build an old-style archive.
18751 old_archive_cmds=$lt_old_archive_cmds
18753 # A language specific compiler.
18756 # Is the compiler the GNU compiler?
18759 # Compiler flag to turn off builtin functions.
18760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18762 # Additional compiler flags for building library objects.
18763 pic_flag=$lt_lt_prog_compiler_pic
18765 # How to pass a linker flag through the compiler.
18766 wl=$lt_lt_prog_compiler_wl
18768 # Compiler flag to prevent dynamic linking.
18769 link_static_flag=$lt_lt_prog_compiler_static
18771 # Does compiler simultaneously support -c and -o options?
18772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18774 # Whether or not to add -lc for building shared libraries.
18775 build_libtool_need_lc=$archive_cmds_need_lc
18777 # Whether or not to disallow shared libs when runtime libs are static.
18778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18780 # Compiler flag to allow reflexive dlopens.
18781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18783 # Compiler flag to generate shared objects directly from archives.
18784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18786 # Whether the compiler copes with passing no objects directly.
18787 compiler_needs_object=$lt_compiler_needs_object
18789 # Create an old-style archive from a shared archive.
18790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18792 # Create a temporary old-style archive to link instead of a shared archive.
18793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18795 # Commands used to build a shared archive.
18796 archive_cmds=$lt_archive_cmds
18797 archive_expsym_cmds=$lt_archive_expsym_cmds
18799 # Commands used to build a loadable module if different from building
18800 # a shared archive.
18801 module_cmds=$lt_module_cmds
18802 module_expsym_cmds=$lt_module_expsym_cmds
18804 # Whether we are building with GNU ld or not.
18805 with_gnu_ld=$lt_with_gnu_ld
18807 # Flag that allows shared libraries with undefined symbols to be built.
18808 allow_undefined_flag=$lt_allow_undefined_flag
18810 # Flag that enforces no undefined symbols.
18811 no_undefined_flag=$lt_no_undefined_flag
18813 # Flag to hardcode \$libdir into a binary during linking.
18814 # This must work even if \$libdir does not exist
18815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18817 # Whether we need a single "-rpath" flag with a separated argument.
18818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18821 # DIR into the resulting binary.
18822 hardcode_direct=$hardcode_direct
18824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18825 # DIR into the resulting binary and the resulting library dependency is
18826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18827 # library is relocated.
18828 hardcode_direct_absolute=$hardcode_direct_absolute
18830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18831 # into the resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L
18834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18835 # into the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var
18838 # Set to "yes" if building a shared library automatically hardcodes DIR
18839 # into the library and all subsequent libraries and executables linked
18841 hardcode_automatic=$hardcode_automatic
18843 # Set to yes if linker adds runtime paths of dependent libraries
18844 # to runtime path list.
18845 inherit_rpath=$inherit_rpath
18847 # Whether libtool must link a program against all its dependency libraries.
18848 link_all_deplibs=$link_all_deplibs
18850 # Set to "yes" if exported symbols are required.
18851 always_export_symbols=$always_export_symbols
18853 # The commands to list exported symbols.
18854 export_symbols_cmds=$lt_export_symbols_cmds
18856 # Symbols that should not be listed in the preloaded symbols.
18857 exclude_expsyms=$lt_exclude_expsyms
18859 # Symbols that must always be exported.
18860 include_expsyms=$lt_include_expsyms
18862 # Commands necessary for linking programs (against libraries) with templates.
18863 prelink_cmds=$lt_prelink_cmds
18865 # Commands necessary for finishing linking programs.
18866 postlink_cmds=$lt_postlink_cmds
18868 # Specify filename containing input files.
18869 file_list_spec=$lt_file_list_spec
18871 # How to hardcode a shared library path into an executable.
18872 hardcode_action=$hardcode_action
18874 # ### END LIBTOOL CONFIG
18880 cat <<\_LT_EOF >> "$cfgfile"
18881 # AIX sometimes has problems with the GCC collect2 program. For some
18882 # reason, if we set the COLLECT_NAMES environment variable, the problems
18883 # vanish in a puff of smoke.
18884 if test "X${COLLECT_NAMES+set}" != Xset; then
18886 export COLLECT_NAMES
18893 ltmain="$ac_aux_dir/ltmain.sh"
18896 # We use sed instead of cat because bash on DJGPP gets confused if
18897 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18898 # text mode, it properly converts lines to CR/LF. This bash problem
18899 # is reportedly fixed, but why not run on old versions too?
18900 sed '$q' "$ltmain" >> "$cfgfile" \
18901 || (rm -f "$cfgfile"; exit 1)
18903 if test x"$xsi_shell" = xyes; then
18904 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18908 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18909 \ * ) func_dirname_result="${3}" ;;\
18911 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18912 && mv -f "$cfgfile.tmp" "$cfgfile" \
18913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18914 test 0 -eq $? || _lt_function_replace_fail=:
18917 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18920 \ func_basename_result="${1##*/}"\
18921 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18922 && mv -f "$cfgfile.tmp" "$cfgfile" \
18923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18924 test 0 -eq $? || _lt_function_replace_fail=:
18927 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18928 func_dirname_and_basename ()\
18931 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18932 \ * ) func_dirname_result="${3}" ;;\
18934 \ func_basename_result="${1##*/}"\
18935 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18936 && mv -f "$cfgfile.tmp" "$cfgfile" \
18937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18938 test 0 -eq $? || _lt_function_replace_fail=:
18941 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18944 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18945 \ # positional parameters, so assign one to ordinary parameter first.\
18946 \ func_stripname_result=${3}\
18947 \ func_stripname_result=${func_stripname_result#"${1}"}\
18948 \ func_stripname_result=${func_stripname_result%"${2}"}\
18949 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18950 && mv -f "$cfgfile.tmp" "$cfgfile" \
18951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952 test 0 -eq $? || _lt_function_replace_fail=:
18955 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18956 func_split_long_opt ()\
18958 \ func_split_long_opt_name=${1%%=*}\
18959 \ func_split_long_opt_arg=${1#*=}\
18960 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18961 && mv -f "$cfgfile.tmp" "$cfgfile" \
18962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963 test 0 -eq $? || _lt_function_replace_fail=:
18966 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18967 func_split_short_opt ()\
18969 \ func_split_short_opt_arg=${1#??}\
18970 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18971 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18972 && mv -f "$cfgfile.tmp" "$cfgfile" \
18973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18974 test 0 -eq $? || _lt_function_replace_fail=:
18977 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18981 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18982 \ *) func_lo2o_result=${1} ;;\
18984 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18985 && mv -f "$cfgfile.tmp" "$cfgfile" \
18986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18987 test 0 -eq $? || _lt_function_replace_fail=:
18990 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18993 func_xform_result=${1%.*}.lo\
18994 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18995 && mv -f "$cfgfile.tmp" "$cfgfile" \
18996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18997 test 0 -eq $? || _lt_function_replace_fail=:
19000 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19003 func_arith_result=$(( $* ))\
19004 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19005 && mv -f "$cfgfile.tmp" "$cfgfile" \
19006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19007 test 0 -eq $? || _lt_function_replace_fail=:
19010 sed -e '/^func_len ()$/,/^} # func_len /c\
19013 func_len_result=${#1}\
19014 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19015 && mv -f "$cfgfile.tmp" "$cfgfile" \
19016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19017 test 0 -eq $? || _lt_function_replace_fail=:
19021 if test x"$lt_shell_append" = xyes; then
19022 sed -e '/^func_append ()$/,/^} # func_append /c\
19025 eval "${1}+=\\${2}"\
19026 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19027 && mv -f "$cfgfile.tmp" "$cfgfile" \
19028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19029 test 0 -eq $? || _lt_function_replace_fail=:
19032 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19033 func_append_quoted ()\
19035 \ func_quote_for_eval "${2}"\
19036 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19037 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19038 && mv -f "$cfgfile.tmp" "$cfgfile" \
19039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19040 test 0 -eq $? || _lt_function_replace_fail=:
19043 # Save a `func_append' function call where possible by direct use of '+='
19044 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19045 && mv -f "$cfgfile.tmp" "$cfgfile" \
19046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19049 # Save a `func_append' function call even when '+=' is not available
19050 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19051 && mv -f "$cfgfile.tmp" "$cfgfile" \
19052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19053 test 0 -eq $? || _lt_function_replace_fail=:
19056 if test x"$_lt_function_replace_fail" = x":"; then
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19058 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19062 mv -f "$cfgfile" "$ofile" ||
19063 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19068 sed < libtool > libtool-2 \
19069 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19070 mv libtool-2 libtool
19072 libtool="./libtool"
19081 ac_clean_files=$ac_clean_files_save
19083 test $ac_write_fail = 0 ||
19084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19087 # configure is writing to config.log, and then calls config.status.
19088 # config.status does its own redirection, appending to config.log.
19089 # Unfortunately, on DOS this fails, as config.log is still kept open
19090 # by configure, so config.status won't be able to write to it; its
19091 # output is simply discarded. So we exec the FD to /dev/null,
19092 # effectively closing config.log, so it can be properly (re)opened and
19093 # appended to by config.status. When coming back to configure, we
19094 # need to make the FD available again.
19095 if test "$no_create" != yes; then
19097 ac_config_status_args=
19098 test "$silent" = yes &&
19099 ac_config_status_args="$ac_config_status_args --quiet"
19101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19104 # would make configure fail if this is the last instruction.
19105 $ac_cs_success || as_fn_exit 1
19107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19113 echo "copying header files"
19115 for file in $srcdir/ldns//*.h; do
19116 sh $srcdir/install-sh -m 644 $file ldns/