2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ldns 1.6.17.
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.17'
574 PACKAGE_STRING='ldns 1.6.17'
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
624 ldns_build_config_have_b32_pton
625 ldns_build_config_have_b32_ntop
627 ldns_build_config_have_socklen_t
632 ldns_build_config_have_inttypes_h
638 ldns_build_config_use_dane
643 UNINSTALL_P5_DNS_LDNS
666 UNINSTALL_CONFIG_MANPAGE
668 INSTALL_CONFIG_MANPAGE
754 program_transform_name
767 enable_option_checking
797 ac_precious_vars='build_alias
809 # Initialize some variables set by options.
811 ac_init_version=false
812 ac_unrecognized_opts=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name=s,x,x,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=no ;;
1175 # Obsolete; use --with-x.
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1243 # Be sure to have absolute directory names.
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used" >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272 test "$silent" = yes && exec 6>/dev/null
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error $? "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error $? "pwd does not report name of working directory"
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1349 \`configure' configures ldns 1.6.17 to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking ...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of ldns 1.6.17:";;
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-shared[=PKGS] build shared libraries [default=yes]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --disable-ldns-config disable installation of ldns-config
1429 --enable-stderr-msgs Enable printing to stderr (default=disabled)
1430 --disable-sha2 Disable SHA256 and SHA512 RRSIG support
1431 --disable-gost Disable GOST support
1432 --disable-ecdsa Disable ECDSA support
1433 --disable-dane Disable DANE support
1434 --enable-rrtype-ninfo Enable draft RR type ninfo.
1435 --enable-rrtype-rkey Enable draft RR type rkey.
1436 --enable-rrtype-cds Enable draft RR type cds.
1437 --enable-rrtype-uri Enable draft RR type uri.
1438 --enable-rrtype-ta Enable draft RR type ta.
1439 --disable-rpath disable hardcoded rpath (default=enabled)
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot=DIR Search for dependent libraries within DIR
1448 (or the compiler's sysroot if not specified).
1449 --with-drill Also build drill.
1450 --with-examples Also build examples.
1451 --with-pyldns generate python library, or --without-pyldns to
1452 disable Python support.
1453 --without-pyldnsx Do not install the ldnsx python module, or
1454 --with-pyldnsx to install it.
1455 --with-p5-dns-ldns generate DNS::LDNS perl bindings
1456 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1457 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1459 --with-trust-anchor=KEYFILE
1460 Default location of the trust anchor file for drill
1461 and ldns-dane. [default=SYSCONFDIR/unbound/root.key]
1462 --with-ca-file=CAFILE File containing CA certificates for ldns-dane
1463 --with-ca-path=CAPATH Directory containing CA certificate files for
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1476 The installed Python version to use, for example '2.3'. This
1477 string will be appended to the Python interpreter canonical
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <libdns@nlnetlabs.nl>.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1546 ldns configure 1.6.17
1547 generated by GNU Autoconf 2.68
1549 Copyright (C) 2010 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i && {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1635 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1638 # the include files in INCLUDES and setting the cache variable VAR
1640 ac_fn_c_check_header_mongrel ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if eval \${$3+:} false; then :
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 # Is the header compilable?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1655 $as_echo_n "checking $2 usability... " >&6; }
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1661 if ac_fn_c_try_compile "$LINENO"; then :
1662 ac_header_compiler=yes
1664 ac_header_compiler=no
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1668 $as_echo "$ac_header_compiler" >&6; }
1670 # Is the header present?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1672 $as_echo_n "checking $2 presence... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1677 if ac_fn_c_try_cpp "$LINENO"; then :
1678 ac_header_preproc=yes
1680 ac_header_preproc=no
1682 rm -f conftest.err conftest.i conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1684 $as_echo "$ac_header_preproc" >&6; }
1686 # So? What about this header?
1687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1690 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1696 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1698 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1700 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1702 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ( $as_echo "## ---------------------------------- ##
1706 ## Report this to libdns@nlnetlabs.nl ##
1707 ## ---------------------------------- ##"
1708 ) | sed "s/^/$as_me: WARNING: /" >&2
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1716 eval "$3=\$ac_header_compiler"
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_mongrel
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1785 if ac_fn_c_try_compile "$LINENO"; then :
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 $as_test_x conftest$ac_exeext
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1868 # include <limits.h>
1870 # include <assert.h>
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1897 if ac_fn_c_try_link "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_func
1912 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913 # -------------------------------------------
1914 # Tests whether TYPE exists after having included INCLUDES, setting cache
1915 # variable VAR accordingly.
1916 ac_fn_c_check_type ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1950 if ac_fn_c_try_compile "$LINENO"; then :
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 } # ac_fn_c_check_type
1966 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1967 # ---------------------------------------------
1968 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1970 ac_fn_c_check_decl ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 as_decl_name=`echo $2|sed 's/ *(.*//'`
1974 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1976 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 #ifndef $as_decl_name
1988 (void) $as_decl_use;
1990 (void) $as_decl_name;
1998 if ac_fn_c_try_compile "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_decl
2012 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2013 # --------------------------------------------
2014 # Tries to find the compile-time value of EXPR in a program that includes
2015 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 ac_fn_c_compute_int ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if test "$cross_compiling" = yes; then
2021 # Depending upon the size, compute the lo and hi bounds.
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2028 static int test_array [1 - 2 * !(($2) >= 0)];
2035 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2044 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=$ac_mid; break
2054 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055 if test $ac_lo -le $ac_mid; then
2059 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2070 static int test_array [1 - 2 * !(($2) < 0)];
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_lo=$ac_mid; break
2096 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2097 if test $ac_mid -le $ac_hi; then
2101 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 # Binary search between lo and hi bounds.
2112 while test "x$ac_lo" != "x$ac_hi"; do
2113 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 if ac_fn_c_try_compile "$LINENO"; then :
2130 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2142 static long int longval () { return $2; }
2143 static unsigned long int ulongval () { return $2; }
2150 FILE *f = fopen ("conftest.val", "w");
2155 long int i = longval ();
2158 fprintf (f, "%ld", i);
2162 unsigned long int i = ulongval ();
2165 fprintf (f, "%lu", i);
2167 /* Do not output a trailing newline, as this causes \r\n confusion
2168 on some platforms. */
2169 return ferror (f) || fclose (f) != 0;
2175 if ac_fn_c_try_run "$LINENO"; then :
2176 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2181 conftest.$ac_objext conftest.beam conftest.$ac_ext
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 as_fn_set_status $ac_retval
2188 } # ac_fn_c_compute_int
2190 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2191 # ----------------------------------------------------
2192 # Tries to find if the field MEMBER exists in type AGGR, after including
2193 # INCLUDES, setting cache variable VAR accordingly.
2194 ac_fn_c_check_member ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2198 $as_echo_n "checking for $2.$3... " >&6; }
2199 if eval \${$4+:} false; then :
2200 $as_echo_n "(cached) " >&6
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2215 if ac_fn_c_try_compile "$LINENO"; then :
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2225 if (sizeof ac_aggr.$3)
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_member
2246 cat >config.log <<_ACEOF
2247 This file contains any messages produced by compilers while
2248 running configure, to aid debugging if configure makes a mistake.
2250 It was created by ldns $as_me 1.6.17, which was
2251 generated by GNU Autoconf 2.68. Invocation command line was
2263 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2264 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2265 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2266 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2267 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2269 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2270 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2272 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2273 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2274 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2275 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2276 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2277 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2278 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 $as_echo "PATH: $as_dir"
2303 # Keep a trace of the command line.
2304 # Strip out --no-create and --no-recursion so they do not pile up.
2305 # Strip out --silent because we don't want to record it for future runs.
2306 # Also quote any args containing shell meta-characters.
2307 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_must_keep_next=false
2317 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2319 | -silent | --silent | --silen | --sile | --sil)
2322 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327 as_fn_append ac_configure_args1 " '$ac_arg'"
2328 if test $ac_must_keep_next = true; then
2329 ac_must_keep_next=false # Got value, back to normal.
2332 *=* | --config-cache | -C | -disable-* | --disable-* \
2333 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2334 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2335 | -with-* | --with-* | -without-* | --without-* | --x)
2336 case "$ac_configure_args0 " in
2337 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 -* ) ac_must_keep_next=true ;;
2343 as_fn_append ac_configure_args " '$ac_arg'"
2348 { ac_configure_args0=; unset ac_configure_args0;}
2349 { ac_configure_args1=; unset ac_configure_args1;}
2351 # When interrupted or exit'd, cleanup temporary files, and complete
2352 # config.log. We remove comments because anyway the quotes in there
2353 # would cause problems or look ugly.
2354 # WARNING: Use '\'' to represent an apostrophe within the trap.
2355 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2356 trap 'exit_status=$?
2357 # Save into config.log some information that might help in debugging.
2361 $as_echo "## ---------------- ##
2362 ## Cache variables. ##
2363 ## ---------------- ##"
2365 # The following way of writing the cache mishandles newlines in values,
2367 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368 eval ac_val=\$$ac_var
2372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376 _ | IFS | as_nl) ;; #(
2377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378 *) { eval $ac_var=; unset $ac_var;} ;;
2383 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384 *${as_nl}ac_space=\ *)
2386 "s/'\''/'\''\\\\'\'''\''/g;
2387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 $as_echo "## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##"
2401 for ac_var in $ac_subst_vars
2403 eval ac_val=\$$ac_var
2405 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 $as_echo "$ac_var='\''$ac_val'\''"
2411 if test -n "$ac_subst_files"; then
2412 $as_echo "## ------------------- ##
2413 ## File substitutions. ##
2414 ## ------------------- ##"
2416 for ac_var in $ac_subst_files
2418 eval ac_val=\$$ac_var
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 $as_echo "$ac_var='\''$ac_val'\''"
2427 if test -s confdefs.h; then
2428 $as_echo "## ----------- ##
2435 test "$ac_signal" != 0 &&
2436 $as_echo "$as_me: caught signal $ac_signal"
2437 $as_echo "$as_me: exit $exit_status"
2439 rm -f core *.core core.conftest.* &&
2440 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443 for ac_signal in 1 2 13 15; do
2444 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2449 rm -f -r conftest* confdefs.h
2451 $as_echo "/* confdefs.h */" > confdefs.h
2453 # Predefined preprocessor variables.
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_NAME "$PACKAGE_NAME"
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_STRING "$PACKAGE_STRING"
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_URL "$PACKAGE_URL"
2480 # Let the site file select an alternate cache file if it wants to.
2481 # Prefer an explicitly selected file to automatically selected ones.
2484 if test -n "$CONFIG_SITE"; then
2485 # We do not want a PATH search for config.site.
2486 case $CONFIG_SITE in #((
2487 -*) ac_site_file1=./$CONFIG_SITE;;
2488 */*) ac_site_file1=$CONFIG_SITE;;
2489 *) ac_site_file1=./$CONFIG_SITE;;
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 test "x$ac_site_file" = xNONE && continue
2501 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2506 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 as_fn_error $? "failed to load site script $ac_site_file
2509 See \`config.log' for more details" "$LINENO" 5; }
2513 if test -r "$cache_file"; then
2514 # Some versions of bash will fail to source /dev/null (special files
2515 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2516 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2518 $as_echo "$as_me: loading cache $cache_file" >&6;}
2520 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2521 *) . "./$cache_file";;
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2526 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530 # Check that the precious variables saved in the cache have kept the same
2532 ac_cache_corrupted=false
2533 for ac_var in $ac_precious_vars; do
2534 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2535 eval ac_new_set=\$ac_env_${ac_var}_set
2536 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2537 eval ac_new_val=\$ac_env_${ac_var}_value
2538 case $ac_old_set,$ac_new_set in
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2549 if test "x$ac_old_val" != "x$ac_new_val"; then
2550 # differences in whitespace do not lead to failure.
2551 ac_old_val_w=`echo x $ac_old_val`
2552 ac_new_val_w=`echo x $ac_new_val`
2553 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2555 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2556 ac_cache_corrupted=:
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2559 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2560 eval $ac_var=\$ac_old_val
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2563 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2565 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2568 # Pass precious variables to config.status.
2569 if test "$ac_new_set" = set; then
2571 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2572 *) ac_arg=$ac_var=$ac_new_val ;;
2574 case " $ac_configure_args " in
2575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2576 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 if $ac_cache_corrupted; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2584 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2585 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2587 ## -------------------- ##
2588 ## Main body of script. ##
2589 ## -------------------- ##
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 # needed to build correct soname
2600 LDNS_VERSION_MAJOR=1
2602 LDNS_VERSION_MINOR=6
2604 LDNS_VERSION_MICRO=17
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2653 if test -z "$ac_cv_prog_CC"; then
2655 # Extract the first word of "gcc", so it can be a program name with args.
2656 set dummy gcc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$ac_ct_CC"; then
2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_ac_ct_CC="gcc"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683 if test -n "$ac_ct_CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2685 $as_echo "$ac_ct_CC" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2691 if test "x$ac_ct_CC" = x; then
2694 case $cross_compiling:$ac_tool_warned in
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2709 set dummy ${ac_tool_prefix}cc; ac_word=$2
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2711 $as_echo_n "checking for $ac_word... " >&6; }
2712 if ${ac_cv_prog_CC+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_CC="${ac_tool_prefix}cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2741 $as_echo "no" >&6; }
2747 if test -z "$CC"; then
2748 # Extract the first word of "cc", so it can be a program name with args.
2749 set dummy cc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2767 ac_prog_rejected=yes
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test $ac_prog_rejected = yes; then
2779 # We found a bogon in the path, so make sure we never use it.
2780 set dummy $ac_cv_prog_CC
2782 if test $# != 0; then
2783 # We chose a different compiler from the bogus one.
2784 # However, it has the same basename, so the bogon will be chosen
2785 # first if we set CC to just the basename; use the full file name.
2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2803 if test -z "$CC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in cl.exe
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_CC+:} false; then :
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CC"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2837 $as_echo "$CC" >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$CC" && break
2847 if test -z "$CC"; then
2849 for ac_prog in cl.exe
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CC="$ac_prog"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879 if test -n "$ac_ct_CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2881 $as_echo "$ac_ct_CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2888 test -n "$ac_ct_CC" && break
2891 if test "x$ac_ct_CC" = x; then
2894 case $cross_compiling:$ac_tool_warned in
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2898 ac_tool_warned=yes ;;
2907 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details" "$LINENO" 5; }
2912 # Provide some information about the compiler.
2913 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2916 for ac_option in --version -v -V -qversion; do
2917 { { ac_try="$ac_compiler $ac_option >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923 $as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2926 if test -s conftest.err; then
2928 ... rest of stderr output deleted ...
2929 10q' conftest.err >conftest.er1
2930 cat conftest.er1 >&5
2932 rm -f conftest.er1 conftest.err
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2948 ac_clean_files_save=$ac_clean_files
2949 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2950 # Try to create an executable without -o first, disregard a.out.
2951 # It will help us diagnose broken compilers, and finding out an intuition
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2954 $as_echo_n "checking whether the C compiler works... " >&6; }
2955 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2957 # The possible output files:
2958 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2961 for ac_file in $ac_files
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2965 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970 if { { ac_try="$ac_link_default"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link_default") 2>&5
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2986 for ac_file in $ac_files ''
2988 test -f "$ac_file" || continue
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2993 # We found the default executable, but exeext='' is most
2997 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 # We set ac_cv_exeext here because the later test for it is not
3002 # safe: cross compilers may not add the suffix if given an `-o'
3003 # argument, so we may need to know it at that point already.
3004 # Even if this section looks crufty: it has the advantage of
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3016 if test -z "$ac_file"; then :
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error 77 "C compiler cannot create executables
3025 See \`config.log' for more details" "$LINENO" 5; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028 $as_echo "yes" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033 $as_echo "$ac_file" >&6; }
3034 ac_exeext=$ac_cv_exeext
3036 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3037 ac_clean_files=$ac_clean_files_save
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3039 $as_echo_n "checking for suffix of executables... " >&6; }
3040 if { { ac_try="$ac_link"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }; then :
3051 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3052 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3053 # work properly (i.e., refer to `conftest.exe'), while it won't with
3055 for ac_file in conftest.exe conftest conftest.*; do
3056 test -f "$ac_file" || continue
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3059 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3068 See \`config.log' for more details" "$LINENO" 5; }
3070 rm -f conftest conftest$ac_cv_exeext
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3072 $as_echo "$ac_cv_exeext" >&6; }
3074 rm -f conftest.$ac_ext
3075 EXEEXT=$ac_cv_exeext
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3083 FILE *f = fopen ("conftest.out", "w");
3084 return ferror (f) || fclose (f) != 0;
3090 ac_clean_files="$ac_clean_files conftest.out"
3091 # Check that the compiler produces executables we can run. If not, either
3092 # the compiler is broken, or we cross compile.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3094 $as_echo_n "checking whether we are cross compiling... " >&6; }
3095 if test "$cross_compiling" != yes; then
3096 { { ac_try="$ac_link"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link") 2>&5
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }
3107 if { ac_try='./conftest$ac_cv_exeext'
3108 { { case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_try") 2>&5
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; }; then
3120 if test "$cross_compiling" = maybe; then
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details" "$LINENO" 5; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3132 $as_echo "$cross_compiling" >&6; }
3134 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3135 ac_clean_files=$ac_clean_files_save
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3137 $as_echo_n "checking for suffix of object files... " >&6; }
3138 if ${ac_cv_objext+:} false; then :
3139 $as_echo_n "(cached) " >&6
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3152 rm -f conftest.o conftest.obj
3153 if { { ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compile") 2>&5
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }; then :
3164 for ac_file in conftest.o conftest.obj conftest.*; do
3165 test -f "$ac_file" || continue;
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3168 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 $as_echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of object files: cannot compile
3179 See \`config.log' for more details" "$LINENO" 5; }
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3184 $as_echo "$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3189 if ${ac_cv_c_compiler_gnu+:} false; then :
3190 $as_echo_n "(cached) " >&6
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3206 if ac_fn_c_try_compile "$LINENO"; then :
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3217 if test $ac_compiler_gnu = yes; then
3222 ac_test_CFLAGS=${CFLAGS+set}
3223 ac_save_CFLAGS=$CFLAGS
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3226 if ${ac_cv_prog_cc_g+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 ac_save_c_werror_flag=$ac_c_werror_flag
3230 ac_c_werror_flag=yes
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 if ac_fn_c_try_compile "$LINENO"; then :
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3259 if ac_fn_c_try_compile "$LINENO"; then :
3262 ac_c_werror_flag=$ac_save_c_werror_flag
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3275 if ac_fn_c_try_compile "$LINENO"; then :
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3286 $as_echo "$ac_cv_prog_cc_g" >&6; }
3287 if test "$ac_test_CFLAGS" = set; then
3288 CFLAGS=$ac_save_CFLAGS
3289 elif test $ac_cv_prog_cc_g = yes; then
3290 if test "$GCC" = yes; then
3296 if test "$GCC" = yes; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3304 if ${ac_cv_prog_cc_c89+:} false; then :
3305 $as_echo_n "(cached) " >&6
3307 ac_cv_prog_cc_c89=no
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3329 s = g (p, va_arg (v,int));
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_c89=$ac_arg
3369 rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
3372 rm -f conftest.$ac_ext
3377 case "x$ac_cv_prog_cc_c89" in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3380 $as_echo "none needed" >&6; } ;;
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 $as_echo "unsupported" >&6; } ;;
3385 CC="$CC $ac_cv_prog_cc_c89"
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3387 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3389 if test "x$ac_cv_prog_cc_c89" != xno; then :
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3407 # On Suns, sometimes $CPP names a directory.
3408 if test -n "$CPP" && test -d "$CPP"; then
3411 if test -z "$CPP"; then
3412 if ${ac_cv_prog_CPP+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 # Double quotes because CPP needs to be expanded
3416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3419 for ac_c_preproc_warn_flag in '' yes
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3430 # include <limits.h>
3432 # include <assert.h>
3436 if ac_fn_c_try_cpp "$LINENO"; then :
3439 # Broken: fails on valid input.
3442 rm -f conftest.err conftest.i conftest.$ac_ext
3444 # OK, works on sane cases. Now check whether nonexistent headers
3445 # can be detected and how.
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448 #include <ac_nonexistent.h>
3450 if ac_fn_c_try_cpp "$LINENO"; then :
3451 # Broken: success on invalid input.
3454 # Passes both tests.
3458 rm -f conftest.err conftest.i conftest.$ac_ext
3461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3462 rm -f conftest.i conftest.err conftest.$ac_ext
3463 if $ac_preproc_ok; then :
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3476 $as_echo "$CPP" >&6; }
3478 for ac_c_preproc_warn_flag in '' yes
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error" is here to catch this case.
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3489 # include <limits.h>
3491 # include <assert.h>
3495 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: fails on valid input.
3501 rm -f conftest.err conftest.i conftest.$ac_ext
3503 # OK, works on sane cases. Now check whether nonexistent headers
3504 # can be detected and how.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <ac_nonexistent.h>
3509 if ac_fn_c_try_cpp "$LINENO"; then :
3510 # Broken: success on invalid input.
3513 # Passes both tests.
3517 rm -f conftest.err conftest.i conftest.$ac_ext
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.i conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then :
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details" "$LINENO" 5; }
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3539 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3540 if ${ac_cv_path_GREP+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -z "$GREP"; then
3544 ac_path_GREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in grep ggrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3554 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3555 # Check for GNU ac_path_GREP and select it if it is found.
3556 # Check for GNU $ac_path_GREP
3557 case `"$ac_path_GREP" --version 2>&1` in
3559 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3562 $as_echo_n 0123456789 >"conftest.in"
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'GREP' >> "conftest.nl"
3569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 as_fn_arith $ac_count + 1 && ac_count=$as_val
3572 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_GREP="$ac_path_GREP"
3575 ac_path_GREP_max=$ac_count
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3583 $ac_path_GREP_found && break 3
3588 if test -z "$ac_cv_path_GREP"; then
3589 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3592 ac_cv_path_GREP=$GREP
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3597 $as_echo "$ac_cv_path_GREP" >&6; }
3598 GREP="$ac_cv_path_GREP"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3602 $as_echo_n "checking for egrep... " >&6; }
3603 if ${ac_cv_path_EGREP+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3607 then ac_cv_path_EGREP="$GREP -E"
3609 if test -z "$EGREP"; then
3610 ac_path_EGREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in egrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621 # Check for GNU ac_path_EGREP and select it if it is found.
3622 # Check for GNU $ac_path_EGREP
3623 case `"$ac_path_EGREP" --version 2>&1` in
3625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3628 $as_echo_n 0123456789 >"conftest.in"
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 $as_echo 'EGREP' >> "conftest.nl"
3635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 as_fn_arith $ac_count + 1 && ac_count=$as_val
3638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_EGREP="$ac_path_EGREP"
3641 ac_path_EGREP_max=$ac_count
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 $ac_path_EGREP_found && break 3
3654 if test -z "$ac_cv_path_EGREP"; then
3655 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3658 ac_cv_path_EGREP=$EGREP
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3664 $as_echo "$ac_cv_path_EGREP" >&6; }
3665 EGREP="$ac_cv_path_EGREP"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3669 $as_echo_n "checking for ANSI C header files... " >&6; }
3670 if ${ac_cv_header_stdc+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_header_stdc=yes
3691 ac_cv_header_stdc=no
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 if test $ac_cv_header_stdc = yes; then
3696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3703 $EGREP "memchr" >/dev/null 2>&1; then :
3706 ac_cv_header_stdc=no
3712 if test $ac_cv_header_stdc = yes; then
3713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3720 $EGREP "free" >/dev/null 2>&1; then :
3723 ac_cv_header_stdc=no
3729 if test $ac_cv_header_stdc = yes; then
3730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3731 if test "$cross_compiling" = yes; then :
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 #if ((' ' & 0x0FF) == 0x020)
3739 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3740 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3742 # define ISLOWER(c) \
3743 (('a' <= (c) && (c) <= 'i') \
3744 || ('j' <= (c) && (c) <= 'r') \
3745 || ('s' <= (c) && (c) <= 'z'))
3746 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3754 for (i = 0; i < 256; i++)
3755 if (XOR (islower (i), ISLOWER (i))
3756 || toupper (i) != TOUPPER (i))
3761 if ac_fn_c_try_run "$LINENO"; then :
3764 ac_cv_header_stdc=no
3766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3767 conftest.$ac_objext conftest.beam conftest.$ac_ext
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3773 $as_echo "$ac_cv_header_stdc" >&6; }
3774 if test $ac_cv_header_stdc = yes; then
3776 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3782 inttypes.h stdint.h unistd.h
3784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3788 cat >>confdefs.h <<_ACEOF
3789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3798 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3799 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3806 if test "$MINIX" = yes; then
3808 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3811 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3814 $as_echo "#define _MINIX 1" >>confdefs.h
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3820 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3821 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3827 # define __EXTENSIONS__ 1
3828 $ac_includes_default
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_safe_to_define___extensions__=yes
3840 ac_cv_safe_to_define___extensions__=no
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3845 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3846 test $ac_cv_safe_to_define___extensions__ = yes &&
3847 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3849 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3851 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3853 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3855 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3860 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3861 if test -f "$ac_dir/install-sh"; then
3863 ac_install_sh="$ac_aux_dir/install-sh -c"
3865 elif test -f "$ac_dir/install.sh"; then
3867 ac_install_sh="$ac_aux_dir/install.sh -c"
3869 elif test -f "$ac_dir/shtool"; then
3871 ac_install_sh="$ac_aux_dir/shtool install -c"
3875 if test -z "$ac_aux_dir"; then
3876 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3879 # These three variables are undocumented and unsupported,
3880 # and are intended to be withdrawn in a future Autoconf release.
3881 # They can cause serious problems if a builder's source tree is in a directory
3882 # whose full name contains unusual characters.
3883 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3884 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3885 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3891 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3896 macro_version='2.4.2'
3897 macro_revision='1.3337'
3911 ltmain="$ac_aux_dir/ltmain.sh"
3913 # Make sure we can run config.sub.
3914 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3915 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3918 $as_echo_n "checking build system type... " >&6; }
3919 if ${ac_cv_build+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 ac_build_alias=$build_alias
3923 test "x$ac_build_alias" = x &&
3924 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3925 test "x$ac_build_alias" = x &&
3926 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3928 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3932 $as_echo "$ac_cv_build" >&6; }
3933 case $ac_cv_build in
3935 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3938 ac_save_IFS=$IFS; IFS='-'
3944 # Remember, the first character of IFS is used to create $*,
3945 # except with old shells:
3948 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3952 $as_echo_n "checking host system type... " >&6; }
3953 if ${ac_cv_host+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 if test "x$host_alias" = x; then
3957 ac_cv_host=$ac_cv_build
3959 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3960 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3965 $as_echo "$ac_cv_host" >&6; }
3968 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3971 ac_save_IFS=$IFS; IFS='-'
3977 # Remember, the first character of IFS is used to create $*,
3978 # except with old shells:
3981 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3984 # Backslashify metacharacters that are still active within
3985 # double-quoted strings.
3986 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3988 # Same as above, but do not quote variable references.
3989 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3991 # Sed substitution to delay expansion of an escaped shell variable in a
3992 # double_quote_subst'ed string.
3993 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3995 # Sed substitution to delay expansion of an escaped single quote.
3996 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3998 # Sed substitution to avoid accidental globbing in evaled expressions
3999 no_glob_subst='s/\*/\\\*/g'
4001 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4003 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4006 $as_echo_n "checking how to print strings... " >&6; }
4007 # Test print first, because it will be a builtin if present.
4008 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4011 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4014 # Use this function as a fallback that always works.
4015 func_fallback_echo ()
4017 eval 'cat <<_LTECHO_EOF
4021 ECHO='func_fallback_echo'
4024 # func_echo_all arg...
4025 # Invoke $ECHO with all args, space-separated.
4032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4033 $as_echo "printf" >&6; } ;;
4034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4035 $as_echo "print -r" >&6; } ;;
4036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4037 $as_echo "cat" >&6; } ;;
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4055 if ${ac_cv_path_SED+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4059 for ac_i in 1 2 3 4 5 6 7; do
4060 ac_script="$ac_script$as_nl$ac_script"
4062 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4063 { ac_script=; unset ac_script;}
4064 if test -z "$SED"; then
4065 ac_path_SED_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in sed gsed; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4076 # Check for GNU ac_path_SED and select it if it is found.
4077 # Check for GNU $ac_path_SED
4078 case `"$ac_path_SED" --version 2>&1` in
4080 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4083 $as_echo_n 0123456789 >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 $as_echo '' >> "conftest.nl"
4090 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 as_fn_arith $ac_count + 1 && ac_count=$as_val
4093 if test $ac_count -gt ${ac_path_SED_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_SED="$ac_path_SED"
4096 ac_path_SED_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 $ac_path_SED_found && break 3
4109 if test -z "$ac_cv_path_SED"; then
4110 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4118 $as_echo "$ac_cv_path_SED" >&6; }
4119 SED="$ac_cv_path_SED"
4122 test -z "$SED" && SED=sed
4123 Xsed="$SED -e 1s/^X//"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4136 $as_echo_n "checking for fgrep... " >&6; }
4137 if ${ac_cv_path_FGREP+:} false; then :
4138 $as_echo_n "(cached) " >&6
4140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4141 then ac_cv_path_FGREP="$GREP -F"
4143 if test -z "$FGREP"; then
4144 ac_path_FGREP_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in fgrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4154 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4155 # Check for GNU ac_path_FGREP and select it if it is found.
4156 # Check for GNU $ac_path_FGREP
4157 case `"$ac_path_FGREP" --version 2>&1` in
4159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4162 $as_echo_n 0123456789 >"conftest.in"
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'FGREP' >> "conftest.nl"
4169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_FGREP="$ac_path_FGREP"
4175 ac_path_FGREP_max=$ac_count
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 $ac_path_FGREP_found && break 3
4188 if test -z "$ac_cv_path_FGREP"; then
4189 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 ac_cv_path_FGREP=$FGREP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4198 $as_echo "$ac_cv_path_FGREP" >&6; }
4199 FGREP="$ac_cv_path_FGREP"
4202 test -z "$GREP" && GREP=grep
4222 # Check whether --with-gnu-ld was given.
4223 if test "${with_gnu_ld+set}" = set; then :
4224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4230 if test "$GCC" = yes; then
4231 # Check if gcc -print-prog-name=ld gives a path.
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4233 $as_echo_n "checking for ld used by $CC... " >&6; }
4236 # gcc leaves a trailing carriage return which upsets mingw
4237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4242 # Accept absolute paths.
4244 re_direlt='/[^/][^/]*/\.\./'
4245 # Canonicalize the pathname of ld
4246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4250 test -z "$LD" && LD="$ac_prog"
4253 # If it fails, then pretend we aren't using GCC.
4257 # If it is relative, then search for the first ld in PATH.
4261 elif test "$with_gnu_ld" = yes; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4263 $as_echo_n "checking for GNU ld... " >&6; }
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4266 $as_echo_n "checking for non-GNU ld... " >&6; }
4268 if ${lt_cv_path_LD+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -z "$LD"; then
4272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4273 for ac_dir in $PATH; do
4275 test -z "$ac_dir" && ac_dir=.
4276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4277 lt_cv_path_LD="$ac_dir/$ac_prog"
4278 # Check to see if the program is GNU ld. I'd rather use --version,
4279 # but apparently some variants of GNU ld only accept -v.
4280 # Break only if it was the GNU/non-GNU ld that we prefer.
4281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4282 *GNU* | *'with BFD'*)
4283 test "$with_gnu_ld" != no && break
4286 test "$with_gnu_ld" != yes && break
4293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4298 if test -n "$LD"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4300 $as_echo "$LD" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4305 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4308 if ${lt_cv_prog_gnu_ld+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4312 case `$LD -v 2>&1 </dev/null` in
4313 *GNU* | *'with BFD'*)
4314 lt_cv_prog_gnu_ld=yes
4317 lt_cv_prog_gnu_ld=no
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4323 with_gnu_ld=$lt_cv_prog_gnu_ld
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4335 if ${lt_cv_path_NM+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -n "$NM"; then
4339 # Let the user override the test.
4342 lt_nm_to_check="${ac_tool_prefix}nm"
4343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4344 lt_nm_to_check="$lt_nm_to_check nm"
4346 for lt_tmp_nm in $lt_nm_to_check; do
4347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4350 test -z "$ac_dir" && ac_dir=.
4351 tmp_nm="$ac_dir/$lt_tmp_nm"
4352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4353 # Check to see if the nm accepts a BSD-compat flag.
4354 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4355 # nm: unknown option "B" ignored
4356 # Tru64's nm complains that /dev/null is an invalid object file
4357 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4358 */dev/null* | *'Invalid file or object type'*)
4359 lt_cv_path_NM="$tmp_nm -B"
4363 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4365 lt_cv_path_NM="$tmp_nm -p"
4369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4370 continue # so that we can try to find one that supports BSD flags
4379 : ${lt_cv_path_NM=no}
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4383 $as_echo "$lt_cv_path_NM" >&6; }
4384 if test "$lt_cv_path_NM" != "no"; then
4387 # Didn't find any BSD compatible name lister, look for dumpbin.
4388 if test -n "$DUMPBIN"; then :
4389 # Let the user override the test.
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in dumpbin "link -dump"
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_DUMPBIN+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$DUMPBIN"; then
4402 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 DUMPBIN=$ac_cv_prog_DUMPBIN
4422 if test -n "$DUMPBIN"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4424 $as_echo "$DUMPBIN" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$DUMPBIN" && break
4434 if test -z "$DUMPBIN"; then
4435 ac_ct_DUMPBIN=$DUMPBIN
4436 for ac_prog in dumpbin "link -dump"
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_DUMPBIN"; then
4446 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4466 if test -n "$ac_ct_DUMPBIN"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4468 $as_echo "$ac_ct_DUMPBIN" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_DUMPBIN" && break
4478 if test "x$ac_ct_DUMPBIN" = x; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4487 DUMPBIN=$ac_ct_DUMPBIN
4491 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4493 DUMPBIN="$DUMPBIN -symbols"
4501 if test "$DUMPBIN" != ":"; then
4505 test -z "$NM" && NM=nm
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4514 if ${lt_cv_nm_interface+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 lt_cv_nm_interface="BSD nm"
4518 echo "int some_variable = 0;" > conftest.$ac_ext
4519 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4520 (eval "$ac_compile" 2>conftest.err)
4521 cat conftest.err >&5
4522 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4523 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4524 cat conftest.err >&5
4525 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4526 cat conftest.out >&5
4527 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4528 lt_cv_nm_interface="MS dumpbin"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4533 $as_echo "$lt_cv_nm_interface" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4536 $as_echo_n "checking whether ln -s works... " >&6; }
4538 if test "$LN_S" = "ln -s"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4543 $as_echo "no, using $LN_S" >&6; }
4546 # find the maximum length of command line arguments
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4548 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4549 if ${lt_cv_sys_max_cmd_len+:} false; then :
4550 $as_echo_n "(cached) " >&6
4557 # On DJGPP, this test can blow up pretty badly due to problems in libc
4558 # (any single argument exceeding 2000 bytes causes a buffer overrun
4559 # during glob expansion). Even if it were fixed, the result of this
4560 # check would be larger than it should be.
4561 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4565 # Under GNU Hurd, this test is not required because there is
4566 # no limit to the length of command line arguments.
4567 # Libtool will interpret -1 as no limit whatsoever
4568 lt_cv_sys_max_cmd_len=-1;
4571 cygwin* | mingw* | cegcc*)
4572 # On Win9x/ME, this test blows up -- it succeeds, but takes
4573 # about 5 minutes as the teststring grows exponentially.
4574 # Worse, since 9x/ME are not pre-emptively multitasking,
4575 # you end up with a "frozen" computer, even though with patience
4576 # the test eventually succeeds (with a max line length of 256k).
4577 # Instead, let's just punt: use the minimum linelength reported by
4578 # all of the supported platforms: 8192 (on NT/2K/XP).
4579 lt_cv_sys_max_cmd_len=8192;
4583 # On MiNT this can take a long time and run out of memory.
4584 lt_cv_sys_max_cmd_len=8192;
4588 # On AmigaOS with pdksh, this test takes hours, literally.
4589 # So we just punt and use a minimum line length of 8192.
4590 lt_cv_sys_max_cmd_len=8192;
4593 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4594 # This has been around since 386BSD, at least. Likely further.
4595 if test -x /sbin/sysctl; then
4596 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4597 elif test -x /usr/sbin/sysctl; then
4598 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4600 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4602 # And add a safety zone
4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4608 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4609 lt_cv_sys_max_cmd_len=196608
4613 # The test takes a long time on OS/2.
4614 lt_cv_sys_max_cmd_len=8192
4618 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4619 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4620 # nice to cause kernel panics so lets avoid the loop below.
4621 # First set a reasonable default.
4622 lt_cv_sys_max_cmd_len=16384
4624 if test -x /sbin/sysconfig; then
4625 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4626 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4631 lt_cv_sys_max_cmd_len=102400
4633 sysv5* | sco5v6* | sysv4.2uw2*)
4634 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4635 if test -n "$kargmax"; then
4636 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4638 lt_cv_sys_max_cmd_len=32768
4642 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4643 if test -n "$lt_cv_sys_max_cmd_len"; then
4644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4647 # Make teststring a little bigger before we do anything with it.
4648 # a 1K string should be a reasonable start.
4649 for i in 1 2 3 4 5 6 7 8 ; do
4650 teststring=$teststring$teststring
4652 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4653 # If test is not a shell built-in, we'll probably end up computing a
4654 # maximum length that is only half of the actual maximum length, but
4656 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4657 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4658 test $i != 17 # 1/2 MB should be enough
4661 teststring=$teststring$teststring
4663 # Only check the string length outside the loop.
4664 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4666 # Add a significant safety factor because C++ compilers can tack on
4667 # massive amounts of additional arguments before passing them to the
4668 # linker. It appears as though 1/2 is a usable value.
4669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4676 if test -n $lt_cv_sys_max_cmd_len ; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4681 $as_echo "none" >&6; }
4683 max_cmd_len=$lt_cv_sys_max_cmd_len
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4696 # Try some XSI features
4699 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4701 && eval 'test $(( 1 + 1 )) -eq 2 \
4702 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4705 $as_echo "$xsi_shell" >&6; }
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4713 && lt_shell_append=yes
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4715 $as_echo "$lt_shell_append" >&6; }
4718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4728 # test EBCDIC or ASCII
4729 case `echo X|tr X '\101'` in
4730 A) # ASCII based system
4731 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4732 lt_SP2NL='tr \040 \012'
4733 lt_NL2SP='tr \015\012 \040\040'
4735 *) # EBCDIC based system
4736 lt_SP2NL='tr \100 \n'
4737 lt_NL2SP='tr \r\n \100\100'
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4750 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4751 if ${lt_cv_to_host_file_cmd+:} false; then :
4752 $as_echo_n "(cached) " >&6
4757 *-*-mingw* ) # actually msys
4758 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4761 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4763 * ) # otherwise, assume *nix
4764 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4770 *-*-mingw* ) # actually msys
4771 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4774 lt_cv_to_host_file_cmd=func_convert_file_noop
4776 * ) # otherwise, assume *nix
4777 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4781 * ) # unhandled hosts (and "normal" native builds)
4782 lt_cv_to_host_file_cmd=func_convert_file_noop
4788 to_host_file_cmd=$lt_cv_to_host_file_cmd
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4790 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4797 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4798 if ${lt_cv_to_tool_file_cmd+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 #assume ordinary cross tools, or native build.
4802 lt_cv_to_tool_file_cmd=func_convert_file_noop
4806 *-*-mingw* ) # actually msys
4807 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4815 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4817 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4824 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4825 if ${lt_cv_ld_reload_flag+:} false; then :
4826 $as_echo_n "(cached) " >&6
4828 lt_cv_ld_reload_flag='-r'
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4831 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4832 reload_flag=$lt_cv_ld_reload_flag
4833 case $reload_flag in
4835 *) reload_flag=" $reload_flag" ;;
4837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839 cygwin* | mingw* | pw32* | cegcc*)
4840 if test "$GCC" != yes; then
4845 if test "$GCC" = yes; then
4846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4861 if test -n "$ac_tool_prefix"; then
4862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_OBJDUMP+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$OBJDUMP"; then
4870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 OBJDUMP=$ac_cv_prog_OBJDUMP
4890 if test -n "$OBJDUMP"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4892 $as_echo "$OBJDUMP" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4900 if test -z "$ac_cv_prog_OBJDUMP"; then
4901 ac_ct_OBJDUMP=$OBJDUMP
4902 # Extract the first word of "objdump", so it can be a program name with args.
4903 set dummy objdump; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 if test -n "$ac_ct_OBJDUMP"; then
4910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4930 if test -n "$ac_ct_OBJDUMP"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4932 $as_echo "$ac_ct_OBJDUMP" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4938 if test "x$ac_ct_OBJDUMP" = x; then
4941 case $cross_compiling:$ac_tool_warned in
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4947 OBJDUMP=$ac_ct_OBJDUMP
4950 OBJDUMP="$ac_cv_prog_OBJDUMP"
4953 test -z "$OBJDUMP" && OBJDUMP=objdump
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4964 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4965 if ${lt_cv_deplibs_check_method+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 lt_cv_file_magic_cmd='$MAGIC_CMD'
4969 lt_cv_file_magic_test_file=
4970 lt_cv_deplibs_check_method='unknown'
4971 # Need to set the preceding variable on all platforms that support
4972 # interlibrary dependencies.
4973 # 'none' -- dependencies not supported.
4974 # `unknown' -- same as none, but documents that we really don't know.
4975 # 'pass_all' -- all dependencies passed with no checks.
4976 # 'test_compile' -- check by making test program.
4977 # 'file_magic [[regex]]' -- check by looking for files in library path
4978 # which responds to the $file_magic_cmd with a given extended regex.
4979 # If you have `file' or equivalent on your system and you're not sure
4980 # whether `pass_all' will *always* work, you probably want this one.
4984 lt_cv_deplibs_check_method=pass_all
4988 lt_cv_deplibs_check_method=pass_all
4992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4993 lt_cv_file_magic_cmd='/usr/bin/file -L'
4994 lt_cv_file_magic_test_file=/shlib/libc.so
4998 # func_win32_libid is a shell function defined in ltmain.sh
4999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000 lt_cv_file_magic_cmd='func_win32_libid'
5004 # Base MSYS/MinGW do not provide the 'file' command needed by
5005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5006 # unless we find 'file', for example because we are cross-compiling.
5007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5010 lt_cv_file_magic_cmd='func_win32_libid'
5012 # Keep this pattern in sync with the one in func_win32_libid.
5013 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5014 lt_cv_file_magic_cmd='$OBJDUMP -f'
5019 # use the weaker test based on 'objdump'. See mingw*.
5020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5021 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 darwin* | rhapsody*)
5025 lt_cv_deplibs_check_method=pass_all
5028 freebsd* | dragonfly*)
5029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5032 # Not sure whether the presence of OpenBSD here was a mistake.
5033 # Let's accept both of them until this is cleared up.
5034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5040 lt_cv_deplibs_check_method=pass_all
5045 lt_cv_deplibs_check_method=pass_all
5049 lt_cv_deplibs_check_method=pass_all
5052 hpux10.20* | hpux11*)
5053 lt_cv_file_magic_cmd=/usr/bin/file
5056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5060 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]'
5061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5075 irix5* | irix6* | nonstopux*)
5077 *-32|*"-32 ") libmagic=32-bit;;
5078 *-n32|*"-n32 ") libmagic=N32;;
5079 *-64|*"-64 ") libmagic=64-bit;;
5080 *) libmagic=never-match;;
5082 lt_cv_deplibs_check_method=pass_all
5085 # This must be glibc/ELF.
5086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5087 lt_cv_deplibs_check_method=pass_all
5090 netbsd* | netbsdelf*-gnu)
5091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5100 lt_cv_file_magic_cmd=/usr/bin/file
5101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5105 lt_cv_deplibs_check_method=pass_all
5109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 osf3* | osf4* | osf5*)
5117 lt_cv_deplibs_check_method=pass_all
5121 lt_cv_deplibs_check_method=pass_all
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5129 lt_cv_deplibs_check_method=pass_all
5133 case $host_vendor in
5135 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]'
5136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5139 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5146 lt_cv_file_magic_cmd='/bin/file'
5147 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5148 lt_cv_file_magic_test_file=/lib/libc.so
5151 lt_cv_deplibs_check_method=pass_all
5154 lt_cv_deplibs_check_method=pass_all
5160 lt_cv_deplibs_check_method=pass_all
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5170 if test "$build" = "$host"; then
5173 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5176 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5182 file_magic_cmd=$lt_cv_file_magic_cmd
5183 deplibs_check_method=$lt_cv_deplibs_check_method
5184 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_DLLTOOL+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$DLLTOOL"; then
5216 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 DLLTOOL=$ac_cv_prog_DLLTOOL
5236 if test -n "$DLLTOOL"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5238 $as_echo "$DLLTOOL" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5246 if test -z "$ac_cv_prog_DLLTOOL"; then
5247 ac_ct_DLLTOOL=$DLLTOOL
5248 # Extract the first word of "dlltool", so it can be a program name with args.
5249 set dummy dlltool; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -n "$ac_ct_DLLTOOL"; then
5256 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5276 if test -n "$ac_ct_DLLTOOL"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5278 $as_echo "$ac_ct_DLLTOOL" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5284 if test "x$ac_ct_DLLTOOL" = x; then
5287 case $cross_compiling:$ac_tool_warned in
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5293 DLLTOOL=$ac_ct_DLLTOOL
5296 DLLTOOL="$ac_cv_prog_DLLTOOL"
5299 test -z "$DLLTOOL" && DLLTOOL=dlltool
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5311 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5312 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 lt_cv_sharedlib_from_linklib_cmd='unknown'
5318 cygwin* | mingw* | pw32* | cegcc*)
5319 # two different shell functions defined in ltmain.sh
5320 # decide which to use based on capabilities of $DLLTOOL
5321 case `$DLLTOOL --help 2>&1` in
5322 *--identify-strict*)
5323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5326 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5331 # fallback: assume linklib IS sharedlib
5332 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5338 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5339 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5340 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5348 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_prog_AR+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -n "$AR"; then
5359 ac_cv_prog_AR="$AR" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 if test -n "$AR"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5381 $as_echo "$AR" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 test -n "$AR" && break
5391 if test -z "$AR"; then
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396 set dummy $ac_prog; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_AR"; then
5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AR="$ac_prog"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423 if test -n "$ac_ct_AR"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5425 $as_echo "$ac_ct_AR" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5432 test -n "$ac_ct_AR" && break
5435 if test "x$ac_ct_AR" = x; then
5438 case $cross_compiling:$ac_tool_warned in
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442 ac_tool_warned=yes ;;
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5462 $as_echo_n "checking for archiver @FILE support... " >&6; }
5463 if ${lt_cv_ar_at_file+:} false; then :
5464 $as_echo_n "(cached) " >&6
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 echo conftest.$ac_objext > conftest.lst
5480 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5482 (eval $lt_ar_try) 2>&5
5484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485 test $ac_status = 0; }
5486 if test "$ac_status" -eq 0; then
5487 # Ensure the archiver fails upon bogus file names.
5488 rm -f conftest.$ac_objext libconftest.a
5489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5490 (eval $lt_ar_try) 2>&5
5492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5493 test $ac_status = 0; }
5494 if test "$ac_status" -ne 0; then
5498 rm -f conftest.* libconftest.a
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5505 $as_echo "$lt_cv_ar_at_file" >&6; }
5507 if test "x$lt_cv_ar_at_file" = xno; then
5510 archiver_list_spec=$lt_cv_ar_at_file
5519 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}strip; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_prog_STRIP+:} false; then :
5525 $as_echo_n "(cached) " >&6
5527 if test -n "$STRIP"; then
5528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 STRIP=$ac_cv_prog_STRIP
5548 if test -n "$STRIP"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5550 $as_echo "$STRIP" >&6; }
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5558 if test -z "$ac_cv_prog_STRIP"; then
5560 # Extract the first word of "strip", so it can be a program name with args.
5561 set dummy strip; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5565 $as_echo_n "(cached) " >&6
5567 if test -n "$ac_ct_STRIP"; then
5568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_ac_ct_STRIP="strip"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5588 if test -n "$ac_ct_STRIP"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5590 $as_echo "$ac_ct_STRIP" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5596 if test "x$ac_ct_STRIP" = x; then
5599 case $cross_compiling:$ac_tool_warned in
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5608 STRIP="$ac_cv_prog_STRIP"
5611 test -z "$STRIP" && STRIP=:
5618 if test -n "$ac_tool_prefix"; then
5619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5620 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_RANLIB+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$RANLIB"; then
5627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 RANLIB=$ac_cv_prog_RANLIB
5647 if test -n "$RANLIB"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5649 $as_echo "$RANLIB" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5657 if test -z "$ac_cv_prog_RANLIB"; then
5658 ac_ct_RANLIB=$RANLIB
5659 # Extract the first word of "ranlib", so it can be a program name with args.
5660 set dummy ranlib; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 if test -n "$ac_ct_RANLIB"; then
5667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_ac_ct_RANLIB="ranlib"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5687 if test -n "$ac_ct_RANLIB"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5689 $as_echo "$ac_ct_RANLIB" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5695 if test "x$ac_ct_RANLIB" = x; then
5698 case $cross_compiling:$ac_tool_warned in
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5702 ac_tool_warned=yes ;;
5704 RANLIB=$ac_ct_RANLIB
5707 RANLIB="$ac_cv_prog_RANLIB"
5710 test -z "$RANLIB" && RANLIB=:
5717 # Determine commands to create old-style static archives.
5718 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5719 old_postinstall_cmds='chmod 644 $oldlib'
5720 old_postuninstall_cmds=
5722 if test -n "$RANLIB"; then
5725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5728 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5731 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5736 lock_old_archive_extraction=yes ;;
5738 lock_old_archive_extraction=no ;;
5761 for ac_prog in gawk mawk nawk awk
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764 set dummy $ac_prog; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_AWK+:} false; then :
5768 $as_echo_n "(cached) " >&6
5770 if test -n "$AWK"; then
5771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_prog_AWK="$ac_prog"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 if test -n "$AWK"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5793 $as_echo "$AWK" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5800 test -n "$AWK" && break
5821 # If no C compiler was specified, use CC.
5824 # If no C compiler flags were specified, use CFLAGS.
5825 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5827 # Allow CC to be a program name with arguments.
5831 # Check for command to grab the raw symbol name followed by C symbol from nm.
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5833 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5835 $as_echo_n "(cached) " >&6
5838 # These are sane defaults that work on at least a few old systems.
5839 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5841 # Character class describing NM global symbol codes.
5842 symcode='[BCDEGRST]'
5844 # Regexp to match symbols that can be accessed directly from C.
5845 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5847 # Define system-specific variables.
5852 cygwin* | mingw* | pw32* | cegcc*)
5853 symcode='[ABCDGISTW]'
5856 if test "$host_cpu" = ia64; then
5857 symcode='[ABCDEGRST]'
5861 symcode='[BCDEGRST]'
5864 symcode='[BCDEGQRST]'
5875 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5883 # If we're using GNU nm, then use its standard symbol codes.
5884 case `$NM -V 2>&1` in
5885 *GNU* | *'with BFD'*)
5886 symcode='[ABCDGIRSTW]' ;;
5889 # Transform an extracted symbol line into a proper C declaration.
5890 # Some systems (esp. on ia64) link data and code symbols differently,
5891 # so use this general approach.
5892 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5894 # Transform an extracted symbol line into symbol name and symbol address
5895 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5896 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'"
5898 # Handle CRLF in mingw tool chain
5902 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5906 # Try without a prefix underscore, then with it.
5907 for ac_symprfx in "" "_"; do
5909 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5910 symxfrm="\\1 $ac_symprfx\\2 \\2"
5912 # Write the raw and C identifiers.
5913 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5914 # Fake it for dumpbin and say T for any non-static function
5915 # and D for any global variable.
5916 # Also find C++ and __fastcall symbols from MSVC++,
5917 # which start with @ or ?.
5918 lt_cv_sys_global_symbol_pipe="$AWK '"\
5919 " {last_section=section; section=\$ 3};"\
5920 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5921 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5922 " \$ 0!~/External *\|/{next};"\
5923 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5924 " {if(hide[section]) next};"\
5925 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5926 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5927 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5928 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5929 " ' prfx=^$ac_symprfx"
5931 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5933 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5935 # Check to see that the pipe works correctly.
5939 cat > conftest.$ac_ext <<_LT_EOF
5944 void nm_test_func(void);
5945 void nm_test_func(void){}
5949 int main(){nm_test_var='a';nm_test_func();return(0);}
5952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5953 (eval $ac_compile) 2>&5
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956 test $ac_status = 0; }; then
5957 # Now try to grab the symbols.
5959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5960 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963 test $ac_status = 0; } && test -s "$nlist"; then
5964 # Try sorting and uniquifying the output.
5965 if sort "$nlist" | uniq > "$nlist"T; then
5966 mv -f "$nlist"T "$nlist"
5971 # Make sure that we snagged all the symbols we need.
5972 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5973 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5974 cat <<_LT_EOF > conftest.$ac_ext
5975 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5976 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5977 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5978 relocations are performed -- see ld's documentation on pseudo-relocs. */
5979 # define LT_DLSYM_CONST
5980 #elif defined(__osf__)
5981 /* This system does not cope well with relocations in const data. */
5982 # define LT_DLSYM_CONST
5984 # define LT_DLSYM_CONST const
5992 # Now generate the symbol file.
5993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5995 cat <<_LT_EOF >> conftest.$ac_ext
5997 /* The mapping between symbol names and symbols. */
5998 LT_DLSYM_CONST struct {
6002 lt__PROGRAM__LTX_preloaded_symbols[] =
6004 { "@PROGRAM@", (void *) 0 },
6006 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6007 cat <<\_LT_EOF >> conftest.$ac_ext
6011 /* This works around a problem in FreeBSD linker */
6012 #ifdef FREEBSD_WORKAROUND
6013 static const void *lt_preloaded_setup() {
6014 return lt__PROGRAM__LTX_preloaded_symbols;
6022 # Now try linking the two files.
6023 mv conftest.$ac_objext conftstm.$ac_objext
6024 lt_globsym_save_LIBS=$LIBS
6025 lt_globsym_save_CFLAGS=$CFLAGS
6026 LIBS="conftstm.$ac_objext"
6027 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6029 (eval $ac_link) 2>&5
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6035 LIBS=$lt_globsym_save_LIBS
6036 CFLAGS=$lt_globsym_save_CFLAGS
6038 echo "cannot find nm_test_func in $nlist" >&5
6041 echo "cannot find nm_test_var in $nlist" >&5
6044 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6047 echo "$progname: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6050 rm -rf conftest* conftst*
6052 # Do not use the global_symbol_pipe unless it works.
6053 if test "$pipe_works" = yes; then
6056 lt_cv_sys_global_symbol_pipe=
6062 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6063 lt_cv_sys_global_symbol_to_cdecl=
6065 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6067 $as_echo "failed" >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6070 $as_echo "ok" >&6; }
6073 # Response file support.
6074 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075 nm_file_list_spec='@'
6076 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6077 nm_file_list_spec='@'
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6107 $as_echo_n "checking for sysroot... " >&6; }
6109 # Check whether --with-sysroot was given.
6110 if test "${with_sysroot+set}" = set; then :
6111 withval=$with_sysroot;
6118 case ${with_sysroot} in #(
6120 if test "$GCC" = yes; then
6121 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6125 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6131 $as_echo "${with_sysroot}" >&6; }
6132 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6137 $as_echo "${lt_sysroot:-no}" >&6; }
6143 # Check whether --enable-libtool-lock was given.
6144 if test "${enable_libtool_lock+set}" = set; then :
6145 enableval=$enable_libtool_lock;
6148 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6150 # Some flags need to be propagated to the compiler or linker for good
6154 # Find out which ABI we are using.
6155 echo 'int i;' > conftest.$ac_ext
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157 (eval $ac_compile) 2>&5
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
6161 case `/usr/bin/file conftest.$ac_objext` in
6173 # Find out which ABI we are using.
6174 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 if test "$lt_cv_prog_gnu_ld" = yes; then
6181 case `/usr/bin/file conftest.$ac_objext` in
6183 LD="${LD-ld} -melf32bsmip"
6186 LD="${LD-ld} -melf32bmipn32"
6189 LD="${LD-ld} -melf64bmip"
6193 case `/usr/bin/file conftest.$ac_objext` in
6209 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6210 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6211 # Find out which ABI we are using.
6212 echo 'int i;' > conftest.$ac_ext
6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214 (eval $ac_compile) 2>&5
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; }; then
6218 case `/usr/bin/file conftest.o` in
6221 x86_64-*kfreebsd*-gnu)
6222 LD="${LD-ld} -m elf_i386_fbsd"
6225 LD="${LD-ld} -m elf_i386"
6227 ppc64-*linux*|powerpc64-*linux*)
6228 LD="${LD-ld} -m elf32ppclinux"
6231 LD="${LD-ld} -m elf_s390"
6234 LD="${LD-ld} -m elf32_sparc"
6240 x86_64-*kfreebsd*-gnu)
6241 LD="${LD-ld} -m elf_x86_64_fbsd"
6244 LD="${LD-ld} -m elf_x86_64"
6246 ppc*-*linux*|powerpc*-*linux*)
6247 LD="${LD-ld} -m elf64ppc"
6249 s390*-*linux*|s390*-*tpf*)
6250 LD="${LD-ld} -m elf64_s390"
6253 LD="${LD-ld} -m elf64_sparc"
6263 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6264 SAVE_CFLAGS="$CFLAGS"
6265 CFLAGS="$CFLAGS -belf"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6267 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6268 if ${lt_cv_cc_needs_belf+:} false; then :
6269 $as_echo_n "(cached) " >&6
6272 ac_cpp='$CPP $CPPFLAGS'
6273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6288 if ac_fn_c_try_link "$LINENO"; then :
6289 lt_cv_cc_needs_belf=yes
6291 lt_cv_cc_needs_belf=no
6293 rm -f core conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6303 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6304 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6305 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6306 CFLAGS="$SAVE_CFLAGS"
6310 # Find out which ABI we are using.
6311 echo 'int i;' > conftest.$ac_ext
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 case `/usr/bin/file conftest.o` in
6319 case $lt_cv_prog_gnu_ld in
6323 LD="${LD-ld} -m elf_x86_64"
6326 LD="${LD-ld} -m elf64_sparc"
6329 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6330 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6335 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6347 need_locks="$enable_libtool_lock"
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}mt; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$MANIFEST_TOOL"; then
6358 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6378 if test -n "$MANIFEST_TOOL"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6380 $as_echo "$MANIFEST_TOOL" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6389 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6390 # Extract the first word of "mt", so it can be a program name with args.
6391 set dummy mt; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$ac_ct_MANIFEST_TOOL"; then
6398 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6418 if test -n "$ac_ct_MANIFEST_TOOL"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6420 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6429 case $cross_compiling:$ac_tool_warned in
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6435 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6438 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6441 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6443 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6444 if ${lt_cv_path_mainfest_tool+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 lt_cv_path_mainfest_tool=no
6448 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6449 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6450 cat conftest.err >&5
6451 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6452 lt_cv_path_mainfest_tool=yes
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6457 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6458 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6468 rhapsody* | darwin*)
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 if test -n "$DSYMUTIL"; then
6478 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6498 if test -n "$DSYMUTIL"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6500 $as_echo "$DSYMUTIL" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6508 if test -z "$ac_cv_prog_DSYMUTIL"; then
6509 ac_ct_DSYMUTIL=$DSYMUTIL
6510 # Extract the first word of "dsymutil", so it can be a program name with args.
6511 set dummy dsymutil; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6515 $as_echo_n "(cached) " >&6
6517 if test -n "$ac_ct_DSYMUTIL"; then
6518 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6538 if test -n "$ac_ct_DSYMUTIL"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6540 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$ac_ct_DSYMUTIL" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6555 DSYMUTIL=$ac_ct_DSYMUTIL
6558 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_NMEDIT+:} false; then :
6567 $as_echo_n "(cached) " >&6
6569 if test -n "$NMEDIT"; then
6570 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 NMEDIT=$ac_cv_prog_NMEDIT
6590 if test -n "$NMEDIT"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6592 $as_echo "$NMEDIT" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6600 if test -z "$ac_cv_prog_NMEDIT"; then
6601 ac_ct_NMEDIT=$NMEDIT
6602 # Extract the first word of "nmedit", so it can be a program name with args.
6603 set dummy nmedit; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 if test -n "$ac_ct_NMEDIT"; then
6610 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6630 if test -n "$ac_ct_NMEDIT"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6632 $as_echo "$ac_ct_NMEDIT" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6638 if test "x$ac_ct_NMEDIT" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6647 NMEDIT=$ac_ct_NMEDIT
6650 NMEDIT="$ac_cv_prog_NMEDIT"
6653 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_LIPO+:} false; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$LIPO"; then
6662 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 LIPO=$ac_cv_prog_LIPO
6682 if test -n "$LIPO"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6684 $as_echo "$LIPO" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6692 if test -z "$ac_cv_prog_LIPO"; then
6694 # Extract the first word of "lipo", so it can be a program name with args.
6695 set dummy lipo; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$ac_ct_LIPO"; then
6702 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_prog_ac_ct_LIPO="lipo"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6722 if test -n "$ac_ct_LIPO"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6724 $as_echo "$ac_ct_LIPO" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6730 if test "x$ac_ct_LIPO" = x; then
6733 case $cross_compiling:$ac_tool_warned in
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6742 LIPO="$ac_cv_prog_LIPO"
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}otool; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_OTOOL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$OTOOL"; then
6754 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 OTOOL=$ac_cv_prog_OTOOL
6774 if test -n "$OTOOL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6776 $as_echo "$OTOOL" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6784 if test -z "$ac_cv_prog_OTOOL"; then
6786 # Extract the first word of "otool", so it can be a program name with args.
6787 set dummy otool; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$ac_ct_OTOOL"; then
6794 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_ac_ct_OTOOL="otool"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6814 if test -n "$ac_ct_OTOOL"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6816 $as_echo "$ac_ct_OTOOL" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6822 if test "x$ac_ct_OTOOL" = x; then
6825 case $cross_compiling:$ac_tool_warned in
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6834 OTOOL="$ac_cv_prog_OTOOL"
6837 if test -n "$ac_tool_prefix"; then
6838 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6839 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_OTOOL64+:} false; then :
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$OTOOL64"; then
6846 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 OTOOL64=$ac_cv_prog_OTOOL64
6866 if test -n "$OTOOL64"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6868 $as_echo "$OTOOL64" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6876 if test -z "$ac_cv_prog_OTOOL64"; then
6877 ac_ct_OTOOL64=$OTOOL64
6878 # Extract the first word of "otool64", so it can be a program name with args.
6879 set dummy otool64; ac_word=$2
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6883 $as_echo_n "(cached) " >&6
6885 if test -n "$ac_ct_OTOOL64"; then
6886 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_prog_ac_ct_OTOOL64="otool64"
6896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6906 if test -n "$ac_ct_OTOOL64"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6908 $as_echo "$ac_ct_OTOOL64" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6914 if test "x$ac_ct_OTOOL64" = x; then
6917 case $cross_compiling:$ac_tool_warned in
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6923 OTOOL64=$ac_ct_OTOOL64
6926 OTOOL64="$ac_cv_prog_OTOOL64"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6956 $as_echo_n "checking for -single_module linker flag... " >&6; }
6957 if ${lt_cv_apple_cc_single_mod+:} false; then :
6958 $as_echo_n "(cached) " >&6
6960 lt_cv_apple_cc_single_mod=no
6961 if test -z "${LT_MULTI_MODULE}"; then
6962 # By default we will add the -single_module flag. You can override
6963 # by either setting the environment variable LT_MULTI_MODULE
6964 # non-empty at configure time, or by adding -multi_module to the
6966 rm -rf libconftest.dylib*
6967 echo "int foo(void){return 1;}" > conftest.c
6968 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6969 -dynamiclib -Wl,-single_module conftest.c" >&5
6970 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6971 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6973 # If there is a non-empty error log, and "single_module"
6974 # appears in it, assume the flag caused a linker warning
6975 if test -s conftest.err && $GREP single_module conftest.err; then
6976 cat conftest.err >&5
6977 # Otherwise, if the output was created with a 0 exit code from
6978 # the compiler, it worked.
6979 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6980 lt_cv_apple_cc_single_mod=yes
6982 cat conftest.err >&5
6984 rm -rf libconftest.dylib*
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6989 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6992 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6993 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6994 $as_echo_n "(cached) " >&6
6996 lt_cv_ld_exported_symbols_list=no
6997 save_LDFLAGS=$LDFLAGS
6998 echo "_main" > conftest.sym
6999 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7011 if ac_fn_c_try_link "$LINENO"; then :
7012 lt_cv_ld_exported_symbols_list=yes
7014 lt_cv_ld_exported_symbols_list=no
7016 rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 LDFLAGS="$save_LDFLAGS"
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7022 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7025 $as_echo_n "checking for -force_load linker flag... " >&6; }
7026 if ${lt_cv_ld_force_load+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 lt_cv_ld_force_load=no
7030 cat > conftest.c << _LT_EOF
7031 int forced_loaded() { return 2;}
7033 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7034 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7035 echo "$AR cru libconftest.a conftest.o" >&5
7036 $AR cru libconftest.a conftest.o 2>&5
7037 echo "$RANLIB libconftest.a" >&5
7038 $RANLIB libconftest.a 2>&5
7039 cat > conftest.c << _LT_EOF
7040 int main() { return 0;}
7042 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7043 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7045 if test -s conftest.err && $GREP force_load conftest.err; then
7046 cat conftest.err >&5
7047 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7048 lt_cv_ld_force_load=yes
7050 cat conftest.err >&5
7052 rm -f conftest.err libconftest.a conftest conftest.c
7053 rm -rf conftest.dSYM
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7057 $as_echo "$lt_cv_ld_force_load" >&6; }
7059 rhapsody* | darwin1.[012])
7060 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063 darwin*) # darwin 5.x on
7064 # if running on 10.5 or later, the deployment target defaults
7065 # to the OS version, if on x86, and 10.4, the deployment
7066 # target defaults to 10.4. Don't you love it?
7067 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7071 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7073 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7077 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078 _lt_dar_single_mod='$single_module'
7080 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7083 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7085 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7086 _lt_dsymutil='~$DSYMUTIL $lib || :'
7093 for ac_header in dlfcn.h
7095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7097 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7098 cat >>confdefs.h <<_ACEOF
7099 #define HAVE_DLFCN_H 1
7120 # Check whether --enable-shared was given.
7121 if test "${enable_shared+set}" = set; then :
7122 enableval=$enable_shared; p=${PACKAGE-default}
7124 yes) enable_shared=yes ;;
7125 no) enable_shared=no ;;
7128 # Look at the argument we got. We use all the common list separators.
7129 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7130 for pkg in $enableval; do
7132 if test "X$pkg" = "X$p"; then
7151 # Check whether --enable-static was given.
7152 if test "${enable_static+set}" = set; then :
7153 enableval=$enable_static; p=${PACKAGE-default}
7155 yes) enable_static=yes ;;
7156 no) enable_static=no ;;
7159 # Look at the argument we got. We use all the common list separators.
7160 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7161 for pkg in $enableval; do
7163 if test "X$pkg" = "X$p"; then
7183 # Check whether --with-pic was given.
7184 if test "${with_pic+set}" = set; then :
7185 withval=$with_pic; lt_p=${PACKAGE-default}
7187 yes|no) pic_mode=$withval ;;
7190 # Look at the argument we got. We use all the common list separators.
7191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7192 for lt_pkg in $withval; do
7194 if test "X$lt_pkg" = "X$lt_p"; then
7206 test -z "$pic_mode" && pic_mode=default
7214 # Check whether --enable-fast-install was given.
7215 if test "${enable_fast_install+set}" = set; then :
7216 enableval=$enable_fast_install; p=${PACKAGE-default}
7218 yes) enable_fast_install=yes ;;
7219 no) enable_fast_install=no ;;
7221 enable_fast_install=no
7222 # Look at the argument we got. We use all the common list separators.
7223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7224 for pkg in $enableval; do
7226 if test "X$pkg" = "X$p"; then
7227 enable_fast_install=yes
7234 enable_fast_install=yes
7247 # This can be used to rebuild libtool when needed
7248 LIBTOOL_DEPS="$ltmain"
7250 # Always use our own libtool.
7251 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7282 test -z "$LN_S" && LN_S="ln -s"
7297 if test -n "${ZSH_VERSION+set}" ; then
7298 setopt NO_GLOB_SUBST
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7302 $as_echo_n "checking for objdir... " >&6; }
7303 if ${lt_cv_objdir+:} false; then :
7304 $as_echo_n "(cached) " >&6
7306 rm -f .libs 2>/dev/null
7307 mkdir .libs 2>/dev/null
7308 if test -d .libs; then
7311 # MS-DOS does not allow filenames that begin with a dot.
7314 rmdir .libs 2>/dev/null
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7317 $as_echo "$lt_cv_objdir" >&6; }
7318 objdir=$lt_cv_objdir
7324 cat >>confdefs.h <<_ACEOF
7325 #define LT_OBJDIR "$lt_cv_objdir/"
7333 # AIX sometimes has problems with the GCC collect2 program. For some
7334 # reason, if we set the COLLECT_NAMES environment variable, the problems
7335 # vanish in a puff of smoke.
7336 if test "X${COLLECT_NAMES+set}" != Xset; then
7338 export COLLECT_NAMES
7345 can_build_shared=yes
7347 # All known linkers require a `.a' archive for static linking (except MSVC,
7348 # which needs '.lib').
7351 with_gnu_ld="$lt_cv_prog_gnu_ld"
7354 old_CFLAGS="$CFLAGS"
7356 # Set sane defaults for various variables
7357 test -z "$CC" && CC=cc
7358 test -z "$LTCC" && LTCC=$CC
7359 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7360 test -z "$LD" && LD=ld
7361 test -z "$ac_objext" && ac_objext=o
7363 for cc_temp in $compiler""; do
7365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7371 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7374 # Only perform the check for file, if the check method requires it
7375 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7376 case $deplibs_check_method in
7378 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7380 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7381 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7382 $as_echo_n "(cached) " >&6
7386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7389 lt_save_MAGIC_CMD="$MAGIC_CMD"
7390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7391 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7392 for ac_dir in $ac_dummy; do
7394 test -z "$ac_dir" && ac_dir=.
7395 if test -f $ac_dir/${ac_tool_prefix}file; then
7396 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7397 if test -n "$file_magic_test_file"; then
7398 case $deplibs_check_method in
7400 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7403 $EGREP "$file_magic_regex" > /dev/null; then
7408 *** Warning: the command libtool uses to detect shared libraries,
7409 *** $file_magic_cmd, produces output that libtool cannot recognize.
7410 *** The result is that libtool may fail to recognize shared libraries
7411 *** as such. This will affect the creation of libtool libraries that
7412 *** depend on shared libraries, but programs linked with such libtool
7413 *** libraries will work regardless of this problem. Nevertheless, you
7414 *** may want to report the problem to your system manager and/or to
7415 *** bug-libtool@gnu.org
7425 MAGIC_CMD="$lt_save_MAGIC_CMD"
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if test -n "$MAGIC_CMD"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7433 $as_echo "$MAGIC_CMD" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444 if test -n "$ac_tool_prefix"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7446 $as_echo_n "checking for file... " >&6; }
7447 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7448 $as_echo_n "(cached) " >&6
7452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7455 lt_save_MAGIC_CMD="$MAGIC_CMD"
7456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458 for ac_dir in $ac_dummy; do
7460 test -z "$ac_dir" && ac_dir=.
7461 if test -f $ac_dir/file; then
7462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463 if test -n "$file_magic_test_file"; then
7464 case $deplibs_check_method in
7466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469 $EGREP "$file_magic_regex" > /dev/null; then
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such. This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem. Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7491 MAGIC_CMD="$lt_save_MAGIC_CMD"
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7499 $as_echo "$MAGIC_CMD" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7515 # Use C for the default configuration in the libtool script
7519 ac_cpp='$CPP $CPPFLAGS'
7520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525 # Source file extension for C test sources.
7528 # Object file extension for compiled C test sources.
7532 # Code to be used in simple compile tests
7533 lt_simple_compile_test_code="int some_variable = 0;"
7535 # Code to be used in simple link tests
7536 lt_simple_link_test_code='int main(){return(0);}'
7544 # If no C compiler was specified, use CC.
7547 # If no C compiler flags were specified, use CFLAGS.
7548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7550 # Allow CC to be a program name with arguments.
7553 # Save the default compiler, since it gets overwritten when the other
7554 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7555 compiler_DEFAULT=$CC
7557 # save warnings/boilerplate of simple test code
7558 ac_outfile=conftest.$ac_objext
7559 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7560 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7561 _lt_compiler_boilerplate=`cat conftest.err`
7564 ac_outfile=conftest.$ac_objext
7565 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7566 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7567 _lt_linker_boilerplate=`cat conftest.err`
7571 if test -n "$compiler"; then
7573 lt_prog_compiler_no_builtin_flag=
7575 if test "$GCC" = yes; then
7576 case $cc_basename in
7578 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7580 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7584 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7585 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7586 $as_echo_n "(cached) " >&6
7588 lt_cv_prog_compiler_rtti_exceptions=no
7589 ac_outfile=conftest.$ac_objext
7590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7591 lt_compiler_flag="-fno-rtti -fno-exceptions"
7592 # Insert the option either (1) after the last *FLAGS variable, or
7593 # (2) before a word containing "conftest.", or (3) at the end.
7594 # Note that $ac_compile itself does not contain backslashes and begins
7595 # with a dollar sign (not a hyphen), so the echo should work correctly.
7596 # The option is referenced via a variable to avoid confusing sed.
7597 lt_compile=`echo "$ac_compile" | $SED \
7598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7600 -e 's:$: $lt_compiler_flag:'`
7601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7602 (eval "$lt_compile" 2>conftest.err)
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 if (exit $ac_status) && test -s "$ac_outfile"; then
7607 # The compiler can only warn and ignore the option if not recognized
7608 # So say no if there are warnings other than the usual output.
7609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7612 lt_cv_prog_compiler_rtti_exceptions=yes
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7619 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7621 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7622 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7634 lt_prog_compiler_wl=
7635 lt_prog_compiler_pic=
7636 lt_prog_compiler_static=
7639 if test "$GCC" = yes; then
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_static='-static'
7645 # All AIX code is PIC.
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7655 # see comment about AmigaOS4 .so support
7656 lt_prog_compiler_pic='-fPIC'
7659 # FIXME: we need at least 68020 code to build shared libraries, but
7660 # adding the `-m68020' flag to GCC prevents building anything better,
7662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7668 # PIC is the default for these OSes.
7671 mingw* | cygwin* | pw32* | os2* | cegcc*)
7672 # This hack is so that the source file can tell whether it is being
7673 # built for inclusion in a dll (and should export symbols for example).
7674 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7675 # (--disable-auto-import) libraries
7676 lt_prog_compiler_pic='-DDLL_EXPORT'
7679 darwin* | rhapsody*)
7680 # PIC is the default on this platform
7681 # Common symbols not allowed in MH_DYLIB files
7682 lt_prog_compiler_pic='-fno-common'
7686 # PIC is the default for Haiku.
7687 # The "-static" flag exists, but is broken.
7688 lt_prog_compiler_static=
7692 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7693 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7694 # sets the default TLS model and affects inlining.
7700 lt_prog_compiler_pic='-fPIC'
7706 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7707 # Instead, we relocate shared libraries at runtime.
7711 # Just because we use GCC doesn't mean we suddenly get shared libraries
7712 # on systems that don't support them.
7713 lt_prog_compiler_can_build_shared=no
7718 # QNX uses GNU C++, but need to define -shared option too, otherwise
7720 lt_prog_compiler_pic='-fPIC -shared'
7724 if test -d /usr/nec; then
7725 lt_prog_compiler_pic=-Kconform_pic
7730 lt_prog_compiler_pic='-fPIC'
7734 case $cc_basename in
7735 nvcc*) # Cuda Compiler Driver 2.2
7736 lt_prog_compiler_wl='-Xlinker '
7737 if test -n "$lt_prog_compiler_pic"; then
7738 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7743 # PORTME Check for flag to pass linker flags through the system compiler.
7746 lt_prog_compiler_wl='-Wl,'
7747 if test "$host_cpu" = ia64; then
7748 # AIX 5 now supports IA64 processor
7749 lt_prog_compiler_static='-Bstatic'
7751 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7755 mingw* | cygwin* | pw32* | os2* | cegcc*)
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 lt_prog_compiler_pic='-DDLL_EXPORT'
7761 hpux9* | hpux10* | hpux11*)
7762 lt_prog_compiler_wl='-Wl,'
7763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7770 lt_prog_compiler_pic='+Z'
7773 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7774 lt_prog_compiler_static='${wl}-a ${wl}archive'
7777 irix5* | irix6* | nonstopux*)
7778 lt_prog_compiler_wl='-Wl,'
7779 # PIC (with -KPIC) is the default.
7780 lt_prog_compiler_static='-non_shared'
7783 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7784 case $cc_basename in
7785 # old Intel for x86_64 which still supported -KPIC.
7787 lt_prog_compiler_wl='-Wl,'
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-static'
7791 # icc used to be incompatible with GCC.
7792 # ICC 10 doesn't accept -KPIC any more.
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='-fPIC'
7796 lt_prog_compiler_static='-static'
7798 # Lahey Fortran 8.1.
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_pic='--shared'
7802 lt_prog_compiler_static='--static'
7805 # NAG Fortran compiler
7806 lt_prog_compiler_wl='-Wl,-Wl,,'
7807 lt_prog_compiler_pic='-PIC'
7808 lt_prog_compiler_static='-Bstatic'
7810 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7811 # Portland Group compilers (*not* the Pentium gcc compiler,
7812 # which looks to be a dead project)
7813 lt_prog_compiler_wl='-Wl,'
7814 lt_prog_compiler_pic='-fpic'
7815 lt_prog_compiler_static='-Bstatic'
7818 lt_prog_compiler_wl='-Wl,'
7819 # All Alpha code is PIC.
7820 lt_prog_compiler_static='-non_shared'
7822 xl* | bgxl* | bgf* | mpixl*)
7823 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7824 lt_prog_compiler_wl='-Wl,'
7825 lt_prog_compiler_pic='-qpic'
7826 lt_prog_compiler_static='-qstaticlink'
7829 case `$CC -V 2>&1 | sed 5q` in
7830 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7831 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7832 lt_prog_compiler_pic='-KPIC'
7833 lt_prog_compiler_static='-Bstatic'
7834 lt_prog_compiler_wl=''
7836 *Sun\ F* | *Sun*Fortran*)
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7839 lt_prog_compiler_wl='-Qoption ld '
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 lt_prog_compiler_wl='-Wl,'
7847 *Intel*\ [CF]*Compiler*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-fPIC'
7850 lt_prog_compiler_static='-static'
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-fpic'
7855 lt_prog_compiler_static='-Bstatic'
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
7868 # QNX uses GNU C++, but need to define -shared option too, otherwise
7870 lt_prog_compiler_pic='-fPIC -shared'
7873 osf3* | osf4* | osf5*)
7874 lt_prog_compiler_wl='-Wl,'
7875 # All OSF/1 code is PIC.
7876 lt_prog_compiler_static='-non_shared'
7880 lt_prog_compiler_static='-non_shared'
7884 lt_prog_compiler_pic='-KPIC'
7885 lt_prog_compiler_static='-Bstatic'
7886 case $cc_basename in
7887 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7888 lt_prog_compiler_wl='-Qoption ld ';;
7890 lt_prog_compiler_wl='-Wl,';;
7895 lt_prog_compiler_wl='-Qoption ld '
7896 lt_prog_compiler_pic='-PIC'
7897 lt_prog_compiler_static='-Bstatic'
7900 sysv4 | sysv4.2uw2* | sysv4.3*)
7901 lt_prog_compiler_wl='-Wl,'
7902 lt_prog_compiler_pic='-KPIC'
7903 lt_prog_compiler_static='-Bstatic'
7907 if test -d /usr/nec ;then
7908 lt_prog_compiler_pic='-Kconform_pic'
7909 lt_prog_compiler_static='-Bstatic'
7913 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-KPIC'
7916 lt_prog_compiler_static='-Bstatic'
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_can_build_shared=no
7925 lt_prog_compiler_pic='-pic'
7926 lt_prog_compiler_static='-Bstatic'
7930 lt_prog_compiler_can_build_shared=no
7936 # For platforms which do not support PIC, -DPIC is meaningless:
7938 lt_prog_compiler_pic=
7941 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7947 if ${lt_cv_prog_compiler_pic+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7953 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7954 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7957 # Check to make sure the PIC flag actually works.
7959 if test -n "$lt_prog_compiler_pic"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7962 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 lt_cv_prog_compiler_pic_works=no
7966 ac_outfile=conftest.$ac_objext
7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7968 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7969 # Insert the option either (1) after the last *FLAGS variable, or
7970 # (2) before a word containing "conftest.", or (3) at the end.
7971 # Note that $ac_compile itself does not contain backslashes and begins
7972 # with a dollar sign (not a hyphen), so the echo should work correctly.
7973 # The option is referenced via a variable to avoid confusing sed.
7974 lt_compile=`echo "$ac_compile" | $SED \
7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7977 -e 's:$: $lt_compiler_flag:'`
7978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7979 (eval "$lt_compile" 2>conftest.err)
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 if (exit $ac_status) && test -s "$ac_outfile"; then
7984 # The compiler can only warn and ignore the option if not recognized
7985 # So say no if there are warnings other than the usual output.
7986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7989 lt_cv_prog_compiler_pic_works=yes
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7996 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7998 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7999 case $lt_prog_compiler_pic in
8001 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8004 lt_prog_compiler_pic=
8005 lt_prog_compiler_can_build_shared=no
8021 # Check to make sure the static flag actually works.
8023 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8025 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8026 if ${lt_cv_prog_compiler_static_works+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 lt_cv_prog_compiler_static_works=no
8030 save_LDFLAGS="$LDFLAGS"
8031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8034 # The linker can only warn and ignore the option if not recognized
8035 # So say no if there are warnings
8036 if test -s conftest.err; then
8037 # Append any errors to the config.log.
8038 cat conftest.err 1>&5
8039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8041 if diff conftest.exp conftest.er2 >/dev/null; then
8042 lt_cv_prog_compiler_static_works=yes
8045 lt_cv_prog_compiler_static_works=yes
8049 LDFLAGS="$save_LDFLAGS"
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8053 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8055 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8058 lt_prog_compiler_static=
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8068 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8069 if ${lt_cv_prog_compiler_c_o+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 lt_cv_prog_compiler_c_o=no
8073 $RM -r conftest 2>/dev/null
8077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8079 lt_compiler_flag="-o out/conftest2.$ac_objext"
8080 # Insert the option either (1) after the last *FLAGS variable, or
8081 # (2) before a word containing "conftest.", or (3) at the end.
8082 # Note that $ac_compile itself does not contain backslashes and begins
8083 # with a dollar sign (not a hyphen), so the echo should work correctly.
8084 lt_compile=`echo "$ac_compile" | $SED \
8085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087 -e 's:$: $lt_compiler_flag:'`
8088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8089 (eval "$lt_compile" 2>out/conftest.err)
8091 cat out/conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8095 # The compiler can only warn and ignore the option if not recognized
8096 # So say no if there are warnings
8097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8098 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8100 lt_cv_prog_compiler_c_o=yes
8105 # SGI C++ compiler will create directory out/ii_files/ for
8106 # template instantiation
8107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8108 $RM out/* && rmdir out
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8115 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8124 if ${lt_cv_prog_compiler_c_o+:} false; then :
8125 $as_echo_n "(cached) " >&6
8127 lt_cv_prog_compiler_c_o=no
8128 $RM -r conftest 2>/dev/null
8132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8134 lt_compiler_flag="-o out/conftest2.$ac_objext"
8135 # Insert the option either (1) after the last *FLAGS variable, or
8136 # (2) before a word containing "conftest.", or (3) at the end.
8137 # Note that $ac_compile itself does not contain backslashes and begins
8138 # with a dollar sign (not a hyphen), so the echo should work correctly.
8139 lt_compile=`echo "$ac_compile" | $SED \
8140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142 -e 's:$: $lt_compiler_flag:'`
8143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8144 (eval "$lt_compile" 2>out/conftest.err)
8146 cat out/conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8150 # The compiler can only warn and ignore the option if not recognized
8151 # So say no if there are warnings
8152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8155 lt_cv_prog_compiler_c_o=yes
8160 # SGI C++ compiler will create directory out/ii_files/ for
8161 # template instantiation
8162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8163 $RM out/* && rmdir out
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8170 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8175 hard_links="nottested"
8176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8177 # do not overwrite the value of need_locks provided by the user
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8179 $as_echo_n "checking if we can lock with hard links... " >&6; }
8182 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8184 ln conftest.a conftest.b 2>&5 || hard_links=no
8185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8187 $as_echo "$hard_links" >&6; }
8188 if test "$hard_links" = no; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8190 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8206 allow_undefined_flag=
8207 always_export_symbols=no
8209 archive_expsym_cmds=
8210 compiler_needs_object=no
8211 enable_shared_with_static_runtimes=no
8212 export_dynamic_flag_spec=
8213 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8214 hardcode_automatic=no
8216 hardcode_direct_absolute=no
8217 hardcode_libdir_flag_spec=
8218 hardcode_libdir_separator=
8220 hardcode_shlibpath_var=unsupported
8222 link_all_deplibs=unknown
8225 old_archive_from_new_cmds=
8226 old_archive_from_expsyms_cmds=
8227 thread_safe_flag_spec=
8228 whole_archive_flag_spec=
8229 # include_expsyms should be a list of space-separated symbols to be *always*
8230 # included in the symbol list
8232 # exclude_expsyms can be an extended regexp of symbols to exclude
8233 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8234 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8235 # as well as any symbol that contains `d'.
8236 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8238 # platforms (ab)use it in PIC code, but their linkers get confused if
8239 # the symbol is explicitly referenced. Since portable code cannot
8240 # rely on this symbol name, it's probably fine to never include it in
8241 # preloaded symbol tables.
8242 # Exclude shared library initialization/finalization symbols.
8243 extract_expsyms_cmds=
8246 cygwin* | mingw* | pw32* | cegcc*)
8247 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8248 # When not using gcc, we currently assume that we are using
8249 # Microsoft Visual C++.
8250 if test "$GCC" != yes; then
8255 # we just hope/assume this is gcc and not c89 (= MSVC++)
8261 linux* | k*bsd*-gnu | gnu*)
8268 # On some targets, GNU ld is compatible enough with the native linker
8269 # that we're better off using the native interface for both.
8270 lt_use_gnu_ld_interface=no
8271 if test "$with_gnu_ld" = yes; then
8274 # The AIX port of GNU ld has always aspired to compatibility
8275 # with the native linker. However, as the warning in the GNU ld
8276 # block says, versions before 2.19.5* couldn't really create working
8277 # shared libraries, regardless of the interface used.
8278 case `$LD -v 2>&1` in
8279 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8280 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8281 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8283 lt_use_gnu_ld_interface=yes
8288 lt_use_gnu_ld_interface=yes
8293 if test "$lt_use_gnu_ld_interface" = yes; then
8294 # If archive_cmds runs LD, not CC, wlarc should be empty
8297 # Set some defaults for GNU ld with shared library support. These
8298 # are reset later if shared libraries are not supported. Putting them
8299 # here allows them to be overridden if necessary.
8300 runpath_var=LD_RUN_PATH
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 export_dynamic_flag_spec='${wl}--export-dynamic'
8303 # ancient GNU ld didn't support --whole-archive et. al.
8304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8307 whole_archive_flag_spec=
8309 supports_anon_versioning=no
8310 case `$LD -v 2>&1` in
8311 *GNU\ gold*) supports_anon_versioning=yes ;;
8312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8315 *\ 2.11.*) ;; # other 2.11 versions
8316 *) supports_anon_versioning=yes ;;
8319 # See if GNU ld supports shared libraries.
8322 # On AIX/PPC, the GNU linker is very broken
8323 if test "$host_cpu" != ia64; then
8327 *** Warning: the GNU linker, at least up to release 2.19, is reported
8328 *** to be unable to reliably create shared libraries on AIX.
8329 *** Therefore, libtool is disabling shared libraries support. If you
8330 *** really care for shared libraries, you may want to install binutils
8331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8332 *** You will then need to restart the configuration process.
8341 # see comment about AmigaOS4 .so support
8342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8343 archive_expsym_cmds=''
8346 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)'
8347 hardcode_libdir_flag_spec='-L$libdir'
8348 hardcode_minus_L=yes
8354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8355 allow_undefined_flag=unsupported
8356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8357 # support --undefined. This deserves some investigation. FIXME
8358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 cygwin* | mingw* | pw32* | cegcc*)
8365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8366 # as there is no search path for DLLs.
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 export_dynamic_flag_spec='${wl}--export-all-symbols'
8369 allow_undefined_flag=unsupported
8370 always_export_symbols=no
8371 enable_shared_with_static_runtimes=yes
8372 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'
8373 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8375 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377 # If the export-symbols file already is a .def file (1st line
8378 # is EXPORTS), use it as is; otherwise, prepend...
8379 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8380 cp $export_symbols $output_objdir/$soname.def;
8382 echo EXPORTS > $output_objdir/$soname.def;
8383 cat $export_symbols >> $output_objdir/$soname.def;
8385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393 link_all_deplibs=yes
8398 hardcode_shlibpath_var=no
8399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8400 export_dynamic_flag_spec='${wl}-E'
8401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8402 # Instead, shared libraries are loaded at an image base (0x10000000 by
8403 # default) and relocated if they conflict, which is a slow very memory
8404 # consuming and fragmenting process. To avoid this, we pick a random,
8405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8408 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'
8411 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8413 if test "$host_os" = linux-dietlibc; then
8414 case $cc_basename in
8415 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8418 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8419 && test "$tmp_diet" = no
8421 tmp_addflag=' $pic_flag'
8422 tmp_sharedflag='-shared'
8423 case $cc_basename,$host_cpu in
8424 pgcc*) # Portland Group C compiler
8425 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'
8426 tmp_addflag=' $pic_flag'
8428 pgf77* | pgf90* | pgf95* | pgfortran*)
8429 # Portland Group f77 and f90 compilers
8430 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'
8431 tmp_addflag=' $pic_flag -Mnomain' ;;
8432 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8433 tmp_addflag=' -i_dynamic' ;;
8434 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8435 tmp_addflag=' -i_dynamic -nofor_main' ;;
8436 ifc* | ifort*) # Intel Fortran compiler
8437 tmp_addflag=' -nofor_main' ;;
8438 lf95*) # Lahey Fortran 8.1
8439 whole_archive_flag_spec=
8440 tmp_sharedflag='--shared' ;;
8441 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8442 tmp_sharedflag='-qmkshrobj'
8444 nvcc*) # Cuda Compiler Driver 2.2
8445 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'
8446 compiler_needs_object=yes
8449 case `$CC -V 2>&1 | sed 5q` in
8450 *Sun\ C*) # Sun C 5.9
8451 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'
8452 compiler_needs_object=yes
8453 tmp_sharedflag='-G' ;;
8454 *Sun\ F*) # Sun Fortran 8.3
8455 tmp_sharedflag='-G' ;;
8457 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459 if test "x$supports_anon_versioning" = xyes; then
8460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8462 echo "local: *; };" >> $output_objdir/$libname.ver~
8463 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8466 case $cc_basename in
8467 xlf* | bgf* | bgxlf* | mpixlf*)
8468 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8469 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8472 if test "x$supports_anon_versioning" = xyes; then
8473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8475 echo "local: *; };" >> $output_objdir/$libname.ver~
8476 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8485 netbsd* | netbsdelf*-gnu)
8486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8501 *** create shared libraries on Solaris systems. Therefore, libtool
8502 *** is disabling shared libraries support. We urge you to upgrade GNU
8503 *** binutils to release 2.9.1 or newer. Another option is to modify
8504 *** your PATH or compiler configuration so that the native linker is
8505 *** used, and then restart.
8508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8517 case `$LD -v 2>&1` in
8518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8523 *** reliably create shared libraries on SCO systems. Therefore, libtool
8524 *** is disabling shared libraries support. We urge you to upgrade GNU
8525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8526 *** your PATH or compiler configuration so that the native linker is
8527 *** used, and then restart.
8532 # For security reasons, it is highly recommended that you always
8533 # use absolute paths for naming shared libraries, and exclude the
8534 # DT_RUNPATH tag from executables and libraries. But doing so
8535 # requires that you compile everything twice, which is a pain.
8536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8551 hardcode_shlibpath_var=no
8555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8564 if test "$ld_shlibs" = no; then
8566 hardcode_libdir_flag_spec=
8567 export_dynamic_flag_spec=
8568 whole_archive_flag_spec=
8571 # PORTME fill in a description of your system's linker (not GNU ld)
8574 allow_undefined_flag=unsupported
8575 always_export_symbols=yes
8576 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'
8577 # Note: this linker hardcodes the directories in LIBPATH if there
8578 # are no directories specified by -L.
8579 hardcode_minus_L=yes
8580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8581 # Neither direct hardcoding nor static linking is supported with a
8583 hardcode_direct=unsupported
8588 if test "$host_cpu" = ia64; then
8589 # On IA64, the linker does run time linking by default, so we don't
8590 # have to do anything special.
8591 aix_use_runtimelinking=no
8592 exp_sym_flag='-Bexport'
8595 # If we're using GNU nm, then we don't want the "-C" option.
8596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8597 # Also, AIX nm treats weak defined symbols like other global
8598 # defined symbols, whereas GNU nm marks them as "W".
8599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8600 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'
8602 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'
8604 aix_use_runtimelinking=no
8606 # Test if we are trying to use run time linking or normal
8607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8608 # need to do runtime linking.
8609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8610 for ld_flag in $LDFLAGS; do
8611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8612 aix_use_runtimelinking=yes
8619 exp_sym_flag='-bexport'
8620 no_entry_flag='-bnoentry'
8623 # When large executables or shared objects are built, AIX ld can
8624 # have problems creating the table of contents. If linking a library
8625 # or program results in "error TOC overflow" add -mminimal-toc to
8626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8631 hardcode_direct_absolute=yes
8632 hardcode_libdir_separator=':'
8633 link_all_deplibs=yes
8634 file_list_spec='${wl}-f,'
8636 if test "$GCC" = yes; then
8637 case $host_os in aix4.[012]|aix4.[012].*)
8638 # We only want to do this on AIX 4.2 and lower, the check
8639 # below for broken collect2 doesn't work under 4.3+
8640 collect2name=`${CC} -print-prog-name=collect2`
8641 if test -f "$collect2name" &&
8642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8644 # We have reworked collect2
8647 # We have old collect2
8648 hardcode_direct=unsupported
8649 # It fails to find uninstalled libraries when the uninstalled
8650 # path is not listed in the libpath. Setting hardcode_minus_L
8651 # to unsupported forces relinking
8652 hardcode_minus_L=yes
8653 hardcode_libdir_flag_spec='-L$libdir'
8654 hardcode_libdir_separator=
8658 shared_flag='-shared'
8659 if test "$aix_use_runtimelinking" = yes; then
8660 shared_flag="$shared_flag "'${wl}-G'
8665 if test "$host_cpu" = ia64; then
8666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8667 # chokes on -Wl,-G. The following line is correct:
8670 if test "$aix_use_runtimelinking" = yes; then
8671 shared_flag='${wl}-G'
8673 shared_flag='${wl}-bM:SRE'
8678 export_dynamic_flag_spec='${wl}-bexpall'
8679 # It seems that -bexpall does not export symbols beginning with
8680 # underscore (_), so it is better to generate a list of symbols to export.
8681 always_export_symbols=yes
8682 if test "$aix_use_runtimelinking" = yes; then
8683 # Warning - without using the other runtime loading flags (-brtl),
8684 # -berok will link without error, but may produce a broken library.
8685 allow_undefined_flag='-berok'
8686 # Determine the default libpath from the value encoded in an
8688 if test "${lt_cv_aix_libpath+set}" = set; then
8689 aix_libpath=$lt_cv_aix_libpath
8691 if ${lt_cv_aix_libpath_+:} false; then :
8692 $as_echo_n "(cached) " >&6
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8705 if ac_fn_c_try_link "$LINENO"; then :
8707 lt_aix_libpath_sed='
8708 /Import File Strings/,/^$/ {
8710 s/^0 *\([^ ]*\) *$/\1/
8714 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8715 # Check for a 64-bit object if we didn't find anything.
8716 if test -z "$lt_cv_aix_libpath_"; then
8717 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8720 rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 if test -z "$lt_cv_aix_libpath_"; then
8723 lt_cv_aix_libpath_="/usr/lib:/lib"
8728 aix_libpath=$lt_cv_aix_libpath_
8731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8732 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"
8734 if test "$host_cpu" = ia64; then
8735 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8736 allow_undefined_flag="-z nodefs"
8737 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"
8739 # Determine the default libpath from the value encoded in an
8741 if test "${lt_cv_aix_libpath+set}" = set; then
8742 aix_libpath=$lt_cv_aix_libpath
8744 if ${lt_cv_aix_libpath_+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8758 if ac_fn_c_try_link "$LINENO"; then :
8760 lt_aix_libpath_sed='
8761 /Import File Strings/,/^$/ {
8763 s/^0 *\([^ ]*\) *$/\1/
8767 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8768 # Check for a 64-bit object if we didn't find anything.
8769 if test -z "$lt_cv_aix_libpath_"; then
8770 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 if test -z "$lt_cv_aix_libpath_"; then
8776 lt_cv_aix_libpath_="/usr/lib:/lib"
8781 aix_libpath=$lt_cv_aix_libpath_
8784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8785 # Warning - without using the other run time loading flags,
8786 # -berok will link without error, but may produce a broken library.
8787 no_undefined_flag=' ${wl}-bernotok'
8788 allow_undefined_flag=' ${wl}-berok'
8789 if test "$with_gnu_ld" = yes; then
8790 # We only use this code for GNU lds that support --whole-archive.
8791 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8793 # Exported symbols can be pulled into shared objects from archives
8794 whole_archive_flag_spec='$convenience'
8796 archive_cmds_need_lc=yes
8797 # This is similar to how AIX traditionally builds its shared libraries.
8798 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'
8806 # see comment about AmigaOS4 .so support
8807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808 archive_expsym_cmds=''
8811 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)'
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_minus_L=yes
8819 export_dynamic_flag_spec=-rdynamic
8822 cygwin* | mingw* | pw32* | cegcc*)
8823 # When not using gcc, we currently assume that we are using
8824 # Microsoft Visual C++.
8825 # hardcode_libdir_flag_spec is actually meaningless, as there is
8826 # no search path for DLLs.
8827 case $cc_basename in
8830 hardcode_libdir_flag_spec=' '
8831 allow_undefined_flag=unsupported
8832 always_export_symbols=yes
8834 # Tell ltmain to make .lib files, not .a files.
8836 # Tell ltmain to make .dll files, not .so files.
8838 # FIXME: Setting linknames here is a bad hack.
8839 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8840 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8841 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8843 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8845 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8847 # The linker will not automatically build a static lib if we build a DLL.
8848 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8849 enable_shared_with_static_runtimes=yes
8850 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8853 old_postinstall_cmds='chmod 644 $oldlib'
8854 postlink_cmds='lt_outputfile="@OUTPUT@"~
8855 lt_tool_outputfile="@TOOL_OUTPUT@"~
8856 case $lt_outputfile in
8859 lt_outputfile="$lt_outputfile.exe"
8860 lt_tool_outputfile="$lt_tool_outputfile.exe"
8863 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8864 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8865 $RM "$lt_outputfile.manifest";
8869 # Assume MSVC wrapper
8870 hardcode_libdir_flag_spec=' '
8871 allow_undefined_flag=unsupported
8872 # Tell ltmain to make .lib files, not .a files.
8874 # Tell ltmain to make .dll files, not .so files.
8876 # FIXME: Setting linknames here is a bad hack.
8877 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8878 # The linker will automatically build a .lib file if we build a DLL.
8879 old_archive_from_new_cmds='true'
8880 # FIXME: Should let the user specify the lib program.
8881 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8882 enable_shared_with_static_runtimes=yes
8887 darwin* | rhapsody*)
8890 archive_cmds_need_lc=no
8892 hardcode_automatic=yes
8893 hardcode_shlibpath_var=unsupported
8894 if test "$lt_cv_ld_force_load" = "yes"; then
8895 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\"`'
8898 whole_archive_flag_spec=''
8900 link_all_deplibs=yes
8901 allow_undefined_flag="$_lt_dar_allow_undefined"
8902 case $cc_basename in
8903 ifort*) _lt_dar_can_shared=yes ;;
8904 *) _lt_dar_can_shared=$GCC ;;
8906 if test "$_lt_dar_can_shared" = "yes"; then
8907 output_verbose_link_cmd=func_echo_all
8908 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8909 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8910 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}"
8911 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}"
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_shlibpath_var=no
8925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8926 # support. Future versions do this automatically, but an explicit c++rt0.o
8927 # does not break anything, and helps significantly (at the cost of a little
8930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8931 hardcode_libdir_flag_spec='-R$libdir'
8933 hardcode_shlibpath_var=no
8936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_minus_L=yes
8941 hardcode_shlibpath_var=no
8944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8945 freebsd* | dragonfly*)
8946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8947 hardcode_libdir_flag_spec='-R$libdir'
8949 hardcode_shlibpath_var=no
8953 if test "$GCC" = yes; then
8954 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'
8956 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'
8958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8959 hardcode_libdir_separator=:
8962 # hardcode_minus_L: Not really in the search PATH,
8963 # but as the default location of the library.
8964 hardcode_minus_L=yes
8965 export_dynamic_flag_spec='${wl}-E'
8969 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8970 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8974 if test "$with_gnu_ld" = no; then
8975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8976 hardcode_libdir_separator=:
8978 hardcode_direct_absolute=yes
8979 export_dynamic_flag_spec='${wl}-E'
8980 # hardcode_minus_L: Not really in the search PATH,
8981 # but as the default location of the library.
8982 hardcode_minus_L=yes
8987 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8990 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8996 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9005 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9009 # Older versions of the 11.00 compiler do not understand -b yet
9010 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9012 $as_echo_n "checking if $CC understands -b... " >&6; }
9013 if ${lt_cv_prog_compiler__b+:} false; then :
9014 $as_echo_n "(cached) " >&6
9016 lt_cv_prog_compiler__b=no
9017 save_LDFLAGS="$LDFLAGS"
9018 LDFLAGS="$LDFLAGS -b"
9019 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9021 # The linker can only warn and ignore the option if not recognized
9022 # So say no if there are warnings
9023 if test -s conftest.err; then
9024 # Append any errors to the config.log.
9025 cat conftest.err 1>&5
9026 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9028 if diff conftest.exp conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler__b=yes
9032 lt_cv_prog_compiler__b=yes
9036 LDFLAGS="$save_LDFLAGS"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9040 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9042 if test x"$lt_cv_prog_compiler__b" = xyes; then
9043 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9051 if test "$with_gnu_ld" = no; then
9052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9053 hardcode_libdir_separator=:
9058 hardcode_shlibpath_var=no
9062 hardcode_direct_absolute=yes
9063 export_dynamic_flag_spec='${wl}-E'
9065 # hardcode_minus_L: Not really in the search PATH,
9066 # but as the default location of the library.
9067 hardcode_minus_L=yes
9073 irix5* | irix6* | nonstopux*)
9074 if test "$GCC" = yes; then
9075 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'
9076 # Try to use the -exported_symbol ld option, if it does not
9077 # work, assume that -exports_file does not work either and
9078 # implicitly export all symbols.
9079 # This should be the same for all languages, so no per-tag cache variable.
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9081 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9082 if ${lt_cv_irix_exported_symbol+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 save_LDFLAGS="$LDFLAGS"
9086 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int foo (void) { return 0; }
9091 if ac_fn_c_try_link "$LINENO"; then :
9092 lt_cv_irix_exported_symbol=yes
9094 lt_cv_irix_exported_symbol=no
9096 rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
9098 LDFLAGS="$save_LDFLAGS"
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9101 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9102 if test "$lt_cv_irix_exported_symbol" = yes; then
9103 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'
9106 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'
9107 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'
9109 archive_cmds_need_lc='no'
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 hardcode_libdir_separator=:
9113 link_all_deplibs=yes
9116 netbsd* | netbsdelf*-gnu)
9117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9120 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9122 hardcode_libdir_flag_spec='-R$libdir'
9124 hardcode_shlibpath_var=no
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131 hardcode_libdir_separator=:
9132 hardcode_shlibpath_var=no
9139 if test -f /usr/libexec/ld.so; then
9141 hardcode_shlibpath_var=no
9142 hardcode_direct_absolute=yes
9143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9147 export_dynamic_flag_spec='${wl}-E'
9150 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_libdir_flag_spec='-R$libdir'
9155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_minus_L=yes
9168 allow_undefined_flag=unsupported
9169 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'
9170 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9174 if test "$GCC" = yes; then
9175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9176 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'
9178 allow_undefined_flag=' -expect_unresolved \*'
9179 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'
9181 archive_cmds_need_lc='no'
9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183 hardcode_libdir_separator=:
9186 osf4* | osf5*) # as osf3* with the addition of -msym flag
9187 if test "$GCC" = yes; then
9188 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9189 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'
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192 allow_undefined_flag=' -expect_unresolved \*'
9193 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'
9194 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~
9195 $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'
9197 # Both c and cxx compiler support -rpath directly
9198 hardcode_libdir_flag_spec='-rpath $libdir'
9200 archive_cmds_need_lc='no'
9201 hardcode_libdir_separator=:
9205 no_undefined_flag=' -z defs'
9206 if test "$GCC" = yes; then
9208 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9210 $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'
9212 case `$CC -V 2>&1` in
9215 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9217 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9221 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9223 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_shlibpath_var=no
9230 solaris2.[0-5] | solaris2.[0-5].*) ;;
9232 # The compiler driver will combine and reorder linker options,
9233 # but understands `-z linker_flag'. GCC discards it without `$wl',
9234 # but is careful enough not to reorder.
9235 # Supported since Solaris 2.6 (maybe 2.5.1?)
9236 if test "$GCC" = yes; then
9237 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9243 link_all_deplibs=yes
9247 if test "x$host_vendor" = xsequent; then
9248 # Use $CC to link under sequent, because it throws in some extra .o
9249 # files that make .init and .fini sections work.
9250 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_minus_L=yes
9257 hardcode_shlibpath_var=no
9261 case $host_vendor in
9263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264 hardcode_direct=yes # is this really true???
9267 ## LD is ld it makes a PLAMLIB
9268 ## CC just makes a GrossModule.
9269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9270 reload_cmds='$CC -r -o $output$reload_objs'
9274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9278 runpath_var='LD_RUN_PATH'
9279 hardcode_shlibpath_var=no
9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_shlibpath_var=no
9285 export_dynamic_flag_spec='-Bexport'
9289 if test -d /usr/nec; then
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_shlibpath_var=no
9292 runpath_var=LD_RUN_PATH
9293 hardcode_runpath_var=yes
9298 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9299 no_undefined_flag='${wl}-z,text'
9300 archive_cmds_need_lc=no
9301 hardcode_shlibpath_var=no
9302 runpath_var='LD_RUN_PATH'
9304 if test "$GCC" = yes; then
9305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313 sysv5* | sco3.2v5* | sco5v6*)
9314 # Note: We can NOT use -z defs as we might desire, because we do not
9315 # link with -lc, and that would cause any symbols used from libc to
9316 # always be unresolved, which means just about no library would
9317 # ever link correctly. If we're not using GNU ld we use -z text
9318 # though, which does catch some bad symbols but isn't as heavy-handed
9320 no_undefined_flag='${wl}-z,text'
9321 allow_undefined_flag='${wl}-z,nodefs'
9322 archive_cmds_need_lc=no
9323 hardcode_shlibpath_var=no
9324 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9325 hardcode_libdir_separator=':'
9326 link_all_deplibs=yes
9327 export_dynamic_flag_spec='${wl}-Bexport'
9328 runpath_var='LD_RUN_PATH'
9330 if test "$GCC" = yes; then
9331 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_shlibpath_var=no
9350 if test x$host_vendor = xsni; then
9352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9353 export_dynamic_flag_spec='${wl}-Blargedynsym'
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9360 $as_echo "$ld_shlibs" >&6; }
9361 test "$ld_shlibs" = no && can_build_shared=no
9363 with_gnu_ld=$with_gnu_ld
9380 # Do we need to explicitly link libc?
9382 case "x$archive_cmds_need_lc" in
9384 # Assume -lc should be added
9385 archive_cmds_need_lc=yes
9387 if test "$enable_shared" = yes && test "$GCC" = yes; then
9388 case $archive_cmds in
9390 # FIXME: we may have to deal with multi-command sequences.
9393 # Test whether the compiler implicitly links with -lc since on some
9394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9395 # to ld, don't add -lc before -lgcc.
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9397 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9398 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9399 $as_echo_n "(cached) " >&6
9402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9405 (eval $ac_compile) 2>&5
9407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9408 test $ac_status = 0; } 2>conftest.err; then
9411 libobjs=conftest.$ac_objext
9413 wl=$lt_prog_compiler_wl
9414 pic_flag=$lt_prog_compiler_pic
9420 lt_save_allow_undefined_flag=$allow_undefined_flag
9421 allow_undefined_flag=
9422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9423 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426 test $ac_status = 0; }
9428 lt_cv_archive_cmds_need_lc=no
9430 lt_cv_archive_cmds_need_lc=yes
9432 allow_undefined_flag=$lt_save_allow_undefined_flag
9434 cat conftest.err 1>&5
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9440 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9441 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9602 if test "$GCC" = yes; then
9604 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9605 *) lt_awk_arg="/^libraries:/" ;;
9608 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9609 *) lt_sed_strip_eq="s,=/,/,g" ;;
9611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9612 case $lt_search_path_spec in
9614 # if the path contains ";" then we assume it to be the separator
9615 # otherwise default to the standard path separator (i.e. ":") - it is
9616 # assumed that no part of a normal pathname contains ";" but that should
9617 # okay in the real world where ";" in dirpaths is itself problematic.
9618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9624 # Ok, now we have the path, separated by spaces, we can step through it
9625 # and add multilib dir if necessary.
9626 lt_tmp_lt_search_path_spec=
9627 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9628 for lt_sys_path in $lt_search_path_spec; do
9629 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9632 test -d "$lt_sys_path" && \
9633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9636 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9637 BEGIN {RS=" "; FS="/|\n";} {
9640 for (lt_i = NF; lt_i > 0; lt_i--) {
9641 if ($lt_i != "" && $lt_i != ".") {
9642 if ($lt_i == "..") {
9645 if (lt_count == 0) {
9646 lt_foo="/" $lt_i lt_foo;
9653 if (lt_foo != "") { lt_freq[lt_foo]++; }
9654 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9656 # AWK program above erroneously prepends '/' to C:/dos/paths
9659 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9660 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9662 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9667 libname_spec='lib$name'
9675 shlibpath_overrides_runpath=unknown
9677 dynamic_linker="$host_os ld.so"
9678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9679 need_lib_prefix=unknown
9680 hardcode_into_libs=no
9682 # when you set need_version to no, make sure it does not cause -set_version
9683 # flags to be left without arguments
9684 need_version=unknown
9688 version_type=linux # correct to gnu/linux during the next big refactor
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9690 shlibpath_var=LIBPATH
9692 # AIX 3 has no versioning support, so we append a major version to the name.
9693 soname_spec='${libname}${release}${shared_ext}$major'
9697 version_type=linux # correct to gnu/linux during the next big refactor
9700 hardcode_into_libs=yes
9701 if test "$host_cpu" = ia64; then
9702 # AIX 5 supports IA64
9703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9704 shlibpath_var=LD_LIBRARY_PATH
9706 # With GCC up to 2.95.x, collect2 would create an import file
9707 # for dependence libraries. The import file would start with
9708 # the line `#! .'. This would cause the generated library to
9709 # depend on `.', always an invalid library. This was fixed in
9710 # development snapshots of GCC prior to 3.0.
9712 aix4 | aix4.[01] | aix4.[01].*)
9713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9715 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9723 # soname into executable. Probably we can add versioning support to
9724 # collect2, so additional links can be useful in future.
9725 if test "$aix_use_runtimelinking" = yes; then
9726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9727 # instead of lib<name>.a to let people know that these are not
9728 # typical AIX shared libraries.
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 # We preserve .a as extension for shared libraries through AIX4.2
9732 # and later when we are not doing run time linking.
9733 library_names_spec='${libname}${release}.a $libname.a'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9736 shlibpath_var=LIBPATH
9743 # Since July 2007 AmigaOS4 officially supports .so libraries.
9744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748 library_names_spec='$libname.ixlibrary $libname.a'
9749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9750 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'
9756 library_names_spec='${libname}${shared_ext}'
9757 dynamic_linker="$host_os ld.so"
9758 shlibpath_var=LIBRARY_PATH
9762 version_type=linux # correct to gnu/linux during the next big refactor
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9770 # the default ld.so.conf also contains /usr/contrib/lib and
9771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9772 # libtool to hard-code these into programs
9775 cygwin* | mingw* | pw32* | cegcc*)
9776 version_type=windows
9781 case $GCC,$cc_basename in
9784 library_names_spec='$libname.dll.a'
9785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9786 postinstall_cmds='base_file=`basename \${file}`~
9787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9788 dldir=$destdir/`dirname \$dlpath`~
9789 test -d \$dldir || mkdir -p \$dldir~
9790 $install_prog $dir/$dlname \$dldir/$dlname~
9791 chmod a+x \$dldir/$dlname~
9792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9796 dlpath=$dir/\$dldll~
9798 shlibpath_overrides_runpath=yes
9802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9808 # MinGW DLLs use traditional 'lib' prefix
9809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812 # pw32 DLLs use 'pw' prefix rather than 'lib'
9813 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9816 dynamic_linker='Win32 ld.exe'
9821 libname_spec='$name'
9822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9823 library_names_spec='${libname}.dll.lib'
9827 sys_lib_search_path_spec=
9833 # Let DOS variable expansion print the short 8.3 style file name.
9834 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9835 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9838 # Convert to MSYS style.
9839 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9842 # Convert to unix form, then to dos form, then back to unix form
9843 # but this time dos style (no spaces!) so that the unix form looks
9844 # like /cygdrive/c/PROGRA~1:/cygdr...
9845 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9846 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9847 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9850 sys_lib_search_path_spec="$LIB"
9851 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9852 # It is most probably a Windows format PATH.
9853 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9857 # FIXME: find the short name or the path components, as spaces are
9858 # common. (e.g. "Program Files" -> "PROGRA~1")
9862 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9863 postinstall_cmds='base_file=`basename \${file}`~
9864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9865 dldir=$destdir/`dirname \$dlpath`~
9866 test -d \$dldir || mkdir -p \$dldir~
9867 $install_prog $dir/$dlname \$dldir/$dlname'
9868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9869 dlpath=$dir/\$dldll~
9871 shlibpath_overrides_runpath=yes
9872 dynamic_linker='Win32 link.exe'
9876 # Assume MSVC wrapper
9877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9878 dynamic_linker='Win32 ld.exe'
9881 # FIXME: first we should search . and the directory the executable is in
9885 darwin* | rhapsody*)
9886 dynamic_linker="$host_os dyld"
9890 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9891 soname_spec='${libname}${release}${major}$shared_ext'
9892 shlibpath_overrides_runpath=yes
9893 shlibpath_var=DYLD_LIBRARY_PATH
9894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9896 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9901 version_type=linux # correct to gnu/linux during the next big refactor
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9909 freebsd* | dragonfly*)
9910 # DragonFly does not have aout. When/if they implement a new
9911 # versioning mechanism, adjust this.
9912 if test -x /usr/bin/objformat; then
9913 objformat=`/usr/bin/objformat`
9916 freebsd[23].*) objformat=aout ;;
9920 version_type=freebsd-$objformat
9921 case $version_type in
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9932 shlibpath_var=LD_LIBRARY_PATH
9935 shlibpath_overrides_runpath=yes
9937 freebsd3.[01]* | freebsdelf3.[01]*)
9938 shlibpath_overrides_runpath=yes
9939 hardcode_into_libs=yes
9941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9943 shlibpath_overrides_runpath=no
9944 hardcode_into_libs=yes
9946 *) # from 4.6 on, and DragonFly
9947 shlibpath_overrides_runpath=yes
9948 hardcode_into_libs=yes
9954 version_type=linux # correct to gnu/linux during the next big refactor
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9965 version_type=linux # correct to gnu/linux during the next big refactor
9968 dynamic_linker="$host_os runtime_loader"
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 shlibpath_var=LIBRARY_PATH
9972 shlibpath_overrides_runpath=yes
9973 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9974 hardcode_into_libs=yes
9977 hpux9* | hpux10* | hpux11*)
9978 # Give a soname corresponding to the major version so that dld.sl refuses to
9979 # link against other versions.
9986 hardcode_into_libs=yes
9987 dynamic_linker="$host_os dld.so"
9988 shlibpath_var=LD_LIBRARY_PATH
9989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 if test "X$HPUX_IA64_MODE" = X32; then
9993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10001 hardcode_into_libs=yes
10002 dynamic_linker="$host_os dld.sl"
10003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10012 dynamic_linker="$host_os dld.sl"
10013 shlibpath_var=SHLIB_PATH
10014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10020 postinstall_cmds='chmod 555 $lib'
10021 # or fails outright, so override atomically:
10022 install_override_mode=555
10026 version_type=linux # correct to gnu/linux during the next big refactor
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10037 irix5* | irix6* | nonstopux*)
10039 nonstopux*) version_type=nonstopux ;;
10041 if test "$lt_cv_prog_gnu_ld" = yes; then
10042 version_type=linux # correct to gnu/linux during the next big refactor
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10052 irix5* | nonstopux*)
10053 libsuff= shlibsuff=
10056 case $LD in # libtool.m4 will add one of these switches to LD
10057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10058 libsuff= shlibsuff= libmagic=32-bit;;
10059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10060 libsuff=32 shlibsuff=N32 libmagic=N32;;
10061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10063 *) libsuff= shlibsuff= libmagic=never-match;;
10067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10068 shlibpath_overrides_runpath=no
10069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10071 hardcode_into_libs=yes
10074 # No shared lib support for Linux oldld, aout, or coff.
10075 linux*oldld* | linux*aout* | linux*coff*)
10079 # This must be glibc/ELF.
10080 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10081 version_type=linux # correct to gnu/linux during the next big refactor
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10090 # Some binutils ld are patched to set DT_RUNPATH
10091 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 lt_cv_shlibpath_overrides_runpath=no
10095 save_LDFLAGS=$LDFLAGS
10096 save_libdir=$libdir
10097 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10098 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10110 if ac_fn_c_try_link "$LINENO"; then :
10111 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10112 lt_cv_shlibpath_overrides_runpath=yes
10115 rm -f core conftest.err conftest.$ac_objext \
10116 conftest$ac_exeext conftest.$ac_ext
10117 LDFLAGS=$save_LDFLAGS
10118 libdir=$save_libdir
10122 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10124 # This implies no fast_install, which is unacceptable.
10125 # Some rework will be needed to allow for fast_install
10126 # before this can be enabled.
10127 hardcode_into_libs=yes
10129 # Append ld.so.conf contents to the search path
10130 if test -f /etc/ld.so.conf; then
10131 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' ' '`
10132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10135 # We used to test for /lib/ld.so.1 and disable shared libraries on
10136 # powerpc, because MkLinux only supported shared libraries with the
10137 # GNU dynamic linker. Since this was broken with cross compilers,
10138 # most powerpc-linux boxes support dynamic linking these days and
10139 # people can always --disable-shared, the test was removed, and we
10140 # assume the GNU/Linux dynamic linker is in use.
10141 dynamic_linker='GNU/Linux ld.so'
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=no
10152 hardcode_into_libs=yes
10153 dynamic_linker='NetBSD ld.elf_so'
10160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10163 dynamic_linker='NetBSD (a.out) ld.so'
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 dynamic_linker='NetBSD ld.elf_so'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=yes
10171 hardcode_into_libs=yes
10175 version_type=linux # correct to gnu/linux during the next big refactor
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=yes
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath=no
10189 hardcode_into_libs=yes
10190 dynamic_linker='ldqnx.so'
10195 sys_lib_dlsearch_path_spec="/usr/lib"
10197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10200 *) need_version=no ;;
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10207 openbsd2.[89] | openbsd2.[89].*)
10208 shlibpath_overrides_runpath=no
10211 shlibpath_overrides_runpath=yes
10215 shlibpath_overrides_runpath=yes
10220 libname_spec='$name'
10223 library_names_spec='$libname${shared_ext} $libname.a'
10224 dynamic_linker='OS/2 ld.exe'
10225 shlibpath_var=LIBPATH
10228 osf3* | osf4* | osf5*)
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244 version_type=linux # correct to gnu/linux during the next big refactor
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 shlibpath_overrides_runpath=yes
10251 hardcode_into_libs=yes
10252 # ldd complains unless libraries are executable
10253 postinstall_cmds='chmod +x $lib'
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 shlibpath_overrides_runpath=yes
10262 if test "$with_gnu_ld" = yes; then
10269 version_type=linux # correct to gnu/linux during the next big refactor
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 case $host_vendor in
10275 shlibpath_overrides_runpath=no
10277 runpath_var=LD_RUN_PATH
10285 shlibpath_overrides_runpath=no
10286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10292 if test -d /usr/nec ;then
10293 version_type=linux # correct to gnu/linux during the next big refactor
10294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295 soname_spec='$libname${shared_ext}.$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301 version_type=freebsd-elf
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 hardcode_into_libs=yes
10309 if test "$with_gnu_ld" = yes; then
10310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10319 sys_lib_dlsearch_path_spec='/usr/lib'
10323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10324 version_type=linux # correct to gnu/linux during the next big refactor
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=no
10330 hardcode_into_libs=yes
10334 version_type=linux # correct to gnu/linux during the next big refactor
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10345 $as_echo "$dynamic_linker" >&6; }
10346 test "$dynamic_linker" = no && can_build_shared=no
10348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10349 if test "$GCC" = yes; then
10350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10452 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10454 if test -n "$hardcode_libdir_flag_spec" ||
10455 test -n "$runpath_var" ||
10456 test "X$hardcode_automatic" = "Xyes" ; then
10458 # We can hardcode non-existent directories.
10459 if test "$hardcode_direct" != no &&
10460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10461 # have to relink, otherwise we might link with an installed library
10462 # when we should be linking with a yet-to-be-installed one
10463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10464 test "$hardcode_minus_L" != no; then
10465 # Linking always hardcodes the temporary library directory.
10466 hardcode_action=relink
10468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10469 hardcode_action=immediate
10472 # We cannot hardcode anything, or else we can only hardcode existing
10474 hardcode_action=unsupported
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10477 $as_echo "$hardcode_action" >&6; }
10479 if test "$hardcode_action" = relink ||
10480 test "$inherit_rpath" = yes; then
10481 # Fast installation is not supported
10482 enable_fast_install=no
10483 elif test "$shlibpath_overrides_runpath" = yes ||
10484 test "$enable_shared" = no; then
10485 # Fast installation is not necessary
10486 enable_fast_install=needless
10494 if test "x$enable_dlopen" != xyes; then
10495 enable_dlopen=unknown
10496 enable_dlopen_self=unknown
10497 enable_dlopen_self_static=unknown
10504 lt_cv_dlopen="load_add_on"
10506 lt_cv_dlopen_self=yes
10509 mingw* | pw32* | cegcc*)
10510 lt_cv_dlopen="LoadLibrary"
10515 lt_cv_dlopen="dlopen"
10520 # if libdl is installed we need to link against it
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10522 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10523 if ${ac_cv_lib_dl_dlopen+:} false; then :
10524 $as_echo_n "(cached) " >&6
10526 ac_check_lib_save_LIBS=$LIBS
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10546 if ac_fn_c_try_link "$LINENO"; then :
10547 ac_cv_lib_dl_dlopen=yes
10549 ac_cv_lib_dl_dlopen=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10556 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10557 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10558 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561 lt_cv_dlopen="dyld"
10563 lt_cv_dlopen_self=yes
10570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10571 if test "x$ac_cv_func_shl_load" = xyes; then :
10572 lt_cv_dlopen="shl_load"
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10575 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10576 if ${ac_cv_lib_dld_shl_load+:} false; then :
10577 $as_echo_n "(cached) " >&6
10579 ac_check_lib_save_LIBS=$LIBS
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10594 return shl_load ();
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_lib_dld_shl_load=yes
10602 ac_cv_lib_dld_shl_load=no
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10606 LIBS=$ac_check_lib_save_LIBS
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10609 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10610 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10613 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10614 if test "x$ac_cv_func_dlopen" = xyes; then :
10615 lt_cv_dlopen="dlopen"
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10619 if ${ac_cv_lib_dl_dlopen+:} false; then :
10620 $as_echo_n "(cached) " >&6
10622 ac_check_lib_save_LIBS=$LIBS
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_dl_dlopen=yes
10645 ac_cv_lib_dl_dlopen=no
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10652 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10653 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10657 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10658 if ${ac_cv_lib_svld_dlopen+:} false; then :
10659 $as_echo_n "(cached) " >&6
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lsvld $LIBS"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 ac_cv_lib_svld_dlopen=yes
10684 ac_cv_lib_svld_dlopen=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10691 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10692 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10696 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10697 if ${ac_cv_lib_dld_dld_link+:} false; then :
10698 $as_echo_n "(cached) " >&6
10700 ac_check_lib_save_LIBS=$LIBS
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10715 return dld_link ();
10720 if ac_fn_c_try_link "$LINENO"; then :
10721 ac_cv_lib_dld_dld_link=yes
10723 ac_cv_lib_dld_dld_link=no
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LIBS=$ac_check_lib_save_LIBS
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10730 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10731 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10732 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10753 if test "x$lt_cv_dlopen" != xno; then
10759 case $lt_cv_dlopen in
10761 save_CPPFLAGS="$CPPFLAGS"
10762 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10764 save_LDFLAGS="$LDFLAGS"
10765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10768 LIBS="$lt_cv_dlopen_libs $LIBS"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10771 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10772 if ${lt_cv_dlopen_self+:} false; then :
10773 $as_echo_n "(cached) " >&6
10775 if test "$cross_compiling" = yes; then :
10776 lt_cv_dlopen_self=cross
10778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10779 lt_status=$lt_dlunknown
10780 cat > conftest.$ac_ext <<_LT_EOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10791 # define LT_DLGLOBAL RTLD_GLOBAL
10794 # define LT_DLGLOBAL DL_GLOBAL
10796 # define LT_DLGLOBAL 0
10800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10801 find out it does not work in some platform. */
10802 #ifndef LT_DLLAZY_OR_NOW
10804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10807 # define LT_DLLAZY_OR_NOW DL_LAZY
10810 # define LT_DLLAZY_OR_NOW RTLD_NOW
10813 # define LT_DLLAZY_OR_NOW DL_NOW
10815 # define LT_DLLAZY_OR_NOW 0
10822 /* When -fvisbility=hidden is used, assume the code has been annotated
10823 correspondingly for the symbols needed. */
10824 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10825 int fnord () __attribute__((visibility("default")));
10828 int fnord () { return 42; }
10831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10832 int status = $lt_dlunknown;
10836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10840 else puts (dlerror ());
10842 /* dlclose (self); */
10850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10851 (eval $ac_link) 2>&5
10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10855 (./conftest; exit; ) >&5 2>/dev/null
10857 case x$lt_status in
10858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10860 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10863 # compilation failed
10864 lt_cv_dlopen_self=no
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10872 $as_echo "$lt_cv_dlopen_self" >&6; }
10874 if test "x$lt_cv_dlopen_self" = xyes; then
10875 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10877 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10878 if ${lt_cv_dlopen_self_static+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 if test "$cross_compiling" = yes; then :
10882 lt_cv_dlopen_self_static=cross
10884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10885 lt_status=$lt_dlunknown
10886 cat > conftest.$ac_ext <<_LT_EOF
10887 #line $LINENO "configure"
10888 #include "confdefs.h"
10897 # define LT_DLGLOBAL RTLD_GLOBAL
10900 # define LT_DLGLOBAL DL_GLOBAL
10902 # define LT_DLGLOBAL 0
10906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10907 find out it does not work in some platform. */
10908 #ifndef LT_DLLAZY_OR_NOW
10910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10913 # define LT_DLLAZY_OR_NOW DL_LAZY
10916 # define LT_DLLAZY_OR_NOW RTLD_NOW
10919 # define LT_DLLAZY_OR_NOW DL_NOW
10921 # define LT_DLLAZY_OR_NOW 0
10928 /* When -fvisbility=hidden is used, assume the code has been annotated
10929 correspondingly for the symbols needed. */
10930 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10931 int fnord () __attribute__((visibility("default")));
10934 int fnord () { return 42; }
10937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10938 int status = $lt_dlunknown;
10942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946 else puts (dlerror ());
10948 /* dlclose (self); */
10956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10957 (eval $ac_link) 2>&5
10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10961 (./conftest; exit; ) >&5 2>/dev/null
10963 case x$lt_status in
10964 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10965 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10966 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10969 # compilation failed
10970 lt_cv_dlopen_self_static=no
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10978 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10981 CPPFLAGS="$save_CPPFLAGS"
10982 LDFLAGS="$save_LDFLAGS"
10987 case $lt_cv_dlopen_self in
10988 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10989 *) enable_dlopen_self=unknown ;;
10992 case $lt_cv_dlopen_self_static in
10993 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10994 *) enable_dlopen_self_static=unknown ;;
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11017 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11018 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11019 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11020 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; }
11024 # FIXME - insert some real tests, host_os isn't really good enough
11027 if test -n "$STRIP" ; then
11028 striplib="$STRIP -x"
11029 old_striplib="$STRIP -S"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; }
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11055 # Report which library types will actually be built
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11057 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11059 $as_echo "$can_build_shared" >&6; }
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11062 $as_echo_n "checking whether to build shared libraries... " >&6; }
11063 test "$can_build_shared" = "no" && enable_shared=no
11065 # On AIX, shared libraries and static libraries use the same namespace, and
11066 # are all built from PIC.
11069 test "$enable_shared" = yes && enable_static=no
11070 if test -n "$RANLIB"; then
11071 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11072 postinstall_cmds='$RANLIB $lib'
11077 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11078 test "$enable_shared" = yes && enable_static=no
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11083 $as_echo "$enable_shared" >&6; }
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11086 $as_echo_n "checking whether to build static libraries... " >&6; }
11087 # Make sure either enable_shared or enable_static is yes.
11088 test "$enable_shared" = yes || enable_static=yes
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11090 $as_echo "$enable_static" >&6; }
11097 ac_cpp='$CPP $CPPFLAGS'
11098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118 ac_config_commands="$ac_config_commands libtool"
11123 # Only expand once:
11129 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
11132 # Checks for programs.
11134 ac_cpp='$CPP $CPPFLAGS'
11135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11138 if test -n "$ac_tool_prefix"; then
11139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_prog_CC+:} false; then :
11144 $as_echo_n "(cached) " >&6
11146 if test -n "$CC"; then
11147 ac_cv_prog_CC="$CC" # Let the user override the test.
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in $PATH
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 if test -n "$CC"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11169 $as_echo "$CC" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11177 if test -z "$ac_cv_prog_CC"; then
11179 # Extract the first word of "gcc", so it can be a program name with args.
11180 set dummy gcc; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11184 $as_echo_n "(cached) " >&6
11186 if test -n "$ac_ct_CC"; then
11187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196 ac_cv_prog_ac_ct_CC="gcc"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11207 if test -n "$ac_ct_CC"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11209 $as_echo "$ac_ct_CC" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11215 if test "x$ac_ct_CC" = x; then
11218 case $cross_compiling:$ac_tool_warned in
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11222 ac_tool_warned=yes ;;
11227 CC="$ac_cv_prog_CC"
11230 if test -z "$CC"; then
11231 if test -n "$ac_tool_prefix"; then
11232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11233 set dummy ${ac_tool_prefix}cc; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if ${ac_cv_prog_CC+:} false; then :
11237 $as_echo_n "(cached) " >&6
11239 if test -n "$CC"; then
11240 ac_cv_prog_CC="$CC" # Let the user override the test.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_prog_CC="${ac_tool_prefix}cc"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 if test -n "$CC"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11262 $as_echo "$CC" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11271 if test -z "$CC"; then
11272 # Extract the first word of "cc", so it can be a program name with args.
11273 set dummy cc; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if ${ac_cv_prog_CC+:} false; then :
11277 $as_echo_n "(cached) " >&6
11279 if test -n "$CC"; then
11280 ac_cv_prog_CC="$CC" # Let the user override the test.
11282 ac_prog_rejected=no
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11291 ac_prog_rejected=yes
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 if test $ac_prog_rejected = yes; then
11303 # We found a bogon in the path, so make sure we never use it.
11304 set dummy $ac_cv_prog_CC
11306 if test $# != 0; then
11307 # We chose a different compiler from the bogus one.
11308 # However, it has the same basename, so the bogon will be chosen
11309 # first if we set CC to just the basename; use the full file name.
11311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11317 if test -n "$CC"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11319 $as_echo "$CC" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11327 if test -z "$CC"; then
11328 if test -n "$ac_tool_prefix"; then
11329 for ac_prog in cl.exe
11331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if ${ac_cv_prog_CC+:} false; then :
11336 $as_echo_n "(cached) " >&6
11338 if test -n "$CC"; then
11339 ac_cv_prog_CC="$CC" # Let the user override the test.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 if test -n "$CC"; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11361 $as_echo "$CC" >&6; }
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11368 test -n "$CC" && break
11371 if test -z "$CC"; then
11373 for ac_prog in cl.exe
11375 # Extract the first word of "$ac_prog", so it can be a program name with args.
11376 set dummy $ac_prog; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11380 $as_echo_n "(cached) " >&6
11382 if test -n "$ac_ct_CC"; then
11383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_prog_ac_ct_CC="$ac_prog"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11403 if test -n "$ac_ct_CC"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11405 $as_echo "$ac_ct_CC" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11412 test -n "$ac_ct_CC" && break
11415 if test "x$ac_ct_CC" = x; then
11418 case $cross_compiling:$ac_tool_warned in
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11422 ac_tool_warned=yes ;;
11431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11433 as_fn_error $? "no acceptable C compiler found in \$PATH
11434 See \`config.log' for more details" "$LINENO" 5; }
11436 # Provide some information about the compiler.
11437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11440 for ac_option in --version -v -V -qversion; do
11441 { { ac_try="$ac_compiler $ac_option >&5"
11442 case "(($ac_try" in
11443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11447 $as_echo "$ac_try_echo"; } >&5
11448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11450 if test -s conftest.err; then
11452 ... rest of stderr output deleted ...
11453 10q' conftest.err >conftest.er1
11454 cat conftest.er1 >&5
11456 rm -f conftest.er1 conftest.err
11457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11458 test $ac_status = 0; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11463 if ${ac_cv_c_compiler_gnu+:} false; then :
11464 $as_echo_n "(cached) " >&6
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11480 if ac_fn_c_try_compile "$LINENO"; then :
11481 ac_compiler_gnu=yes
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11490 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11491 if test $ac_compiler_gnu = yes; then
11496 ac_test_CFLAGS=${CFLAGS+set}
11497 ac_save_CFLAGS=$CFLAGS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11499 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11500 if ${ac_cv_prog_cc_g+:} false; then :
11501 $as_echo_n "(cached) " >&6
11503 ac_save_c_werror_flag=$ac_c_werror_flag
11504 ac_c_werror_flag=yes
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11518 if ac_fn_c_try_compile "$LINENO"; then :
11519 ac_cv_prog_cc_g=yes
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11533 if ac_fn_c_try_compile "$LINENO"; then :
11536 ac_c_werror_flag=$ac_save_c_werror_flag
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11549 if ac_fn_c_try_compile "$LINENO"; then :
11550 ac_cv_prog_cc_g=yes
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 ac_c_werror_flag=$ac_save_c_werror_flag
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11560 $as_echo "$ac_cv_prog_cc_g" >&6; }
11561 if test "$ac_test_CFLAGS" = set; then
11562 CFLAGS=$ac_save_CFLAGS
11563 elif test $ac_cv_prog_cc_g = yes; then
11564 if test "$GCC" = yes; then
11570 if test "$GCC" = yes; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11578 if ${ac_cv_prog_cc_c89+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_cv_prog_cc_c89=no
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 #include <stdarg.h>
11587 #include <sys/types.h>
11588 #include <sys/stat.h>
11589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11590 struct buf { int x; };
11591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11592 static char *e (p, i)
11598 static char *f (char * (*g) (char **, int), char **p, ...)
11603 s = g (p, va_arg (v,int));
11608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11609 function prototypes and stuff, but not '\xHH' hex character constants.
11610 These don't provoke an error unfortunately, instead are silently treated
11611 as 'x'. The following induces an error, until -std is added to get
11612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11613 array size at least. It's necessary to write '\x00'==0 to get something
11614 that's true only with -std. */
11615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11618 inside strings and character constants. */
11620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11622 int test (int i, double x);
11623 struct s1 {int (*f) (int a);};
11624 struct s2 {int (*f) (double a);};
11625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11639 CC="$ac_save_CC $ac_arg"
11640 if ac_fn_c_try_compile "$LINENO"; then :
11641 ac_cv_prog_cc_c89=$ac_arg
11643 rm -f core conftest.err conftest.$ac_objext
11644 test "x$ac_cv_prog_cc_c89" != "xno" && break
11646 rm -f conftest.$ac_ext
11651 case "x$ac_cv_prog_cc_c89" in
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11654 $as_echo "none needed" >&6; } ;;
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11657 $as_echo "unsupported" >&6; } ;;
11659 CC="$CC $ac_cv_prog_cc_c89"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11663 if test "x$ac_cv_prog_cc_c89" != xno; then :
11668 ac_cpp='$CPP $CPPFLAGS'
11669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC dependency flag" >&5
11675 $as_echo_n "checking $CC dependency flag... " >&6; }
11676 echo 'void f(){}' >conftest.c
11677 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11680 if test "`$CC -xM1 conftest.c 2>&1`" = "conftest.o: conftest.c"; then
11683 DEPFLAG="-MM" # dunno do something
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEPFLAG" >&5
11687 $as_echo "$DEPFLAG" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11692 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11694 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11695 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11696 $as_echo_n "(cached) " >&6
11698 cat >conftest.make <<\_ACEOF
11701 @echo '@@@%%%=$(MAKE)=@@@%%%'
11703 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11704 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11705 *@@@%%%=?*=@@@%%%*)
11706 eval ac_cv_prog_make_${ac_make}_set=yes;;
11708 eval ac_cv_prog_make_${ac_make}_set=no;;
11710 rm -f conftest.make
11712 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11714 $as_echo "yes" >&6; }
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718 $as_echo "no" >&6; }
11719 SET_MAKE="MAKE=${MAKE-make}"
11723 # Extra (sp)lint flags for NetBSD
11726 netbsd*) LINTFLAGS="'-D__RENAME(x)=' -D_NETINET_IN_H_ $LINTFLAGS"
11728 *) LINTFLAGS="$LINTFLAGS"
11734 $as_echo "#define WINVER 0x0502" >>confdefs.h
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
11740 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
11741 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
11742 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11743 $as_echo_n "(cached) " >&6
11746 echo 'void f(void){}' >conftest.c
11747 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
11748 eval "cv_prog_cc_flag_$cache=yes"
11750 eval "cv_prog_cc_flag_$cache=no"
11752 rm -f conftest conftest.o conftest.c
11756 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
11771 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
11772 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
11773 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11774 $as_echo_n "(cached) " >&6
11777 echo 'void f(void){}' >conftest.c
11778 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
11779 eval "cv_prog_cc_flag_$cache=yes"
11781 eval "cv_prog_cc_flag_$cache=no"
11783 rm -f conftest conftest.o conftest.c
11787 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11800 # routine to copy files
11801 # argument 1 is a list of files (relative to the source dir)
11802 # argument 2 is a destination directory (relative to the current
11803 # working directory
11806 # copy all .h files in the dir at argument 1
11807 # (relative to source) to the dir at argument 2
11808 # (relative to current dir)
11811 # Checks for typedefs, structures, and compiler characteristics.
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11813 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11814 if ${ac_cv_c_const+:} false; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11823 /* FIXME: Include the comments suggested by Paul. */
11824 #ifndef __cplusplus
11825 /* Ultrix mips cc rejects this. */
11826 typedef int charset[2];
11828 /* SunOS 4.1.1 cc rejects this. */
11829 char const *const *pcpcc;
11831 /* NEC SVR4.0.2 mips cc rejects this. */
11832 struct point {int x, y;};
11833 static struct point const zero = {0,0};
11834 /* AIX XL C 1.02.0.0 rejects this.
11835 It does not let you subtract one const X* pointer from another in
11836 an arm of an if-expression whose if-part is not a constant
11838 const char *g = "string";
11839 pcpcc = &g + (g ? g-g : 0);
11840 /* HPUX 7.0 cc rejects these. */
11842 ppc = (char**) pcpcc;
11843 pcpcc = (char const *const *) ppc;
11844 { /* SCO 3.2v4 cc rejects this. */
11846 char const *s = 0 ? (char *) 0 : (char const *) 0;
11851 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11852 int x[] = {25, 17};
11853 const int *foo = &x[0];
11856 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11857 typedef const int *iptr;
11861 { /* AIX XL C 1.02.0.0 rejects this saying
11862 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11863 struct s { int j; const int *ap[3]; };
11864 struct s *b; b->j = 5;
11866 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11867 const int foo = 10;
11868 if (!foo) return 0;
11870 return !cs[0] && !zero.x;
11877 if ac_fn_c_try_compile "$LINENO"; then :
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11885 $as_echo "$ac_cv_c_const" >&6; }
11886 if test $ac_cv_c_const = no; then
11888 $as_echo "#define const /**/" >>confdefs.h
11893 ac_cpp='$CPP $CPPFLAGS'
11894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898 if test "x$CFLAGS" = "x" ; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g" >&5
11902 $as_echo_n "checking whether $CC supports -g... " >&6; }
11903 cache=`echo g | sed 'y%.=/+-%___p_%'`
11904 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11905 $as_echo_n "(cached) " >&6
11908 echo 'void f(void){}' >conftest.c
11909 if test -z "`$CC $CPPFLAGS $CFLAGS -g -c conftest.c 2>&1`"; then
11910 eval "cv_prog_cc_flag_$cache=yes"
11912 eval "cv_prog_cc_flag_$cache=no"
11914 rm -f conftest conftest.o conftest.c
11918 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11920 $as_echo "yes" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
11933 $as_echo_n "checking whether $CC supports -O2... " >&6; }
11934 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
11935 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11936 $as_echo_n "(cached) " >&6
11939 echo 'void f(void){}' >conftest.c
11940 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
11941 eval "cv_prog_cc_flag_$cache=yes"
11943 eval "cv_prog_cc_flag_$cache=no"
11945 rm -f conftest conftest.o conftest.c
11949 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951 $as_echo "yes" >&6; }
11953 CFLAGS="-O2 $CFLAGS"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11965 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
11966 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
11967 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11968 $as_echo_n "(cached) " >&6
11971 echo 'void f(void){}' >conftest.c
11972 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
11973 eval "cv_prog_cc_flag_$cache=yes"
11975 eval "cv_prog_cc_flag_$cache=no"
11977 rm -f conftest conftest.o conftest.c
11981 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11985 CFLAGS="-Wall $CFLAGS"
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -W" >&5
11996 $as_echo_n "checking whether $CC supports -W... " >&6; }
11997 cache=`echo W | sed 'y%.=/+-%___p_%'`
11998 if eval \${cv_prog_cc_flag_$cache+:} false; then :
11999 $as_echo_n "(cached) " >&6
12002 echo 'void f(void){}' >conftest.c
12003 if test -z "`$CC $CPPFLAGS $CFLAGS -W -c conftest.c 2>&1`"; then
12004 eval "cv_prog_cc_flag_$cache=yes"
12006 eval "cv_prog_cc_flag_$cache=no"
12008 rm -f conftest conftest.o conftest.c
12012 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014 $as_echo "yes" >&6; }
12016 CFLAGS="-W $CFLAGS"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings" >&5
12027 $as_echo_n "checking whether $CC supports -Wwrite-strings... " >&6; }
12028 cache=`echo Wwrite-strings | sed 'y%.=/+-%___p_%'`
12029 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12030 $as_echo_n "(cached) " >&6
12033 echo 'void f(void){}' >conftest.c
12034 if test -z "`$CC $CPPFLAGS $CFLAGS -Wwrite-strings -c conftest.c 2>&1`"; then
12035 eval "cv_prog_cc_flag_$cache=yes"
12037 eval "cv_prog_cc_flag_$cache=no"
12039 rm -f conftest conftest.o conftest.c
12043 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12047 CFLAGS="-Wwrite-strings $CFLAGS"
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes" >&5
12058 $as_echo_n "checking whether $CC supports -Wstrict-prototypes... " >&6; }
12059 cache=`echo Wstrict-prototypes | sed 'y%.=/+-%___p_%'`
12060 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12061 $as_echo_n "(cached) " >&6
12064 echo 'void f(void){}' >conftest.c
12065 if test -z "`$CC $CPPFLAGS $CFLAGS -Wstrict-prototypes -c conftest.c 2>&1`"; then
12066 eval "cv_prog_cc_flag_$cache=yes"
12068 eval "cv_prog_cc_flag_$cache=no"
12070 rm -f conftest conftest.o conftest.c
12074 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12076 $as_echo "yes" >&6; }
12078 CFLAGS="-Wstrict-prototypes $CFLAGS"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12088 for ac_header in getopt.h time.h
12090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12091 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12094 cat >>confdefs.h <<_ACEOF
12095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104 for ac_header in winsock2.h ws2tcpip.h
12106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12110 cat >>confdefs.h <<_ACEOF
12111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12118 # end mingw32 tests
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
12124 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
12125 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
12126 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12127 $as_echo_n "(cached) " >&6
12130 echo 'void f(void){}' >conftest.c
12131 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
12132 eval "cv_prog_cc_flag_$cache=yes"
12134 eval "cv_prog_cc_flag_$cache=no"
12136 rm -f conftest conftest.o conftest.c
12140 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142 $as_echo "yes" >&6; }
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
12155 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
12156 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
12157 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12158 $as_echo_n "(cached) " >&6
12161 echo 'void f(void){}' >conftest.c
12162 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
12163 eval "cv_prog_cc_flag_$cache=yes"
12165 eval "cv_prog_cc_flag_$cache=no"
12167 rm -f conftest conftest.o conftest.c
12171 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12173 $as_echo "yes" >&6; }
12175 ERRFLAG="$ERRFLAG -Wall"
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12180 ERRFLAG="$ERRFLAG -errfmt"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
12188 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
12189 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
12190 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12191 $as_echo_n "(cached) " >&6
12194 echo 'void f(void){}' >conftest.c
12195 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
12196 eval "cv_prog_cc_flag_$cache=yes"
12198 eval "cv_prog_cc_flag_$cache=no"
12200 rm -f conftest conftest.o conftest.c
12204 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
12219 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
12220 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
12221 if eval \${cv_prog_cc_flag_$cache+:} false; then :
12222 $as_echo_n "(cached) " >&6
12225 echo 'void f(void){}' >conftest.c
12226 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
12227 eval "cv_prog_cc_flag_$cache=yes"
12229 eval "cv_prog_cc_flag_$cache=no"
12231 rm -f conftest conftest.o conftest.c
12235 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 $as_echo "yes" >&6; }
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12248 for ac_header in getopt.h time.h
12250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12254 cat >>confdefs.h <<_ACEOF
12255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12266 { $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
12267 $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; }
12268 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`
12269 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12270 $as_echo_n "(cached) " >&6
12274 #include "confdefs.h"
12275 #include <stdlib.h>
12277 #include <sys/time.h>
12281 #include <unistd.h>
12283 #ifdef HAVE_GETOPT_H
12284 #include <getopt.h>
12289 char **opts = NULL;
12294 const char* str = NULL;
12296 msg.msg_control = 0;
12297 t = ctime_r(&time, buf);
12300 a = getopt(2, opts, "a");
12302 str = gai_strerror(0);
12303 if(str && t && tv.tv_usec && msg.msg_control)
12308 echo 'void f(){}' >>conftest.c
12309 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12310 eval "cv_prog_cc_flag_needed_$cache=no"
12313 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
12314 eval "cv_prog_cc_flag_needed_$cache=yes"
12316 eval "cv_prog_cc_flag_needed_$cache=fail"
12317 #echo 'Test with flag fails too!'
12319 #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"
12320 #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`
12325 rm -f conftest conftest.c conftest.o
12329 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12333 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"
12335 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 #echo 'Test with flag is no!'
12340 #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"
12341 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12347 $as_echo "failed" >&6; }
12357 { $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
12358 $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; }
12359 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
12360 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12361 $as_echo_n "(cached) " >&6
12365 #include "confdefs.h"
12366 #include <stdlib.h>
12368 #include <sys/time.h>
12372 #include <unistd.h>
12374 #ifdef HAVE_GETOPT_H
12375 #include <getopt.h>
12380 char **opts = NULL;
12385 const char* str = NULL;
12387 msg.msg_control = 0;
12388 t = ctime_r(&time, buf);
12391 a = getopt(2, opts, "a");
12393 str = gai_strerror(0);
12394 if(str && t && tv.tv_usec && msg.msg_control)
12399 echo 'void f(){}' >>conftest.c
12400 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12401 eval "cv_prog_cc_flag_needed_$cache=no"
12404 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
12405 eval "cv_prog_cc_flag_needed_$cache=yes"
12407 eval "cv_prog_cc_flag_needed_$cache=fail"
12408 #echo 'Test with flag fails too!'
12410 #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"
12411 #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`
12416 rm -f conftest conftest.c conftest.o
12420 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422 $as_echo "yes" >&6; }
12424 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
12426 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12429 #echo 'Test with flag is no!'
12431 #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"
12432 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1`
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12438 $as_echo "failed" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
12449 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
12450 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
12451 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12452 $as_echo_n "(cached) " >&6
12456 #include <stdbool.h>
12463 echo 'void f(){}' >>conftest.c
12464 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12465 eval "cv_prog_cc_flag_needed_$cache=no"
12468 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
12469 eval "cv_prog_cc_flag_needed_$cache=yes"
12471 eval "cv_prog_cc_flag_needed_$cache=fail"
12472 #echo 'Test with flag fails too!'
12474 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12475 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12480 rm -f conftest conftest.c conftest.o
12484 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12488 CFLAGS="$CFLAGS $C99FLAG"
12490 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 #echo 'Test with flag is no!'
12495 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
12496 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12502 $as_echo "failed" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
12513 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
12514 cache=_D_BSD_SOURCE
12515 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12516 $as_echo_n "(cached) " >&6
12528 echo 'void f(){}' >>conftest.c
12529 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12530 eval "cv_prog_cc_flag_needed_$cache=no"
12533 if test -z "`$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12534 eval "cv_prog_cc_flag_needed_$cache=yes"
12536 eval "cv_prog_cc_flag_needed_$cache=fail"
12537 #echo 'Test with flag fails too!'
12539 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12540 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12545 rm -f conftest conftest.c conftest.o
12549 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12551 $as_echo "yes" >&6; }
12553 CFLAGS="$CFLAGS -D_BSD_SOURCE"
12555 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12558 #echo 'Test with flag is no!'
12560 #echo "$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
12561 #echo `$CC $CPPFLAGS $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1`
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12567 $as_echo "failed" >&6; }
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
12578 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
12579 cache=_D_GNU_SOURCE
12580 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12581 $as_echo_n "(cached) " >&6
12585 #include <netinet/in.h>
12588 struct in6_pktinfo inf;
12589 int a = (int)sizeof(inf);
12593 echo 'void f(){}' >>conftest.c
12594 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12595 eval "cv_prog_cc_flag_needed_$cache=no"
12598 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`"; then
12599 eval "cv_prog_cc_flag_needed_$cache=yes"
12601 eval "cv_prog_cc_flag_needed_$cache=fail"
12602 #echo 'Test with flag fails too!'
12604 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12605 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12610 rm -f conftest conftest.c conftest.o
12614 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616 $as_echo "yes" >&6; }
12618 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12620 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 #echo 'Test with flag is no!'
12625 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
12626 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1`
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12632 $as_echo "failed" >&6; }
12639 # check again for GNU_SOURCE for setresgid. May fail if setresgid
12640 # is not available at all. -D_FRSRESGID is to make this check unique.
12641 # otherwise we would get the previous cached result.
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
12646 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
12647 cache=_D_GNU_SOURCE__D_FRSRESGID
12648 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12649 $as_echo_n "(cached) " >&6
12653 #include <unistd.h>
12656 int a = setresgid(0,0,0);
12657 a = setresuid(0,0,0);
12661 echo 'void f(){}' >>conftest.c
12662 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12663 eval "cv_prog_cc_flag_needed_$cache=no"
12666 if test -z "`$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`"; then
12667 eval "cv_prog_cc_flag_needed_$cache=yes"
12669 eval "cv_prog_cc_flag_needed_$cache=fail"
12670 #echo 'Test with flag fails too!'
12672 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12673 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12678 rm -f conftest conftest.c conftest.o
12682 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684 $as_echo "yes" >&6; }
12686 CFLAGS="$CFLAGS -D_GNU_SOURCE"
12688 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 #echo 'Test with flag is no!'
12693 #echo "$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
12694 #echo `$CC $CPPFLAGS $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1`
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12700 $as_echo "failed" >&6; }
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
12711 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
12712 cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
12713 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12714 $as_echo_n "(cached) " >&6
12718 #include "confdefs.h"
12729 const char* str = NULL;
12730 t = ctime_r(&time, buf);
12731 str = gai_strerror(0);
12737 echo 'void f(){}' >>conftest.c
12738 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12739 eval "cv_prog_cc_flag_needed_$cache=no"
12742 if test -z "`$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`"; then
12743 eval "cv_prog_cc_flag_needed_$cache=yes"
12745 eval "cv_prog_cc_flag_needed_$cache=fail"
12746 #echo 'Test with flag fails too!'
12748 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12749 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12754 rm -f conftest conftest.c conftest.o
12758 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760 $as_echo "yes" >&6; }
12762 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
12764 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12767 #echo 'Test with flag is no!'
12769 #echo "$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
12770 #echo `$CC $CPPFLAGS $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1`
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12776 $as_echo "failed" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
12787 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
12788 cache=_D__EXTENSIONS__
12789 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
12790 $as_echo_n "(cached) " >&6
12794 #include "confdefs.h"
12795 #include <stdlib.h>
12797 #include <sys/time.h>
12801 #include <unistd.h>
12802 #ifdef HAVE_GETOPT_H
12803 #include <getopt.h>
12808 char **opts = NULL;
12812 a = getopt(2, opts, "a");
12819 echo 'void f(){}' >>conftest.c
12820 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
12821 eval "cv_prog_cc_flag_needed_$cache=no"
12824 if test -z "`$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`"; then
12825 eval "cv_prog_cc_flag_needed_$cache=yes"
12827 eval "cv_prog_cc_flag_needed_$cache=fail"
12828 #echo 'Test with flag fails too!'
12830 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12831 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12836 rm -f conftest conftest.c conftest.o
12840 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12842 $as_echo "yes" >&6; }
12844 CFLAGS="$CFLAGS -D__EXTENSIONS__"
12846 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 #echo 'Test with flag is no!'
12851 #echo "$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
12852 #echo `$CC $CPPFLAGS $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1`
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12858 $as_echo "failed" >&6; }
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12868 $as_echo_n "checking for inline... " >&6; }
12869 if ${ac_cv_c_inline+:} false; then :
12870 $as_echo_n "(cached) " >&6
12873 for ac_kw in inline __inline__ __inline; do
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12876 #ifndef __cplusplus
12878 static $ac_kw foo_t static_foo () {return 0; }
12879 $ac_kw foo_t foo () {return 0; }
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884 ac_cv_c_inline=$ac_kw
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 test "$ac_cv_c_inline" != no && break
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12892 $as_echo "$ac_cv_c_inline" >&6; }
12894 case $ac_cv_c_inline in
12897 case $ac_cv_c_inline in
12899 *) ac_val=$ac_cv_c_inline;;
12901 cat >>confdefs.h <<_ACEOF
12902 #ifndef __cplusplus
12903 #define inline $ac_val
12909 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12910 if test "x$ac_cv_type_int8_t" = xyes; then :
12914 cat >>confdefs.h <<_ACEOF
12915 #define int8_t char
12920 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12921 if test "x$ac_cv_type_int16_t" = xyes; then :
12925 cat >>confdefs.h <<_ACEOF
12926 #define int16_t short
12931 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12932 if test "x$ac_cv_type_int32_t" = xyes; then :
12936 cat >>confdefs.h <<_ACEOF
12937 #define int32_t int
12942 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12943 if test "x$ac_cv_type_int64_t" = xyes; then :
12947 cat >>confdefs.h <<_ACEOF
12948 #define int64_t long long
12953 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12954 if test "x$ac_cv_type_uint8_t" = xyes; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define uint8_t unsigned char
12964 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12965 if test "x$ac_cv_type_uint16_t" = xyes; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define uint16_t unsigned short
12975 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12976 if test "x$ac_cv_type_uint32_t" = xyes; then :
12980 cat >>confdefs.h <<_ACEOF
12981 #define uint32_t unsigned int
12986 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12987 if test "x$ac_cv_type_uint64_t" = xyes; then :
12991 cat >>confdefs.h <<_ACEOF
12992 #define uint64_t unsigned long long
12999 # Extract the first word of "doxygen", so it can be a program name with args.
13000 set dummy doxygen; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if ${ac_cv_prog_doxygen+:} false; then :
13004 $as_echo_n "(cached) " >&6
13006 if test -n "$doxygen"; then
13007 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_prog_doxygen="doxygen"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 doxygen=$ac_cv_prog_doxygen
13027 if test -n "$doxygen"; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
13029 $as_echo "$doxygen" >&6; }
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13037 # check to see if libraries are needed for these functions.
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13039 $as_echo_n "checking for library containing socket... " >&6; }
13040 if ${ac_cv_search_socket+:} false; then :
13041 $as_echo_n "(cached) " >&6
13043 ac_func_search_save_LIBS=$LIBS
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 /* Override any GCC internal prototype to avoid an error.
13048 Use char because int might match the return type of a GCC
13049 builtin and then its argument prototype would still apply. */
13062 for ac_lib in '' socket; do
13063 if test -z "$ac_lib"; then
13064 ac_res="none required"
13067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 ac_cv_search_socket=$ac_res
13072 rm -f core conftest.err conftest.$ac_objext \
13074 if ${ac_cv_search_socket+:} false; then :
13078 if ${ac_cv_search_socket+:} false; then :
13081 ac_cv_search_socket=no
13083 rm conftest.$ac_ext
13084 LIBS=$ac_func_search_save_LIBS
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13087 $as_echo "$ac_cv_search_socket" >&6; }
13088 ac_res=$ac_cv_search_socket
13089 if test "$ac_res" != no; then :
13090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
13095 $as_echo_n "checking for library containing inet_pton... " >&6; }
13096 if ${ac_cv_search_inet_pton+:} false; then :
13097 $as_echo_n "(cached) " >&6
13099 ac_func_search_save_LIBS=$LIBS
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13103 /* Override any GCC internal prototype to avoid an error.
13104 Use char because int might match the return type of a GCC
13105 builtin and then its argument prototype would still apply. */
13113 return inet_pton ();
13118 for ac_lib in '' nsl; do
13119 if test -z "$ac_lib"; then
13120 ac_res="none required"
13123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_search_inet_pton=$ac_res
13128 rm -f core conftest.err conftest.$ac_objext \
13130 if ${ac_cv_search_inet_pton+:} false; then :
13134 if ${ac_cv_search_inet_pton+:} false; then :
13137 ac_cv_search_inet_pton=no
13139 rm conftest.$ac_ext
13140 LIBS=$ac_func_search_save_LIBS
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
13143 $as_echo "$ac_cv_search_inet_pton" >&6; }
13144 ac_res=$ac_cv_search_inet_pton
13145 if test "$ac_res" != no; then :
13146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13153 # Check whether --with-drill was given.
13154 if test "${with_drill+set}" = set; then :
13155 withval=$with_drill;
13160 if test x_$with_drill != x_no ; then
13163 INSTALL_DRILL=install-drill
13165 UNINSTALL_DRILL=uninstall-drill
13167 CLEAN_DRILL=clean-drill
13169 LINT_DRILL=lint-drill
13171 if test -e $srcdir/drill/config.h -o -e drill/config.h ; then
13173 A config.h was detected in the drill subdirectory.
13174 This does not work with the --with-drill option.
13175 Please remove the config.h from the drill subdirectory
13176 or do not use the --with-drill option." "$LINENO" 5
13178 DRILL_CONFIG=" drill/drill.1"
13195 # Check whether --with-examples was given.
13196 if test "${with_examples+set}" = set; then :
13197 withval=$with_examples;
13202 if test x_$with_examples != x_no ; then
13205 INSTALL_EXAMPLES=install-examples
13207 UNINSTALL_EXAMPLES=uninstall-examples
13209 CLEAN_EXAMPLES=clean-examples
13211 LINT_EXAMPLES=lint-examples
13213 if test -e $srcdir/examples/config.h -o -e examples/config.h ; then
13215 A config.h was detected in the examples subdirectory.
13216 This does not work with the --with-examples option.
13217 Please remove the config.h from the examples subdirectory
13218 or do not use the --with-examples option." "$LINENO" 5
13220 EXAMPLES_CONFIG=" examples/ldns-dane.1 examples/ldns-verify-zone.1"
13224 INSTALL_EXAMPLES=""
13226 UNINSTALL_EXAMPLES=""
13235 # add option to disable installation of ldns-config script
13236 # Check whether --enable-ldns-config was given.
13237 if test "${enable_ldns_config+set}" = set; then :
13238 enableval=$enable_ldns_config; enable_ldns_config=$enableval
13240 enable_ldns_config=yes
13243 if test "x$enable_ldns_config" = xyes; then
13244 INSTALL_CONFIG=install-config
13246 INSTALL_CONFIG_MANPAGE=install-config-manpage
13248 UNINSTALL_CONFIG=uninstall-config
13250 UNINSTALL_CONFIG_MANPAGE=uninstall-config-manpage
13255 INSTALL_CONFIG_MANPAGE=""
13257 UNINSTALL_CONFIG=""
13259 UNINSTALL_CONFIG_MANPAGE=""
13263 # add option to disable library printing to stderr
13264 # Check whether --enable-stderr-msgs was given.
13265 if test "${enable_stderr_msgs+set}" = set; then :
13266 enableval=$enable_stderr_msgs; enable_stderr_msgs=$enableval
13268 enable_stderr_msgs=no
13271 case "$enable_stderr_msgs" in
13275 cat >>confdefs.h <<_ACEOF
13276 #define STDERR_MSGS 1
13284 ldns_with_pyldns=no
13285 ldns_with_pyldnsx=no
13287 # Check whether --with-pyldns was given.
13288 if test "${with_pyldns+set}" = set; then :
13289 withval=$with_pyldns;
13294 ldns_have_python=no
13295 if test x_$withval != x_no; then
13296 # ===========================================================================
13297 # http://www.gnu.org/software/autoconf-archive/ax_python_devel.html
13298 # ===========================================================================
13302 # AX_PYTHON_DEVEL([version])
13306 # Note: Defines as a precious variable "PYTHON_VERSION". Don't override it
13307 # in your configure.ac.
13309 # This macro checks for Python and tries to get the include path to
13310 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS)
13311 # output variables. It also exports $(PYTHON_EXTRA_LIBS) and
13312 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
13314 # You can search for some particular version of Python by passing a
13315 # parameter to this macro, for example ">= '2.3.1'", or "== '2.4'". Please
13316 # note that you *have* to pass also an operator along with the version to
13317 # match, and pay special attention to the single quotes surrounding the
13318 # version number. Don't use "PYTHON_VERSION" for this: that environment
13319 # variable is declared as precious and thus reserved for the end-user.
13321 # This macro should work for all versions of Python >= 2.1.0. As an end
13322 # user, you can disable the check for the python version by setting the
13323 # PYTHON_NOVERSIONCHECK environment variable to something else than the
13326 # If you need to use this macro for an older Python version, please
13327 # contact the authors. We're always open for feedback.
13331 # Copyright (c) 2009 Sebastian Huber <sebastian-huber@web.de>
13332 # Copyright (c) 2009 Alan W. Irwin
13333 # Copyright (c) 2009 Rafael Laboissiere <rafael@laboissiere.net>
13334 # Copyright (c) 2009 Andrew Collier
13335 # Copyright (c) 2009 Matteo Settenvini <matteo@member.fsf.org>
13336 # Copyright (c) 2009 Horst Knorr <hk_classes@knoda.org>
13337 # Copyright (c) 2013 Daniel Mullner <muellner@math.stanford.edu>
13339 # This program is free software: you can redistribute it and/or modify it
13340 # under the terms of the GNU General Public License as published by the
13341 # Free Software Foundation, either version 3 of the License, or (at your
13342 # option) any later version.
13344 # This program is distributed in the hope that it will be useful, but
13345 # WITHOUT ANY WARRANTY; without even the implied warranty of
13346 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13347 # Public License for more details.
13349 # You should have received a copy of the GNU General Public License along
13350 # with this program. If not, see <http://www.gnu.org/licenses/>.
13352 # As a special exception, the respective Autoconf Macro's copyright owner
13353 # gives unlimited permission to copy, distribute and modify the configure
13354 # scripts that are the output of Autoconf when processing the Macro. You
13355 # need not follow the terms of the GNU General Public License when using
13356 # or distributing such scripts, even though portions of the text of the
13357 # Macro appear in them. The GNU General Public License (GPL) does govern
13358 # all other use of the material that constitutes the Autoconf Macro.
13360 # This special exception to the GPL applies to versions of the Autoconf
13361 # Macro released by the Autoconf Archive. When you make and distribute a
13362 # modified version of the Autoconf Macro, you may extend this special
13363 # exception to the GPL to apply to your modified version as well.
13367 # This is what autoupdate's m4 run will expand. It fires
13368 # the warning (with _au_warn_XXX), outputs it into the
13369 # updated configure.ac (with AC_DIAGNOSE), and then outputs
13370 # the replacement expansion.
13373 # This is an auxiliary macro that is also run when
13374 # autoupdate runs m4. It simply calls m4_warning, but
13375 # we need a wrapper so that each warning is emitted only
13376 # once. We break the quoting in m4_warning's argument in
13377 # order to expand this macro's arguments, not AU_DEFUN's.
13380 # Finally, this is the expansion that is picked up by
13381 # autoconf. It tells the user to run autoupdate, and
13382 # then outputs the replacement expansion. We do not care
13383 # about autoupdate's warning because that contains
13384 # information on what to do *after* running autoupdate.
13388 ac_save_LIBS="$LIBS"
13391 # Allow the use of a (user set) custom python version
13395 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
13396 set dummy python$PYTHON_VERSION; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if ${ac_cv_path_PYTHON+:} false; then :
13400 $as_echo_n "(cached) " >&6
13404 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $PATH
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 PYTHON=$ac_cv_path_PYTHON
13426 if test -n "$PYTHON"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13428 $as_echo "$PYTHON" >&6; }
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13435 if test -z "$PYTHON"; then
13436 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
13441 # Check for a version of Python >= 2.1.0
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
13444 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
13445 ac_supports_python_ver=`$PYTHON -c "import sys; \
13446 ver = sys.version.split ()[0]; \
13447 print (ver >= '2.1.0')"`
13448 if test "$ac_supports_python_ver" != "True"; then
13449 if test -z "$PYTHON_NOVERSIONCHECK"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13455 This version of the AC_PYTHON_DEVEL macro
13456 doesn't work properly with versions of Python before
13457 2.1.0. You may need to re-run configure, setting the
13458 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
13459 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
13460 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
13461 to something else than an empty string.
13463 See \`config.log' for more details" "$LINENO" 5; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
13466 $as_echo "skip at user request" >&6; }
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13474 # if the macro parameter ``version'' is set, honour it
13476 if test -n ">= '2.4.0'"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.4.0'" >&5
13478 $as_echo_n "checking for a version of Python >= '2.4.0'... " >&6; }
13479 ac_supports_python_ver=`$PYTHON -c "import sys; \
13480 ver = sys.version.split ()[0]; \
13481 print (ver >= '2.4.0')"`
13482 if test "$ac_supports_python_ver" = "True"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13484 $as_echo "yes" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 as_fn_error $? "this package requires Python >= '2.4.0'.
13489 If you have it installed, but it isn't the default Python
13490 interpreter in your system path, please pass the PYTHON_VERSION
13491 variable to configure. See \`\`configure --help'' for reference.
13498 # Check if you have distutils, else fail
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
13501 $as_echo_n "checking for the distutils Python package... " >&6; }
13502 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
13503 if test -z "$ac_distutils_result"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13505 $as_echo "yes" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 as_fn_error $? "cannot import Python module \"distutils\".
13510 Please check your Python installation. The error was:
13511 $ac_distutils_result" "$LINENO" 5
13516 # Check for Python include path
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
13519 $as_echo_n "checking for Python include path... " >&6; }
13520 if test -z "$PYTHON_CPPFLAGS"; then
13521 python_path=`$PYTHON -c "import distutils.sysconfig; \
13522 print (distutils.sysconfig.get_python_inc ());"`
13523 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
13524 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
13525 if test -n "${python_path}"; then
13526 if test "${plat_python_path}" != "${python_path}"; then
13527 python_path="-I$python_path -I$plat_python_path"
13529 python_path="-I$python_path"
13532 PYTHON_CPPFLAGS=$python_path
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
13535 $as_echo "$PYTHON_CPPFLAGS" >&6; }
13539 # Check for Python library path
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
13542 $as_echo_n "checking for Python library path... " >&6; }
13543 if test -z "$PYTHON_LDFLAGS"; then
13544 # (makes two attempts to ensure we've got a version number
13545 # from the interpreter)
13546 ac_python_version=`cat<<EOD | $PYTHON -
13548 # join all versioning strings, on some systems
13549 # major/minor numbers could be in different list elements
13550 from distutils.sysconfig import *
13551 e = get_config_var('VERSION')
13556 if test -z "$ac_python_version"; then
13557 if test -n "$PYTHON_VERSION"; then
13558 ac_python_version=$PYTHON_VERSION
13560 ac_python_version=`$PYTHON -c "import sys; \
13561 print (sys.version[:3])"`
13565 # Make the versioning information available to the compiler
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_PYTHON "$ac_python_version"
13572 # First, the library directory:
13573 ac_python_libdir=`cat<<EOD | $PYTHON -
13575 # There should be only one
13576 import distutils.sysconfig
13577 e = distutils.sysconfig.get_config_var('LIBDIR')
13582 # Now, for the library:
13583 ac_python_library=`cat<<EOD | $PYTHON -
13585 import distutils.sysconfig
13586 c = distutils.sysconfig.get_config_vars()
13587 if 'LDVERSION' in c:
13588 print ('python'+c['LDVERSION'])
13590 print ('python'+c['VERSION'])
13593 # This small piece shamelessly adapted from PostgreSQL python macro;
13594 # credits goes to momjian, I think. I'd like to put the right name
13595 # in the credits, if someone can point me in the right direction... ?
13597 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
13599 # use the official shared library
13600 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
13601 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
13603 # old way: use libpython from python_configdir
13604 ac_python_libdir=`$PYTHON -c \
13605 "from distutils.sysconfig import get_python_lib as f; \
13607 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
13608 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
13611 if test -z "PYTHON_LDFLAGS"; then
13613 Cannot determine location of your Python DSO. Please check it was installed with
13614 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
13619 $as_echo "$PYTHON_LDFLAGS" >&6; }
13623 # Check for site packages
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
13626 $as_echo_n "checking for Python site-packages path... " >&6; }
13627 if test -z "$PYTHON_SITE_PKG"; then
13628 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
13629 print (distutils.sysconfig.get_python_lib(1,0));"`
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
13632 $as_echo "$PYTHON_SITE_PKG" >&6; }
13636 # libraries which must be linked in when embedding
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
13639 $as_echo_n "checking python extra libraries... " >&6; }
13640 if test -z "$PYTHON_EXTRA_LIBS"; then
13641 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
13642 conf = distutils.sysconfig.get_config_var; \
13643 print (conf('LIBS'))"`
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
13646 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
13650 # linking flags needed when embedding
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
13653 $as_echo_n "checking python extra linking flags... " >&6; }
13654 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
13655 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
13656 conf = distutils.sysconfig.get_config_var; \
13657 print (conf('LINKFORSHARED'))"`
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
13660 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
13664 # final check to see if everything compiles alright
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
13667 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
13668 # save current global flags
13669 ac_save_LIBS="$LIBS"
13670 ac_save_CPPFLAGS="$CPPFLAGS"
13671 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
13672 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 #include <Python.h>
13692 if ac_fn_c_try_link "$LINENO"; then :
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13700 ac_cpp='$CPP $CPPFLAGS'
13701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13705 # turn back to default flags
13706 CPPFLAGS="$ac_save_CPPFLAGS"
13707 LIBS="$ac_save_LIBS"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
13710 $as_echo "$pythonexists" >&6; }
13712 if test ! "x$pythonexists" = "xyes"; then
13713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13716 Could not link test program to Python. Maybe the main Python library has been
13717 installed in some non-standard library path. If so, pass it to configure,
13718 via the LDFLAGS environment variable.
13719 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
13720 ============================================================================
13722 You probably have to install the development version of the Python package
13723 for your distribution. The exact name of this package varies among them.
13724 ============================================================================
13726 See \`config.log' for more details" "$LINENO" 5; }
13734 if test ! -z "$ac_python_version"; then
13735 ldns_have_python=yes
13738 # pass additional Python 3 option to SWIG
13739 if test `$PYTHON -c "import sys; \
13740 ver = sys.version.split()[0]; \
13741 print(ver >= '3')"` = "True"; then
13742 SWIGPY3="-py3 -DPY3"
13747 if test x_$ldns_have_python != x_no; then
13748 # ===========================================================================
13749 # http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html
13750 # ===========================================================================
13754 # AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found])
13758 # This macro searches for a SWIG installation on your system. If found,
13759 # then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is
13760 # found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd.
13762 # You can use the optional first argument to check if the version of the
13763 # available SWIG is greater than or equal to the value of the argument. It
13764 # should have the format: N[.N[.N]] (N is a number between 0 and 999. Only
13765 # the first N is mandatory.) If the version argument is given (e.g.
13766 # 1.3.17), AX_PKG_SWIG checks that the swig package is this version number
13769 # As usual, action-if-found is executed if SWIG is found, otherwise
13770 # action-if-not-found is executed.
13772 # In configure.in, use as:
13774 # AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ])
13775 # AX_SWIG_ENABLE_CXX
13776 # AX_SWIG_MULTI_MODULE_SUPPORT
13781 # Copyright (c) 2008 Sebastian Huber <sebastian-huber@web.de>
13782 # Copyright (c) 2008 Alan W. Irwin <irwin@beluga.phys.uvic.ca>
13783 # Copyright (c) 2008 Rafael Laboissiere <rafael@laboissiere.net>
13784 # Copyright (c) 2008 Andrew Collier <colliera@ukzn.ac.za>
13785 # Copyright (c) 2011 Murray Cumming <murrayc@openismus.com>
13787 # This program is free software; you can redistribute it and/or modify it
13788 # under the terms of the GNU General Public License as published by the
13789 # Free Software Foundation; either version 2 of the License, or (at your
13790 # option) any later version.
13792 # This program is distributed in the hope that it will be useful, but
13793 # WITHOUT ANY WARRANTY; without even the implied warranty of
13794 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13795 # Public License for more details.
13797 # You should have received a copy of the GNU General Public License along
13798 # with this program. If not, see <http://www.gnu.org/licenses/>.
13800 # As a special exception, the respective Autoconf Macro's copyright owner
13801 # gives unlimited permission to copy, distribute and modify the configure
13802 # scripts that are the output of Autoconf when processing the Macro. You
13803 # need not follow the terms of the GNU General Public License when using
13804 # or distributing such scripts, even though portions of the text of the
13805 # Macro appear in them. The GNU General Public License (GPL) does govern
13806 # all other use of the material that constitutes the Autoconf Macro.
13808 # This special exception to the GPL applies to versions of the Autoconf
13809 # Macro released by the Autoconf Archive. When you make and distribute a
13810 # modified version of the Autoconf Macro, you may extend this special
13811 # exception to the GPL to apply to your modified version as well.
13818 # check for >=SWIG-2.0.4 if Python 3.2 used
13819 if test `$PYTHON -c "import sys; \
13820 ver = sys.version.split()[0]; \
13821 print(ver >= '3.2')"` = "True"; then
13823 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13824 for ac_prog in swig2.0 swig
13826 # Extract the first word of "$ac_prog", so it can be a program name with args.
13827 set dummy $ac_prog; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if ${ac_cv_path_SWIG+:} false; then :
13831 $as_echo_n "(cached) " >&6
13835 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 for as_dir in $PATH
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13845 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 SWIG=$ac_cv_path_SWIG
13857 if test -n "$SWIG"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13859 $as_echo "$SWIG" >&6; }
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13866 test -n "$SWIG" && break
13869 if test -z "$SWIG" ; then
13870 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13871 elif test -n "2.0.4" ; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13873 $as_echo_n "checking SWIG version... " >&6; }
13874 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'`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13876 $as_echo "$swig_version" >&6; }
13877 if test -n "$swig_version" ; then
13878 # Calculate the required version number components
13880 required_major=`echo $required | sed 's/[^0-9].*//'`
13881 if test -z "$required_major" ; then
13884 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13885 required_minor=`echo $required | sed 's/[^0-9].*//'`
13886 if test -z "$required_minor" ; then
13889 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
13890 required_patch=`echo $required | sed 's/[^0-9].*//'`
13891 if test -z "$required_patch" ; then
13894 # Calculate the available version number components
13895 available=$swig_version
13896 available_major=`echo $available | sed 's/[^0-9].*//'`
13897 if test -z "$available_major" ; then
13900 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13901 available_minor=`echo $available | sed 's/[^0-9].*//'`
13902 if test -z "$available_minor" ; then
13905 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
13906 available_patch=`echo $available | sed 's/[^0-9].*//'`
13907 if test -z "$available_patch" ; then
13910 # Convert the version tuple into a single number for easier comparison.
13911 # Using base 100 should be safe since SWIG internally uses BCD values
13912 # to encode its version number.
13913 required_swig_vernum=`expr $required_major \* 10000 \
13914 \+ $required_minor \* 100 \+ $required_patch`
13915 available_swig_vernum=`expr $available_major \* 10000 \
13916 \+ $available_minor \* 100 \+ $available_patch`
13918 if test $available_swig_vernum -lt $required_swig_vernum; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&5
13920 $as_echo "$as_me: WARNING: SWIG version >= 2.0.4 is required. You have $swig_version." >&2;}
13922 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
13925 $as_echo_n "checking for SWIG library... " >&6; }
13926 SWIG_LIB=`$SWIG -swiglib`
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
13928 $as_echo "$SWIG_LIB" >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
13933 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
13935 as_fn_error $? "SWIG-2.0.4 is required to build pyldns for Python 3.2 and greater." "$LINENO" 5
13942 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
13943 for ac_prog in swig2.0 swig
13945 # Extract the first word of "$ac_prog", so it can be a program name with args.
13946 set dummy $ac_prog; ac_word=$2
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13948 $as_echo_n "checking for $ac_word... " >&6; }
13949 if ${ac_cv_path_SWIG+:} false; then :
13950 $as_echo_n "(cached) " >&6
13954 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13964 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
13965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 SWIG=$ac_cv_path_SWIG
13976 if test -n "$SWIG"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
13978 $as_echo "$SWIG" >&6; }
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13985 test -n "$SWIG" && break
13988 if test -z "$SWIG" ; then
13990 elif test -n "" ; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
13992 $as_echo_n "checking SWIG version... " >&6; }
13993 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'`
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
13995 $as_echo "$swig_version" >&6; }
13996 if test -n "$swig_version" ; then
13997 # Calculate the required version number components
13999 required_major=`echo $required | sed 's/[^0-9].*//'`
14000 if test -z "$required_major" ; then
14003 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14004 required_minor=`echo $required | sed 's/[^0-9].*//'`
14005 if test -z "$required_minor" ; then
14008 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14009 required_patch=`echo $required | sed 's/[^0-9].*//'`
14010 if test -z "$required_patch" ; then
14013 # Calculate the available version number components
14014 available=$swig_version
14015 available_major=`echo $available | sed 's/[^0-9].*//'`
14016 if test -z "$available_major" ; then
14019 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14020 available_minor=`echo $available | sed 's/[^0-9].*//'`
14021 if test -z "$available_minor" ; then
14024 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14025 available_patch=`echo $available | sed 's/[^0-9].*//'`
14026 if test -z "$available_patch" ; then
14029 # Convert the version tuple into a single number for easier comparison.
14030 # Using base 100 should be safe since SWIG internally uses BCD values
14031 # to encode its version number.
14032 required_swig_vernum=`expr $required_major \* 10000 \
14033 \+ $required_minor \* 100 \+ $required_patch`
14034 available_swig_vernum=`expr $available_major \* 10000 \
14035 \+ $available_minor \* 100 \+ $available_patch`
14037 if test $available_swig_vernum -lt $required_swig_vernum; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
14039 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
14044 $as_echo_n "checking for SWIG library... " >&6; }
14045 SWIG_LIB=`$SWIG -swiglib`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
14047 $as_echo "$SWIG_LIB" >&6; }
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14052 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14061 if test ! -x "$SWIG"; then
14062 as_fn_error $? "failed to find SWIG tool, install it, or do not build pyldns" "$LINENO" 5
14065 $as_echo "#define HAVE_SWIG 1" >>confdefs.h
14071 ldns_with_pyldns=yes
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** don't have Python, skipping SWIG, no pyldns ***" >&5
14075 $as_echo "*** don't have Python, skipping SWIG, no pyldns ***" >&6; } # '
14078 # xtra cflags for pyldns
14079 if test x_$ldns_have_python != x_no; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
14083 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
14084 cache=`echo fno-strict-aliasing | sed 'y%.=/+-%___p_%'`
14085 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14086 $as_echo_n "(cached) " >&6
14089 echo 'void f(void){}' >conftest.c
14090 if test -z "`$CC $CPPFLAGS $CFLAGS -fno-strict-aliasing -c conftest.c 2>&1`"; then
14091 eval "cv_prog_cc_flag_$cache=yes"
14093 eval "cv_prog_cc_flag_$cache=no"
14095 rm -f conftest conftest.o conftest.c
14099 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14101 $as_echo "yes" >&6; }
14103 PYTHON_X_CFLAGS="-fno-strict-aliasing"
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
14114 $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
14115 cache=`echo Wno-missing-field-initializers | sed 'y%.=/+-%___p_%'`
14116 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14117 $as_echo_n "(cached) " >&6
14120 echo 'void f(void){}' >conftest.c
14121 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-missing-field-initializers -c conftest.c 2>&1`"; then
14122 eval "cv_prog_cc_flag_$cache=yes"
14124 eval "cv_prog_cc_flag_$cache=no"
14126 rm -f conftest conftest.o conftest.c
14130 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132 $as_echo "yes" >&6; }
14134 PYTHON_X_CFLAGS="-Wno-missing-field-initializers $PYTHON_X_CFLAGS"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
14145 $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
14146 cache=`echo Wno-unused-parameter | sed 'y%.=/+-%___p_%'`
14147 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14148 $as_echo_n "(cached) " >&6
14151 echo 'void f(void){}' >conftest.c
14152 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-parameter -c conftest.c 2>&1`"; then
14153 eval "cv_prog_cc_flag_$cache=yes"
14155 eval "cv_prog_cc_flag_$cache=no"
14157 rm -f conftest conftest.o conftest.c
14161 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163 $as_echo "yes" >&6; }
14165 PYTHON_X_CFLAGS="-Wno-unused-parameter $PYTHON_X_CFLAGS"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168 $as_echo "no" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-variable" >&5
14176 $as_echo_n "checking whether $CC supports -Wno-unused-variable... " >&6; }
14177 cache=`echo Wno-unused-variable | sed 'y%.=/+-%___p_%'`
14178 if eval \${cv_prog_cc_flag_$cache+:} false; then :
14179 $as_echo_n "(cached) " >&6
14182 echo 'void f(void){}' >conftest.c
14183 if test -z "`$CC $CPPFLAGS $CFLAGS -Wno-unused-variable -c conftest.c 2>&1`"; then
14184 eval "cv_prog_cc_flag_$cache=yes"
14186 eval "cv_prog_cc_flag_$cache=no"
14188 rm -f conftest conftest.o conftest.c
14192 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14194 $as_echo "yes" >&6; }
14196 PYTHON_X_CFLAGS="-Wno-unused-variable $PYTHON_X_CFLAGS"
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14208 # Check for pyldnsx
14210 # Check whether --with-pyldnsx was given.
14211 if test "${with_pyldnsx+set}" = set; then :
14212 withval=$with_pyldnsx;
14214 withval="with_pyldns"
14217 if test x_$withval != x_no; then
14218 if test x_$ldns_with_pyldns != x_no; then
14221 ldns_with_pyldnsx=yes
14223 if test x_$withval != x_with_pyldns; then
14224 as_fn_error $? "--with-pyldns is needed for the ldnsx python module" "$LINENO" 5
14229 if test x_$ldns_with_pyldns != x_no; then
14230 PYLDNSINST="install-pyldns"
14231 PYLDNSUNINST="uninstall-pyldns"
14238 if test x_$ldns_with_pyldnsx != x_no; then
14239 PYLDNSXINST="install-pyldnsx"
14240 PYLDNSXUNINST="uninstall-pyldnsx"
14249 ldns_with_p5_dns_ldns=no
14251 # Check whether --with-p5-dns-ldns was given.
14252 if test "${with_p5_dns_ldns+set}" = set; then :
14253 withval=$with_p5_dns_ldns;
14259 if test x_$withval != x_no; then
14260 # Extract the first word of "perl", so it can be a program name with args.
14261 set dummy perl; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if ${ac_cv_path_PERL+:} false; then :
14265 $as_echo_n "(cached) " >&6
14269 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273 for as_dir in $PATH
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
14278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14279 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14290 PERL=$ac_cv_path_PERL
14291 if test -n "$PERL"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14293 $as_echo "$PERL" >&6; }
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14300 if test -z "$PERL"; then
14301 as_fn_error $? "Cannot find perl in your system path" "$LINENO" 5
14303 P5_DNS_LDNS="p5-dns-ldns"
14304 TEST_P5_DNS_LDNS="test-p5-dns-ldns"
14305 INSTALL_P5_DNS_LDNS="install-p5-dns-ldns"
14306 UNINSTALL_P5_DNS_LDNS="uninstall-p5-dns-ldns"
14307 CLEAN_P5_DNS_LDNS="clean-p5-dns-ldns"
14311 TEST_P5_DNS_LDNS=""
14312 INSTALL_P5_DNS_LDNS=""
14313 UNINSTALL_P5_DNS_LDNS=""
14314 CLEAN_P5_DNS_LDNS=""
14320 # skip these tests, we do not need them.
14329 # always use ./libtool unless override from commandline (libtool=mylibtool)
14330 if test -z "$libtool"; then
14331 libtool="./libtool"
14334 # avoid libtool max commandline length test on systems that fork slowly.
14336 if echo "$host_os" | grep "sunos4" >/dev/null; then
14337 lt_cv_sys_max_cmd_len=32750;
14339 if test -n "$ac_tool_prefix"; then
14340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14341 set dummy ${ac_tool_prefix}ar; ac_word=$2
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343 $as_echo_n "checking for $ac_word... " >&6; }
14344 if ${ac_cv_path_AR+:} false; then :
14345 $as_echo_n "(cached) " >&6
14349 ac_cv_path_AR="$AR" # Let the user override the test with a path.
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14356 test -z "$as_dir" && as_dir=.
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14359 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
14360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 if test -n "$AR"; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14373 $as_echo "$AR" >&6; }
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 $as_echo "no" >&6; }
14381 if test -z "$ac_cv_path_AR"; then
14383 # Extract the first word of "ar", so it can be a program name with args.
14384 set dummy ar; ac_word=$2
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386 $as_echo_n "checking for $ac_word... " >&6; }
14387 if ${ac_cv_path_ac_pt_AR+:} false; then :
14388 $as_echo_n "(cached) " >&6
14392 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14399 test -z "$as_dir" && as_dir=.
14400 for ac_exec_ext in '' $ac_executable_extensions; do
14401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14402 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
14403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 ac_pt_AR=$ac_cv_path_ac_pt_AR
14414 if test -n "$ac_pt_AR"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
14416 $as_echo "$ac_pt_AR" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14422 if test "x$ac_pt_AR" = x; then
14425 case $cross_compiling:$ac_tool_warned in
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14429 ac_tool_warned=yes ;;
14434 AR="$ac_cv_path_AR"
14437 if test $AR = false; then
14438 as_fn_error $? "Cannot find 'ar', please extend PATH to include it" "$LINENO" 5
14446 tmp_CPPFLAGS=$CPPFLAGS
14447 tmp_LDFLAGS=$LDFLAGS
14452 # Check whether --with-ssl was given.
14453 if test "${with_ssl+set}" = set; then :
14464 if test x_$withval != x_no; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
14466 $as_echo_n "checking for SSL... " >&6; }
14467 if test x_$withval = x_ -o x_$withval = x_yes; then
14468 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
14470 for dir in $withval; do
14472 if test -f "$dir/include/openssl/ssl.h"; then
14475 cat >>confdefs.h <<_ACEOF
14476 #define HAVE_SSL /**/
14479 if test "$ssldir" != "/usr"; then
14480 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
14481 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
14486 if test x_$found_ssl != x_yes; then
14487 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
14490 $as_echo "found in $ssldir" >&6; }
14492 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
14493 LDFLAGS="$LDFLAGS -L$ssldir/lib"
14494 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
14496 if test "x$enable_rpath" = xyes; then
14497 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
14498 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
14505 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
14506 LIBS="$LIBS -lcrypto"
14507 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14515 int HMAC_CTX_init(void);
14516 (void)HMAC_CTX_init();
14522 if ac_fn_c_try_link "$LINENO"; then :
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14525 $as_echo "yes" >&6; }
14527 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 # check if -lwsock32 or -lgdi32 are needed.
14536 BAKSSLLIBS="$LIBSSL_LIBS"
14537 LIBS="$LIBS -lgdi32"
14538 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
14540 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14548 int HMAC_CTX_init(void);
14549 (void)HMAC_CTX_init();
14555 if ac_fn_c_try_link "$LINENO"; then :
14558 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14561 $as_echo "yes" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14568 LIBSSL_LIBS="$BAKSSLLIBS"
14570 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
14572 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14580 int HMAC_CTX_init(void);
14581 (void)HMAC_CTX_init();
14587 if ac_fn_c_try_link "$LINENO"; then :
14590 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14593 $as_echo "yes" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
14602 rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14606 rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14610 rm -f core conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14615 # openssl engine functionality needs dlopen().
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14618 $as_echo_n "checking for library containing dlopen... " >&6; }
14619 if ${ac_cv_search_dlopen+:} false; then :
14620 $as_echo_n "(cached) " >&6
14622 ac_func_search_save_LIBS=$LIBS
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14626 /* Override any GCC internal prototype to avoid an error.
14627 Use char because int might match the return type of a GCC
14628 builtin and then its argument prototype would still apply. */
14641 for ac_lib in '' dl; do
14642 if test -z "$ac_lib"; then
14643 ac_res="none required"
14646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14648 if ac_fn_c_try_link "$LINENO"; then :
14649 ac_cv_search_dlopen=$ac_res
14651 rm -f core conftest.err conftest.$ac_objext \
14653 if ${ac_cv_search_dlopen+:} false; then :
14657 if ${ac_cv_search_dlopen+:} false; then :
14660 ac_cv_search_dlopen=no
14662 rm conftest.$ac_ext
14663 LIBS=$ac_func_search_save_LIBS
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14666 $as_echo "$ac_cv_search_dlopen" >&6; }
14667 ac_res=$ac_cv_search_dlopen
14668 if test "$ac_res" != no; then :
14669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14673 if test "$LIBS" != "$BAKLIBS"; then
14674 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
14677 for ac_header in openssl/ssl.h
14679 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
14681 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14682 cat >>confdefs.h <<_ACEOF
14683 #define HAVE_OPENSSL_SSL_H 1
14690 for ac_header in openssl/err.h
14692 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
14694 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
14695 cat >>confdefs.h <<_ACEOF
14696 #define HAVE_OPENSSL_ERR_H 1
14703 for ac_header in openssl/rand.h
14705 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
14707 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
14708 cat >>confdefs.h <<_ACEOF
14709 #define HAVE_OPENSSL_RAND_H 1
14719 for ac_func in EVP_sha256
14721 ac_fn_c_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
14722 if test "x$ac_cv_func_EVP_sha256" = xyes; then :
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_EVP_SHA256 1
14731 # for macosx, see if glibtool exists and use that
14732 # BSD's need to know the version...
14733 #AC_CHECK_PROG(glibtool, glibtool, [glibtool], )
14734 #AC_CHECK_PROGS(libtool, [libtool15 libtool], [./libtool])
14736 # Check whether --enable-sha2 was given.
14737 if test "${enable_sha2+set}" = set; then :
14738 enableval=$enable_sha2;
14741 case "$enable_sha2" in
14745 if test "x$HAVE_SSL" != "xyes"; then
14746 as_fn_error $? "SHA2 enabled, but no SSL support" "$LINENO" 5
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 and SHA512" >&5
14749 $as_echo_n "checking for SHA256 and SHA512... " >&6; }
14750 ac_fn_c_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init"
14751 if test "x$ac_cv_func_SHA256_Init" = xyes; then :
14755 as_fn_error $? "No SHA2 functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-sha2" "$LINENO" 5
14760 cat >>confdefs.h <<_ACEOF
14767 # Check whether --enable-gost was given.
14768 if test "${enable_gost+set}" = set; then :
14769 enableval=$enable_gost;
14772 case "$enable_gost" in
14775 *) if test "x$HAVE_SSL" != "xyes"; then
14776 as_fn_error $? "GOST enabled, but no SSL support" "$LINENO" 5
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST" >&5
14779 $as_echo_n "checking for GOST... " >&6; }
14780 ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
14781 if test "x$ac_cv_func_EVP_PKEY_set_type_str" = xyes; then :
14784 as_fn_error $? "OpenSSL >= 1.0.0 is needed for GOST support or rerun with --disable-gost" "$LINENO" 5
14787 ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
14788 if test "x$ac_cv_func_EC_KEY_new" = xyes; then :
14791 as_fn_error $? "No ECC functions found in OpenSSL: please upgrade OpenSSL or rerun with --disable-gost" "$LINENO" 5
14795 cat >>confdefs.h <<_ACEOF
14802 # Check whether --enable-ecdsa was given.
14803 if test "${enable_ecdsa+set}" = set; then :
14804 enableval=$enable_ecdsa;
14807 case "$enable_ecdsa" in
14810 *) if test "x$HAVE_SSL" != "xyes"; then
14811 as_fn_error $? "ECDSA enabled, but no SSL support" "$LINENO" 5
14813 ac_fn_c_check_func "$LINENO" "ECDSA_sign" "ac_cv_func_ECDSA_sign"
14814 if test "x$ac_cv_func_ECDSA_sign" = xyes; then :
14817 as_fn_error $? "OpenSSL does not support ECDSA: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14820 ac_fn_c_check_func "$LINENO" "SHA384_Init" "ac_cv_func_SHA384_Init"
14821 if test "x$ac_cv_func_SHA384_Init" = xyes; then :
14824 as_fn_error $? "OpenSSL does not support SHA384: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14827 ac_fn_c_check_decl "$LINENO" "NID_X9_62_prime256v1" "ac_cv_have_decl_NID_X9_62_prime256v1" "$ac_includes_default
14828 #include <openssl/evp.h>
14831 if test "x$ac_cv_have_decl_NID_X9_62_prime256v1" = xyes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_DECL_NID_X9_62_PRIME256V1 $ac_have_decl
14840 if test $ac_have_decl = 1; then :
14843 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14845 ac_fn_c_check_decl "$LINENO" "NID_secp384r1" "ac_cv_have_decl_NID_secp384r1" "$ac_includes_default
14846 #include <openssl/evp.h>
14849 if test "x$ac_cv_have_decl_NID_secp384r1" = xyes; then :
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_DECL_NID_SECP384R1 $ac_have_decl
14858 if test $ac_have_decl = 1; then :
14861 as_fn_error $? "OpenSSL does not support the ECDSA curves: please upgrade OpenSSL or rerun with --disable-ecdsa" "$LINENO" 5
14864 # we now know we have ECDSA and the required curves.
14866 cat >>confdefs.h <<_ACEOF
14867 #define USE_ECDSA 1
14873 # Check whether --enable-dane was given.
14874 if test "${enable_dane+set}" = set; then :
14875 enableval=$enable_dane;
14878 case "$enable_dane" in
14880 ldns_build_config_use_dane=0
14883 *) if test "x$HAVE_SSL" != "xyes"; then
14884 as_fn_error $? "DANE enabled, but no SSL support" "$LINENO" 5
14886 ac_fn_c_check_func "$LINENO" "X509_check_ca" "ac_cv_func_X509_check_ca"
14887 if test "x$ac_cv_func_X509_check_ca" = xyes; then :
14890 as_fn_error $? "OpenSSL does not support DANE: please upgrade OpenSSL or rerun with --disable-dane" "$LINENO" 5
14894 cat >>confdefs.h <<_ACEOF
14898 ldns_build_config_use_dane=1
14903 # Check whether --enable-rrtype-ninfo was given.
14904 if test "${enable_rrtype_ninfo+set}" = set; then :
14905 enableval=$enable_rrtype_ninfo;
14908 case "$enable_rrtype_ninfo" in
14911 cat >>confdefs.h <<_ACEOF
14912 #define RRTYPE_NINFO /**/
14919 # Check whether --enable-rrtype-rkey was given.
14920 if test "${enable_rrtype_rkey+set}" = set; then :
14921 enableval=$enable_rrtype_rkey;
14924 case "$enable_rrtype_rkey" in
14927 cat >>confdefs.h <<_ACEOF
14928 #define RRTYPE_RKEY /**/
14935 # Check whether --enable-rrtype-cds was given.
14936 if test "${enable_rrtype_cds+set}" = set; then :
14937 enableval=$enable_rrtype_cds;
14940 case "$enable_rrtype_cds" in
14943 cat >>confdefs.h <<_ACEOF
14944 #define RRTYPE_CDS /**/
14951 # Check whether --enable-rrtype-uri was given.
14952 if test "${enable_rrtype_uri+set}" = set; then :
14953 enableval=$enable_rrtype_uri;
14956 case "$enable_rrtype_uri" in
14959 cat >>confdefs.h <<_ACEOF
14960 #define RRTYPE_URI /**/
14967 # Check whether --enable-rrtype-ta was given.
14968 if test "${enable_rrtype_ta+set}" = set; then :
14969 enableval=$enable_rrtype_ta;
14972 case "$enable_rrtype_ta" in
14975 cat >>confdefs.h <<_ACEOF
14976 #define RRTYPE_TA /**/
14987 if test "x$HAVE_SSL" = "xyes"; then
14988 LIBSSL_SSL_LIBS="-lssl $LIBSSL_LIBS"
14991 CPPFLAGS=$tmp_CPPFLAGS
14992 LDFLAGS=$tmp_LDFLAGS
14996 # add option to disable the evil rpath
14998 # Check whether --enable-rpath was given.
14999 if test "${enable_rpath+set}" = set; then :
15000 enableval=$enable_rpath; enable_rpath=$enableval
15005 if test "x$enable_rpath" = xno; then
15006 ac_config_commands="$ac_config_commands disable-rpath"
15011 #AC_RUN_IFELSE([AC_LANG_SOURCE(
15016 #char *cp = (char*)&one;
15023 #AC_DEFINE(CONFCHECK_LITTLE_ENDIAN, 1, [system appears to be little-endian])
15026 # should define WORDS_BIGENDIAN if the system is big-endian
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15028 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15029 if ${ac_cv_c_bigendian+:} false; then :
15030 $as_echo_n "(cached) " >&6
15032 ac_cv_c_bigendian=unknown
15033 # See if we're dealing with a universal compiler.
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #ifndef __APPLE_CC__
15037 not a universal capable compiler
15042 if ac_fn_c_try_compile "$LINENO"; then :
15044 # Check for potential -arch flags. It is not universal unless
15045 # there are at least two -arch flags with different values.
15048 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15049 if test -n "$ac_prev"; then
15051 i?86 | x86_64 | ppc | ppc64)
15052 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15055 ac_cv_c_bigendian=universal
15061 elif test "x$ac_word" = "x-arch"; then
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 if test $ac_cv_c_bigendian = unknown; then
15068 # See if sys/param.h defines the BYTE_ORDER macro.
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #include <sys/types.h>
15072 #include <sys/param.h>
15077 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15078 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15080 bogus endian macros
15087 if ac_fn_c_try_compile "$LINENO"; then :
15088 # It does; now see whether it defined to BIG_ENDIAN or not.
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 #include <sys/types.h>
15092 #include <sys/param.h>
15097 #if BYTE_ORDER != BIG_ENDIAN
15105 if ac_fn_c_try_compile "$LINENO"; then :
15106 ac_cv_c_bigendian=yes
15108 ac_cv_c_bigendian=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 if test $ac_cv_c_bigendian = unknown; then
15115 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <limits.h>
15123 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15124 bogus endian macros
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132 # It does; now see whether it defined to _BIG_ENDIAN or not.
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15135 #include <limits.h>
15140 #ifndef _BIG_ENDIAN
15148 if ac_fn_c_try_compile "$LINENO"; then :
15149 ac_cv_c_bigendian=yes
15151 ac_cv_c_bigendian=no
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 if test $ac_cv_c_bigendian = unknown; then
15158 # Compile a test program.
15159 if test "$cross_compiling" = yes; then :
15160 # Try to guess by grepping values from an object file.
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15163 short int ascii_mm[] =
15164 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15165 short int ascii_ii[] =
15166 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15167 int use_ascii (int i) {
15168 return ascii_mm[i] + ascii_ii[i];
15170 short int ebcdic_ii[] =
15171 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15172 short int ebcdic_mm[] =
15173 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15174 int use_ebcdic (int i) {
15175 return ebcdic_mm[i] + ebcdic_ii[i];
15182 return use_ascii (foo) == use_ebcdic (foo);
15187 if ac_fn_c_try_compile "$LINENO"; then :
15188 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15189 ac_cv_c_bigendian=yes
15191 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15192 if test "$ac_cv_c_bigendian" = unknown; then
15193 ac_cv_c_bigendian=no
15195 # finding both strings is unlikely to happen, but who knows?
15196 ac_cv_c_bigendian=unknown
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 $ac_includes_default
15209 /* Are we little or big endian? From Harbison&Steele. */
15213 char c[sizeof (long int)];
15216 return u.c[sizeof (long int) - 1] == 1;
15222 if ac_fn_c_try_run "$LINENO"; then :
15223 ac_cv_c_bigendian=no
15225 ac_cv_c_bigendian=yes
15227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15228 conftest.$ac_objext conftest.beam conftest.$ac_ext
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15234 $as_echo "$ac_cv_c_bigendian" >&6; }
15235 case $ac_cv_c_bigendian in #(
15237 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15243 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15247 as_fn_error $? "unknown endianness
15248 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15252 # Checks for header files.
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15254 $as_echo_n "checking for ANSI C header files... " >&6; }
15255 if ${ac_cv_header_stdc+:} false; then :
15256 $as_echo_n "(cached) " >&6
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260 #include <stdlib.h>
15261 #include <stdarg.h>
15262 #include <string.h>
15273 if ac_fn_c_try_compile "$LINENO"; then :
15274 ac_cv_header_stdc=yes
15276 ac_cv_header_stdc=no
15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 if test $ac_cv_header_stdc = yes; then
15281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <string.h>
15287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15288 $EGREP "memchr" >/dev/null 2>&1; then :
15291 ac_cv_header_stdc=no
15297 if test $ac_cv_header_stdc = yes; then
15298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300 /* end confdefs.h. */
15301 #include <stdlib.h>
15304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15305 $EGREP "free" >/dev/null 2>&1; then :
15308 ac_cv_header_stdc=no
15314 if test $ac_cv_header_stdc = yes; then
15315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15316 if test "$cross_compiling" = yes; then :
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 #include <stdlib.h>
15323 #if ((' ' & 0x0FF) == 0x020)
15324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15327 # define ISLOWER(c) \
15328 (('a' <= (c) && (c) <= 'i') \
15329 || ('j' <= (c) && (c) <= 'r') \
15330 || ('s' <= (c) && (c) <= 'z'))
15331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15339 for (i = 0; i < 256; i++)
15340 if (XOR (islower (i), ISLOWER (i))
15341 || toupper (i) != TOUPPER (i))
15346 if ac_fn_c_try_run "$LINENO"; then :
15349 ac_cv_header_stdc=no
15351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15352 conftest.$ac_objext conftest.beam conftest.$ac_ext
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15358 $as_echo "$ac_cv_header_stdc" >&6; }
15359 if test $ac_cv_header_stdc = yes; then
15361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15366 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15367 if ${ac_cv_header_stdbool_h+:} false; then :
15368 $as_echo_n "(cached) " >&6
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15373 #include <stdbool.h>
15375 "error: bool is not defined"
15378 "error: false is not defined"
15381 "error: false is not 0"
15384 "error: true is not defined"
15387 "error: true is not 1"
15389 #ifndef __bool_true_false_are_defined
15390 "error: __bool_true_false_are_defined is not defined"
15393 struct s { _Bool s: 1; _Bool t; } s;
15395 char a[true == 1 ? 1 : -1];
15396 char b[false == 0 ? 1 : -1];
15397 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15398 char d[(bool) 0.5 == true ? 1 : -1];
15399 /* See body of main program for 'e'. */
15400 char f[(_Bool) 0.0 == false ? 1 : -1];
15402 char h[sizeof (_Bool)];
15403 char i[sizeof s.t];
15404 enum { j = false, k = true, l = false * true, m = true * 256 };
15405 /* The following fails for
15406 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15408 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15409 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15410 /* Catch a bug in an HP-UX C compiler. See
15411 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15412 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15424 /* Refer to every declared value, to avoid compiler optimizations. */
15425 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15426 + !m + !n + !o + !p + !q + !pq);
15432 if ac_fn_c_try_compile "$LINENO"; then :
15433 ac_cv_header_stdbool_h=yes
15435 ac_cv_header_stdbool_h=no
15437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15440 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15441 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15442 if test "x$ac_cv_type__Bool" = xyes; then :
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE__BOOL 1
15451 if test $ac_cv_header_stdbool_h = yes; then
15453 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15457 #AC_HEADER_SYS_WAIT
15458 #AC_CHECK_HEADERS([getopt.h fcntl.h stdlib.h string.h strings.h unistd.h])
15459 # do the very minimum - we can always extend this
15460 for ac_header in getopt.h stdarg.h openssl/ssl.h netinet/in.h time.h arpa/inet.h netdb.h
15462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15466 cat >>confdefs.h <<_ACEOF
15467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15474 for ac_header in sys/param.h sys/mount.h
15476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15479 #if HAVE_SYS_PARAM_H
15480 # include <sys/param.h>
15485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15486 cat >>confdefs.h <<_ACEOF
15487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
15496 #if HAVE_SYS_PARAM_H
15497 # include <sys/param.h>
15502 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15504 include_sys_socket_h='#include <sys/socket.h>'
15506 $as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15511 include_sys_socket_h=''
15517 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default
15520 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15522 include_inttypes_h='#include <inttypes.h>'
15524 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
15526 ldns_build_config_have_inttypes_h=1
15531 include_inttypes_h=''
15532 ldns_build_config_have_inttypes_h=0
15539 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default
15542 if test "x$ac_cv_header_sys_types_h" = xyes; then :
15544 include_systypes_h='#include <sys/types.h>'
15546 $as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
15551 include_systypes_h=''
15557 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
15560 if test "x$ac_cv_header_unistd_h" = xyes; then :
15562 include_unistd_h='#include <unistd.h>'
15564 $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
15569 include_unistd_h=''
15576 # The cast to long int works around a bug in the HP C Compiler
15577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15579 # This bug is HP SR number 8606223364.
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15581 $as_echo_n "checking size of time_t... " >&6; }
15582 if ${ac_cv_sizeof_time_t+:} false; then :
15583 $as_echo_n "(cached) " >&6
15585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
15586 $ac_includes_default
15587 #ifdef TIME_WITH_SYS_TIME
15588 # include <sys/time.h>
15591 # ifdef HAVE_SYS_TIME_H
15592 # include <sys/time.h>
15601 if test "$ac_cv_type_time_t" = yes; then
15602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15604 as_fn_error 77 "cannot compute sizeof (time_t)
15605 See \`config.log' for more details" "$LINENO" 5; }
15607 ac_cv_sizeof_time_t=0
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15613 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15617 cat >>confdefs.h <<_ACEOF
15618 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15623 if test x_$with_examples != x_no; then
15624 for ac_header in pcap.h
15626 ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default
15628 if test "x$ac_cv_header_pcap_h" = xyes; then :
15629 cat >>confdefs.h <<_ACEOF
15630 #define HAVE_PCAP_H 1
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_offline in -lpcap" >&5
15638 $as_echo_n "checking for pcap_open_offline in -lpcap... " >&6; }
15639 if ${ac_cv_lib_pcap_pcap_open_offline+:} false; then :
15640 $as_echo_n "(cached) " >&6
15642 ac_check_lib_save_LIBS=$LIBS
15643 LIBS="-lpcap $LIBS"
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15653 char pcap_open_offline ();
15657 return pcap_open_offline ();
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 ac_cv_lib_pcap_pcap_open_offline=yes
15665 ac_cv_lib_pcap_pcap_open_offline=no
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 LIBS=$ac_check_lib_save_LIBS
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_offline" >&5
15672 $as_echo "$ac_cv_lib_pcap_pcap_open_offline" >&6; }
15673 if test "x$ac_cv_lib_pcap_pcap_open_offline" = xyes; then :
15676 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
15677 LIBPCAP_LIBS=-lpcap
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&5
15683 $as_echo "$as_me: WARNING: Can't find pcap library (needed for ldns-dpa, will not build dpa now.)" >&2;}
15688 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
15690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15692 $ac_includes_default
15693 #ifdef HAVE_NETINET_IN_SYSTM_H
15694 #include <netinet/in_systm.h>
15696 #ifdef HAVE_NETINET_IN_H
15697 #include <netinet/in.h>
15699 #ifdef HAVE_SYS_SOCKET_H
15700 #include <sys/socket.h>
15702 #ifdef HAVE_NET_IF_H
15703 #include <net/if.h>
15706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15707 cat >>confdefs.h <<_ACEOF
15708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15718 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
15719 $ac_includes_default
15720 #ifdef HAVE_SYS_SOCKET_H
15721 # include <sys/socket.h>
15723 #ifdef HAVE_WS2TCPIP_H
15724 # include <ws2tcpip.h>
15728 if test "x$ac_cv_type_socklen_t" = xyes; then :
15732 $as_echo "#define socklen_t int" >>confdefs.h
15736 if test "x$ac_cv_type_socklen_t" = xyes; then
15737 ldns_build_config_have_socklen_t=1
15740 ldns_build_config_have_socklen_t=0
15743 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15744 if test "x$ac_cv_type_size_t" = xyes; then :
15748 cat >>confdefs.h <<_ACEOF
15749 #define size_t unsigned int
15754 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15755 if test "x$ac_cv_type_ssize_t" = xyes; then :
15759 cat >>confdefs.h <<_ACEOF
15760 #define ssize_t int
15765 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15766 if test "x$ac_cv_type_intptr_t" = xyes; then :
15770 cat >>confdefs.h <<_ACEOF
15771 #define intptr_t size_t
15776 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
15777 #if HAVE_SYS_TYPES_H
15778 # include <sys/types.h>
15780 #if HAVE_NETINET_IN_H
15781 # include <netinet/in.h>
15784 if test "x$ac_cv_type_in_addr_t" = xyes; then :
15788 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
15792 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
15793 #if HAVE_SYS_TYPES_H
15794 # include <sys/types.h>
15796 #if HAVE_NETINET_IN_H
15797 # include <netinet/in.h>
15800 if test "x$ac_cv_type_in_port_t" = xyes; then :
15804 $as_echo "#define in_port_t uint16_t" >>confdefs.h
15808 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "$ac_includes_default
15809 #ifdef HAVE_NETINET_IN_H
15810 #include <netinet/in.h>
15812 #ifdef HAVE_SYS_SOCKET_H
15813 #include <sys/socket.h>
15815 #ifdef HAVE_NETDB_H
15818 #ifdef HAVE_ARPA_INET_H
15819 #include <arpa/inet.h>
15823 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15827 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "$ac_includes_default
15828 #ifdef HAVE_NETINET_IN_H
15829 #include <netinet/in.h>
15831 #ifdef HAVE_SYS_SOCKET_H
15832 #include <sys/socket.h>
15834 #ifdef HAVE_NETDB_H
15837 #ifdef HAVE_ARPA_INET_H
15838 #include <arpa/inet.h>
15842 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15845 $as_echo "#define ss_family __ss_family" >>confdefs.h
15854 for ac_header in stdlib.h
15856 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15857 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15858 cat >>confdefs.h <<_ACEOF
15859 #define HAVE_STDLIB_H 1
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15867 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15868 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15869 $as_echo_n "(cached) " >&6
15871 if test "$cross_compiling" = yes; then :
15872 ac_cv_func_malloc_0_nonnull=no
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15877 # include <stdlib.h>
15885 return ! malloc (0);
15890 if ac_fn_c_try_run "$LINENO"; then :
15891 ac_cv_func_malloc_0_nonnull=yes
15893 ac_cv_func_malloc_0_nonnull=no
15895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15896 conftest.$ac_objext conftest.beam conftest.$ac_ext
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15901 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15902 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15904 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15907 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15909 case " $LIBOBJS " in
15910 *" malloc.$ac_objext "* ) ;;
15911 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15916 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15921 for ac_header in stdlib.h
15923 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15924 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15925 cat >>confdefs.h <<_ACEOF
15926 #define HAVE_STDLIB_H 1
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15934 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15935 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
15936 $as_echo_n "(cached) " >&6
15938 if test "$cross_compiling" = yes; then :
15939 ac_cv_func_realloc_0_nonnull=no
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15944 # include <stdlib.h>
15952 return ! realloc (0, 0);
15957 if ac_fn_c_try_run "$LINENO"; then :
15958 ac_cv_func_realloc_0_nonnull=yes
15960 ac_cv_func_realloc_0_nonnull=no
15962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15963 conftest.$ac_objext conftest.beam conftest.$ac_ext
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15968 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15969 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15971 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15974 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15976 case " $LIBOBJS " in
15977 *" realloc.$ac_objext "* ) ;;
15978 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15983 $as_echo "#define realloc rpl_realloc" >>confdefs.h
15989 ac_fn_c_check_func "$LINENO" "b64_pton" "ac_cv_func_b64_pton"
15990 if test "x$ac_cv_func_b64_pton" = xyes; then :
15991 $as_echo "#define HAVE_B64_PTON 1" >>confdefs.h
15994 case " $LIBOBJS " in
15995 *" b64_pton.$ac_objext "* ) ;;
15996 *) LIBOBJS="$LIBOBJS b64_pton.$ac_objext"
16003 ac_fn_c_check_func "$LINENO" "b64_ntop" "ac_cv_func_b64_ntop"
16004 if test "x$ac_cv_func_b64_ntop" = xyes; then :
16005 $as_echo "#define HAVE_B64_NTOP 1" >>confdefs.h
16008 case " $LIBOBJS " in
16009 *" b64_ntop.$ac_objext "* ) ;;
16010 *) LIBOBJS="$LIBOBJS b64_ntop.$ac_objext"
16017 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
16018 if test "x$ac_cv_func_calloc" = xyes; then :
16019 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
16022 case " $LIBOBJS " in
16023 *" calloc.$ac_objext "* ) ;;
16024 *) LIBOBJS="$LIBOBJS calloc.$ac_objext"
16031 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
16032 if test "x$ac_cv_func_timegm" = xyes; then :
16033 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h
16036 case " $LIBOBJS " in
16037 *" timegm.$ac_objext "* ) ;;
16038 *) LIBOBJS="$LIBOBJS timegm.$ac_objext"
16045 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
16046 if test "x$ac_cv_func_gmtime_r" = xyes; then :
16047 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16050 case " $LIBOBJS " in
16051 *" gmtime_r.$ac_objext "* ) ;;
16052 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
16059 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
16060 if test "x$ac_cv_func_ctime_r" = xyes; then :
16061 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
16064 case " $LIBOBJS " in
16065 *" ctime_r.$ac_objext "* ) ;;
16066 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
16073 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16074 if test "x$ac_cv_func_localtime_r" = xyes; then :
16075 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16078 case " $LIBOBJS " in
16079 *" localtime_r.$ac_objext "* ) ;;
16080 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
16087 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
16088 if test "x$ac_cv_func_isblank" = xyes; then :
16089 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
16092 case " $LIBOBJS " in
16093 *" isblank.$ac_objext "* ) ;;
16094 *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
16101 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
16102 if test "x$ac_cv_func_isascii" = xyes; then :
16103 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h
16106 case " $LIBOBJS " in
16107 *" isascii.$ac_objext "* ) ;;
16108 *) LIBOBJS="$LIBOBJS isascii.$ac_objext"
16115 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16116 if test "x$ac_cv_func_inet_aton" = xyes; then :
16117 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16120 case " $LIBOBJS " in
16121 *" inet_aton.$ac_objext "* ) ;;
16122 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
16129 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
16130 if test "x$ac_cv_func_inet_pton" = xyes; then :
16131 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
16134 case " $LIBOBJS " in
16135 *" inet_pton.$ac_objext "* ) ;;
16136 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
16143 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
16144 if test "x$ac_cv_func_inet_ntop" = xyes; then :
16145 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
16148 case " $LIBOBJS " in
16149 *" inet_ntop.$ac_objext "* ) ;;
16150 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
16157 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16158 if test "x$ac_cv_func_snprintf" = xyes; then :
16159 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16162 case " $LIBOBJS " in
16163 *" snprintf.$ac_objext "* ) ;;
16164 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16171 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16172 if test "x$ac_cv_func_strlcpy" = xyes; then :
16173 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16176 case " $LIBOBJS " in
16177 *" strlcpy.$ac_objext "* ) ;;
16178 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
16185 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
16186 if test "x$ac_cv_func_memmove" = xyes; then :
16187 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
16190 case " $LIBOBJS " in
16191 *" memmove.$ac_objext "* ) ;;
16192 *) LIBOBJS="$LIBOBJS memmove.$ac_objext"
16199 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16200 if test "x$ac_cv_type_pid_t" = xyes; then :
16204 cat >>confdefs.h <<_ACEOF
16210 for ac_header in vfork.h
16212 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16213 if test "x$ac_cv_header_vfork_h" = xyes; then :
16214 cat >>confdefs.h <<_ACEOF
16215 #define HAVE_VFORK_H 1
16222 for ac_func in fork vfork
16224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16227 cat >>confdefs.h <<_ACEOF
16228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16234 if test "x$ac_cv_func_fork" = xyes; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16236 $as_echo_n "checking for working fork... " >&6; }
16237 if ${ac_cv_func_fork_works+:} false; then :
16238 $as_echo_n "(cached) " >&6
16240 if test "$cross_compiling" = yes; then :
16241 ac_cv_func_fork_works=cross
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 $ac_includes_default
16250 /* By Ruediger Kuhlmann. */
16251 return fork () < 0;
16257 if ac_fn_c_try_run "$LINENO"; then :
16258 ac_cv_func_fork_works=yes
16260 ac_cv_func_fork_works=no
16262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16263 conftest.$ac_objext conftest.beam conftest.$ac_ext
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16268 $as_echo "$ac_cv_func_fork_works" >&6; }
16271 ac_cv_func_fork_works=$ac_cv_func_fork
16273 if test "x$ac_cv_func_fork_works" = xcross; then
16275 *-*-amigaos* | *-*-msdosdjgpp*)
16276 # Override, as these systems have only a dummy fork() stub
16277 ac_cv_func_fork_works=no
16280 ac_cv_func_fork_works=yes
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16284 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16286 ac_cv_func_vfork_works=$ac_cv_func_vfork
16287 if test "x$ac_cv_func_vfork" = xyes; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16289 $as_echo_n "checking for working vfork... " >&6; }
16290 if ${ac_cv_func_vfork_works+:} false; then :
16291 $as_echo_n "(cached) " >&6
16293 if test "$cross_compiling" = yes; then :
16294 ac_cv_func_vfork_works=cross
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 /* Thanks to Paul Eggert for this test. */
16299 $ac_includes_default
16300 #include <sys/wait.h>
16301 #ifdef HAVE_VFORK_H
16302 # include <vfork.h>
16304 /* On some sparc systems, changes by the child to local and incoming
16305 argument registers are propagated back to the parent. The compiler
16306 is told about this with #include <vfork.h>, but some compilers
16307 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16308 static variable whose address is put into a register that is
16309 clobbered by the vfork. */
16312 sparc_address_test (int arg)
16314 sparc_address_test (arg) int arg;
16317 static pid_t child;
16335 pid_t parent = getpid ();
16338 sparc_address_test (0);
16343 /* Here is another test for sparc vfork register problems. This
16344 test uses lots of local variables, at least as many local
16345 variables as main has allocated so far including compiler
16346 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16347 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16348 reuse the register of parent for one of the local variables,
16349 since it will think that parent can't possibly be used any more
16350 in this routine. Assigning to the local variable will thus
16351 munge parent in the parent process. */
16353 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16354 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16355 /* Convince the compiler that p..p7 are live; otherwise, it might
16356 use the same hardware register for all 8 local variables. */
16357 if (p != p1 || p != p2 || p != p3 || p != p4
16358 || p != p5 || p != p6 || p != p7)
16361 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16362 from child file descriptors. If the child closes a descriptor
16363 before it execs or exits, this munges the parent's descriptor
16364 as well. Test for this by closing stdout in the child. */
16365 _exit(close(fileno(stdout)) != 0);
16370 while (wait(&status) != child)
16373 /* Was there some problem with vforking? */
16376 /* Did the child fail? (This shouldn't happen.) */
16379 /* Did the vfork/compiler bug occur? */
16380 || parent != getpid()
16382 /* Did the file descriptor bug occur? */
16383 || fstat(fileno(stdout), &st) != 0
16388 if ac_fn_c_try_run "$LINENO"; then :
16389 ac_cv_func_vfork_works=yes
16391 ac_cv_func_vfork_works=no
16393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16394 conftest.$ac_objext conftest.beam conftest.$ac_ext
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16399 $as_echo "$ac_cv_func_vfork_works" >&6; }
16402 if test "x$ac_cv_func_fork_works" = xcross; then
16403 ac_cv_func_vfork_works=$ac_cv_func_vfork
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16405 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16408 if test "x$ac_cv_func_vfork_works" = xyes; then
16410 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16414 $as_echo "#define vfork fork" >>confdefs.h
16417 if test "x$ac_cv_func_fork_works" = xyes; then
16419 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16423 for ac_func in endprotoent endservent sleep random fcntl strtoul bzero memset b32_ntop b32_pton
16425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16428 cat >>confdefs.h <<_ACEOF
16429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16435 if test "x$HAVE_B32_NTOP" = "xyes"; then
16436 ldns_build_config_have_b32_ntop=1
16439 ldns_build_config_have_b32_ntop=0
16442 if test "x$HAVE_B32_PTON" = "xyes"; then
16443 ldns_build_config_have_b32_pton=1
16446 ldns_build_config_have_b32_pton=0
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
16452 $as_echo_n "checking for getaddrinfo... " >&6; }
16453 ac_cv_func_getaddrinfo=no
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16461 char* getaddrinfo();
16462 char* (*f) () = getaddrinfo;
16472 if ac_fn_c_try_link "$LINENO"; then :
16473 ac_cv_func_getaddrinfo="yes"
16474 if test "$ac_cv_header_windows_h" = "yes"; then
16476 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16479 LIBS="$LIBS -lws2_32"
16484 LIBS="$LIBS -lws2_32"
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16488 #ifdef HAVE_WS2TCPIP_H
16489 #include <ws2tcpip.h>
16496 (void)getaddrinfo(NULL, NULL, NULL, NULL);
16503 if ac_fn_c_try_link "$LINENO"; then :
16505 ac_cv_func_getaddrinfo="yes"
16507 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
16513 ac_cv_func_getaddrinfo="no"
16517 rm -f core conftest.err conftest.$ac_objext \
16518 conftest$ac_exeext conftest.$ac_ext
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
16525 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
16526 if test $ac_cv_func_getaddrinfo = yes; then
16528 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16532 if test $ac_cv_func_getaddrinfo = no; then
16533 case " $LIBOBJS " in
16534 *" fake-rfc2553.$ac_objext "* ) ;;
16535 *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext"
16540 if test "$USE_WINSOCK" = 1; then
16541 if test -n "$ac_tool_prefix"; then
16542 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16543 set dummy ${ac_tool_prefix}windres; ac_word=$2
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16545 $as_echo_n "checking for $ac_word... " >&6; }
16546 if ${ac_cv_prog_WINDRES+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 if test -n "$WINDRES"; then
16550 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553 for as_dir in $PATH
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16559 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 WINDRES=$ac_cv_prog_WINDRES
16570 if test -n "$WINDRES"; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
16572 $as_echo "$WINDRES" >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16580 if test -z "$ac_cv_prog_WINDRES"; then
16581 ac_ct_WINDRES=$WINDRES
16582 # Extract the first word of "windres", so it can be a program name with args.
16583 set dummy windres; ac_word=$2
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16585 $as_echo_n "checking for $ac_word... " >&6; }
16586 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
16587 $as_echo_n "(cached) " >&6
16589 if test -n "$ac_ct_WINDRES"; then
16590 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
16592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593 for as_dir in $PATH
16596 test -z "$as_dir" && as_dir=.
16597 for ac_exec_ext in '' $ac_executable_extensions; do
16598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16599 ac_cv_prog_ac_ct_WINDRES="windres"
16600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
16610 if test -n "$ac_ct_WINDRES"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
16612 $as_echo "$ac_ct_WINDRES" >&6; }
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16618 if test "x$ac_ct_WINDRES" = x; then
16621 case $cross_compiling:$ac_tool_warned in
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16625 ac_tool_warned=yes ;;
16627 WINDRES=$ac_ct_WINDRES
16630 WINDRES="$ac_cv_prog_WINDRES"
16635 # check ioctlsocket
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctlsocket" >&5
16637 $as_echo_n "checking for ioctlsocket... " >&6; }
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16641 #ifdef HAVE_WINSOCK2_H
16642 #include <winsock2.h>
16649 (void)ioctlsocket(0, 0, NULL);
16655 if ac_fn_c_try_link "$LINENO"; then :
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16658 $as_echo "yes" >&6; }
16660 $as_echo "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665 $as_echo "no" >&6; }
16667 rm -f core conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16671 #AC_SEARCH_LIBS(RSA_new, [crypto])
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
16675 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
16676 if ${ac_cv_c_format_attribute+:} false; then :
16677 $as_echo_n "(cached) " >&6
16679 ac_cv_c_format_attribute=no
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16683 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16684 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
16696 if ac_fn_c_try_compile "$LINENO"; then :
16697 ac_cv_c_format_attribute="yes"
16699 ac_cv_c_format_attribute="no"
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_format_attribute" >&5
16707 $as_echo "$ac_cv_c_format_attribute" >&6; }
16708 if test $ac_cv_c_format_attribute = yes; then
16710 $as_echo "#define HAVE_ATTR_FORMAT 1" >>confdefs.h
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
16716 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
16717 if ${ac_cv_c_unused_attribute+:} false; then :
16718 $as_echo_n "(cached) " >&6
16720 ac_cv_c_unused_attribute=no
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16724 void f (char *u __attribute__((unused)));
16736 if ac_fn_c_try_compile "$LINENO"; then :
16737 ac_cv_c_unused_attribute="yes"
16739 ac_cv_c_unused_attribute="no"
16741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_attribute" >&5
16749 $as_echo "$ac_cv_c_unused_attribute" >&6; }
16750 if test $ac_cv_c_unused_attribute = yes; then
16752 $as_echo "#define HAVE_ATTR_UNUSED 1" >>confdefs.h
16757 # check OSX deployment target which is needed
16758 if echo $build_os | grep darwin > /dev/null; then
16759 export MACOSX_DEPLOYMENT_TARGET="10.4"
16763 $as_echo "#define SYSCONFDIR sysconfdir" >>confdefs.h
16767 # Check whether --with-trust-anchor was given.
16768 if test "${with_trust_anchor+set}" = set; then :
16769 withval=$with_trust_anchor;
16770 LDNS_TRUST_ANCHOR_FILE="$withval"
16774 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
16775 if test "x$sysconfdir" = 'x${prefix}/etc' ; then
16776 if test "x$prefix" = 'xNONE' ; then
16777 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
16779 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
16782 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
16789 cat >>confdefs.h <<_ACEOF
16790 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
16795 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
16798 # Check whether --with-ca-file was given.
16799 if test "${with_ca_file+set}" = set; then :
16800 withval=$with_ca_file;
16802 $as_echo "#define HAVE_DANE_CA_FILE 1" >>confdefs.h
16805 cat >>confdefs.h <<_ACEOF
16806 #define LDNS_DANE_CA_FILE "$withval"
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CAfile: $withval" >&5
16810 $as_echo "$as_me: Using CAfile: $withval" >&6;}
16811 DEFAULT_CAFILE="Default is $withval"
16817 $as_echo "#define HAVE_DANE_CA_FILE 0" >>confdefs.h
16825 # Check whether --with-ca-path was given.
16826 if test "${with_ca_path+set}" = set; then :
16827 withval=$with_ca_path;
16829 $as_echo "#define HAVE_DANE_CA_PATH 1" >>confdefs.h
16832 cat >>confdefs.h <<_ACEOF
16833 #define LDNS_DANE_CA_PATH "$withval"
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: Using CApath: $withval" >&5
16837 $as_echo "$as_me: Using CApath: $withval" >&6;}
16838 DEFAULT_CAPATH="Default is $withval"
16844 $as_echo "#define HAVE_DANE_CA_PATH 0" >>confdefs.h
16855 if test "x$HAVE_SSL" = "xyes"; then
16856 ldns_build_config_have_ssl=1
16859 ldns_build_config_have_ssl=0
16862 if test "x$ac_cv_c_format_attribute" = "xyes"; then
16863 ldns_build_config_have_attr_format=1
16866 ldns_build_config_have_attr_format=0
16869 if test "x$ac_cv_c_unused_attribute" = "xyes"; then
16870 ldns_build_config_have_attr_unused=1
16873 ldns_build_config_have_attr_unused=0
16877 CONFIG_FILES="Makefile ldns/common.h ldns/net.h ldns/util.h packaging/libldns.pc packaging/ldns-config $DRILL_CONFIG $EXAMPLES_CONFIG"
16879 ac_config_files="$ac_config_files $CONFIG_FILES"
16882 ac_config_headers="$ac_config_headers ldns/config.h"
16884 cat >confcache <<\_ACEOF
16885 # This file is a shell script that caches the results of configure
16886 # tests run on this system so they can be shared between configure
16887 # scripts and configure runs, see configure's option --config-cache.
16888 # It is not useful on other systems. If it contains results you don't
16889 # want to keep, you may remove or edit it.
16891 # config.status only pays attention to the cache file if you give it
16892 # the --recheck option to rerun configure.
16894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16896 # following values.
16900 # The following way of writing the cache mishandles newlines in values,
16901 # but we know of no workaround that is simple, portable, and efficient.
16902 # So, we kill variables containing newlines.
16903 # Ultrix sh set writes to stderr and can't be redirected directly,
16904 # and sets the high bit in the cache file unless we assign to the vars.
16906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16907 eval ac_val=\$$ac_var
16911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16915 _ | IFS | as_nl) ;; #(
16916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16917 *) { eval $ac_var=; unset $ac_var;} ;;
16923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16924 *${as_nl}ac_space=\ *)
16925 # `set' does not quote correctly, so add quotes: double-quote
16926 # substitution turns \\\\ into \\, and sed turns \\ into \.
16929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16932 # `set' quotes correctly as required by POSIX, so do not add quotes.
16933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16947 if test -w "$cache_file"; then
16948 if test "x$cache_file" != "x/dev/null"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16950 $as_echo "$as_me: updating cache $cache_file" >&6;}
16951 if test ! -f "$cache_file" || test -h "$cache_file"; then
16952 cat confcache >"$cache_file"
16954 case $cache_file in #(
16956 mv -f confcache "$cache_file"$$ &&
16957 mv -f "$cache_file"$$ "$cache_file" ;; #(
16959 mv -f confcache "$cache_file" ;;
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16971 # Let make expand exec_prefix.
16972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16974 DEFS=-DHAVE_CONFIG_H
16979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16980 # 1. Remove the extension, and $U if already installed.
16981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16982 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16984 # will be set to the directory where LIBOBJS objects are built.
16985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16988 LIBOBJS=$ac_libobjs
16990 LTLIBOBJS=$ac_ltlibobjs
16995 : "${CONFIG_STATUS=./config.status}"
16997 ac_clean_files_save=$ac_clean_files
16998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17004 # Generated by $as_me.
17005 # Run this file to recreate the current configuration.
17006 # Compiler output produced by configure, useful for debugging
17007 # configure, is in config.log if it exists.
17010 ac_cs_recheck=false
17013 SHELL=\${CONFIG_SHELL-$SHELL}
17016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17017 ## -------------------- ##
17018 ## M4sh Initialization. ##
17019 ## -------------------- ##
17021 # Be more Bourne compatible
17022 DUALCASE=1; export DUALCASE # for MKS sh
17023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17027 # is contrary to our usage. Disable this feature.
17028 alias -g '${1+"$@"}'='"$@"'
17029 setopt NO_GLOB_SUBST
17031 case `(set -o) 2>/dev/null` in #(
17043 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17044 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17047 # Prefer a ksh shell builtin over an external printf program on Solaris,
17048 # but without wasting forks for bash or zsh.
17049 if test -z "$BASH_VERSION$ZSH_VERSION" \
17050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17051 as_echo='print -r --'
17052 as_echo_n='print -rn --'
17053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17054 as_echo='printf %s\n'
17055 as_echo_n='printf %s'
17057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17059 as_echo_n='/usr/ucb/echo -n'
17061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17062 as_echo_n_body='eval
17066 expr "X$arg" : "X\\(.*\\)$as_nl";
17067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17071 export as_echo_n_body
17072 as_echo_n='sh -c $as_echo_n_body as_echo'
17074 export as_echo_body
17075 as_echo='sh -c $as_echo_body as_echo'
17078 # The user is always right.
17079 if test "${PATH_SEPARATOR+set}" != set; then
17081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17089 # We need space, tab and new line, in precisely that order. Quoting is
17090 # there to prevent editors from complaining about space-tab.
17091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17092 # splitting by setting IFS to empty value.)
17095 # Find who we are. Look in the path if we contain no directory separator.
17098 *[\\/]* ) as_myself=$0 ;;
17099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17100 for as_dir in $PATH
17103 test -z "$as_dir" && as_dir=.
17104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17110 # We did not find ourselves, most probably we were run as `sh COMMAND'
17111 # in which case we are not to be found in the path.
17112 if test "x$as_myself" = x; then
17115 if test ! -f "$as_myself"; then
17116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17120 # Unset variables that we do not need and which cause bugs (e.g. in
17121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17122 # suppresses any "Segmentation fault" message there. '((' could
17123 # trigger a bug in pdksh 5.2.14.
17124 for as_var in BASH_ENV ENV MAIL MAILPATH
17125 do eval test x\${$as_var+set} = xset \
17126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17142 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17143 # ----------------------------------------
17144 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17145 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17146 # script with STATUS, using 1 if that was 0.
17149 as_status=$1; test $as_status -eq 0 && as_status=1
17151 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17152 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17154 $as_echo "$as_me: error: $2" >&2
17155 as_fn_exit $as_status
17159 # as_fn_set_status STATUS
17160 # -----------------------
17161 # Set $? to STATUS, without forking.
17162 as_fn_set_status ()
17165 } # as_fn_set_status
17167 # as_fn_exit STATUS
17168 # -----------------
17169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17173 as_fn_set_status $1
17179 # Portably unset VAR.
17182 { eval $1=; unset $1;}
17184 as_unset=as_fn_unset
17185 # as_fn_append VAR VALUE
17186 # ----------------------
17187 # Append the text in VALUE to the end of the definition contained in VAR. Take
17188 # advantage of any shell optimizations that allow amortized linear growth over
17189 # repeated appends, instead of the typical quadratic growth present in naive
17191 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17192 eval 'as_fn_append ()
17203 # as_fn_arith ARG...
17204 # ------------------
17205 # Perform arithmetic evaluation on the ARGs, and store the result in the
17206 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17207 # must be portable across $(()) and expr.
17208 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17209 eval 'as_fn_arith ()
17216 as_val=`expr "$@" || test $? -eq 1`
17221 if expr a : '\(a\)' >/dev/null 2>&1 &&
17222 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17228 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17229 as_basename=basename
17234 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17240 as_me=`$as_basename -- "$0" ||
17241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242 X"$0" : 'X\(//\)$' \| \
17243 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17245 sed '/^.*\/\([^/][^/]*\)\/*$/{
17259 # Avoid depending upon Character Ranges.
17260 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17261 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17262 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17263 as_cr_digits='0123456789'
17264 as_cr_alnum=$as_cr_Letters$as_cr_digits
17266 ECHO_C= ECHO_N= ECHO_T=
17267 case `echo -n x` in #(((((
17269 case `echo 'xy\c'` in
17270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17272 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17279 rm -f conf$$ conf$$.exe conf$$.file
17280 if test -d conf$$.dir; then
17281 rm -f conf$$.dir/conf$$.file
17284 mkdir conf$$.dir 2>/dev/null
17286 if (echo >conf$$.file) 2>/dev/null; then
17287 if ln -s conf$$.file conf$$ 2>/dev/null; then
17289 # ... but there are two gotchas:
17290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17292 # In both cases, we have to default to `cp -p'.
17293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17295 elif ln conf$$.file conf$$ 2>/dev/null; then
17303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17304 rmdir conf$$.dir 2>/dev/null
17309 # Create "$as_dir" as a directory, including parents if necessary.
17314 -*) as_dir=./$as_dir;;
17316 test -d "$as_dir" || eval $as_mkdir_p || {
17320 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17321 *) as_qdir=$as_dir;;
17323 as_dirs="'$as_qdir' $as_dirs"
17324 as_dir=`$as_dirname -- "$as_dir" ||
17325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17326 X"$as_dir" : 'X\(//\)[^/]' \| \
17327 X"$as_dir" : 'X\(//\)$' \| \
17328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17329 $as_echo X"$as_dir" |
17330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17334 /^X\(\/\/\)[^/].*/{
17347 test -d "$as_dir" && break
17349 test -z "$as_dirs" || eval "mkdir $as_dirs"
17350 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17354 if mkdir -p . 2>/dev/null; then
17355 as_mkdir_p='mkdir -p "$as_dir"'
17357 test -d ./-p && rmdir ./-p
17361 if test -x / >/dev/null 2>&1; then
17362 as_test_x='test -x'
17364 if ls -dL / >/dev/null 2>&1; then
17371 if test -d "$1"; then
17377 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17378 ???[sx]*):;;*)false;;esac;fi
17382 as_executable_p=$as_test_x
17384 # Sed expression to map a string onto a valid CPP name.
17385 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17387 # Sed expression to map a string onto a valid variable name.
17388 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17392 ## ----------------------------------- ##
17393 ## Main body of $CONFIG_STATUS script. ##
17394 ## ----------------------------------- ##
17396 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17399 # Save the log message, to keep $0 and so on meaningful, and to
17400 # report actual input values of CONFIG_FILES etc. instead of their
17401 # values after options handling.
17403 This file was extended by ldns $as_me 1.6.17, which was
17404 generated by GNU Autoconf 2.68. Invocation command line was
17406 CONFIG_FILES = $CONFIG_FILES
17407 CONFIG_HEADERS = $CONFIG_HEADERS
17408 CONFIG_LINKS = $CONFIG_LINKS
17409 CONFIG_COMMANDS = $CONFIG_COMMANDS
17412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17417 case $ac_config_files in *"
17418 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17421 case $ac_config_headers in *"
17422 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17427 # Files that config.status was made for.
17428 config_files="$ac_config_files"
17429 config_headers="$ac_config_headers"
17430 config_commands="$ac_config_commands"
17434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17436 \`$as_me' instantiates files and other configuration actions
17437 from templates according to the current configuration. Unless the files
17438 and actions are specified as TAGs, all are instantiated by default.
17440 Usage: $0 [OPTION]... [TAG]...
17442 -h, --help print this help, then exit
17443 -V, --version print version number and configuration settings, then exit
17444 --config print configuration, then exit
17445 -q, --quiet, --silent
17446 do not print progress messages
17447 -d, --debug don't remove temporary files
17448 --recheck update $as_me by reconfiguring in the same conditions
17449 --file=FILE[:TEMPLATE]
17450 instantiate the configuration file FILE
17451 --header=FILE[:TEMPLATE]
17452 instantiate the configuration header FILE
17454 Configuration files:
17457 Configuration headers:
17460 Configuration commands:
17463 Report bugs to <libdns@nlnetlabs.nl>."
17466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17467 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17469 ldns config.status 1.6.17
17470 configured by $0, generated by GNU Autoconf 2.68,
17471 with options \\"\$ac_cs_config\\"
17473 Copyright (C) 2010 Free Software Foundation, Inc.
17474 This config.status script is free software; the Free Software Foundation
17475 gives unlimited permission to copy, distribute and modify it."
17480 test -n "\$AWK" || AWK=awk
17483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17484 # The default lists apply if the user does not specify any file.
17490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17507 # Handling of the options.
17508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17511 $as_echo "$ac_cs_version"; exit ;;
17512 --config | --confi | --conf | --con | --co | --c )
17513 $as_echo "$ac_cs_config"; exit ;;
17514 --debug | --debu | --deb | --de | --d | -d )
17516 --file | --fil | --fi | --f )
17519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17520 '') as_fn_error $? "missing file argument" ;;
17522 as_fn_append CONFIG_FILES " '$ac_optarg'"
17523 ac_need_defaults=false;;
17524 --header | --heade | --head | --hea )
17527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17530 ac_need_defaults=false;;
17532 # Conflict between --help and --header
17533 as_fn_error $? "ambiguous option: \`$1'
17534 Try \`$0 --help' for more information.";;
17535 --help | --hel | -h )
17536 $as_echo "$ac_cs_usage"; exit ;;
17537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17541 # This is an error.
17542 -*) as_fn_error $? "unrecognized option: \`$1'
17543 Try \`$0 --help' for more information." ;;
17545 *) as_fn_append ac_config_targets " $1"
17546 ac_need_defaults=false ;;
17552 ac_configure_extra_args=
17554 if $ac_cs_silent; then
17556 ac_configure_extra_args="$ac_configure_extra_args --silent"
17560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17561 if \$ac_cs_recheck; then
17562 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17565 CONFIG_SHELL='$SHELL'
17566 export CONFIG_SHELL
17571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17576 ## Running $as_me. ##
17582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17588 # The HP-UX ksh and POSIX shell print the target directory to stdout
17589 # if CDPATH is set.
17590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17592 sed_quote_subst='$sed_quote_subst'
17593 double_quote_subst='$double_quote_subst'
17594 delay_variable_subst='$delay_variable_subst'
17595 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17596 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17597 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17598 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17599 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17600 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17601 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17602 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17603 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17604 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17605 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17606 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17607 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17608 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17609 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17610 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17611 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17612 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17613 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17614 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17615 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17616 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17617 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17618 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17619 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17620 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17621 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17622 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17623 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17624 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17625 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17626 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17627 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17628 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17629 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17630 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17631 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17632 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17633 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17634 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17635 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17636 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17637 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17638 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17639 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17640 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17641 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17642 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17643 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17644 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17645 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17646 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17647 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17648 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17649 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17650 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17651 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"`'
17652 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17653 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17654 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17655 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17656 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17657 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17658 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17659 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17660 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17661 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17662 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17663 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17664 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17665 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17666 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17667 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17668 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17669 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17670 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17671 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17672 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17673 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17674 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17675 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17676 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17677 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17678 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17679 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17681 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17682 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17683 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17684 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17685 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17686 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17687 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17688 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17689 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17690 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17691 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17692 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17693 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17694 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17695 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17696 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17697 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17698 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17699 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17700 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17701 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17702 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17703 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17704 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17705 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17706 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17707 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17708 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17709 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17710 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17711 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17712 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17713 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17714 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17715 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17716 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17717 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17718 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17719 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17720 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17721 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17722 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17723 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17724 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17727 LTCFLAGS='$LTCFLAGS'
17728 compiler='$compiler_DEFAULT'
17730 # A function that is used when there is no print builtin or printf.
17731 func_fallback_echo ()
17733 eval 'cat <<_LTECHO_EOF
17738 # Quote evaled strings.
17753 deplibs_check_method \
17758 sharedlib_from_linklib_cmd \
17761 archiver_list_spec \
17767 lt_cv_sys_global_symbol_pipe \
17768 lt_cv_sys_global_symbol_to_cdecl \
17769 lt_cv_sys_global_symbol_to_c_name_address \
17770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17771 nm_file_list_spec \
17772 lt_prog_compiler_no_builtin_flag \
17773 lt_prog_compiler_pic \
17774 lt_prog_compiler_wl \
17775 lt_prog_compiler_static \
17776 lt_cv_prog_compiler_c_o \
17785 export_dynamic_flag_spec \
17786 whole_archive_flag_spec \
17787 compiler_needs_object \
17789 allow_undefined_flag \
17790 no_undefined_flag \
17791 hardcode_libdir_flag_spec \
17792 hardcode_libdir_separator \
17796 variables_saved_for_relink \
17798 library_names_spec \
17800 install_override_mode \
17804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17805 *[\\\\\\\`\\"\\\$]*)
17806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17814 # Double-quote double-evaled strings.
17815 for var in reload_cmds \
17816 old_postinstall_cmds \
17817 old_postuninstall_cmds \
17819 extract_expsyms_cmds \
17820 old_archive_from_new_cmds \
17821 old_archive_from_expsyms_cmds \
17823 archive_expsym_cmds \
17825 module_expsym_cmds \
17826 export_symbols_cmds \
17830 postuninstall_cmds \
17832 sys_lib_search_path_spec \
17833 sys_lib_dlsearch_path_spec; do
17834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17835 *[\\\\\\\`\\"\\\$]*)
17836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17844 ac_aux_dir='$ac_aux_dir'
17845 xsi_shell='$xsi_shell'
17846 lt_shell_append='$lt_shell_append'
17848 # See if we are running on zsh, and set the options which allow our
17849 # commands through without removal of \ escapes INIT.
17850 if test -n "\${ZSH_VERSION+set}" ; then
17851 setopt NO_GLOB_SUBST
17857 TIMESTAMP='$TIMESTAMP'
17866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17868 # Handling of arguments.
17869 for ac_config_target in $ac_config_targets
17871 case $ac_config_target in
17872 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17873 "disable-rpath") CONFIG_COMMANDS="$CONFIG_COMMANDS disable-rpath" ;;
17874 "$CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $CONFIG_FILES" ;;
17875 "ldns/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ldns/config.h" ;;
17877 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17882 # If the user did not use the arguments to specify the items to instantiate,
17883 # then the envvar interface is used. Set only those that are not.
17884 # We use the long form for the default assignment because of an extremely
17885 # bizarre bug on SunOS 4.1.3.
17886 if $ac_need_defaults; then
17887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17892 # Have a temporary directory for convenience. Make it in the build tree
17893 # simply because there is no reason against having it here, and in addition,
17894 # creating and moving files from /tmp can sometimes cause problems.
17895 # Hook for its removal unless debugging.
17896 # Note that there is a small window in which the directory will not be cleaned:
17897 # after its creation but before its name has been assigned to `$tmp'.
17901 trap 'exit_status=$?
17902 : "${ac_tmp:=$tmp}"
17903 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17905 trap 'as_fn_exit 1' 1 2 13 15
17907 # Create a (secure) tmp directory for tmp files.
17910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17914 tmp=./conf$$-$RANDOM
17915 (umask 077 && mkdir "$tmp")
17916 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17919 # Set up the scripts for CONFIG_FILES section.
17920 # No need to generate them if there are no CONFIG_FILES.
17921 # This happens for instance with `./config.status config.h'.
17922 if test -n "$CONFIG_FILES"; then
17925 ac_cr=`echo X | tr X '\015'`
17926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17927 # But we know of no other shell where ac_cr would be empty at this
17928 # point, so we can use a bashism as a fallback.
17929 if test "x$ac_cr" = x; then
17930 eval ac_cr=\$\'\\r\'
17932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17936 ac_cs_awk_cr=$ac_cr
17939 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17944 echo "cat >conf$$subs.awk <<_ACEOF" &&
17945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17947 } >conf$$subs.sh ||
17948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17949 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17951 for ac_last_try in false false false false false :; do
17952 . ./conf$$subs.sh ||
17953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17955 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17956 if test $ac_delim_n = $ac_delim_num; then
17958 elif $ac_last_try; then
17959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17964 rm -f conf$$subs.sh
17966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17967 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17971 s/^/S["/; s/!.*/"]=/
17981 s/\(.\{148\}\)..*/\1/
17983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17995 s/\(.\{148\}\)..*/\1/
17997 s/["\\]/\\&/g; s/^/"/; s/$/"/
18001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18006 ' <conf$$subs.awk | sed '
18011 ' >>$CONFIG_STATUS || ac_write_fail=1
18012 rm -f conf$$subs.awk
18013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18016 for (key in S) S_is_set[key] = 1
18022 nfields = split(line, field, "@")
18024 len = length(field[1])
18025 for (i = 2; i < nfields; i++) {
18027 keylen = length(key)
18028 if (S_is_set[key]) {
18030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18031 len += length(value) + length(field[++i])
18042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18047 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18048 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18051 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18052 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18053 # trailing colons and then remove the whole line if VPATH becomes empty
18054 # (actually we leave an empty line to preserve line numbers).
18055 if test "x$srcdir" = x.; then
18056 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18075 fi # test -n "$CONFIG_FILES"
18077 # Set up the scripts for CONFIG_HEADERS section.
18078 # No need to generate them if there are no CONFIG_HEADERS.
18079 # This happens for instance with `./config.status Makefile'.
18080 if test -n "$CONFIG_HEADERS"; then
18081 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18085 # Transform confdefs.h into an awk script `defines.awk', embedded as
18086 # here-document in config.status, that substitutes the proper values into
18087 # config.h.in to produce config.h.
18089 # Create a delimiter string that does not exist in confdefs.h, to ease
18090 # handling of long lines.
18092 for ac_last_try in false false :; do
18093 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18094 if test -z "$ac_tt"; then
18096 elif $ac_last_try; then
18097 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18103 # For the awk script, D is an array of macro values keyed by name,
18104 # likewise P contains macro parameters if any. Preserve backslash
18105 # newline sequences.
18107 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18109 s/.\{148\}/&'"$ac_delim"'/g
18112 s/^[ ]*#[ ]*define[ ][ ]*/ /
18119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18126 D["\1"]=" \3\\\\\\n"\\/p
18128 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18133 s/.\{148\}/&'"$ac_delim"'/g
18138 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18141 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18143 ' <confdefs.h | sed '
18144 s/'"$ac_delim"'/"\\\
18145 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148 for (key in D) D_is_set[key] = 1
18151 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18153 split(line, arg, " ")
18154 if (arg[1] == "#") {
18158 defundef = substr(arg[1], 2)
18161 split(mac1, mac2, "(") #)
18163 prefix = substr(line, 1, index(line, defundef) - 1)
18164 if (D_is_set[macro]) {
18165 # Preserve the white space surrounding the "#".
18166 print prefix "define", macro P[macro] D[macro]
18169 # Replace #undef with comments. This is necessary, for example,
18170 # in the case of _POSIX_SOURCE, which is predefined and required
18171 # on some systems where configure will not decide to define it.
18172 if (defundef == "undef") {
18173 print "/*", prefix defundef, macro, "*/"
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18183 fi # test -n "$CONFIG_HEADERS"
18186 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18191 :[FHLC]) ac_mode=$ac_tag; continue;;
18193 case $ac_mode$ac_tag in
18195 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18196 :[FH]-) ac_tag=-:-;;
18197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18214 -) ac_f="$ac_tmp/stdin";;
18215 *) # Look for the file first in the build tree, then in the source tree
18216 # (if the path is not absolute). The absolute path cannot be DOS-style,
18217 # because $ac_f cannot contain `:'.
18221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18223 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18225 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18226 as_fn_append ac_file_inputs " '$ac_f'"
18229 # Let's still pretend it is `configure' which instantiates (i.e., don't
18230 # use $as_me), people would be surprised to read:
18231 # /* config.h. Generated by config.status. */
18232 configure_input='Generated from '`
18233 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18235 if test x"$ac_file" != x-; then
18236 configure_input="$ac_file. $configure_input"
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18238 $as_echo "$as_me: creating $ac_file" >&6;}
18240 # Neutralize special characters interpreted by sed in replacement strings.
18241 case $configure_input in #(
18242 *\&* | *\|* | *\\* )
18243 ac_sed_conf_input=`$as_echo "$configure_input" |
18244 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18245 *) ac_sed_conf_input=$configure_input;;
18249 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18255 ac_dir=`$as_dirname -- "$ac_file" ||
18256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18257 X"$ac_file" : 'X\(//\)[^/]' \| \
18258 X"$ac_file" : 'X\(//\)$' \| \
18259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18260 $as_echo X"$ac_file" |
18261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18265 /^X\(\/\/\)[^/].*/{
18278 as_dir="$ac_dir"; as_fn_mkdir_p
18282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18285 # A ".." for each directory in $ac_dir_suffix.
18286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18287 case $ac_top_builddir_sub in
18288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18292 ac_abs_top_builddir=$ac_pwd
18293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18294 # for backward compatibility:
18295 ac_top_builddir=$ac_top_build_prefix
18298 .) # We are building in place.
18300 ac_top_srcdir=$ac_top_builddir_sub
18301 ac_abs_top_srcdir=$ac_pwd ;;
18302 [\\/]* | ?:[\\/]* ) # Absolute name.
18303 ac_srcdir=$srcdir$ac_dir_suffix;
18304 ac_top_srcdir=$srcdir
18305 ac_abs_top_srcdir=$srcdir ;;
18306 *) # Relative name.
18307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18308 ac_top_srcdir=$ac_top_build_prefix$srcdir
18309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18323 # If the template does not know about datarootdir, expand it.
18324 # FIXME: This hack should be removed a few years after 2.60.
18325 ac_datarootdir_hack=; ac_datarootdir_seen=
18336 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18337 *datarootdir*) ac_datarootdir_seen=yes;;
18338 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18340 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18343 ac_datarootdir_hack='
18344 s&@datadir@&$datadir&g
18345 s&@docdir@&$docdir&g
18346 s&@infodir@&$infodir&g
18347 s&@localedir@&$localedir&g
18348 s&@mandir@&$mandir&g
18349 s&\\\${datarootdir}&$datarootdir&g' ;;
18353 # Neutralize VPATH when `$srcdir' = `.'.
18354 # Shell code in configure.ac might set extrasub.
18355 # FIXME: do we really want to maintain this feature?
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 ac_sed_extra="$ac_vpsub
18360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18363 s|@configure_input@|$ac_sed_conf_input|;t t
18364 s&@top_builddir@&$ac_top_builddir_sub&;t t
18365 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18366 s&@srcdir@&$ac_srcdir&;t t
18367 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18368 s&@top_srcdir@&$ac_top_srcdir&;t t
18369 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18370 s&@builddir@&$ac_builddir&;t t
18371 s&@abs_builddir@&$ac_abs_builddir&;t t
18372 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18373 $ac_datarootdir_hack
18375 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18376 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18379 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18381 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18383 which seems to be undefined. Please make sure it is defined" >&5
18384 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18385 which seems to be undefined. Please make sure it is defined" >&2;}
18387 rm -f "$ac_tmp/stdin"
18389 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18390 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18398 if test x"$ac_file" != x-; then
18400 $as_echo "/* $configure_input */" \
18401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18402 } >"$ac_tmp/config.h" \
18403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18404 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18406 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18409 mv "$ac_tmp/config.h" "$ac_file" \
18410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18413 $as_echo "/* $configure_input */" \
18414 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18415 || as_fn_error $? "could not create -" "$LINENO" 5
18419 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18420 $as_echo "$as_me: executing $ac_file commands" >&6;}
18425 case $ac_file$ac_mode in
18428 # See if we are running on zsh, and set the options which allow our
18429 # commands through without removal of \ escapes.
18430 if test -n "${ZSH_VERSION+set}" ; then
18431 setopt NO_GLOB_SUBST
18434 cfgfile="${ofile}T"
18435 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18438 cat <<_LT_EOF >> "$cfgfile"
18441 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18442 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18443 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18444 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18446 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18447 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18449 # Written by Gordon Matzigkeit, 1996
18451 # This file is part of GNU Libtool.
18453 # GNU Libtool is free software; you can redistribute it and/or
18454 # modify it under the terms of the GNU General Public License as
18455 # published by the Free Software Foundation; either version 2 of
18456 # the License, or (at your option) any later version.
18458 # As a special exception to the GNU General Public License,
18459 # if you distribute this file as part of a program or library that
18460 # is built using GNU Libtool, you may include this file under the
18461 # same distribution terms that you use for the rest of that program.
18463 # GNU Libtool is distributed in the hope that it will be useful,
18464 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18465 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18466 # GNU General Public License for more details.
18468 # You should have received a copy of the GNU General Public License
18469 # along with GNU Libtool; see the file COPYING. If not, a copy
18470 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18471 # obtained by writing to the Free Software Foundation, Inc.,
18472 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18475 # The names of the tagged configurations supported by this script.
18478 # ### BEGIN LIBTOOL CONFIG
18480 # Which release of libtool.m4 was used?
18481 macro_version=$macro_version
18482 macro_revision=$macro_revision
18484 # Whether or not to build shared libraries.
18485 build_libtool_libs=$enable_shared
18487 # Whether or not to build static libraries.
18488 build_old_libs=$enable_static
18490 # What type of objects to build.
18493 # Whether or not to optimize for fast installation.
18494 fast_install=$enable_fast_install
18496 # Shell to use when invoking shell scripts.
18499 # An echo program that protects backslashes.
18502 # The PATH separator for the build system.
18503 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18506 host_alias=$host_alias
18510 # The build system.
18511 build_alias=$build_alias
18515 # A sed program that does not truncate output.
18518 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18519 Xsed="\$SED -e 1s/^X//"
18521 # A grep program that handles long lines.
18527 # A literal string matcher.
18530 # A BSD- or MS-compatible name lister.
18533 # Whether we need soft or hard links.
18536 # What is the maximum length of a command?
18537 max_cmd_len=$max_cmd_len
18539 # Object file suffix (normally "o").
18542 # Executable file suffix (normally "").
18545 # whether the shell understands "unset".
18548 # turn spaces into newlines.
18551 # turn newlines into spaces.
18554 # convert \$build file names to \$host format.
18555 to_host_file_cmd=$lt_cv_to_host_file_cmd
18557 # convert \$build files to toolchain format.
18558 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18560 # An object symbol dumper.
18561 OBJDUMP=$lt_OBJDUMP
18563 # Method to check whether dependent libraries are shared objects.
18564 deplibs_check_method=$lt_deplibs_check_method
18566 # Command to use when deplibs_check_method = "file_magic".
18567 file_magic_cmd=$lt_file_magic_cmd
18569 # How to find potential files when deplibs_check_method = "file_magic".
18570 file_magic_glob=$lt_file_magic_glob
18572 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18573 want_nocaseglob=$lt_want_nocaseglob
18575 # DLL creation program.
18576 DLLTOOL=$lt_DLLTOOL
18578 # Command to associate shared and link libraries.
18579 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18584 # Flags to create an archive.
18585 AR_FLAGS=$lt_AR_FLAGS
18587 # How to feed a file listing to the archiver.
18588 archiver_list_spec=$lt_archiver_list_spec
18590 # A symbol stripping program.
18593 # Commands used to install an old-style archive.
18595 old_postinstall_cmds=$lt_old_postinstall_cmds
18596 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18598 # Whether to use a lock for old archive extraction.
18599 lock_old_archive_extraction=$lock_old_archive_extraction
18604 # LTCC compiler flags.
18605 LTCFLAGS=$lt_CFLAGS
18607 # Take the output of nm and produce a listing of raw symbols and C names.
18608 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18610 # Transform the output of nm in a proper C declaration.
18611 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18613 # Transform the output of nm in a C name address pair.
18614 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18616 # Transform the output of nm in a C name address pair when lib prefix is needed.
18617 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18619 # Specify filename containing input files for \$NM.
18620 nm_file_list_spec=$lt_nm_file_list_spec
18622 # The root where to search for dependent libraries,and in which our libraries should be installed.
18623 lt_sysroot=$lt_sysroot
18625 # The name of the directory that contains temporary libtool files.
18628 # Used to examine libraries when file_magic_cmd begins with "file".
18629 MAGIC_CMD=$MAGIC_CMD
18631 # Must we lock files when doing compilation?
18632 need_locks=$lt_need_locks
18635 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18637 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18638 DSYMUTIL=$lt_DSYMUTIL
18640 # Tool to change global to local symbols on Mac OS X.
18643 # Tool to manipulate fat objects and archives on Mac OS X.
18646 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18649 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18650 OTOOL64=$lt_OTOOL64
18652 # Old archive suffix (normally "a").
18655 # Shared library suffix (normally ".so").
18656 shrext_cmds=$lt_shrext_cmds
18658 # The commands to extract the exported symbol list from a shared archive.
18659 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18661 # Variables whose values should be saved in libtool wrapper scripts and
18662 # restored at link time.
18663 variables_saved_for_relink=$lt_variables_saved_for_relink
18665 # Do we need the "lib" prefix for modules?
18666 need_lib_prefix=$need_lib_prefix
18668 # Do we need a version for libraries?
18669 need_version=$need_version
18671 # Library versioning type.
18672 version_type=$version_type
18674 # Shared library runtime path variable.
18675 runpath_var=$runpath_var
18677 # Shared library path variable.
18678 shlibpath_var=$shlibpath_var
18680 # Is shlibpath searched before the hard-coded library search path?
18681 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18683 # Format of library name prefix.
18684 libname_spec=$lt_libname_spec
18686 # List of archive names. First name is the real one, the rest are links.
18687 # The last name is the one that the linker finds with -lNAME
18688 library_names_spec=$lt_library_names_spec
18690 # The coded name of the library, if different from the real name.
18691 soname_spec=$lt_soname_spec
18693 # Permission mode override for installation of shared libraries.
18694 install_override_mode=$lt_install_override_mode
18696 # Command to use after installation of a shared archive.
18697 postinstall_cmds=$lt_postinstall_cmds
18699 # Command to use after uninstallation of a shared archive.
18700 postuninstall_cmds=$lt_postuninstall_cmds
18702 # Commands used to finish a libtool library installation in a directory.
18703 finish_cmds=$lt_finish_cmds
18705 # As "finish_cmds", except a single script fragment to be evaled but
18707 finish_eval=$lt_finish_eval
18709 # Whether we should hardcode library paths into libraries.
18710 hardcode_into_libs=$hardcode_into_libs
18712 # Compile-time system search path for libraries.
18713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18715 # Run-time system search path for libraries.
18716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18718 # Whether dlopen is supported.
18719 dlopen_support=$enable_dlopen
18721 # Whether dlopen of programs is supported.
18722 dlopen_self=$enable_dlopen_self
18724 # Whether dlopen of statically linked programs is supported.
18725 dlopen_self_static=$enable_dlopen_self_static
18727 # Commands to strip libraries.
18728 old_striplib=$lt_old_striplib
18729 striplib=$lt_striplib
18732 # The linker used to build libraries.
18735 # How to create reloadable object files.
18736 reload_flag=$lt_reload_flag
18737 reload_cmds=$lt_reload_cmds
18739 # Commands used to build an old-style archive.
18740 old_archive_cmds=$lt_old_archive_cmds
18742 # A language specific compiler.
18745 # Is the compiler the GNU compiler?
18748 # Compiler flag to turn off builtin functions.
18749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18751 # Additional compiler flags for building library objects.
18752 pic_flag=$lt_lt_prog_compiler_pic
18754 # How to pass a linker flag through the compiler.
18755 wl=$lt_lt_prog_compiler_wl
18757 # Compiler flag to prevent dynamic linking.
18758 link_static_flag=$lt_lt_prog_compiler_static
18760 # Does compiler simultaneously support -c and -o options?
18761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18763 # Whether or not to add -lc for building shared libraries.
18764 build_libtool_need_lc=$archive_cmds_need_lc
18766 # Whether or not to disallow shared libs when runtime libs are static.
18767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18769 # Compiler flag to allow reflexive dlopens.
18770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18772 # Compiler flag to generate shared objects directly from archives.
18773 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18775 # Whether the compiler copes with passing no objects directly.
18776 compiler_needs_object=$lt_compiler_needs_object
18778 # Create an old-style archive from a shared archive.
18779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18781 # Create a temporary old-style archive to link instead of a shared archive.
18782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18784 # Commands used to build a shared archive.
18785 archive_cmds=$lt_archive_cmds
18786 archive_expsym_cmds=$lt_archive_expsym_cmds
18788 # Commands used to build a loadable module if different from building
18789 # a shared archive.
18790 module_cmds=$lt_module_cmds
18791 module_expsym_cmds=$lt_module_expsym_cmds
18793 # Whether we are building with GNU ld or not.
18794 with_gnu_ld=$lt_with_gnu_ld
18796 # Flag that allows shared libraries with undefined symbols to be built.
18797 allow_undefined_flag=$lt_allow_undefined_flag
18799 # Flag that enforces no undefined symbols.
18800 no_undefined_flag=$lt_no_undefined_flag
18802 # Flag to hardcode \$libdir into a binary during linking.
18803 # This must work even if \$libdir does not exist
18804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18806 # Whether we need a single "-rpath" flag with a separated argument.
18807 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18810 # DIR into the resulting binary.
18811 hardcode_direct=$hardcode_direct
18813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18814 # DIR into the resulting binary and the resulting library dependency is
18815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18816 # library is relocated.
18817 hardcode_direct_absolute=$hardcode_direct_absolute
18819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18820 # into the resulting binary.
18821 hardcode_minus_L=$hardcode_minus_L
18823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18824 # into the resulting binary.
18825 hardcode_shlibpath_var=$hardcode_shlibpath_var
18827 # Set to "yes" if building a shared library automatically hardcodes DIR
18828 # into the library and all subsequent libraries and executables linked
18830 hardcode_automatic=$hardcode_automatic
18832 # Set to yes if linker adds runtime paths of dependent libraries
18833 # to runtime path list.
18834 inherit_rpath=$inherit_rpath
18836 # Whether libtool must link a program against all its dependency libraries.
18837 link_all_deplibs=$link_all_deplibs
18839 # Set to "yes" if exported symbols are required.
18840 always_export_symbols=$always_export_symbols
18842 # The commands to list exported symbols.
18843 export_symbols_cmds=$lt_export_symbols_cmds
18845 # Symbols that should not be listed in the preloaded symbols.
18846 exclude_expsyms=$lt_exclude_expsyms
18848 # Symbols that must always be exported.
18849 include_expsyms=$lt_include_expsyms
18851 # Commands necessary for linking programs (against libraries) with templates.
18852 prelink_cmds=$lt_prelink_cmds
18854 # Commands necessary for finishing linking programs.
18855 postlink_cmds=$lt_postlink_cmds
18857 # Specify filename containing input files.
18858 file_list_spec=$lt_file_list_spec
18860 # How to hardcode a shared library path into an executable.
18861 hardcode_action=$hardcode_action
18863 # ### END LIBTOOL CONFIG
18869 cat <<\_LT_EOF >> "$cfgfile"
18870 # AIX sometimes has problems with the GCC collect2 program. For some
18871 # reason, if we set the COLLECT_NAMES environment variable, the problems
18872 # vanish in a puff of smoke.
18873 if test "X${COLLECT_NAMES+set}" != Xset; then
18875 export COLLECT_NAMES
18882 ltmain="$ac_aux_dir/ltmain.sh"
18885 # We use sed instead of cat because bash on DJGPP gets confused if
18886 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18887 # text mode, it properly converts lines to CR/LF. This bash problem
18888 # is reportedly fixed, but why not run on old versions too?
18889 sed '$q' "$ltmain" >> "$cfgfile" \
18890 || (rm -f "$cfgfile"; exit 1)
18892 if test x"$xsi_shell" = xyes; then
18893 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18897 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18898 \ * ) func_dirname_result="${3}" ;;\
18900 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18901 && mv -f "$cfgfile.tmp" "$cfgfile" \
18902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903 test 0 -eq $? || _lt_function_replace_fail=:
18906 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18909 \ func_basename_result="${1##*/}"\
18910 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18911 && mv -f "$cfgfile.tmp" "$cfgfile" \
18912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18913 test 0 -eq $? || _lt_function_replace_fail=:
18916 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18917 func_dirname_and_basename ()\
18920 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18921 \ * ) func_dirname_result="${3}" ;;\
18923 \ func_basename_result="${1##*/}"\
18924 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18925 && mv -f "$cfgfile.tmp" "$cfgfile" \
18926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18927 test 0 -eq $? || _lt_function_replace_fail=:
18930 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18933 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18934 \ # positional parameters, so assign one to ordinary parameter first.\
18935 \ func_stripname_result=${3}\
18936 \ func_stripname_result=${func_stripname_result#"${1}"}\
18937 \ func_stripname_result=${func_stripname_result%"${2}"}\
18938 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18939 && mv -f "$cfgfile.tmp" "$cfgfile" \
18940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18941 test 0 -eq $? || _lt_function_replace_fail=:
18944 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18945 func_split_long_opt ()\
18947 \ func_split_long_opt_name=${1%%=*}\
18948 \ func_split_long_opt_arg=${1#*=}\
18949 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18950 && mv -f "$cfgfile.tmp" "$cfgfile" \
18951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18952 test 0 -eq $? || _lt_function_replace_fail=:
18955 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18956 func_split_short_opt ()\
18958 \ func_split_short_opt_arg=${1#??}\
18959 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18960 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18961 && mv -f "$cfgfile.tmp" "$cfgfile" \
18962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18963 test 0 -eq $? || _lt_function_replace_fail=:
18966 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18970 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18971 \ *) func_lo2o_result=${1} ;;\
18973 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18974 && mv -f "$cfgfile.tmp" "$cfgfile" \
18975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976 test 0 -eq $? || _lt_function_replace_fail=:
18979 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18982 func_xform_result=${1%.*}.lo\
18983 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18984 && mv -f "$cfgfile.tmp" "$cfgfile" \
18985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18986 test 0 -eq $? || _lt_function_replace_fail=:
18989 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18992 func_arith_result=$(( $* ))\
18993 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18994 && mv -f "$cfgfile.tmp" "$cfgfile" \
18995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18996 test 0 -eq $? || _lt_function_replace_fail=:
18999 sed -e '/^func_len ()$/,/^} # func_len /c\
19002 func_len_result=${#1}\
19003 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19004 && mv -f "$cfgfile.tmp" "$cfgfile" \
19005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19006 test 0 -eq $? || _lt_function_replace_fail=:
19010 if test x"$lt_shell_append" = xyes; then
19011 sed -e '/^func_append ()$/,/^} # func_append /c\
19014 eval "${1}+=\\${2}"\
19015 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19016 && mv -f "$cfgfile.tmp" "$cfgfile" \
19017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19018 test 0 -eq $? || _lt_function_replace_fail=:
19021 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19022 func_append_quoted ()\
19024 \ func_quote_for_eval "${2}"\
19025 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19026 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19027 && mv -f "$cfgfile.tmp" "$cfgfile" \
19028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19029 test 0 -eq $? || _lt_function_replace_fail=:
19032 # Save a `func_append' function call where possible by direct use of '+='
19033 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19034 && mv -f "$cfgfile.tmp" "$cfgfile" \
19035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19036 test 0 -eq $? || _lt_function_replace_fail=:
19038 # Save a `func_append' function call even when '+=' is not available
19039 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19040 && mv -f "$cfgfile.tmp" "$cfgfile" \
19041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19042 test 0 -eq $? || _lt_function_replace_fail=:
19045 if test x"$_lt_function_replace_fail" = x":"; then
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19047 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19051 mv -f "$cfgfile" "$ofile" ||
19052 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19057 sed < libtool > libtool-2 \
19058 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
19059 mv libtool-2 libtool
19061 libtool="./libtool"
19070 ac_clean_files=$ac_clean_files_save
19072 test $ac_write_fail = 0 ||
19073 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19076 # configure is writing to config.log, and then calls config.status.
19077 # config.status does its own redirection, appending to config.log.
19078 # Unfortunately, on DOS this fails, as config.log is still kept open
19079 # by configure, so config.status won't be able to write to it; its
19080 # output is simply discarded. So we exec the FD to /dev/null,
19081 # effectively closing config.log, so it can be properly (re)opened and
19082 # appended to by config.status. When coming back to configure, we
19083 # need to make the FD available again.
19084 if test "$no_create" != yes; then
19086 ac_config_status_args=
19087 test "$silent" = yes &&
19088 ac_config_status_args="$ac_config_status_args --quiet"
19090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19093 # would make configure fail if this is the last instruction.
19094 $ac_cs_success || as_fn_exit 1
19096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19102 echo "copying header files"
19104 for file in $srcdir/ldns//*.h; do
19105 sh $srcdir/install-sh -m 644 $file ldns/