2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="src/adns.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
676 program_transform_name
689 enable_option_checking
692 ac_precious_vars='build_alias
703 # Initialize some variables set by options.
705 ac_init_version=false
706 ac_unrecognized_opts=
708 # The variables have the same names as the options, with
709 # dashes changed to underlines.
717 program_transform_name=s,x,x,
725 # Installation directory options.
726 # These are left unexpanded so users can "make install exec_prefix=/foo"
727 # and all the variables that are supposed to be based on exec_prefix
728 # by default will actually change.
729 # Use braces instead of parens because sh, perl, etc. also accept them.
730 # (The list follows the same order as the GNU Coding Standards.)
731 bindir='${exec_prefix}/bin'
732 sbindir='${exec_prefix}/sbin'
733 libexecdir='${exec_prefix}/libexec'
734 datarootdir='${prefix}/share'
735 datadir='${datarootdir}'
736 sysconfdir='${prefix}/etc'
737 sharedstatedir='${prefix}/com'
738 localstatedir='${prefix}/var'
739 runstatedir='${localstatedir}/run'
740 includedir='${prefix}/include'
741 oldincludedir='/usr/include'
742 docdir='${datarootdir}/doc/${PACKAGE}'
743 infodir='${datarootdir}/info'
748 libdir='${exec_prefix}/lib'
749 localedir='${datarootdir}/locale'
750 mandir='${datarootdir}/man'
756 # If the previous option needs an argument, assign it.
757 if test -n "$ac_prev"; then
758 eval $ac_prev=\$ac_option
764 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769 # Accept the important Cygnus configure options, so we can diagnose typos.
771 case $ac_dashdash$ac_option in
775 -bindir | --bindir | --bindi | --bind | --bin | --bi)
777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
780 -build | --build | --buil | --bui | --bu)
781 ac_prev=build_alias ;;
782 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783 build_alias=$ac_optarg ;;
785 -cache-file | --cache-file | --cache-fil | --cache-fi \
786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787 ac_prev=cache_file ;;
788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790 cache_file=$ac_optarg ;;
793 cache_file=config.cache ;;
795 -datadir | --datadir | --datadi | --datad)
797 -datadir=* | --datadir=* | --datadi=* | --datad=*)
798 datadir=$ac_optarg ;;
800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801 | --dataroo | --dataro | --datar)
802 ac_prev=datarootdir ;;
803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805 datarootdir=$ac_optarg ;;
807 -disable-* | --disable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error $? "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
821 eval enable_$ac_useropt=no ;;
823 -docdir | --docdir | --docdi | --doc | --do)
825 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833 -enable-* | --enable-*)
834 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error $? "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
847 eval enable_$ac_useropt=\$ac_optarg ;;
849 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851 | --exec | --exe | --ex)
852 ac_prev=exec_prefix ;;
853 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855 | --exec=* | --exe=* | --ex=*)
856 exec_prefix=$ac_optarg ;;
858 -gas | --gas | --ga | --g)
859 # Obsolete; use --with-gas.
862 -help | --help | --hel | --he | -h)
864 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865 ac_init_help=recursive ;;
866 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867 ac_init_help=short ;;
869 -host | --host | --hos | --ho)
870 ac_prev=host_alias ;;
871 -host=* | --host=* | --hos=* | --ho=*)
872 host_alias=$ac_optarg ;;
874 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878 htmldir=$ac_optarg ;;
880 -includedir | --includedir | --includedi | --included | --include \
881 | --includ | --inclu | --incl | --inc)
882 ac_prev=includedir ;;
883 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884 | --includ=* | --inclu=* | --incl=* | --inc=*)
885 includedir=$ac_optarg ;;
887 -infodir | --infodir | --infodi | --infod | --info | --inf)
889 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890 infodir=$ac_optarg ;;
892 -libdir | --libdir | --libdi | --libd)
894 -libdir=* | --libdir=* | --libdi=* | --libd=*)
897 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898 | --libexe | --libex | --libe)
899 ac_prev=libexecdir ;;
900 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901 | --libexe=* | --libex=* | --libe=*)
902 libexecdir=$ac_optarg ;;
904 -localedir | --localedir | --localedi | --localed | --locale)
906 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907 localedir=$ac_optarg ;;
909 -localstatedir | --localstatedir | --localstatedi | --localstated \
910 | --localstate | --localstat | --localsta | --localst | --locals)
911 ac_prev=localstatedir ;;
912 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914 localstatedir=$ac_optarg ;;
916 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922 # Obsolete; use --without-fp.
925 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926 | --no-cr | --no-c | -n)
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
933 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935 | --oldin | --oldi | --old | --ol | --o)
936 ac_prev=oldincludedir ;;
937 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940 oldincludedir=$ac_optarg ;;
942 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
947 -program-prefix | --program-prefix | --program-prefi | --program-pref \
948 | --program-pre | --program-pr | --program-p)
949 ac_prev=program_prefix ;;
950 -program-prefix=* | --program-prefix=* | --program-prefi=* \
951 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952 program_prefix=$ac_optarg ;;
954 -program-suffix | --program-suffix | --program-suffi | --program-suff \
955 | --program-suf | --program-su | --program-s)
956 ac_prev=program_suffix ;;
957 -program-suffix=* | --program-suffix=* | --program-suffi=* \
958 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959 program_suffix=$ac_optarg ;;
961 -program-transform-name | --program-transform-name \
962 | --program-transform-nam | --program-transform-na \
963 | --program-transform-n | --program-transform- \
964 | --program-transform | --program-transfor \
965 | --program-transfo | --program-transf \
966 | --program-trans | --program-tran \
967 | --progr-tra | --program-tr | --program-t)
968 ac_prev=program_transform_name ;;
969 -program-transform-name=* | --program-transform-name=* \
970 | --program-transform-nam=* | --program-transform-na=* \
971 | --program-transform-n=* | --program-transform-=* \
972 | --program-transform=* | --program-transfor=* \
973 | --program-transfo=* | --program-transf=* \
974 | --program-trans=* | --program-tran=* \
975 | --progr-tra=* | --program-tr=* | --program-t=*)
976 program_transform_name=$ac_optarg ;;
978 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
983 -psdir | --psdir | --psdi | --psd | --ps)
985 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989 | -silent | --silent | --silen | --sile | --sil)
992 -runstatedir | --runstatedir | --runstatedi | --runstated \
993 | --runstate | --runstat | --runsta | --runst | --runs \
994 | --run | --ru | --r)
995 ac_prev=runstatedir ;;
996 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
997 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
998 | --run=* | --ru=* | --r=*)
999 runstatedir=$ac_optarg ;;
1001 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005 sbindir=$ac_optarg ;;
1007 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009 | --sharedst | --shareds | --shared | --share | --shar \
1011 ac_prev=sharedstatedir ;;
1012 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016 sharedstatedir=$ac_optarg ;;
1018 -site | --site | --sit)
1020 -site=* | --site=* | --sit=*)
1023 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026 srcdir=$ac_optarg ;;
1028 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029 | --syscon | --sysco | --sysc | --sys | --sy)
1030 ac_prev=sysconfdir ;;
1031 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033 sysconfdir=$ac_optarg ;;
1035 -target | --target | --targe | --targ | --tar | --ta | --t)
1036 ac_prev=target_alias ;;
1037 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038 target_alias=$ac_optarg ;;
1040 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1043 -version | --version | --versio | --versi | --vers | -V)
1044 ac_init_version=: ;;
1047 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid package name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval with_$ac_useropt=\$ac_optarg ;;
1062 -without-* | --without-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval with_$ac_useropt=no ;;
1079 # Obsolete; use --with-x.
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1096 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1097 Try \`$0 --help' for more information"
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 case $ac_envvar in #(
1104 '' | [0-9]* | *[!_$as_cr_alnum]* )
1105 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 as_fn_error $? "missing argument to $ac_option"
1126 if test -n "$ac_unrecognized_opts"; then
1127 case $enable_option_checking in
1129 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1130 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1134 # Check all directory arguments for consistency.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir runstatedir
1140 eval ac_val=\$$ac_var
1141 # Remove trailing slashes.
1144 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145 eval $ac_var=\$ac_val;;
1147 # Be sure to have absolute directory names.
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1160 target=$target_alias
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 as_fn_error $? "working directory cannot be determined"
1181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 as_fn_error $? "pwd does not report name of working directory"
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$as_myself" ||
1190 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$as_myself" : 'X\(//\)[^/]' \| \
1192 X"$as_myself" : 'X\(//\)$' \| \
1193 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194 $as_echo X"$as_myself" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures this package to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking ...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1311 if test -n "$ac_init_help"; then
1316 --disable-option-checking ignore unrecognized --enable/--with options
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --disable-dynamic use static linking
1320 --enable-dynamic=elf create and use ELF dynamic library (default)
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1332 Use these variables to override the choices made by `configure' or to help
1333 it to find libraries and programs with nonstandard names/locations.
1335 Report bugs to the package provider.
1340 if test "$ac_init_help" = "recursive"; then
1341 # If there are subdirs, report their specific --help.
1342 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1343 test -d "$ac_dir" ||
1344 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1352 # A ".." for each directory in $ac_dir_suffix.
1353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1354 case $ac_top_builddir_sub in
1355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 ac_abs_top_builddir=$ac_pwd
1360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1361 # for backward compatibility:
1362 ac_top_builddir=$ac_top_build_prefix
1365 .) # We are building in place.
1367 ac_top_srcdir=$ac_top_builddir_sub
1368 ac_abs_top_srcdir=$ac_pwd ;;
1369 [\\/]* | ?:[\\/]* ) # Absolute name.
1370 ac_srcdir=$srcdir$ac_dir_suffix;
1371 ac_top_srcdir=$srcdir
1372 ac_abs_top_srcdir=$srcdir ;;
1374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1375 ac_top_srcdir=$ac_top_build_prefix$srcdir
1376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380 cd "$ac_dir" || { ac_status=$?; continue; }
1381 # Check for guested configure.
1382 if test -f "$ac_srcdir/configure.gnu"; then
1384 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1385 elif test -f "$ac_srcdir/configure"; then
1387 $SHELL "$ac_srcdir/configure" --help=recursive
1389 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391 cd "$ac_pwd" || { ac_status=$?; break; }
1395 test -n "$ac_init_help" && exit $ac_status
1396 if $ac_init_version; then
1399 generated by GNU Autoconf 2.69
1401 Copyright (C) 2012 Free Software Foundation, Inc.
1402 This configure script is free software; the Free Software Foundation
1403 gives unlimited permission to copy, distribute and modify it.
1408 ## ------------------------ ##
1409 ## Autoconf initialization. ##
1410 ## ------------------------ ##
1412 # ac_fn_c_try_compile LINENO
1413 # --------------------------
1414 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1415 ac_fn_c_try_compile ()
1417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1418 rm -f conftest.$ac_objext
1419 if { { ac_try="$ac_compile"
1421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1422 *) ac_try_echo=$ac_try;;
1424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1425 $as_echo "$ac_try_echo"; } >&5
1426 (eval "$ac_compile") 2>conftest.err
1428 if test -s conftest.err; then
1429 grep -v '^ *+' conftest.err >conftest.er1
1430 cat conftest.er1 >&5
1431 mv -f conftest.er1 conftest.err
1433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1434 test $ac_status = 0; } && {
1435 test -z "$ac_c_werror_flag" ||
1436 test ! -s conftest.err
1437 } && test -s conftest.$ac_objext; then :
1440 $as_echo "$as_me: failed program was:" >&5
1441 sed 's/^/| /' conftest.$ac_ext >&5
1445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1446 as_fn_set_status $ac_retval
1448 } # ac_fn_c_try_compile
1450 # ac_fn_c_try_cpp LINENO
1451 # ----------------------
1452 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 if { { ac_try="$ac_cpp conftest.$ac_ext"
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459 *) ac_try_echo=$ac_try;;
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1465 if test -s conftest.err; then
1466 grep -v '^ *+' conftest.err >conftest.er1
1467 cat conftest.er1 >&5
1468 mv -f conftest.er1 conftest.err
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; } > conftest.i && {
1472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1473 test ! -s conftest.err
1477 $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1483 as_fn_set_status $ac_retval
1487 # ac_fn_c_try_link LINENO
1488 # -----------------------
1489 # Try to link conftest.$ac_ext, and return whether this succeeded.
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext conftest$ac_exeext
1494 if { { ac_try="$ac_link"
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_link") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest$ac_exeext && {
1513 test "$cross_compiling" = yes ||
1514 test -x conftest$ac_exeext
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1525 # interfere with the next link command; also delete a directory that is
1526 # left behind by Apple's compiler. We do this before executing the actions.
1527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_c_try_link
1533 # ac_fn_c_check_func LINENO FUNC VAR
1534 # ----------------------------------
1535 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1536 ac_fn_c_check_func ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1540 $as_echo_n "checking for $2... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1546 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1548 #define $2 innocuous_$2
1550 /* System header to define __stub macros and hopefully few prototypes,
1551 which can conflict with char $2 (); below.
1552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1553 <limits.h> exists even on freestanding compilers. */
1556 # include <limits.h>
1558 # include <assert.h>
1563 /* Override any GCC internal prototype to avoid an error.
1564 Use char because int might match the return type of a GCC
1565 builtin and then its argument prototype would still apply. */
1570 /* The GNU C library defines this for functions which it implements
1571 to always fail with ENOSYS. Some functions are actually named
1572 something starting with __ and the normal name is an alias. */
1573 #if defined __stub_$2 || defined __stub___$2
1585 if ac_fn_c_try_link "$LINENO"; then :
1590 rm -f core conftest.err conftest.$ac_objext \
1591 conftest$ac_exeext conftest.$ac_ext
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 } # ac_fn_c_check_func
1600 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603 # the include files in INCLUDES and setting the cache variable VAR
1605 ac_fn_c_check_header_mongrel ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if eval \${$3+:} false; then :
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610 $as_echo_n "checking for $2... " >&6; }
1611 if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1618 # Is the header compilable?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620 $as_echo_n "checking $2 usability... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 ac_header_compiler=yes
1629 ac_header_compiler=no
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633 $as_echo "$ac_header_compiler" >&6; }
1635 # Is the header present?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637 $as_echo_n "checking $2 presence... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1642 if ac_fn_c_try_cpp "$LINENO"; then :
1643 ac_header_preproc=yes
1645 ac_header_preproc=no
1647 rm -f conftest.err conftest.i conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649 $as_echo "$ac_header_preproc" >&6; }
1651 # So? What about this header?
1652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1663 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1667 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1677 eval "$3=\$ac_header_compiler"
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 } # ac_fn_c_check_header_mongrel
1687 # ac_fn_c_try_run LINENO
1688 # ----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690 # that executables *can* be run.
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_link"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>&5
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705 { { case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_try") 2>&5
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; }; }; then :
1717 $as_echo "$as_me: program exited with status $ac_status" >&5
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=$ac_status
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1746 if ac_fn_c_try_compile "$LINENO"; then :
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 } # ac_fn_c_check_header_compile
1759 cat >config.log <<_ACEOF
1760 This file contains any messages produced by compilers while
1761 running configure, to aid debugging if configure makes a mistake.
1763 It was created by $as_me, which was
1764 generated by GNU Autoconf 2.69. Invocation command line was
1776 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1782 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1785 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 $as_echo "PATH: $as_dir"
1816 # Keep a trace of the command line.
1817 # Strip out --no-create and --no-recursion so they do not pile up.
1818 # Strip out --silent because we don't want to record it for future runs.
1819 # Also quote any args containing shell meta-characters.
1820 # Make two passes to allow for proper duplicate-argument suppression.
1824 ac_must_keep_next=false
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1853 -* ) ac_must_keep_next=true ;;
1856 as_fn_append ac_configure_args " '$ac_arg'"
1861 { ac_configure_args0=; unset ac_configure_args0;}
1862 { ac_configure_args1=; unset ac_configure_args1;}
1864 # When interrupted or exit'd, cleanup temporary files, and complete
1865 # config.log. We remove comments because anyway the quotes in there
1866 # would cause problems or look ugly.
1867 # WARNING: Use '\'' to represent an apostrophe within the trap.
1868 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869 trap 'exit_status=$?
1870 # Save into config.log some information that might help in debugging.
1874 $as_echo "## ---------------- ##
1875 ## Cache variables. ##
1876 ## ---------------- ##"
1878 # The following way of writing the cache mishandles newlines in values,
1880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1881 eval ac_val=\$$ac_var
1885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 _ | IFS | as_nl) ;; #(
1890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1891 *) { eval $ac_var=; unset $ac_var;} ;;
1896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1897 *${as_nl}ac_space=\ *)
1899 "s/'\''/'\''\\\\'\'''\''/g;
1900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1910 $as_echo "## ----------------- ##
1911 ## Output variables. ##
1912 ## ----------------- ##"
1914 for ac_var in $ac_subst_vars
1916 eval ac_val=\$$ac_var
1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 $as_echo "$ac_var='\''$ac_val'\''"
1924 if test -n "$ac_subst_files"; then
1925 $as_echo "## ------------------- ##
1926 ## File substitutions. ##
1927 ## ------------------- ##"
1929 for ac_var in $ac_subst_files
1931 eval ac_val=\$$ac_var
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 $as_echo "$ac_var='\''$ac_val'\''"
1940 if test -s confdefs.h; then
1941 $as_echo "## ----------- ##
1948 test "$ac_signal" != 0 &&
1949 $as_echo "$as_me: caught signal $ac_signal"
1950 $as_echo "$as_me: exit $exit_status"
1952 rm -f core *.core core.conftest.* &&
1953 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956 for ac_signal in 1 2 13 15; do
1957 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1961 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1962 rm -f -r conftest* confdefs.h
1964 $as_echo "/* confdefs.h */" > confdefs.h
1966 # Predefined preprocessor variables.
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_NAME "$PACKAGE_NAME"
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_STRING "$PACKAGE_STRING"
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_URL "$PACKAGE_URL"
1993 # Let the site file select an alternate cache file if it wants to.
1994 # Prefer an explicitly selected file to automatically selected ones.
1997 if test -n "$CONFIG_SITE"; then
1998 # We do not want a PATH search for config.site.
1999 case $CONFIG_SITE in #((
2000 -*) ac_site_file1=./$CONFIG_SITE;;
2001 */*) ac_site_file1=$CONFIG_SITE;;
2002 *) ac_site_file1=./$CONFIG_SITE;;
2004 elif test "x$prefix" != xNONE; then
2005 ac_site_file1=$prefix/share/config.site
2006 ac_site_file2=$prefix/etc/config.site
2008 ac_site_file1=$ac_default_prefix/share/config.site
2009 ac_site_file2=$ac_default_prefix/etc/config.site
2011 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2013 test "x$ac_site_file" = xNONE && continue
2014 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2016 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2017 sed 's/^/| /' "$ac_site_file" >&5
2019 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021 as_fn_error $? "failed to load site script $ac_site_file
2022 See \`config.log' for more details" "$LINENO" 5; }
2026 if test -r "$cache_file"; then
2027 # Some versions of bash will fail to source /dev/null (special files
2028 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2029 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2031 $as_echo "$as_me: loading cache $cache_file" >&6;}
2033 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2034 *) . "./$cache_file";;
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2039 $as_echo "$as_me: creating cache $cache_file" >&6;}
2043 # Check that the precious variables saved in the cache have kept the same
2045 ac_cache_corrupted=false
2046 for ac_var in $ac_precious_vars; do
2047 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2048 eval ac_new_set=\$ac_env_${ac_var}_set
2049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2050 eval ac_new_val=\$ac_env_${ac_var}_value
2051 case $ac_old_set,$ac_new_set in
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2059 ac_cache_corrupted=: ;;
2062 if test "x$ac_old_val" != "x$ac_new_val"; then
2063 # differences in whitespace do not lead to failure.
2064 ac_old_val_w=`echo x $ac_old_val`
2065 ac_new_val_w=`echo x $ac_new_val`
2066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2068 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2069 ac_cache_corrupted=:
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2072 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2073 eval $ac_var=\$ac_old_val
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2076 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2078 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2081 # Pass precious variables to config.status.
2082 if test "$ac_new_set" = set; then
2084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 *) ac_arg=$ac_var=$ac_new_val ;;
2087 case " $ac_configure_args " in
2088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2093 if $ac_cache_corrupted; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2097 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2098 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2100 ## -------------------- ##
2101 ## Main body of script. ##
2102 ## -------------------- ##
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 ac_config_headers="$ac_config_headers src/config.h"
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you requested dynamic linking" >&5
2117 $as_echo_n "checking whether you requested dynamic linking... " >&6; }
2119 # Check whether --enable-dynamic was given.
2120 if test "${enable_dynamic+set}" = set; then :
2121 enableval=$enable_dynamic; case "$enableval" in
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (ELF)" >&5
2125 $as_echo "yes (ELF)" >&6; }
2127 no) ENABLE_DYNAMIC=no
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129 $as_echo "no" >&6; }
2131 *) as_fn_error $? "\"invalid value $enableval for --enable-dynamic, try yes or elf\"" "$LINENO" 5
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, by default" >&5
2139 $as_echo "yes, by default" >&6; }
2145 ac_cpp='$CPP $CPPFLAGS'
2146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 if test -n "$ac_tool_prefix"; then
2150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2153 $as_echo_n "checking for $ac_word... " >&6; }
2154 if ${ac_cv_prog_CC+:} false; then :
2155 $as_echo_n "(cached) " >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 if test -n "$CC"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2180 $as_echo "$CC" >&6; }
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2183 $as_echo "no" >&6; }
2188 if test -z "$ac_cv_prog_CC"; then
2190 # Extract the first word of "gcc", so it can be a program name with args.
2191 set dummy gcc; ac_word=$2
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2195 $as_echo_n "(cached) " >&6
2197 if test -n "$ac_ct_CC"; then
2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2207 ac_cv_prog_ac_ct_CC="gcc"
2208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2220 $as_echo "$ac_ct_CC" >&6; }
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2223 $as_echo "no" >&6; }
2226 if test "x$ac_ct_CC" = x; then
2229 case $cross_compiling:$ac_tool_warned in
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2233 ac_tool_warned=yes ;;
2241 if test -z "$CC"; then
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2246 $as_echo_n "checking for $ac_word... " >&6; }
2247 if ${ac_cv_prog_CC+:} false; then :
2248 $as_echo_n "(cached) " >&6
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="${ac_tool_prefix}cc"
2261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 if test -n "$CC"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2273 $as_echo "$CC" >&6; }
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2276 $as_echo "no" >&6; }
2282 if test -z "$CC"; then
2283 # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if ${ac_cv_prog_CC+:} false; then :
2288 $as_echo_n "(cached) " >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302 ac_prog_rejected=yes
2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2328 if test -n "$CC"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2330 $as_echo "$CC" >&6; }
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333 $as_echo "no" >&6; }
2338 if test -z "$CC"; then
2339 if test -n "$ac_tool_prefix"; then
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2345 $as_echo_n "checking for $ac_word... " >&6; }
2346 if ${ac_cv_prog_CC+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 if test -n "$CC"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2372 $as_echo "$CC" >&6; }
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2375 $as_echo "no" >&6; }
2379 test -n "$CC" && break
2382 if test -z "$CC"; then
2384 for ac_prog in cl.exe
2386 # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2389 $as_echo_n "checking for $ac_word... " >&6; }
2390 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2391 $as_echo_n "(cached) " >&6
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403 ac_cv_prog_ac_ct_CC="$ac_prog"
2404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2416 $as_echo "$ac_ct_CC" >&6; }
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2419 $as_echo "no" >&6; }
2423 test -n "$ac_ct_CC" && break
2426 if test "x$ac_ct_CC" = x; then
2429 case $cross_compiling:$ac_tool_warned in
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2433 ac_tool_warned=yes ;;
2442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "no acceptable C compiler found in \$PATH
2445 See \`config.log' for more details" "$LINENO" 5; }
2447 # Provide some information about the compiler.
2448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2451 for ac_option in --version -v -V -qversion; do
2452 { { ac_try="$ac_compiler $ac_option >&5"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2461 if test -s conftest.err; then
2463 ... rest of stderr output deleted ...
2464 10q' conftest.err >conftest.er1
2465 cat conftest.er1 >&5
2467 rm -f conftest.er1 conftest.err
2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2469 test $ac_status = 0; }
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2483 ac_clean_files_save=$ac_clean_files
2484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2485 # Try to create an executable without -o first, disregard a.out.
2486 # It will help us diagnose broken compilers, and finding out an intuition
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2489 $as_echo_n "checking whether the C compiler works... " >&6; }
2490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2492 # The possible output files:
2493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2496 for ac_file in $ac_files
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2505 if { { ac_try="$ac_link_default"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2511 $as_echo "$ac_try_echo"; } >&5
2512 (eval "$ac_link_default") 2>&5
2514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2515 test $ac_status = 0; }; then :
2516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2518 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2519 # so that the user can short-circuit this test for compilers unknown to
2521 for ac_file in $ac_files ''
2523 test -f "$ac_file" || continue
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2528 # We found the default executable, but exeext='' is most
2532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536 # We set ac_cv_exeext here because the later test for it is not
2537 # safe: cross compilers may not add the suffix if given an `-o'
2538 # argument, so we may need to know it at that point already.
2539 # Even if this section looks crufty: it has the advantage of
2546 test "$ac_cv_exeext" = no && ac_cv_exeext=
2551 if test -z "$ac_file"; then :
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error 77 "C compiler cannot create executables
2560 See \`config.log' for more details" "$LINENO" 5; }
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563 $as_echo "yes" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2566 $as_echo_n "checking for C compiler default output file name... " >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2568 $as_echo "$ac_file" >&6; }
2569 ac_exeext=$ac_cv_exeext
2571 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2572 ac_clean_files=$ac_clean_files_save
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2574 $as_echo_n "checking for suffix of executables... " >&6; }
2575 if { { ac_try="$ac_link"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_link") 2>&5
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }; then :
2586 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2587 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2588 # work properly (i.e., refer to `conftest.exe'), while it won't with
2590 for ac_file in conftest.exe conftest conftest.*; do
2591 test -f "$ac_file" || continue
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details" "$LINENO" 5; }
2605 rm -f conftest conftest$ac_cv_exeext
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2607 $as_echo "$ac_cv_exeext" >&6; }
2609 rm -f conftest.$ac_ext
2610 EXEEXT=$ac_cv_exeext
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2618 FILE *f = fopen ("conftest.out", "w");
2619 return ferror (f) || fclose (f) != 0;
2625 ac_clean_files="$ac_clean_files conftest.out"
2626 # Check that the compiler produces executables we can run. If not, either
2627 # the compiler is broken, or we cross compile.
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2629 $as_echo_n "checking whether we are cross compiling... " >&6; }
2630 if test "$cross_compiling" != yes; then
2631 { { ac_try="$ac_link"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637 $as_echo "$ac_try_echo"; } >&5
2638 (eval "$ac_link") 2>&5
2640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641 test $ac_status = 0; }
2642 if { ac_try='./conftest$ac_cv_exeext'
2643 { { case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_try") 2>&5
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; }; }; then
2655 if test "$cross_compiling" = maybe; then
2658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 as_fn_error $? "cannot run C compiled programs.
2661 If you meant to cross compile, use \`--host'.
2662 See \`config.log' for more details" "$LINENO" 5; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2667 $as_echo "$cross_compiling" >&6; }
2669 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2670 ac_clean_files=$ac_clean_files_save
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2672 $as_echo_n "checking for suffix of object files... " >&6; }
2673 if ${ac_cv_objext+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2687 rm -f conftest.o conftest.obj
2688 if { { ac_try="$ac_compile"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_compile") 2>&5
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; then :
2699 for ac_file in conftest.o conftest.obj conftest.*; do
2700 test -f "$ac_file" || continue;
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 $as_echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 as_fn_error $? "cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details" "$LINENO" 5; }
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2719 $as_echo "$ac_cv_objext" >&6; }
2720 OBJEXT=$ac_cv_objext
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2723 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2724 if ${ac_cv_c_compiler_gnu+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h. */
2741 if ac_fn_c_try_compile "$LINENO"; then :
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2751 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2752 if test $ac_compiler_gnu = yes; then
2757 ac_test_CFLAGS=${CFLAGS+set}
2758 ac_save_CFLAGS=$CFLAGS
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2760 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2761 if ${ac_cv_prog_cc_g+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 ac_save_c_werror_flag=$ac_c_werror_flag
2765 ac_c_werror_flag=yes
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2779 if ac_fn_c_try_compile "$LINENO"; then :
2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2794 if ac_fn_c_try_compile "$LINENO"; then :
2797 ac_c_werror_flag=$ac_save_c_werror_flag
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2810 if ac_fn_c_try_compile "$LINENO"; then :
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2821 $as_echo "$ac_cv_prog_cc_g" >&6; }
2822 if test "$ac_test_CFLAGS" = set; then
2823 CFLAGS=$ac_save_CFLAGS
2824 elif test $ac_cv_prog_cc_g = yes; then
2825 if test "$GCC" = yes; then
2831 if test "$GCC" = yes; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2838 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2839 if ${ac_cv_prog_cc_c89+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 ac_cv_prog_cc_c89=no
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2850 struct buf { int x; };
2851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2852 static char *e (p, i)
2858 static char *f (char * (*g) (char **, int), char **p, ...)
2863 s = g (p, va_arg (v,int));
2868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2869 function prototypes and stuff, but not '\xHH' hex character constants.
2870 These don't provoke an error unfortunately, instead are silently treated
2871 as 'x'. The following induces an error, until -std is added to get
2872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2873 array size at least. It's necessary to write '\x00'==0 to get something
2874 that's true only with -std. */
2875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2878 inside strings and character constants. */
2880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2882 int test (int i, double x);
2883 struct s1 {int (*f) (int a);};
2884 struct s2 {int (*f) (double a);};
2885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 CC="$ac_save_CC $ac_arg"
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_cv_prog_cc_c89=$ac_arg
2903 rm -f core conftest.err conftest.$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2906 rm -f conftest.$ac_ext
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2923 if test "x$ac_cv_prog_cc_c89" != xno; then :
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2939 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2940 # On Suns, sometimes $CPP names a directory.
2941 if test -n "$CPP" && test -d "$CPP"; then
2944 if test -z "$CPP"; then
2945 if ${ac_cv_prog_CPP+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 # Double quotes because CPP needs to be expanded
2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2952 for ac_c_preproc_warn_flag in '' yes
2954 # Use a header file that comes with gcc, so configuring glibc
2955 # with a fresh cross-compiler works.
2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2957 # <limits.h> exists even on freestanding compilers.
2958 # On the NeXT, cc -E runs the code through the compiler's parser,
2959 # not just through cpp. "Syntax error" is here to catch this case.
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2963 # include <limits.h>
2965 # include <assert.h>
2969 if ac_fn_c_try_cpp "$LINENO"; then :
2972 # Broken: fails on valid input.
2975 rm -f conftest.err conftest.i conftest.$ac_ext
2977 # OK, works on sane cases. Now check whether nonexistent headers
2978 # can be detected and how.
2979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980 /* end confdefs.h. */
2981 #include <ac_nonexistent.h>
2983 if ac_fn_c_try_cpp "$LINENO"; then :
2984 # Broken: success on invalid input.
2987 # Passes both tests.
2991 rm -f conftest.err conftest.i conftest.$ac_ext
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.i conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then :
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3009 $as_echo "$CPP" >&6; }
3011 for ac_c_preproc_warn_flag in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3022 # include <limits.h>
3024 # include <assert.h>
3028 if ac_fn_c_try_cpp "$LINENO"; then :
3031 # Broken: fails on valid input.
3034 rm -f conftest.err conftest.i conftest.$ac_ext
3036 # OK, works on sane cases. Now check whether nonexistent headers
3037 # can be detected and how.
3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039 /* end confdefs.h. */
3040 #include <ac_nonexistent.h>
3042 if ac_fn_c_try_cpp "$LINENO"; then :
3043 # Broken: success on invalid input.
3046 # Passes both tests.
3050 rm -f conftest.err conftest.i conftest.$ac_ext
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.i conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then :
3058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3061 See \`config.log' for more details" "$LINENO" 5; }
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_RANLIB+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$RANLIB"; then
3079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 RANLIB=$ac_cv_prog_RANLIB
3099 if test -n "$RANLIB"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3101 $as_echo "$RANLIB" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$ac_cv_prog_RANLIB"; then
3110 ac_ct_RANLIB=$RANLIB
3111 # Extract the first word of "ranlib", so it can be a program name with args.
3112 set dummy ranlib; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$ac_ct_RANLIB"; then
3119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128 ac_cv_prog_ac_ct_RANLIB="ranlib"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3139 if test -n "$ac_ct_RANLIB"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3141 $as_echo "$ac_ct_RANLIB" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3147 if test "x$ac_ct_RANLIB" = x; then
3150 case $cross_compiling:$ac_tool_warned in
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3154 ac_tool_warned=yes ;;
3156 RANLIB=$ac_ct_RANLIB
3159 RANLIB="$ac_cv_prog_RANLIB"
3163 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3164 if test -f "$ac_dir/install-sh"; then
3166 ac_install_sh="$ac_aux_dir/install-sh -c"
3168 elif test -f "$ac_dir/install.sh"; then
3170 ac_install_sh="$ac_aux_dir/install.sh -c"
3172 elif test -f "$ac_dir/shtool"; then
3174 ac_install_sh="$ac_aux_dir/shtool install -c"
3178 if test -z "$ac_aux_dir"; then
3179 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3182 # These three variables are undocumented and unsupported,
3183 # and are intended to be withdrawn in a future Autoconf release.
3184 # They can cause serious problems if a builder's source tree is in a directory
3185 # whose full name contains unusual characters.
3186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3191 # Find a good install program. We prefer a C program (faster),
3192 # so one script is as good as another. But avoid the broken or
3193 # incompatible versions:
3194 # SysV /etc/install, /usr/sbin/install
3195 # SunOS /usr/etc/install
3196 # IRIX /sbin/install
3198 # AmigaOS /C/install, which installs bootblocks on floppy discs
3199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3202 # OS/2's system install, which has a completely different semantic
3203 # ./install, which can be erroneously created by make from ./install.sh.
3204 # Reject install programs that cannot install multiple files.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3207 if test -z "$INSTALL"; then
3208 if ${ac_cv_path_install+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 # Account for people who put trailing slashes in PATH elements.
3217 case $as_dir/ in #((
3218 ./ | .// | /[cC]/* | \
3219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3223 # OSF1 and SCO ODT 3.0 have their own names for install.
3224 # Don't use installbsd from OSF since it installs stuff as root
3226 for ac_prog in ginstall scoinst install; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3229 if test $ac_prog = install &&
3230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3231 # AIX install. It has an incompatible calling convention.
3233 elif test $ac_prog = install &&
3234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235 # program-specific install script used by HP pwplus--don't use.
3238 rm -rf conftest.one conftest.two conftest.dir
3239 echo one > conftest.one
3240 echo two > conftest.two
3242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3243 test -s conftest.one && test -s conftest.two &&
3244 test -s conftest.dir/conftest.one &&
3245 test -s conftest.dir/conftest.two
3247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3260 rm -rf conftest.one conftest.two conftest.dir
3263 if test "${ac_cv_path_install+set}" = set; then
3264 INSTALL=$ac_cv_path_install
3266 # As a last resort, use the slow shell script. Don't cache a
3267 # value for INSTALL within a source directory, because that will
3268 # break other packages using the cache if that directory is
3269 # removed, or if the value is a relative name.
3270 INSTALL=$ac_install_sh
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3274 $as_echo "$INSTALL" >&6; }
3276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3277 # It thinks the first close brace ends the variable substitution.
3278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3288 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
3289 if test "x$ac_cv_func_poll" = xyes; then :
3290 cat >>confdefs.h <<_ACEOF
3298 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
3299 if test "x$ac_cv_func_socket" = xyes; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3304 $as_echo_n "checking for socket in -lsocket... " >&6; }
3305 if ${ac_cv_lib_socket_socket+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_check_lib_save_LIBS=$LIBS
3309 LIBS="-lsocket $LIBS"
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3313 /* Override any GCC internal prototype to avoid an error.
3314 Use char because int might match the return type of a GCC
3315 builtin and then its argument prototype would still apply. */
3328 if ac_fn_c_try_link "$LINENO"; then :
3329 ac_cv_lib_socket_socket=yes
3331 ac_cv_lib_socket_socket=no
3333 rm -f core conftest.err conftest.$ac_objext \
3334 conftest$ac_exeext conftest.$ac_ext
3335 LIBS=$ac_check_lib_save_LIBS
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3338 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3339 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3340 cat >>confdefs.h <<_ACEOF
3341 #define HAVE_LIBSOCKET 1
3344 LIBS="-lsocket $LIBS"
3348 as_fn_error $? "cannot find library function socket" "$LINENO" 5
3357 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
3358 if test "x$ac_cv_func_inet_ntoa" = xyes; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
3363 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
3364 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 ac_check_lib_save_LIBS=$LIBS
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3372 /* Override any GCC internal prototype to avoid an error.
3373 Use char because int might match the return type of a GCC
3374 builtin and then its argument prototype would still apply. */
3382 return inet_ntoa ();
3387 if ac_fn_c_try_link "$LINENO"; then :
3388 ac_cv_lib_nsl_inet_ntoa=yes
3390 ac_cv_lib_nsl_inet_ntoa=no
3392 rm -f core conftest.err conftest.$ac_objext \
3393 conftest$ac_exeext conftest.$ac_ext
3394 LIBS=$ac_check_lib_save_LIBS
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
3397 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
3398 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
3399 cat >>confdefs.h <<_ACEOF
3400 #define HAVE_LIBNSL 1
3407 as_fn_error $? "cannot find library function inet_ntoa" "$LINENO" 5
3416 PROGS_IF_TSEARCH=adnsresfilter
3418 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
3419 if test "x$ac_cv_func_tsearch" = xyes; then :
3421 PROGS_HAVE_TSEARCH=$PROGS_IF_TSEARCH
3425 PROGS_HAVE_TSEARCH='';
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" >&5
3427 $as_echo "$as_me: WARNING: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" >&2;}
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INADDR_LOOPBACK" >&5
3433 $as_echo_n "checking for INADDR_LOOPBACK... " >&6; }
3434 if ${adns_cv_decl_inaddrloopback+:} false; then :
3435 $as_echo_n "(cached) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3441 #include <sys/socket.h>
3442 #include <netinet/in.h>
3443 #include <arpa/inet.h>
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 adns_cv_decl_inaddrloopback=yes
3458 adns_cv_decl_inaddrloopback=no
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 if test "$adns_cv_decl_inaddrloopback" = yes; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3465 $as_echo "found" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not in standard headers, urgh..." >&5
3468 $as_echo "not in standard headers, urgh..." >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3472 if ${ac_cv_path_GREP+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -z "$GREP"; then
3476 ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in grep ggrep; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486 as_fn_executable_p "$ac_path_GREP" || continue
3487 # Check for GNU ac_path_GREP and select it if it is found.
3488 # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3494 $as_echo_n 0123456789 >"conftest.in"
3497 cat "conftest.in" "conftest.in" >"conftest.tmp"
3498 mv "conftest.tmp" "conftest.in"
3499 cp "conftest.in" "conftest.nl"
3500 $as_echo 'GREP' >> "conftest.nl"
3501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503 as_fn_arith $ac_count + 1 && ac_count=$as_val
3504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505 # Best one so far, save it but keep looking for a better one
3506 ac_cv_path_GREP="$ac_path_GREP"
3507 ac_path_GREP_max=$ac_count
3509 # 10*(2^10) chars as input seems more than enough
3510 test $ac_count -gt 10 && break
3512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3515 $ac_path_GREP_found && break 3
3520 if test -z "$ac_cv_path_GREP"; then
3521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3524 ac_cv_path_GREP=$GREP
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3529 $as_echo "$ac_cv_path_GREP" >&6; }
3530 GREP="$ac_cv_path_GREP"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3534 $as_echo_n "checking for egrep... " >&6; }
3535 if ${ac_cv_path_EGREP+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3539 then ac_cv_path_EGREP="$GREP -E"
3541 if test -z "$EGREP"; then
3542 ac_path_EGREP_found=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 test -z "$as_dir" && as_dir=.
3549 for ac_prog in egrep; do
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3552 as_fn_executable_p "$ac_path_EGREP" || continue
3553 # Check for GNU ac_path_EGREP and select it if it is found.
3554 # Check for GNU $ac_path_EGREP
3555 case `"$ac_path_EGREP" --version 2>&1` in
3557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3560 $as_echo_n 0123456789 >"conftest.in"
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 $as_echo 'EGREP' >> "conftest.nl"
3567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3569 as_fn_arith $ac_count + 1 && ac_count=$as_val
3570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_EGREP="$ac_path_EGREP"
3573 ac_path_EGREP_max=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 $ac_path_EGREP_found && break 3
3586 if test -z "$ac_cv_path_EGREP"; then
3587 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590 ac_cv_path_EGREP=$EGREP
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3596 $as_echo "$ac_cv_path_EGREP" >&6; }
3597 EGREP="$ac_cv_path_EGREP"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3601 $as_echo_n "checking for ANSI C header files... " >&6; }
3602 if ${ac_cv_header_stdc+:} false; then :
3603 $as_echo_n "(cached) " >&6
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_header_stdc=yes
3623 ac_cv_header_stdc=no
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 if test $ac_cv_header_stdc = yes; then
3628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3635 $EGREP "memchr" >/dev/null 2>&1; then :
3638 ac_cv_header_stdc=no
3644 if test $ac_cv_header_stdc = yes; then
3645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "free" >/dev/null 2>&1; then :
3655 ac_cv_header_stdc=no
3661 if test $ac_cv_header_stdc = yes; then
3662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3663 if test "$cross_compiling" = yes; then :
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3670 #if ((' ' & 0x0FF) == 0x020)
3671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3674 # define ISLOWER(c) \
3675 (('a' <= (c) && (c) <= 'i') \
3676 || ('j' <= (c) && (c) <= 'r') \
3677 || ('s' <= (c) && (c) <= 'z'))
3678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3686 for (i = 0; i < 256; i++)
3687 if (XOR (islower (i), ISLOWER (i))
3688 || toupper (i) != TOUPPER (i))
3693 if ac_fn_c_try_run "$LINENO"; then :
3696 ac_cv_header_stdc=no
3698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3699 conftest.$ac_objext conftest.beam conftest.$ac_ext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3705 $as_echo "$ac_cv_header_stdc" >&6; }
3706 if test $ac_cv_header_stdc = yes; then
3708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3714 inttypes.h stdint.h unistd.h
3716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3720 cat >>confdefs.h <<_ACEOF
3721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3729 ac_fn_c_check_header_mongrel "$LINENO" "rpc/types.h" "ac_cv_header_rpc_types_h" "$ac_includes_default"
3730 if test "x$ac_cv_header_rpc_types_h" = xyes; then :
3732 $as_echo "#define HAVEUSE_RPCTYPES_H 1" >>confdefs.h
3737 as_fn_error $? "cannot find INADDR_LOOPBACK or rpc/types.h" "$LINENO" 5
3745 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
3746 if test "x$ac_cv_func_inet_aton" = xyes; then :
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
3751 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
3752 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
3753 $as_echo_n "(cached) " >&6
3755 ac_check_lib_save_LIBS=$LIBS
3756 LIBS="-lresolv $LIBS"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3760 /* Override any GCC internal prototype to avoid an error.
3761 Use char because int might match the return type of a GCC
3762 builtin and then its argument prototype would still apply. */
3770 return inet_aton ();
3775 if ac_fn_c_try_link "$LINENO"; then :
3776 ac_cv_lib_resolv_inet_aton=yes
3778 ac_cv_lib_resolv_inet_aton=no
3780 rm -f core conftest.err conftest.$ac_objext \
3781 conftest$ac_exeext conftest.$ac_ext
3782 LIBS=$ac_check_lib_save_LIBS
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
3785 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
3786 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
3788 LIBS="-lresolv $LIBS";
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&5
3790 $as_echo "$as_me: WARNING: inet_aton is in libresolv, urgh. Must use -lresolv." >&2;}
3794 as_fn_error $? "cannot find library function inet_aton" "$LINENO" 5
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking inlines" >&5
3805 $as_echo_n "checking inlines... " >&6; }
3806 if ${dpkg_cv_c_inline+:} false; then :
3807 $as_echo_n "(cached) " >&6
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3816 } inline int foo (int x) {
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 dpkg_cv_c_inline=yes
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 if test "x$dpkg_cv_c_inline" = xyes; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3834 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3845 if test "${GCC-no}" = yes; then
3846 WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith"
3847 saved_cflags="$CFLAGS"
3848 CFLAGS="$CFLAGS -Wno-pointer-sign"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking -Wno-pointer-sign" >&5
3851 $as_echo_n "checking -Wno-pointer-sign... " >&6; }
3852 if ${adns_cv_c_wnoptrsign+:} false; then :
3853 $as_echo_n "(cached) " >&6
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868 adns_cv_c_wnoptrsign=yes
3870 adns_cv_c_wnoptrsign=no
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test "x$adns_cv_c_wnoptrsign" = xyes; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3880 WARNS="$WARNS -Wno-pointer-sign"
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3887 CFLAGS="$saved_cflags"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
3895 $as_echo_n "checking __attribute__((,,))... " >&6; }
3896 if ${adns_cv_c_attribute_supported+:} false; then :
3897 $as_echo_n "(cached) " >&6
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3906 extern int testfunction(int x) __attribute__((,,))
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 adns_cv_c_attribute_supported=yes
3914 adns_cv_c_attribute_supported=no
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test "x$adns_cv_c_attribute_supported" = xyes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924 $as_echo "#define HAVE_GNUC25_ATTRIB 1" >>confdefs.h
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((noreturn))" >&5
3928 $as_echo_n "checking __attribute__((noreturn))... " >&6; }
3929 if ${adns_cv_c_attribute_noreturn+:} false; then :
3930 $as_echo_n "(cached) " >&6
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3939 extern int testfunction(int x) __attribute__((noreturn))
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945 adns_cv_c_attribute_noreturn=yes
3947 adns_cv_c_attribute_noreturn=no
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 if test "x$adns_cv_c_attribute_noreturn" = xyes; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 $as_echo "#define HAVE_GNUC25_NORETURN 1" >>confdefs.h
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((const))" >&5
3967 $as_echo_n "checking __attribute__((const))... " >&6; }
3968 if ${adns_cv_c_attribute_const+:} false; then :
3969 $as_echo_n "(cached) " >&6
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3978 extern int testfunction(int x) __attribute__((const))
3983 if ac_fn_c_try_compile "$LINENO"; then :
3984 adns_cv_c_attribute_const=yes
3986 adns_cv_c_attribute_const=no
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 if test "x$adns_cv_c_attribute_const" = xyes; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3995 $as_echo "yes" >&6; }
3996 $as_echo "#define HAVE_GNUC25_CONST 1" >>confdefs.h
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((format...))" >&5
4006 $as_echo_n "checking __attribute__((format...))... " >&6; }
4007 if ${adns_cv_attribute_format+:} false; then :
4008 $as_echo_n "(cached) " >&6
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4017 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 adns_cv_attribute_format=yes
4025 adns_cv_attribute_format=no
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 if test "x$adns_cv_attribute_format" = xyes; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4034 $as_echo "yes" >&6; }
4035 $as_echo "#define HAVE_GNUC25_PRINTFFORMAT 1" >>confdefs.h
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4060 SHLIBFORLINK='libadns.so'
4061 SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
4062 SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
4064 SHLIBCC='$(CC) $(CFLAGS) -fpic'
4065 MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
4069 ac_config_files="$ac_config_files common.make settings.make Makefile src/Makefile client/Makefile dynamic/Makefile regress/Makefile"
4071 cat >confcache <<\_ACEOF
4072 # This file is a shell script that caches the results of configure
4073 # tests run on this system so they can be shared between configure
4074 # scripts and configure runs, see configure's option --config-cache.
4075 # It is not useful on other systems. If it contains results you don't
4076 # want to keep, you may remove or edit it.
4078 # config.status only pays attention to the cache file if you give it
4079 # the --recheck option to rerun configure.
4081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4087 # The following way of writing the cache mishandles newlines in values,
4088 # but we know of no workaround that is simple, portable, and efficient.
4089 # So, we kill variables containing newlines.
4090 # Ultrix sh set writes to stderr and can't be redirected directly,
4091 # and sets the high bit in the cache file unless we assign to the vars.
4093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4094 eval ac_val=\$$ac_var
4098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4102 _ | IFS | as_nl) ;; #(
4103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4104 *) { eval $ac_var=; unset $ac_var;} ;;
4110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4111 *${as_nl}ac_space=\ *)
4112 # `set' does not quote correctly, so add quotes: double-quote
4113 # substitution turns \\\\ into \\, and sed turns \\ into \.
4116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4119 # `set' quotes correctly as required by POSIX, so do not add quotes.
4120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4133 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4134 if test -w "$cache_file"; then
4135 if test "x$cache_file" != "x/dev/null"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4137 $as_echo "$as_me: updating cache $cache_file" >&6;}
4138 if test ! -f "$cache_file" || test -h "$cache_file"; then
4139 cat confcache >"$cache_file"
4141 case $cache_file in #(
4143 mv -f confcache "$cache_file"$$ &&
4144 mv -f "$cache_file"$$ "$cache_file" ;; #(
4146 mv -f confcache "$cache_file" ;;
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4158 # Let make expand exec_prefix.
4159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4161 DEFS=-DHAVE_CONFIG_H
4166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4167 # 1. Remove the extension, and $U if already installed.
4168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4169 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4171 # will be set to the directory where LIBOBJS objects are built.
4172 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4173 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4177 LTLIBOBJS=$ac_ltlibobjs
4181 : "${CONFIG_STATUS=./config.status}"
4183 ac_clean_files_save=$ac_clean_files
4184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4190 # Generated by $as_me.
4191 # Run this file to recreate the current configuration.
4192 # Compiler output produced by configure, useful for debugging
4193 # configure, is in config.log if it exists.
4199 SHELL=\${CONFIG_SHELL-$SHELL}
4202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4203 ## -------------------- ##
4204 ## M4sh Initialization. ##
4205 ## -------------------- ##
4207 # Be more Bourne compatible
4208 DUALCASE=1; export DUALCASE # for MKS sh
4209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4213 # is contrary to our usage. Disable this feature.
4214 alias -g '${1+"$@"}'='"$@"'
4215 setopt NO_GLOB_SUBST
4217 case `(set -o) 2>/dev/null` in #(
4229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4230 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4233 # Prefer a ksh shell builtin over an external printf program on Solaris,
4234 # but without wasting forks for bash or zsh.
4235 if test -z "$BASH_VERSION$ZSH_VERSION" \
4236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4237 as_echo='print -r --'
4238 as_echo_n='print -rn --'
4239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4240 as_echo='printf %s\n'
4241 as_echo_n='printf %s'
4243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4244 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4245 as_echo_n='/usr/ucb/echo -n'
4247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4248 as_echo_n_body='eval
4252 expr "X$arg" : "X\\(.*\\)$as_nl";
4253 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4255 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4257 export as_echo_n_body
4258 as_echo_n='sh -c $as_echo_n_body as_echo'
4261 as_echo='sh -c $as_echo_body as_echo'
4264 # The user is always right.
4265 if test "${PATH_SEPARATOR+set}" != set; then
4267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4268 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4275 # We need space, tab and new line, in precisely that order. Quoting is
4276 # there to prevent editors from complaining about space-tab.
4277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4278 # splitting by setting IFS to empty value.)
4281 # Find who we are. Look in the path if we contain no directory separator.
4284 *[\\/]* ) as_myself=$0 ;;
4285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir=.
4290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4296 # We did not find ourselves, most probably we were run as `sh COMMAND'
4297 # in which case we are not to be found in the path.
4298 if test "x$as_myself" = x; then
4301 if test ! -f "$as_myself"; then
4302 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4306 # Unset variables that we do not need and which cause bugs (e.g. in
4307 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4308 # suppresses any "Segmentation fault" message there. '((' could
4309 # trigger a bug in pdksh 5.2.14.
4310 for as_var in BASH_ENV ENV MAIL MAILPATH
4311 do eval test x\${$as_var+set} = xset \
4312 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4329 # ----------------------------------------
4330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4332 # script with STATUS, using 1 if that was 0.
4335 as_status=$1; test $as_status -eq 0 && as_status=1
4337 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4338 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4340 $as_echo "$as_me: error: $2" >&2
4341 as_fn_exit $as_status
4345 # as_fn_set_status STATUS
4346 # -----------------------
4347 # Set $? to STATUS, without forking.
4351 } # as_fn_set_status
4355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4365 # Portably unset VAR.
4368 { eval $1=; unset $1;}
4370 as_unset=as_fn_unset
4371 # as_fn_append VAR VALUE
4372 # ----------------------
4373 # Append the text in VALUE to the end of the definition contained in VAR. Take
4374 # advantage of any shell optimizations that allow amortized linear growth over
4375 # repeated appends, instead of the typical quadratic growth present in naive
4377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4378 eval 'as_fn_append ()
4389 # as_fn_arith ARG...
4390 # ------------------
4391 # Perform arithmetic evaluation on the ARGs, and store the result in the
4392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4393 # must be portable across $(()) and expr.
4394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4395 eval 'as_fn_arith ()
4402 as_val=`expr "$@" || test $? -eq 1`
4407 if expr a : '\(a\)' >/dev/null 2>&1 &&
4408 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4415 as_basename=basename
4420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4426 as_me=`$as_basename -- "$0" ||
4427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4428 X"$0" : 'X\(//\)$' \| \
4429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4431 sed '/^.*\/\([^/][^/]*\)\/*$/{
4445 # Avoid depending upon Character Ranges.
4446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4449 as_cr_digits='0123456789'
4450 as_cr_alnum=$as_cr_Letters$as_cr_digits
4452 ECHO_C= ECHO_N= ECHO_T=
4453 case `echo -n x` in #(((((
4455 case `echo 'xy\c'` in
4456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4465 rm -f conf$$ conf$$.exe conf$$.file
4466 if test -d conf$$.dir; then
4467 rm -f conf$$.dir/conf$$.file
4470 mkdir conf$$.dir 2>/dev/null
4472 if (echo >conf$$.file) 2>/dev/null; then
4473 if ln -s conf$$.file conf$$ 2>/dev/null; then
4475 # ... but there are two gotchas:
4476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4478 # In both cases, we have to default to `cp -pR'.
4479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4481 elif ln conf$$.file conf$$ 2>/dev/null; then
4489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4490 rmdir conf$$.dir 2>/dev/null
4495 # Create "$as_dir" as a directory, including parents if necessary.
4500 -*) as_dir=./$as_dir;;
4502 test -d "$as_dir" || eval $as_mkdir_p || {
4506 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4507 *) as_qdir=$as_dir;;
4509 as_dirs="'$as_qdir' $as_dirs"
4510 as_dir=`$as_dirname -- "$as_dir" ||
4511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4512 X"$as_dir" : 'X\(//\)[^/]' \| \
4513 X"$as_dir" : 'X\(//\)$' \| \
4514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4515 $as_echo X"$as_dir" |
4516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4533 test -d "$as_dir" && break
4535 test -z "$as_dirs" || eval "mkdir $as_dirs"
4536 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4540 if mkdir -p . 2>/dev/null; then
4541 as_mkdir_p='mkdir -p "$as_dir"'
4543 test -d ./-p && rmdir ./-p
4548 # as_fn_executable_p FILE
4549 # -----------------------
4550 # Test if FILE is an executable regular file.
4551 as_fn_executable_p ()
4553 test -f "$1" && test -x "$1"
4554 } # as_fn_executable_p
4556 as_executable_p=as_fn_executable_p
4558 # Sed expression to map a string onto a valid CPP name.
4559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4561 # Sed expression to map a string onto a valid variable name.
4562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4566 ## ----------------------------------- ##
4567 ## Main body of $CONFIG_STATUS script. ##
4568 ## ----------------------------------- ##
4570 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4573 # Save the log message, to keep $0 and so on meaningful, and to
4574 # report actual input values of CONFIG_FILES etc. instead of their
4575 # values after options handling.
4577 This file was extended by $as_me, which was
4578 generated by GNU Autoconf 2.69. Invocation command line was
4580 CONFIG_FILES = $CONFIG_FILES
4581 CONFIG_HEADERS = $CONFIG_HEADERS
4582 CONFIG_LINKS = $CONFIG_LINKS
4583 CONFIG_COMMANDS = $CONFIG_COMMANDS
4586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4591 case $ac_config_files in *"
4592 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4595 case $ac_config_headers in *"
4596 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4601 # Files that config.status was made for.
4602 config_files="$ac_config_files"
4603 config_headers="$ac_config_headers"
4607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4609 \`$as_me' instantiates files and other configuration actions
4610 from templates according to the current configuration. Unless the files
4611 and actions are specified as TAGs, all are instantiated by default.
4613 Usage: $0 [OPTION]... [TAG]...
4615 -h, --help print this help, then exit
4616 -V, --version print version number and configuration settings, then exit
4617 --config print configuration, then exit
4618 -q, --quiet, --silent
4619 do not print progress messages
4620 -d, --debug don't remove temporary files
4621 --recheck update $as_me by reconfiguring in the same conditions
4622 --file=FILE[:TEMPLATE]
4623 instantiate the configuration file FILE
4624 --header=FILE[:TEMPLATE]
4625 instantiate the configuration header FILE
4627 Configuration files:
4630 Configuration headers:
4633 Report bugs to the package provider."
4636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4637 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4640 configured by $0, generated by GNU Autoconf 2.69,
4641 with options \\"\$ac_cs_config\\"
4643 Copyright (C) 2012 Free Software Foundation, Inc.
4644 This config.status script is free software; the Free Software Foundation
4645 gives unlimited permission to copy, distribute and modify it."
4650 test -n "\$AWK" || AWK=awk
4653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4654 # The default lists apply if the user does not specify any file.
4660 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4677 # Handling of the options.
4678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4681 $as_echo "$ac_cs_version"; exit ;;
4682 --config | --confi | --conf | --con | --co | --c )
4683 $as_echo "$ac_cs_config"; exit ;;
4684 --debug | --debu | --deb | --de | --d | -d )
4686 --file | --fil | --fi | --f )
4689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4690 '') as_fn_error $? "missing file argument" ;;
4692 as_fn_append CONFIG_FILES " '$ac_optarg'"
4693 ac_need_defaults=false;;
4694 --header | --heade | --head | --hea )
4697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4699 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4700 ac_need_defaults=false;;
4702 # Conflict between --help and --header
4703 as_fn_error $? "ambiguous option: \`$1'
4704 Try \`$0 --help' for more information.";;
4705 --help | --hel | -h )
4706 $as_echo "$ac_cs_usage"; exit ;;
4707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4712 -*) as_fn_error $? "unrecognized option: \`$1'
4713 Try \`$0 --help' for more information." ;;
4715 *) as_fn_append ac_config_targets " $1"
4716 ac_need_defaults=false ;;
4722 ac_configure_extra_args=
4724 if $ac_cs_silent; then
4726 ac_configure_extra_args="$ac_configure_extra_args --silent"
4730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4731 if \$ac_cs_recheck; then
4732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4735 CONFIG_SHELL='$SHELL'
4741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4746 ## Running $as_me. ##
4752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4757 # Handling of arguments.
4758 for ac_config_target in $ac_config_targets
4760 case $ac_config_target in
4761 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
4762 "common.make") CONFIG_FILES="$CONFIG_FILES common.make" ;;
4763 "settings.make") CONFIG_FILES="$CONFIG_FILES settings.make" ;;
4764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4765 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4766 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
4767 "dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES dynamic/Makefile" ;;
4768 "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
4770 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4775 # If the user did not use the arguments to specify the items to instantiate,
4776 # then the envvar interface is used. Set only those that are not.
4777 # We use the long form for the default assignment because of an extremely
4778 # bizarre bug on SunOS 4.1.3.
4779 if $ac_need_defaults; then
4780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4784 # Have a temporary directory for convenience. Make it in the build tree
4785 # simply because there is no reason against having it here, and in addition,
4786 # creating and moving files from /tmp can sometimes cause problems.
4787 # Hook for its removal unless debugging.
4788 # Note that there is a small window in which the directory will not be cleaned:
4789 # after its creation but before its name has been assigned to `$tmp'.
4793 trap 'exit_status=$?
4795 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4797 trap 'as_fn_exit 1' 1 2 13 15
4799 # Create a (secure) tmp directory for tmp files.
4802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4806 tmp=./conf$$-$RANDOM
4807 (umask 077 && mkdir "$tmp")
4808 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4811 # Set up the scripts for CONFIG_FILES section.
4812 # No need to generate them if there are no CONFIG_FILES.
4813 # This happens for instance with `./config.status config.h'.
4814 if test -n "$CONFIG_FILES"; then
4817 ac_cr=`echo X | tr X '\015'`
4818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4819 # But we know of no other shell where ac_cr would be empty at this
4820 # point, so we can use a bashism as a fallback.
4821 if test "x$ac_cr" = x; then
4822 eval ac_cr=\$\'\\r\'
4824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4836 echo "cat >conf$$subs.awk <<_ACEOF" &&
4837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4841 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4843 for ac_last_try in false false false false false :; do
4844 . ./conf$$subs.sh ||
4845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4847 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4848 if test $ac_delim_n = $ac_delim_num; then
4850 elif $ac_last_try; then
4851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4859 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4863 s/^/S["/; s/!.*/"]=/
4873 s/\(.\{148\}\)..*/\1/
4875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4887 s/\(.\{148\}\)..*/\1/
4889 s/["\\]/\\&/g; s/^/"/; s/$/"/
4893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4898 ' <conf$$subs.awk | sed '
4903 ' >>$CONFIG_STATUS || ac_write_fail=1
4904 rm -f conf$$subs.awk
4905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4907 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4908 for (key in S) S_is_set[key] = 1
4914 nfields = split(line, field, "@")
4916 len = length(field[1])
4917 for (i = 2; i < nfields; i++) {
4919 keylen = length(key)
4920 if (S_is_set[key]) {
4922 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4923 len += length(value) + length(field[++i])
4934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4936 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4939 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4940 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4943 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4944 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4945 # trailing colons and then remove the whole line if VPATH becomes empty
4946 # (actually we leave an empty line to preserve line numbers).
4947 if test "x$srcdir" = x.; then
4948 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4967 fi # test -n "$CONFIG_FILES"
4969 # Set up the scripts for CONFIG_HEADERS section.
4970 # No need to generate them if there are no CONFIG_HEADERS.
4971 # This happens for instance with `./config.status Makefile'.
4972 if test -n "$CONFIG_HEADERS"; then
4973 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4977 # Transform confdefs.h into an awk script `defines.awk', embedded as
4978 # here-document in config.status, that substitutes the proper values into
4979 # config.h.in to produce config.h.
4981 # Create a delimiter string that does not exist in confdefs.h, to ease
4982 # handling of long lines.
4984 for ac_last_try in false false :; do
4985 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4986 if test -z "$ac_tt"; then
4988 elif $ac_last_try; then
4989 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4995 # For the awk script, D is an array of macro values keyed by name,
4996 # likewise P contains macro parameters if any. Preserve backslash
4997 # newline sequences.
4999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5001 s/.\{148\}/&'"$ac_delim"'/g
5004 s/^[ ]*#[ ]*define[ ][ ]*/ /
5011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5018 D["\1"]=" \3\\\\\\n"\\/p
5020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5025 s/.\{148\}/&'"$ac_delim"'/g
5030 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5033 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5035 ' <confdefs.h | sed '
5036 s/'"$ac_delim"'/"\\\
5037 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5040 for (key in D) D_is_set[key] = 1
5043 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5045 split(line, arg, " ")
5046 if (arg[1] == "#") {
5050 defundef = substr(arg[1], 2)
5053 split(mac1, mac2, "(") #)
5055 prefix = substr(line, 1, index(line, defundef) - 1)
5056 if (D_is_set[macro]) {
5057 # Preserve the white space surrounding the "#".
5058 print prefix "define", macro P[macro] D[macro]
5061 # Replace #undef with comments. This is necessary, for example,
5062 # in the case of _POSIX_SOURCE, which is predefined and required
5063 # on some systems where configure will not decide to define it.
5064 if (defundef == "undef") {
5065 print "/*", prefix defundef, macro, "*/"
5073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5074 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5075 fi # test -n "$CONFIG_HEADERS"
5078 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5083 :[FHLC]) ac_mode=$ac_tag; continue;;
5085 case $ac_mode$ac_tag in
5087 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5088 :[FH]-) ac_tag=-:-;;
5089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5106 -) ac_f="$ac_tmp/stdin";;
5107 *) # Look for the file first in the build tree, then in the source tree
5108 # (if the path is not absolute). The absolute path cannot be DOS-style,
5109 # because $ac_f cannot contain `:'.
5113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5115 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5117 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5118 as_fn_append ac_file_inputs " '$ac_f'"
5121 # Let's still pretend it is `configure' which instantiates (i.e., don't
5122 # use $as_me), people would be surprised to read:
5123 # /* config.h. Generated by config.status. */
5124 configure_input='Generated from '`
5125 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5127 if test x"$ac_file" != x-; then
5128 configure_input="$ac_file. $configure_input"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5130 $as_echo "$as_me: creating $ac_file" >&6;}
5132 # Neutralize special characters interpreted by sed in replacement strings.
5133 case $configure_input in #(
5134 *\&* | *\|* | *\\* )
5135 ac_sed_conf_input=`$as_echo "$configure_input" |
5136 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5137 *) ac_sed_conf_input=$configure_input;;
5141 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5147 ac_dir=`$as_dirname -- "$ac_file" ||
5148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5149 X"$ac_file" : 'X\(//\)[^/]' \| \
5150 X"$ac_file" : 'X\(//\)$' \| \
5151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5152 $as_echo X"$ac_file" |
5153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5170 as_dir="$ac_dir"; as_fn_mkdir_p
5174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5176 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5177 # A ".." for each directory in $ac_dir_suffix.
5178 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5179 case $ac_top_builddir_sub in
5180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5184 ac_abs_top_builddir=$ac_pwd
5185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5186 # for backward compatibility:
5187 ac_top_builddir=$ac_top_build_prefix
5190 .) # We are building in place.
5192 ac_top_srcdir=$ac_top_builddir_sub
5193 ac_abs_top_srcdir=$ac_pwd ;;
5194 [\\/]* | ?:[\\/]* ) # Absolute name.
5195 ac_srcdir=$srcdir$ac_dir_suffix;
5196 ac_top_srcdir=$srcdir
5197 ac_abs_top_srcdir=$srcdir ;;
5199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5200 ac_top_srcdir=$ac_top_build_prefix$srcdir
5201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5213 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5214 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5219 # If the template does not know about datarootdir, expand it.
5220 # FIXME: This hack should be removed a few years after 2.60.
5221 ac_datarootdir_hack=; ac_datarootdir_seen=
5232 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5233 *datarootdir*) ac_datarootdir_seen=yes;;
5234 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5236 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5239 ac_datarootdir_hack='
5240 s&@datadir@&$datadir&g
5241 s&@docdir@&$docdir&g
5242 s&@infodir@&$infodir&g
5243 s&@localedir@&$localedir&g
5244 s&@mandir@&$mandir&g
5245 s&\\\${datarootdir}&$datarootdir&g' ;;
5249 # Neutralize VPATH when `$srcdir' = `.'.
5250 # Shell code in configure.ac might set extrasub.
5251 # FIXME: do we really want to maintain this feature?
5252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5253 ac_sed_extra="$ac_vpsub
5256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5259 s|@configure_input@|$ac_sed_conf_input|;t t
5260 s&@top_builddir@&$ac_top_builddir_sub&;t t
5261 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5262 s&@srcdir@&$ac_srcdir&;t t
5263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5264 s&@top_srcdir@&$ac_top_srcdir&;t t
5265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5266 s&@builddir@&$ac_builddir&;t t
5267 s&@abs_builddir@&$ac_abs_builddir&;t t
5268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5269 s&@INSTALL@&$ac_INSTALL&;t t
5270 $ac_datarootdir_hack
5272 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5273 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5275 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5276 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5277 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5278 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5280 which seems to be undefined. Please make sure it is defined" >&5
5281 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5282 which seems to be undefined. Please make sure it is defined" >&2;}
5284 rm -f "$ac_tmp/stdin"
5286 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5287 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5295 if test x"$ac_file" != x-; then
5297 $as_echo "/* $configure_input */" \
5298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5299 } >"$ac_tmp/config.h" \
5300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5301 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5303 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5306 mv "$ac_tmp/config.h" "$ac_file" \
5307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5310 $as_echo "/* $configure_input */" \
5311 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5312 || as_fn_error $? "could not create -" "$LINENO" 5
5324 ac_clean_files=$ac_clean_files_save
5326 test $ac_write_fail = 0 ||
5327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5330 # configure is writing to config.log, and then calls config.status.
5331 # config.status does its own redirection, appending to config.log.
5332 # Unfortunately, on DOS this fails, as config.log is still kept open
5333 # by configure, so config.status won't be able to write to it; its
5334 # output is simply discarded. So we exec the FD to /dev/null,
5335 # effectively closing config.log, so it can be properly (re)opened and
5336 # appended to by config.status. When coming back to configure, we
5337 # need to make the FD available again.
5338 if test "$no_create" != yes; then
5340 ac_config_status_args=
5341 test "$silent" = yes &&
5342 ac_config_status_args="$ac_config_status_args --quiet"
5344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5347 # would make configure fail if this is the last instruction.
5348 $ac_cs_success || as_fn_exit 1
5350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}