2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ldns 1.6.16.
5 # Report bugs to <libdns@nlnetlabs.nl>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: libdns@nlnetlabs.nl about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
562 PACKAGE_TARNAME='libdns'
563 PACKAGE_VERSION='1.6.16'
564 PACKAGE_STRING='ldns 1.6.16'
565 PACKAGE_BUGREPORT='libdns@nlnetlabs.nl'
568 ac_unique_file="drill.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='LTLIBOBJS
607 LDNS_TRUST_ANCHOR_FILE
651 program_transform_name
664 enable_option_checking
670 ac_precious_vars='build_alias
681 # Initialize some variables set by options.
683 ac_init_version=false
684 ac_unrecognized_opts=
686 # The variables have the same names as the options, with
687 # dashes changed to underlines.
695 program_transform_name=s,x,x,
703 # Installation directory options.
704 # These are left unexpanded so users can "make install exec_prefix=/foo"
705 # and all the variables that are supposed to be based on exec_prefix
706 # by default will actually change.
707 # Use braces instead of parens because sh, perl, etc. also accept them.
708 # (The list follows the same order as the GNU Coding Standards.)
709 bindir='${exec_prefix}/bin'
710 sbindir='${exec_prefix}/sbin'
711 libexecdir='${exec_prefix}/libexec'
712 datarootdir='${prefix}/share'
713 datadir='${datarootdir}'
714 sysconfdir='${prefix}/etc'
715 sharedstatedir='${prefix}/com'
716 localstatedir='${prefix}/var'
717 includedir='${prefix}/include'
718 oldincludedir='/usr/include'
719 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
720 infodir='${datarootdir}/info'
725 libdir='${exec_prefix}/lib'
726 localedir='${datarootdir}/locale'
727 mandir='${datarootdir}/man'
733 # If the previous option needs an argument, assign it.
734 if test -n "$ac_prev"; then
735 eval $ac_prev=\$ac_option
741 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746 # Accept the important Cygnus configure options, so we can diagnose typos.
748 case $ac_dashdash$ac_option in
752 -bindir | --bindir | --bindi | --bind | --bin | --bi)
754 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
757 -build | --build | --buil | --bui | --bu)
758 ac_prev=build_alias ;;
759 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
760 build_alias=$ac_optarg ;;
762 -cache-file | --cache-file | --cache-fil | --cache-fi \
763 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
764 ac_prev=cache_file ;;
765 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
766 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
767 cache_file=$ac_optarg ;;
770 cache_file=config.cache ;;
772 -datadir | --datadir | --datadi | --datad)
774 -datadir=* | --datadir=* | --datadi=* | --datad=*)
775 datadir=$ac_optarg ;;
777 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
778 | --dataroo | --dataro | --datar)
779 ac_prev=datarootdir ;;
780 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
781 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
782 datarootdir=$ac_optarg ;;
784 -disable-* | --disable-*)
785 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
788 as_fn_error $? "invalid feature name: $ac_useropt"
789 ac_useropt_orig=$ac_useropt
790 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
791 case $ac_user_opts in
795 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
796 ac_unrecognized_sep=', ';;
798 eval enable_$ac_useropt=no ;;
800 -docdir | --docdir | --docdi | --doc | --do)
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
810 -enable-* | --enable-*)
811 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error $? "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
824 eval enable_$ac_useropt=\$ac_optarg ;;
826 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
827 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
828 | --exec | --exe | --ex)
829 ac_prev=exec_prefix ;;
830 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
831 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
832 | --exec=* | --exe=* | --ex=*)
833 exec_prefix=$ac_optarg ;;
835 -gas | --gas | --ga | --g)
836 # Obsolete; use --with-gas.
839 -help | --help | --hel | --he | -h)
841 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
842 ac_init_help=recursive ;;
843 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
844 ac_init_help=short ;;
846 -host | --host | --hos | --ho)
847 ac_prev=host_alias ;;
848 -host=* | --host=* | --hos=* | --ho=*)
849 host_alias=$ac_optarg ;;
851 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
853 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
855 htmldir=$ac_optarg ;;
857 -includedir | --includedir | --includedi | --included | --include \
858 | --includ | --inclu | --incl | --inc)
859 ac_prev=includedir ;;
860 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
861 | --includ=* | --inclu=* | --incl=* | --inc=*)
862 includedir=$ac_optarg ;;
864 -infodir | --infodir | --infodi | --infod | --info | --inf)
866 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
867 infodir=$ac_optarg ;;
869 -libdir | --libdir | --libdi | --libd)
871 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
875 | --libexe | --libex | --libe)
876 ac_prev=libexecdir ;;
877 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
878 | --libexe=* | --libex=* | --libe=*)
879 libexecdir=$ac_optarg ;;
881 -localedir | --localedir | --localedi | --localed | --locale)
883 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
884 localedir=$ac_optarg ;;
886 -localstatedir | --localstatedir | --localstatedi | --localstated \
887 | --localstate | --localstat | --localsta | --localst | --locals)
888 ac_prev=localstatedir ;;
889 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
890 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
891 localstatedir=$ac_optarg ;;
893 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
895 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 # Obsolete; use --without-fp.
902 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
903 | --no-cr | --no-c | -n)
906 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
907 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
911 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
912 | --oldin | --oldi | --old | --ol | --o)
913 ac_prev=oldincludedir ;;
914 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
915 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
916 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
917 oldincludedir=$ac_optarg ;;
919 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
921 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 -program-prefix | --program-prefix | --program-prefi | --program-pref \
925 | --program-pre | --program-pr | --program-p)
926 ac_prev=program_prefix ;;
927 -program-prefix=* | --program-prefix=* | --program-prefi=* \
928 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
929 program_prefix=$ac_optarg ;;
931 -program-suffix | --program-suffix | --program-suffi | --program-suff \
932 | --program-suf | --program-su | --program-s)
933 ac_prev=program_suffix ;;
934 -program-suffix=* | --program-suffix=* | --program-suffi=* \
935 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
936 program_suffix=$ac_optarg ;;
938 -program-transform-name | --program-transform-name \
939 | --program-transform-nam | --program-transform-na \
940 | --program-transform-n | --program-transform- \
941 | --program-transform | --program-transfor \
942 | --program-transfo | --program-transf \
943 | --program-trans | --program-tran \
944 | --progr-tra | --program-tr | --program-t)
945 ac_prev=program_transform_name ;;
946 -program-transform-name=* | --program-transform-name=* \
947 | --program-transform-nam=* | --program-transform-na=* \
948 | --program-transform-n=* | --program-transform-=* \
949 | --program-transform=* | --program-transfor=* \
950 | --program-transfo=* | --program-transf=* \
951 | --program-trans=* | --program-tran=* \
952 | --progr-tra=* | --program-tr=* | --program-t=*)
953 program_transform_name=$ac_optarg ;;
955 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
957 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 -psdir | --psdir | --psdi | --psd | --ps)
962 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966 | -silent | --silent | --silen | --sile | --sil)
969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973 sbindir=$ac_optarg ;;
975 -sharedstatedir | --sharedstatedir | --sharedstatedi \
976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
977 | --sharedst | --shareds | --shared | --share | --shar \
979 ac_prev=sharedstatedir ;;
980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984 sharedstatedir=$ac_optarg ;;
986 -site | --site | --sit)
988 -site=* | --site=* | --sit=*)
991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
997 | --syscon | --sysco | --sysc | --sys | --sy)
998 ac_prev=sysconfdir ;;
999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1001 sysconfdir=$ac_optarg ;;
1003 -target | --target | --targe | --targ | --tar | --ta | --t)
1004 ac_prev=target_alias ;;
1005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1006 target_alias=$ac_optarg ;;
1008 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 -version | --version | --versio | --versi | --vers | -V)
1012 ac_init_version=: ;;
1015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid package name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1028 eval with_$ac_useropt=\$ac_optarg ;;
1030 -without-* | --without-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid package name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval with_$ac_useropt=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1065 Try \`$0 --help' for more information"
1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1070 # Reject names that are not valid shell variable names.
1071 case $ac_envvar in #(
1072 '' | [0-9]* | *[!_$as_cr_alnum]* )
1073 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 as_fn_error $? "missing argument to $ac_option"
1094 if test -n "$ac_unrecognized_opts"; then
1095 case $enable_option_checking in
1097 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102 # Check all directory arguments for consistency.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1109 # Remove trailing slashes.
1112 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1113 eval $ac_var=\$ac_val;;
1115 # Be sure to have absolute directory names.
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1123 # There might be people who depend on the old broken behavior: `$host'
1124 # used to hold the argument of --host etc.
1125 # FIXME: To remove some day.
1128 target=$target_alias
1130 # FIXME: To remove some day.
1131 if test "x$host_alias" != x; then
1132 if test "x$build_alias" = x; then
1133 cross_compiling=maybe
1134 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1135 If a cross compiler is detected then cross compile mode will be used" >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1142 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144 test "$silent" = yes && exec 6>/dev/null
1147 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di=`ls -di .` &&
1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 as_fn_error $? "working directory cannot be determined"
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 as_fn_error $? "pwd does not report name of working directory"
1155 # Find the source files, if location was not specified.
1156 if test -z "$srcdir"; then
1157 ac_srcdir_defaulted=yes
1158 # Try the directory containing this script, then the parent directory.
1159 ac_confdir=`$as_dirname -- "$as_myself" ||
1160 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1161 X"$as_myself" : 'X\(//\)[^/]' \| \
1162 X"$as_myself" : 'X\(//\)$' \| \
1163 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1164 $as_echo X"$as_myself" |
1165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1187 ac_srcdir_defaulted=no
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1190 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1191 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1195 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1197 # When building in place, set srcdir=.
1198 if test "$ac_abs_confdir" = "$ac_pwd"; then
1201 # Remove unnecessary trailing slashes from srcdir.
1202 # Double slashes in file names in object file debugging info
1203 # mess up M-x gdb in Emacs.
1205 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207 for ac_var in $ac_precious_vars; do
1208 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_env_${ac_var}_value=\$${ac_var}
1210 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 # Report the --help message.
1217 if test "$ac_init_help" = "long"; then
1218 # Omit some internal or obsolete options to make the list less imposing.
1219 # This message is too long to be a string in the A/UX 3.1 sh.
1221 \`configure' configures ldns 1.6.16 to adapt to many kinds of systems.
1223 Usage: $0 [OPTION]... [VAR=VALUE]...
1225 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226 VAR=VALUE. See below for descriptions of some of the useful variables.
1228 Defaults for the options are specified in brackets.
1231 -h, --help display this help and exit
1232 --help=short display options specific to this package
1233 --help=recursive display the short help of all the included packages
1234 -V, --version display version information and exit
1235 -q, --quiet, --silent do not print \`checking ...' messages
1236 --cache-file=FILE cache test results in FILE [disabled]
1237 -C, --config-cache alias for \`--cache-file=config.cache'
1238 -n, --no-create do not create output files
1239 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1241 Installation directories:
1242 --prefix=PREFIX install architecture-independent files in PREFIX
1243 [$ac_default_prefix]
1244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247 By default, \`make install' will install all the files in
1248 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1249 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250 for instance \`--prefix=\$HOME'.
1252 For better control, use the options below.
1254 Fine tuning of the installation directories:
1255 --bindir=DIR user executables [EPREFIX/bin]
1256 --sbindir=DIR system admin executables [EPREFIX/sbin]
1257 --libexecdir=DIR program executables [EPREFIX/libexec]
1258 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1259 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1260 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1261 --libdir=DIR object code libraries [EPREFIX/lib]
1262 --includedir=DIR C header files [PREFIX/include]
1263 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266 --infodir=DIR info documentation [DATAROOTDIR/info]
1267 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268 --mandir=DIR man documentation [DATAROOTDIR/man]
1269 --docdir=DIR documentation root [DATAROOTDIR/doc/libdns]
1270 --htmldir=DIR html documentation [DOCDIR]
1271 --dvidir=DIR dvi documentation [DOCDIR]
1272 --pdfdir=DIR pdf documentation [DOCDIR]
1273 --psdir=DIR ps documentation [DOCDIR]
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of ldns 1.6.16:";;
1287 --disable-option-checking ignore unrecognized --enable/--with options
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --disable-rpath disable hardcoded rpath (default=enabled)
1293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295 --with-ssl=pathname enable SSL (will check /usr/local/ssl /usr/lib/ssl
1296 /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw
1298 --with-ldns=PATH specify prefix of path of ldns library to use
1301 --with-trust-anchor=KEYFILE
1302 Default location of the trust anchor file.
1303 [default=SYSCONFDIR/unbound/root.key]
1305 Some influential environment variables:
1306 CC C compiler command
1307 CFLAGS C compiler flags
1308 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1309 nonstandard directory <lib dir>
1310 LIBS libraries to pass to the linker, e.g. -l<library>
1311 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1312 you have headers in a nonstandard directory <include dir>
1315 Use these variables to override the choices made by `configure' or to help
1316 it to find libraries and programs with nonstandard names/locations.
1318 Report bugs to <libdns@nlnetlabs.nl>.
1323 if test "$ac_init_help" = "recursive"; then
1324 # If there are subdirs, report their specific --help.
1325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1326 test -d "$ac_dir" ||
1327 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1335 # A ".." for each directory in $ac_dir_suffix.
1336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1337 case $ac_top_builddir_sub in
1338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1342 ac_abs_top_builddir=$ac_pwd
1343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344 # for backward compatibility:
1345 ac_top_builddir=$ac_top_build_prefix
1348 .) # We are building in place.
1350 ac_top_srcdir=$ac_top_builddir_sub
1351 ac_abs_top_srcdir=$ac_pwd ;;
1352 [\\/]* | ?:[\\/]* ) # Absolute name.
1353 ac_srcdir=$srcdir$ac_dir_suffix;
1354 ac_top_srcdir=$srcdir
1355 ac_abs_top_srcdir=$srcdir ;;
1357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358 ac_top_srcdir=$ac_top_build_prefix$srcdir
1359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363 cd "$ac_dir" || { ac_status=$?; continue; }
1364 # Check for guested configure.
1365 if test -f "$ac_srcdir/configure.gnu"; then
1367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368 elif test -f "$ac_srcdir/configure"; then
1370 $SHELL "$ac_srcdir/configure" --help=recursive
1372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 cd "$ac_pwd" || { ac_status=$?; break; }
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1381 ldns configure 1.6.16
1382 generated by GNU Autoconf 2.68
1384 Copyright (C) 2010 Free Software Foundation, Inc.
1385 This configure script is free software; the Free Software Foundation
1386 gives unlimited permission to copy, distribute and modify it.
1391 ## ------------------------ ##
1392 ## Autoconf initialization. ##
1393 ## ------------------------ ##
1395 # ac_fn_c_try_compile LINENO
1396 # --------------------------
1397 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1398 ac_fn_c_try_compile ()
1400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1401 rm -f conftest.$ac_objext
1402 if { { ac_try="$ac_compile"
1404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1405 *) ac_try_echo=$ac_try;;
1407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1408 $as_echo "$ac_try_echo"; } >&5
1409 (eval "$ac_compile") 2>conftest.err
1411 if test -s conftest.err; then
1412 grep -v '^ *+' conftest.err >conftest.er1
1413 cat conftest.er1 >&5
1414 mv -f conftest.er1 conftest.err
1416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1417 test $ac_status = 0; } && {
1418 test -z "$ac_c_werror_flag" ||
1419 test ! -s conftest.err
1420 } && test -s conftest.$ac_objext; then :
1423 $as_echo "$as_me: failed program was:" >&5
1424 sed 's/^/| /' conftest.$ac_ext >&5
1428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1429 as_fn_set_status $ac_retval
1431 } # ac_fn_c_try_compile
1433 # ac_fn_c_try_cpp LINENO
1434 # ----------------------
1435 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 if { { ac_try="$ac_cpp conftest.$ac_ext"
1441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442 *) ac_try_echo=$ac_try;;
1444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445 $as_echo "$ac_try_echo"; } >&5
1446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1448 if test -s conftest.err; then
1449 grep -v '^ *+' conftest.err >conftest.er1
1450 cat conftest.er1 >&5
1451 mv -f conftest.er1 conftest.err
1453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454 test $ac_status = 0; } > conftest.i && {
1455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1456 test ! -s conftest.err
1460 $as_echo "$as_me: failed program was:" >&5
1461 sed 's/^/| /' conftest.$ac_ext >&5
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1470 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1471 # -------------------------------------------------------
1472 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1473 # the include files in INCLUDES and setting the cache variable VAR
1475 ac_fn_c_check_header_mongrel ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 if eval \${$3+:} false; then :
1479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1480 $as_echo_n "checking for $2... " >&6; }
1481 if eval \${$3+:} false; then :
1482 $as_echo_n "(cached) " >&6
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1488 # Is the header compilable?
1489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1490 $as_echo_n "checking $2 usability... " >&6; }
1491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1492 /* end confdefs.h. */
1496 if ac_fn_c_try_compile "$LINENO"; then :
1497 ac_header_compiler=yes
1499 ac_header_compiler=no
1501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1503 $as_echo "$ac_header_compiler" >&6; }
1505 # Is the header present?
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1507 $as_echo_n "checking $2 presence... " >&6; }
1508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1509 /* end confdefs.h. */
1512 if ac_fn_c_try_cpp "$LINENO"; then :
1513 ac_header_preproc=yes
1515 ac_header_preproc=no
1517 rm -f conftest.err conftest.i conftest.$ac_ext
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1519 $as_echo "$ac_header_preproc" >&6; }
1521 # So? What about this header?
1522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1525 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1531 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1533 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1535 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1537 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1539 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1540 ( $as_echo "## ---------------------------------- ##
1541 ## Report this to libdns@nlnetlabs.nl ##
1542 ## ---------------------------------- ##"
1543 ) | sed "s/^/$as_me: WARNING: /" >&2
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547 $as_echo_n "checking for $2... " >&6; }
1548 if eval \${$3+:} false; then :
1549 $as_echo_n "(cached) " >&6
1551 eval "$3=\$ac_header_compiler"
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1555 $as_echo "$ac_res" >&6; }
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 } # ac_fn_c_check_header_mongrel
1561 # ac_fn_c_try_run LINENO
1562 # ----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1564 # that executables *can* be run.
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>&5
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1579 { { case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_try") 2>&5
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; }; }; then :
1591 $as_echo "$as_me: program exited with status $ac_status" >&5
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=$ac_status
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if eval \${$3+:} false; then :
1613 $as_echo_n "(cached) " >&6
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1620 if ac_fn_c_try_compile "$LINENO"; then :
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 } # ac_fn_c_check_header_compile
1634 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1635 # -------------------------------------------
1636 # Tests whether TYPE exists after having included INCLUDES, setting cache
1637 # variable VAR accordingly.
1638 ac_fn_c_check_type ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_type
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749 #define $2 innocuous_$2
1751 /* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1757 # include <limits.h>
1759 # include <assert.h>
1764 /* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1771 /* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774 #if defined __stub_$2 || defined __stub___$2
1786 if ac_fn_c_try_link "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_func
1800 cat >config.log <<_ACEOF
1801 This file contains any messages produced by compilers while
1802 running configure, to aid debugging if configure makes a mistake.
1804 It was created by ldns $as_me 1.6.16, which was
1805 generated by GNU Autoconf 2.68. Invocation command line was
1817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1821 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 $as_echo "PATH: $as_dir"
1857 # Keep a trace of the command line.
1858 # Strip out --no-create and --no-recursion so they do not pile up.
1859 # Strip out --silent because we don't want to record it for future runs.
1860 # Also quote any args containing shell meta-characters.
1861 # Make two passes to allow for proper duplicate-argument suppression.
1865 ac_must_keep_next=false
1871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1873 | -silent | --silent | --silen | --sile | --sil)
1876 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 as_fn_append ac_configure_args1 " '$ac_arg'"
1882 if test $ac_must_keep_next = true; then
1883 ac_must_keep_next=false # Got value, back to normal.
1886 *=* | --config-cache | -C | -disable-* | --disable-* \
1887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1889 | -with-* | --with-* | -without-* | --without-* | --x)
1890 case "$ac_configure_args0 " in
1891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 -* ) ac_must_keep_next=true ;;
1897 as_fn_append ac_configure_args " '$ac_arg'"
1902 { ac_configure_args0=; unset ac_configure_args0;}
1903 { ac_configure_args1=; unset ac_configure_args1;}
1905 # When interrupted or exit'd, cleanup temporary files, and complete
1906 # config.log. We remove comments because anyway the quotes in there
1907 # would cause problems or look ugly.
1908 # WARNING: Use '\'' to represent an apostrophe within the trap.
1909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1910 trap 'exit_status=$?
1911 # Save into config.log some information that might help in debugging.
1915 $as_echo "## ---------------- ##
1916 ## Cache variables. ##
1917 ## ---------------- ##"
1919 # The following way of writing the cache mishandles newlines in values,
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) { eval $ac_var=; unset $ac_var;} ;;
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 $as_echo "## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##"
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 $as_echo "$ac_var='\''$ac_val'\''"
1965 if test -n "$ac_subst_files"; then
1966 $as_echo "## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##"
1970 for ac_var in $ac_subst_files
1972 eval ac_val=\$$ac_var
1974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 $as_echo "$ac_var='\''$ac_val'\''"
1981 if test -s confdefs.h; then
1982 $as_echo "## ----------- ##
1989 test "$ac_signal" != 0 &&
1990 $as_echo "$as_me: caught signal $ac_signal"
1991 $as_echo "$as_me: exit $exit_status"
1993 rm -f core *.core core.conftest.* &&
1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 for ac_signal in 1 2 13 15; do
1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2005 $as_echo "/* confdefs.h */" > confdefs.h
2007 # Predefined preprocessor variables.
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_NAME "$PACKAGE_NAME"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_STRING "$PACKAGE_STRING"
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_URL "$PACKAGE_URL"
2034 # Let the site file select an alternate cache file if it wants to.
2035 # Prefer an explicitly selected file to automatically selected ones.
2038 if test -n "$CONFIG_SITE"; then
2039 # We do not want a PATH search for config.site.
2040 case $CONFIG_SITE in #((
2041 -*) ac_site_file1=./$CONFIG_SITE;;
2042 */*) ac_site_file1=$CONFIG_SITE;;
2043 *) ac_site_file1=./$CONFIG_SITE;;
2045 elif test "x$prefix" != xNONE; then
2046 ac_site_file1=$prefix/share/config.site
2047 ac_site_file2=$prefix/etc/config.site
2049 ac_site_file1=$ac_default_prefix/share/config.site
2050 ac_site_file2=$ac_default_prefix/etc/config.site
2052 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 test "x$ac_site_file" = xNONE && continue
2055 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2057 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2058 sed 's/^/| /' "$ac_site_file" >&5
2060 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2062 as_fn_error $? "failed to load site script $ac_site_file
2063 See \`config.log' for more details" "$LINENO" 5; }
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special files
2069 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2070 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 $as_echo "$as_me: creating cache $cache_file" >&6;}
2084 # Check that the precious variables saved in the cache have kept the same
2086 ac_cache_corrupted=false
2087 for ac_var in $ac_precious_vars; do
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
2092 case $ac_old_set,$ac_new_set in
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2134 if $ac_cache_corrupted; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 # acx_nlnetlabs.m4 - common macros for configure checks
2154 # Copyright 2009, Wouter Wijngaards, NLnet Labs.
2158 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
2159 # 2012-01-20 Fix COMPILER_FLAGS_UNBOUND for gcc 4.6.2 assigned-not-used-warns.
2160 # 2011-12-05 Fix getaddrinfowithincludes on windows with fedora16 mingw32-gcc.
2161 # Fix ACX_MALLOC for redefined malloc error.
2162 # Fix GETADDRINFO_WITH_INCLUDES to add -lws2_32
2163 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
2164 # 2011-11-01 Fix FLTO test for llvm on Lion.
2165 # 2011-08-01 Fix nonblock test (broken at v13).
2166 # 2011-08-01 Fix autoconf 2.68 warnings
2167 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
2168 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
2169 # 2010-07-02 Add check for ss_family (for minix).
2170 # 2010-04-26 Fix to use CPPFLAGS for CHECK_COMPILER_FLAGS.
2171 # 2010-03-01 Fix RPATH using CONFIG_COMMANDS to run at the very end.
2172 # 2010-02-18 WITH_SSL outputs the LIBSSL_LDFLAGS, LIBS, CPPFLAGS seperate, -ldl
2173 # 2010-02-01 added ACX_CHECK_MEMCMP_SIGNED, AHX_MEMCMP_BROKEN
2174 # 2010-01-20 added AHX_COONFIG_STRLCAT
2175 # 2009-07-14 U_CHAR detection improved for windows crosscompile.
2176 # added ACX_FUNC_MALLOC
2177 # fixup some #if to #ifdef
2178 # NONBLOCKING test for mingw crosscompile.
2179 # 2009-07-13 added ACX_WITH_SSL_OPTIONAL
2180 # 2009-07-03 fixup LDFLAGS for empty ssl dir.
2182 # Automates some of the checking constructs. Aims at portability for POSIX.
2183 # Documentation for functions is below.
2185 # the following macro's are provided in this file:
2186 # (see below for details on each macro).
2188 # ACX_ESCAPE_BACKSLASH - escape backslashes in var for C-preproc.
2189 # ACX_RSRC_VERSION - create windows resource version number.
2190 # ACX_CHECK_COMPILER_FLAG - see if cc supports a flag.
2191 # ACX_CHECK_ERROR_FLAGS - see which flag is -werror (used below).
2192 # ACX_CHECK_COMPILER_FLAG_NEEDED - see if flags make the code compile cleanly.
2193 # ACX_DEPFLAG - find cc dependency flags.
2194 # ACX_DETERMINE_EXT_FLAGS_UNBOUND - find out which flags enable BSD and POSIX.
2195 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
2196 # ACX_CHECK_UNUSED_ATTRIBUTE - find cc variable unused syntax.
2197 # ACX_CHECK_FLTO - see if cc supports -flto and use it if so.
2198 # ACX_LIBTOOL_C_ONLY - create libtool for C only, improved.
2199 # ACX_TYPE_U_CHAR - u_char type.
2200 # ACX_TYPE_RLIM_T - rlim_t type.
2201 # ACX_TYPE_SOCKLEN_T - socklen_t type.
2202 # ACX_TYPE_IN_ADDR_T - in_addr_t type.
2203 # ACX_TYPE_IN_PORT_T - in_port_t type.
2204 # ACX_ARG_RPATH - add --disable-rpath option.
2205 # ACX_WITH_SSL - add --with-ssl option, link -lcrypto.
2206 # ACX_WITH_SSL_OPTIONAL - add --with-ssl option, link -lcrypto,
2207 # where --without-ssl is also accepted
2208 # ACX_LIB_SSL - setup to link -lssl.
2209 # ACX_SYS_LARGEFILE - improved sys_largefile, fseeko, >2G files.
2210 # ACX_CHECK_GETADDRINFO_WITH_INCLUDES - find getaddrinfo, portably.
2211 # ACX_FUNC_DEPRECATED - see if func is deprecated.
2212 # ACX_CHECK_NONBLOCKING_BROKEN - see if nonblocking sockets really work.
2213 # ACX_MKDIR_ONE_ARG - determine mkdir(2) number of arguments.
2214 # ACX_FUNC_IOCTLSOCKET - find ioctlsocket, portably.
2215 # ACX_FUNC_MALLOC - check malloc, define replacement .
2216 # AHX_CONFIG_FORMAT_ATTRIBUTE - config.h text for format.
2217 # AHX_CONFIG_UNUSED_ATTRIBUTE - config.h text for unused.
2218 # AHX_CONFIG_FSEEKO - define fseeko, ftello fallback.
2219 # AHX_CONFIG_RAND_MAX - define RAND_MAX if needed.
2220 # AHX_CONFIG_MAXHOSTNAMELEN - define MAXHOSTNAMELEN if needed.
2221 # AHX_CONFIG_IPV6_MIN_MTU - define IPV6_MIN_MTU if needed.
2222 # AHX_CONFIG_SNPRINTF - snprintf compat prototype
2223 # AHX_CONFIG_INET_PTON - inet_pton compat prototype
2224 # AHX_CONFIG_INET_NTOP - inet_ntop compat prototype
2225 # AHX_CONFIG_INET_ATON - inet_aton compat prototype
2226 # AHX_CONFIG_MEMMOVE - memmove compat prototype
2227 # AHX_CONFIG_STRLCAT - strlcat compat prototype
2228 # AHX_CONFIG_STRLCPY - strlcpy compat prototype
2229 # AHX_CONFIG_GMTIME_R - gmtime_r compat prototype
2230 # AHX_CONFIG_W32_SLEEP - w32 compat for sleep
2231 # AHX_CONFIG_W32_USLEEP - w32 compat for usleep
2232 # AHX_CONFIG_W32_RANDOM - w32 compat for random
2233 # AHX_CONFIG_W32_SRANDOM - w32 compat for srandom
2234 # AHX_CONFIG_W32_FD_SET_T - w32 detection of FD_SET_T.
2235 # ACX_CFLAGS_STRIP - strip one flag from CFLAGS
2236 # ACX_STRIP_EXT_FLAGS - strip extension flags from CFLAGS
2237 # AHX_CONFIG_FLAG_OMITTED - define omitted flag
2238 # AHX_CONFIG_FLAG_EXT - define omitted extension flag
2239 # AHX_CONFIG_EXT_FLAGS - define the stripped extension flags
2240 # ACX_CHECK_MEMCMP_SIGNED - check if memcmp uses signed characters.
2241 # AHX_MEMCMP_BROKEN - replace memcmp func for CHECK_MEMCMP_SIGNED.
2242 # ACX_CHECK_SS_FAMILY - check for sockaddr_storage.ss_family
2347 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
2349 CFLAGS=${CFLAGS:-${OURCFLAGS}}
2351 $as_echo "#define WINVER 0x0502" >>confdefs.h
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_CC+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2405 $as_echo_n "(cached) " >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2430 $as_echo "$ac_ct_CC" >&6; }
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2436 if test "x$ac_ct_CC" = x; then
2439 case $cross_compiling:$ac_tool_warned in
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2443 ac_tool_warned=yes ;;
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if ${ac_cv_prog_CC+:} false; then :
2458 $as_echo_n "(cached) " >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2483 $as_echo "$CC" >&6; }
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_CC+:} false; then :
2498 $as_echo_n "(cached) " >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 if test -n "$CC"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2540 $as_echo "$CC" >&6; }
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2589 test -n "$CC" && break
2592 if test -z "$CC"; then
2594 for ac_prog in cl.exe
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2626 $as_echo "$ac_ct_CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2633 test -n "$ac_ct_CC" && break
2636 if test "x$ac_ct_CC" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 as_fn_error $? "no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details" "$LINENO" 5; }
2657 # Provide some information about the compiler.
2658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2661 for ac_option in --version -v -V -qversion; do
2662 { { ac_try="$ac_compiler $ac_option >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2671 if test -s conftest.err; then
2673 ... rest of stderr output deleted ...
2674 10q' conftest.err >conftest.er1
2675 cat conftest.er1 >&5
2677 rm -f conftest.er1 conftest.err
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2693 ac_clean_files_save=$ac_clean_files
2694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2695 # Try to create an executable without -o first, disregard a.out.
2696 # It will help us diagnose broken compilers, and finding out an intuition
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2699 $as_echo_n "checking whether the C compiler works... " >&6; }
2700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2702 # The possible output files:
2703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2706 for ac_file in $ac_files
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715 if { { ac_try="$ac_link_default"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_link_default") 2>&5
2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725 test $ac_status = 0; }; then :
2726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2728 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2729 # so that the user can short-circuit this test for compilers unknown to
2731 for ac_file in $ac_files ''
2733 test -f "$ac_file" || continue
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2738 # We found the default executable, but exeext='' is most
2742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746 # We set ac_cv_exeext here because the later test for it is not
2747 # safe: cross compilers may not add the suffix if given an `-o'
2748 # argument, so we may need to know it at that point already.
2749 # Even if this section looks crufty: it has the advantage of
2756 test "$ac_cv_exeext" = no && ac_cv_exeext=
2761 if test -z "$ac_file"; then :
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 $as_echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 as_fn_error 77 "C compiler cannot create executables
2770 See \`config.log' for more details" "$LINENO" 5; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2776 $as_echo_n "checking for C compiler default output file name... " >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2778 $as_echo "$ac_file" >&6; }
2779 ac_exeext=$ac_cv_exeext
2781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2782 ac_clean_files=$ac_clean_files_save
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2784 $as_echo_n "checking for suffix of executables... " >&6; }
2785 if { { ac_try="$ac_link"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_link") 2>&5
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2798 # work properly (i.e., refer to `conftest.exe'), while it won't with
2800 for ac_file in conftest.exe conftest conftest.*; do
2801 test -f "$ac_file" || continue
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2813 See \`config.log' for more details" "$LINENO" 5; }
2815 rm -f conftest conftest$ac_cv_exeext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2817 $as_echo "$ac_cv_exeext" >&6; }
2819 rm -f conftest.$ac_ext
2820 EXEEXT=$ac_cv_exeext
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2828 FILE *f = fopen ("conftest.out", "w");
2829 return ferror (f) || fclose (f) != 0;
2835 ac_clean_files="$ac_clean_files conftest.out"
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2839 $as_echo_n "checking whether we are cross compiling... " >&6; }
2840 if test "$cross_compiling" != yes; then
2841 { { ac_try="$ac_link"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>&5
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 if { ac_try='./conftest$ac_cv_exeext'
2853 { { case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2858 $as_echo "$ac_try_echo"; } >&5
2859 (eval "$ac_try") 2>&5
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; }; then
2865 if test "$cross_compiling" = maybe; then
2868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870 as_fn_error $? "cannot run C compiled programs.
2871 If you meant to cross compile, use \`--host'.
2872 See \`config.log' for more details" "$LINENO" 5; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2877 $as_echo "$cross_compiling" >&6; }
2879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2880 ac_clean_files=$ac_clean_files_save
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2882 $as_echo_n "checking for suffix of object files... " >&6; }
2883 if ${ac_cv_objext+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2897 rm -f conftest.o conftest.obj
2898 if { { ac_try="$ac_compile"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_compile") 2>&5
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; }; then :
2909 for ac_file in conftest.o conftest.obj conftest.*; do
2910 test -f "$ac_file" || continue;
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2918 $as_echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error $? "cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details" "$LINENO" 5; }
2926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2929 $as_echo "$ac_cv_objext" >&6; }
2930 OBJEXT=$ac_cv_objext
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2934 if ${ac_cv_c_compiler_gnu+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2951 if ac_fn_c_try_compile "$LINENO"; then :
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2962 if test $ac_compiler_gnu = yes; then
2967 ac_test_CFLAGS=${CFLAGS+set}
2968 ac_save_CFLAGS=$CFLAGS
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2971 if ${ac_cv_prog_cc_g+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 ac_save_c_werror_flag=$ac_c_werror_flag
2975 ac_c_werror_flag=yes
2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2989 if ac_fn_c_try_compile "$LINENO"; then :
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
3004 if ac_fn_c_try_compile "$LINENO"; then :
3007 ac_c_werror_flag=$ac_save_c_werror_flag
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3020 if ac_fn_c_try_compile "$LINENO"; then :
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_c_werror_flag=$ac_save_c_werror_flag
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3031 $as_echo "$ac_cv_prog_cc_g" >&6; }
3032 if test "$ac_test_CFLAGS" = set; then
3033 CFLAGS=$ac_save_CFLAGS
3034 elif test $ac_cv_prog_cc_g = yes; then
3035 if test "$GCC" = yes; then
3041 if test "$GCC" = yes; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3049 if ${ac_cv_prog_cc_c89+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 ac_cv_prog_cc_c89=no
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3058 #include <sys/types.h>
3059 #include <sys/stat.h>
3060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3061 struct buf { int x; };
3062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3063 static char *e (p, i)
3069 static char *f (char * (*g) (char **, int), char **p, ...)
3074 s = g (p, va_arg (v,int));
3079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3080 function prototypes and stuff, but not '\xHH' hex character constants.
3081 These don't provoke an error unfortunately, instead are silently treated
3082 as 'x'. The following induces an error, until -std is added to get
3083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3084 array size at least. It's necessary to write '\x00'==0 to get something
3085 that's true only with -std. */
3086 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3089 inside strings and character constants. */
3091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3093 int test (int i, double x);
3094 struct s1 {int (*f) (int a);};
3095 struct s2 {int (*f) (double a);};
3096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3110 CC="$ac_save_CC $ac_arg"
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112 ac_cv_prog_cc_c89=$ac_arg
3114 rm -f core conftest.err conftest.$ac_objext
3115 test "x$ac_cv_prog_cc_c89" != "xno" && break
3117 rm -f conftest.$ac_ext
3122 case "x$ac_cv_prog_cc_c89" in
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3125 $as_echo "none needed" >&6; } ;;
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3128 $as_echo "unsupported" >&6; } ;;
3130 CC="$CC $ac_cv_prog_cc_c89"
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3134 if test "x$ac_cv_prog_cc_c89" != xno; then :
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3151 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3152 # On Suns, sometimes $CPP names a directory.
3153 if test -n "$CPP" && test -d "$CPP"; then
3156 if test -z "$CPP"; then
3157 if ${ac_cv_prog_CPP+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 # Double quotes because CPP needs to be expanded
3161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3164 for ac_c_preproc_warn_flag in '' yes
3166 # Use a header file that comes with gcc, so configuring glibc
3167 # with a fresh cross-compiler works.
3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169 # <limits.h> exists even on freestanding compilers.
3170 # On the NeXT, cc -E runs the code through the compiler's parser,
3171 # not just through cpp. "Syntax error" is here to catch this case.
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3175 # include <limits.h>
3177 # include <assert.h>
3181 if ac_fn_c_try_cpp "$LINENO"; then :
3184 # Broken: fails on valid input.
3187 rm -f conftest.err conftest.i conftest.$ac_ext
3189 # OK, works on sane cases. Now check whether nonexistent headers
3190 # can be detected and how.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193 #include <ac_nonexistent.h>
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3196 # Broken: success on invalid input.
3199 # Passes both tests.
3203 rm -f conftest.err conftest.i conftest.$ac_ext
3206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207 rm -f conftest.i conftest.err conftest.$ac_ext
3208 if $ac_preproc_ok; then :
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3221 $as_echo "$CPP" >&6; }
3223 for ac_c_preproc_warn_flag in '' yes
3225 # Use a header file that comes with gcc, so configuring glibc
3226 # with a fresh cross-compiler works.
3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3228 # <limits.h> exists even on freestanding compilers.
3229 # On the NeXT, cc -E runs the code through the compiler's parser,
3230 # not just through cpp. "Syntax error" is here to catch this case.
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if ac_fn_c_try_cpp "$LINENO"; then :
3243 # Broken: fails on valid input.
3246 rm -f conftest.err conftest.i conftest.$ac_ext
3248 # OK, works on sane cases. Now check whether nonexistent headers
3249 # can be detected and how.
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3252 #include <ac_nonexistent.h>
3254 if ac_fn_c_try_cpp "$LINENO"; then :
3255 # Broken: success on invalid input.
3258 # Passes both tests.
3262 rm -f conftest.err conftest.i conftest.$ac_ext
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.i conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then :
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3273 See \`config.log' for more details" "$LINENO" 5; }
3277 ac_cpp='$CPP $CPPFLAGS'
3278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3284 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3285 if ${ac_cv_path_GREP+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 if test -z "$GREP"; then
3289 ac_path_GREP_found=false
3290 # Loop through the user's path and test for each of PROGNAME-LIST
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3295 test -z "$as_dir" && as_dir=.
3296 for ac_prog in grep ggrep; do
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3299 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3300 # Check for GNU ac_path_GREP and select it if it is found.
3301 # Check for GNU $ac_path_GREP
3302 case `"$ac_path_GREP" --version 2>&1` in
3304 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3307 $as_echo_n 0123456789 >"conftest.in"
3310 cat "conftest.in" "conftest.in" >"conftest.tmp"
3311 mv "conftest.tmp" "conftest.in"
3312 cp "conftest.in" "conftest.nl"
3313 $as_echo 'GREP' >> "conftest.nl"
3314 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3316 as_fn_arith $ac_count + 1 && ac_count=$as_val
3317 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3318 # Best one so far, save it but keep looking for a better one
3319 ac_cv_path_GREP="$ac_path_GREP"
3320 ac_path_GREP_max=$ac_count
3322 # 10*(2^10) chars as input seems more than enough
3323 test $ac_count -gt 10 && break
3325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328 $ac_path_GREP_found && break 3
3333 if test -z "$ac_cv_path_GREP"; then
3334 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3337 ac_cv_path_GREP=$GREP
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3342 $as_echo "$ac_cv_path_GREP" >&6; }
3343 GREP="$ac_cv_path_GREP"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3347 $as_echo_n "checking for egrep... " >&6; }
3348 if ${ac_cv_path_EGREP+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3352 then ac_cv_path_EGREP="$GREP -E"
3354 if test -z "$EGREP"; then
3355 ac_path_EGREP_found=false
3356 # Loop through the user's path and test for each of PROGNAME-LIST
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3361 test -z "$as_dir" && as_dir=.
3362 for ac_prog in egrep; do
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3366 # Check for GNU ac_path_EGREP and select it if it is found.
3367 # Check for GNU $ac_path_EGREP
3368 case `"$ac_path_EGREP" --version 2>&1` in
3370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3373 $as_echo_n 0123456789 >"conftest.in"
3376 cat "conftest.in" "conftest.in" >"conftest.tmp"
3377 mv "conftest.tmp" "conftest.in"
3378 cp "conftest.in" "conftest.nl"
3379 $as_echo 'EGREP' >> "conftest.nl"
3380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3382 as_fn_arith $ac_count + 1 && ac_count=$as_val
3383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3384 # Best one so far, save it but keep looking for a better one
3385 ac_cv_path_EGREP="$ac_path_EGREP"
3386 ac_path_EGREP_max=$ac_count
3388 # 10*(2^10) chars as input seems more than enough
3389 test $ac_count -gt 10 && break
3391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3394 $ac_path_EGREP_found && break 3
3399 if test -z "$ac_cv_path_EGREP"; then
3400 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3403 ac_cv_path_EGREP=$EGREP
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3409 $as_echo "$ac_cv_path_EGREP" >&6; }
3410 EGREP="$ac_cv_path_EGREP"
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3414 $as_echo_n "checking for ANSI C header files... " >&6; }
3415 if ${ac_cv_header_stdc+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_header_stdc=yes
3436 ac_cv_header_stdc=no
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 if test $ac_cv_header_stdc = yes; then
3441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 $EGREP "memchr" >/dev/null 2>&1; then :
3451 ac_cv_header_stdc=no
3457 if test $ac_cv_header_stdc = yes; then
3458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 $EGREP "free" >/dev/null 2>&1; then :
3468 ac_cv_header_stdc=no
3474 if test $ac_cv_header_stdc = yes; then
3475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3476 if test "$cross_compiling" = yes; then :
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3483 #if ((' ' & 0x0FF) == 0x020)
3484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3487 # define ISLOWER(c) \
3488 (('a' <= (c) && (c) <= 'i') \
3489 || ('j' <= (c) && (c) <= 'r') \
3490 || ('s' <= (c) && (c) <= 'z'))
3491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3499 for (i = 0; i < 256; i++)
3500 if (XOR (islower (i), ISLOWER (i))
3501 || toupper (i) != TOUPPER (i))
3506 if ac_fn_c_try_run "$LINENO"; then :
3509 ac_cv_header_stdc=no
3511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3512 conftest.$ac_objext conftest.beam conftest.$ac_ext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3518 $as_echo "$ac_cv_header_stdc" >&6; }
3519 if test $ac_cv_header_stdc = yes; then
3521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3527 inttypes.h stdint.h unistd.h
3529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3530 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3533 cat >>confdefs.h <<_ACEOF
3534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3543 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3544 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3551 if test "$MINIX" = yes; then
3553 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3556 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3559 $as_echo "#define _MINIX 1" >>confdefs.h
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3565 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3566 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3572 # define __EXTENSIONS__ 1
3573 $ac_includes_default
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_safe_to_define___extensions__=yes
3585 ac_cv_safe_to_define___extensions__=no
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3590 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3591 test $ac_cv_safe_to_define___extensions__ = yes &&
3592 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3594 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3596 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3598 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3600 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3604 # Checks for programs.
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3649 if test -z "$ac_cv_prog_CC"; then
3651 # Extract the first word of "gcc", so it can be a program name with args.
3652 set dummy gcc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$ac_ct_CC"; then
3659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_ac_ct_CC="gcc"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3679 if test -n "$ac_ct_CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3681 $as_echo "$ac_ct_CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3687 if test "x$ac_ct_CC" = x; then
3690 case $cross_compiling:$ac_tool_warned in
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3694 ac_tool_warned=yes ;;
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}cc; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_CC="${ac_tool_prefix}cc"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3743 if test -z "$CC"; then
3744 # Extract the first word of "cc", so it can be a program name with args.
3745 set dummy cc; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_CC+:} false; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3763 ac_prog_rejected=yes
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test $ac_prog_rejected = yes; then
3775 # We found a bogon in the path, so make sure we never use it.
3776 set dummy $ac_cv_prog_CC
3778 if test $# != 0; then
3779 # We chose a different compiler from the bogus one.
3780 # However, it has the same basename, so the bogon will be chosen
3781 # first if we set CC to just the basename; use the full file name.
3783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$CC"; then
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog in cl.exe
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_CC+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test -n "$CC"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3833 $as_echo "$CC" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$CC" && break
3843 if test -z "$CC"; then
3845 for ac_prog in cl.exe
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$ac_ct_CC"; then
3855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_ac_ct_CC="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3875 if test -n "$ac_ct_CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3877 $as_echo "$ac_ct_CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_CC" && break
3887 if test "x$ac_ct_CC" = x; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3903 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error $? "no acceptable C compiler found in \$PATH
3906 See \`config.log' for more details" "$LINENO" 5; }
3908 # Provide some information about the compiler.
3909 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3912 for ac_option in --version -v -V -qversion; do
3913 { { ac_try="$ac_compiler $ac_option >&5"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3922 if test -s conftest.err; then
3924 ... rest of stderr output deleted ...
3925 10q' conftest.err >conftest.er1
3926 cat conftest.er1 >&5
3928 rm -f conftest.er1 conftest.err
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3935 if ${ac_cv_c_compiler_gnu+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3952 if ac_fn_c_try_compile "$LINENO"; then :
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3962 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3963 if test $ac_compiler_gnu = yes; then
3968 ac_test_CFLAGS=${CFLAGS+set}
3969 ac_save_CFLAGS=$CFLAGS
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3971 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3972 if ${ac_cv_prog_cc_g+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 ac_save_c_werror_flag=$ac_c_werror_flag
3976 ac_c_werror_flag=yes
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_c_werror_flag=$ac_save_c_werror_flag
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_c_try_compile "$LINENO"; then :
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_c_werror_flag=$ac_save_c_werror_flag
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4032 $as_echo "$ac_cv_prog_cc_g" >&6; }
4033 if test "$ac_test_CFLAGS" = set; then
4034 CFLAGS=$ac_save_CFLAGS
4035 elif test $ac_cv_prog_cc_g = yes; then
4036 if test "$GCC" = yes; then
4042 if test "$GCC" = yes; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4049 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4050 if ${ac_cv_prog_cc_c89+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 ac_cv_prog_cc_c89=no
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4075 s = g (p, va_arg (v,int));
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 CC="$ac_save_CC $ac_arg"
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 ac_cv_prog_cc_c89=$ac_arg
4115 rm -f core conftest.err conftest.$ac_objext
4116 test "x$ac_cv_prog_cc_c89" != "xno" && break
4118 rm -f conftest.$ac_ext
4123 case "x$ac_cv_prog_cc_c89" in
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126 $as_echo "none needed" >&6; } ;;
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129 $as_echo "unsupported" >&6; } ;;
4131 CC="$CC $ac_cv_prog_cc_c89"
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4135 if test "x$ac_cv_prog_cc_c89" != xno; then :
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4146 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4148 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4149 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 cat >conftest.make <<\_ACEOF
4155 @echo '@@@%%%=$(MAKE)=@@@%%%'
4157 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4158 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4160 eval ac_cv_prog_make_${ac_make}_set=yes;;
4162 eval ac_cv_prog_make_${ac_make}_set=no;;
4166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4168 $as_echo "yes" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 SET_MAKE="MAKE=${MAKE-make}"
4176 for ac_prog in glibtool libtool15 libtool
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_libtool+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$libtool"; then
4186 ac_cv_prog_libtool="$libtool" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 ac_cv_prog_libtool="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 libtool=$ac_cv_prog_libtool
4206 if test -n "$libtool"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool" >&5
4208 $as_echo "$libtool" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$libtool" && break
4217 test -n "$libtool" || libtool="../libtool"
4220 # add option to disable the evil rpath
4221 # Check whether --enable-rpath was given.
4222 if test "${enable_rpath+set}" = set; then :
4223 enableval=$enable_rpath; enable_rpath=$enableval
4229 if test "x$enable_rpath" = xyes; then
4230 RPATH_VAL="-Wl,-rpath=\${libdir}"
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -std=c99" >&5
4237 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
4238 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4239 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4240 $as_echo_n "(cached) " >&6
4243 echo 'void f(){}' >conftest.c
4244 if test -z "`$CC $CPPFLAGS $CFLAGS -std=c99 -c conftest.c 2>&1`"; then
4245 eval "cv_prog_cc_flag_$cache=yes"
4247 eval "cv_prog_cc_flag_$cache=no"
4249 rm -f conftest conftest.o conftest.c
4253 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -xc99" >&5
4268 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
4269 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4270 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4271 $as_echo_n "(cached) " >&6
4274 echo 'void f(){}' >conftest.c
4275 if test -z "`$CC $CPPFLAGS $CFLAGS -xc99 -c conftest.c 2>&1`"; then
4276 eval "cv_prog_cc_flag_$cache=yes"
4278 eval "cv_prog_cc_flag_$cache=no"
4280 rm -f conftest conftest.o conftest.c
4284 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4297 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4298 if test "x$ac_cv_type_size_t" = xyes; then :
4302 cat >>confdefs.h <<_ACEOF
4303 #define size_t unsigned int
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2" >&5
4311 $as_echo_n "checking whether $CC supports -O2... " >&6; }
4312 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
4313 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4314 $as_echo_n "(cached) " >&6
4317 echo 'void f(){}' >conftest.c
4318 if test -z "`$CC $CPPFLAGS $CFLAGS -O2 -c conftest.c 2>&1`"; then
4319 eval "cv_prog_cc_flag_$cache=yes"
4321 eval "cv_prog_cc_flag_$cache=no"
4323 rm -f conftest conftest.o conftest.c
4327 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4329 $as_echo "yes" >&6; }
4331 CFLAGS="$CFLAGS -O2"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror" >&5
4344 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4345 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4346 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4347 $as_echo_n "(cached) " >&6
4350 echo 'void f(){}' >conftest.c
4351 if test -z "`$CC $CPPFLAGS $CFLAGS -Werror -c conftest.c 2>&1`"; then
4352 eval "cv_prog_cc_flag_$cache=yes"
4354 eval "cv_prog_cc_flag_$cache=no"
4356 rm -f conftest conftest.o conftest.c
4360 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
4375 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4376 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4377 if eval \${cv_prog_cc_flag_$cache+:} false; then :
4378 $as_echo_n "(cached) " >&6
4381 echo 'void f(){}' >conftest.c
4382 if test -z "`$CC $CPPFLAGS $CFLAGS -Wall -c conftest.c 2>&1`"; then
4383 eval "cv_prog_cc_flag_$cache=yes"
4385 eval "cv_prog_cc_flag_$cache=no"
4387 rm -f conftest conftest.o conftest.c
4391 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4393 $as_echo "yes" >&6; }
4395 ERRFLAG="$ERRFLAG -Wall"
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4400 ERRFLAG="$ERRFLAG -errfmt"
4407 { $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 as a flag for $CC" >&5
4408 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 as a flag for $CC... " >&6; }
4409 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" | $as_tr_sh`
4410 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4411 $as_echo_n "(cached) " >&6
4415 #include "confdefs.h"
4418 #include <sys/time.h>
4423 #ifdef HAVE_GETOPT_H
4434 t = ctime_r(&time, buf);
4437 a = getopt(2, opts, "a");
4442 echo 'void f(){}' >>conftest.c
4443 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4444 eval "cv_prog_cc_flag_needed_$cache=no"
4447 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`"; then
4448 eval "cv_prog_cc_flag_needed_$cache=yes"
4450 eval "cv_prog_cc_flag_needed_$cache=fail"
4451 #echo 'Test with flag fails too!'
4453 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4454 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4459 rm -f conftest conftest.c conftest.o
4463 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4465 $as_echo "yes" >&6; }
4467 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
4469 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 #echo 'Test with flag is no!'
4474 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1"
4475 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $ERRFLAG -c conftest.c 2>&1`
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4481 $as_echo "failed" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need $C99FLAG as a flag for $CC" >&5
4493 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
4494 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
4495 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
4496 $as_echo_n "(cached) " >&6
4499 echo '#include <stdbool.h>' > conftest.c
4500 echo 'void f(){}' >>conftest.c
4501 if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then
4502 eval "cv_prog_cc_flag_needed_$cache=no"
4505 if test -z "`$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`"; then
4506 eval "cv_prog_cc_flag_needed_$cache=yes"
4508 eval "cv_prog_cc_flag_needed_$cache=fail"
4509 #echo 'Test with flag fails too!'
4511 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4512 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4517 rm -f conftest conftest.c conftest.o
4521 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4525 CFLAGS="$CFLAGS $C99FLAG"
4527 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 #echo 'Test with flag is no!'
4532 #echo "$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
4533 #echo `$CC $CPPFLAGS $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1`
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4539 $as_echo "failed" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4547 $as_echo_n "checking for inline... " >&6; }
4548 if ${ac_cv_c_inline+:} false; then :
4549 $as_echo_n "(cached) " >&6
4552 for ac_kw in inline __inline__ __inline; do
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 static $ac_kw foo_t static_foo () {return 0; }
4558 $ac_kw foo_t foo () {return 0; }
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_cv_c_inline=$ac_kw
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 test "$ac_cv_c_inline" != no && break
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4571 $as_echo "$ac_cv_c_inline" >&6; }
4573 case $ac_cv_c_inline in
4576 case $ac_cv_c_inline in
4578 *) ac_val=$ac_cv_c_inline;;
4580 cat >>confdefs.h <<_ACEOF
4582 #define inline $ac_val
4588 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
4589 if test "x$ac_cv_type_int8_t" = xyes; then :
4593 cat >>confdefs.h <<_ACEOF
4599 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
4600 if test "x$ac_cv_type_int16_t" = xyes; then :
4604 cat >>confdefs.h <<_ACEOF
4605 #define int16_t short
4610 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
4611 if test "x$ac_cv_type_int32_t" = xyes; then :
4615 cat >>confdefs.h <<_ACEOF
4621 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
4622 if test "x$ac_cv_type_int64_t" = xyes; then :
4626 cat >>confdefs.h <<_ACEOF
4627 #define int64_t long long
4632 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
4633 if test "x$ac_cv_type_uint8_t" = xyes; then :
4637 cat >>confdefs.h <<_ACEOF
4638 #define uint8_t unsigned char
4643 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
4644 if test "x$ac_cv_type_uint16_t" = xyes; then :
4648 cat >>confdefs.h <<_ACEOF
4649 #define uint16_t unsigned short
4654 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
4655 if test "x$ac_cv_type_uint32_t" = xyes; then :
4659 cat >>confdefs.h <<_ACEOF
4660 #define uint32_t unsigned int
4665 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
4666 if test "x$ac_cv_type_uint64_t" = xyes; then :
4670 cat >>confdefs.h <<_ACEOF
4671 #define uint64_t unsigned long long
4676 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4677 if test "x$ac_cv_type_ssize_t" = xyes; then :
4681 cat >>confdefs.h <<_ACEOF
4688 for ac_header in sys/types.h getopt.h stdlib.h stdio.h assert.h netinet/in.h ctype.h time.h arpa/inet.h sys/time.h sys/socket.h sys/select.h
4690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4694 cat >>confdefs.h <<_ACEOF
4695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 for ac_header in netinet/in_systm.h net/if.h netinet/ip.h netinet/udp.h netinet/if_ether.h netinet/ip6.h
4704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4705 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
4706 $ac_includes_default
4707 #ifdef HAVE_NETINET_IN_SYSTM_H
4708 #include <netinet/in_systm.h>
4710 #ifdef HAVE_NETINET_IN_H
4711 #include <netinet/in.h>
4713 #ifdef HAVE_SYS_SOCKET_H
4714 #include <sys/socket.h>
4716 #ifdef HAVE_NET_IF_H
4720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4721 cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 for ac_header in winsock2.h ws2tcpip.h
4732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4736 cat >>confdefs.h <<_ACEOF
4737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4746 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
4747 $ac_includes_default
4748 #ifdef HAVE_SYS_SOCKET_H
4749 # include <sys/socket.h>
4751 #ifdef HAVE_WS2TCPIP_H
4752 # include <ws2tcpip.h>
4756 if test "x$ac_cv_type_socklen_t" = xyes; then :
4760 $as_echo "#define socklen_t int" >>confdefs.h
4764 for ac_header in sys/param.h sys/mount.h
4766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4770 #if HAVE_SYS_PARAM_H
4771 # include <sys/param.h>
4776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4777 cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
4786 #if HAVE_SYS_TYPES_H
4787 # include <sys/types.h>
4789 #if HAVE_NETINET_IN_H
4790 # include <netinet/in.h>
4793 if test "x$ac_cv_type_in_addr_t" = xyes; then :
4797 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
4801 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
4802 #if HAVE_SYS_TYPES_H
4803 # include <sys/types.h>
4805 #if HAVE_NETINET_IN_H
4806 # include <netinet/in.h>
4809 if test "x$ac_cv_type_in_port_t" = xyes; then :
4813 $as_echo "#define in_port_t uint16_t" >>confdefs.h
4818 # check to see if libraries are needed for these functions.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4820 $as_echo_n "checking for library containing socket... " >&6; }
4821 if ${ac_cv_search_socket+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 ac_func_search_save_LIBS=$LIBS
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4828 /* Override any GCC internal prototype to avoid an error.
4829 Use char because int might match the return type of a GCC
4830 builtin and then its argument prototype would still apply. */
4843 for ac_lib in '' socket; do
4844 if test -z "$ac_lib"; then
4845 ac_res="none required"
4848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4850 if ac_fn_c_try_link "$LINENO"; then :
4851 ac_cv_search_socket=$ac_res
4853 rm -f core conftest.err conftest.$ac_objext \
4855 if ${ac_cv_search_socket+:} false; then :
4859 if ${ac_cv_search_socket+:} false; then :
4862 ac_cv_search_socket=no
4865 LIBS=$ac_func_search_save_LIBS
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4868 $as_echo "$ac_cv_search_socket" >&6; }
4869 ac_res=$ac_cv_search_socket
4870 if test "$ac_res" != no; then :
4871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
4876 $as_echo_n "checking for library containing inet_pton... " >&6; }
4877 if ${ac_cv_search_inet_pton+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 ac_func_search_save_LIBS=$LIBS
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4884 /* Override any GCC internal prototype to avoid an error.
4885 Use char because int might match the return type of a GCC
4886 builtin and then its argument prototype would still apply. */
4894 return inet_pton ();
4899 for ac_lib in '' nsl; do
4900 if test -z "$ac_lib"; then
4901 ac_res="none required"
4904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4906 if ac_fn_c_try_link "$LINENO"; then :
4907 ac_cv_search_inet_pton=$ac_res
4909 rm -f core conftest.err conftest.$ac_objext \
4911 if ${ac_cv_search_inet_pton+:} false; then :
4915 if ${ac_cv_search_inet_pton+:} false; then :
4918 ac_cv_search_inet_pton=no
4921 LIBS=$ac_func_search_save_LIBS
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
4924 $as_echo "$ac_cv_search_inet_pton" >&6; }
4925 ac_res=$ac_cv_search_inet_pton
4926 if test "$ac_res" != no; then :
4927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4934 # Check whether --with-ssl was given.
4935 if test "${with_ssl+set}" = set; then :
4946 if test x_$withval != x_no; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
4948 $as_echo_n "checking for SSL... " >&6; }
4949 if test x_$withval = x_ -o x_$withval = x_yes; then
4950 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
4952 for dir in $withval; do
4954 if test -f "$dir/include/openssl/ssl.h"; then
4957 cat >>confdefs.h <<_ACEOF
4958 #define HAVE_SSL /**/
4961 if test "$ssldir" != "/usr"; then
4962 CPPFLAGS="$CPPFLAGS -I$ssldir/include"
4963 LIBSSL_CPPFLAGS="$LIBSSL_CPPFLAGS -I$ssldir/include"
4968 if test x_$found_ssl != x_yes; then
4969 as_fn_error $? "Cannot find the SSL libraries in $withval" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir" >&5
4972 $as_echo "found in $ssldir" >&6; }
4974 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
4975 LDFLAGS="$LDFLAGS -L$ssldir/lib"
4976 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
4978 if test "x$enable_rpath" = xyes; then
4979 if echo "$ssldir/lib" | grep "^/" >/dev/null; then
4980 RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
4987 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
4988 LIBS="$LIBS -lcrypto"
4989 LIBSSL_LIBS="$LIBSSL_LIBS -lcrypto"
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4997 int HMAC_CTX_init(void);
4998 (void)HMAC_CTX_init();
5004 if ac_fn_c_try_link "$LINENO"; then :
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5007 $as_echo "yes" >&6; }
5009 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 # check if -lwsock32 or -lgdi32 are needed.
5018 BAKSSLLIBS="$LIBSSL_LIBS"
5019 LIBS="$LIBS -lgdi32"
5020 LIBSSL_LIBS="$LIBSSL_LIBS -lgdi32"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -lgdi32" >&5
5022 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5030 int HMAC_CTX_init(void);
5031 (void)HMAC_CTX_init();
5037 if ac_fn_c_try_link "$LINENO"; then :
5040 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5043 $as_echo "yes" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5050 LIBSSL_LIBS="$BAKSSLLIBS"
5052 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl" >&5
5054 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5062 int HMAC_CTX_init(void);
5063 (void)HMAC_CTX_init();
5069 if ac_fn_c_try_link "$LINENO"; then :
5072 $as_echo "#define HAVE_HMAC_CTX_INIT 1" >>confdefs.h
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5075 $as_echo "yes" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
5084 rm -f core conftest.err conftest.$ac_objext \
5085 conftest$ac_exeext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5097 # openssl engine functionality needs dlopen().
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5100 $as_echo_n "checking for library containing dlopen... " >&6; }
5101 if ${ac_cv_search_dlopen+:} false; then :
5102 $as_echo_n "(cached) " >&6
5104 ac_func_search_save_LIBS=$LIBS
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5108 /* Override any GCC internal prototype to avoid an error.
5109 Use char because int might match the return type of a GCC
5110 builtin and then its argument prototype would still apply. */
5123 for ac_lib in '' dl; do
5124 if test -z "$ac_lib"; then
5125 ac_res="none required"
5128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 ac_cv_search_dlopen=$ac_res
5133 rm -f core conftest.err conftest.$ac_objext \
5135 if ${ac_cv_search_dlopen+:} false; then :
5139 if ${ac_cv_search_dlopen+:} false; then :
5142 ac_cv_search_dlopen=no
5145 LIBS=$ac_func_search_save_LIBS
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5148 $as_echo "$ac_cv_search_dlopen" >&6; }
5149 ac_res=$ac_cv_search_dlopen
5150 if test "$ac_res" != no; then :
5151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5155 if test "$LIBS" != "$BAKLIBS"; then
5156 LIBSSL_LIBS="$LIBSSL_LIBS -ldl"
5159 for ac_header in openssl/ssl.h
5161 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default
5163 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5164 cat >>confdefs.h <<_ACEOF
5165 #define HAVE_OPENSSL_SSL_H 1
5172 for ac_header in openssl/err.h
5174 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default
5176 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
5177 cat >>confdefs.h <<_ACEOF
5178 #define HAVE_OPENSSL_ERR_H 1
5185 for ac_header in openssl/rand.h
5187 ac_fn_c_check_header_compile "$LINENO" "openssl/rand.h" "ac_cv_header_openssl_rand_h" "$ac_includes_default
5189 if test "x$ac_cv_header_openssl_rand_h" = xyes; then :
5190 cat >>confdefs.h <<_ACEOF
5191 #define HAVE_OPENSSL_RAND_H 1
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
5203 $as_echo_n "checking for getaddrinfo... " >&6; }
5204 ac_cv_func_getaddrinfo=no
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5212 char* getaddrinfo();
5213 char* (*f) () = getaddrinfo;
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 ac_cv_func_getaddrinfo="yes"
5225 if test "$ac_cv_header_windows_h" = "yes"; then
5227 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5230 LIBS="$LIBS -lws2_32"
5235 LIBS="$LIBS -lws2_32"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5239 #ifdef HAVE_WS2TCPIP_H
5240 #include <ws2tcpip.h>
5247 (void)getaddrinfo(NULL, NULL, NULL, NULL);
5254 if ac_fn_c_try_link "$LINENO"; then :
5256 ac_cv_func_getaddrinfo="yes"
5258 $as_echo "#define USE_WINSOCK 1" >>confdefs.h
5264 ac_cv_func_getaddrinfo="no"
5268 rm -f core conftest.err conftest.$ac_objext \
5269 conftest$ac_exeext conftest.$ac_ext
5272 rm -f core conftest.err conftest.$ac_objext \
5273 conftest$ac_exeext conftest.$ac_ext
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
5276 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
5277 if test $ac_cv_func_getaddrinfo = yes; then
5279 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
5289 # Check whether --with-ldns was given.
5290 if test "${with_ldns+set}" = set; then :
5292 specialldnsdir="$withval"
5293 CPPFLAGS="$CPPFLAGS -I$withval/include"
5294 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
5297 LIBS_STC="$withval/lib/libldns.a $LIBS_STC"
5303 #AC_CHECK_HEADER(ldns/ldns.h,, [
5304 # AC_MSG_ERROR([Can't find ldns headers (make copy-headers in devel source.)])
5305 # ], [AC_INCLUDES_DEFAULT]
5308 for ac_func in isblank
5310 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
5311 if test "x$ac_cv_func_isblank" = xyes; then :
5312 cat >>confdefs.h <<_ACEOF
5313 #define HAVE_ISBLANK 1
5320 # check for ldns development source tree
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns devel source" >&5
5322 $as_echo_n "checking for ldns devel source... " >&6; }
5324 if test -f $ldns_dev_dir/ldns/util.h && \
5325 grep LDNS_VERSION $ldns_dev_dir/ldns/util.h >/dev/null; then
5326 ldns_version=`grep LDNS_VERSION $ldns_dev_dir/ldns/util.h | sed -e 's/^.*"\(.*\)".*$/\1/'`
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ldns_dev_dir with $ldns_version" >&5
5328 $as_echo "using $ldns_dev_dir with $ldns_version" >&6; }
5329 CPPFLAGS="$CPPFLAGS -I$ldns_dev_dir/include"
5330 LDFLAGS="-L$ldns_dev_dir -L$ldns_dev_dir/lib $LDFLAGS"
5333 $as_echo "#define HAVE_LIBLDNS 1" >>confdefs.h
5335 LDNSDIR="$ldns_dev_dir"
5336 LIBS_STC="$ldns_dev_dir/lib/libldns.a $LIBS_STC"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns_rr_new in -lldns" >&5
5341 $as_echo_n "checking for ldns_rr_new in -lldns... " >&6; }
5342 if ${ac_cv_lib_ldns_ldns_rr_new+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 ac_check_lib_save_LIBS=$LIBS
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5350 /* Override any GCC internal prototype to avoid an error.
5351 Use char because int might match the return type of a GCC
5352 builtin and then its argument prototype would still apply. */
5356 char ldns_rr_new ();
5360 return ldns_rr_new ();
5365 if ac_fn_c_try_link "$LINENO"; then :
5366 ac_cv_lib_ldns_ldns_rr_new=yes
5368 ac_cv_lib_ldns_ldns_rr_new=no
5370 rm -f core conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
5372 LIBS=$ac_check_lib_save_LIBS
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldns_ldns_rr_new" >&5
5375 $as_echo "$ac_cv_lib_ldns_ldns_rr_new" >&6; }
5376 if test "x$ac_cv_lib_ldns_ldns_rr_new" = xyes; then :
5377 cat >>confdefs.h <<_ACEOF
5378 #define HAVE_LIBLDNS 1
5385 as_fn_error $? "Can't find ldns library" "$LINENO" 5
5394 # Check whether --with-trust-anchor was given.
5395 if test "${with_trust_anchor+set}" = set; then :
5396 withval=$with_trust_anchor;
5397 LDNS_TRUST_ANCHOR_FILE="$withval"
5401 if test "x$LDNS_TRUST_ANCHOR_FILE" = "x"; then
5402 if test "x$sysconfdir" = 'x${prefix}/etc' ; then
5403 if test "x$prefix" = 'xNONE' ; then
5404 LDNS_TRUST_ANCHOR_FILE="/etc/unbound/root.key"
5406 LDNS_TRUST_ANCHOR_FILE="${prefix}/etc/unbound/root.key"
5409 LDNS_TRUST_ANCHOR_FILE="${sysconfdir}/unbound/root.key"
5416 cat >>confdefs.h <<_ACEOF
5417 #define LDNS_TRUST_ANCHOR_FILE "$LDNS_TRUST_ANCHOR_FILE"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&5
5422 $as_echo "$as_me: Default trust anchor: $LDNS_TRUST_ANCHOR_FILE" >&6;}
5426 ac_config_files="$ac_config_files Makefile drill.1"
5428 ac_config_headers="$ac_config_headers config.h"
5430 cat >confcache <<\_ACEOF
5431 # This file is a shell script that caches the results of configure
5432 # tests run on this system so they can be shared between configure
5433 # scripts and configure runs, see configure's option --config-cache.
5434 # It is not useful on other systems. If it contains results you don't
5435 # want to keep, you may remove or edit it.
5437 # config.status only pays attention to the cache file if you give it
5438 # the --recheck option to rerun configure.
5440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5446 # The following way of writing the cache mishandles newlines in values,
5447 # but we know of no workaround that is simple, portable, and efficient.
5448 # So, we kill variables containing newlines.
5449 # Ultrix sh set writes to stderr and can't be redirected directly,
5450 # and sets the high bit in the cache file unless we assign to the vars.
5452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5453 eval ac_val=\$$ac_var
5457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5461 _ | IFS | as_nl) ;; #(
5462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5463 *) { eval $ac_var=; unset $ac_var;} ;;
5469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5470 *${as_nl}ac_space=\ *)
5471 # `set' does not quote correctly, so add quotes: double-quote
5472 # substitution turns \\\\ into \\, and sed turns \\ into \.
5475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5478 # `set' quotes correctly as required by POSIX, so do not add quotes.
5479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5493 if test -w "$cache_file"; then
5494 if test "x$cache_file" != "x/dev/null"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5496 $as_echo "$as_me: updating cache $cache_file" >&6;}
5497 if test ! -f "$cache_file" || test -h "$cache_file"; then
5498 cat confcache >"$cache_file"
5500 case $cache_file in #(
5502 mv -f confcache "$cache_file"$$ &&
5503 mv -f "$cache_file"$$ "$cache_file" ;; #(
5505 mv -f confcache "$cache_file" ;;
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5517 # Let make expand exec_prefix.
5518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5520 DEFS=-DHAVE_CONFIG_H
5525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5526 # 1. Remove the extension, and $U if already installed.
5527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5530 # will be set to the directory where LIBOBJS objects are built.
5531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5536 LTLIBOBJS=$ac_ltlibobjs
5540 : "${CONFIG_STATUS=./config.status}"
5542 ac_clean_files_save=$ac_clean_files
5543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5545 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5547 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5549 # Generated by $as_me.
5550 # Run this file to recreate the current configuration.
5551 # Compiler output produced by configure, useful for debugging
5552 # configure, is in config.log if it exists.
5558 SHELL=\${CONFIG_SHELL-$SHELL}
5561 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5562 ## -------------------- ##
5563 ## M4sh Initialization. ##
5564 ## -------------------- ##
5566 # Be more Bourne compatible
5567 DUALCASE=1; export DUALCASE # for MKS sh
5568 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5571 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5572 # is contrary to our usage. Disable this feature.
5573 alias -g '${1+"$@"}'='"$@"'
5574 setopt NO_GLOB_SUBST
5576 case `(set -o) 2>/dev/null` in #(
5588 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5589 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5592 # Prefer a ksh shell builtin over an external printf program on Solaris,
5593 # but without wasting forks for bash or zsh.
5594 if test -z "$BASH_VERSION$ZSH_VERSION" \
5595 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5596 as_echo='print -r --'
5597 as_echo_n='print -rn --'
5598 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5599 as_echo='printf %s\n'
5600 as_echo_n='printf %s'
5602 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5603 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5604 as_echo_n='/usr/ucb/echo -n'
5606 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5607 as_echo_n_body='eval
5611 expr "X$arg" : "X\\(.*\\)$as_nl";
5612 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5614 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5616 export as_echo_n_body
5617 as_echo_n='sh -c $as_echo_n_body as_echo'
5620 as_echo='sh -c $as_echo_body as_echo'
5623 # The user is always right.
5624 if test "${PATH_SEPARATOR+set}" != set; then
5626 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5627 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5634 # We need space, tab and new line, in precisely that order. Quoting is
5635 # there to prevent editors from complaining about space-tab.
5636 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5637 # splitting by setting IFS to empty value.)
5640 # Find who we are. Look in the path if we contain no directory separator.
5643 *[\\/]* ) as_myself=$0 ;;
5644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 test -z "$as_dir" && as_dir=.
5649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5655 # We did not find ourselves, most probably we were run as `sh COMMAND'
5656 # in which case we are not to be found in the path.
5657 if test "x$as_myself" = x; then
5660 if test ! -f "$as_myself"; then
5661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5665 # Unset variables that we do not need and which cause bugs (e.g. in
5666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5667 # suppresses any "Segmentation fault" message there. '((' could
5668 # trigger a bug in pdksh 5.2.14.
5669 for as_var in BASH_ENV ENV MAIL MAILPATH
5670 do eval test x\${$as_var+set} = xset \
5671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5687 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5688 # ----------------------------------------
5689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5691 # script with STATUS, using 1 if that was 0.
5694 as_status=$1; test $as_status -eq 0 && as_status=1
5696 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5699 $as_echo "$as_me: error: $2" >&2
5700 as_fn_exit $as_status
5704 # as_fn_set_status STATUS
5705 # -----------------------
5706 # Set $? to STATUS, without forking.
5710 } # as_fn_set_status
5714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5724 # Portably unset VAR.
5727 { eval $1=; unset $1;}
5729 as_unset=as_fn_unset
5730 # as_fn_append VAR VALUE
5731 # ----------------------
5732 # Append the text in VALUE to the end of the definition contained in VAR. Take
5733 # advantage of any shell optimizations that allow amortized linear growth over
5734 # repeated appends, instead of the typical quadratic growth present in naive
5736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5737 eval 'as_fn_append ()
5748 # as_fn_arith ARG...
5749 # ------------------
5750 # Perform arithmetic evaluation on the ARGs, and store the result in the
5751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5752 # must be portable across $(()) and expr.
5753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5754 eval 'as_fn_arith ()
5761 as_val=`expr "$@" || test $? -eq 1`
5766 if expr a : '\(a\)' >/dev/null 2>&1 &&
5767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5774 as_basename=basename
5779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5785 as_me=`$as_basename -- "$0" ||
5786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5787 X"$0" : 'X\(//\)$' \| \
5788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5790 sed '/^.*\/\([^/][^/]*\)\/*$/{
5804 # Avoid depending upon Character Ranges.
5805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5808 as_cr_digits='0123456789'
5809 as_cr_alnum=$as_cr_Letters$as_cr_digits
5811 ECHO_C= ECHO_N= ECHO_T=
5812 case `echo -n x` in #(((((
5814 case `echo 'xy\c'` in
5815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5824 rm -f conf$$ conf$$.exe conf$$.file
5825 if test -d conf$$.dir; then
5826 rm -f conf$$.dir/conf$$.file
5829 mkdir conf$$.dir 2>/dev/null
5831 if (echo >conf$$.file) 2>/dev/null; then
5832 if ln -s conf$$.file conf$$ 2>/dev/null; then
5834 # ... but there are two gotchas:
5835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5837 # In both cases, we have to default to `cp -p'.
5838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5840 elif ln conf$$.file conf$$ 2>/dev/null; then
5848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5849 rmdir conf$$.dir 2>/dev/null
5854 # Create "$as_dir" as a directory, including parents if necessary.
5859 -*) as_dir=./$as_dir;;
5861 test -d "$as_dir" || eval $as_mkdir_p || {
5865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5866 *) as_qdir=$as_dir;;
5868 as_dirs="'$as_qdir' $as_dirs"
5869 as_dir=`$as_dirname -- "$as_dir" ||
5870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5871 X"$as_dir" : 'X\(//\)[^/]' \| \
5872 X"$as_dir" : 'X\(//\)$' \| \
5873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5874 $as_echo X"$as_dir" |
5875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5892 test -d "$as_dir" && break
5894 test -z "$as_dirs" || eval "mkdir $as_dirs"
5895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5899 if mkdir -p . 2>/dev/null; then
5900 as_mkdir_p='mkdir -p "$as_dir"'
5902 test -d ./-p && rmdir ./-p
5906 if test -x / >/dev/null 2>&1; then
5909 if ls -dL / >/dev/null 2>&1; then
5916 if test -d "$1"; then
5922 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5923 ???[sx]*):;;*)false;;esac;fi
5927 as_executable_p=$as_test_x
5929 # Sed expression to map a string onto a valid CPP name.
5930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5932 # Sed expression to map a string onto a valid variable name.
5933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5937 ## ----------------------------------- ##
5938 ## Main body of $CONFIG_STATUS script. ##
5939 ## ----------------------------------- ##
5941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5944 # Save the log message, to keep $0 and so on meaningful, and to
5945 # report actual input values of CONFIG_FILES etc. instead of their
5946 # values after options handling.
5948 This file was extended by ldns $as_me 1.6.16, which was
5949 generated by GNU Autoconf 2.68. Invocation command line was
5951 CONFIG_FILES = $CONFIG_FILES
5952 CONFIG_HEADERS = $CONFIG_HEADERS
5953 CONFIG_LINKS = $CONFIG_LINKS
5954 CONFIG_COMMANDS = $CONFIG_COMMANDS
5957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5962 case $ac_config_files in *"
5963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5966 case $ac_config_headers in *"
5967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972 # Files that config.status was made for.
5973 config_files="$ac_config_files"
5974 config_headers="$ac_config_headers"
5978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5980 \`$as_me' instantiates files and other configuration actions
5981 from templates according to the current configuration. Unless the files
5982 and actions are specified as TAGs, all are instantiated by default.
5984 Usage: $0 [OPTION]... [TAG]...
5986 -h, --help print this help, then exit
5987 -V, --version print version number and configuration settings, then exit
5988 --config print configuration, then exit
5989 -q, --quiet, --silent
5990 do not print progress messages
5991 -d, --debug don't remove temporary files
5992 --recheck update $as_me by reconfiguring in the same conditions
5993 --file=FILE[:TEMPLATE]
5994 instantiate the configuration file FILE
5995 --header=FILE[:TEMPLATE]
5996 instantiate the configuration header FILE
5998 Configuration files:
6001 Configuration headers:
6004 Report bugs to <libdns@nlnetlabs.nl>."
6007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6010 ldns config.status 1.6.16
6011 configured by $0, generated by GNU Autoconf 2.68,
6012 with options \\"\$ac_cs_config\\"
6014 Copyright (C) 2010 Free Software Foundation, Inc.
6015 This config.status script is free software; the Free Software Foundation
6016 gives unlimited permission to copy, distribute and modify it."
6020 test -n "\$AWK" || AWK=awk
6023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6024 # The default lists apply if the user does not specify any file.
6030 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6047 # Handling of the options.
6048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6051 $as_echo "$ac_cs_version"; exit ;;
6052 --config | --confi | --conf | --con | --co | --c )
6053 $as_echo "$ac_cs_config"; exit ;;
6054 --debug | --debu | --deb | --de | --d | -d )
6056 --file | --fil | --fi | --f )
6059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6060 '') as_fn_error $? "missing file argument" ;;
6062 as_fn_append CONFIG_FILES " '$ac_optarg'"
6063 ac_need_defaults=false;;
6064 --header | --heade | --head | --hea )
6067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6069 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6070 ac_need_defaults=false;;
6072 # Conflict between --help and --header
6073 as_fn_error $? "ambiguous option: \`$1'
6074 Try \`$0 --help' for more information.";;
6075 --help | --hel | -h )
6076 $as_echo "$ac_cs_usage"; exit ;;
6077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6082 -*) as_fn_error $? "unrecognized option: \`$1'
6083 Try \`$0 --help' for more information." ;;
6085 *) as_fn_append ac_config_targets " $1"
6086 ac_need_defaults=false ;;
6092 ac_configure_extra_args=
6094 if $ac_cs_silent; then
6096 ac_configure_extra_args="$ac_configure_extra_args --silent"
6100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6101 if \$ac_cs_recheck; then
6102 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6104 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6105 CONFIG_SHELL='$SHELL'
6111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6116 ## Running $as_me. ##
6122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6127 # Handling of arguments.
6128 for ac_config_target in $ac_config_targets
6130 case $ac_config_target in
6131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6132 "drill.1") CONFIG_FILES="$CONFIG_FILES drill.1" ;;
6133 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6135 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6140 # If the user did not use the arguments to specify the items to instantiate,
6141 # then the envvar interface is used. Set only those that are not.
6142 # We use the long form for the default assignment because of an extremely
6143 # bizarre bug on SunOS 4.1.3.
6144 if $ac_need_defaults; then
6145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6149 # Have a temporary directory for convenience. Make it in the build tree
6150 # simply because there is no reason against having it here, and in addition,
6151 # creating and moving files from /tmp can sometimes cause problems.
6152 # Hook for its removal unless debugging.
6153 # Note that there is a small window in which the directory will not be cleaned:
6154 # after its creation but before its name has been assigned to `$tmp'.
6158 trap 'exit_status=$?
6160 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6162 trap 'as_fn_exit 1' 1 2 13 15
6164 # Create a (secure) tmp directory for tmp files.
6167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6171 tmp=./conf$$-$RANDOM
6172 (umask 077 && mkdir "$tmp")
6173 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6176 # Set up the scripts for CONFIG_FILES section.
6177 # No need to generate them if there are no CONFIG_FILES.
6178 # This happens for instance with `./config.status config.h'.
6179 if test -n "$CONFIG_FILES"; then
6182 ac_cr=`echo X | tr X '\015'`
6183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6184 # But we know of no other shell where ac_cr would be empty at this
6185 # point, so we can use a bashism as a fallback.
6186 if test "x$ac_cr" = x; then
6187 eval ac_cr=\$\'\\r\'
6189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6201 echo "cat >conf$$subs.awk <<_ACEOF" &&
6202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6208 for ac_last_try in false false false false false :; do
6209 . ./conf$$subs.sh ||
6210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6213 if test $ac_delim_n = $ac_delim_num; then
6215 elif $ac_last_try; then
6216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6224 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6228 s/^/S["/; s/!.*/"]=/
6238 s/\(.\{148\}\)..*/\1/
6240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6252 s/\(.\{148\}\)..*/\1/
6254 s/["\\]/\\&/g; s/^/"/; s/$/"/
6258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6263 ' <conf$$subs.awk | sed '
6268 ' >>$CONFIG_STATUS || ac_write_fail=1
6269 rm -f conf$$subs.awk
6270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6272 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6273 for (key in S) S_is_set[key] = 1
6279 nfields = split(line, field, "@")
6281 len = length(field[1])
6282 for (i = 2; i < nfields; i++) {
6284 keylen = length(key)
6285 if (S_is_set[key]) {
6287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6288 len += length(value) + length(field[++i])
6299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6305 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6310 # trailing colons and then remove the whole line if VPATH becomes empty
6311 # (actually we leave an empty line to preserve line numbers).
6312 if test "x$srcdir" = x.; then
6313 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332 fi # test -n "$CONFIG_FILES"
6334 # Set up the scripts for CONFIG_HEADERS section.
6335 # No need to generate them if there are no CONFIG_HEADERS.
6336 # This happens for instance with `./config.status Makefile'.
6337 if test -n "$CONFIG_HEADERS"; then
6338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6342 # Transform confdefs.h into an awk script `defines.awk', embedded as
6343 # here-document in config.status, that substitutes the proper values into
6344 # config.h.in to produce config.h.
6346 # Create a delimiter string that does not exist in confdefs.h, to ease
6347 # handling of long lines.
6349 for ac_last_try in false false :; do
6350 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6351 if test -z "$ac_tt"; then
6353 elif $ac_last_try; then
6354 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6360 # For the awk script, D is an array of macro values keyed by name,
6361 # likewise P contains macro parameters if any. Preserve backslash
6362 # newline sequences.
6364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6366 s/.\{148\}/&'"$ac_delim"'/g
6369 s/^[ ]*#[ ]*define[ ][ ]*/ /
6376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6383 D["\1"]=" \3\\\\\\n"\\/p
6385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6390 s/.\{148\}/&'"$ac_delim"'/g
6395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6400 ' <confdefs.h | sed '
6401 s/'"$ac_delim"'/"\\\
6402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6405 for (key in D) D_is_set[key] = 1
6408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6410 split(line, arg, " ")
6411 if (arg[1] == "#") {
6415 defundef = substr(arg[1], 2)
6418 split(mac1, mac2, "(") #)
6420 prefix = substr(line, 1, index(line, defundef) - 1)
6421 if (D_is_set[macro]) {
6422 # Preserve the white space surrounding the "#".
6423 print prefix "define", macro P[macro] D[macro]
6426 # Replace #undef with comments. This is necessary, for example,
6427 # in the case of _POSIX_SOURCE, which is predefined and required
6428 # on some systems where configure will not decide to define it.
6429 if (defundef == "undef") {
6430 print "/*", prefix defundef, macro, "*/"
6438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6439 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6440 fi # test -n "$CONFIG_HEADERS"
6443 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6448 :[FHLC]) ac_mode=$ac_tag; continue;;
6450 case $ac_mode$ac_tag in
6452 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6453 :[FH]-) ac_tag=-:-;;
6454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6471 -) ac_f="$ac_tmp/stdin";;
6472 *) # Look for the file first in the build tree, then in the source tree
6473 # (if the path is not absolute). The absolute path cannot be DOS-style,
6474 # because $ac_f cannot contain `:'.
6478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6480 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6482 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6483 as_fn_append ac_file_inputs " '$ac_f'"
6486 # Let's still pretend it is `configure' which instantiates (i.e., don't
6487 # use $as_me), people would be surprised to read:
6488 # /* config.h. Generated by config.status. */
6489 configure_input='Generated from '`
6490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6492 if test x"$ac_file" != x-; then
6493 configure_input="$ac_file. $configure_input"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6495 $as_echo "$as_me: creating $ac_file" >&6;}
6497 # Neutralize special characters interpreted by sed in replacement strings.
6498 case $configure_input in #(
6499 *\&* | *\|* | *\\* )
6500 ac_sed_conf_input=`$as_echo "$configure_input" |
6501 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6502 *) ac_sed_conf_input=$configure_input;;
6506 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6512 ac_dir=`$as_dirname -- "$ac_file" ||
6513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6514 X"$ac_file" : 'X\(//\)[^/]' \| \
6515 X"$ac_file" : 'X\(//\)$' \| \
6516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6517 $as_echo X"$ac_file" |
6518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6535 as_dir="$ac_dir"; as_fn_mkdir_p
6539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6542 # A ".." for each directory in $ac_dir_suffix.
6543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6544 case $ac_top_builddir_sub in
6545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6549 ac_abs_top_builddir=$ac_pwd
6550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6551 # for backward compatibility:
6552 ac_top_builddir=$ac_top_build_prefix
6555 .) # We are building in place.
6557 ac_top_srcdir=$ac_top_builddir_sub
6558 ac_abs_top_srcdir=$ac_pwd ;;
6559 [\\/]* | ?:[\\/]* ) # Absolute name.
6560 ac_srcdir=$srcdir$ac_dir_suffix;
6561 ac_top_srcdir=$srcdir
6562 ac_abs_top_srcdir=$srcdir ;;
6564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6565 ac_top_srcdir=$ac_top_build_prefix$srcdir
6566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6580 # If the template does not know about datarootdir, expand it.
6581 # FIXME: This hack should be removed a few years after 2.60.
6582 ac_datarootdir_hack=; ac_datarootdir_seen=
6593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6594 *datarootdir*) ac_datarootdir_seen=yes;;
6595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6600 ac_datarootdir_hack='
6601 s&@datadir@&$datadir&g
6602 s&@docdir@&$docdir&g
6603 s&@infodir@&$infodir&g
6604 s&@localedir@&$localedir&g
6605 s&@mandir@&$mandir&g
6606 s&\\\${datarootdir}&$datarootdir&g' ;;
6610 # Neutralize VPATH when `$srcdir' = `.'.
6611 # Shell code in configure.ac might set extrasub.
6612 # FIXME: do we really want to maintain this feature?
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 ac_sed_extra="$ac_vpsub
6617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6620 s|@configure_input@|$ac_sed_conf_input|;t t
6621 s&@top_builddir@&$ac_top_builddir_sub&;t t
6622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6623 s&@srcdir@&$ac_srcdir&;t t
6624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6625 s&@top_srcdir@&$ac_top_srcdir&;t t
6626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6627 s&@builddir@&$ac_builddir&;t t
6628 s&@abs_builddir@&$ac_abs_builddir&;t t
6629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6630 $ac_datarootdir_hack
6632 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6633 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6636 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6637 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6638 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6640 which seems to be undefined. Please make sure it is defined" >&5
6641 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6642 which seems to be undefined. Please make sure it is defined" >&2;}
6644 rm -f "$ac_tmp/stdin"
6646 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6647 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6655 if test x"$ac_file" != x-; then
6657 $as_echo "/* $configure_input */" \
6658 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6659 } >"$ac_tmp/config.h" \
6660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6661 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6663 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6666 mv "$ac_tmp/config.h" "$ac_file" \
6667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6670 $as_echo "/* $configure_input */" \
6671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6672 || as_fn_error $? "could not create -" "$LINENO" 5
6684 ac_clean_files=$ac_clean_files_save
6686 test $ac_write_fail = 0 ||
6687 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6690 # configure is writing to config.log, and then calls config.status.
6691 # config.status does its own redirection, appending to config.log.
6692 # Unfortunately, on DOS this fails, as config.log is still kept open
6693 # by configure, so config.status won't be able to write to it; its
6694 # output is simply discarded. So we exec the FD to /dev/null,
6695 # effectively closing config.log, so it can be properly (re)opened and
6696 # appended to by config.status. When coming back to configure, we
6697 # need to make the FD available again.
6698 if test "$no_create" != yes; then
6700 ac_config_status_args=
6701 test "$silent" = yes &&
6702 ac_config_status_args="$ac_config_status_args --quiet"
6704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6707 # would make configure fail if this is the last instruction.
6708 $ac_cs_success || as_fn_exit 1
6710 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6712 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}