2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ldns 1.6.16.
5 # Report bugs to <libdns@nlnetlabs.nl>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: libdns@nlnetlabs.nl about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
572 PACKAGE_TARNAME='libdns'
573 PACKAGE_VERSION='1.6.16'
574 PACKAGE_STRING='ldns 1.6.16'
575 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
578 ac_unique_file="packet.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='LTLIBOBJS
617 ldns_build_config_have_attr_unused
618 ldns_build_config_have_attr_format
619 ldns_build_config_have_ssl
622 LDNS_TRUST_ANCHOR_FILE
625 ldns_build_config_have_socklen_t
630 ldns_build_config_have_inttypes_h
678 UNINSTALL_CONFIG_MANPAGE
680 INSTALL_CONFIG_MANPAGE
745 program_transform_name
758 enable_option_checking
780 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 ac_unrecognized_opts=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
950 -help | --help | --hel | --he | -h)
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1099 -site=* | --site=* | --sit=*)
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used" >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures ldns 1.6.16 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of ldns 1.6.16:";;
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --disable-ldns-config disable installation of ldns-config (default=enabled)
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1412 --disable-gost Disable GOST support
1413 --disable-ecdsa Disable ECDSA support
1414 --disable-rpath disable hardcoded rpath (default=enabled)
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-drill Also build drill.
1420 --with-examples Also build examples.
1421 --with-pyldns generate python library, or --without-pyldns to
1422 disable Python support.
1423 --without-pyldnsx Do not install the ldnsx python module, or
1424 --with-pyldnsx to install it.
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 --with-sysroot=DIR Search for dependent libraries within DIR
1429 (or the compiler's sysroot if not specified).
1430 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1431 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1433 --with-trust-anchor=KEYFILE
1434 Default location of the trust anchor file for drill
1435 and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1436 --with-ca-file=CAFILE File containing CA certificates for ldns-dane
1437 --with-ca-path=CAPATH Directory containing CA certificate files for
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1450 The installed Python version to use, for example '2.3'. This
1451 string will be appended to the Python interpreter canonical
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1457 Report bugs to <libdns@nlnetlabs.nl>.
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1487 .) # We are building in place.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1520 ldns configure 1.6.16
1521 generated by GNU Autoconf 2.68
1523 Copyright (C) 2010 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1530 ## ------------------------ ##
1531 ## Autoconf initialization. ##
1532 ## ------------------------ ##
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1570 } # ac_fn_c_try_compile
1572 # ac_fn_c_try_cpp LINENO
1573 # ----------------------
1574 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } > conftest.i && {
1594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1609 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1612 # the include files in INCLUDES and setting the cache variable VAR
1614 ac_fn_c_check_header_mongrel ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if eval \${$3+:} false; then :
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \${$3+:} false; then :
1621 $as_echo_n "(cached) " >&6
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625 $as_echo "$ac_res" >&6; }
1627 # Is the header compilable?
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1629 $as_echo_n "checking $2 usability... " >&6; }
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_header_compiler=yes
1638 ac_header_compiler=no
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1642 $as_echo "$ac_header_compiler" >&6; }
1644 # Is the header present?
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1646 $as_echo_n "checking $2 presence... " >&6; }
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1651 if ac_fn_c_try_cpp "$LINENO"; then :
1652 ac_header_preproc=yes
1654 ac_header_preproc=no
1656 rm -f conftest.err conftest.i conftest.$ac_ext
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1658 $as_echo "$ac_header_preproc" >&6; }
1660 # So? What about this header?
1661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1664 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1670 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1672 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1674 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1676 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1678 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 ( $as_echo "## ---------------------------------- ##
1680 ## Report this to libdns@nlnetlabs.nl ##
1681 ## ---------------------------------- ##"
1682 ) | sed "s/^/$as_me: WARNING: /" >&2
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1690 eval "$3=\$ac_header_compiler"
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 } # ac_fn_c_check_header_mongrel
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=$ac_status
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1759 if ac_fn_c_try_compile "$LINENO"; then :
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 } # ac_fn_c_check_header_compile
1773 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1774 # -------------------------------------------
1775 # Tests whether TYPE exists after having included INCLUDES, setting cache
1776 # variable VAR accordingly.
1777 ac_fn_c_check_type ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_type
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1896 # include <limits.h>
1898 # include <assert.h>
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1925 if ac_fn_c_try_link "$LINENO"; then :
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_func
1940 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1941 # ---------------------------------------------
1942 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1944 ac_fn_c_check_decl ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 as_decl_name=`echo $2|sed 's/ *(.*//'`
1948 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1950 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1960 #ifndef $as_decl_name
1962 (void) $as_decl_use;
1964 (void) $as_decl_name;
1972 if ac_fn_c_try_compile "$LINENO"; then :
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 } # ac_fn_c_check_decl
1986 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987 # --------------------------------------------
1988 # Tries to find the compile-time value of EXPR in a program that includes
1989 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1991 ac_fn_c_compute_int ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2002 static int test_array [1 - 2 * !(($2) >= 0)];
2009 if ac_fn_c_try_compile "$LINENO"; then :
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid; break
2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2029 if test $ac_lo -le $ac_mid; then
2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) < 0)];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=$ac_mid; break
2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2071 if test $ac_mid -le $ac_hi; then
2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 # Binary search between lo and hi bounds.
2086 while test "x$ac_lo" != "x$ac_hi"; do
2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 if ac_fn_c_try_compile "$LINENO"; then :
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2124 FILE *f = fopen ("conftest.val", "w");
2129 long int i = longval ();
2132 fprintf (f, "%ld", i);
2136 unsigned long int i = ulongval ();
2139 fprintf (f, "%lu", i);
2141 /* Do not output a trailing newline, as this causes \r\n confusion
2142 on some platforms. */
2143 return ferror (f) || fclose (f) != 0;
2149 if ac_fn_c_try_run "$LINENO"; then :
2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2155 conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2162 } # ac_fn_c_compute_int
2164 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165 # ----------------------------------------------------
2166 # Tries to find if the field MEMBER exists in type AGGR, after including
2167 # INCLUDES, setting cache variable VAR accordingly.
2168 ac_fn_c_check_member ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2172 $as_echo_n "checking for $2.$3... " >&6; }
2173 if eval \${$4+:} false; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2189 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2199 if (sizeof ac_aggr.$3)
2205 if ac_fn_c_try_compile "$LINENO"; then :
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 } # ac_fn_c_check_member
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2224 It was created by ldns $as_me 1.6.16, which was
2225 generated by GNU Autoconf 2.68. Invocation command line was
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2247 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2250 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2251 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2252 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2285 ac_must_keep_next=false
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 -* ) ac_must_keep_next=true ;;
2317 as_fn_append ac_configure_args " '$ac_arg'"
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2335 $as_echo "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2339 # The following way of writing the cache mishandles newlines in values,
2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342 eval ac_val=\$$ac_var
2346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 _ | IFS | as_nl) ;; #(
2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352 *) { eval $ac_var=; unset $ac_var;} ;;
2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358 *${as_nl}ac_space=\ *)
2360 "s/'\''/'\''\\\\'\'''\''/g;
2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2371 $as_echo "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2375 for ac_var in $ac_subst_vars
2377 eval ac_val=\$$ac_var
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 $as_echo "$ac_var='\''$ac_val'\''"
2385 if test -n "$ac_subst_files"; then
2386 $as_echo "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2390 for ac_var in $ac_subst_files
2392 eval ac_val=\$$ac_var
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 $as_echo "$ac_var='\''$ac_val'\''"
2401 if test -s confdefs.h; then
2402 $as_echo "## ----------- ##
2409 test "$ac_signal" != 0 &&
2410 $as_echo "$as_me: caught signal $ac_signal"
2411 $as_echo "$as_me: exit $exit_status"
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 for ac_signal in 1 2 13 15; do
2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2425 $as_echo "/* confdefs.h */" > confdefs.h
2427 # Predefined preprocessor variables.
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_NAME "$PACKAGE_NAME"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_STRING "$PACKAGE_STRING"
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_URL "$PACKAGE_URL"
2454 # Let the site file select an alternate cache file if it wants to.
2455 # Prefer an explicitly selected file to automatically selected ones.
2458 if test -n "$CONFIG_SITE"; then
2459 # We do not want a PATH search for config.site.
2460 case $CONFIG_SITE in #((
2461 -*) ac_site_file1=./$CONFIG_SITE;;
2462 */*) ac_site_file1=$CONFIG_SITE;;
2463 *) ac_site_file1=./$CONFIG_SITE;;
2465 elif test "x$prefix" != xNONE; then
2466 ac_site_file1=$prefix/share/config.site
2467 ac_site_file2=$prefix/etc/config.site
2469 ac_site_file1=$ac_default_prefix/share/config.site
2470 ac_site_file2=$ac_default_prefix/etc/config.site
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2474 test "x$ac_site_file" = xNONE && continue
2475 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478 sed 's/^/| /' "$ac_site_file" >&5
2480 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See \`config.log' for more details" "$LINENO" 5; }
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special files
2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2504 # Check that the precious variables saved in the cache have kept the same
2506 ac_cache_corrupted=false
2507 for ac_var in $ac_precious_vars; do
2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2509 eval ac_new_set=\$ac_env_${ac_var}_set
2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2511 eval ac_new_val=\$ac_env_${ac_var}_value
2512 case $ac_old_set,$ac_new_set in
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2515 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2519 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2523 if test "x$ac_old_val" != "x$ac_new_val"; then
2524 # differences in whitespace do not lead to failure.
2525 ac_old_val_w=`echo x $ac_old_val`
2526 ac_new_val_w=`echo x $ac_new_val`
2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2529 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2530 ac_cache_corrupted=:
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2533 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2534 eval $ac_var=\$ac_old_val
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2537 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2539 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2542 # Pass precious variables to config.status.
2543 if test "$ac_new_set" = set; then
2545 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2546 *) ac_arg=$ac_var=$ac_new_val ;;
2548 case " $ac_configure_args " in
2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 if $ac_cache_corrupted; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2558 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2559 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 ## -------------------- ##
2562 ## Main body of script. ##
2563 ## -------------------- ##
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 # needed to build correct soname
2574 LIBTOOL_VERSION_INFO=1:6:16
2576 LDNS_VERSION_MAJOR=1
2578 LDNS_VERSION_MINOR=6
2580 LDNS_VERSION_MICRO=16
2584 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 if test -n "$ac_tool_prefix"; then
2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2594 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if ${ac_cv_prog_CC+:} false; then :
2598 $as_echo_n "(cached) " >&6
2600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 if test -n "$CC"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2623 $as_echo "$CC" >&6; }
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2631 if test -z "$ac_cv_prog_CC"; then
2633 # Extract the first word of "gcc", so it can be a program name with args.
2634 set dummy gcc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC="gcc"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2663 $as_echo "$ac_ct_CC" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2669 if test "x$ac_ct_CC" = x; then
2672 case $cross_compiling:$ac_tool_warned in
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2676 ac_tool_warned=yes ;;
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}cc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="${ac_tool_prefix}cc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 if test -n "$CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 $as_echo "$CC" >&6; }
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2725 if test -z "$CC"; then
2726 # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_CC+:} false; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected=yes
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test $ac_prog_rejected = yes; then
2757 # We found a bogon in the path, so make sure we never use it.
2758 set dummy $ac_cv_prog_CC
2760 if test $# != 0; then
2761 # We chose a different compiler from the bogus one.
2762 # However, it has the same basename, so the bogon will be chosen
2763 # first if we set CC to just the basename; use the full file name.
2765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in cl.exe
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if ${ac_cv_prog_CC+:} false; then :
2790 $as_echo_n "(cached) " >&6
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2822 test -n "$CC" && break
2825 if test -z "$CC"; then
2827 for ac_prog in cl.exe
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CC="$ac_prog"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2859 $as_echo "$ac_ct_CC" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2866 test -n "$ac_ct_CC" && break
2869 if test "x$ac_ct_CC" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2885 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 as_fn_error $? "no acceptable C compiler found in \$PATH
2888 See \`config.log' for more details" "$LINENO" 5; }
2890 # Provide some information about the compiler.
2891 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2894 for ac_option in --version -v -V -qversion; do
2895 { { ac_try="$ac_compiler $ac_option >&5"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2904 if test -s conftest.err; then
2906 ... rest of stderr output deleted ...
2907 10q' conftest.err >conftest.er1
2908 cat conftest.er1 >&5
2910 rm -f conftest.er1 conftest.err
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; }
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2926 ac_clean_files_save=$ac_clean_files
2927 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2928 # Try to create an executable without -o first, disregard a.out.
2929 # It will help us diagnose broken compilers, and finding out an intuition
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2932 $as_echo_n "checking whether the C compiler works... " >&6; }
2933 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2935 # The possible output files:
2936 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2939 for ac_file in $ac_files
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2948 if { { ac_try="$ac_link_default"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_link_default") 2>&5
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }; then :
2959 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2960 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2961 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2962 # so that the user can short-circuit this test for compilers unknown to
2964 for ac_file in $ac_files ''
2966 test -f "$ac_file" || continue
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2971 # We found the default executable, but exeext='' is most
2975 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2977 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # We set ac_cv_exeext here because the later test for it is not
2980 # safe: cross compilers may not add the suffix if given an `-o'
2981 # argument, so we may need to know it at that point already.
2982 # Even if this section looks crufty: it has the advantage of
2989 test "$ac_cv_exeext" = no && ac_cv_exeext=
2994 if test -z "$ac_file"; then :
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3002 as_fn_error 77 "C compiler cannot create executables
3003 See \`config.log' for more details" "$LINENO" 5; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3009 $as_echo_n "checking for C compiler default output file name... " >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3011 $as_echo "$ac_file" >&6; }
3012 ac_exeext=$ac_cv_exeext
3014 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3015 ac_clean_files=$ac_clean_files_save
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3017 $as_echo_n "checking for suffix of executables... " >&6; }
3018 if { { ac_try="$ac_link"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3030 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3031 # work properly (i.e., refer to `conftest.exe'), while it won't with
3033 for ac_file in conftest.exe conftest conftest.*; do
3034 test -f "$ac_file" || continue
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3046 See \`config.log' for more details" "$LINENO" 5; }
3048 rm -f conftest conftest$ac_cv_exeext
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3050 $as_echo "$ac_cv_exeext" >&6; }
3052 rm -f conftest.$ac_ext
3053 EXEEXT=$ac_cv_exeext
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3061 FILE *f = fopen ("conftest.out", "w");
3062 return ferror (f) || fclose (f) != 0;
3068 ac_clean_files="$ac_clean_files conftest.out"
3069 # Check that the compiler produces executables we can run. If not, either
3070 # the compiler is broken, or we cross compile.
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3072 $as_echo_n "checking whether we are cross compiling... " >&6; }
3073 if test "$cross_compiling" != yes; then
3074 { { ac_try="$ac_link"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_link") 2>&5
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3085 if { ac_try='./conftest$ac_cv_exeext'
3086 { { case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_try") 2>&5
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; }; then
3098 if test "$cross_compiling" = maybe; then
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot run C compiled programs.
3104 If you meant to cross compile, use \`--host'.
3105 See \`config.log' for more details" "$LINENO" 5; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3110 $as_echo "$cross_compiling" >&6; }
3112 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3113 ac_clean_files=$ac_clean_files_save
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3115 $as_echo_n "checking for suffix of object files... " >&6; }
3116 if ${ac_cv_objext+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3130 rm -f conftest.o conftest.obj
3131 if { { ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_compile") 2>&5
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
3142 for ac_file in conftest.o conftest.obj conftest.*; do
3143 test -f "$ac_file" || continue;
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details" "$LINENO" 5; }
3159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3162 $as_echo "$ac_cv_objext" >&6; }
3163 OBJEXT=$ac_cv_objext
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3166 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3167 if ${ac_cv_c_compiler_gnu+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3184 if ac_fn_c_try_compile "$LINENO"; then :
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3194 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3195 if test $ac_compiler_gnu = yes; then
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3203 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3204 if ${ac_cv_prog_cc_g+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 ac_save_c_werror_flag=$ac_c_werror_flag
3208 ac_c_werror_flag=yes
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3222 if ac_fn_c_try_compile "$LINENO"; then :
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 if ac_fn_c_try_compile "$LINENO"; then :
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3253 if ac_fn_c_try_compile "$LINENO"; then :
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_c_werror_flag=$ac_save_c_werror_flag
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3264 $as_echo "$ac_cv_prog_cc_g" >&6; }
3265 if test "$ac_test_CFLAGS" = set; then
3266 CFLAGS=$ac_save_CFLAGS
3267 elif test $ac_cv_prog_cc_g = yes; then
3268 if test "$GCC" = yes; then
3274 if test "$GCC" = yes; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3281 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3282 if ${ac_cv_prog_cc_c89+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 ac_cv_prog_cc_c89=no
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3291 #include <sys/types.h>
3292 #include <sys/stat.h>
3293 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3294 struct buf { int x; };
3295 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3296 static char *e (p, i)
3302 static char *f (char * (*g) (char **, int), char **p, ...)
3307 s = g (p, va_arg (v,int));
3312 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3313 function prototypes and stuff, but not '\xHH' hex character constants.
3314 These don't provoke an error unfortunately, instead are silently treated
3315 as 'x'. The following induces an error, until -std is added to get
3316 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3317 array size at least. It's necessary to write '\x00'==0 to get something
3318 that's true only with -std. */
3319 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3321 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3322 inside strings and character constants. */
3324 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3326 int test (int i, double x);
3327 struct s1 {int (*f) (int a);};
3328 struct s2 {int (*f) (double a);};
3329 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3335 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3340 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3341 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3343 CC="$ac_save_CC $ac_arg"
3344 if ac_fn_c_try_compile "$LINENO"; then :
3345 ac_cv_prog_cc_c89=$ac_arg
3347 rm -f core conftest.err conftest.$ac_objext
3348 test "x$ac_cv_prog_cc_c89" != "xno" && break
3350 rm -f conftest.$ac_ext
3355 case "x$ac_cv_prog_cc_c89" in
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3358 $as_echo "none needed" >&6; } ;;
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3361 $as_echo "unsupported" >&6; } ;;
3363 CC="$CC $ac_cv_prog_cc_c89"
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3365 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3367 if test "x$ac_cv_prog_cc_c89" != xno; then :
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3384 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3385 # On Suns, sometimes $CPP names a directory.
3386 if test -n "$CPP" && test -d "$CPP"; then
3389 if test -z "$CPP"; then
3390 if ${ac_cv_prog_CPP+:} false; then :
3391 $as_echo_n "(cached) " >&6
3393 # Double quotes because CPP needs to be expanded
3394 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3397 for ac_c_preproc_warn_flag in '' yes
3399 # Use a header file that comes with gcc, so configuring glibc
3400 # with a fresh cross-compiler works.
3401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 # <limits.h> exists even on freestanding compilers.
3403 # On the NeXT, cc -E runs the code through the compiler's parser,
3404 # not just through cpp. "Syntax error" is here to catch this case.
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3408 # include <limits.h>
3410 # include <assert.h>
3414 if ac_fn_c_try_cpp "$LINENO"; then :
3417 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.i conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if ac_fn_c_try_cpp "$LINENO"; then :
3429 # Broken: success on invalid input.
3432 # Passes both tests.
3436 rm -f conftest.err conftest.i conftest.$ac_ext
3439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440 rm -f conftest.i conftest.err conftest.$ac_ext
3441 if $ac_preproc_ok; then :
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3454 $as_echo "$CPP" >&6; }
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if ac_fn_c_try_cpp "$LINENO"; then :
3476 # Broken: fails on valid input.
3479 rm -f conftest.err conftest.i conftest.$ac_ext
3481 # OK, works on sane cases. Now check whether nonexistent headers
3482 # can be detected and how.
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485 #include <ac_nonexistent.h>
3487 if ac_fn_c_try_cpp "$LINENO"; then :
3488 # Broken: success on invalid input.
3491 # Passes both tests.
3495 rm -f conftest.err conftest.i conftest.$ac_ext
3498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499 rm -f conftest.i conftest.err conftest.$ac_ext
3500 if $ac_preproc_ok; then :
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3506 See \`config.log' for more details" "$LINENO" 5; }
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3518 if ${ac_cv_path_GREP+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -z "$GREP"; then
3522 ac_path_GREP_found=false
3523 # Loop through the user's path and test for each of PROGNAME-LIST
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3528 test -z "$as_dir" && as_dir=.
3529 for ac_prog in grep ggrep; do
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3533 # Check for GNU ac_path_GREP and select it if it is found.
3534 # Check for GNU $ac_path_GREP
3535 case `"$ac_path_GREP" --version 2>&1` in
3537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3540 $as_echo_n 0123456789 >"conftest.in"
3543 cat "conftest.in" "conftest.in" >"conftest.tmp"
3544 mv "conftest.tmp" "conftest.in"
3545 cp "conftest.in" "conftest.nl"
3546 $as_echo 'GREP' >> "conftest.nl"
3547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3549 as_fn_arith $ac_count + 1 && ac_count=$as_val
3550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3551 # Best one so far, save it but keep looking for a better one
3552 ac_cv_path_GREP="$ac_path_GREP"
3553 ac_path_GREP_max=$ac_count
3555 # 10*(2^10) chars as input seems more than enough
3556 test $ac_count -gt 10 && break
3558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561 $ac_path_GREP_found && break 3
3566 if test -z "$ac_cv_path_GREP"; then
3567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3570 ac_cv_path_GREP=$GREP
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3575 $as_echo "$ac_cv_path_GREP" >&6; }
3576 GREP="$ac_cv_path_GREP"
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3580 $as_echo_n "checking for egrep... " >&6; }
3581 if ${ac_cv_path_EGREP+:} false; then :
3582 $as_echo_n "(cached) " >&6
3584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3585 then ac_cv_path_EGREP="$GREP -E"
3587 if test -z "$EGREP"; then
3588 ac_path_EGREP_found=false
3589 # Loop through the user's path and test for each of PROGNAME-LIST
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3594 test -z "$as_dir" && as_dir=.
3595 for ac_prog in egrep; do
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3599 # Check for GNU ac_path_EGREP and select it if it is found.
3600 # Check for GNU $ac_path_EGREP
3601 case `"$ac_path_EGREP" --version 2>&1` in
3603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3606 $as_echo_n 0123456789 >"conftest.in"
3609 cat "conftest.in" "conftest.in" >"conftest.tmp"
3610 mv "conftest.tmp" "conftest.in"
3611 cp "conftest.in" "conftest.nl"
3612 $as_echo 'EGREP' >> "conftest.nl"
3613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3615 as_fn_arith $ac_count + 1 && ac_count=$as_val
3616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3617 # Best one so far, save it but keep looking for a better one
3618 ac_cv_path_EGREP="$ac_path_EGREP"
3619 ac_path_EGREP_max=$ac_count
3621 # 10*(2^10) chars as input seems more than enough
3622 test $ac_count -gt 10 && break
3624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3627 $ac_path_EGREP_found && break 3
3632 if test -z "$ac_cv_path_EGREP"; then
3633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3636 ac_cv_path_EGREP=$EGREP
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3642 $as_echo "$ac_cv_path_EGREP" >&6; }
3643 EGREP="$ac_cv_path_EGREP"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3647 $as_echo_n "checking for ANSI C header files... " >&6; }
3648 if ${ac_cv_header_stdc+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_header_stdc=yes
3669 ac_cv_header_stdc=no
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 if test $ac_cv_header_stdc = yes; then
3674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 $EGREP "memchr" >/dev/null 2>&1; then :
3684 ac_cv_header_stdc=no
3690 if test $ac_cv_header_stdc = yes; then
3691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698 $EGREP "free" >/dev/null 2>&1; then :
3701 ac_cv_header_stdc=no
3707 if test $ac_cv_header_stdc = yes; then
3708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3709 if test "$cross_compiling" = yes; then :
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 #if ((' ' & 0x0FF) == 0x020)
3717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3720 # define ISLOWER(c) \
3721 (('a' <= (c) && (c) <= 'i') \
3722 || ('j' <= (c) && (c) <= 'r') \
3723 || ('s' <= (c) && (c) <= 'z'))
3724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3732 for (i = 0; i < 256; i++)
3733 if (XOR (islower (i), ISLOWER (i))
3734 || toupper (i) != TOUPPER (i))
3739 if ac_fn_c_try_run "$LINENO"; then :
3742 ac_cv_header_stdc=no
3744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3745 conftest.$ac_objext conftest.beam conftest.$ac_ext
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3751 $as_echo "$ac_cv_header_stdc" >&6; }
3752 if test $ac_cv_header_stdc = yes; then
3754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3760 inttypes.h stdint.h unistd.h
3762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3766 cat >>confdefs.h <<_ACEOF
3767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3777 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3784 if test "$MINIX" = yes; then
3786 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3789 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3792 $as_echo "#define _MINIX 1" >>confdefs.h
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3798 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3799 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3805 # define __EXTENSIONS__ 1
3806 $ac_includes_default
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_safe_to_define___extensions__=yes
3818 ac_cv_safe_to_define___extensions__=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3823 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3824 test $ac_cv_safe_to_define___extensions__ = yes &&
3825 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3827 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3829 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3831 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3833 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3837 # Checks for programs.
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_CC+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 if test -n "$CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 $as_echo "$CC" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3882 if test -z "$ac_cv_prog_CC"; then
3884 # Extract the first word of "gcc", so it can be a program name with args.
3885 set dummy gcc; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -n "$ac_ct_CC"; then
3892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_ac_ct_CC="gcc"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3912 if test -n "$ac_ct_CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3914 $as_echo "$ac_ct_CC" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3920 if test "x$ac_ct_CC" = x; then
3923 case $cross_compiling:$ac_tool_warned in
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}cc; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_CC+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_CC="${ac_tool_prefix}cc"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3976 if test -z "$CC"; then
3977 # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_CC+:} false; then :
3982 $as_echo_n "(cached) " >&6
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3996 ac_prog_rejected=yes
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test $ac_prog_rejected = yes; then
4008 # We found a bogon in the path, so make sure we never use it.
4009 set dummy $ac_cv_prog_CC
4011 if test $# != 0; then
4012 # We chose a different compiler from the bogus one.
4013 # However, it has the same basename, so the bogon will be chosen
4014 # first if we set CC to just the basename; use the full file name.
4016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4032 if test -z "$CC"; then
4033 if test -n "$ac_tool_prefix"; then
4034 for ac_prog in cl.exe
4036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_CC+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 if test -n "$CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 $as_echo "$CC" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4073 test -n "$CC" && break
4076 if test -z "$CC"; then
4078 for ac_prog in cl.exe
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -n "$ac_ct_CC"; then
4088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_ac_ct_CC="$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4110 $as_echo "$ac_ct_CC" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 test -n "$ac_ct_CC" && break
4120 if test "x$ac_ct_CC" = x; then
4123 case $cross_compiling:$ac_tool_warned in
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4127 ac_tool_warned=yes ;;
4136 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "no acceptable C compiler found in \$PATH
4139 See \`config.log' for more details" "$LINENO" 5; }
4141 # Provide some information about the compiler.
4142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4145 for ac_option in --version -v -V -qversion; do
4146 { { ac_try="$ac_compiler $ac_option >&5"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 $as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4155 if test -s conftest.err; then
4157 ... rest of stderr output deleted ...
4158 10q' conftest.err >conftest.er1
4159 cat conftest.er1 >&5
4161 rm -f conftest.er1 conftest.err
4162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163 test $ac_status = 0; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4167 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4168 if ${ac_cv_c_compiler_gnu+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4185 if ac_fn_c_try_compile "$LINENO"; then :
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4195 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4196 if test $ac_compiler_gnu = yes; then
4201 ac_test_CFLAGS=${CFLAGS+set}
4202 ac_save_CFLAGS=$CFLAGS
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4204 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4205 if ${ac_cv_prog_cc_g+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 ac_save_c_werror_flag=$ac_c_werror_flag
4209 ac_c_werror_flag=yes
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4223 if ac_fn_c_try_compile "$LINENO"; then :
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4238 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_c_werror_flag=$ac_save_c_werror_flag
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4254 if ac_fn_c_try_compile "$LINENO"; then :
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_c_werror_flag=$ac_save_c_werror_flag
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4265 $as_echo "$ac_cv_prog_cc_g" >&6; }
4266 if test "$ac_test_CFLAGS" = set; then
4267 CFLAGS=$ac_save_CFLAGS
4268 elif test $ac_cv_prog_cc_g = yes; then
4269 if test "$GCC" = yes; then
4275 if test "$GCC" = yes; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4282 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4283 if ${ac_cv_prog_cc_c89+:} false; then :
4284 $as_echo_n "(cached) " >&6
4286 ac_cv_prog_cc_c89=no
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4292 #include <sys/types.h>
4293 #include <sys/stat.h>
4294 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4295 struct buf { int x; };
4296 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4297 static char *e (p, i)
4303 static char *f (char * (*g) (char **, int), char **p, ...)
4308 s = g (p, va_arg (v,int));
4313 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4314 function prototypes and stuff, but not '\xHH' hex character constants.
4315 These don't provoke an error unfortunately, instead are silently treated
4316 as 'x'. The following induces an error, until -std is added to get
4317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4318 array size at least. It's necessary to write '\x00'==0 to get something
4319 that's true only with -std. */
4320 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4322 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4323 inside strings and character constants. */
4325 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4327 int test (int i, double x);
4328 struct s1 {int (*f) (int a);};
4329 struct s2 {int (*f) (double a);};
4330 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4336 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4342 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4344 CC="$ac_save_CC $ac_arg"
4345 if ac_fn_c_try_compile "$LINENO"; then :
4346 ac_cv_prog_cc_c89=$ac_arg
4348 rm -f core conftest.err conftest.$ac_objext
4349 test "x$ac_cv_prog_cc_c89" != "xno" && break
4351 rm -f conftest.$ac_ext
4356 case "x$ac_cv_prog_cc_c89" in
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4359 $as_echo "none needed" >&6; } ;;
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4362 $as_echo "unsupported" >&6; } ;;
4364 CC="$CC $ac_cv_prog_cc_c89"
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4366 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4368 if test "x$ac_cv_prog_cc_c89" != xno; then :
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
4380 $as_echo_n "checking $CC dependency flag... " >&6; }
4381 echo 'void f(){}' >conftest.c
4382 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4385 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
4388 DEPFLAG="-MM" # dunno do something
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
4392 $as_echo "$DEPFLAG" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4397 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4399 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4400 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 cat >conftest.make <<\_ACEOF
4406 @echo '@@@%%%=$(MAKE)=@@@%%%'
4408 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4409 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4411 eval ac_cv_prog_make_${ac_make}_set=yes;;
4413 eval ac_cv_prog_make_${ac_make}_set=no;;
4417 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 SET_MAKE="MAKE=${MAKE-make}"
4428 # Extra (sp)lint flags for NetBSD
4430 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4431 if test -f "$ac_dir/install-sh"; then
4433 ac_install_sh="$ac_aux_dir/install-sh -c"
4435 elif test -f "$ac_dir/install.sh"; then
4437 ac_install_sh="$ac_aux_dir/install.sh -c"
4439 elif test -f "$ac_dir/shtool"; then
4441 ac_install_sh="$ac_aux_dir/shtool install -c"
4445 if test -z "$ac_aux_dir"; then
4446 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4449 # These three variables are undocumented and unsupported,
4450 # and are intended to be withdrawn in a future Autoconf release.
4451 # They can cause serious problems if a builder's source tree is in a directory
4452 # whose full name contains unusual characters.
4453 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4454 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4455 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4458 # Make sure we can run config.sub.
4459 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4463 $as_echo_n "checking build system type... " >&6; }
4464 if ${ac_cv_build+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 ac_build_alias=$build_alias
4468 test "x$ac_build_alias" = x &&
4469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4470 test "x$ac_build_alias" = x &&
4471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4477 $as_echo "$ac_cv_build" >&6; }
4478 case $ac_cv_build in
4480 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4483 ac_save_IFS=$IFS; IFS='-'
4489 # Remember, the first character of IFS is used to create $*,
4490 # except with old shells:
4493 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4497 $as_echo_n "checking host system type... " >&6; }
4498 if ${ac_cv_host+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 if test "x$host_alias" = x; then
4502 ac_cv_host=$ac_cv_build
4504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4510 $as_echo "$ac_cv_host" >&6; }
4513 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4516 ac_save_IFS=$IFS; IFS='-'
4522 # Remember, the first character of IFS is used to create $*,
4523 # except with old shells:
4526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4530 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
4532 *) LINTFLAGS="$LINTFLAGS"
4538 $as_echo "#define WINVER 0x0502" >>confdefs.h
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4544 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4545 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4546 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4547 $as_echo_n "(cached) " >&6
4550 echo 'void f(){}' >conftest.c
4551 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4552 eval "cv_prog_cc_flag_$cache=yes"
4554 eval "cv_prog_cc_flag_$cache=no"
4556 rm -f conftest conftest.o conftest.c
4560 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4575 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4576 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4577 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4578 $as_echo_n "(cached) " >&6
4581 echo 'void f(){}' >conftest.c
4582 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4583 eval "cv_prog_cc_flag_$cache=yes"
4585 eval "cv_prog_cc_flag_$cache=no"
4587 rm -f conftest conftest.o conftest.c
4591 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4604 # routine to copy files
4605 # argument 1 is a list of files (relative to the source dir)
4606 # argument 2 is a destination directory (relative to the current
4610 # copy all .h files in the dir at argument 1
4611 # (relative to source) to the dir at argument 2
4612 # (relative to current dir)
4615 # Checks for typedefs, structures, and compiler characteristics.
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4617 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4618 if ${ac_cv_c_const+:} false; then :
4619 $as_echo_n "(cached) " >&6
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4627 /* FIXME: Include the comments suggested by Paul. */
4629 /* Ultrix mips cc rejects this. */
4630 typedef int charset[2];
4632 /* SunOS 4.1.1 cc rejects this. */
4633 char const *const *pcpcc;
4635 /* NEC SVR4.0.2 mips cc rejects this. */
4636 struct point {int x, y;};
4637 static struct point const zero = {0,0};
4638 /* AIX XL C 1.02.0.0 rejects this.
4639 It does not let you subtract one const X* pointer from another in
4640 an arm of an if-expression whose if-part is not a constant
4642 const char *g = "string";
4643 pcpcc = &g + (g ? g-g : 0);
4644 /* HPUX 7.0 cc rejects these. */
4646 ppc = (char**) pcpcc;
4647 pcpcc = (char const *const *) ppc;
4648 { /* SCO 3.2v4 cc rejects this. */
4650 char const *s = 0 ? (char *) 0 : (char const *) 0;
4655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4657 const int *foo = &x[0];
4660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4661 typedef const int *iptr;
4665 { /* AIX XL C 1.02.0.0 rejects this saying
4666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4667 struct s { int j; const int *ap[3]; };
4668 struct s *b; b->j = 5;
4670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4674 return !cs[0] && !zero.x;
4681 if ac_fn_c_try_compile "$LINENO"; then :
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4689 $as_echo "$ac_cv_c_const" >&6; }
4690 if test $ac_cv_c_const = no; then
4692 $as_echo "#define const /**/" >>confdefs.h
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 if test "x$CFLAGS" = "x" ; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
4706 $as_echo_n "checking whether $CC supports -g... " >&6; }
4707 cache=`echo g | sed 'y%.=/+-%___p_%'`
4708 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4709 $as_echo_n "(cached) " >&6
4712 echo 'void f(){}' >conftest.c
4713 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
4714 eval "cv_prog_cc_flag_$cache=yes"
4716 eval "cv_prog_cc_flag_$cache=no"
4718 rm -f conftest conftest.o conftest.c
4722 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4724 $as_echo "yes" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4737 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4738 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4739 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4740 $as_echo_n "(cached) " >&6
4743 echo 'void f(){}' >conftest.c
4744 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4745 eval "cv_prog_cc_flag_$cache=yes"
4747 eval "cv_prog_cc_flag_$cache=no"
4749 rm -f conftest conftest.o conftest.c
4753 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755 $as_echo "yes" >&6; }
4757 CFLAGS="-O2 $CFLAGS"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4769 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4770 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4771 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4772 $as_echo_n "(cached) " >&6
4775 echo 'void f(){}' >conftest.c
4776 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4777 eval "cv_prog_cc_flag_$cache=yes"
4779 eval "cv_prog_cc_flag_$cache=no"
4781 rm -f conftest conftest.o conftest.c
4785 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787 $as_echo "yes" >&6; }
4789 CFLAGS="-Wall $CFLAGS"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
4800 $as_echo_n "checking whether $CC supports -W... " >&6; }
4801 cache=`echo W | sed 'y%.=/+-%___p_%'`
4802 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4803 $as_echo_n "(cached) " >&6
4806 echo 'void f(){}' >conftest.c
4807 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
4808 eval "cv_prog_cc_flag_$cache=yes"
4810 eval "cv_prog_cc_flag_$cache=no"
4812 rm -f conftest conftest.o conftest.c
4816 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4818 $as_echo "yes" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
4831 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
4832 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
4833 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4834 $as_echo_n "(cached) " >&6
4837 echo 'void f(){}' >conftest.c
4838 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
4839 eval "cv_prog_cc_flag_$cache=yes"
4841 eval "cv_prog_cc_flag_$cache=no"
4843 rm -f conftest conftest.o conftest.c
4847 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 $as_echo "yes" >&6; }
4851 CFLAGS="-Wwrite-strings $CFLAGS"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4861 for ac_header in getopt.h time.h
4863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4867 cat >>confdefs.h <<_ACEOF
4868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4877 for ac_header in winsock2.h ws2tcpip.h
4879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4883 cat >>confdefs.h <<_ACEOF
4884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4897 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4898 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4899 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4900 $as_echo_n "(cached) " >&6
4903 echo 'void f(){}' >conftest.c
4904 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4905 eval "cv_prog_cc_flag_$cache=yes"
4907 eval "cv_prog_cc_flag_$cache=no"
4909 rm -f conftest conftest.o conftest.c
4913 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4915 $as_echo "yes" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4928 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4929 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4930 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4931 $as_echo_n "(cached) " >&6
4934 echo 'void f(){}' >conftest.c
4935 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4936 eval "cv_prog_cc_flag_$cache=yes"
4938 eval "cv_prog_cc_flag_$cache=no"
4940 rm -f conftest conftest.o conftest.c
4944 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4946 $as_echo "yes" >&6; }
4948 ERRFLAG="$ERRFLAG -Wall"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4953 ERRFLAG="$ERRFLAG -errfmt"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4961 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4962 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4963 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4964 $as_echo_n "(cached) " >&6
4967 echo 'void f(){}' >conftest.c
4968 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4969 eval "cv_prog_cc_flag_$cache=yes"
4971 eval "cv_prog_cc_flag_$cache=no"
4973 rm -f conftest conftest.o conftest.c
4977 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4979 $as_echo "yes" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4992 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4993 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4994 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4995 $as_echo_n "(cached) " >&6
4998 echo 'void f(){}' >conftest.c
4999 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
5000 eval "cv_prog_cc_flag_$cache=yes"
5002 eval "cv_prog_cc_flag_$cache=no"
5004 rm -f conftest conftest.o conftest.c
5008 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5021 for ac_header in getopt.h time.h
5023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5027 cat >>confdefs.h <<_ACEOF
5028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 { $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
5040 $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; }
5041 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`
5042 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5043 $as_echo_n "(cached) " >&6
5047 #include "confdefs.h"
5050 #include <sys/time.h>
5056 #ifdef HAVE_GETOPT_H
5067 const char* str = NULL;
5069 msg.msg_control = 0;
5070 t = ctime_r(&time, buf);
5073 a = getopt(2, opts, "a");
5075 str = gai_strerror(0);
5076 if(str && t && tv.tv_usec && msg.msg_control)
5081 echo 'void f(){}' >>conftest.c
5082 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5083 eval "cv_prog_cc_flag_needed_$cache=no"
5086 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
5087 eval "cv_prog_cc_flag_needed_$cache=yes"
5089 eval "cv_prog_cc_flag_needed_$cache=fail"
5090 #echo 'Test with flag fails too!'
5092 #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"
5093 #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`
5098 rm -f conftest conftest.c conftest.o
5102 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5106 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"
5108 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 #echo 'Test with flag is no!'
5113 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5114 #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`
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5120 $as_echo "failed" >&6; }
5130 { $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
5131 $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; }
5132 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5133 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5134 $as_echo_n "(cached) " >&6
5138 #include "confdefs.h"
5141 #include <sys/time.h>
5147 #ifdef HAVE_GETOPT_H
5158 const char* str = NULL;
5160 msg.msg_control = 0;
5161 t = ctime_r(&time, buf);
5164 a = getopt(2, opts, "a");
5166 str = gai_strerror(0);
5167 if(str && t && tv.tv_usec && msg.msg_control)
5172 echo 'void f(){}' >>conftest.c
5173 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5174 eval "cv_prog_cc_flag_needed_$cache=no"
5177 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
5178 eval "cv_prog_cc_flag_needed_$cache=yes"
5180 eval "cv_prog_cc_flag_needed_$cache=fail"
5181 #echo 'Test with flag fails too!'
5183 #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"
5184 #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`
5189 rm -f conftest conftest.c conftest.o
5193 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }
5197 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
5199 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 #echo 'Test with flag is no!'
5204 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
5205 #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`
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5211 $as_echo "failed" >&6; }
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
5222 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5223 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
5224 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5225 $as_echo_n "(cached) " >&6
5229 #include <stdbool.h>
5236 echo 'void f(){}' >>conftest.c
5237 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5238 eval "cv_prog_cc_flag_needed_$cache=no"
5241 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
5242 eval "cv_prog_cc_flag_needed_$cache=yes"
5244 eval "cv_prog_cc_flag_needed_$cache=fail"
5245 #echo 'Test with flag fails too!'
5247 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5248 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5253 rm -f conftest conftest.c conftest.o
5257 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5261 CFLAGS="$CFLAGS $C99FLAG"
5263 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 #echo 'Test with flag is no!'
5268 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
5269 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5275 $as_echo "failed" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5286 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
5288 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5289 $as_echo_n "(cached) " >&6
5301 echo 'void f(){}' >>conftest.c
5302 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5303 eval "cv_prog_cc_flag_needed_$cache=no"
5306 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5307 eval "cv_prog_cc_flag_needed_$cache=yes"
5309 eval "cv_prog_cc_flag_needed_$cache=fail"
5310 #echo 'Test with flag fails too!'
5312 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5313 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5318 rm -f conftest conftest.c conftest.o
5322 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5324 $as_echo "yes" >&6; }
5326 CFLAGS="$CFLAGS -D_BSD_SOURCE"
5328 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 #echo 'Test with flag is no!'
5333 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
5334 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5340 $as_echo "failed" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5351 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
5353 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5354 $as_echo_n "(cached) " >&6
5358 #include <netinet/in.h>
5361 struct in6_pktinfo inf;
5362 int a = (int)sizeof(inf);
5366 echo 'void f(){}' >>conftest.c
5367 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5368 eval "cv_prog_cc_flag_needed_$cache=no"
5371 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
5372 eval "cv_prog_cc_flag_needed_$cache=yes"
5374 eval "cv_prog_cc_flag_needed_$cache=fail"
5375 #echo 'Test with flag fails too!'
5377 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5378 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5383 rm -f conftest conftest.c conftest.o
5387 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }
5391 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5393 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 #echo 'Test with flag is no!'
5398 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
5399 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5405 $as_echo "failed" >&6; }
5412 # check again for GNU_SOURCE for setresgid. May fail if setresgid
5413 # is not available at all. -D_FRSRESGID is to make this check unique.
5414 # otherwise we would get the previous cached result.
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5419 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
5420 cache=_D_GNU_SOURCE__D_FRSRESGID
5421 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5422 $as_echo_n "(cached) " >&6
5429 int a = setresgid(0,0,0);
5430 a = setresuid(0,0,0);
5434 echo 'void f(){}' >>conftest.c
5435 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5436 eval "cv_prog_cc_flag_needed_$cache=no"
5439 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
5440 eval "cv_prog_cc_flag_needed_$cache=yes"
5442 eval "cv_prog_cc_flag_needed_$cache=fail"
5443 #echo 'Test with flag fails too!'
5445 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5446 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5451 rm -f conftest conftest.c conftest.o
5455 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457 $as_echo "yes" >&6; }
5459 CFLAGS="$CFLAGS -D_GNU_SOURCE"
5461 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 #echo 'Test with flag is no!'
5466 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
5467 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5473 $as_echo "failed" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5484 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5485 cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
5486 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5487 $as_echo_n "(cached) " >&6
5491 #include "confdefs.h"
5502 const char* str = NULL;
5503 t = ctime_r(&time, buf);
5504 str = gai_strerror(0);
5510 echo 'void f(){}' >>conftest.c
5511 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5512 eval "cv_prog_cc_flag_needed_$cache=no"
5515 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
5516 eval "cv_prog_cc_flag_needed_$cache=yes"
5518 eval "cv_prog_cc_flag_needed_$cache=fail"
5519 #echo 'Test with flag fails too!'
5521 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5522 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5527 rm -f conftest conftest.c conftest.o
5531 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5535 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
5537 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 #echo 'Test with flag is no!'
5542 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
5543 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5549 $as_echo "failed" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5560 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
5561 cache=_D__EXTENSIONS__
5562 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
5563 $as_echo_n "(cached) " >&6
5567 #include "confdefs.h"
5570 #include <sys/time.h>
5575 #ifdef HAVE_GETOPT_H
5585 a = getopt(2, opts, "a");
5592 echo 'void f(){}' >>conftest.c
5593 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
5594 eval "cv_prog_cc_flag_needed_$cache=no"
5597 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
5598 eval "cv_prog_cc_flag_needed_$cache=yes"
5600 eval "cv_prog_cc_flag_needed_$cache=fail"
5601 #echo 'Test with flag fails too!'
5603 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5604 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5609 rm -f conftest conftest.c conftest.o
5613 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615 $as_echo "yes" >&6; }
5617 CFLAGS="$CFLAGS -D__EXTENSIONS__"
5619 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 #echo 'Test with flag is no!'
5624 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
5625 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5631 $as_echo "failed" >&6; }
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5641 $as_echo_n "checking for inline... " >&6; }
5642 if ${ac_cv_c_inline+:} false; then :
5643 $as_echo_n "(cached) " >&6
5646 for ac_kw in inline __inline__ __inline; do
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5651 static $ac_kw foo_t static_foo () {return 0; }
5652 $ac_kw foo_t foo () {return 0; }
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657 ac_cv_c_inline=$ac_kw
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 test "$ac_cv_c_inline" != no && break
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5665 $as_echo "$ac_cv_c_inline" >&6; }
5667 case $ac_cv_c_inline in
5670 case $ac_cv_c_inline in
5672 *) ac_val=$ac_cv_c_inline;;
5674 cat >>confdefs.h <<_ACEOF
5676 #define inline $ac_val
5682 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
5683 if test "x$ac_cv_type_int8_t" = xyes; then :
5687 cat >>confdefs.h <<_ACEOF
5693 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5694 if test "x$ac_cv_type_int16_t" = xyes; then :
5698 cat >>confdefs.h <<_ACEOF
5699 #define int16_t short
5704 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5705 if test "x$ac_cv_type_int32_t" = xyes; then :
5709 cat >>confdefs.h <<_ACEOF
5715 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5716 if test "x$ac_cv_type_int64_t" = xyes; then :
5720 cat >>confdefs.h <<_ACEOF
5721 #define int64_t long long
5726 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5727 if test "x$ac_cv_type_uint8_t" = xyes; then :
5731 cat >>confdefs.h <<_ACEOF
5732 #define uint8_t unsigned char
5737 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5738 if test "x$ac_cv_type_uint16_t" = xyes; then :
5742 cat >>confdefs.h <<_ACEOF
5743 #define uint16_t unsigned short
5748 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5749 if test "x$ac_cv_type_uint32_t" = xyes; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define uint32_t unsigned int
5759 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5760 if test "x$ac_cv_type_uint64_t" = xyes; then :
5764 cat >>confdefs.h <<_ACEOF
5765 #define uint64_t unsigned long long
5772 # Extract the first word of "doxygen", so it can be a program name with args.
5773 set dummy doxygen; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_doxygen+:} false; then :
5777 $as_echo_n "(cached) " >&6
5779 if test -n "$doxygen"; then
5780 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_doxygen="doxygen"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 doxygen=$ac_cv_prog_doxygen
5800 if test -n "$doxygen"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
5802 $as_echo "$doxygen" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5810 # check to see if libraries are needed for these functions.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5812 $as_echo_n "checking for library containing socket... " >&6; }
5813 if ${ac_cv_search_socket+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 ac_func_search_save_LIBS=$LIBS
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5820 /* Override any GCC internal prototype to avoid an error.
5821 Use char because int might match the return type of a GCC
5822 builtin and then its argument prototype would still apply. */
5835 for ac_lib in '' socket; do
5836 if test -z "$ac_lib"; then
5837 ac_res="none required"
5840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5842 if ac_fn_c_try_link "$LINENO"; then :
5843 ac_cv_search_socket=$ac_res
5845 rm -f core conftest.err conftest.$ac_objext \
5847 if ${ac_cv_search_socket+:} false; then :
5851 if ${ac_cv_search_socket+:} false; then :
5854 ac_cv_search_socket=no
5857 LIBS=$ac_func_search_save_LIBS
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5860 $as_echo "$ac_cv_search_socket" >&6; }
5861 ac_res=$ac_cv_search_socket
5862 if test "$ac_res" != no; then :
5863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
5868 $as_echo_n "checking for library containing inet_pton... " >&6; }
5869 if ${ac_cv_search_inet_pton+:} false; then :
5870 $as_echo_n "(cached) " >&6
5872 ac_func_search_save_LIBS=$LIBS
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 /* Override any GCC internal prototype to avoid an error.
5877 Use char because int might match the return type of a GCC
5878 builtin and then its argument prototype would still apply. */
5886 return inet_pton ();
5891 for ac_lib in '' nsl; do
5892 if test -z "$ac_lib"; then
5893 ac_res="none required"
5896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_search_inet_pton=$ac_res
5901 rm -f core conftest.err conftest.$ac_objext \
5903 if ${ac_cv_search_inet_pton+:} false; then :
5907 if ${ac_cv_search_inet_pton+:} false; then :
5910 ac_cv_search_inet_pton=no
5913 LIBS=$ac_func_search_save_LIBS
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
5916 $as_echo "$ac_cv_search_inet_pton" >&6; }
5917 ac_res=$ac_cv_search_inet_pton
5918 if test "$ac_res" != no; then :
5919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5926 # Check whether --with-drill was given.
5927 if test "${with_drill+set}" = set; then :
5928 withval=$with_drill;
5933 if test x_$with_drill != x_no ; then
5936 INSTALL_DRILL=install-drill
5938 UNINSTALL_DRILL=uninstall-drill
5940 CLEAN_DRILL=clean-drill
5942 LINT_DRILL=lint-drill
5944 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
5946 A config.h was detected in the drill subdirectory.
5947 This does not work with the --with-drill option.
5948 Please remove the config.h from the drill subdirectory
5949 or do not use the --with-drill option." "$LINENO" 5
5951 DRILL_CONFIG=" drill/drill.1"
5968 # Check whether --with-examples was given.
5969 if test "${with_examples+set}" = set; then :
5970 withval=$with_examples;
5975 if test x_$with_examples != x_no ; then
5978 INSTALL_EXAMPLES=install-examples
5980 UNINSTALL_EXAMPLES=uninstall-examples
5982 CLEAN_EXAMPLES=clean-examples
5984 LINT_EXAMPLES=lint-examples
5986 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
5988 A config.h was detected in the examples subdirectory.
5989 This does not work with the --with-examples option.
5990 Please remove the config.h from the examples subdirectory
5991 or do not use the --with-examples option." "$LINENO" 5
5993 EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1"
5999 UNINSTALL_EXAMPLES=""
6008 # add option to disable installation of ldns-config script
6009 # Check whether --enable-ldns-config was given.
6010 if test "${enable_ldns_config+set}" = set; then :
6011 enableval=$enable_ldns_config; enable_ldns_config=$enableval
6013 enable_ldns_config=yes
6016 if test "x$enable_ldns_config" = xyes; then
6017 INSTALL_CONFIG=install-config
6019 INSTALL_CONFIG_MANPAGE=install-config-manpage
6021 UNINSTALL_CONFIG=uninstall-config
6023 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
6028 INSTALL_CONFIG_MANPAGE=""
6032 UNINSTALL_CONFIG_MANPAGE=""
6039 ldns_with_pyldnsx=no
6041 # Check whether --with-pyldns was given.
6042 if test "${with_pyldns+set}" = set; then :
6043 withval=$with_pyldns;
6049 if test x_$withval != x_no; then
6050 # ===========================================================================
6051 # http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
6052 # ===========================================================================
6056 # AX_PYTHON_DEVEL([version])
6060 # Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
6061 # in your configure.ac.
6063 # This macro checks for Python and tries to get the include path to
6064 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
6065 # output variables. It also exports $(PYTHON_EXTRA_LIBS) and
6066 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
6068 # You can search for some particular version of Python by passing a
6069 # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
6070 # note that you *have* to pass also an operator along with the version to
6071 # match, and pay special attention to the single quotes surrounding the
6072 # version number. Don't use "PYTHON_VERSION" for this: that environment
6073 # variable is declared as precious and thus reserved for the end-user.
6075 # This macro should work for all versions of Python >= 2.1.0. As an end
6076 # user, you can disable the check for the python version by setting the
6077 # PYTHON_NOVERSIONCHECK environment variable to something else than the
6080 # If you need to use this macro for an older Python version, please
6081 # contact the authors. We're always open for feedback.
6085 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
6086 # Copyright (c) 2009 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
6087 # Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
6088 # Copyright (c) 2009 Andrew Collier <colliera@ukzn.ac.za>
6089 # Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
6090 # Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
6092 # This program is free software: you can redistribute it and/or modify it
6093 # under the terms of the GNU General Public License as published by the
6094 # Free Software Foundation, either version 3 of the License, or (at your
6095 # option) any later version.
6097 # This program is distributed in the hope that it will be useful, but
6098 # WITHOUT ANY WARRANTY; without even the implied warranty of
6099 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
6100 # Public License for more details.
6102 # You should have received a copy of the GNU General Public License along
6103 # with this program. If not, see <http://www.gnu.org/licenses/>.
6105 # As a special exception, the respective Autoconf Macro's copyright owner
6106 # gives unlimited permission to copy, distribute and modify the configure
6107 # scripts that are the output of Autoconf when processing the Macro. You
6108 # need not follow the terms of the GNU General Public License when using
6109 # or distributing such scripts, even though portions of the text of the
6110 # Macro appear in them. The GNU General Public License (GPL) does govern
6111 # all other use of the material that constitutes the Autoconf Macro.
6113 # This special exception to the GPL applies to versions of the Autoconf
6114 # Macro released by the Autoconf Archive. When you make and distribute a
6115 # modified version of the Autoconf Macro, you may extend this special
6116 # exception to the GPL to apply to your modified version as well.
6120 # This is what autoupdate's m4 run will expand. It fires
6121 # the warning (with _au_warn_XXX), outputs it into the
6122 # updated configure.ac (with AC_DIAGNOSE), and then outputs
6123 # the replacement expansion.
6126 # This is an auxiliary macro that is also run when
6127 # autoupdate runs m4. It simply calls m4_warning, but
6128 # we need a wrapper so that each warning is emitted only
6129 # once. We break the quoting in m4_warning's argument in
6130 # order to expand this macro's arguments, not AU_DEFUN's.
6133 # Finally, this is the expansion that is picked up by
6134 # autoconf. It tells the user to run autoupdate, and
6135 # then outputs the replacement expansion. We do not care
6136 # about autoupdate's warning because that contains
6137 # information on what to do *after* running autoupdate.
6141 ac_save_LIBS="$LIBS"
6144 # Allow the use of a (user set) custom python version
6148 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
6149 set dummy python$PYTHON_VERSION; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_path_PYTHON+:} false; then :
6153 $as_echo_n "(cached) " >&6
6157 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 PYTHON=$ac_cv_path_PYTHON
6179 if test -n "$PYTHON"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6181 $as_echo "$PYTHON" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6188 if test -z "$PYTHON"; then
6189 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
6194 # Check for a version of Python >= 2.1.0
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
6197 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
6198 ac_supports_python_ver=`$PYTHON -c "import sys; \
6199 ver = sys.version.split ()[0]; \
6200 print (ver >= '2.1.0')"`
6201 if test "$ac_supports_python_ver" != "True"; then
6202 if test -z "$PYTHON_NOVERSIONCHECK"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6208 This version of the AC_PYTHON_DEVEL macro
6209 doesn't work properly with versions of Python before
6210 2.1.0. You may need to re-run configure, setting the
6211 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
6212 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
6213 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
6214 to something else than an empty string.
6216 See \`config.log' for more details" "$LINENO" 5; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
6219 $as_echo "skip at user request" >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6223 $as_echo "yes" >&6; }
6227 # if the macro parameter ``version'' is set, honour it
6229 if test -n ">= '2.4.0'"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
6231 $as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
6232 ac_supports_python_ver=`$PYTHON -c "import sys; \
6233 ver = sys.version.split ()[0]; \
6234 print (ver >= '2.4.0')"`
6235 if test "$ac_supports_python_ver" = "True"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6237 $as_echo "yes" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6241 as_fn_error $? "this package requires Python >= '2.4.0'.
6242 If you have it installed, but it isn't the default Python
6243 interpreter in your system path, please pass the PYTHON_VERSION
6244 variable to configure. See \`\`configure --help'' for reference.
6251 # Check if you have distutils, else fail
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
6254 $as_echo_n "checking for the distutils Python package... " >&6; }
6255 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
6256 if test -z "$ac_distutils_result"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6258 $as_echo "yes" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 as_fn_error $? "cannot import Python module \"distutils\".
6263 Please check your Python installation. The error was:
6264 $ac_distutils_result" "$LINENO" 5
6269 # Check for Python include path
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
6272 $as_echo_n "checking for Python include path... " >&6; }
6273 if test -z "$PYTHON_CPPFLAGS"; then
6274 python_path=`$PYTHON -c "import distutils.sysconfig; \
6275 print (distutils.sysconfig.get_python_inc ());"`
6276 if test -n "${python_path}"; then
6277 python_path="-I$python_path"
6279 PYTHON_CPPFLAGS=$python_path
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
6282 $as_echo "$PYTHON_CPPFLAGS" >&6; }
6286 # Check for Python library path
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
6289 $as_echo_n "checking for Python library path... " >&6; }
6290 if test -z "$PYTHON_LDFLAGS"; then
6291 # (makes two attempts to ensure we've got a version number
6292 # from the interpreter)
6293 ac_python_version=`cat<<EOD | $PYTHON -
6295 # join all versioning strings, on some systems
6296 # major/minor numbers could be in different list elements
6297 from distutils.sysconfig import *
6299 for e in get_config_vars ('VERSION'):
6306 if test -z "$ac_python_version"; then
6307 if test -n "$PYTHON_VERSION"; then
6308 ac_python_version=$PYTHON_VERSION
6310 ac_python_version=`$PYTHON -c "import sys; \
6311 print (sys.version[:3])"`
6315 # Make the versioning information available to the compiler
6317 cat >>confdefs.h <<_ACEOF
6318 #define HAVE_PYTHON "$ac_python_version"
6322 # First, the library directory:
6323 ac_python_libdir=`cat<<EOD | $PYTHON -
6325 # There should be only one
6326 import distutils.sysconfig
6327 for e in distutils.sysconfig.get_config_vars ('LIBDIR'):
6334 # Before checking for libpythonX.Y, we need to know
6335 # the extension the OS we're on uses for libraries
6336 # (we take the first one, if there's more than one fix me!):
6337 ac_python_soext=`$PYTHON -c \
6338 "import distutils.sysconfig; \
6339 print (distutils.sysconfig.get_config_vars('SO')[0])"`
6341 # Now, for the library:
6342 ac_python_soname=`$PYTHON -c \
6343 "import distutils.sysconfig; \
6344 print (distutils.sysconfig.get_config_vars('LDLIBRARY')[0])"`
6346 # Strip away extension from the end to canonicalize its name:
6347 ac_python_library=`echo "$ac_python_soname" | sed "s/${ac_python_soext}$//"`
6349 # This small piece shamelessly adapted from PostgreSQL python macro;
6350 # credits goes to momjian, I think. I'd like to put the right name
6351 # in the credits, if someone can point me in the right direction... ?
6353 if test -n "$ac_python_libdir" -a -n "$ac_python_library" \
6354 -a x"$ac_python_library" != x"$ac_python_soname"
6356 # use the official shared library
6357 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
6358 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
6360 # old way: use libpython from python_configdir
6361 ac_python_libdir=`$PYTHON -c \
6362 "from distutils.sysconfig import get_python_lib as f; \
6364 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
6365 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
6368 if test -z "PYTHON_LDFLAGS"; then
6370 Cannot determine location of your Python DSO. Please check it was installed with
6371 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
6376 $as_echo "$PYTHON_LDFLAGS" >&6; }
6380 # Check for site packages
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
6383 $as_echo_n "checking for Python site-packages path... " >&6; }
6384 if test -z "$PYTHON_SITE_PKG"; then
6385 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
6386 print (distutils.sysconfig.get_python_lib(1,0));"`
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
6389 $as_echo "$PYTHON_SITE_PKG" >&6; }
6393 # libraries which must be linked in when embedding
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
6396 $as_echo_n "checking python extra libraries... " >&6; }
6397 if test -z "$PYTHON_EXTRA_LIBS"; then
6398 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
6399 conf = distutils.sysconfig.get_config_var; \
6400 print (conf('LOCALMODLIBS') + ' ' + conf('LIBS'))"`
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
6403 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
6407 # linking flags needed when embedding
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
6410 $as_echo_n "checking python extra linking flags... " >&6; }
6411 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
6412 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
6413 conf = distutils.sysconfig.get_config_var; \
6414 print (conf('LINKFORSHARED'))"`
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
6417 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
6421 # final check to see if everything compiles alright
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
6424 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
6425 # save current global flags
6426 ac_save_LIBS="$LIBS"
6427 ac_save_CPPFLAGS="$CPPFLAGS"
6428 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
6429 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
6431 ac_cpp='$CPP $CPPFLAGS'
6432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6449 if ac_fn_c_try_link "$LINENO"; then :
6454 rm -f core conftest.err conftest.$ac_objext \
6455 conftest$ac_exeext conftest.$ac_ext
6457 ac_cpp='$CPP $CPPFLAGS'
6458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462 # turn back to default flags
6463 CPPFLAGS="$ac_save_CPPFLAGS"
6464 LIBS="$ac_save_LIBS"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
6467 $as_echo "$pythonexists" >&6; }
6469 if test ! "x$pythonexists" = "xyes"; then
6470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6473 Could not link test program to Python. Maybe the main Python library has been
6474 installed in some non-standard library path. If so, pass it to configure,
6475 via the LDFLAGS environment variable.
6476 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
6477 ============================================================================
6479 You probably have to install the development version of the Python package
6480 for your distribution. The exact name of this package varies among them.
6481 ============================================================================
6483 See \`config.log' for more details" "$LINENO" 5; }
6491 if test ! -z "$ac_python_version"; then
6492 ldns_have_python=yes
6495 # pass additional Python 3 option to SWIG
6496 if test `$PYTHON -c "import sys; \
6497 ver = sys.version.split()[0]; \
6498 print(ver >= '3')"` = "True"; then
6499 SWIGPY3="-py3 -DPY3"
6504 if test x_$ldns_have_python != x_no; then
6505 # ===========================================================================
6506 # http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
6507 # ===========================================================================
6511 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
6515 # This macro searches for a SWIG installation on your system. If found,
6516 # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is
6517 # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
6519 # You can use the optional first argument to check if the version of the
6520 # available SWIG is greater than or equal to the value of the argument. It
6521 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
6522 # the first N is mandatory.) If the version argument is given (e.g.
6523 # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number
6526 # As usual, action-if-found is executed if SWIG is found, otherwise
6527 # action-if-not-found is executed.
6529 # In configure.in, use as:
6531 # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
6532 # AX_SWIG_ENABLE_CXX
6533 # AX_SWIG_MULTI_MODULE_SUPPORT
6538 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
6539 # Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
6540 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
6541 # Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
6542 # Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
6544 # This program is free software; you can redistribute it and/or modify it
6545 # under the terms of the GNU General Public License as published by the
6546 # Free Software Foundation; either version 2 of the License, or (at your
6547 # option) any later version.
6549 # This program is distributed in the hope that it will be useful, but
6550 # WITHOUT ANY WARRANTY; without even the implied warranty of
6551 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
6552 # Public License for more details.
6554 # You should have received a copy of the GNU General Public License along
6555 # with this program. If not, see <http://www.gnu.org/licenses/>.
6557 # As a special exception, the respective Autoconf Macro's copyright owner
6558 # gives unlimited permission to copy, distribute and modify the configure
6559 # scripts that are the output of Autoconf when processing the Macro. You
6560 # need not follow the terms of the GNU General Public License when using
6561 # or distributing such scripts, even though portions of the text of the
6562 # Macro appear in them. The GNU General Public License (GPL) does govern
6563 # all other use of the material that constitutes the Autoconf Macro.
6565 # This special exception to the GPL applies to versions of the Autoconf
6566 # Macro released by the Autoconf Archive. When you make and distribute a
6567 # modified version of the Autoconf Macro, you may extend this special
6568 # exception to the GPL to apply to your modified version as well.
6575 # check for >=SWIG-2.0.4 if Python 3.2 used
6576 if test `$PYTHON -c "import sys; \
6577 ver = sys.version.split()[0]; \
6578 print(ver >= '3.2')"` = "True"; then
6580 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
6581 for ac_prog in swig2.0 swig
6583 # Extract the first word of "$ac_prog", so it can be a program name with args.
6584 set dummy $ac_prog; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_path_SWIG+:} false; then :
6588 $as_echo_n "(cached) " >&6
6592 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 SWIG=$ac_cv_path_SWIG
6614 if test -n "$SWIG"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
6616 $as_echo "$SWIG" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6623 test -n "$SWIG" && break
6626 if test -z "$SWIG" ; then
6627 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
6628 elif test -n "2.0.4" ; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
6630 $as_echo_n "checking SWIG version... " >&6; }
6631 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'`
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
6633 $as_echo "$swig_version" >&6; }
6634 if test -n "$swig_version" ; then
6635 # Calculate the required version number components
6637 required_major=`echo $required | sed 's/[^0-9].*//'`
6638 if test -z "$required_major" ; then
6641 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
6642 required_minor=`echo $required | sed 's/[^0-9].*//'`
6643 if test -z "$required_minor" ; then
6646 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
6647 required_patch=`echo $required | sed 's/[^0-9].*//'`
6648 if test -z "$required_patch" ; then
6651 # Calculate the available version number components
6652 available=$swig_version
6653 available_major=`echo $available | sed 's/[^0-9].*//'`
6654 if test -z "$available_major" ; then
6657 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
6658 available_minor=`echo $available | sed 's/[^0-9].*//'`
6659 if test -z "$available_minor" ; then
6662 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
6663 available_patch=`echo $available | sed 's/[^0-9].*//'`
6664 if test -z "$available_patch" ; then
6667 # Convert the version tuple into a single number for easier comparison.
6668 # Using base 100 should be safe since SWIG internally uses BCD values
6669 # to encode its version number.
6670 required_swig_vernum=`expr $required_major \* 10000 \
6671 \+ $required_minor \* 100 \+ $required_patch`
6672 available_swig_vernum=`expr $available_major \* 10000 \
6673 \+ $available_minor \* 100 \+ $available_patch`
6675 if test $available_swig_vernum -lt $required_swig_vernum; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5
6677 $as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;}
6679 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
6682 $as_echo_n "checking for SWIG library... " >&6; }
6683 SWIG_LIB=`$SWIG -swiglib`
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
6685 $as_echo "$SWIG_LIB" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
6690 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
6692 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
6699 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
6700 for ac_prog in swig2.0 swig
6702 # Extract the first word of "$ac_prog", so it can be a program name with args.
6703 set dummy $ac_prog; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_path_SWIG+:} false; then :
6707 $as_echo_n "(cached) " >&6
6711 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 SWIG=$ac_cv_path_SWIG
6733 if test -n "$SWIG"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
6735 $as_echo "$SWIG" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6742 test -n "$SWIG" && break
6745 if test -z "$SWIG" ; then
6747 elif test -n "" ; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
6749 $as_echo_n "checking SWIG version... " >&6; }
6750 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'`
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
6752 $as_echo "$swig_version" >&6; }
6753 if test -n "$swig_version" ; then
6754 # Calculate the required version number components
6756 required_major=`echo $required | sed 's/[^0-9].*//'`
6757 if test -z "$required_major" ; then
6760 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
6761 required_minor=`echo $required | sed 's/[^0-9].*//'`
6762 if test -z "$required_minor" ; then
6765 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
6766 required_patch=`echo $required | sed 's/[^0-9].*//'`
6767 if test -z "$required_patch" ; then
6770 # Calculate the available version number components
6771 available=$swig_version
6772 available_major=`echo $available | sed 's/[^0-9].*//'`
6773 if test -z "$available_major" ; then
6776 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
6777 available_minor=`echo $available | sed 's/[^0-9].*//'`
6778 if test -z "$available_minor" ; then
6781 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
6782 available_patch=`echo $available | sed 's/[^0-9].*//'`
6783 if test -z "$available_patch" ; then
6786 # Convert the version tuple into a single number for easier comparison.
6787 # Using base 100 should be safe since SWIG internally uses BCD values
6788 # to encode its version number.
6789 required_swig_vernum=`expr $required_major \* 10000 \
6790 \+ $required_minor \* 100 \+ $required_patch`
6791 available_swig_vernum=`expr $available_major \* 10000 \
6792 \+ $available_minor \* 100 \+ $available_patch`
6794 if test $available_swig_vernum -lt $required_swig_vernum; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
6796 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
6801 $as_echo_n "checking for SWIG library... " >&6; }
6802 SWIG_LIB=`$SWIG -swiglib`
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
6804 $as_echo "$SWIG_LIB" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
6809 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
6818 if test ! -x "$SWIG"; then
6819 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
6822 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
6828 ldns_with_pyldns=yes
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
6832 $as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
6835 # xtra cflags for pyldns
6836 if test x_$ldns_have_python != x_no; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
6840 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
6841 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
6842 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6843 $as_echo_n "(cached) " >&6
6846 echo 'void f(){}' >conftest.c
6847 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
6848 eval "cv_prog_cc_flag_$cache=yes"
6850 eval "cv_prog_cc_flag_$cache=no"
6852 rm -f conftest conftest.o conftest.c
6856 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6858 $as_echo "yes" >&6; }
6860 PYTHON_X_CFLAGS="-fno-strict-aliasing"
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
6871 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
6872 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
6873 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6874 $as_echo_n "(cached) " >&6
6877 echo 'void f(){}' >conftest.c
6878 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
6879 eval "cv_prog_cc_flag_$cache=yes"
6881 eval "cv_prog_cc_flag_$cache=no"
6883 rm -f conftest conftest.o conftest.c
6887 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6889 $as_echo "yes" >&6; }
6891 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
6902 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
6903 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
6904 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6905 $as_echo_n "(cached) " >&6
6908 echo 'void f(){}' >conftest.c
6909 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
6910 eval "cv_prog_cc_flag_$cache=yes"
6912 eval "cv_prog_cc_flag_$cache=no"
6914 rm -f conftest conftest.o conftest.c
6918 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6922 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
6933 $as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
6934 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
6935 if eval \${cv_prog_cc_flag_$cache+:} false; then :
6936 $as_echo_n "(cached) " >&6
6939 echo 'void f(){}' >conftest.c
6940 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
6941 eval "cv_prog_cc_flag_$cache=yes"
6943 eval "cv_prog_cc_flag_$cache=no"
6945 rm -f conftest conftest.o conftest.c
6949 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6951 $as_echo "yes" >&6; }
6953 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6967 # Check whether --with-pyldnsx was given.
6968 if test "${with_pyldnsx+set}" = set; then :
6969 withval=$with_pyldnsx;
6971 withval="with_pyldns"
6974 if test x_$withval != x_no; then
6975 if test x_$ldns_with_pyldns != x_no; then
6978 ldns_with_pyldnsx=yes
6980 if test x_$withval != x_with_pyldns; then
6981 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
6986 if test x_$ldns_with_pyldns != x_no; then
6987 PYLDNSINST="install-pyldns"
6988 PYLDNSUNINST="uninstall-pyldns"
6995 if test x_$ldns_with_pyldnsx != x_no; then
6996 PYLDNSXINST="install-pyldnsx"
6997 PYLDNSXUNINST="uninstall-pyldnsx"
7007 # skip these tests, we do not need them.
7016 # always use ./libtool unless override from commandline (libtool=mylibtool)
7017 if test -z "$libtool"; then
7021 # avoid libtool max commandline length test on systems that fork slowly.
7023 if echo "$host_os" | grep "sunos4" >/dev/null; then
7024 lt_cv_sys_max_cmd_len=32750;
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}ar; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_path_AR+:} false; then :
7032 $as_echo_n "(cached) " >&6
7036 ac_cv_path_AR="$AR" # Let the user override the test with a path.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 if test -n "$AR"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7060 $as_echo "$AR" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7068 if test -z "$ac_cv_path_AR"; then
7070 # Extract the first word of "ar", so it can be a program name with args.
7071 set dummy ar; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_path_ac_pt_AR+:} false; then :
7075 $as_echo_n "(cached) " >&6
7079 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 ac_pt_AR=$ac_cv_path_ac_pt_AR
7101 if test -n "$ac_pt_AR"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
7103 $as_echo "$ac_pt_AR" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7109 if test "x$ac_pt_AR" = x; then
7112 case $cross_compiling:$ac_tool_warned in
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7124 if test $AR = false; then
7125 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7131 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7136 macro_version='2.4.2'
7137 macro_revision='1.3337'
7151 ltmain="$ac_aux_dir/ltmain.sh"
7153 # Backslashify metacharacters that are still active within
7154 # double-quoted strings.
7155 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7157 # Same as above, but do not quote variable references.
7158 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7160 # Sed substitution to delay expansion of an escaped shell variable in a
7161 # double_quote_subst'ed string.
7162 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7164 # Sed substitution to delay expansion of an escaped single quote.
7165 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7167 # Sed substitution to avoid accidental globbing in evaled expressions
7168 no_glob_subst='s/\*/\\\*/g'
7170 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7171 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7172 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7175 $as_echo_n "checking how to print strings... " >&6; }
7176 # Test print first, because it will be a builtin if present.
7177 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7178 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7180 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7183 # Use this function as a fallback that always works.
7184 func_fallback_echo ()
7186 eval 'cat <<_LTECHO_EOF
7190 ECHO='func_fallback_echo'
7193 # func_echo_all arg...
7194 # Invoke $ECHO with all args, space-separated.
7201 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7202 $as_echo "printf" >&6; } ;;
7203 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7204 $as_echo "print -r" >&6; } ;;
7205 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7206 $as_echo "cat" >&6; } ;;
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7223 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7224 if ${ac_cv_path_SED+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7228 for ac_i in 1 2 3 4 5 6 7; do
7229 ac_script="$ac_script$as_nl$ac_script"
7231 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7232 { ac_script=; unset ac_script;}
7233 if test -z "$SED"; then
7234 ac_path_SED_found=false
7235 # Loop through the user's path and test for each of PROGNAME-LIST
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_prog in sed gsed; do
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7244 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7245 # Check for GNU ac_path_SED and select it if it is found.
7246 # Check for GNU $ac_path_SED
7247 case `"$ac_path_SED" --version 2>&1` in
7249 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7252 $as_echo_n 0123456789 >"conftest.in"
7255 cat "conftest.in" "conftest.in" >"conftest.tmp"
7256 mv "conftest.tmp" "conftest.in"
7257 cp "conftest.in" "conftest.nl"
7258 $as_echo '' >> "conftest.nl"
7259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7261 as_fn_arith $ac_count + 1 && ac_count=$as_val
7262 if test $ac_count -gt ${ac_path_SED_max-0}; then
7263 # Best one so far, save it but keep looking for a better one
7264 ac_cv_path_SED="$ac_path_SED"
7265 ac_path_SED_max=$ac_count
7267 # 10*(2^10) chars as input seems more than enough
7268 test $ac_count -gt 10 && break
7270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7273 $ac_path_SED_found && break 3
7278 if test -z "$ac_cv_path_SED"; then
7279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7287 $as_echo "$ac_cv_path_SED" >&6; }
7288 SED="$ac_cv_path_SED"
7291 test -z "$SED" && SED=sed
7292 Xsed="$SED -e 1s/^X//"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7305 $as_echo_n "checking for fgrep... " >&6; }
7306 if ${ac_cv_path_FGREP+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7310 then ac_cv_path_FGREP="$GREP -F"
7312 if test -z "$FGREP"; then
7313 ac_path_FGREP_found=false
7314 # Loop through the user's path and test for each of PROGNAME-LIST
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7319 test -z "$as_dir" && as_dir=.
7320 for ac_prog in fgrep; do
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7323 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7324 # Check for GNU ac_path_FGREP and select it if it is found.
7325 # Check for GNU $ac_path_FGREP
7326 case `"$ac_path_FGREP" --version 2>&1` in
7328 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7331 $as_echo_n 0123456789 >"conftest.in"
7334 cat "conftest.in" "conftest.in" >"conftest.tmp"
7335 mv "conftest.tmp" "conftest.in"
7336 cp "conftest.in" "conftest.nl"
7337 $as_echo 'FGREP' >> "conftest.nl"
7338 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7340 as_fn_arith $ac_count + 1 && ac_count=$as_val
7341 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7342 # Best one so far, save it but keep looking for a better one
7343 ac_cv_path_FGREP="$ac_path_FGREP"
7344 ac_path_FGREP_max=$ac_count
7346 # 10*(2^10) chars as input seems more than enough
7347 test $ac_count -gt 10 && break
7349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7352 $ac_path_FGREP_found && break 3
7357 if test -z "$ac_cv_path_FGREP"; then
7358 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7361 ac_cv_path_FGREP=$FGREP
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7367 $as_echo "$ac_cv_path_FGREP" >&6; }
7368 FGREP="$ac_cv_path_FGREP"
7371 test -z "$GREP" && GREP=grep
7391 # Check whether --with-gnu-ld was given.
7392 if test "${with_gnu_ld+set}" = set; then :
7393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7399 if test "$GCC" = yes; then
7400 # Check if gcc -print-prog-name=ld gives a path.
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7402 $as_echo_n "checking for ld used by $CC... " >&6; }
7405 # gcc leaves a trailing carriage return which upsets mingw
7406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7411 # Accept absolute paths.
7413 re_direlt='/[^/][^/]*/\.\./'
7414 # Canonicalize the pathname of ld
7415 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7416 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7417 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7419 test -z "$LD" && LD="$ac_prog"
7422 # If it fails, then pretend we aren't using GCC.
7426 # If it is relative, then search for the first ld in PATH.
7430 elif test "$with_gnu_ld" = yes; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7432 $as_echo_n "checking for GNU ld... " >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7435 $as_echo_n "checking for non-GNU ld... " >&6; }
7437 if ${lt_cv_path_LD+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -z "$LD"; then
7441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7442 for ac_dir in $PATH; do
7444 test -z "$ac_dir" && ac_dir=.
7445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7446 lt_cv_path_LD="$ac_dir/$ac_prog"
7447 # Check to see if the program is GNU ld. I'd rather use --version,
7448 # but apparently some variants of GNU ld only accept -v.
7449 # Break only if it was the GNU/non-GNU ld that we prefer.
7450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7451 *GNU* | *'with BFD'*)
7452 test "$with_gnu_ld" != no && break
7455 test "$with_gnu_ld" != yes && break
7462 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7467 if test -n "$LD"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7469 $as_echo "$LD" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7474 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7476 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7477 if ${lt_cv_prog_gnu_ld+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7481 case `$LD -v 2>&1 </dev/null` in
7482 *GNU* | *'with BFD'*)
7483 lt_cv_prog_gnu_ld=yes
7486 lt_cv_prog_gnu_ld=no
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7491 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7492 with_gnu_ld=$lt_cv_prog_gnu_ld
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7503 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7504 if ${lt_cv_path_NM+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$NM"; then
7508 # Let the user override the test.
7511 lt_nm_to_check="${ac_tool_prefix}nm"
7512 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7513 lt_nm_to_check="$lt_nm_to_check nm"
7515 for lt_tmp_nm in $lt_nm_to_check; do
7516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7519 test -z "$ac_dir" && ac_dir=.
7520 tmp_nm="$ac_dir/$lt_tmp_nm"
7521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7522 # Check to see if the nm accepts a BSD-compat flag.
7523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7524 # nm: unknown option "B" ignored
7525 # Tru64's nm complains that /dev/null is an invalid object file
7526 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7527 */dev/null* | *'Invalid file or object type'*)
7528 lt_cv_path_NM="$tmp_nm -B"
7532 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7534 lt_cv_path_NM="$tmp_nm -p"
7538 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7539 continue # so that we can try to find one that supports BSD flags
7548 : ${lt_cv_path_NM=no}
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7552 $as_echo "$lt_cv_path_NM" >&6; }
7553 if test "$lt_cv_path_NM" != "no"; then
7556 # Didn't find any BSD compatible name lister, look for dumpbin.
7557 if test -n "$DUMPBIN"; then :
7558 # Let the user override the test.
7560 if test -n "$ac_tool_prefix"; then
7561 for ac_prog in dumpbin "link -dump"
7563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_DUMPBIN+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$DUMPBIN"; then
7571 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 DUMPBIN=$ac_cv_prog_DUMPBIN
7591 if test -n "$DUMPBIN"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7593 $as_echo "$DUMPBIN" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7600 test -n "$DUMPBIN" && break
7603 if test -z "$DUMPBIN"; then
7604 ac_ct_DUMPBIN=$DUMPBIN
7605 for ac_prog in dumpbin "link -dump"
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy $ac_prog; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$ac_ct_DUMPBIN"; then
7615 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7635 if test -n "$ac_ct_DUMPBIN"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7637 $as_echo "$ac_ct_DUMPBIN" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7644 test -n "$ac_ct_DUMPBIN" && break
7647 if test "x$ac_ct_DUMPBIN" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7656 DUMPBIN=$ac_ct_DUMPBIN
7660 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7662 DUMPBIN="$DUMPBIN -symbols"
7670 if test "$DUMPBIN" != ":"; then
7674 test -z "$NM" && NM=nm
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7682 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7683 if ${lt_cv_nm_interface+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 lt_cv_nm_interface="BSD nm"
7687 echo "int some_variable = 0;" > conftest.$ac_ext
7688 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7689 (eval "$ac_compile" 2>conftest.err)
7690 cat conftest.err >&5
7691 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7692 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7693 cat conftest.err >&5
7694 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7695 cat conftest.out >&5
7696 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7697 lt_cv_nm_interface="MS dumpbin"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7702 $as_echo "$lt_cv_nm_interface" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7705 $as_echo_n "checking whether ln -s works... " >&6; }
7707 if test "$LN_S" = "ln -s"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709 $as_echo "yes" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7712 $as_echo "no, using $LN_S" >&6; }
7715 # find the maximum length of command line arguments
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7717 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7718 if ${lt_cv_sys_max_cmd_len+:} false; then :
7719 $as_echo_n "(cached) " >&6
7726 # On DJGPP, this test can blow up pretty badly due to problems in libc
7727 # (any single argument exceeding 2000 bytes causes a buffer overrun
7728 # during glob expansion). Even if it were fixed, the result of this
7729 # check would be larger than it should be.
7730 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7734 # Under GNU Hurd, this test is not required because there is
7735 # no limit to the length of command line arguments.
7736 # Libtool will interpret -1 as no limit whatsoever
7737 lt_cv_sys_max_cmd_len=-1;
7740 cygwin* | mingw* | cegcc*)
7741 # On Win9x/ME, this test blows up -- it succeeds, but takes
7742 # about 5 minutes as the teststring grows exponentially.
7743 # Worse, since 9x/ME are not pre-emptively multitasking,
7744 # you end up with a "frozen" computer, even though with patience
7745 # the test eventually succeeds (with a max line length of 256k).
7746 # Instead, let's just punt: use the minimum linelength reported by
7747 # all of the supported platforms: 8192 (on NT/2K/XP).
7748 lt_cv_sys_max_cmd_len=8192;
7752 # On MiNT this can take a long time and run out of memory.
7753 lt_cv_sys_max_cmd_len=8192;
7757 # On AmigaOS with pdksh, this test takes hours, literally.
7758 # So we just punt and use a minimum line length of 8192.
7759 lt_cv_sys_max_cmd_len=8192;
7762 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7763 # This has been around since 386BSD, at least. Likely further.
7764 if test -x /sbin/sysctl; then
7765 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7766 elif test -x /usr/sbin/sysctl; then
7767 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7769 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7771 # And add a safety zone
7772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7777 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7778 lt_cv_sys_max_cmd_len=196608
7782 # The test takes a long time on OS/2.
7783 lt_cv_sys_max_cmd_len=8192
7787 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7788 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7789 # nice to cause kernel panics so lets avoid the loop below.
7790 # First set a reasonable default.
7791 lt_cv_sys_max_cmd_len=16384
7793 if test -x /sbin/sysconfig; then
7794 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7795 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7800 lt_cv_sys_max_cmd_len=102400
7802 sysv5* | sco5v6* | sysv4.2uw2*)
7803 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7804 if test -n "$kargmax"; then
7805 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7807 lt_cv_sys_max_cmd_len=32768
7811 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7812 if test -n "$lt_cv_sys_max_cmd_len"; then
7813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7816 # Make teststring a little bigger before we do anything with it.
7817 # a 1K string should be a reasonable start.
7818 for i in 1 2 3 4 5 6 7 8 ; do
7819 teststring=$teststring$teststring
7821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7822 # If test is not a shell built-in, we'll probably end up computing a
7823 # maximum length that is only half of the actual maximum length, but
7825 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7826 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7827 test $i != 17 # 1/2 MB should be enough
7830 teststring=$teststring$teststring
7832 # Only check the string length outside the loop.
7833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7835 # Add a significant safety factor because C++ compilers can tack on
7836 # massive amounts of additional arguments before passing them to the
7837 # linker. It appears as though 1/2 is a usable value.
7838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7845 if test -n $lt_cv_sys_max_cmd_len ; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7847 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7850 $as_echo "none" >&6; }
7852 max_cmd_len=$lt_cv_sys_max_cmd_len
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7864 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7865 # Try some XSI features
7868 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7870 && eval 'test $(( 1 + 1 )) -eq 2 \
7871 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7874 $as_echo "$xsi_shell" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7878 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7880 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7882 && lt_shell_append=yes
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7884 $as_echo "$lt_shell_append" >&6; }
7887 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7897 # test EBCDIC or ASCII
7898 case `echo X|tr X '\101'` in
7899 A) # ASCII based system
7900 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7901 lt_SP2NL='tr \040 \012'
7902 lt_NL2SP='tr \015\012 \040\040'
7904 *) # EBCDIC based system
7905 lt_SP2NL='tr \100 \n'
7906 lt_NL2SP='tr \r\n \100\100'
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7919 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7920 if ${lt_cv_to_host_file_cmd+:} false; then :
7921 $as_echo_n "(cached) " >&6
7926 *-*-mingw* ) # actually msys
7927 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7930 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7932 * ) # otherwise, assume *nix
7933 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7939 *-*-mingw* ) # actually msys
7940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7943 lt_cv_to_host_file_cmd=func_convert_file_noop
7945 * ) # otherwise, assume *nix
7946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7950 * ) # unhandled hosts (and "normal" native builds)
7951 lt_cv_to_host_file_cmd=func_convert_file_noop
7957 to_host_file_cmd=$lt_cv_to_host_file_cmd
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7959 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7966 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7967 if ${lt_cv_to_tool_file_cmd+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 #assume ordinary cross tools, or native build.
7971 lt_cv_to_tool_file_cmd=func_convert_file_noop
7975 *-*-mingw* ) # actually msys
7976 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7984 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7986 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7993 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7994 if ${lt_cv_ld_reload_flag+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 lt_cv_ld_reload_flag='-r'
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8000 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8001 reload_flag=$lt_cv_ld_reload_flag
8002 case $reload_flag in
8004 *) reload_flag=" $reload_flag" ;;
8006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8008 cygwin* | mingw* | pw32* | cegcc*)
8009 if test "$GCC" != yes; then
8014 if test "$GCC" = yes; then
8015 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8017 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_OBJDUMP+:} false; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$OBJDUMP"; then
8039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 OBJDUMP=$ac_cv_prog_OBJDUMP
8059 if test -n "$OBJDUMP"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8061 $as_echo "$OBJDUMP" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8069 if test -z "$ac_cv_prog_OBJDUMP"; then
8070 ac_ct_OBJDUMP=$OBJDUMP
8071 # Extract the first word of "objdump", so it can be a program name with args.
8072 set dummy objdump; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 if test -n "$ac_ct_OBJDUMP"; then
8079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8099 if test -n "$ac_ct_OBJDUMP"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8101 $as_echo "$ac_ct_OBJDUMP" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8107 if test "x$ac_ct_OBJDUMP" = x; then
8110 case $cross_compiling:$ac_tool_warned in
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8116 OBJDUMP=$ac_ct_OBJDUMP
8119 OBJDUMP="$ac_cv_prog_OBJDUMP"
8122 test -z "$OBJDUMP" && OBJDUMP=objdump
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8133 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8134 if ${lt_cv_deplibs_check_method+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 lt_cv_file_magic_cmd='$MAGIC_CMD'
8138 lt_cv_file_magic_test_file=
8139 lt_cv_deplibs_check_method='unknown'
8140 # Need to set the preceding variable on all platforms that support
8141 # interlibrary dependencies.
8142 # 'none' -- dependencies not supported.
8143 # `unknown' -- same as none, but documents that we really don't know.
8144 # 'pass_all' -- all dependencies passed with no checks.
8145 # 'test_compile' -- check by making test program.
8146 # 'file_magic [[regex]]' -- check by looking for files in library path
8147 # which responds to the $file_magic_cmd with a given extended regex.
8148 # If you have `file' or equivalent on your system and you're not sure
8149 # whether `pass_all' will *always* work, you probably want this one.
8153 lt_cv_deplibs_check_method=pass_all
8157 lt_cv_deplibs_check_method=pass_all
8161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8162 lt_cv_file_magic_cmd='/usr/bin/file -L'
8163 lt_cv_file_magic_test_file=/shlib/libc.so
8167 # func_win32_libid is a shell function defined in ltmain.sh
8168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8169 lt_cv_file_magic_cmd='func_win32_libid'
8173 # Base MSYS/MinGW do not provide the 'file' command needed by
8174 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8175 # unless we find 'file', for example because we are cross-compiling.
8176 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8177 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8179 lt_cv_file_magic_cmd='func_win32_libid'
8181 # Keep this pattern in sync with the one in func_win32_libid.
8182 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8183 lt_cv_file_magic_cmd='$OBJDUMP -f'
8188 # use the weaker test based on 'objdump'. See mingw*.
8189 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8190 lt_cv_file_magic_cmd='$OBJDUMP -f'
8193 darwin* | rhapsody*)
8194 lt_cv_deplibs_check_method=pass_all
8197 freebsd* | dragonfly*)
8198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8201 # Not sure whether the presence of OpenBSD here was a mistake.
8202 # Let's accept both of them until this is cleared up.
8203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8204 lt_cv_file_magic_cmd=/usr/bin/file
8205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8209 lt_cv_deplibs_check_method=pass_all
8214 lt_cv_deplibs_check_method=pass_all
8218 lt_cv_deplibs_check_method=pass_all
8221 hpux10.20* | hpux11*)
8222 lt_cv_file_magic_cmd=/usr/bin/file
8225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8229 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]'
8230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8234 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8244 irix5* | irix6* | nonstopux*)
8246 *-32|*"-32 ") libmagic=32-bit;;
8247 *-n32|*"-n32 ") libmagic=N32;;
8248 *-64|*"-64 ") libmagic=64-bit;;
8249 *) libmagic=never-match;;
8251 lt_cv_deplibs_check_method=pass_all
8254 # This must be glibc/ELF.
8255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8256 lt_cv_deplibs_check_method=pass_all
8259 netbsd* | netbsdelf*-gnu)
8260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8269 lt_cv_file_magic_cmd=/usr/bin/file
8270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8274 lt_cv_deplibs_check_method=pass_all
8278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8285 osf3* | osf4* | osf5*)
8286 lt_cv_deplibs_check_method=pass_all
8290 lt_cv_deplibs_check_method=pass_all
8294 lt_cv_deplibs_check_method=pass_all
8297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8298 lt_cv_deplibs_check_method=pass_all
8302 case $host_vendor in
8304 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]'
8305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8308 lt_cv_deplibs_check_method=pass_all
8311 lt_cv_file_magic_cmd='/bin/file'
8312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8315 lt_cv_file_magic_cmd='/bin/file'
8316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8317 lt_cv_file_magic_test_file=/lib/libc.so
8320 lt_cv_deplibs_check_method=pass_all
8323 lt_cv_deplibs_check_method=pass_all
8329 lt_cv_deplibs_check_method=pass_all
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8335 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8339 if test "$build" = "$host"; then
8342 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8345 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8351 file_magic_cmd=$lt_cv_file_magic_cmd
8352 deplibs_check_method=$lt_cv_deplibs_check_method
8353 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8376 if test -n "$ac_tool_prefix"; then
8377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_DLLTOOL+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$DLLTOOL"; then
8385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 DLLTOOL=$ac_cv_prog_DLLTOOL
8405 if test -n "$DLLTOOL"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8407 $as_echo "$DLLTOOL" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test -z "$ac_cv_prog_DLLTOOL"; then
8416 ac_ct_DLLTOOL=$DLLTOOL
8417 # Extract the first word of "dlltool", so it can be a program name with args.
8418 set dummy dlltool; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 if test -n "$ac_ct_DLLTOOL"; then
8425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8445 if test -n "$ac_ct_DLLTOOL"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8447 $as_echo "$ac_ct_DLLTOOL" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8453 if test "x$ac_ct_DLLTOOL" = x; then
8456 case $cross_compiling:$ac_tool_warned in
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8462 DLLTOOL=$ac_ct_DLLTOOL
8465 DLLTOOL="$ac_cv_prog_DLLTOOL"
8468 test -z "$DLLTOOL" && DLLTOOL=dlltool
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8480 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8481 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 lt_cv_sharedlib_from_linklib_cmd='unknown'
8487 cygwin* | mingw* | pw32* | cegcc*)
8488 # two different shell functions defined in ltmain.sh
8489 # decide which to use based on capabilities of $DLLTOOL
8490 case `$DLLTOOL --help 2>&1` in
8491 *--identify-strict*)
8492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8500 # fallback: assume linklib IS sharedlib
8501 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8507 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8508 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8509 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8517 if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_AR+:} false; then :
8525 $as_echo_n "(cached) " >&6
8527 if test -n "$AR"; then
8528 ac_cv_prog_AR="$AR" # Let the user override the test.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 if test -n "$AR"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8550 $as_echo "$AR" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8557 test -n "$AR" && break
8560 if test -z "$AR"; then
8564 # Extract the first word of "$ac_prog", so it can be a program name with args.
8565 set dummy $ac_prog; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8569 $as_echo_n "(cached) " >&6
8571 if test -n "$ac_ct_AR"; then
8572 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_prog_ac_ct_AR="$ac_prog"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8592 if test -n "$ac_ct_AR"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8594 $as_echo "$ac_ct_AR" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8601 test -n "$ac_ct_AR" && break
8604 if test "x$ac_ct_AR" = x; then
8607 case $cross_compiling:$ac_tool_warned in
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8611 ac_tool_warned=yes ;;
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8631 $as_echo_n "checking for archiver @FILE support... " >&6; }
8632 if ${lt_cv_ar_at_file+:} false; then :
8633 $as_echo_n "(cached) " >&6
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 echo conftest.$ac_objext > conftest.lst
8649 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8651 (eval $lt_ar_try) 2>&5
8653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654 test $ac_status = 0; }
8655 if test "$ac_status" -eq 0; then
8656 # Ensure the archiver fails upon bogus file names.
8657 rm -f conftest.$ac_objext libconftest.a
8658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8659 (eval $lt_ar_try) 2>&5
8661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8662 test $ac_status = 0; }
8663 if test "$ac_status" -ne 0; then
8667 rm -f conftest.* libconftest.a
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8674 $as_echo "$lt_cv_ar_at_file" >&6; }
8676 if test "x$lt_cv_ar_at_file" = xno; then
8679 archiver_list_spec=$lt_cv_ar_at_file
8688 if test -n "$ac_tool_prefix"; then
8689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8690 set dummy ${ac_tool_prefix}strip; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_prog_STRIP+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 if test -n "$STRIP"; then
8697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 STRIP=$ac_cv_prog_STRIP
8717 if test -n "$STRIP"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8719 $as_echo "$STRIP" >&6; }
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8727 if test -z "$ac_cv_prog_STRIP"; then
8729 # Extract the first word of "strip", so it can be a program name with args.
8730 set dummy strip; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$ac_ct_STRIP"; then
8737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_ac_ct_STRIP="strip"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8757 if test -n "$ac_ct_STRIP"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8759 $as_echo "$ac_ct_STRIP" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8765 if test "x$ac_ct_STRIP" = x; then
8768 case $cross_compiling:$ac_tool_warned in
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8772 ac_tool_warned=yes ;;
8777 STRIP="$ac_cv_prog_STRIP"
8780 test -z "$STRIP" && STRIP=:
8787 if test -n "$ac_tool_prefix"; then
8788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_RANLIB+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 if test -n "$RANLIB"; then
8796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 test -z "$as_dir" && as_dir=.
8803 for ac_exec_ext in '' $ac_executable_extensions; do
8804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 RANLIB=$ac_cv_prog_RANLIB
8816 if test -n "$RANLIB"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8818 $as_echo "$RANLIB" >&6; }
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8826 if test -z "$ac_cv_prog_RANLIB"; then
8827 ac_ct_RANLIB=$RANLIB
8828 # Extract the first word of "ranlib", so it can be a program name with args.
8829 set dummy ranlib; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8833 $as_echo_n "(cached) " >&6
8835 if test -n "$ac_ct_RANLIB"; then
8836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8845 ac_cv_prog_ac_ct_RANLIB="ranlib"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8856 if test -n "$ac_ct_RANLIB"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8858 $as_echo "$ac_ct_RANLIB" >&6; }
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8864 if test "x$ac_ct_RANLIB" = x; then
8867 case $cross_compiling:$ac_tool_warned in
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871 ac_tool_warned=yes ;;
8873 RANLIB=$ac_ct_RANLIB
8876 RANLIB="$ac_cv_prog_RANLIB"
8879 test -z "$RANLIB" && RANLIB=:
8886 # Determine commands to create old-style static archives.
8887 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8888 old_postinstall_cmds='chmod 644 $oldlib'
8889 old_postuninstall_cmds=
8891 if test -n "$RANLIB"; then
8894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8900 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8905 lock_old_archive_extraction=yes ;;
8907 lock_old_archive_extraction=no ;;
8930 for ac_prog in gawk mawk nawk awk
8932 # Extract the first word of "$ac_prog", so it can be a program name with args.
8933 set dummy $ac_prog; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_prog_AWK+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 if test -n "$AWK"; then
8940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_AWK="$ac_prog"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 if test -n "$AWK"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8962 $as_echo "$AWK" >&6; }
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8969 test -n "$AWK" && break
8990 # If no C compiler was specified, use CC.
8993 # If no C compiler flags were specified, use CFLAGS.
8994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8996 # Allow CC to be a program name with arguments.
9000 # Check for command to grab the raw symbol name followed by C symbol from nm.
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9002 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9003 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9004 $as_echo_n "(cached) " >&6
9007 # These are sane defaults that work on at least a few old systems.
9008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9010 # Character class describing NM global symbol codes.
9011 symcode='[BCDEGRST]'
9013 # Regexp to match symbols that can be accessed directly from C.
9014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9016 # Define system-specific variables.
9021 cygwin* | mingw* | pw32* | cegcc*)
9022 symcode='[ABCDGISTW]'
9025 if test "$host_cpu" = ia64; then
9026 symcode='[ABCDEGRST]'
9030 symcode='[BCDEGRST]'
9033 symcode='[BCDEGQRST]'
9044 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9052 # If we're using GNU nm, then use its standard symbol codes.
9053 case `$NM -V 2>&1` in
9054 *GNU* | *'with BFD'*)
9055 symcode='[ABCDGIRSTW]' ;;
9058 # Transform an extracted symbol line into a proper C declaration.
9059 # Some systems (esp. on ia64) link data and code symbols differently,
9060 # so use this general approach.
9061 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9063 # Transform an extracted symbol line into symbol name and symbol address
9064 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9065 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'"
9067 # Handle CRLF in mingw tool chain
9071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9075 # Try without a prefix underscore, then with it.
9076 for ac_symprfx in "" "_"; do
9078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9079 symxfrm="\\1 $ac_symprfx\\2 \\2"
9081 # Write the raw and C identifiers.
9082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9083 # Fake it for dumpbin and say T for any non-static function
9084 # and D for any global variable.
9085 # Also find C++ and __fastcall symbols from MSVC++,
9086 # which start with @ or ?.
9087 lt_cv_sys_global_symbol_pipe="$AWK '"\
9088 " {last_section=section; section=\$ 3};"\
9089 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9090 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9091 " \$ 0!~/External *\|/{next};"\
9092 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9093 " {if(hide[section]) next};"\
9094 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9095 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9096 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9097 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9098 " ' prfx=^$ac_symprfx"
9100 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9102 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9104 # Check to see that the pipe works correctly.
9108 cat > conftest.$ac_ext <<_LT_EOF
9113 void nm_test_func(void);
9114 void nm_test_func(void){}
9118 int main(){nm_test_var='a';nm_test_func();return(0);}
9121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9122 (eval $ac_compile) 2>&5
9124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9125 test $ac_status = 0; }; then
9126 # Now try to grab the symbols.
9128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9129 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9132 test $ac_status = 0; } && test -s "$nlist"; then
9133 # Try sorting and uniquifying the output.
9134 if sort "$nlist" | uniq > "$nlist"T; then
9135 mv -f "$nlist"T "$nlist"
9140 # Make sure that we snagged all the symbols we need.
9141 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9142 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9143 cat <<_LT_EOF > conftest.$ac_ext
9144 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9145 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9146 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9147 relocations are performed -- see ld's documentation on pseudo-relocs. */
9148 # define LT_DLSYM_CONST
9149 #elif defined(__osf__)
9150 /* This system does not cope well with relocations in const data. */
9151 # define LT_DLSYM_CONST
9153 # define LT_DLSYM_CONST const
9161 # Now generate the symbol file.
9162 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9164 cat <<_LT_EOF >> conftest.$ac_ext
9166 /* The mapping between symbol names and symbols. */
9167 LT_DLSYM_CONST struct {
9171 lt__PROGRAM__LTX_preloaded_symbols[] =
9173 { "@PROGRAM@", (void *) 0 },
9175 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9176 cat <<\_LT_EOF >> conftest.$ac_ext
9180 /* This works around a problem in FreeBSD linker */
9181 #ifdef FREEBSD_WORKAROUND
9182 static const void *lt_preloaded_setup() {
9183 return lt__PROGRAM__LTX_preloaded_symbols;
9191 # Now try linking the two files.
9192 mv conftest.$ac_objext conftstm.$ac_objext
9193 lt_globsym_save_LIBS=$LIBS
9194 lt_globsym_save_CFLAGS=$CFLAGS
9195 LIBS="conftstm.$ac_objext"
9196 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9198 (eval $ac_link) 2>&5
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9204 LIBS=$lt_globsym_save_LIBS
9205 CFLAGS=$lt_globsym_save_CFLAGS
9207 echo "cannot find nm_test_func in $nlist" >&5
9210 echo "cannot find nm_test_var in $nlist" >&5
9213 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9216 echo "$progname: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9219 rm -rf conftest* conftst*
9221 # Do not use the global_symbol_pipe unless it works.
9222 if test "$pipe_works" = yes; then
9225 lt_cv_sys_global_symbol_pipe=
9231 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9232 lt_cv_sys_global_symbol_to_cdecl=
9234 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9236 $as_echo "failed" >&6; }
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9239 $as_echo "ok" >&6; }
9242 # Response file support.
9243 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9244 nm_file_list_spec='@'
9245 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9246 nm_file_list_spec='@'
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9276 $as_echo_n "checking for sysroot... " >&6; }
9278 # Check whether --with-sysroot was given.
9279 if test "${with_sysroot+set}" = set; then :
9280 withval=$with_sysroot;
9287 case ${with_sysroot} in #(
9289 if test "$GCC" = yes; then
9290 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9294 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9300 $as_echo "${with_sysroot}" >&6; }
9301 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9306 $as_echo "${lt_sysroot:-no}" >&6; }
9312 # Check whether --enable-libtool-lock was given.
9313 if test "${enable_libtool_lock+set}" = set; then :
9314 enableval=$enable_libtool_lock;
9317 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9319 # Some flags need to be propagated to the compiler or linker for good
9323 # Find out which ABI we are using.
9324 echo 'int i;' > conftest.$ac_ext
9325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9326 (eval $ac_compile) 2>&5
9328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9329 test $ac_status = 0; }; then
9330 case `/usr/bin/file conftest.$ac_objext` in
9342 # Find out which ABI we are using.
9343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9345 (eval $ac_compile) 2>&5
9347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9348 test $ac_status = 0; }; then
9349 if test "$lt_cv_prog_gnu_ld" = yes; then
9350 case `/usr/bin/file conftest.$ac_objext` in
9352 LD="${LD-ld} -melf32bsmip"
9355 LD="${LD-ld} -melf32bmipn32"
9358 LD="${LD-ld} -melf64bmip"
9362 case `/usr/bin/file conftest.$ac_objext` in
9378 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9379 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9380 # Find out which ABI we are using.
9381 echo 'int i;' > conftest.$ac_ext
9382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9383 (eval $ac_compile) 2>&5
9385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9386 test $ac_status = 0; }; then
9387 case `/usr/bin/file conftest.o` in
9390 x86_64-*kfreebsd*-gnu)
9391 LD="${LD-ld} -m elf_i386_fbsd"
9394 LD="${LD-ld} -m elf_i386"
9396 ppc64-*linux*|powerpc64-*linux*)
9397 LD="${LD-ld} -m elf32ppclinux"
9400 LD="${LD-ld} -m elf_s390"
9403 LD="${LD-ld} -m elf32_sparc"
9409 x86_64-*kfreebsd*-gnu)
9410 LD="${LD-ld} -m elf_x86_64_fbsd"
9413 LD="${LD-ld} -m elf_x86_64"
9415 ppc*-*linux*|powerpc*-*linux*)
9416 LD="${LD-ld} -m elf64ppc"
9418 s390*-*linux*|s390*-*tpf*)
9419 LD="${LD-ld} -m elf64_s390"
9422 LD="${LD-ld} -m elf64_sparc"
9432 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9433 SAVE_CFLAGS="$CFLAGS"
9434 CFLAGS="$CFLAGS -belf"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9436 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9437 if ${lt_cv_cc_needs_belf+:} false; then :
9438 $as_echo_n "(cached) " >&6
9441 ac_cpp='$CPP $CPPFLAGS'
9442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9457 if ac_fn_c_try_link "$LINENO"; then :
9458 lt_cv_cc_needs_belf=yes
9460 lt_cv_cc_needs_belf=no
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9465 ac_cpp='$CPP $CPPFLAGS'
9466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9472 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9473 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9474 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9475 CFLAGS="$SAVE_CFLAGS"
9479 # Find out which ABI we are using.
9480 echo 'int i;' > conftest.$ac_ext
9481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9482 (eval $ac_compile) 2>&5
9484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9485 test $ac_status = 0; }; then
9486 case `/usr/bin/file conftest.o` in
9488 case $lt_cv_prog_gnu_ld in
9492 LD="${LD-ld} -m elf_x86_64"
9495 LD="${LD-ld} -m elf64_sparc"
9498 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9499 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9504 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9516 need_locks="$enable_libtool_lock"
9518 if test -n "$ac_tool_prefix"; then
9519 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9520 set dummy ${ac_tool_prefix}mt; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9524 $as_echo_n "(cached) " >&6
9526 if test -n "$MANIFEST_TOOL"; then
9527 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9547 if test -n "$MANIFEST_TOOL"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9549 $as_echo "$MANIFEST_TOOL" >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9557 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9558 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9559 # Extract the first word of "mt", so it can be a program name with args.
9560 set dummy mt; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9564 $as_echo_n "(cached) " >&6
9566 if test -n "$ac_ct_MANIFEST_TOOL"; then
9567 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9587 if test -n "$ac_ct_MANIFEST_TOOL"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9589 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9595 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9598 case $cross_compiling:$ac_tool_warned in
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9602 ac_tool_warned=yes ;;
9604 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9607 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9610 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9612 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9613 if ${lt_cv_path_mainfest_tool+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 lt_cv_path_mainfest_tool=no
9617 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9618 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9619 cat conftest.err >&5
9620 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9621 lt_cv_path_mainfest_tool=yes
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9626 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9627 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9637 rhapsody* | darwin*)
9638 if test -n "$ac_tool_prefix"; then
9639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9644 $as_echo_n "(cached) " >&6
9646 if test -n "$DSYMUTIL"; then
9647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9667 if test -n "$DSYMUTIL"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9669 $as_echo "$DSYMUTIL" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9677 if test -z "$ac_cv_prog_DSYMUTIL"; then
9678 ac_ct_DSYMUTIL=$DSYMUTIL
9679 # Extract the first word of "dsymutil", so it can be a program name with args.
9680 set dummy dsymutil; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9684 $as_echo_n "(cached) " >&6
9686 if test -n "$ac_ct_DSYMUTIL"; then
9687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9707 if test -n "$ac_ct_DSYMUTIL"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9715 if test "x$ac_ct_DSYMUTIL" = x; then
9718 case $cross_compiling:$ac_tool_warned in
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9722 ac_tool_warned=yes ;;
9724 DSYMUTIL=$ac_ct_DSYMUTIL
9727 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9730 if test -n "$ac_tool_prefix"; then
9731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_prog_NMEDIT+:} false; then :
9736 $as_echo_n "(cached) " >&6
9738 if test -n "$NMEDIT"; then
9739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 NMEDIT=$ac_cv_prog_NMEDIT
9759 if test -n "$NMEDIT"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9761 $as_echo "$NMEDIT" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9769 if test -z "$ac_cv_prog_NMEDIT"; then
9770 ac_ct_NMEDIT=$NMEDIT
9771 # Extract the first word of "nmedit", so it can be a program name with args.
9772 set dummy nmedit; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9776 $as_echo_n "(cached) " >&6
9778 if test -n "$ac_ct_NMEDIT"; then
9779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9799 if test -n "$ac_ct_NMEDIT"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9801 $as_echo "$ac_ct_NMEDIT" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9807 if test "x$ac_ct_NMEDIT" = x; then
9810 case $cross_compiling:$ac_tool_warned in
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9814 ac_tool_warned=yes ;;
9816 NMEDIT=$ac_ct_NMEDIT
9819 NMEDIT="$ac_cv_prog_NMEDIT"
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if ${ac_cv_prog_LIPO+:} false; then :
9828 $as_echo_n "(cached) " >&6
9830 if test -n "$LIPO"; then
9831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 LIPO=$ac_cv_prog_LIPO
9851 if test -n "$LIPO"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9853 $as_echo "$LIPO" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9861 if test -z "$ac_cv_prog_LIPO"; then
9863 # Extract the first word of "lipo", so it can be a program name with args.
9864 set dummy lipo; ac_word=$2
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866 $as_echo_n "checking for $ac_word... " >&6; }
9867 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9868 $as_echo_n "(cached) " >&6
9870 if test -n "$ac_ct_LIPO"; then
9871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_ac_ct_LIPO="lipo"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9891 if test -n "$ac_ct_LIPO"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9893 $as_echo "$ac_ct_LIPO" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9899 if test "x$ac_ct_LIPO" = x; then
9902 case $cross_compiling:$ac_tool_warned in
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906 ac_tool_warned=yes ;;
9911 LIPO="$ac_cv_prog_LIPO"
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9916 set dummy ${ac_tool_prefix}otool; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_prog_OTOOL+:} false; then :
9920 $as_echo_n "(cached) " >&6
9922 if test -n "$OTOOL"; then
9923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 OTOOL=$ac_cv_prog_OTOOL
9943 if test -n "$OTOOL"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9945 $as_echo "$OTOOL" >&6; }
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9953 if test -z "$ac_cv_prog_OTOOL"; then
9955 # Extract the first word of "otool", so it can be a program name with args.
9956 set dummy otool; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9960 $as_echo_n "(cached) " >&6
9962 if test -n "$ac_ct_OTOOL"; then
9963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_ac_ct_OTOOL="otool"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9983 if test -n "$ac_ct_OTOOL"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9985 $as_echo "$ac_ct_OTOOL" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9991 if test "x$ac_ct_OTOOL" = x; then
9994 case $cross_compiling:$ac_tool_warned in
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9998 ac_tool_warned=yes ;;
10003 OTOOL="$ac_cv_prog_OTOOL"
10006 if test -n "$ac_tool_prefix"; then
10007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if ${ac_cv_prog_OTOOL64+:} false; then :
10012 $as_echo_n "(cached) " >&6
10014 if test -n "$OTOOL64"; then
10015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 OTOOL64=$ac_cv_prog_OTOOL64
10035 if test -n "$OTOOL64"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10037 $as_echo "$OTOOL64" >&6; }
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10045 if test -z "$ac_cv_prog_OTOOL64"; then
10046 ac_ct_OTOOL64=$OTOOL64
10047 # Extract the first word of "otool64", so it can be a program name with args.
10048 set dummy otool64; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10052 $as_echo_n "(cached) " >&6
10054 if test -n "$ac_ct_OTOOL64"; then
10055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_ac_ct_OTOOL64="otool64"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10075 if test -n "$ac_ct_OTOOL64"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10077 $as_echo "$ac_ct_OTOOL64" >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10083 if test "x$ac_ct_OTOOL64" = x; then
10086 case $cross_compiling:$ac_tool_warned in
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10092 OTOOL64=$ac_ct_OTOOL64
10095 OTOOL64="$ac_cv_prog_OTOOL64"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10125 $as_echo_n "checking for -single_module linker flag... " >&6; }
10126 if ${lt_cv_apple_cc_single_mod+:} false; then :
10127 $as_echo_n "(cached) " >&6
10129 lt_cv_apple_cc_single_mod=no
10130 if test -z "${LT_MULTI_MODULE}"; then
10131 # By default we will add the -single_module flag. You can override
10132 # by either setting the environment variable LT_MULTI_MODULE
10133 # non-empty at configure time, or by adding -multi_module to the
10135 rm -rf libconftest.dylib*
10136 echo "int foo(void){return 1;}" > conftest.c
10137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10138 -dynamiclib -Wl,-single_module conftest.c" >&5
10139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10142 # If there is a non-empty error log, and "single_module"
10143 # appears in it, assume the flag caused a linker warning
10144 if test -s conftest.err && $GREP single_module conftest.err; then
10145 cat conftest.err >&5
10146 # Otherwise, if the output was created with a 0 exit code from
10147 # the compiler, it worked.
10148 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10149 lt_cv_apple_cc_single_mod=yes
10151 cat conftest.err >&5
10153 rm -rf libconftest.dylib*
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10158 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10161 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10162 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 lt_cv_ld_exported_symbols_list=no
10166 save_LDFLAGS=$LDFLAGS
10167 echo "_main" > conftest.sym
10168 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10180 if ac_fn_c_try_link "$LINENO"; then :
10181 lt_cv_ld_exported_symbols_list=yes
10183 lt_cv_ld_exported_symbols_list=no
10185 rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LDFLAGS="$save_LDFLAGS"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10191 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10194 $as_echo_n "checking for -force_load linker flag... " >&6; }
10195 if ${lt_cv_ld_force_load+:} false; then :
10196 $as_echo_n "(cached) " >&6
10198 lt_cv_ld_force_load=no
10199 cat > conftest.c << _LT_EOF
10200 int forced_loaded() { return 2;}
10202 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10203 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10204 echo "$AR cru libconftest.a conftest.o" >&5
10205 $AR cru libconftest.a conftest.o 2>&5
10206 echo "$RANLIB libconftest.a" >&5
10207 $RANLIB libconftest.a 2>&5
10208 cat > conftest.c << _LT_EOF
10209 int main() { return 0;}
10211 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10212 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10214 if test -s conftest.err && $GREP force_load conftest.err; then
10215 cat conftest.err >&5
10216 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10217 lt_cv_ld_force_load=yes
10219 cat conftest.err >&5
10221 rm -f conftest.err libconftest.a conftest conftest.c
10222 rm -rf conftest.dSYM
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10226 $as_echo "$lt_cv_ld_force_load" >&6; }
10228 rhapsody* | darwin1.[012])
10229 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10231 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10232 darwin*) # darwin 5.x on
10233 # if running on 10.5 or later, the deployment target defaults
10234 # to the OS version, if on x86, and 10.4, the deployment
10235 # target defaults to 10.4. Don't you love it?
10236 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10237 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10238 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10240 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10242 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10246 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10247 _lt_dar_single_mod='$single_module'
10249 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10250 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10252 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10254 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10255 _lt_dsymutil='~$DSYMUTIL $lib || :'
10262 for ac_header in dlfcn.h
10264 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10266 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE_DLFCN_H 1
10288 enable_win32_dll=no
10291 # Check whether --enable-shared was given.
10292 if test "${enable_shared+set}" = set; then :
10293 enableval=$enable_shared; p=${PACKAGE-default}
10295 yes) enable_shared=yes ;;
10296 no) enable_shared=no ;;
10299 # Look at the argument we got. We use all the common list separators.
10300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10301 for pkg in $enableval; do
10303 if test "X$pkg" = "X$p"; then
10322 # Check whether --enable-static was given.
10323 if test "${enable_static+set}" = set; then :
10324 enableval=$enable_static; p=${PACKAGE-default}
10326 yes) enable_static=yes ;;
10327 no) enable_static=no ;;
10330 # Look at the argument we got. We use all the common list separators.
10331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10332 for pkg in $enableval; do
10334 if test "X$pkg" = "X$p"; then
10354 # Check whether --with-pic was given.
10355 if test "${with_pic+set}" = set; then :
10356 withval=$with_pic; lt_p=${PACKAGE-default}
10358 yes|no) pic_mode=$withval ;;
10361 # Look at the argument we got. We use all the common list separators.
10362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10363 for lt_pkg in $withval; do
10365 if test "X$lt_pkg" = "X$lt_p"; then
10377 test -z "$pic_mode" && pic_mode=default
10385 # Check whether --enable-fast-install was given.
10386 if test "${enable_fast_install+set}" = set; then :
10387 enableval=$enable_fast_install; p=${PACKAGE-default}
10389 yes) enable_fast_install=yes ;;
10390 no) enable_fast_install=no ;;
10392 enable_fast_install=no
10393 # Look at the argument we got. We use all the common list separators.
10394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10395 for pkg in $enableval; do
10397 if test "X$pkg" = "X$p"; then
10398 enable_fast_install=yes
10405 enable_fast_install=yes
10418 # This can be used to rebuild libtool when needed
10419 LIBTOOL_DEPS="$ltmain"
10421 # Always use our own libtool.
10422 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10453 test -z "$LN_S" && LN_S="ln -s"
10468 if test -n "${ZSH_VERSION+set}" ; then
10469 setopt NO_GLOB_SUBST
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10473 $as_echo_n "checking for objdir... " >&6; }
10474 if ${lt_cv_objdir+:} false; then :
10475 $as_echo_n "(cached) " >&6
10477 rm -f .libs 2>/dev/null
10478 mkdir .libs 2>/dev/null
10479 if test -d .libs; then
10482 # MS-DOS does not allow filenames that begin with a dot.
10485 rmdir .libs 2>/dev/null
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10488 $as_echo "$lt_cv_objdir" >&6; }
10489 objdir=$lt_cv_objdir
10495 cat >>confdefs.h <<_ACEOF
10496 #define LT_OBJDIR "$lt_cv_objdir/"
10504 # AIX sometimes has problems with the GCC collect2 program. For some
10505 # reason, if we set the COLLECT_NAMES environment variable, the problems
10506 # vanish in a puff of smoke.
10507 if test "X${COLLECT_NAMES+set}" != Xset; then
10509 export COLLECT_NAMES
10514 # Global variables:
10516 can_build_shared=yes
10518 # All known linkers require a `.a' archive for static linking (except MSVC,
10519 # which needs '.lib').
10522 with_gnu_ld="$lt_cv_prog_gnu_ld"
10525 old_CFLAGS="$CFLAGS"
10527 # Set sane defaults for various variables
10528 test -z "$CC" && CC=cc
10529 test -z "$LTCC" && LTCC=$CC
10530 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10531 test -z "$LD" && LD=ld
10532 test -z "$ac_objext" && ac_objext=o
10534 for cc_temp in $compiler""; do
10536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10542 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10545 # Only perform the check for file, if the check method requires it
10546 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10547 case $deplibs_check_method in
10549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10551 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10552 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10553 $as_echo_n "(cached) " >&6
10557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10560 lt_save_MAGIC_CMD="$MAGIC_CMD"
10561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10563 for ac_dir in $ac_dummy; do
10565 test -z "$ac_dir" && ac_dir=.
10566 if test -f $ac_dir/${ac_tool_prefix}file; then
10567 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10568 if test -n "$file_magic_test_file"; then
10569 case $deplibs_check_method in
10571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10574 $EGREP "$file_magic_regex" > /dev/null; then
10579 *** Warning: the command libtool uses to detect shared libraries,
10580 *** $file_magic_cmd, produces output that libtool cannot recognize.
10581 *** The result is that libtool may fail to recognize shared libraries
10582 *** as such. This will affect the creation of libtool libraries that
10583 *** depend on shared libraries, but programs linked with such libtool
10584 *** libraries will work regardless of this problem. Nevertheless, you
10585 *** may want to report the problem to your system manager and/or to
10586 *** bug-libtool@gnu.org
10596 MAGIC_CMD="$lt_save_MAGIC_CMD"
10601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10602 if test -n "$MAGIC_CMD"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10604 $as_echo "$MAGIC_CMD" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10614 if test -z "$lt_cv_path_MAGIC_CMD"; then
10615 if test -n "$ac_tool_prefix"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10617 $as_echo_n "checking for file... " >&6; }
10618 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10619 $as_echo_n "(cached) " >&6
10623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10626 lt_save_MAGIC_CMD="$MAGIC_CMD"
10627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10629 for ac_dir in $ac_dummy; do
10631 test -z "$ac_dir" && ac_dir=.
10632 if test -f $ac_dir/file; then
10633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10634 if test -n "$file_magic_test_file"; then
10635 case $deplibs_check_method in
10637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10640 $EGREP "$file_magic_regex" > /dev/null; then
10645 *** Warning: the command libtool uses to detect shared libraries,
10646 *** $file_magic_cmd, produces output that libtool cannot recognize.
10647 *** The result is that libtool may fail to recognize shared libraries
10648 *** as such. This will affect the creation of libtool libraries that
10649 *** depend on shared libraries, but programs linked with such libtool
10650 *** libraries will work regardless of this problem. Nevertheless, you
10651 *** may want to report the problem to your system manager and/or to
10652 *** bug-libtool@gnu.org
10662 MAGIC_CMD="$lt_save_MAGIC_CMD"
10667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10668 if test -n "$MAGIC_CMD"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10670 $as_echo "$MAGIC_CMD" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10686 # Use C for the default configuration in the libtool script
10690 ac_cpp='$CPP $CPPFLAGS'
10691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10696 # Source file extension for C test sources.
10699 # Object file extension for compiled C test sources.
10703 # Code to be used in simple compile tests
10704 lt_simple_compile_test_code="int some_variable = 0;"
10706 # Code to be used in simple link tests
10707 lt_simple_link_test_code='int main(){return(0);}'
10715 # If no C compiler was specified, use CC.
10718 # If no C compiler flags were specified, use CFLAGS.
10719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10721 # Allow CC to be a program name with arguments.
10724 # Save the default compiler, since it gets overwritten when the other
10725 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10726 compiler_DEFAULT=$CC
10728 # save warnings/boilerplate of simple test code
10729 ac_outfile=conftest.$ac_objext
10730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10732 _lt_compiler_boilerplate=`cat conftest.err`
10735 ac_outfile=conftest.$ac_objext
10736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10738 _lt_linker_boilerplate=`cat conftest.err`
10742 if test -n "$compiler"; then
10744 lt_prog_compiler_no_builtin_flag=
10746 if test "$GCC" = yes; then
10747 case $cc_basename in
10749 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10751 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10755 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10756 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10757 $as_echo_n "(cached) " >&6
10759 lt_cv_prog_compiler_rtti_exceptions=no
10760 ac_outfile=conftest.$ac_objext
10761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10762 lt_compiler_flag="-fno-rtti -fno-exceptions"
10763 # Insert the option either (1) after the last *FLAGS variable, or
10764 # (2) before a word containing "conftest.", or (3) at the end.
10765 # Note that $ac_compile itself does not contain backslashes and begins
10766 # with a dollar sign (not a hyphen), so the echo should work correctly.
10767 # The option is referenced via a variable to avoid confusing sed.
10768 lt_compile=`echo "$ac_compile" | $SED \
10769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10771 -e 's:$: $lt_compiler_flag:'`
10772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10773 (eval "$lt_compile" 2>conftest.err)
10775 cat conftest.err >&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 if (exit $ac_status) && test -s "$ac_outfile"; then
10778 # The compiler can only warn and ignore the option if not recognized
10779 # So say no if there are warnings other than the usual output.
10780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10783 lt_cv_prog_compiler_rtti_exceptions=yes
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10790 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10792 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10793 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10805 lt_prog_compiler_wl=
10806 lt_prog_compiler_pic=
10807 lt_prog_compiler_static=
10810 if test "$GCC" = yes; then
10811 lt_prog_compiler_wl='-Wl,'
10812 lt_prog_compiler_static='-static'
10816 # All AIX code is PIC.
10817 if test "$host_cpu" = ia64; then
10818 # AIX 5 now supports IA64 processor
10819 lt_prog_compiler_static='-Bstatic'
10826 # see comment about AmigaOS4 .so support
10827 lt_prog_compiler_pic='-fPIC'
10830 # FIXME: we need at least 68020 code to build shared libraries, but
10831 # adding the `-m68020' flag to GCC prevents building anything better,
10833 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10838 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10839 # PIC is the default for these OSes.
10842 mingw* | cygwin* | pw32* | os2* | cegcc*)
10843 # This hack is so that the source file can tell whether it is being
10844 # built for inclusion in a dll (and should export symbols for example).
10845 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10846 # (--disable-auto-import) libraries
10847 lt_prog_compiler_pic='-DDLL_EXPORT'
10850 darwin* | rhapsody*)
10851 # PIC is the default on this platform
10852 # Common symbols not allowed in MH_DYLIB files
10853 lt_prog_compiler_pic='-fno-common'
10857 # PIC is the default for Haiku.
10858 # The "-static" flag exists, but is broken.
10859 lt_prog_compiler_static=
10863 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10864 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10865 # sets the default TLS model and affects inlining.
10871 lt_prog_compiler_pic='-fPIC'
10877 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10878 # Instead, we relocate shared libraries at runtime.
10882 # Just because we use GCC doesn't mean we suddenly get shared libraries
10883 # on systems that don't support them.
10884 lt_prog_compiler_can_build_shared=no
10889 # QNX uses GNU C++, but need to define -shared option too, otherwise
10890 # it will coredump.
10891 lt_prog_compiler_pic='-fPIC -shared'
10895 if test -d /usr/nec; then
10896 lt_prog_compiler_pic=-Kconform_pic
10901 lt_prog_compiler_pic='-fPIC'
10905 case $cc_basename in
10906 nvcc*) # Cuda Compiler Driver 2.2
10907 lt_prog_compiler_wl='-Xlinker '
10908 if test -n "$lt_prog_compiler_pic"; then
10909 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10914 # PORTME Check for flag to pass linker flags through the system compiler.
10917 lt_prog_compiler_wl='-Wl,'
10918 if test "$host_cpu" = ia64; then
10919 # AIX 5 now supports IA64 processor
10920 lt_prog_compiler_static='-Bstatic'
10922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10926 mingw* | cygwin* | pw32* | os2* | cegcc*)
10927 # This hack is so that the source file can tell whether it is being
10928 # built for inclusion in a dll (and should export symbols for example).
10929 lt_prog_compiler_pic='-DDLL_EXPORT'
10932 hpux9* | hpux10* | hpux11*)
10933 lt_prog_compiler_wl='-Wl,'
10934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10935 # not for PA HP-UX.
10941 lt_prog_compiler_pic='+Z'
10944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10945 lt_prog_compiler_static='${wl}-a ${wl}archive'
10948 irix5* | irix6* | nonstopux*)
10949 lt_prog_compiler_wl='-Wl,'
10950 # PIC (with -KPIC) is the default.
10951 lt_prog_compiler_static='-non_shared'
10954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10955 case $cc_basename in
10956 # old Intel for x86_64 which still supported -KPIC.
10958 lt_prog_compiler_wl='-Wl,'
10959 lt_prog_compiler_pic='-KPIC'
10960 lt_prog_compiler_static='-static'
10962 # icc used to be incompatible with GCC.
10963 # ICC 10 doesn't accept -KPIC any more.
10965 lt_prog_compiler_wl='-Wl,'
10966 lt_prog_compiler_pic='-fPIC'
10967 lt_prog_compiler_static='-static'
10969 # Lahey Fortran 8.1.
10971 lt_prog_compiler_wl='-Wl,'
10972 lt_prog_compiler_pic='--shared'
10973 lt_prog_compiler_static='--static'
10976 # NAG Fortran compiler
10977 lt_prog_compiler_wl='-Wl,-Wl,,'
10978 lt_prog_compiler_pic='-PIC'
10979 lt_prog_compiler_static='-Bstatic'
10981 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10982 # Portland Group compilers (*not* the Pentium gcc compiler,
10983 # which looks to be a dead project)
10984 lt_prog_compiler_wl='-Wl,'
10985 lt_prog_compiler_pic='-fpic'
10986 lt_prog_compiler_static='-Bstatic'
10989 lt_prog_compiler_wl='-Wl,'
10990 # All Alpha code is PIC.
10991 lt_prog_compiler_static='-non_shared'
10993 xl* | bgxl* | bgf* | mpixl*)
10994 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10995 lt_prog_compiler_wl='-Wl,'
10996 lt_prog_compiler_pic='-qpic'
10997 lt_prog_compiler_static='-qstaticlink'
11000 case `$CC -V 2>&1 | sed 5q` in
11001 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11003 lt_prog_compiler_pic='-KPIC'
11004 lt_prog_compiler_static='-Bstatic'
11005 lt_prog_compiler_wl=''
11007 *Sun\ F* | *Sun*Fortran*)
11008 lt_prog_compiler_pic='-KPIC'
11009 lt_prog_compiler_static='-Bstatic'
11010 lt_prog_compiler_wl='-Qoption ld '
11014 lt_prog_compiler_pic='-KPIC'
11015 lt_prog_compiler_static='-Bstatic'
11016 lt_prog_compiler_wl='-Wl,'
11018 *Intel*\ [CF]*Compiler*)
11019 lt_prog_compiler_wl='-Wl,'
11020 lt_prog_compiler_pic='-fPIC'
11021 lt_prog_compiler_static='-static'
11024 lt_prog_compiler_wl='-Wl,'
11025 lt_prog_compiler_pic='-fpic'
11026 lt_prog_compiler_static='-Bstatic'
11034 lt_prog_compiler_pic='-KPIC'
11035 lt_prog_compiler_static='-Bstatic'
11039 # QNX uses GNU C++, but need to define -shared option too, otherwise
11040 # it will coredump.
11041 lt_prog_compiler_pic='-fPIC -shared'
11044 osf3* | osf4* | osf5*)
11045 lt_prog_compiler_wl='-Wl,'
11046 # All OSF/1 code is PIC.
11047 lt_prog_compiler_static='-non_shared'
11051 lt_prog_compiler_static='-non_shared'
11055 lt_prog_compiler_pic='-KPIC'
11056 lt_prog_compiler_static='-Bstatic'
11057 case $cc_basename in
11058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11059 lt_prog_compiler_wl='-Qoption ld ';;
11061 lt_prog_compiler_wl='-Wl,';;
11066 lt_prog_compiler_wl='-Qoption ld '
11067 lt_prog_compiler_pic='-PIC'
11068 lt_prog_compiler_static='-Bstatic'
11071 sysv4 | sysv4.2uw2* | sysv4.3*)
11072 lt_prog_compiler_wl='-Wl,'
11073 lt_prog_compiler_pic='-KPIC'
11074 lt_prog_compiler_static='-Bstatic'
11078 if test -d /usr/nec ;then
11079 lt_prog_compiler_pic='-Kconform_pic'
11080 lt_prog_compiler_static='-Bstatic'
11084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11085 lt_prog_compiler_wl='-Wl,'
11086 lt_prog_compiler_pic='-KPIC'
11087 lt_prog_compiler_static='-Bstatic'
11091 lt_prog_compiler_wl='-Wl,'
11092 lt_prog_compiler_can_build_shared=no
11096 lt_prog_compiler_pic='-pic'
11097 lt_prog_compiler_static='-Bstatic'
11101 lt_prog_compiler_can_build_shared=no
11107 # For platforms which do not support PIC, -DPIC is meaningless:
11109 lt_prog_compiler_pic=
11112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11117 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11118 if ${lt_cv_prog_compiler_pic+:} false; then :
11119 $as_echo_n "(cached) " >&6
11121 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11124 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11125 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11128 # Check to make sure the PIC flag actually works.
11130 if test -n "$lt_prog_compiler_pic"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11132 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11133 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11134 $as_echo_n "(cached) " >&6
11136 lt_cv_prog_compiler_pic_works=no
11137 ac_outfile=conftest.$ac_objext
11138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11139 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11140 # Insert the option either (1) after the last *FLAGS variable, or
11141 # (2) before a word containing "conftest.", or (3) at the end.
11142 # Note that $ac_compile itself does not contain backslashes and begins
11143 # with a dollar sign (not a hyphen), so the echo should work correctly.
11144 # The option is referenced via a variable to avoid confusing sed.
11145 lt_compile=`echo "$ac_compile" | $SED \
11146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11148 -e 's:$: $lt_compiler_flag:'`
11149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11150 (eval "$lt_compile" 2>conftest.err)
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 if (exit $ac_status) && test -s "$ac_outfile"; then
11155 # The compiler can only warn and ignore the option if not recognized
11156 # So say no if there are warnings other than the usual output.
11157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11160 lt_cv_prog_compiler_pic_works=yes
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11167 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11169 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11170 case $lt_prog_compiler_pic in
11172 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11175 lt_prog_compiler_pic=
11176 lt_prog_compiler_can_build_shared=no
11192 # Check to make sure the static flag actually works.
11194 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11197 if ${lt_cv_prog_compiler_static_works+:} false; then :
11198 $as_echo_n "(cached) " >&6
11200 lt_cv_prog_compiler_static_works=no
11201 save_LDFLAGS="$LDFLAGS"
11202 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11203 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11205 # The linker can only warn and ignore the option if not recognized
11206 # So say no if there are warnings
11207 if test -s conftest.err; then
11208 # Append any errors to the config.log.
11209 cat conftest.err 1>&5
11210 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11212 if diff conftest.exp conftest.er2 >/dev/null; then
11213 lt_cv_prog_compiler_static_works=yes
11216 lt_cv_prog_compiler_static_works=yes
11220 LDFLAGS="$save_LDFLAGS"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11224 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11226 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11229 lt_prog_compiler_static=
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11240 if ${lt_cv_prog_compiler_c_o+:} false; then :
11241 $as_echo_n "(cached) " >&6
11243 lt_cv_prog_compiler_c_o=no
11244 $RM -r conftest 2>/dev/null
11248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11250 lt_compiler_flag="-o out/conftest2.$ac_objext"
11251 # Insert the option either (1) after the last *FLAGS variable, or
11252 # (2) before a word containing "conftest.", or (3) at the end.
11253 # Note that $ac_compile itself does not contain backslashes and begins
11254 # with a dollar sign (not a hyphen), so the echo should work correctly.
11255 lt_compile=`echo "$ac_compile" | $SED \
11256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11258 -e 's:$: $lt_compiler_flag:'`
11259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11260 (eval "$lt_compile" 2>out/conftest.err)
11262 cat out/conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11266 # The compiler can only warn and ignore the option if not recognized
11267 # So say no if there are warnings
11268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11269 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11270 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11271 lt_cv_prog_compiler_c_o=yes
11276 # SGI C++ compiler will create directory out/ii_files/ for
11277 # template instantiation
11278 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11279 $RM out/* && rmdir out
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11295 if ${lt_cv_prog_compiler_c_o+:} false; then :
11296 $as_echo_n "(cached) " >&6
11298 lt_cv_prog_compiler_c_o=no
11299 $RM -r conftest 2>/dev/null
11303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11305 lt_compiler_flag="-o out/conftest2.$ac_objext"
11306 # Insert the option either (1) after the last *FLAGS variable, or
11307 # (2) before a word containing "conftest.", or (3) at the end.
11308 # Note that $ac_compile itself does not contain backslashes and begins
11309 # with a dollar sign (not a hyphen), so the echo should work correctly.
11310 lt_compile=`echo "$ac_compile" | $SED \
11311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11313 -e 's:$: $lt_compiler_flag:'`
11314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11315 (eval "$lt_compile" 2>out/conftest.err)
11317 cat out/conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11321 # The compiler can only warn and ignore the option if not recognized
11322 # So say no if there are warnings
11323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11326 lt_cv_prog_compiler_c_o=yes
11331 # SGI C++ compiler will create directory out/ii_files/ for
11332 # template instantiation
11333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11334 $RM out/* && rmdir out
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11341 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11346 hard_links="nottested"
11347 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11348 # do not overwrite the value of need_locks provided by the user
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11350 $as_echo_n "checking if we can lock with hard links... " >&6; }
11353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11355 ln conftest.a conftest.b 2>&5 || hard_links=no
11356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11358 $as_echo "$hard_links" >&6; }
11359 if test "$hard_links" = no; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11361 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11374 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11377 allow_undefined_flag=
11378 always_export_symbols=no
11380 archive_expsym_cmds=
11381 compiler_needs_object=no
11382 enable_shared_with_static_runtimes=no
11383 export_dynamic_flag_spec=
11384 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11385 hardcode_automatic=no
11387 hardcode_direct_absolute=no
11388 hardcode_libdir_flag_spec=
11389 hardcode_libdir_separator=
11390 hardcode_minus_L=no
11391 hardcode_shlibpath_var=unsupported
11393 link_all_deplibs=unknown
11395 module_expsym_cmds=
11396 old_archive_from_new_cmds=
11397 old_archive_from_expsyms_cmds=
11398 thread_safe_flag_spec=
11399 whole_archive_flag_spec=
11400 # include_expsyms should be a list of space-separated symbols to be *always*
11401 # included in the symbol list
11403 # exclude_expsyms can be an extended regexp of symbols to exclude
11404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11406 # as well as any symbol that contains `d'.
11407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11409 # platforms (ab)use it in PIC code, but their linkers get confused if
11410 # the symbol is explicitly referenced. Since portable code cannot
11411 # rely on this symbol name, it's probably fine to never include it in
11412 # preloaded symbol tables.
11413 # Exclude shared library initialization/finalization symbols.
11414 extract_expsyms_cmds=
11417 cygwin* | mingw* | pw32* | cegcc*)
11418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11419 # When not using gcc, we currently assume that we are using
11420 # Microsoft Visual C++.
11421 if test "$GCC" != yes; then
11426 # we just hope/assume this is gcc and not c89 (= MSVC++)
11432 linux* | k*bsd*-gnu | gnu*)
11433 link_all_deplibs=no
11439 # On some targets, GNU ld is compatible enough with the native linker
11440 # that we're better off using the native interface for both.
11441 lt_use_gnu_ld_interface=no
11442 if test "$with_gnu_ld" = yes; then
11445 # The AIX port of GNU ld has always aspired to compatibility
11446 # with the native linker. However, as the warning in the GNU ld
11447 # block says, versions before 2.19.5* couldn't really create working
11448 # shared libraries, regardless of the interface used.
11449 case `$LD -v 2>&1` in
11450 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11451 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11452 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11454 lt_use_gnu_ld_interface=yes
11459 lt_use_gnu_ld_interface=yes
11464 if test "$lt_use_gnu_ld_interface" = yes; then
11465 # If archive_cmds runs LD, not CC, wlarc should be empty
11468 # Set some defaults for GNU ld with shared library support. These
11469 # are reset later if shared libraries are not supported. Putting them
11470 # here allows them to be overridden if necessary.
11471 runpath_var=LD_RUN_PATH
11472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11473 export_dynamic_flag_spec='${wl}--export-dynamic'
11474 # ancient GNU ld didn't support --whole-archive et. al.
11475 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11476 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11478 whole_archive_flag_spec=
11480 supports_anon_versioning=no
11481 case `$LD -v 2>&1` in
11482 *GNU\ gold*) supports_anon_versioning=yes ;;
11483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11486 *\ 2.11.*) ;; # other 2.11 versions
11487 *) supports_anon_versioning=yes ;;
11490 # See if GNU ld supports shared libraries.
11493 # On AIX/PPC, the GNU linker is very broken
11494 if test "$host_cpu" != ia64; then
11498 *** Warning: the GNU linker, at least up to release 2.19, is reported
11499 *** to be unable to reliably create shared libraries on AIX.
11500 *** Therefore, libtool is disabling shared libraries support. If you
11501 *** really care for shared libraries, you may want to install binutils
11502 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11503 *** You will then need to restart the configuration process.
11512 # see comment about AmigaOS4 .so support
11513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514 archive_expsym_cmds=''
11517 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)'
11518 hardcode_libdir_flag_spec='-L$libdir'
11519 hardcode_minus_L=yes
11525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11526 allow_undefined_flag=unsupported
11527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11528 # support --undefined. This deserves some investigation. FIXME
11529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11535 cygwin* | mingw* | pw32* | cegcc*)
11536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11537 # as there is no search path for DLLs.
11538 hardcode_libdir_flag_spec='-L$libdir'
11539 export_dynamic_flag_spec='${wl}--export-all-symbols'
11540 allow_undefined_flag=unsupported
11541 always_export_symbols=no
11542 enable_shared_with_static_runtimes=yes
11543 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'
11544 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11546 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11548 # If the export-symbols file already is a .def file (1st line
11549 # is EXPORTS), use it as is; otherwise, prepend...
11550 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11551 cp $export_symbols $output_objdir/$soname.def;
11553 echo EXPORTS > $output_objdir/$soname.def;
11554 cat $export_symbols >> $output_objdir/$soname.def;
11556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11564 link_all_deplibs=yes
11569 hardcode_shlibpath_var=no
11570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11571 export_dynamic_flag_spec='${wl}-E'
11572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11573 # Instead, shared libraries are loaded at an image base (0x10000000 by
11574 # default) and relocated if they conflict, which is a slow very memory
11575 # consuming and fragmenting process. To avoid this, we pick a random,
11576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11579 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'
11582 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11584 if test "$host_os" = linux-dietlibc; then
11585 case $cc_basename in
11586 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11589 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11590 && test "$tmp_diet" = no
11592 tmp_addflag=' $pic_flag'
11593 tmp_sharedflag='-shared'
11594 case $cc_basename,$host_cpu in
11595 pgcc*) # Portland Group C compiler
11596 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'
11597 tmp_addflag=' $pic_flag'
11599 pgf77* | pgf90* | pgf95* | pgfortran*)
11600 # Portland Group f77 and f90 compilers
11601 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'
11602 tmp_addflag=' $pic_flag -Mnomain' ;;
11603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11604 tmp_addflag=' -i_dynamic' ;;
11605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11606 tmp_addflag=' -i_dynamic -nofor_main' ;;
11607 ifc* | ifort*) # Intel Fortran compiler
11608 tmp_addflag=' -nofor_main' ;;
11609 lf95*) # Lahey Fortran 8.1
11610 whole_archive_flag_spec=
11611 tmp_sharedflag='--shared' ;;
11612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11613 tmp_sharedflag='-qmkshrobj'
11615 nvcc*) # Cuda Compiler Driver 2.2
11616 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'
11617 compiler_needs_object=yes
11620 case `$CC -V 2>&1 | sed 5q` in
11621 *Sun\ C*) # Sun C 5.9
11622 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'
11623 compiler_needs_object=yes
11624 tmp_sharedflag='-G' ;;
11625 *Sun\ F*) # Sun Fortran 8.3
11626 tmp_sharedflag='-G' ;;
11628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630 if test "x$supports_anon_versioning" = xyes; then
11631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11633 echo "local: *; };" >> $output_objdir/$libname.ver~
11634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11637 case $cc_basename in
11638 xlf* | bgf* | bgxlf* | mpixlf*)
11639 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11640 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11642 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11643 if test "x$supports_anon_versioning" = xyes; then
11644 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11646 echo "local: *; };" >> $output_objdir/$libname.ver~
11647 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11656 netbsd* | netbsdelf*-gnu)
11657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11658 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11662 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11667 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11671 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11672 *** create shared libraries on Solaris systems. Therefore, libtool
11673 *** is disabling shared libraries support. We urge you to upgrade GNU
11674 *** binutils to release 2.9.1 or newer. Another option is to modify
11675 *** your PATH or compiler configuration so that the native linker is
11676 *** used, and then restart.
11679 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11681 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11687 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11688 case `$LD -v 2>&1` in
11689 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11693 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11694 *** reliably create shared libraries on SCO systems. Therefore, libtool
11695 *** is disabling shared libraries support. We urge you to upgrade GNU
11696 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11697 *** your PATH or compiler configuration so that the native linker is
11698 *** used, and then restart.
11703 # For security reasons, it is highly recommended that you always
11704 # use absolute paths for naming shared libraries, and exclude the
11705 # DT_RUNPATH tag from executables and libraries. But doing so
11706 # requires that you compile everything twice, which is a pain.
11707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11719 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11721 hardcode_direct=yes
11722 hardcode_shlibpath_var=no
11726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11735 if test "$ld_shlibs" = no; then
11737 hardcode_libdir_flag_spec=
11738 export_dynamic_flag_spec=
11739 whole_archive_flag_spec=
11742 # PORTME fill in a description of your system's linker (not GNU ld)
11745 allow_undefined_flag=unsupported
11746 always_export_symbols=yes
11747 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'
11748 # Note: this linker hardcodes the directories in LIBPATH if there
11749 # are no directories specified by -L.
11750 hardcode_minus_L=yes
11751 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11752 # Neither direct hardcoding nor static linking is supported with a
11754 hardcode_direct=unsupported
11759 if test "$host_cpu" = ia64; then
11760 # On IA64, the linker does run time linking by default, so we don't
11761 # have to do anything special.
11762 aix_use_runtimelinking=no
11763 exp_sym_flag='-Bexport'
11766 # If we're using GNU nm, then we don't want the "-C" option.
11767 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11768 # Also, AIX nm treats weak defined symbols like other global
11769 # defined symbols, whereas GNU nm marks them as "W".
11770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11771 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'
11773 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'
11775 aix_use_runtimelinking=no
11777 # Test if we are trying to use run time linking or normal
11778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11779 # need to do runtime linking.
11780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11781 for ld_flag in $LDFLAGS; do
11782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11783 aix_use_runtimelinking=yes
11790 exp_sym_flag='-bexport'
11791 no_entry_flag='-bnoentry'
11794 # When large executables or shared objects are built, AIX ld can
11795 # have problems creating the table of contents. If linking a library
11796 # or program results in "error TOC overflow" add -mminimal-toc to
11797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11801 hardcode_direct=yes
11802 hardcode_direct_absolute=yes
11803 hardcode_libdir_separator=':'
11804 link_all_deplibs=yes
11805 file_list_spec='${wl}-f,'
11807 if test "$GCC" = yes; then
11808 case $host_os in aix4.[012]|aix4.[012].*)
11809 # We only want to do this on AIX 4.2 and lower, the check
11810 # below for broken collect2 doesn't work under 4.3+
11811 collect2name=`${CC} -print-prog-name=collect2`
11812 if test -f "$collect2name" &&
11813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11815 # We have reworked collect2
11818 # We have old collect2
11819 hardcode_direct=unsupported
11820 # It fails to find uninstalled libraries when the uninstalled
11821 # path is not listed in the libpath. Setting hardcode_minus_L
11822 # to unsupported forces relinking
11823 hardcode_minus_L=yes
11824 hardcode_libdir_flag_spec='-L$libdir'
11825 hardcode_libdir_separator=
11829 shared_flag='-shared'
11830 if test "$aix_use_runtimelinking" = yes; then
11831 shared_flag="$shared_flag "'${wl}-G'
11833 link_all_deplibs=no
11836 if test "$host_cpu" = ia64; then
11837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11838 # chokes on -Wl,-G. The following line is correct:
11841 if test "$aix_use_runtimelinking" = yes; then
11842 shared_flag='${wl}-G'
11844 shared_flag='${wl}-bM:SRE'
11849 export_dynamic_flag_spec='${wl}-bexpall'
11850 # It seems that -bexpall does not export symbols beginning with
11851 # underscore (_), so it is better to generate a list of symbols to export.
11852 always_export_symbols=yes
11853 if test "$aix_use_runtimelinking" = yes; then
11854 # Warning - without using the other runtime loading flags (-brtl),
11855 # -berok will link without error, but may produce a broken library.
11856 allow_undefined_flag='-berok'
11857 # Determine the default libpath from the value encoded in an
11858 # empty executable.
11859 if test "${lt_cv_aix_libpath+set}" = set; then
11860 aix_libpath=$lt_cv_aix_libpath
11862 if ${lt_cv_aix_libpath_+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11876 if ac_fn_c_try_link "$LINENO"; then :
11878 lt_aix_libpath_sed='
11879 /Import File Strings/,/^$/ {
11881 s/^0 *\([^ ]*\) *$/\1/
11885 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11886 # Check for a 64-bit object if we didn't find anything.
11887 if test -z "$lt_cv_aix_libpath_"; then
11888 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 if test -z "$lt_cv_aix_libpath_"; then
11894 lt_cv_aix_libpath_="/usr/lib:/lib"
11899 aix_libpath=$lt_cv_aix_libpath_
11902 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11903 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"
11905 if test "$host_cpu" = ia64; then
11906 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11907 allow_undefined_flag="-z nodefs"
11908 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"
11910 # Determine the default libpath from the value encoded in an
11911 # empty executable.
11912 if test "${lt_cv_aix_libpath+set}" = set; then
11913 aix_libpath=$lt_cv_aix_libpath
11915 if ${lt_cv_aix_libpath_+:} false; then :
11916 $as_echo_n "(cached) " >&6
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11929 if ac_fn_c_try_link "$LINENO"; then :
11931 lt_aix_libpath_sed='
11932 /Import File Strings/,/^$/ {
11934 s/^0 *\([^ ]*\) *$/\1/
11938 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11939 # Check for a 64-bit object if we didn't find anything.
11940 if test -z "$lt_cv_aix_libpath_"; then
11941 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 if test -z "$lt_cv_aix_libpath_"; then
11947 lt_cv_aix_libpath_="/usr/lib:/lib"
11952 aix_libpath=$lt_cv_aix_libpath_
11955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11956 # Warning - without using the other run time loading flags,
11957 # -berok will link without error, but may produce a broken library.
11958 no_undefined_flag=' ${wl}-bernotok'
11959 allow_undefined_flag=' ${wl}-berok'
11960 if test "$with_gnu_ld" = yes; then
11961 # We only use this code for GNU lds that support --whole-archive.
11962 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11964 # Exported symbols can be pulled into shared objects from archives
11965 whole_archive_flag_spec='$convenience'
11967 archive_cmds_need_lc=yes
11968 # This is similar to how AIX traditionally builds its shared libraries.
11969 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'
11977 # see comment about AmigaOS4 .so support
11978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11979 archive_expsym_cmds=''
11982 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)'
11983 hardcode_libdir_flag_spec='-L$libdir'
11984 hardcode_minus_L=yes
11990 export_dynamic_flag_spec=-rdynamic
11993 cygwin* | mingw* | pw32* | cegcc*)
11994 # When not using gcc, we currently assume that we are using
11995 # Microsoft Visual C++.
11996 # hardcode_libdir_flag_spec is actually meaningless, as there is
11997 # no search path for DLLs.
11998 case $cc_basename in
12001 hardcode_libdir_flag_spec=' '
12002 allow_undefined_flag=unsupported
12003 always_export_symbols=yes
12005 # Tell ltmain to make .lib files, not .a files.
12007 # Tell ltmain to make .dll files, not .so files.
12009 # FIXME: Setting linknames here is a bad hack.
12010 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12011 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12012 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12014 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12016 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12018 # The linker will not automatically build a static lib if we build a DLL.
12019 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12020 enable_shared_with_static_runtimes=yes
12021 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12024 old_postinstall_cmds='chmod 644 $oldlib'
12025 postlink_cmds='lt_outputfile="@OUTPUT@"~
12026 lt_tool_outputfile="@TOOL_OUTPUT@"~
12027 case $lt_outputfile in
12030 lt_outputfile="$lt_outputfile.exe"
12031 lt_tool_outputfile="$lt_tool_outputfile.exe"
12034 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12035 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12036 $RM "$lt_outputfile.manifest";
12040 # Assume MSVC wrapper
12041 hardcode_libdir_flag_spec=' '
12042 allow_undefined_flag=unsupported
12043 # Tell ltmain to make .lib files, not .a files.
12045 # Tell ltmain to make .dll files, not .so files.
12047 # FIXME: Setting linknames here is a bad hack.
12048 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12049 # The linker will automatically build a .lib file if we build a DLL.
12050 old_archive_from_new_cmds='true'
12051 # FIXME: Should let the user specify the lib program.
12052 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12053 enable_shared_with_static_runtimes=yes
12058 darwin* | rhapsody*)
12061 archive_cmds_need_lc=no
12063 hardcode_automatic=yes
12064 hardcode_shlibpath_var=unsupported
12065 if test "$lt_cv_ld_force_load" = "yes"; then
12066 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\"`'
12069 whole_archive_flag_spec=''
12071 link_all_deplibs=yes
12072 allow_undefined_flag="$_lt_dar_allow_undefined"
12073 case $cc_basename in
12074 ifort*) _lt_dar_can_shared=yes ;;
12075 *) _lt_dar_can_shared=$GCC ;;
12077 if test "$_lt_dar_can_shared" = "yes"; then
12078 output_verbose_link_cmd=func_echo_all
12079 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12080 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12081 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}"
12082 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}"
12091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12092 hardcode_libdir_flag_spec='-L$libdir'
12093 hardcode_shlibpath_var=no
12096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12097 # support. Future versions do this automatically, but an explicit c++rt0.o
12098 # does not break anything, and helps significantly (at the cost of a little
12101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12102 hardcode_libdir_flag_spec='-R$libdir'
12103 hardcode_direct=yes
12104 hardcode_shlibpath_var=no
12107 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12110 hardcode_direct=yes
12111 hardcode_minus_L=yes
12112 hardcode_shlibpath_var=no
12115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12116 freebsd* | dragonfly*)
12117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12118 hardcode_libdir_flag_spec='-R$libdir'
12119 hardcode_direct=yes
12120 hardcode_shlibpath_var=no
12124 if test "$GCC" = yes; then
12125 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'
12127 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'
12129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12130 hardcode_libdir_separator=:
12131 hardcode_direct=yes
12133 # hardcode_minus_L: Not really in the search PATH,
12134 # but as the default location of the library.
12135 hardcode_minus_L=yes
12136 export_dynamic_flag_spec='${wl}-E'
12140 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12141 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12143 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12145 if test "$with_gnu_ld" = no; then
12146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12147 hardcode_libdir_separator=:
12148 hardcode_direct=yes
12149 hardcode_direct_absolute=yes
12150 export_dynamic_flag_spec='${wl}-E'
12151 # hardcode_minus_L: Not really in the search PATH,
12152 # but as the default location of the library.
12153 hardcode_minus_L=yes
12158 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12164 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12167 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12173 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12180 # Older versions of the 11.00 compiler do not understand -b yet
12181 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12183 $as_echo_n "checking if $CC understands -b... " >&6; }
12184 if ${lt_cv_prog_compiler__b+:} false; then :
12185 $as_echo_n "(cached) " >&6
12187 lt_cv_prog_compiler__b=no
12188 save_LDFLAGS="$LDFLAGS"
12189 LDFLAGS="$LDFLAGS -b"
12190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12192 # The linker can only warn and ignore the option if not recognized
12193 # So say no if there are warnings
12194 if test -s conftest.err; then
12195 # Append any errors to the config.log.
12196 cat conftest.err 1>&5
12197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12199 if diff conftest.exp conftest.er2 >/dev/null; then
12200 lt_cv_prog_compiler__b=yes
12203 lt_cv_prog_compiler__b=yes
12207 LDFLAGS="$save_LDFLAGS"
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12211 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12213 if test x"$lt_cv_prog_compiler__b" = xyes; then
12214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12222 if test "$with_gnu_ld" = no; then
12223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12224 hardcode_libdir_separator=:
12229 hardcode_shlibpath_var=no
12232 hardcode_direct=yes
12233 hardcode_direct_absolute=yes
12234 export_dynamic_flag_spec='${wl}-E'
12236 # hardcode_minus_L: Not really in the search PATH,
12237 # but as the default location of the library.
12238 hardcode_minus_L=yes
12244 irix5* | irix6* | nonstopux*)
12245 if test "$GCC" = yes; then
12246 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'
12247 # Try to use the -exported_symbol ld option, if it does not
12248 # work, assume that -exports_file does not work either and
12249 # implicitly export all symbols.
12250 # This should be the same for all languages, so no per-tag cache variable.
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12252 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12253 if ${lt_cv_irix_exported_symbol+:} false; then :
12254 $as_echo_n "(cached) " >&6
12256 save_LDFLAGS="$LDFLAGS"
12257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 int foo (void) { return 0; }
12262 if ac_fn_c_try_link "$LINENO"; then :
12263 lt_cv_irix_exported_symbol=yes
12265 lt_cv_irix_exported_symbol=no
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LDFLAGS="$save_LDFLAGS"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12272 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12273 if test "$lt_cv_irix_exported_symbol" = yes; then
12274 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'
12277 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'
12278 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'
12280 archive_cmds_need_lc='no'
12281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12282 hardcode_libdir_separator=:
12284 link_all_deplibs=yes
12287 netbsd* | netbsdelf*-gnu)
12288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12291 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12293 hardcode_libdir_flag_spec='-R$libdir'
12294 hardcode_direct=yes
12295 hardcode_shlibpath_var=no
12299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12300 hardcode_direct=yes
12301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12302 hardcode_libdir_separator=:
12303 hardcode_shlibpath_var=no
12310 if test -f /usr/libexec/ld.so; then
12311 hardcode_direct=yes
12312 hardcode_shlibpath_var=no
12313 hardcode_direct_absolute=yes
12314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12316 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12318 export_dynamic_flag_spec='${wl}-E'
12321 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12323 hardcode_libdir_flag_spec='-R$libdir'
12326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12337 hardcode_libdir_flag_spec='-L$libdir'
12338 hardcode_minus_L=yes
12339 allow_undefined_flag=unsupported
12340 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'
12341 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12345 if test "$GCC" = yes; then
12346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12347 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'
12349 allow_undefined_flag=' -expect_unresolved \*'
12350 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'
12352 archive_cmds_need_lc='no'
12353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12354 hardcode_libdir_separator=:
12357 osf4* | osf5*) # as osf3* with the addition of -msym flag
12358 if test "$GCC" = yes; then
12359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12360 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'
12361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12363 allow_undefined_flag=' -expect_unresolved \*'
12364 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'
12365 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~
12366 $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'
12368 # Both c and cxx compiler support -rpath directly
12369 hardcode_libdir_flag_spec='-rpath $libdir'
12371 archive_cmds_need_lc='no'
12372 hardcode_libdir_separator=:
12376 no_undefined_flag=' -z defs'
12377 if test "$GCC" = yes; then
12379 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12381 $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'
12383 case `$CC -V 2>&1` in
12386 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12392 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12394 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12398 hardcode_libdir_flag_spec='-R$libdir'
12399 hardcode_shlibpath_var=no
12401 solaris2.[0-5] | solaris2.[0-5].*) ;;
12403 # The compiler driver will combine and reorder linker options,
12404 # but understands `-z linker_flag'. GCC discards it without `$wl',
12405 # but is careful enough not to reorder.
12406 # Supported since Solaris 2.6 (maybe 2.5.1?)
12407 if test "$GCC" = yes; then
12408 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12414 link_all_deplibs=yes
12418 if test "x$host_vendor" = xsequent; then
12419 # Use $CC to link under sequent, because it throws in some extra .o
12420 # files that make .init and .fini sections work.
12421 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12423 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12425 hardcode_libdir_flag_spec='-L$libdir'
12426 hardcode_direct=yes
12427 hardcode_minus_L=yes
12428 hardcode_shlibpath_var=no
12432 case $host_vendor in
12434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12435 hardcode_direct=yes # is this really true???
12438 ## LD is ld it makes a PLAMLIB
12439 ## CC just makes a GrossModule.
12440 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12441 reload_cmds='$CC -r -o $output$reload_objs'
12445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12446 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12449 runpath_var='LD_RUN_PATH'
12450 hardcode_shlibpath_var=no
12454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12455 hardcode_shlibpath_var=no
12456 export_dynamic_flag_spec='-Bexport'
12460 if test -d /usr/nec; then
12461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12462 hardcode_shlibpath_var=no
12463 runpath_var=LD_RUN_PATH
12464 hardcode_runpath_var=yes
12469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12470 no_undefined_flag='${wl}-z,text'
12471 archive_cmds_need_lc=no
12472 hardcode_shlibpath_var=no
12473 runpath_var='LD_RUN_PATH'
12475 if test "$GCC" = yes; then
12476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12484 sysv5* | sco3.2v5* | sco5v6*)
12485 # Note: We can NOT use -z defs as we might desire, because we do not
12486 # link with -lc, and that would cause any symbols used from libc to
12487 # always be unresolved, which means just about no library would
12488 # ever link correctly. If we're not using GNU ld we use -z text
12489 # though, which does catch some bad symbols but isn't as heavy-handed
12491 no_undefined_flag='${wl}-z,text'
12492 allow_undefined_flag='${wl}-z,nodefs'
12493 archive_cmds_need_lc=no
12494 hardcode_shlibpath_var=no
12495 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12496 hardcode_libdir_separator=':'
12497 link_all_deplibs=yes
12498 export_dynamic_flag_spec='${wl}-Bexport'
12499 runpath_var='LD_RUN_PATH'
12501 if test "$GCC" = yes; then
12502 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12505 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12506 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12512 hardcode_libdir_flag_spec='-L$libdir'
12513 hardcode_shlibpath_var=no
12521 if test x$host_vendor = xsni; then
12523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12524 export_dynamic_flag_spec='${wl}-Blargedynsym'
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12531 $as_echo "$ld_shlibs" >&6; }
12532 test "$ld_shlibs" = no && can_build_shared=no
12534 with_gnu_ld=$with_gnu_ld
12551 # Do we need to explicitly link libc?
12553 case "x$archive_cmds_need_lc" in
12555 # Assume -lc should be added
12556 archive_cmds_need_lc=yes
12558 if test "$enable_shared" = yes && test "$GCC" = yes; then
12559 case $archive_cmds in
12561 # FIXME: we may have to deal with multi-command sequences.
12564 # Test whether the compiler implicitly links with -lc since on some
12565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12566 # to ld, don't add -lc before -lgcc.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12569 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12570 $as_echo_n "(cached) " >&6
12573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12576 (eval $ac_compile) 2>&5
12578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12579 test $ac_status = 0; } 2>conftest.err; then
12582 libobjs=conftest.$ac_objext
12584 wl=$lt_prog_compiler_wl
12585 pic_flag=$lt_prog_compiler_pic
12591 lt_save_allow_undefined_flag=$allow_undefined_flag
12592 allow_undefined_flag=
12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12594 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }
12599 lt_cv_archive_cmds_need_lc=no
12601 lt_cv_archive_cmds_need_lc=yes
12603 allow_undefined_flag=$lt_save_allow_undefined_flag
12605 cat conftest.err 1>&5
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12611 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12612 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12771 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12773 if test "$GCC" = yes; then
12775 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12776 *) lt_awk_arg="/^libraries:/" ;;
12779 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12780 *) lt_sed_strip_eq="s,=/,/,g" ;;
12782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12783 case $lt_search_path_spec in
12785 # if the path contains ";" then we assume it to be the separator
12786 # otherwise default to the standard path separator (i.e. ":") - it is
12787 # assumed that no part of a normal pathname contains ";" but that should
12788 # okay in the real world where ";" in dirpaths is itself problematic.
12789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12795 # Ok, now we have the path, separated by spaces, we can step through it
12796 # and add multilib dir if necessary.
12797 lt_tmp_lt_search_path_spec=
12798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12799 for lt_sys_path in $lt_search_path_spec; do
12800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12803 test -d "$lt_sys_path" && \
12804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12807 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12808 BEGIN {RS=" "; FS="/|\n";} {
12811 for (lt_i = NF; lt_i > 0; lt_i--) {
12812 if ($lt_i != "" && $lt_i != ".") {
12813 if ($lt_i == "..") {
12816 if (lt_count == 0) {
12817 lt_foo="/" $lt_i lt_foo;
12824 if (lt_foo != "") { lt_freq[lt_foo]++; }
12825 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12827 # AWK program above erroneously prepends '/' to C:/dos/paths
12830 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12831 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12833 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12837 library_names_spec=
12838 libname_spec='lib$name'
12842 postuninstall_cmds=
12846 shlibpath_overrides_runpath=unknown
12848 dynamic_linker="$host_os ld.so"
12849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12850 need_lib_prefix=unknown
12851 hardcode_into_libs=no
12853 # when you set need_version to no, make sure it does not cause -set_version
12854 # flags to be left without arguments
12855 need_version=unknown
12859 version_type=linux # correct to gnu/linux during the next big refactor
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12861 shlibpath_var=LIBPATH
12863 # AIX 3 has no versioning support, so we append a major version to the name.
12864 soname_spec='${libname}${release}${shared_ext}$major'
12868 version_type=linux # correct to gnu/linux during the next big refactor
12871 hardcode_into_libs=yes
12872 if test "$host_cpu" = ia64; then
12873 # AIX 5 supports IA64
12874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12875 shlibpath_var=LD_LIBRARY_PATH
12877 # With GCC up to 2.95.x, collect2 would create an import file
12878 # for dependence libraries. The import file would start with
12879 # the line `#! .'. This would cause the generated library to
12880 # depend on `.', always an invalid library. This was fixed in
12881 # development snapshots of GCC prior to 3.0.
12883 aix4 | aix4.[01] | aix4.[01].*)
12884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12886 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12889 can_build_shared=no
12893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12894 # soname into executable. Probably we can add versioning support to
12895 # collect2, so additional links can be useful in future.
12896 if test "$aix_use_runtimelinking" = yes; then
12897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12898 # instead of lib<name>.a to let people know that these are not
12899 # typical AIX shared libraries.
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12902 # We preserve .a as extension for shared libraries through AIX4.2
12903 # and later when we are not doing run time linking.
12904 library_names_spec='${libname}${release}.a $libname.a'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12907 shlibpath_var=LIBPATH
12914 # Since July 2007 AmigaOS4 officially supports .so libraries.
12915 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919 library_names_spec='$libname.ixlibrary $libname.a'
12920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12921 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'
12927 library_names_spec='${libname}${shared_ext}'
12928 dynamic_linker="$host_os ld.so"
12929 shlibpath_var=LIBRARY_PATH
12933 version_type=linux # correct to gnu/linux during the next big refactor
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12940 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12941 # the default ld.so.conf also contains /usr/contrib/lib and
12942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12943 # libtool to hard-code these into programs
12946 cygwin* | mingw* | pw32* | cegcc*)
12947 version_type=windows
12952 case $GCC,$cc_basename in
12955 library_names_spec='$libname.dll.a'
12956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12957 postinstall_cmds='base_file=`basename \${file}`~
12958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12959 dldir=$destdir/`dirname \$dlpath`~
12960 test -d \$dldir || mkdir -p \$dldir~
12961 $install_prog $dir/$dlname \$dldir/$dlname~
12962 chmod a+x \$dldir/$dlname~
12963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12967 dlpath=$dir/\$dldll~
12969 shlibpath_overrides_runpath=yes
12973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12974 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12976 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12979 # MinGW DLLs use traditional 'lib' prefix
12980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12983 # pw32 DLLs use 'pw' prefix rather than 'lib'
12984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12987 dynamic_linker='Win32 ld.exe'
12992 libname_spec='$name'
12993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12994 library_names_spec='${libname}.dll.lib'
12998 sys_lib_search_path_spec=
13001 for lt_path in $LIB
13004 # Let DOS variable expansion print the short 8.3 style file name.
13005 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13006 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13009 # Convert to MSYS style.
13010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13013 # Convert to unix form, then to dos form, then back to unix form
13014 # but this time dos style (no spaces!) so that the unix form looks
13015 # like /cygdrive/c/PROGRA~1:/cygdr...
13016 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13017 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13018 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13021 sys_lib_search_path_spec="$LIB"
13022 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13023 # It is most probably a Windows format PATH.
13024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13028 # FIXME: find the short name or the path components, as spaces are
13029 # common. (e.g. "Program Files" -> "PROGRA~1")
13033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13034 postinstall_cmds='base_file=`basename \${file}`~
13035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13036 dldir=$destdir/`dirname \$dlpath`~
13037 test -d \$dldir || mkdir -p \$dldir~
13038 $install_prog $dir/$dlname \$dldir/$dlname'
13039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13040 dlpath=$dir/\$dldll~
13042 shlibpath_overrides_runpath=yes
13043 dynamic_linker='Win32 link.exe'
13047 # Assume MSVC wrapper
13048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13049 dynamic_linker='Win32 ld.exe'
13052 # FIXME: first we should search . and the directory the executable is in
13056 darwin* | rhapsody*)
13057 dynamic_linker="$host_os dyld"
13058 version_type=darwin
13061 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13062 soname_spec='${libname}${release}${major}$shared_ext'
13063 shlibpath_overrides_runpath=yes
13064 shlibpath_var=DYLD_LIBRARY_PATH
13065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13072 version_type=linux # correct to gnu/linux during the next big refactor
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 shlibpath_var=LD_LIBRARY_PATH
13080 freebsd* | dragonfly*)
13081 # DragonFly does not have aout. When/if they implement a new
13082 # versioning mechanism, adjust this.
13083 if test -x /usr/bin/objformat; then
13084 objformat=`/usr/bin/objformat`
13087 freebsd[23].*) objformat=aout ;;
13088 *) objformat=elf ;;
13091 version_type=freebsd-$objformat
13092 case $version_type in
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13103 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13108 freebsd3.[01]* | freebsdelf3.[01]*)
13109 shlibpath_overrides_runpath=yes
13110 hardcode_into_libs=yes
13112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13114 shlibpath_overrides_runpath=no
13115 hardcode_into_libs=yes
13117 *) # from 4.6 on, and DragonFly
13118 shlibpath_overrides_runpath=yes
13119 hardcode_into_libs=yes
13125 version_type=linux # correct to gnu/linux during the next big refactor
13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13129 soname_spec='${libname}${release}${shared_ext}$major'
13130 shlibpath_var=LD_LIBRARY_PATH
13131 shlibpath_overrides_runpath=no
13132 hardcode_into_libs=yes
13136 version_type=linux # correct to gnu/linux during the next big refactor
13139 dynamic_linker="$host_os runtime_loader"
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes
13144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13145 hardcode_into_libs=yes
13148 hpux9* | hpux10* | hpux11*)
13149 # Give a soname corresponding to the major version so that dld.sl refuses to
13150 # link against other versions.
13157 hardcode_into_libs=yes
13158 dynamic_linker="$host_os dld.so"
13159 shlibpath_var=LD_LIBRARY_PATH
13160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 if test "X$HPUX_IA64_MODE" = X32; then
13164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13172 hardcode_into_libs=yes
13173 dynamic_linker="$host_os dld.sl"
13174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177 soname_spec='${libname}${release}${shared_ext}$major'
13178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13183 dynamic_linker="$host_os dld.sl"
13184 shlibpath_var=SHLIB_PATH
13185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13190 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13191 postinstall_cmds='chmod 555 $lib'
13192 # or fails outright, so override atomically:
13193 install_override_mode=555
13197 version_type=linux # correct to gnu/linux during the next big refactor
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13203 shlibpath_var=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath=no
13205 hardcode_into_libs=yes
13208 irix5* | irix6* | nonstopux*)
13210 nonstopux*) version_type=nonstopux ;;
13212 if test "$lt_cv_prog_gnu_ld" = yes; then
13213 version_type=linux # correct to gnu/linux during the next big refactor
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13223 irix5* | nonstopux*)
13224 libsuff= shlibsuff=
13227 case $LD in # libtool.m4 will add one of these switches to LD
13228 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13229 libsuff= shlibsuff= libmagic=32-bit;;
13230 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13231 libsuff=32 shlibsuff=N32 libmagic=N32;;
13232 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13233 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13234 *) libsuff= shlibsuff= libmagic=never-match;;
13238 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13239 shlibpath_overrides_runpath=no
13240 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13241 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13242 hardcode_into_libs=yes
13245 # No shared lib support for Linux oldld, aout, or coff.
13246 linux*oldld* | linux*aout* | linux*coff*)
13250 # This must be glibc/ELF.
13251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13252 version_type=linux # correct to gnu/linux during the next big refactor
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13258 shlibpath_var=LD_LIBRARY_PATH
13259 shlibpath_overrides_runpath=no
13261 # Some binutils ld are patched to set DT_RUNPATH
13262 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13263 $as_echo_n "(cached) " >&6
13265 lt_cv_shlibpath_overrides_runpath=no
13266 save_LDFLAGS=$LDFLAGS
13267 save_libdir=$libdir
13268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13283 lt_cv_shlibpath_overrides_runpath=yes
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LDFLAGS=$save_LDFLAGS
13289 libdir=$save_libdir
13293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13295 # This implies no fast_install, which is unacceptable.
13296 # Some rework will be needed to allow for fast_install
13297 # before this can be enabled.
13298 hardcode_into_libs=yes
13300 # Append ld.so.conf contents to the search path
13301 if test -f /etc/ld.so.conf; then
13302 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' ' '`
13303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13306 # We used to test for /lib/ld.so.1 and disable shared libraries on
13307 # powerpc, because MkLinux only supported shared libraries with the
13308 # GNU dynamic linker. Since this was broken with cross compilers,
13309 # most powerpc-linux boxes support dynamic linking these days and
13310 # people can always --disable-shared, the test was removed, and we
13311 # assume the GNU/Linux dynamic linker is in use.
13312 dynamic_linker='GNU/Linux ld.so'
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 shlibpath_overrides_runpath=no
13323 hardcode_into_libs=yes
13324 dynamic_linker='NetBSD ld.elf_so'
13331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13334 dynamic_linker='NetBSD (a.out) ld.so'
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 dynamic_linker='NetBSD ld.elf_so'
13340 shlibpath_var=LD_LIBRARY_PATH
13341 shlibpath_overrides_runpath=yes
13342 hardcode_into_libs=yes
13346 version_type=linux # correct to gnu/linux during the next big refactor
13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13348 shlibpath_var=LD_LIBRARY_PATH
13349 shlibpath_overrides_runpath=yes
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=no
13360 hardcode_into_libs=yes
13361 dynamic_linker='ldqnx.so'
13366 sys_lib_dlsearch_path_spec="/usr/lib"
13368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13370 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13371 *) need_version=no ;;
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13378 openbsd2.[89] | openbsd2.[89].*)
13379 shlibpath_overrides_runpath=no
13382 shlibpath_overrides_runpath=yes
13386 shlibpath_overrides_runpath=yes
13391 libname_spec='$name'
13394 library_names_spec='$libname${shared_ext} $libname.a'
13395 dynamic_linker='OS/2 ld.exe'
13396 shlibpath_var=LIBPATH
13399 osf3* | osf4* | osf5*)
13403 soname_spec='${libname}${release}${shared_ext}$major'
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405 shlibpath_var=LD_LIBRARY_PATH
13406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13415 version_type=linux # correct to gnu/linux during the next big refactor
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419 soname_spec='${libname}${release}${shared_ext}$major'
13420 shlibpath_var=LD_LIBRARY_PATH
13421 shlibpath_overrides_runpath=yes
13422 hardcode_into_libs=yes
13423 # ldd complains unless libraries are executable
13424 postinstall_cmds='chmod +x $lib'
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 if test "$with_gnu_ld" = yes; then
13440 version_type=linux # correct to gnu/linux during the next big refactor
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 case $host_vendor in
13446 shlibpath_overrides_runpath=no
13448 runpath_var=LD_RUN_PATH
13456 shlibpath_overrides_runpath=no
13457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13463 if test -d /usr/nec ;then
13464 version_type=linux # correct to gnu/linux during the next big refactor
13465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13466 soname_spec='$libname${shared_ext}.$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13472 version_type=freebsd-elf
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13479 hardcode_into_libs=yes
13480 if test "$with_gnu_ld" = yes; then
13481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13490 sys_lib_dlsearch_path_spec='/usr/lib'
13494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13495 version_type=linux # correct to gnu/linux during the next big refactor
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499 shlibpath_var=LD_LIBRARY_PATH
13500 shlibpath_overrides_runpath=no
13501 hardcode_into_libs=yes
13505 version_type=linux # correct to gnu/linux during the next big refactor
13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 shlibpath_var=LD_LIBRARY_PATH
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13516 $as_echo "$dynamic_linker" >&6; }
13517 test "$dynamic_linker" = no && can_build_shared=no
13519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13520 if test "$GCC" = yes; then
13521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13623 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13625 if test -n "$hardcode_libdir_flag_spec" ||
13626 test -n "$runpath_var" ||
13627 test "X$hardcode_automatic" = "Xyes" ; then
13629 # We can hardcode non-existent directories.
13630 if test "$hardcode_direct" != no &&
13631 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13632 # have to relink, otherwise we might link with an installed library
13633 # when we should be linking with a yet-to-be-installed one
13634 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13635 test "$hardcode_minus_L" != no; then
13636 # Linking always hardcodes the temporary library directory.
13637 hardcode_action=relink
13639 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13640 hardcode_action=immediate
13643 # We cannot hardcode anything, or else we can only hardcode existing
13645 hardcode_action=unsupported
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13648 $as_echo "$hardcode_action" >&6; }
13650 if test "$hardcode_action" = relink ||
13651 test "$inherit_rpath" = yes; then
13652 # Fast installation is not supported
13653 enable_fast_install=no
13654 elif test "$shlibpath_overrides_runpath" = yes ||
13655 test "$enable_shared" = no; then
13656 # Fast installation is not necessary
13657 enable_fast_install=needless
13665 if test "x$enable_dlopen" != xyes; then
13666 enable_dlopen=unknown
13667 enable_dlopen_self=unknown
13668 enable_dlopen_self_static=unknown
13675 lt_cv_dlopen="load_add_on"
13677 lt_cv_dlopen_self=yes
13680 mingw* | pw32* | cegcc*)
13681 lt_cv_dlopen="LoadLibrary"
13686 lt_cv_dlopen="dlopen"
13691 # if libdl is installed we need to link against it
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13694 if ${ac_cv_lib_dl_dlopen+:} false; then :
13695 $as_echo_n "(cached) " >&6
13697 ac_check_lib_save_LIBS=$LIBS
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700 /* end confdefs.h. */
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13717 if ac_fn_c_try_link "$LINENO"; then :
13718 ac_cv_lib_dl_dlopen=yes
13720 ac_cv_lib_dl_dlopen=no
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext conftest.$ac_ext
13724 LIBS=$ac_check_lib_save_LIBS
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13728 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13732 lt_cv_dlopen="dyld"
13734 lt_cv_dlopen_self=yes
13741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13742 if test "x$ac_cv_func_shl_load" = xyes; then :
13743 lt_cv_dlopen="shl_load"
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13746 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13747 if ${ac_cv_lib_dld_shl_load+:} false; then :
13748 $as_echo_n "(cached) " >&6
13750 ac_check_lib_save_LIBS=$LIBS
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13755 /* Override any GCC internal prototype to avoid an error.
13756 Use char because int might match the return type of a GCC
13757 builtin and then its argument prototype would still apply. */
13765 return shl_load ();
13770 if ac_fn_c_try_link "$LINENO"; then :
13771 ac_cv_lib_dld_shl_load=yes
13773 ac_cv_lib_dld_shl_load=no
13775 rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 LIBS=$ac_check_lib_save_LIBS
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13780 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13781 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13785 if test "x$ac_cv_func_dlopen" = xyes; then :
13786 lt_cv_dlopen="dlopen"
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13790 if ${ac_cv_lib_dl_dlopen+:} false; then :
13791 $as_echo_n "(cached) " >&6
13793 ac_check_lib_save_LIBS=$LIBS
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13798 /* Override any GCC internal prototype to avoid an error.
13799 Use char because int might match the return type of a GCC
13800 builtin and then its argument prototype would still apply. */
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_lib_dl_dlopen=yes
13816 ac_cv_lib_dl_dlopen=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 LIBS=$ac_check_lib_save_LIBS
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13824 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13828 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13829 if ${ac_cv_lib_svld_dlopen+:} false; then :
13830 $as_echo_n "(cached) " >&6
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lsvld $LIBS"
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13837 /* Override any GCC internal prototype to avoid an error.
13838 Use char because int might match the return type of a GCC
13839 builtin and then its argument prototype would still apply. */
13852 if ac_fn_c_try_link "$LINENO"; then :
13853 ac_cv_lib_svld_dlopen=yes
13855 ac_cv_lib_svld_dlopen=no
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13862 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13863 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13867 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13868 if ${ac_cv_lib_dld_dld_link+:} false; then :
13869 $as_echo_n "(cached) " >&6
13871 ac_check_lib_save_LIBS=$LIBS
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13876 /* Override any GCC internal prototype to avoid an error.
13877 Use char because int might match the return type of a GCC
13878 builtin and then its argument prototype would still apply. */
13886 return dld_link ();
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 ac_cv_lib_dld_dld_link=yes
13894 ac_cv_lib_dld_dld_link=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LIBS=$ac_check_lib_save_LIBS
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13901 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13902 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13903 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13924 if test "x$lt_cv_dlopen" != xno; then
13930 case $lt_cv_dlopen in
13932 save_CPPFLAGS="$CPPFLAGS"
13933 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13935 save_LDFLAGS="$LDFLAGS"
13936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13939 LIBS="$lt_cv_dlopen_libs $LIBS"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13942 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13943 if ${lt_cv_dlopen_self+:} false; then :
13944 $as_echo_n "(cached) " >&6
13946 if test "$cross_compiling" = yes; then :
13947 lt_cv_dlopen_self=cross
13949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13950 lt_status=$lt_dlunknown
13951 cat > conftest.$ac_ext <<_LT_EOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13962 # define LT_DLGLOBAL RTLD_GLOBAL
13965 # define LT_DLGLOBAL DL_GLOBAL
13967 # define LT_DLGLOBAL 0
13971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13972 find out it does not work in some platform. */
13973 #ifndef LT_DLLAZY_OR_NOW
13975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13978 # define LT_DLLAZY_OR_NOW DL_LAZY
13981 # define LT_DLLAZY_OR_NOW RTLD_NOW
13984 # define LT_DLLAZY_OR_NOW DL_NOW
13986 # define LT_DLLAZY_OR_NOW 0
13993 /* When -fvisbility=hidden is used, assume the code has been annotated
13994 correspondingly for the symbols needed. */
13995 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13996 int fnord () __attribute__((visibility("default")));
13999 int fnord () { return 42; }
14002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14003 int status = $lt_dlunknown;
14007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14011 else puts (dlerror ());
14013 /* dlclose (self); */
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14022 (eval $ac_link) 2>&5
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14026 (./conftest; exit; ) >&5 2>/dev/null
14028 case x$lt_status in
14029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14034 # compilation failed
14035 lt_cv_dlopen_self=no
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14043 $as_echo "$lt_cv_dlopen_self" >&6; }
14045 if test "x$lt_cv_dlopen_self" = xyes; then
14046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14048 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14049 if ${lt_cv_dlopen_self_static+:} false; then :
14050 $as_echo_n "(cached) " >&6
14052 if test "$cross_compiling" = yes; then :
14053 lt_cv_dlopen_self_static=cross
14055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14056 lt_status=$lt_dlunknown
14057 cat > conftest.$ac_ext <<_LT_EOF
14058 #line $LINENO "configure"
14059 #include "confdefs.h"
14068 # define LT_DLGLOBAL RTLD_GLOBAL
14071 # define LT_DLGLOBAL DL_GLOBAL
14073 # define LT_DLGLOBAL 0
14077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14078 find out it does not work in some platform. */
14079 #ifndef LT_DLLAZY_OR_NOW
14081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14084 # define LT_DLLAZY_OR_NOW DL_LAZY
14087 # define LT_DLLAZY_OR_NOW RTLD_NOW
14090 # define LT_DLLAZY_OR_NOW DL_NOW
14092 # define LT_DLLAZY_OR_NOW 0
14099 /* When -fvisbility=hidden is used, assume the code has been annotated
14100 correspondingly for the symbols needed. */
14101 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14102 int fnord () __attribute__((visibility("default")));
14105 int fnord () { return 42; }
14108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14109 int status = $lt_dlunknown;
14113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14117 else puts (dlerror ());
14119 /* dlclose (self); */
14127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14128 (eval $ac_link) 2>&5
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14132 (./conftest; exit; ) >&5 2>/dev/null
14134 case x$lt_status in
14135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14140 # compilation failed
14141 lt_cv_dlopen_self_static=no
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14149 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14152 CPPFLAGS="$save_CPPFLAGS"
14153 LDFLAGS="$save_LDFLAGS"
14158 case $lt_cv_dlopen_self in
14159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14160 *) enable_dlopen_self=unknown ;;
14163 case $lt_cv_dlopen_self_static in
14164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14165 *) enable_dlopen_self_static=unknown ;;
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14188 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14189 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14193 $as_echo "yes" >&6; }
14195 # FIXME - insert some real tests, host_os isn't really good enough
14198 if test -n "$STRIP" ; then
14199 striplib="$STRIP -x"
14200 old_striplib="$STRIP -S"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202 $as_echo "yes" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14226 # Report which library types will actually be built
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14228 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14230 $as_echo "$can_build_shared" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14233 $as_echo_n "checking whether to build shared libraries... " >&6; }
14234 test "$can_build_shared" = "no" && enable_shared=no
14236 # On AIX, shared libraries and static libraries use the same namespace, and
14237 # are all built from PIC.
14240 test "$enable_shared" = yes && enable_static=no
14241 if test -n "$RANLIB"; then
14242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14243 postinstall_cmds='$RANLIB $lib'
14248 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14249 test "$enable_shared" = yes && enable_static=no
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14254 $as_echo "$enable_shared" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14257 $as_echo_n "checking whether to build static libraries... " >&6; }
14258 # Make sure either enable_shared or enable_static is yes.
14259 test "$enable_shared" = yes || enable_static=yes
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14261 $as_echo "$enable_static" >&6; }
14268 ac_cpp='$CPP $CPPFLAGS'
14269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289 ac_config_commands="$ac_config_commands libtool"
14294 # Only expand once:
14299 tmp_CPPFLAGS=$CPPFLAGS
14300 tmp_LDFLAGS=$LDFLAGS
14305 # Check whether --with-ssl was given.
14306 if test "${with_ssl+set}" = set; then :
14317 if test x_$withval != x_no; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
14319 $as_echo_n "checking for SSL... " >&6; }
14320 if test x_$withval = x_ -o x_$withval = x_yes; then
14321 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
14323 for dir in $withval; do
14325 if test -f "$dir/include/openssl/ssl.h"; then
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_SSL /**/
14332 if test "$ssldir" != "/usr"; then
14333 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
14334 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
14339 if test x_$found_ssl != x_yes; then
14340 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
14343 $as_echo "found in $ssldir" >&6; }
14345 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
14346 LDFLAGS="$LDFLAGS -L$ssldir/lib"
14347 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
14349 if test "x$enable_rpath" = xyes; then
14350 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
14351 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
14358 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
14359 LIBS="$LIBS -lcrypto"
14360 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14368 int HMAC_CTX_init(void);
14369 (void)HMAC_CTX_init();
14375 if ac_fn_c_try_link "$LINENO"; then :
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14380 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14386 $as_echo "no" >&6; }
14387 # check if -lwsock32 or -lgdi32 are needed.
14389 BAKSSLLIBS="$LIBSSL_LIBS"
14390 LIBS="$LIBS -lgdi32"
14391 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
14393 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14401 int HMAC_CTX_init(void);
14402 (void)HMAC_CTX_init();
14408 if ac_fn_c_try_link "$LINENO"; then :
14411 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14414 $as_echo "yes" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14421 LIBSSL_LIBS="$BAKSSLLIBS"
14423 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
14425 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14433 int HMAC_CTX_init(void);
14434 (void)HMAC_CTX_init();
14440 if ac_fn_c_try_link "$LINENO"; then :
14443 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14446 $as_echo "yes" >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14452 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext conftest.$ac_ext
14463 rm -f core conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14468 # openssl engine functionality needs dlopen().
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14471 $as_echo_n "checking for library containing dlopen... " >&6; }
14472 if ${ac_cv_search_dlopen+:} false; then :
14473 $as_echo_n "(cached) " >&6
14475 ac_func_search_save_LIBS=$LIBS
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14479 /* Override any GCC internal prototype to avoid an error.
14480 Use char because int might match the return type of a GCC
14481 builtin and then its argument prototype would still apply. */
14494 for ac_lib in '' dl; do
14495 if test -z "$ac_lib"; then
14496 ac_res="none required"
14499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 ac_cv_search_dlopen=$ac_res
14504 rm -f core conftest.err conftest.$ac_objext \
14506 if ${ac_cv_search_dlopen+:} false; then :
14510 if ${ac_cv_search_dlopen+:} false; then :
14513 ac_cv_search_dlopen=no
14515 rm conftest.$ac_ext
14516 LIBS=$ac_func_search_save_LIBS
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14519 $as_echo "$ac_cv_search_dlopen" >&6; }
14520 ac_res=$ac_cv_search_dlopen
14521 if test "$ac_res" != no; then :
14522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14526 if test "$LIBS" != "$BAKLIBS"; then
14527 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14530 for ac_header in openssl/ssl.h
14532 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
14534 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_OPENSSL_SSL_H 1
14543 for ac_header in openssl/err.h
14545 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
14547 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_OPENSSL_ERR_H 1
14556 for ac_header in openssl/rand.h
14558 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
14560 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
14561 cat >>confdefs.h <<_ACEOF
14562 #define HAVE_OPENSSL_RAND_H 1
14572 for ac_func in EVP_sha256
14574 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
14575 if test "x$ac_cv_func_EVP_sha256" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_EVP_SHA256 1
14584 # for macosx, see if glibtool exists and use that
14585 # BSD's need to know the version...
14586 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
14587 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
14589 # Check whether --enable-sha2 was given.
14590 if test "${enable_sha2+set}" = set; then :
14591 enableval=$enable_sha2;
14594 case "$enable_sha2" in
14598 if test "x$HAVE_SSL" != "xyes"; then
14599 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
14602 $as_echo_n "checking for SHA256 and SHA512... " >&6; }
14603 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
14604 if test "x$ac_cv_func_SHA256_Init" = xyes; then :
14608 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
14613 cat >>confdefs.h <<_ACEOF
14620 # Check whether --enable-gost was given.
14621 if test "${enable_gost+set}" = set; then :
14622 enableval=$enable_gost;
14625 case "$enable_gost" in
14628 *) if test "x$HAVE_SSL" != "xyes"; then
14629 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
14632 $as_echo_n "checking for GOST... " >&6; }
14633 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
14634 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
14637 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
14640 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
14641 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
14644 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
14648 cat >>confdefs.h <<_ACEOF
14655 # Check whether --enable-ecdsa was given.
14656 if test "${enable_ecdsa+set}" = set; then :
14657 enableval=$enable_ecdsa;
14660 case "$enable_ecdsa" in
14663 *) if test "x$HAVE_SSL" != "xyes"; then
14664 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
14666 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
14667 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
14670 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14673 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
14674 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
14677 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14680 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
14681 #include <openssl/evp.h>
14684 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
14693 if test $ac_have_decl = 1; then :
14696 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14698 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
14699 #include <openssl/evp.h>
14702 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
14708 cat >>confdefs.h <<_ACEOF
14709 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
14711 if test $ac_have_decl = 1; then :
14714 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14717 # we now know we have ECDSA and the required curves.
14719 cat >>confdefs.h <<_ACEOF
14720 #define USE_ECDSA 1
14729 if test "x$HAVE_SSL" = "xyes"; then
14730 LIBSSL_SSL_LIBS="$LIBSSL_LIBS -lssl"
14733 CPPFLAGS=$tmp_CPPFLAGS
14734 LDFLAGS=$tmp_LDFLAGS
14738 # add option to disable the evil rpath
14740 # Check whether --enable-rpath was given.
14741 if test "${enable_rpath+set}" = set; then :
14742 enableval=$enable_rpath; enable_rpath=$enableval
14747 if test "x$enable_rpath" = xno; then
14748 ac_config_commands="$ac_config_commands disable-rpath"
14753 #AC_RUN_IFELSE([AC_LANG_SOURCE(
14758 #char *cp = (char*)&one;
14765 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
14768 # should define WORDS_BIGENDIAN if the system is big-endian
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14770 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14771 if ${ac_cv_c_bigendian+:} false; then :
14772 $as_echo_n "(cached) " >&6
14774 ac_cv_c_bigendian=unknown
14775 # See if we're dealing with a universal compiler.
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14778 #ifndef __APPLE_CC__
14779 not a universal capable compiler
14784 if ac_fn_c_try_compile "$LINENO"; then :
14786 # Check for potential -arch flags. It is not universal unless
14787 # there are at least two -arch flags with different values.
14790 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14791 if test -n "$ac_prev"; then
14793 i?86 | x86_64 | ppc | ppc64)
14794 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14797 ac_cv_c_bigendian=universal
14803 elif test "x$ac_word" = "x-arch"; then
14808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14809 if test $ac_cv_c_bigendian = unknown; then
14810 # See if sys/param.h defines the BYTE_ORDER macro.
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 #include <sys/types.h>
14814 #include <sys/param.h>
14819 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14820 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14822 bogus endian macros
14829 if ac_fn_c_try_compile "$LINENO"; then :
14830 # It does; now see whether it defined to BIG_ENDIAN or not.
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 #include <sys/types.h>
14834 #include <sys/param.h>
14839 #if BYTE_ORDER != BIG_ENDIAN
14847 if ac_fn_c_try_compile "$LINENO"; then :
14848 ac_cv_c_bigendian=yes
14850 ac_cv_c_bigendian=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 if test $ac_cv_c_bigendian = unknown; then
14857 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860 #include <limits.h>
14865 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14866 bogus endian macros
14873 if ac_fn_c_try_compile "$LINENO"; then :
14874 # It does; now see whether it defined to _BIG_ENDIAN or not.
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 #include <limits.h>
14882 #ifndef _BIG_ENDIAN
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 ac_cv_c_bigendian=yes
14893 ac_cv_c_bigendian=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 if test $ac_cv_c_bigendian = unknown; then
14900 # Compile a test program.
14901 if test "$cross_compiling" = yes; then :
14902 # Try to guess by grepping values from an object file.
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 short int ascii_mm[] =
14906 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14907 short int ascii_ii[] =
14908 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14909 int use_ascii (int i) {
14910 return ascii_mm[i] + ascii_ii[i];
14912 short int ebcdic_ii[] =
14913 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14914 short int ebcdic_mm[] =
14915 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14916 int use_ebcdic (int i) {
14917 return ebcdic_mm[i] + ebcdic_ii[i];
14924 return use_ascii (foo) == use_ebcdic (foo);
14929 if ac_fn_c_try_compile "$LINENO"; then :
14930 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14931 ac_cv_c_bigendian=yes
14933 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14934 if test "$ac_cv_c_bigendian" = unknown; then
14935 ac_cv_c_bigendian=no
14937 # finding both strings is unlikely to happen, but who knows?
14938 ac_cv_c_bigendian=unknown
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 $ac_includes_default
14951 /* Are we little or big endian? From Harbison&Steele. */
14955 char c[sizeof (long int)];
14958 return u.c[sizeof (long int) - 1] == 1;
14964 if ac_fn_c_try_run "$LINENO"; then :
14965 ac_cv_c_bigendian=no
14967 ac_cv_c_bigendian=yes
14969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14970 conftest.$ac_objext conftest.beam conftest.$ac_ext
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14976 $as_echo "$ac_cv_c_bigendian" >&6; }
14977 case $ac_cv_c_bigendian in #(
14979 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14985 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14989 as_fn_error $? "unknown endianness
14990 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14994 # Checks for header files.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14996 $as_echo_n "checking for ANSI C header files... " >&6; }
14997 if ${ac_cv_header_stdc+:} false; then :
14998 $as_echo_n "(cached) " >&6
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #include <stdlib.h>
15003 #include <stdarg.h>
15004 #include <string.h>
15015 if ac_fn_c_try_compile "$LINENO"; then :
15016 ac_cv_header_stdc=yes
15018 ac_cv_header_stdc=no
15020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 if test $ac_cv_header_stdc = yes; then
15023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15026 #include <string.h>
15029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15030 $EGREP "memchr" >/dev/null 2>&1; then :
15033 ac_cv_header_stdc=no
15039 if test $ac_cv_header_stdc = yes; then
15040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043 #include <stdlib.h>
15046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15047 $EGREP "free" >/dev/null 2>&1; then :
15050 ac_cv_header_stdc=no
15056 if test $ac_cv_header_stdc = yes; then
15057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15058 if test "$cross_compiling" = yes; then :
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15064 #include <stdlib.h>
15065 #if ((' ' & 0x0FF) == 0x020)
15066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15069 # define ISLOWER(c) \
15070 (('a' <= (c) && (c) <= 'i') \
15071 || ('j' <= (c) && (c) <= 'r') \
15072 || ('s' <= (c) && (c) <= 'z'))
15073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15081 for (i = 0; i < 256; i++)
15082 if (XOR (islower (i), ISLOWER (i))
15083 || toupper (i) != TOUPPER (i))
15088 if ac_fn_c_try_run "$LINENO"; then :
15091 ac_cv_header_stdc=no
15093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15094 conftest.$ac_objext conftest.beam conftest.$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15100 $as_echo "$ac_cv_header_stdc" >&6; }
15101 if test $ac_cv_header_stdc = yes; then
15103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15108 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15109 if ${ac_cv_header_stdbool_h+:} false; then :
15110 $as_echo_n "(cached) " >&6
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15115 #include <stdbool.h>
15117 "error: bool is not defined"
15120 "error: false is not defined"
15123 "error: false is not 0"
15126 "error: true is not defined"
15129 "error: true is not 1"
15131 #ifndef __bool_true_false_are_defined
15132 "error: __bool_true_false_are_defined is not defined"
15135 struct s { _Bool s: 1; _Bool t; } s;
15137 char a[true == 1 ? 1 : -1];
15138 char b[false == 0 ? 1 : -1];
15139 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15140 char d[(bool) 0.5 == true ? 1 : -1];
15141 /* See body of main program for 'e'. */
15142 char f[(_Bool) 0.0 == false ? 1 : -1];
15144 char h[sizeof (_Bool)];
15145 char i[sizeof s.t];
15146 enum { j = false, k = true, l = false * true, m = true * 256 };
15147 /* The following fails for
15148 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15150 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15151 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15152 /* Catch a bug in an HP-UX C compiler. See
15153 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15154 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15166 /* Refer to every declared value, to avoid compiler optimizations. */
15167 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15168 + !m + !n + !o + !p + !q + !pq);
15174 if ac_fn_c_try_compile "$LINENO"; then :
15175 ac_cv_header_stdbool_h=yes
15177 ac_cv_header_stdbool_h=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15182 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15183 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15184 if test "x$ac_cv_type__Bool" = xyes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE__BOOL 1
15193 if test $ac_cv_header_stdbool_h = yes; then
15195 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15199 #AC_HEADER_SYS_WAIT
15200 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
15201 # do the very minimum - we can always extend this
15202 for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
15204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15216 for ac_header in sys/param.h sys/mount.h
15218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15221 #if HAVE_SYS_PARAM_H
15222 # include <sys/param.h>
15227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15228 cat >>confdefs.h <<_ACEOF
15229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15236 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15238 #if HAVE_SYS_PARAM_H
15239 # include <sys/param.h>
15244 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15246 include_sys_socket_h='#include <sys/socket.h>'
15248 $as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15253 include_sys_socket_h=''
15259 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
15262 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15264 include_inttypes_h='#include <inttypes.h>'
15266 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
15268 ldns_build_config_have_inttypes_h=1
15273 include_inttypes_h=''
15274 ldns_build_config_have_inttypes_h=0
15281 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
15284 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15286 include_systypes_h='#include <sys/types.h>'
15288 $as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15293 include_systypes_h=''
15299 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
15302 if test "x$ac_cv_header_unistd_h" = xyes; then :
15304 include_unistd_h='#include <unistd.h>'
15306 $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
15311 include_unistd_h=''
15318 # The cast to long int works around a bug in the HP C Compiler
15319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15321 # This bug is HP SR number 8606223364.
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15323 $as_echo_n "checking size of time_t... " >&6; }
15324 if ${ac_cv_sizeof_time_t+:} false; then :
15325 $as_echo_n "(cached) " >&6
15327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15328 $ac_includes_default
15329 #ifdef TIME_WITH_SYS_TIME
15330 # include <sys/time.h>
15333 # ifdef HAVE_SYS_TIME_H
15334 # include <sys/time.h>
15343 if test "$ac_cv_type_time_t" = yes; then
15344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15346 as_fn_error 77 "cannot compute sizeof (time_t)
15347 See \`config.log' for more details" "$LINENO" 5; }
15349 ac_cv_sizeof_time_t=0
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15355 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15359 cat >>confdefs.h <<_ACEOF
15360 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15365 if test x_$with_examples != x_no; then
15366 for ac_header in pcap.h
15368 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
15369 if test "x$ac_cv_header_pcap_h" = xyes; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_PCAP_H 1
15375 $ac_includes_default
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
15381 $as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
15382 if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
15383 $as_echo_n "(cached) " >&6
15385 ac_check_lib_save_LIBS=$LIBS
15386 LIBS="-lpcap $LIBS"
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15396 char pcap_open_offline ();
15400 return pcap_open_offline ();
15405 if ac_fn_c_try_link "$LINENO"; then :
15406 ac_cv_lib_pcap_pcap_open_offline=yes
15408 ac_cv_lib_pcap_pcap_open_offline=no
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
15415 $as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
15416 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
15419 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
15420 LIBPCAP_LIBS=-lpcap
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
15426 $as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
15431 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
15433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15435 $ac_includes_default
15436 #ifdef HAVE_NETINET_IN_SYSTM_H
15437 #include <netinet/in_systm.h>
15439 #ifdef HAVE_NETINET_IN_H
15440 #include <netinet/in.h>
15442 #ifdef HAVE_SYS_SOCKET_H
15443 #include <sys/socket.h>
15445 #ifdef HAVE_NET_IF_H
15446 #include <net/if.h>
15449 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15450 cat >>confdefs.h <<_ACEOF
15451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15461 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15462 $ac_includes_default
15463 #ifdef HAVE_SYS_SOCKET_H
15464 # include <sys/socket.h>
15466 #ifdef HAVE_WS2TCPIP_H
15467 # include <ws2tcpip.h>
15471 if test "x$ac_cv_type_socklen_t" = xyes; then :
15475 $as_echo "#define socklen_t int" >>confdefs.h
15479 if test "x$ac_cv_type_socklen_t" = xyes; then
15480 ldns_build_config_have_socklen_t=1
15483 ldns_build_config_have_socklen_t=0
15486 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15487 if test "x$ac_cv_type_size_t" = xyes; then :
15491 cat >>confdefs.h <<_ACEOF
15492 #define size_t unsigned int
15497 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15498 if test "x$ac_cv_type_ssize_t" = xyes; then :
15502 cat >>confdefs.h <<_ACEOF
15503 #define ssize_t int
15509 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15510 if test "x$ac_cv_type_intptr_t" = xyes; then :
15512 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15515 for ac_type in 'int' 'long int' 'long long int'; do
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518 $ac_includes_default
15522 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15529 if ac_fn_c_try_compile "$LINENO"; then :
15531 cat >>confdefs.h <<_ACEOF
15532 #define intptr_t $ac_type
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 test -z "$ac_type" && break
15543 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15544 #if HAVE_SYS_TYPES_H
15545 # include <sys/types.h>
15547 #if HAVE_NETINET_IN_H
15548 # include <netinet/in.h>
15551 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15555 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15559 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15560 #if HAVE_SYS_TYPES_H
15561 # include <sys/types.h>
15563 #if HAVE_NETINET_IN_H
15564 # include <netinet/in.h>
15567 if test "x$ac_cv_type_in_port_t" = xyes; then :
15571 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15575 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
15576 #ifdef HAVE_NETINET_IN_H
15577 #include <netinet/in.h>
15579 #ifdef HAVE_SYS_SOCKET_H
15580 #include <sys/socket.h>
15582 #ifdef HAVE_NETDB_H
15585 #ifdef HAVE_ARPA_INET_H
15586 #include <arpa/inet.h>
15590 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15594 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
15595 #ifdef HAVE_NETINET_IN_H
15596 #include <netinet/in.h>
15598 #ifdef HAVE_SYS_SOCKET_H
15599 #include <sys/socket.h>
15601 #ifdef HAVE_NETDB_H
15604 #ifdef HAVE_ARPA_INET_H
15605 #include <arpa/inet.h>
15609 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15612 $as_echo "#define ss_family __ss_family" >>confdefs.h
15621 for ac_header in stdlib.h
15623 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15624 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_STDLIB_H 1
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15634 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15635 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15636 $as_echo_n "(cached) " >&6
15638 if test "$cross_compiling" = yes; then :
15639 ac_cv_func_malloc_0_nonnull=no
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15644 # include <stdlib.h>
15652 return ! malloc (0);
15657 if ac_fn_c_try_run "$LINENO"; then :
15658 ac_cv_func_malloc_0_nonnull=yes
15660 ac_cv_func_malloc_0_nonnull=no
15662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15663 conftest.$ac_objext conftest.beam conftest.$ac_ext
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15668 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15669 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15671 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15674 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15676 case " $LIBOBJS " in
15677 *" malloc.$ac_objext "* ) ;;
15678 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15683 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15688 for ac_header in stdlib.h
15690 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15691 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_STDLIB_H 1
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15701 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15702 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15703 $as_echo_n "(cached) " >&6
15705 if test "$cross_compiling" = yes; then :
15706 ac_cv_func_realloc_0_nonnull=no
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15711 # include <stdlib.h>
15719 return ! realloc (0, 0);
15724 if ac_fn_c_try_run "$LINENO"; then :
15725 ac_cv_func_realloc_0_nonnull=yes
15727 ac_cv_func_realloc_0_nonnull=no
15729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15730 conftest.$ac_objext conftest.beam conftest.$ac_ext
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15735 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15736 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15738 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15741 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15743 case " $LIBOBJS " in
15744 *" realloc.$ac_objext "* ) ;;
15745 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15750 $as_echo "#define realloc rpl_realloc" >>confdefs.h
15756 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
15757 if test "x$ac_cv_func_b64_pton" = xyes; then :
15758 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
15761 case " $LIBOBJS " in
15762 *" b64_pton.$ac_objext "* ) ;;
15763 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
15770 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
15771 if test "x$ac_cv_func_b64_ntop" = xyes; then :
15772 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
15775 case " $LIBOBJS " in
15776 *" b64_ntop.$ac_objext "* ) ;;
15777 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
15784 ac_fn_c_check_func "$LINENO" "b32_pton" "ac_cv_func_b32_pton"
15785 if test "x$ac_cv_func_b32_pton" = xyes; then :
15786 $as_echo "#define HAVE_B32_PTON 1" >>confdefs.h
15789 case " $LIBOBJS " in
15790 *" b32_pton.$ac_objext "* ) ;;
15791 *) LIBOBJS="$LIBOBJS b32_pton.$ac_objext"
15798 ac_fn_c_check_func "$LINENO" "b32_ntop" "ac_cv_func_b32_ntop"
15799 if test "x$ac_cv_func_b32_ntop" = xyes; then :
15800 $as_echo "#define HAVE_B32_NTOP 1" >>confdefs.h
15803 case " $LIBOBJS " in
15804 *" b32_ntop.$ac_objext "* ) ;;
15805 *) LIBOBJS="$LIBOBJS b32_ntop.$ac_objext"
15812 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
15813 if test "x$ac_cv_func_calloc" = xyes; then :
15814 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
15817 case " $LIBOBJS " in
15818 *" calloc.$ac_objext "* ) ;;
15819 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
15826 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
15827 if test "x$ac_cv_func_timegm" = xyes; then :
15828 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
15831 case " $LIBOBJS " in
15832 *" timegm.$ac_objext "* ) ;;
15833 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
15840 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15841 if test "x$ac_cv_func_gmtime_r" = xyes; then :
15842 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
15845 case " $LIBOBJS " in
15846 *" gmtime_r.$ac_objext "* ) ;;
15847 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
15854 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
15855 if test "x$ac_cv_func_ctime_r" = xyes; then :
15856 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
15859 case " $LIBOBJS " in
15860 *" ctime_r.$ac_objext "* ) ;;
15861 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
15868 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15869 if test "x$ac_cv_func_localtime_r" = xyes; then :
15870 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
15873 case " $LIBOBJS " in
15874 *" localtime_r.$ac_objext "* ) ;;
15875 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
15882 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
15883 if test "x$ac_cv_func_isblank" = xyes; then :
15884 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
15887 case " $LIBOBJS " in
15888 *" isblank.$ac_objext "* ) ;;
15889 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
15896 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
15897 if test "x$ac_cv_func_isascii" = xyes; then :
15898 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
15901 case " $LIBOBJS " in
15902 *" isascii.$ac_objext "* ) ;;
15903 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
15910 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15911 if test "x$ac_cv_func_inet_aton" = xyes; then :
15912 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15915 case " $LIBOBJS " in
15916 *" inet_aton.$ac_objext "* ) ;;
15917 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
15924 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
15925 if test "x$ac_cv_func_inet_pton" = xyes; then :
15926 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
15929 case " $LIBOBJS " in
15930 *" inet_pton.$ac_objext "* ) ;;
15931 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
15938 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15939 if test "x$ac_cv_func_inet_ntop" = xyes; then :
15940 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
15943 case " $LIBOBJS " in
15944 *" inet_ntop.$ac_objext "* ) ;;
15945 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
15952 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15953 if test "x$ac_cv_func_snprintf" = xyes; then :
15954 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
15957 case " $LIBOBJS " in
15958 *" snprintf.$ac_objext "* ) ;;
15959 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15966 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15967 if test "x$ac_cv_func_strlcpy" = xyes; then :
15968 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15971 case " $LIBOBJS " in
15972 *" strlcpy.$ac_objext "* ) ;;
15973 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15980 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
15981 if test "x$ac_cv_func_memmove" = xyes; then :
15982 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
15985 case " $LIBOBJS " in
15986 *" memmove.$ac_objext "* ) ;;
15987 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
15994 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15995 if test "x$ac_cv_type_pid_t" = xyes; then :
15999 cat >>confdefs.h <<_ACEOF
16005 for ac_header in vfork.h
16007 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16008 if test "x$ac_cv_header_vfork_h" = xyes; then :
16009 cat >>confdefs.h <<_ACEOF
16010 #define HAVE_VFORK_H 1
16017 for ac_func in fork vfork
16019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16022 cat >>confdefs.h <<_ACEOF
16023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16029 if test "x$ac_cv_func_fork" = xyes; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16031 $as_echo_n "checking for working fork... " >&6; }
16032 if ${ac_cv_func_fork_works+:} false; then :
16033 $as_echo_n "(cached) " >&6
16035 if test "$cross_compiling" = yes; then :
16036 ac_cv_func_fork_works=cross
16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039 /* end confdefs.h. */
16040 $ac_includes_default
16045 /* By Ruediger Kuhlmann. */
16046 return fork () < 0;
16052 if ac_fn_c_try_run "$LINENO"; then :
16053 ac_cv_func_fork_works=yes
16055 ac_cv_func_fork_works=no
16057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16058 conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16063 $as_echo "$ac_cv_func_fork_works" >&6; }
16066 ac_cv_func_fork_works=$ac_cv_func_fork
16068 if test "x$ac_cv_func_fork_works" = xcross; then
16070 *-*-amigaos* | *-*-msdosdjgpp*)
16071 # Override, as these systems have only a dummy fork() stub
16072 ac_cv_func_fork_works=no
16075 ac_cv_func_fork_works=yes
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16079 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16081 ac_cv_func_vfork_works=$ac_cv_func_vfork
16082 if test "x$ac_cv_func_vfork" = xyes; then
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16084 $as_echo_n "checking for working vfork... " >&6; }
16085 if ${ac_cv_func_vfork_works+:} false; then :
16086 $as_echo_n "(cached) " >&6
16088 if test "$cross_compiling" = yes; then :
16089 ac_cv_func_vfork_works=cross
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 /* Thanks to Paul Eggert for this test. */
16094 $ac_includes_default
16095 #include <sys/wait.h>
16096 #ifdef HAVE_VFORK_H
16097 # include <vfork.h>
16099 /* On some sparc systems, changes by the child to local and incoming
16100 argument registers are propagated back to the parent. The compiler
16101 is told about this with #include <vfork.h>, but some compilers
16102 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16103 static variable whose address is put into a register that is
16104 clobbered by the vfork. */
16107 sparc_address_test (int arg)
16109 sparc_address_test (arg) int arg;
16112 static pid_t child;
16130 pid_t parent = getpid ();
16133 sparc_address_test (0);
16138 /* Here is another test for sparc vfork register problems. This
16139 test uses lots of local variables, at least as many local
16140 variables as main has allocated so far including compiler
16141 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16142 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16143 reuse the register of parent for one of the local variables,
16144 since it will think that parent can't possibly be used any more
16145 in this routine. Assigning to the local variable will thus
16146 munge parent in the parent process. */
16148 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16149 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16150 /* Convince the compiler that p..p7 are live; otherwise, it might
16151 use the same hardware register for all 8 local variables. */
16152 if (p != p1 || p != p2 || p != p3 || p != p4
16153 || p != p5 || p != p6 || p != p7)
16156 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16157 from child file descriptors. If the child closes a descriptor
16158 before it execs or exits, this munges the parent's descriptor
16159 as well. Test for this by closing stdout in the child. */
16160 _exit(close(fileno(stdout)) != 0);
16165 while (wait(&status) != child)
16168 /* Was there some problem with vforking? */
16171 /* Did the child fail? (This shouldn't happen.) */
16174 /* Did the vfork/compiler bug occur? */
16175 || parent != getpid()
16177 /* Did the file descriptor bug occur? */
16178 || fstat(fileno(stdout), &st) != 0
16183 if ac_fn_c_try_run "$LINENO"; then :
16184 ac_cv_func_vfork_works=yes
16186 ac_cv_func_vfork_works=no
16188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16189 conftest.$ac_objext conftest.beam conftest.$ac_ext
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16194 $as_echo "$ac_cv_func_vfork_works" >&6; }
16197 if test "x$ac_cv_func_fork_works" = xcross; then
16198 ac_cv_func_vfork_works=$ac_cv_func_vfork
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16200 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16203 if test "x$ac_cv_func_vfork_works" = xyes; then
16205 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16209 $as_echo "#define vfork fork" >>confdefs.h
16212 if test "x$ac_cv_func_fork_works" = xyes; then
16214 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16218 for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset
16220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16223 cat >>confdefs.h <<_ACEOF
16224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16233 $as_echo_n "checking for getaddrinfo... " >&6; }
16234 ac_cv_func_getaddrinfo=no
16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16236 /* end confdefs.h. */
16242 char* getaddrinfo();
16243 char* (*f) () = getaddrinfo;
16253 if ac_fn_c_try_link "$LINENO"; then :
16254 ac_cv_func_getaddrinfo="yes"
16255 if test "$ac_cv_header_windows_h" = "yes"; then
16257 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16260 LIBS="$LIBS -lws2_32"
16265 LIBS="$LIBS -lws2_32"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 #ifdef HAVE_WS2TCPIP_H
16270 #include <ws2tcpip.h>
16277 (void)getaddrinfo(NULL, NULL, NULL, NULL);
16284 if ac_fn_c_try_link "$LINENO"; then :
16286 ac_cv_func_getaddrinfo="yes"
16288 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16294 ac_cv_func_getaddrinfo="no"
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16302 rm -f core conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
16306 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
16307 if test $ac_cv_func_getaddrinfo = yes; then
16309 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16313 if test $ac_cv_func_getaddrinfo = no; then
16314 case " $LIBOBJS " in
16315 *" fake-rfc2553.$ac_objext "* ) ;;
16316 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
16321 if test "$USE_WINSOCK" = 1; then
16322 if test -n "$ac_tool_prefix"; then
16323 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16324 set dummy ${ac_tool_prefix}windres; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_prog_WINDRES+:} false; then :
16328 $as_echo_n "(cached) " >&6
16330 if test -n "$WINDRES"; then
16331 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334 for as_dir in $PATH
16337 test -z "$as_dir" && as_dir=.
16338 for ac_exec_ext in '' $ac_executable_extensions; do
16339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16340 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16350 WINDRES=$ac_cv_prog_WINDRES
16351 if test -n "$WINDRES"; then
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
16353 $as_echo "$WINDRES" >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16361 if test -z "$ac_cv_prog_WINDRES"; then
16362 ac_ct_WINDRES=$WINDRES
16363 # Extract the first word of "windres", so it can be a program name with args.
16364 set dummy windres; ac_word=$2
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16366 $as_echo_n "checking for $ac_word... " >&6; }
16367 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
16368 $as_echo_n "(cached) " >&6
16370 if test -n "$ac_ct_WINDRES"; then
16371 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16374 for as_dir in $PATH
16377 test -z "$as_dir" && as_dir=.
16378 for ac_exec_ext in '' $ac_executable_extensions; do
16379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16380 ac_cv_prog_ac_ct_WINDRES="windres"
16381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16390 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16391 if test -n "$ac_ct_WINDRES"; then
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
16393 $as_echo "$ac_ct_WINDRES" >&6; }
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16396 $as_echo "no" >&6; }
16399 if test "x$ac_ct_WINDRES" = x; then
16402 case $cross_compiling:$ac_tool_warned in
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16406 ac_tool_warned=yes ;;
16408 WINDRES=$ac_ct_WINDRES
16411 WINDRES="$ac_cv_prog_WINDRES"
16416 # check ioctlsocket
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16418 $as_echo_n "checking for ioctlsocket... " >&6; }
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16422 #ifdef HAVE_WINSOCK2_H
16423 #include <winsock2.h>
16430 (void)ioctlsocket(0, 0, NULL);
16436 if ac_fn_c_try_link "$LINENO"; then :
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 $as_echo "yes" >&6; }
16441 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16452 #AC_SEARCH_LIBS(RSA_new, [crypto])
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
16456 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
16457 if ${ac_cv_c_format_attribute+:} false; then :
16458 $as_echo_n "(cached) " >&6
16460 ac_cv_c_format_attribute=no
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16465 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16477 if ac_fn_c_try_compile "$LINENO"; then :
16478 ac_cv_c_format_attribute="yes"
16480 ac_cv_c_format_attribute="no"
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
16488 $as_echo "$ac_cv_c_format_attribute" >&6; }
16489 if test $ac_cv_c_format_attribute = yes; then
16491 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
16497 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
16498 if ${ac_cv_c_unused_attribute+:} false; then :
16499 $as_echo_n "(cached) " >&6
16501 ac_cv_c_unused_attribute=no
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16505 void f (char *u __attribute__((unused)));
16517 if ac_fn_c_try_compile "$LINENO"; then :
16518 ac_cv_c_unused_attribute="yes"
16520 ac_cv_c_unused_attribute="no"
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
16530 $as_echo "$ac_cv_c_unused_attribute" >&6; }
16531 if test $ac_cv_c_unused_attribute = yes; then
16533 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
16538 # check OSX deployment target which is needed
16539 if echo $build_os | grep darwin > /dev/null; then
16540 export MACOSX_DEPLOYMENT_TARGET="10.4"
16544 $as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
16548 # Check whether --with-trust-anchor was given.
16549 if test "${with_trust_anchor+set}" = set; then :
16550 withval=$with_trust_anchor;
16551 LDNS_TRUST_ANCHOR_FILE="$withval"
16555 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
16556 if test "x$sysconfdir" = 'x${prefix}/etc' ; then
16557 if test "x$prefix" = 'xNONE' ; then
16558 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
16560 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
16563 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
16570 cat >>confdefs.h <<_ACEOF
16571 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
16576 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
16579 # Check whether --with-ca-file was given.
16580 if test "${with_ca_file+set}" = set; then :
16581 withval=$with_ca_file;
16583 $as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
16586 cat >>confdefs.h <<_ACEOF
16587 #define LDNS_DANE_CA_FILE "$withval"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
16591 $as_echo "$as_me: Using CAfile: $withval" >&6;}
16592 DEFAULT_CAFILE="Default is $withval"
16598 $as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
16606 # Check whether --with-ca-path was given.
16607 if test "${with_ca_path+set}" = set; then :
16608 withval=$with_ca_path;
16610 $as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
16613 cat >>confdefs.h <<_ACEOF
16614 #define LDNS_DANE_CA_PATH "$withval"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
16618 $as_echo "$as_me: Using CApath: $withval" >&6;}
16619 DEFAULT_CAPATH="Default is $withval"
16625 $as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
16636 if test "x$HAVE_SSL" = "xyes"; then
16637 ldns_build_config_have_ssl=1
16640 ldns_build_config_have_ssl=0
16643 if test "x$ac_cv_c_format_attribute" = "xyes"; then
16644 ldns_build_config_have_attr_format=1
16647 ldns_build_config_have_attr_format=0
16650 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
16651 ldns_build_config_have_attr_unused=1
16654 ldns_build_config_have_attr_unused=0
16658 CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG"
16660 ac_config_files="$ac_config_files $CONFIG_FILES"
16663 ac_config_headers="$ac_config_headers ldns/config.h"
16665 cat >confcache <<\_ACEOF
16666 # This file is a shell script that caches the results of configure
16667 # tests run on this system so they can be shared between configure
16668 # scripts and configure runs, see configure's option --config-cache.
16669 # It is not useful on other systems. If it contains results you don't
16670 # want to keep, you may remove or edit it.
16672 # config.status only pays attention to the cache file if you give it
16673 # the --recheck option to rerun configure.
16675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16677 # following values.
16681 # The following way of writing the cache mishandles newlines in values,
16682 # but we know of no workaround that is simple, portable, and efficient.
16683 # So, we kill variables containing newlines.
16684 # Ultrix sh set writes to stderr and can't be redirected directly,
16685 # and sets the high bit in the cache file unless we assign to the vars.
16687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16688 eval ac_val=\$$ac_var
16692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16696 _ | IFS | as_nl) ;; #(
16697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16698 *) { eval $ac_var=; unset $ac_var;} ;;
16704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16705 *${as_nl}ac_space=\ *)
16706 # `set' does not quote correctly, so add quotes: double-quote
16707 # substitution turns \\\\ into \\, and sed turns \\ into \.
16710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16713 # `set' quotes correctly as required by POSIX, so do not add quotes.
16714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16728 if test -w "$cache_file"; then
16729 if test "x$cache_file" != "x/dev/null"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16731 $as_echo "$as_me: updating cache $cache_file" >&6;}
16732 if test ! -f "$cache_file" || test -h "$cache_file"; then
16733 cat confcache >"$cache_file"
16735 case $cache_file in #(
16737 mv -f confcache "$cache_file"$$ &&
16738 mv -f "$cache_file"$$ "$cache_file" ;; #(
16740 mv -f confcache "$cache_file" ;;
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16752 # Let make expand exec_prefix.
16753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16755 DEFS=-DHAVE_CONFIG_H
16760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16761 # 1. Remove the extension, and $U if already installed.
16762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16765 # will be set to the directory where LIBOBJS objects are built.
16766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16769 LIBOBJS=$ac_libobjs
16771 LTLIBOBJS=$ac_ltlibobjs
16776 : "${CONFIG_STATUS=./config.status}"
16778 ac_clean_files_save=$ac_clean_files
16779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16785 # Generated by $as_me.
16786 # Run this file to recreate the current configuration.
16787 # Compiler output produced by configure, useful for debugging
16788 # configure, is in config.log if it exists.
16791 ac_cs_recheck=false
16794 SHELL=\${CONFIG_SHELL-$SHELL}
16797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16798 ## -------------------- ##
16799 ## M4sh Initialization. ##
16800 ## -------------------- ##
16802 # Be more Bourne compatible
16803 DUALCASE=1; export DUALCASE # for MKS sh
16804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16808 # is contrary to our usage. Disable this feature.
16809 alias -g '${1+"$@"}'='"$@"'
16810 setopt NO_GLOB_SUBST
16812 case `(set -o) 2>/dev/null` in #(
16824 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16825 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16828 # Prefer a ksh shell builtin over an external printf program on Solaris,
16829 # but without wasting forks for bash or zsh.
16830 if test -z "$BASH_VERSION$ZSH_VERSION" \
16831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16832 as_echo='print -r --'
16833 as_echo_n='print -rn --'
16834 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16835 as_echo='printf %s\n'
16836 as_echo_n='printf %s'
16838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16840 as_echo_n='/usr/ucb/echo -n'
16842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16843 as_echo_n_body='eval
16847 expr "X$arg" : "X\\(.*\\)$as_nl";
16848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16852 export as_echo_n_body
16853 as_echo_n='sh -c $as_echo_n_body as_echo'
16855 export as_echo_body
16856 as_echo='sh -c $as_echo_body as_echo'
16859 # The user is always right.
16860 if test "${PATH_SEPARATOR+set}" != set; then
16862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16870 # We need space, tab and new line, in precisely that order. Quoting is
16871 # there to prevent editors from complaining about space-tab.
16872 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16873 # splitting by setting IFS to empty value.)
16876 # Find who we are. Look in the path if we contain no directory separator.
16879 *[\\/]* ) as_myself=$0 ;;
16880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16881 for as_dir in $PATH
16884 test -z "$as_dir" && as_dir=.
16885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16891 # We did not find ourselves, most probably we were run as `sh COMMAND'
16892 # in which case we are not to be found in the path.
16893 if test "x$as_myself" = x; then
16896 if test ! -f "$as_myself"; then
16897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16901 # Unset variables that we do not need and which cause bugs (e.g. in
16902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16903 # suppresses any "Segmentation fault" message there. '((' could
16904 # trigger a bug in pdksh 5.2.14.
16905 for as_var in BASH_ENV ENV MAIL MAILPATH
16906 do eval test x\${$as_var+set} = xset \
16907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16923 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16924 # ----------------------------------------
16925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16927 # script with STATUS, using 1 if that was 0.
16930 as_status=$1; test $as_status -eq 0 && as_status=1
16932 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16935 $as_echo "$as_me: error: $2" >&2
16936 as_fn_exit $as_status
16940 # as_fn_set_status STATUS
16941 # -----------------------
16942 # Set $? to STATUS, without forking.
16943 as_fn_set_status ()
16946 } # as_fn_set_status
16948 # as_fn_exit STATUS
16949 # -----------------
16950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16954 as_fn_set_status $1
16960 # Portably unset VAR.
16963 { eval $1=; unset $1;}
16965 as_unset=as_fn_unset
16966 # as_fn_append VAR VALUE
16967 # ----------------------
16968 # Append the text in VALUE to the end of the definition contained in VAR. Take
16969 # advantage of any shell optimizations that allow amortized linear growth over
16970 # repeated appends, instead of the typical quadratic growth present in naive
16972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16973 eval 'as_fn_append ()
16984 # as_fn_arith ARG...
16985 # ------------------
16986 # Perform arithmetic evaluation on the ARGs, and store the result in the
16987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16988 # must be portable across $(()) and expr.
16989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16990 eval 'as_fn_arith ()
16997 as_val=`expr "$@" || test $? -eq 1`
17002 if expr a : '\(a\)' >/dev/null 2>&1 &&
17003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17010 as_basename=basename
17015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17021 as_me=`$as_basename -- "$0" ||
17022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17023 X"$0" : 'X\(//\)$' \| \
17024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17026 sed '/^.*\/\([^/][^/]*\)\/*$/{
17040 # Avoid depending upon Character Ranges.
17041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17044 as_cr_digits='0123456789'
17045 as_cr_alnum=$as_cr_Letters$as_cr_digits
17047 ECHO_C= ECHO_N= ECHO_T=
17048 case `echo -n x` in #(((((
17050 case `echo 'xy\c'` in
17051 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17060 rm -f conf$$ conf$$.exe conf$$.file
17061 if test -d conf$$.dir; then
17062 rm -f conf$$.dir/conf$$.file
17065 mkdir conf$$.dir 2>/dev/null
17067 if (echo >conf$$.file) 2>/dev/null; then
17068 if ln -s conf$$.file conf$$ 2>/dev/null; then
17070 # ... but there are two gotchas:
17071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17073 # In both cases, we have to default to `cp -p'.
17074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17076 elif ln conf$$.file conf$$ 2>/dev/null; then
17084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17085 rmdir conf$$.dir 2>/dev/null
17090 # Create "$as_dir" as a directory, including parents if necessary.
17095 -*) as_dir=./$as_dir;;
17097 test -d "$as_dir" || eval $as_mkdir_p || {
17101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17102 *) as_qdir=$as_dir;;
17104 as_dirs="'$as_qdir' $as_dirs"
17105 as_dir=`$as_dirname -- "$as_dir" ||
17106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17107 X"$as_dir" : 'X\(//\)[^/]' \| \
17108 X"$as_dir" : 'X\(//\)$' \| \
17109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17110 $as_echo X"$as_dir" |
17111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17115 /^X\(\/\/\)[^/].*/{
17128 test -d "$as_dir" && break
17130 test -z "$as_dirs" || eval "mkdir $as_dirs"
17131 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17135 if mkdir -p . 2>/dev/null; then
17136 as_mkdir_p='mkdir -p "$as_dir"'
17138 test -d ./-p && rmdir ./-p
17142 if test -x / >/dev/null 2>&1; then
17143 as_test_x='test -x'
17145 if ls -dL / >/dev/null 2>&1; then
17152 if test -d "$1"; then
17158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17159 ???[sx]*):;;*)false;;esac;fi
17163 as_executable_p=$as_test_x
17165 # Sed expression to map a string onto a valid CPP name.
17166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17168 # Sed expression to map a string onto a valid variable name.
17169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17173 ## ----------------------------------- ##
17174 ## Main body of $CONFIG_STATUS script. ##
17175 ## ----------------------------------- ##
17177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 # Save the log message, to keep $0 and so on meaningful, and to
17181 # report actual input values of CONFIG_FILES etc. instead of their
17182 # values after options handling.
17184 This file was extended by ldns $as_me 1.6.16, which was
17185 generated by GNU Autoconf 2.68. Invocation command line was
17187 CONFIG_FILES = $CONFIG_FILES
17188 CONFIG_HEADERS = $CONFIG_HEADERS
17189 CONFIG_LINKS = $CONFIG_LINKS
17190 CONFIG_COMMANDS = $CONFIG_COMMANDS
17193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17198 case $ac_config_files in *"
17199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17202 case $ac_config_headers in *"
17203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208 # Files that config.status was made for.
17209 config_files="$ac_config_files"
17210 config_headers="$ac_config_headers"
17211 config_commands="$ac_config_commands"
17215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17217 \`$as_me' instantiates files and other configuration actions
17218 from templates according to the current configuration. Unless the files
17219 and actions are specified as TAGs, all are instantiated by default.
17221 Usage: $0 [OPTION]... [TAG]...
17223 -h, --help print this help, then exit
17224 -V, --version print version number and configuration settings, then exit
17225 --config print configuration, then exit
17226 -q, --quiet, --silent
17227 do not print progress messages
17228 -d, --debug don't remove temporary files
17229 --recheck update $as_me by reconfiguring in the same conditions
17230 --file=FILE[:TEMPLATE]
17231 instantiate the configuration file FILE
17232 --header=FILE[:TEMPLATE]
17233 instantiate the configuration header FILE
17235 Configuration files:
17238 Configuration headers:
17241 Configuration commands:
17244 Report bugs to <libdns@nlnetlabs.nl>."
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17250 ldns config.status 1.6.16
17251 configured by $0, generated by GNU Autoconf 2.68,
17252 with options \\"\$ac_cs_config\\"
17254 Copyright (C) 2010 Free Software Foundation, Inc.
17255 This config.status script is free software; the Free Software Foundation
17256 gives unlimited permission to copy, distribute and modify it."
17261 test -n "\$AWK" || AWK=awk
17264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265 # The default lists apply if the user does not specify any file.
17271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17276 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17288 # Handling of the options.
17289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17291 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17292 $as_echo "$ac_cs_version"; exit ;;
17293 --config | --confi | --conf | --con | --co | --c )
17294 $as_echo "$ac_cs_config"; exit ;;
17295 --debug | --debu | --deb | --de | --d | -d )
17297 --file | --fil | --fi | --f )
17300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17301 '') as_fn_error $? "missing file argument" ;;
17303 as_fn_append CONFIG_FILES " '$ac_optarg'"
17304 ac_need_defaults=false;;
17305 --header | --heade | --head | --hea )
17308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17310 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17311 ac_need_defaults=false;;
17313 # Conflict between --help and --header
17314 as_fn_error $? "ambiguous option: \`$1'
17315 Try \`$0 --help' for more information.";;
17316 --help | --hel | -h )
17317 $as_echo "$ac_cs_usage"; exit ;;
17318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17322 # This is an error.
17323 -*) as_fn_error $? "unrecognized option: \`$1'
17324 Try \`$0 --help' for more information." ;;
17326 *) as_fn_append ac_config_targets " $1"
17327 ac_need_defaults=false ;;
17333 ac_configure_extra_args=
17335 if $ac_cs_silent; then
17337 ac_configure_extra_args="$ac_configure_extra_args --silent"
17341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342 if \$ac_cs_recheck; then
17343 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17346 CONFIG_SHELL='$SHELL'
17347 export CONFIG_SHELL
17352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17357 ## Running $as_me. ##
17363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 # The HP-UX ksh and POSIX shell print the target directory to stdout
17370 # if CDPATH is set.
17371 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17373 sed_quote_subst='$sed_quote_subst'
17374 double_quote_subst='$double_quote_subst'
17375 delay_variable_subst='$delay_variable_subst'
17376 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17377 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17378 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17379 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17380 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17381 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17382 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17383 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17384 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17385 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17386 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17387 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17388 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17389 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17390 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17391 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17392 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17393 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17394 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17395 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17396 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17397 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17398 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17399 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17400 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17401 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17402 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17403 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17404 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17405 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17406 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17407 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17408 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17409 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17410 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17411 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17412 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17413 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17414 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17415 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17416 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17417 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17418 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17419 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17420 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17421 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17422 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17423 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17424 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17425 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17426 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17427 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17428 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17429 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17430 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17431 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17432 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"`'
17433 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17434 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17435 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17436 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17437 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17438 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17439 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17440 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17441 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17442 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17443 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17444 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17445 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17446 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17447 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17448 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17449 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17450 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17451 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17452 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17453 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17454 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17455 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17456 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17457 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17458 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17459 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17460 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17461 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17462 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17463 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17464 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17465 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17466 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17467 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17468 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17469 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17470 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17471 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17472 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17473 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17474 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17475 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17476 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17477 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17478 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17479 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17480 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17481 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17482 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17483 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17484 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17485 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17486 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17487 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17488 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17489 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17490 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17491 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17492 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17493 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17494 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17495 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17496 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17497 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17498 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17499 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17500 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17501 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17502 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17503 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17504 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17505 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17508 LTCFLAGS='$LTCFLAGS'
17509 compiler='$compiler_DEFAULT'
17511 # A function that is used when there is no print builtin or printf.
17512 func_fallback_echo ()
17514 eval 'cat <<_LTECHO_EOF
17519 # Quote evaled strings.
17534 deplibs_check_method \
17539 sharedlib_from_linklib_cmd \
17542 archiver_list_spec \
17548 lt_cv_sys_global_symbol_pipe \
17549 lt_cv_sys_global_symbol_to_cdecl \
17550 lt_cv_sys_global_symbol_to_c_name_address \
17551 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17552 nm_file_list_spec \
17553 lt_prog_compiler_no_builtin_flag \
17554 lt_prog_compiler_pic \
17555 lt_prog_compiler_wl \
17556 lt_prog_compiler_static \
17557 lt_cv_prog_compiler_c_o \
17566 export_dynamic_flag_spec \
17567 whole_archive_flag_spec \
17568 compiler_needs_object \
17570 allow_undefined_flag \
17571 no_undefined_flag \
17572 hardcode_libdir_flag_spec \
17573 hardcode_libdir_separator \
17577 variables_saved_for_relink \
17579 library_names_spec \
17581 install_override_mode \
17585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17586 *[\\\\\\\`\\"\\\$]*)
17587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17595 # Double-quote double-evaled strings.
17596 for var in reload_cmds \
17597 old_postinstall_cmds \
17598 old_postuninstall_cmds \
17600 extract_expsyms_cmds \
17601 old_archive_from_new_cmds \
17602 old_archive_from_expsyms_cmds \
17604 archive_expsym_cmds \
17606 module_expsym_cmds \
17607 export_symbols_cmds \
17611 postuninstall_cmds \
17613 sys_lib_search_path_spec \
17614 sys_lib_dlsearch_path_spec; do
17615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17616 *[\\\\\\\`\\"\\\$]*)
17617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17625 ac_aux_dir='$ac_aux_dir'
17626 xsi_shell='$xsi_shell'
17627 lt_shell_append='$lt_shell_append'
17629 # See if we are running on zsh, and set the options which allow our
17630 # commands through without removal of \ escapes INIT.
17631 if test -n "\${ZSH_VERSION+set}" ; then
17632 setopt NO_GLOB_SUBST
17638 TIMESTAMP='$TIMESTAMP'
17647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17649 # Handling of arguments.
17650 for ac_config_target in $ac_config_targets
17652 case $ac_config_target in
17653 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17654 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
17655 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
17656 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
17658 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17663 # If the user did not use the arguments to specify the items to instantiate,
17664 # then the envvar interface is used. Set only those that are not.
17665 # We use the long form for the default assignment because of an extremely
17666 # bizarre bug on SunOS 4.1.3.
17667 if $ac_need_defaults; then
17668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17673 # Have a temporary directory for convenience. Make it in the build tree
17674 # simply because there is no reason against having it here, and in addition,
17675 # creating and moving files from /tmp can sometimes cause problems.
17676 # Hook for its removal unless debugging.
17677 # Note that there is a small window in which the directory will not be cleaned:
17678 # after its creation but before its name has been assigned to `$tmp'.
17682 trap 'exit_status=$?
17683 : "${ac_tmp:=$tmp}"
17684 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17686 trap 'as_fn_exit 1' 1 2 13 15
17688 # Create a (secure) tmp directory for tmp files.
17691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17695 tmp=./conf$$-$RANDOM
17696 (umask 077 && mkdir "$tmp")
17697 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17700 # Set up the scripts for CONFIG_FILES section.
17701 # No need to generate them if there are no CONFIG_FILES.
17702 # This happens for instance with `./config.status config.h'.
17703 if test -n "$CONFIG_FILES"; then
17706 ac_cr=`echo X | tr X '\015'`
17707 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17708 # But we know of no other shell where ac_cr would be empty at this
17709 # point, so we can use a bashism as a fallback.
17710 if test "x$ac_cr" = x; then
17711 eval ac_cr=\$\'\\r\'
17713 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17714 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17717 ac_cs_awk_cr=$ac_cr
17720 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17725 echo "cat >conf$$subs.awk <<_ACEOF" &&
17726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17728 } >conf$$subs.sh ||
17729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17730 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17732 for ac_last_try in false false false false false :; do
17733 . ./conf$$subs.sh ||
17734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17736 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17737 if test $ac_delim_n = $ac_delim_num; then
17739 elif $ac_last_try; then
17740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17745 rm -f conf$$subs.sh
17747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17748 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17752 s/^/S["/; s/!.*/"]=/
17762 s/\(.\{148\}\)..*/\1/
17764 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17776 s/\(.\{148\}\)..*/\1/
17778 s/["\\]/\\&/g; s/^/"/; s/$/"/
17782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17787 ' <conf$$subs.awk | sed '
17792 ' >>$CONFIG_STATUS || ac_write_fail=1
17793 rm -f conf$$subs.awk
17794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17797 for (key in S) S_is_set[key] = 1
17803 nfields = split(line, field, "@")
17805 len = length(field[1])
17806 for (i = 2; i < nfields; i++) {
17808 keylen = length(key)
17809 if (S_is_set[key]) {
17811 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17812 len += length(value) + length(field[++i])
17823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17824 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17825 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17828 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17829 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17832 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17833 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17834 # trailing colons and then remove the whole line if VPATH becomes empty
17835 # (actually we leave an empty line to preserve line numbers).
17836 if test "x$srcdir" = x.; then
17837 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17856 fi # test -n "$CONFIG_FILES"
17858 # Set up the scripts for CONFIG_HEADERS section.
17859 # No need to generate them if there are no CONFIG_HEADERS.
17860 # This happens for instance with `./config.status Makefile'.
17861 if test -n "$CONFIG_HEADERS"; then
17862 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17866 # Transform confdefs.h into an awk script `defines.awk', embedded as
17867 # here-document in config.status, that substitutes the proper values into
17868 # config.h.in to produce config.h.
17870 # Create a delimiter string that does not exist in confdefs.h, to ease
17871 # handling of long lines.
17873 for ac_last_try in false false :; do
17874 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17875 if test -z "$ac_tt"; then
17877 elif $ac_last_try; then
17878 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17884 # For the awk script, D is an array of macro values keyed by name,
17885 # likewise P contains macro parameters if any. Preserve backslash
17886 # newline sequences.
17888 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17890 s/.\{148\}/&'"$ac_delim"'/g
17893 s/^[ ]*#[ ]*define[ ][ ]*/ /
17900 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17907 D["\1"]=" \3\\\\\\n"\\/p
17909 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17914 s/.\{148\}/&'"$ac_delim"'/g
17919 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17922 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17924 ' <confdefs.h | sed '
17925 s/'"$ac_delim"'/"\\\
17926 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17929 for (key in D) D_is_set[key] = 1
17932 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17934 split(line, arg, " ")
17935 if (arg[1] == "#") {
17939 defundef = substr(arg[1], 2)
17942 split(mac1, mac2, "(") #)
17944 prefix = substr(line, 1, index(line, defundef) - 1)
17945 if (D_is_set[macro]) {
17946 # Preserve the white space surrounding the "#".
17947 print prefix "define", macro P[macro] D[macro]
17950 # Replace #undef with comments. This is necessary, for example,
17951 # in the case of _POSIX_SOURCE, which is predefined and required
17952 # on some systems where configure will not decide to define it.
17953 if (defundef == "undef") {
17954 print "/*", prefix defundef, macro, "*/"
17962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17963 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17964 fi # test -n "$CONFIG_HEADERS"
17967 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17972 :[FHLC]) ac_mode=$ac_tag; continue;;
17974 case $ac_mode$ac_tag in
17976 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17977 :[FH]-) ac_tag=-:-;;
17978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17995 -) ac_f="$ac_tmp/stdin";;
17996 *) # Look for the file first in the build tree, then in the source tree
17997 # (if the path is not absolute). The absolute path cannot be DOS-style,
17998 # because $ac_f cannot contain `:'.
18002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18004 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18007 as_fn_append ac_file_inputs " '$ac_f'"
18010 # Let's still pretend it is `configure' which instantiates (i.e., don't
18011 # use $as_me), people would be surprised to read:
18012 # /* config.h. Generated by config.status. */
18013 configure_input='Generated from '`
18014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18016 if test x"$ac_file" != x-; then
18017 configure_input="$ac_file. $configure_input"
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18019 $as_echo "$as_me: creating $ac_file" >&6;}
18021 # Neutralize special characters interpreted by sed in replacement strings.
18022 case $configure_input in #(
18023 *\&* | *\|* | *\\* )
18024 ac_sed_conf_input=`$as_echo "$configure_input" |
18025 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18026 *) ac_sed_conf_input=$configure_input;;
18030 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18036 ac_dir=`$as_dirname -- "$ac_file" ||
18037 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18038 X"$ac_file" : 'X\(//\)[^/]' \| \
18039 X"$ac_file" : 'X\(//\)$' \| \
18040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18041 $as_echo X"$ac_file" |
18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18046 /^X\(\/\/\)[^/].*/{
18059 as_dir="$ac_dir"; as_fn_mkdir_p
18063 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18066 # A ".." for each directory in $ac_dir_suffix.
18067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18068 case $ac_top_builddir_sub in
18069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18073 ac_abs_top_builddir=$ac_pwd
18074 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18075 # for backward compatibility:
18076 ac_top_builddir=$ac_top_build_prefix
18079 .) # We are building in place.
18081 ac_top_srcdir=$ac_top_builddir_sub
18082 ac_abs_top_srcdir=$ac_pwd ;;
18083 [\\/]* | ?:[\\/]* ) # Absolute name.
18084 ac_srcdir=$srcdir$ac_dir_suffix;
18085 ac_top_srcdir=$srcdir
18086 ac_abs_top_srcdir=$srcdir ;;
18087 *) # Relative name.
18088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18089 ac_top_srcdir=$ac_top_build_prefix$srcdir
18090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18092 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18104 # If the template does not know about datarootdir, expand it.
18105 # FIXME: This hack should be removed a few years after 2.60.
18106 ac_datarootdir_hack=; ac_datarootdir_seen=
18117 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18118 *datarootdir*) ac_datarootdir_seen=yes;;
18119 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18121 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18124 ac_datarootdir_hack='
18125 s&@datadir@&$datadir&g
18126 s&@docdir@&$docdir&g
18127 s&@infodir@&$infodir&g
18128 s&@localedir@&$localedir&g
18129 s&@mandir@&$mandir&g
18130 s&\\\${datarootdir}&$datarootdir&g' ;;
18134 # Neutralize VPATH when `$srcdir' = `.'.
18135 # Shell code in configure.ac might set extrasub.
18136 # FIXME: do we really want to maintain this feature?
18137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18138 ac_sed_extra="$ac_vpsub
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18144 s|@configure_input@|$ac_sed_conf_input|;t t
18145 s&@top_builddir@&$ac_top_builddir_sub&;t t
18146 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18147 s&@srcdir@&$ac_srcdir&;t t
18148 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18149 s&@top_srcdir@&$ac_top_srcdir&;t t
18150 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18151 s&@builddir@&$ac_builddir&;t t
18152 s&@abs_builddir@&$ac_abs_builddir&;t t
18153 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18154 $ac_datarootdir_hack
18156 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18164 which seems to be undefined. Please make sure it is defined" >&5
18165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18166 which seems to be undefined. Please make sure it is defined" >&2;}
18168 rm -f "$ac_tmp/stdin"
18170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18179 if test x"$ac_file" != x-; then
18181 $as_echo "/* $configure_input */" \
18182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18183 } >"$ac_tmp/config.h" \
18184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18187 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18190 mv "$ac_tmp/config.h" "$ac_file" \
18191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18194 $as_echo "/* $configure_input */" \
18195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18196 || as_fn_error $? "could not create -" "$LINENO" 5
18200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18201 $as_echo "$as_me: executing $ac_file commands" >&6;}
18206 case $ac_file$ac_mode in
18209 # See if we are running on zsh, and set the options which allow our
18210 # commands through without removal of \ escapes.
18211 if test -n "${ZSH_VERSION+set}" ; then
18212 setopt NO_GLOB_SUBST
18215 cfgfile="${ofile}T"
18216 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18219 cat <<_LT_EOF >> "$cfgfile"
18222 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18223 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18224 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18225 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18227 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18228 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18230 # Written by Gordon Matzigkeit, 1996
18232 # This file is part of GNU Libtool.
18234 # GNU Libtool is free software; you can redistribute it and/or
18235 # modify it under the terms of the GNU General Public License as
18236 # published by the Free Software Foundation; either version 2 of
18237 # the License, or (at your option) any later version.
18239 # As a special exception to the GNU General Public License,
18240 # if you distribute this file as part of a program or library that
18241 # is built using GNU Libtool, you may include this file under the
18242 # same distribution terms that you use for the rest of that program.
18244 # GNU Libtool is distributed in the hope that it will be useful,
18245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18247 # GNU General Public License for more details.
18249 # You should have received a copy of the GNU General Public License
18250 # along with GNU Libtool; see the file COPYING. If not, a copy
18251 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18252 # obtained by writing to the Free Software Foundation, Inc.,
18253 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18256 # The names of the tagged configurations supported by this script.
18259 # ### BEGIN LIBTOOL CONFIG
18261 # Which release of libtool.m4 was used?
18262 macro_version=$macro_version
18263 macro_revision=$macro_revision
18265 # Whether or not to build shared libraries.
18266 build_libtool_libs=$enable_shared
18268 # Whether or not to build static libraries.
18269 build_old_libs=$enable_static
18271 # What type of objects to build.
18274 # Whether or not to optimize for fast installation.
18275 fast_install=$enable_fast_install
18277 # Shell to use when invoking shell scripts.
18280 # An echo program that protects backslashes.
18283 # The PATH separator for the build system.
18284 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18287 host_alias=$host_alias
18291 # The build system.
18292 build_alias=$build_alias
18296 # A sed program that does not truncate output.
18299 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18300 Xsed="\$SED -e 1s/^X//"
18302 # A grep program that handles long lines.
18308 # A literal string matcher.
18311 # A BSD- or MS-compatible name lister.
18314 # Whether we need soft or hard links.
18317 # What is the maximum length of a command?
18318 max_cmd_len=$max_cmd_len
18320 # Object file suffix (normally "o").
18323 # Executable file suffix (normally "").
18326 # whether the shell understands "unset".
18329 # turn spaces into newlines.
18332 # turn newlines into spaces.
18335 # convert \$build file names to \$host format.
18336 to_host_file_cmd=$lt_cv_to_host_file_cmd
18338 # convert \$build files to toolchain format.
18339 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18341 # An object symbol dumper.
18342 OBJDUMP=$lt_OBJDUMP
18344 # Method to check whether dependent libraries are shared objects.
18345 deplibs_check_method=$lt_deplibs_check_method
18347 # Command to use when deplibs_check_method = "file_magic".
18348 file_magic_cmd=$lt_file_magic_cmd
18350 # How to find potential files when deplibs_check_method = "file_magic".
18351 file_magic_glob=$lt_file_magic_glob
18353 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18354 want_nocaseglob=$lt_want_nocaseglob
18356 # DLL creation program.
18357 DLLTOOL=$lt_DLLTOOL
18359 # Command to associate shared and link libraries.
18360 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18365 # Flags to create an archive.
18366 AR_FLAGS=$lt_AR_FLAGS
18368 # How to feed a file listing to the archiver.
18369 archiver_list_spec=$lt_archiver_list_spec
18371 # A symbol stripping program.
18374 # Commands used to install an old-style archive.
18376 old_postinstall_cmds=$lt_old_postinstall_cmds
18377 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18379 # Whether to use a lock for old archive extraction.
18380 lock_old_archive_extraction=$lock_old_archive_extraction
18385 # LTCC compiler flags.
18386 LTCFLAGS=$lt_CFLAGS
18388 # Take the output of nm and produce a listing of raw symbols and C names.
18389 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18391 # Transform the output of nm in a proper C declaration.
18392 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18394 # Transform the output of nm in a C name address pair.
18395 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18397 # Transform the output of nm in a C name address pair when lib prefix is needed.
18398 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18400 # Specify filename containing input files for \$NM.
18401 nm_file_list_spec=$lt_nm_file_list_spec
18403 # The root where to search for dependent libraries,and in which our libraries should be installed.
18404 lt_sysroot=$lt_sysroot
18406 # The name of the directory that contains temporary libtool files.
18409 # Used to examine libraries when file_magic_cmd begins with "file".
18410 MAGIC_CMD=$MAGIC_CMD
18412 # Must we lock files when doing compilation?
18413 need_locks=$lt_need_locks
18416 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18419 DSYMUTIL=$lt_DSYMUTIL
18421 # Tool to change global to local symbols on Mac OS X.
18424 # Tool to manipulate fat objects and archives on Mac OS X.
18427 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18431 OTOOL64=$lt_OTOOL64
18433 # Old archive suffix (normally "a").
18436 # Shared library suffix (normally ".so").
18437 shrext_cmds=$lt_shrext_cmds
18439 # The commands to extract the exported symbol list from a shared archive.
18440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18442 # Variables whose values should be saved in libtool wrapper scripts and
18443 # restored at link time.
18444 variables_saved_for_relink=$lt_variables_saved_for_relink
18446 # Do we need the "lib" prefix for modules?
18447 need_lib_prefix=$need_lib_prefix
18449 # Do we need a version for libraries?
18450 need_version=$need_version
18452 # Library versioning type.
18453 version_type=$version_type
18455 # Shared library runtime path variable.
18456 runpath_var=$runpath_var
18458 # Shared library path variable.
18459 shlibpath_var=$shlibpath_var
18461 # Is shlibpath searched before the hard-coded library search path?
18462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18464 # Format of library name prefix.
18465 libname_spec=$lt_libname_spec
18467 # List of archive names. First name is the real one, the rest are links.
18468 # The last name is the one that the linker finds with -lNAME
18469 library_names_spec=$lt_library_names_spec
18471 # The coded name of the library, if different from the real name.
18472 soname_spec=$lt_soname_spec
18474 # Permission mode override for installation of shared libraries.
18475 install_override_mode=$lt_install_override_mode
18477 # Command to use after installation of a shared archive.
18478 postinstall_cmds=$lt_postinstall_cmds
18480 # Command to use after uninstallation of a shared archive.
18481 postuninstall_cmds=$lt_postuninstall_cmds
18483 # Commands used to finish a libtool library installation in a directory.
18484 finish_cmds=$lt_finish_cmds
18486 # As "finish_cmds", except a single script fragment to be evaled but
18488 finish_eval=$lt_finish_eval
18490 # Whether we should hardcode library paths into libraries.
18491 hardcode_into_libs=$hardcode_into_libs
18493 # Compile-time system search path for libraries.
18494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18496 # Run-time system search path for libraries.
18497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18499 # Whether dlopen is supported.
18500 dlopen_support=$enable_dlopen
18502 # Whether dlopen of programs is supported.
18503 dlopen_self=$enable_dlopen_self
18505 # Whether dlopen of statically linked programs is supported.
18506 dlopen_self_static=$enable_dlopen_self_static
18508 # Commands to strip libraries.
18509 old_striplib=$lt_old_striplib
18510 striplib=$lt_striplib
18513 # The linker used to build libraries.
18516 # How to create reloadable object files.
18517 reload_flag=$lt_reload_flag
18518 reload_cmds=$lt_reload_cmds
18520 # Commands used to build an old-style archive.
18521 old_archive_cmds=$lt_old_archive_cmds
18523 # A language specific compiler.
18526 # Is the compiler the GNU compiler?
18529 # Compiler flag to turn off builtin functions.
18530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18532 # Additional compiler flags for building library objects.
18533 pic_flag=$lt_lt_prog_compiler_pic
18535 # How to pass a linker flag through the compiler.
18536 wl=$lt_lt_prog_compiler_wl
18538 # Compiler flag to prevent dynamic linking.
18539 link_static_flag=$lt_lt_prog_compiler_static
18541 # Does compiler simultaneously support -c and -o options?
18542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18544 # Whether or not to add -lc for building shared libraries.
18545 build_libtool_need_lc=$archive_cmds_need_lc
18547 # Whether or not to disallow shared libs when runtime libs are static.
18548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18550 # Compiler flag to allow reflexive dlopens.
18551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18553 # Compiler flag to generate shared objects directly from archives.
18554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18556 # Whether the compiler copes with passing no objects directly.
18557 compiler_needs_object=$lt_compiler_needs_object
18559 # Create an old-style archive from a shared archive.
18560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18562 # Create a temporary old-style archive to link instead of a shared archive.
18563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18565 # Commands used to build a shared archive.
18566 archive_cmds=$lt_archive_cmds
18567 archive_expsym_cmds=$lt_archive_expsym_cmds
18569 # Commands used to build a loadable module if different from building
18570 # a shared archive.
18571 module_cmds=$lt_module_cmds
18572 module_expsym_cmds=$lt_module_expsym_cmds
18574 # Whether we are building with GNU ld or not.
18575 with_gnu_ld=$lt_with_gnu_ld
18577 # Flag that allows shared libraries with undefined symbols to be built.
18578 allow_undefined_flag=$lt_allow_undefined_flag
18580 # Flag that enforces no undefined symbols.
18581 no_undefined_flag=$lt_no_undefined_flag
18583 # Flag to hardcode \$libdir into a binary during linking.
18584 # This must work even if \$libdir does not exist
18585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18587 # Whether we need a single "-rpath" flag with a separated argument.
18588 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18591 # DIR into the resulting binary.
18592 hardcode_direct=$hardcode_direct
18594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18595 # DIR into the resulting binary and the resulting library dependency is
18596 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18597 # library is relocated.
18598 hardcode_direct_absolute=$hardcode_direct_absolute
18600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18601 # into the resulting binary.
18602 hardcode_minus_L=$hardcode_minus_L
18604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18605 # into the resulting binary.
18606 hardcode_shlibpath_var=$hardcode_shlibpath_var
18608 # Set to "yes" if building a shared library automatically hardcodes DIR
18609 # into the library and all subsequent libraries and executables linked
18611 hardcode_automatic=$hardcode_automatic
18613 # Set to yes if linker adds runtime paths of dependent libraries
18614 # to runtime path list.
18615 inherit_rpath=$inherit_rpath
18617 # Whether libtool must link a program against all its dependency libraries.
18618 link_all_deplibs=$link_all_deplibs
18620 # Set to "yes" if exported symbols are required.
18621 always_export_symbols=$always_export_symbols
18623 # The commands to list exported symbols.
18624 export_symbols_cmds=$lt_export_symbols_cmds
18626 # Symbols that should not be listed in the preloaded symbols.
18627 exclude_expsyms=$lt_exclude_expsyms
18629 # Symbols that must always be exported.
18630 include_expsyms=$lt_include_expsyms
18632 # Commands necessary for linking programs (against libraries) with templates.
18633 prelink_cmds=$lt_prelink_cmds
18635 # Commands necessary for finishing linking programs.
18636 postlink_cmds=$lt_postlink_cmds
18638 # Specify filename containing input files.
18639 file_list_spec=$lt_file_list_spec
18641 # How to hardcode a shared library path into an executable.
18642 hardcode_action=$hardcode_action
18644 # ### END LIBTOOL CONFIG
18650 cat <<\_LT_EOF >> "$cfgfile"
18651 # AIX sometimes has problems with the GCC collect2 program. For some
18652 # reason, if we set the COLLECT_NAMES environment variable, the problems
18653 # vanish in a puff of smoke.
18654 if test "X${COLLECT_NAMES+set}" != Xset; then
18656 export COLLECT_NAMES
18663 ltmain="$ac_aux_dir/ltmain.sh"
18666 # We use sed instead of cat because bash on DJGPP gets confused if
18667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18668 # text mode, it properly converts lines to CR/LF. This bash problem
18669 # is reportedly fixed, but why not run on old versions too?
18670 sed '$q' "$ltmain" >> "$cfgfile" \
18671 || (rm -f "$cfgfile"; exit 1)
18673 if test x"$xsi_shell" = xyes; then
18674 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18678 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18679 \ * ) func_dirname_result="${3}" ;;\
18681 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18682 && mv -f "$cfgfile.tmp" "$cfgfile" \
18683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18684 test 0 -eq $? || _lt_function_replace_fail=:
18687 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18690 \ func_basename_result="${1##*/}"\
18691 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18692 && mv -f "$cfgfile.tmp" "$cfgfile" \
18693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18694 test 0 -eq $? || _lt_function_replace_fail=:
18697 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18698 func_dirname_and_basename ()\
18701 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18702 \ * ) func_dirname_result="${3}" ;;\
18704 \ func_basename_result="${1##*/}"\
18705 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18706 && mv -f "$cfgfile.tmp" "$cfgfile" \
18707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18708 test 0 -eq $? || _lt_function_replace_fail=:
18711 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18714 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18715 \ # positional parameters, so assign one to ordinary parameter first.\
18716 \ func_stripname_result=${3}\
18717 \ func_stripname_result=${func_stripname_result#"${1}"}\
18718 \ func_stripname_result=${func_stripname_result%"${2}"}\
18719 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18720 && mv -f "$cfgfile.tmp" "$cfgfile" \
18721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18722 test 0 -eq $? || _lt_function_replace_fail=:
18725 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18726 func_split_long_opt ()\
18728 \ func_split_long_opt_name=${1%%=*}\
18729 \ func_split_long_opt_arg=${1#*=}\
18730 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18731 && mv -f "$cfgfile.tmp" "$cfgfile" \
18732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18733 test 0 -eq $? || _lt_function_replace_fail=:
18736 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18737 func_split_short_opt ()\
18739 \ func_split_short_opt_arg=${1#??}\
18740 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18741 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18742 && mv -f "$cfgfile.tmp" "$cfgfile" \
18743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18744 test 0 -eq $? || _lt_function_replace_fail=:
18747 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18751 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18752 \ *) func_lo2o_result=${1} ;;\
18754 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18755 && mv -f "$cfgfile.tmp" "$cfgfile" \
18756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18757 test 0 -eq $? || _lt_function_replace_fail=:
18760 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18763 func_xform_result=${1%.*}.lo\
18764 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18765 && mv -f "$cfgfile.tmp" "$cfgfile" \
18766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18767 test 0 -eq $? || _lt_function_replace_fail=:
18770 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18773 func_arith_result=$(( $* ))\
18774 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18775 && mv -f "$cfgfile.tmp" "$cfgfile" \
18776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18777 test 0 -eq $? || _lt_function_replace_fail=:
18780 sed -e '/^func_len ()$/,/^} # func_len /c\
18783 func_len_result=${#1}\
18784 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18785 && mv -f "$cfgfile.tmp" "$cfgfile" \
18786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18787 test 0 -eq $? || _lt_function_replace_fail=:
18791 if test x"$lt_shell_append" = xyes; then
18792 sed -e '/^func_append ()$/,/^} # func_append /c\
18795 eval "${1}+=\\${2}"\
18796 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18797 && mv -f "$cfgfile.tmp" "$cfgfile" \
18798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18799 test 0 -eq $? || _lt_function_replace_fail=:
18802 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18803 func_append_quoted ()\
18805 \ func_quote_for_eval "${2}"\
18806 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18807 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18808 && mv -f "$cfgfile.tmp" "$cfgfile" \
18809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18810 test 0 -eq $? || _lt_function_replace_fail=:
18813 # Save a `func_append' function call where possible by direct use of '+='
18814 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18815 && mv -f "$cfgfile.tmp" "$cfgfile" \
18816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18817 test 0 -eq $? || _lt_function_replace_fail=:
18819 # Save a `func_append' function call even when '+=' is not available
18820 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18821 && mv -f "$cfgfile.tmp" "$cfgfile" \
18822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18823 test 0 -eq $? || _lt_function_replace_fail=:
18826 if test x"$_lt_function_replace_fail" = x":"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18828 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18832 mv -f "$cfgfile" "$ofile" ||
18833 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18838 sed < libtool > libtool-2 \
18839 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
18840 mv libtool-2 libtool
18842 libtool="./libtool"
18851 ac_clean_files=$ac_clean_files_save
18853 test $ac_write_fail = 0 ||
18854 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18857 # configure is writing to config.log, and then calls config.status.
18858 # config.status does its own redirection, appending to config.log.
18859 # Unfortunately, on DOS this fails, as config.log is still kept open
18860 # by configure, so config.status won't be able to write to it; its
18861 # output is simply discarded. So we exec the FD to /dev/null,
18862 # effectively closing config.log, so it can be properly (re)opened and
18863 # appended to by config.status. When coming back to configure, we
18864 # need to make the FD available again.
18865 if test "$no_create" != yes; then
18867 ac_config_status_args=
18868 test "$silent" = yes &&
18869 ac_config_status_args="$ac_config_status_args --quiet"
18871 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18873 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18874 # would make configure fail if this is the last instruction.
18875 $ac_cs_success || as_fn_exit 1
18877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18883 echo "copying header files"
18885 for file in $srcdir/ldns//*.h; do
18886 sh $srcdir/install-sh -m 644 $file ldns/