2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 # Factoring default headers for most tests.
558 ac_includes_default="\
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
570 # ifdef HAVE_STDLIB_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
641 program_transform_name
654 enable_option_checking
656 ac_precious_vars='build_alias
667 # Initialize some variables set by options.
669 ac_init_version=false
670 ac_unrecognized_opts=
672 # The variables have the same names as the options, with
673 # dashes changed to underlines.
681 program_transform_name=s,x,x,
689 # Installation directory options.
690 # These are left unexpanded so users can "make install exec_prefix=/foo"
691 # and all the variables that are supposed to be based on exec_prefix
692 # by default will actually change.
693 # Use braces instead of parens because sh, perl, etc. also accept them.
694 # (The list follows the same order as the GNU Coding Standards.)
695 bindir='${exec_prefix}/bin'
696 sbindir='${exec_prefix}/sbin'
697 libexecdir='${exec_prefix}/libexec'
698 datarootdir='${prefix}/share'
699 datadir='${datarootdir}'
700 sysconfdir='${prefix}/etc'
701 sharedstatedir='${prefix}/com'
702 localstatedir='${prefix}/var'
703 includedir='${prefix}/include'
704 oldincludedir='/usr/include'
705 docdir='${datarootdir}/doc/${PACKAGE}'
706 infodir='${datarootdir}/info'
711 libdir='${exec_prefix}/lib'
712 localedir='${datarootdir}/locale'
713 mandir='${datarootdir}/man'
719 # If the previous option needs an argument, assign it.
720 if test -n "$ac_prev"; then
721 eval $ac_prev=\$ac_option
727 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
732 # Accept the important Cygnus configure options, so we can diagnose typos.
734 case $ac_dashdash$ac_option in
738 -bindir | --bindir | --bindi | --bind | --bin | --bi)
740 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
743 -build | --build | --buil | --bui | --bu)
744 ac_prev=build_alias ;;
745 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
746 build_alias=$ac_optarg ;;
748 -cache-file | --cache-file | --cache-fil | --cache-fi \
749 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
750 ac_prev=cache_file ;;
751 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
752 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
753 cache_file=$ac_optarg ;;
756 cache_file=config.cache ;;
758 -datadir | --datadir | --datadi | --datad)
760 -datadir=* | --datadir=* | --datadi=* | --datad=*)
761 datadir=$ac_optarg ;;
763 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
764 | --dataroo | --dataro | --datar)
765 ac_prev=datarootdir ;;
766 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
767 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
768 datarootdir=$ac_optarg ;;
770 -disable-* | --disable-*)
771 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
772 # Reject names that are not valid shell variable names.
773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
774 as_fn_error $? "invalid feature name: $ac_useropt"
775 ac_useropt_orig=$ac_useropt
776 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
777 case $ac_user_opts in
781 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
782 ac_unrecognized_sep=', ';;
784 eval enable_$ac_useropt=no ;;
786 -docdir | --docdir | --docdi | --doc | --do)
788 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
791 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
793 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
796 -enable-* | --enable-*)
797 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
800 as_fn_error $? "invalid feature name: $ac_useropt"
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
810 eval enable_$ac_useropt=\$ac_optarg ;;
812 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
813 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
814 | --exec | --exe | --ex)
815 ac_prev=exec_prefix ;;
816 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
817 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
818 | --exec=* | --exe=* | --ex=*)
819 exec_prefix=$ac_optarg ;;
821 -gas | --gas | --ga | --g)
822 # Obsolete; use --with-gas.
825 -help | --help | --hel | --he | -h)
827 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
828 ac_init_help=recursive ;;
829 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
830 ac_init_help=short ;;
832 -host | --host | --hos | --ho)
833 ac_prev=host_alias ;;
834 -host=* | --host=* | --hos=* | --ho=*)
835 host_alias=$ac_optarg ;;
837 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
839 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
841 htmldir=$ac_optarg ;;
843 -includedir | --includedir | --includedi | --included | --include \
844 | --includ | --inclu | --incl | --inc)
845 ac_prev=includedir ;;
846 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
847 | --includ=* | --inclu=* | --incl=* | --inc=*)
848 includedir=$ac_optarg ;;
850 -infodir | --infodir | --infodi | --infod | --info | --inf)
852 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
853 infodir=$ac_optarg ;;
855 -libdir | --libdir | --libdi | --libd)
857 -libdir=* | --libdir=* | --libdi=* | --libd=*)
860 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
861 | --libexe | --libex | --libe)
862 ac_prev=libexecdir ;;
863 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
864 | --libexe=* | --libex=* | --libe=*)
865 libexecdir=$ac_optarg ;;
867 -localedir | --localedir | --localedi | --localed | --locale)
869 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
870 localedir=$ac_optarg ;;
872 -localstatedir | --localstatedir | --localstatedi | --localstated \
873 | --localstate | --localstat | --localsta | --localst | --locals)
874 ac_prev=localstatedir ;;
875 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
876 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
877 localstatedir=$ac_optarg ;;
879 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
881 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
885 # Obsolete; use --without-fp.
888 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
889 | --no-cr | --no-c | -n)
892 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
893 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
896 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
897 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
898 | --oldin | --oldi | --old | --ol | --o)
899 ac_prev=oldincludedir ;;
900 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
901 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
902 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
903 oldincludedir=$ac_optarg ;;
905 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
907 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
910 -program-prefix | --program-prefix | --program-prefi | --program-pref \
911 | --program-pre | --program-pr | --program-p)
912 ac_prev=program_prefix ;;
913 -program-prefix=* | --program-prefix=* | --program-prefi=* \
914 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
915 program_prefix=$ac_optarg ;;
917 -program-suffix | --program-suffix | --program-suffi | --program-suff \
918 | --program-suf | --program-su | --program-s)
919 ac_prev=program_suffix ;;
920 -program-suffix=* | --program-suffix=* | --program-suffi=* \
921 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
922 program_suffix=$ac_optarg ;;
924 -program-transform-name | --program-transform-name \
925 | --program-transform-nam | --program-transform-na \
926 | --program-transform-n | --program-transform- \
927 | --program-transform | --program-transfor \
928 | --program-transfo | --program-transf \
929 | --program-trans | --program-tran \
930 | --progr-tra | --program-tr | --program-t)
931 ac_prev=program_transform_name ;;
932 -program-transform-name=* | --program-transform-name=* \
933 | --program-transform-nam=* | --program-transform-na=* \
934 | --program-transform-n=* | --program-transform-=* \
935 | --program-transform=* | --program-transfor=* \
936 | --program-transfo=* | --program-transf=* \
937 | --program-trans=* | --program-tran=* \
938 | --progr-tra=* | --program-tr=* | --program-t=*)
939 program_transform_name=$ac_optarg ;;
941 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
943 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
946 -psdir | --psdir | --psdi | --psd | --ps)
948 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
952 | -silent | --silent | --silen | --sile | --sil)
955 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
957 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
959 sbindir=$ac_optarg ;;
961 -sharedstatedir | --sharedstatedir | --sharedstatedi \
962 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
963 | --sharedst | --shareds | --shared | --share | --shar \
965 ac_prev=sharedstatedir ;;
966 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
967 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
968 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
970 sharedstatedir=$ac_optarg ;;
972 -site | --site | --sit)
974 -site=* | --site=* | --sit=*)
977 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
979 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
982 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
983 | --syscon | --sysco | --sysc | --sys | --sy)
984 ac_prev=sysconfdir ;;
985 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
986 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
987 sysconfdir=$ac_optarg ;;
989 -target | --target | --targe | --targ | --tar | --ta | --t)
990 ac_prev=target_alias ;;
991 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
992 target_alias=$ac_optarg ;;
994 -v | -verbose | --verbose | --verbos | --verbo | --verb)
997 -version | --version | --versio | --versi | --vers | -V)
1001 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid package name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval with_$ac_useropt=\$ac_optarg ;;
1016 -without-* | --without-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid package name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1030 eval with_$ac_useropt=no ;;
1033 # Obsolete; use --with-x.
1036 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1037 | --x-incl | --x-inc | --x-in | --x-i)
1038 ac_prev=x_includes ;;
1039 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1040 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1041 x_includes=$ac_optarg ;;
1043 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1044 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1045 ac_prev=x_libraries ;;
1046 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1047 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1048 x_libraries=$ac_optarg ;;
1050 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1051 Try \`$0 --help' for more information"
1055 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1056 # Reject names that are not valid shell variable names.
1057 case $ac_envvar in #(
1058 '' | [0-9]* | *[!_$as_cr_alnum]* )
1059 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1061 eval $ac_envvar=\$ac_optarg
1062 export $ac_envvar ;;
1065 # FIXME: should be removed in autoconf 3.0.
1066 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1067 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1069 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1075 if test -n "$ac_prev"; then
1076 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1077 as_fn_error $? "missing argument to $ac_option"
1080 if test -n "$ac_unrecognized_opts"; then
1081 case $enable_option_checking in
1083 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1084 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1088 # Check all directory arguments for consistency.
1089 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1090 datadir sysconfdir sharedstatedir localstatedir includedir \
1091 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1092 libdir localedir mandir
1094 eval ac_val=\$$ac_var
1095 # Remove trailing slashes.
1098 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1099 eval $ac_var=\$ac_val;;
1101 # Be sure to have absolute directory names.
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1109 # There might be people who depend on the old broken behavior: `$host'
1110 # used to hold the argument of --host etc.
1111 # FIXME: To remove some day.
1114 target=$target_alias
1116 # FIXME: To remove some day.
1117 if test "x$host_alias" != x; then
1118 if test "x$build_alias" = x; then
1119 cross_compiling=maybe
1120 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1121 If a cross compiler is detected then cross compile mode will be used" >&2
1122 elif test "x$build_alias" != "x$host_alias"; then
1128 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1130 test "$silent" = yes && exec 6>/dev/null
1133 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1134 ac_ls_di=`ls -di .` &&
1135 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1136 as_fn_error $? "working directory cannot be determined"
1137 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1138 as_fn_error $? "pwd does not report name of working directory"
1141 # Find the source files, if location was not specified.
1142 if test -z "$srcdir"; then
1143 ac_srcdir_defaulted=yes
1144 # Try the directory containing this script, then the parent directory.
1145 ac_confdir=`$as_dirname -- "$as_myself" ||
1146 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1147 X"$as_myself" : 'X\(//\)[^/]' \| \
1148 X"$as_myself" : 'X\(//\)$' \| \
1149 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1150 $as_echo X"$as_myself" |
1151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 if test ! -r "$srcdir/$ac_unique_file"; then
1173 ac_srcdir_defaulted=no
1175 if test ! -r "$srcdir/$ac_unique_file"; then
1176 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1177 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1183 # When building in place, set srcdir=.
1184 if test "$ac_abs_confdir" = "$ac_pwd"; then
1187 # Remove unnecessary trailing slashes from srcdir.
1188 # Double slashes in file names in object file debugging info
1189 # mess up M-x gdb in Emacs.
1191 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 for ac_var in $ac_precious_vars; do
1194 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1195 eval ac_env_${ac_var}_value=\$${ac_var}
1196 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1197 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1201 # Report the --help message.
1203 if test "$ac_init_help" = "long"; then
1204 # Omit some internal or obsolete options to make the list less imposing.
1205 # This message is too long to be a string in the A/UX 3.1 sh.
1207 \`configure' configures this package to adapt to many kinds of systems.
1209 Usage: $0 [OPTION]... [VAR=VALUE]...
1211 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1212 VAR=VALUE. See below for descriptions of some of the useful variables.
1214 Defaults for the options are specified in brackets.
1217 -h, --help display this help and exit
1218 --help=short display options specific to this package
1219 --help=recursive display the short help of all the included packages
1220 -V, --version display version information and exit
1221 -q, --quiet, --silent do not print \`checking ...' messages
1222 --cache-file=FILE cache test results in FILE [disabled]
1223 -C, --config-cache alias for \`--cache-file=config.cache'
1224 -n, --no-create do not create output files
1225 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1227 Installation directories:
1228 --prefix=PREFIX install architecture-independent files in PREFIX
1229 [$ac_default_prefix]
1230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1233 By default, \`make install' will install all the files in
1234 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1235 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1236 for instance \`--prefix=\$HOME'.
1238 For better control, use the options below.
1240 Fine tuning of the installation directories:
1241 --bindir=DIR user executables [EPREFIX/bin]
1242 --sbindir=DIR system admin executables [EPREFIX/sbin]
1243 --libexecdir=DIR program executables [EPREFIX/libexec]
1244 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1245 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1246 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1247 --libdir=DIR object code libraries [EPREFIX/lib]
1248 --includedir=DIR C header files [PREFIX/include]
1249 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1250 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1251 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1252 --infodir=DIR info documentation [DATAROOTDIR/info]
1253 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1254 --mandir=DIR man documentation [DATAROOTDIR/man]
1255 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1256 --htmldir=DIR html documentation [DOCDIR]
1257 --dvidir=DIR dvi documentation [DOCDIR]
1258 --pdfdir=DIR pdf documentation [DOCDIR]
1259 --psdir=DIR ps documentation [DOCDIR]
1266 if test -n "$ac_init_help"; then
1270 Some influential environment variables:
1271 CC C compiler command
1272 CFLAGS C compiler flags
1273 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1274 nonstandard directory <lib dir>
1275 LIBS libraries to pass to the linker, e.g. -l<library>
1276 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1277 you have headers in a nonstandard directory <include dir>
1280 Use these variables to override the choices made by `configure' or to help
1281 it to find libraries and programs with nonstandard names/locations.
1283 Report bugs to the package provider.
1288 if test "$ac_init_help" = "recursive"; then
1289 # If there are subdirs, report their specific --help.
1290 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1291 test -d "$ac_dir" ||
1292 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1300 # A ".." for each directory in $ac_dir_suffix.
1301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1302 case $ac_top_builddir_sub in
1303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1307 ac_abs_top_builddir=$ac_pwd
1308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1309 # for backward compatibility:
1310 ac_top_builddir=$ac_top_build_prefix
1313 .) # We are building in place.
1315 ac_top_srcdir=$ac_top_builddir_sub
1316 ac_abs_top_srcdir=$ac_pwd ;;
1317 [\\/]* | ?:[\\/]* ) # Absolute name.
1318 ac_srcdir=$srcdir$ac_dir_suffix;
1319 ac_top_srcdir=$srcdir
1320 ac_abs_top_srcdir=$srcdir ;;
1322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1323 ac_top_srcdir=$ac_top_build_prefix$srcdir
1324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1328 cd "$ac_dir" || { ac_status=$?; continue; }
1329 # Check for guested configure.
1330 if test -f "$ac_srcdir/configure.gnu"; then
1332 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1333 elif test -f "$ac_srcdir/configure"; then
1335 $SHELL "$ac_srcdir/configure" --help=recursive
1337 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1339 cd "$ac_pwd" || { ac_status=$?; break; }
1343 test -n "$ac_init_help" && exit $ac_status
1344 if $ac_init_version; then
1347 generated by GNU Autoconf 2.67
1349 Copyright (C) 2010 Free Software Foundation, Inc.
1350 This configure script is free software; the Free Software Foundation
1351 gives unlimited permission to copy, distribute and modify it.
1356 ## ------------------------ ##
1357 ## Autoconf initialization. ##
1358 ## ------------------------ ##
1360 # ac_fn_c_try_compile LINENO
1361 # --------------------------
1362 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1363 ac_fn_c_try_compile ()
1365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1366 rm -f conftest.$ac_objext
1367 if { { ac_try="$ac_compile"
1369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1370 *) ac_try_echo=$ac_try;;
1372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1373 $as_echo "$ac_try_echo"; } >&5
1374 (eval "$ac_compile") 2>conftest.err
1376 if test -s conftest.err; then
1377 grep -v '^ *+' conftest.err >conftest.er1
1378 cat conftest.er1 >&5
1379 mv -f conftest.er1 conftest.err
1381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1382 test $ac_status = 0; } && {
1383 test -z "$ac_c_werror_flag" ||
1384 test ! -s conftest.err
1385 } && test -s conftest.$ac_objext; then :
1388 $as_echo "$as_me: failed program was:" >&5
1389 sed 's/^/| /' conftest.$ac_ext >&5
1393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1394 as_fn_set_status $ac_retval
1396 } # ac_fn_c_try_compile
1398 # ac_fn_c_try_cpp LINENO
1399 # ----------------------
1400 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1404 if { { ac_try="$ac_cpp conftest.$ac_ext"
1406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1407 *) ac_try_echo=$ac_try;;
1409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1410 $as_echo "$ac_try_echo"; } >&5
1411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1413 if test -s conftest.err; then
1414 grep -v '^ *+' conftest.err >conftest.er1
1415 cat conftest.er1 >&5
1416 mv -f conftest.er1 conftest.err
1418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1419 test $ac_status = 0; } > conftest.i && {
1420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1421 test ! -s conftest.err
1425 $as_echo "$as_me: failed program was:" >&5
1426 sed 's/^/| /' conftest.$ac_ext >&5
1430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1431 as_fn_set_status $ac_retval
1435 # ac_fn_c_try_link LINENO
1436 # -----------------------
1437 # Try to link conftest.$ac_ext, and return whether this succeeded.
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext conftest$ac_exeext
1442 if { { ac_try="$ac_link"
1444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 *) ac_try_echo=$ac_try;;
1447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448 $as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_link") 2>conftest.err
1451 if test -s conftest.err; then
1452 grep -v '^ *+' conftest.err >conftest.er1
1453 cat conftest.er1 >&5
1454 mv -f conftest.er1 conftest.err
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_c_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest$ac_exeext && {
1461 test "$cross_compiling" = yes ||
1462 $as_test_x conftest$ac_exeext
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1471 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1472 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1473 # interfere with the next link command; also delete a directory that is
1474 # left behind by Apple's compiler. We do this before executing the actions.
1475 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477 as_fn_set_status $ac_retval
1479 } # ac_fn_c_try_link
1481 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1482 # -------------------------------------------
1483 # Tests whether TYPE exists after having included INCLUDES, setting cache
1484 # variable VAR accordingly.
1485 ac_fn_c_check_type ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1489 $as_echo_n "checking for $2... " >&6; }
1490 if eval "test \"\${$3+set}\"" = set; then :
1491 $as_echo_n "(cached) " >&6
1494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1495 /* end confdefs.h. */
1506 if ac_fn_c_try_compile "$LINENO"; then :
1507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1508 /* end confdefs.h. */
1519 if ac_fn_c_try_compile "$LINENO"; then :
1524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1530 $as_echo "$ac_res" >&6; }
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 } # ac_fn_c_check_type
1535 # ac_fn_c_try_run LINENO
1536 # ----------------------
1537 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1538 # that executables *can* be run.
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 if { { ac_try="$ac_link"
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_link") 2>&5
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1553 { { case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_try") 2>&5
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; }; }; then :
1565 $as_echo "$as_me: program exited with status $ac_status" >&5
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1569 ac_retval=$ac_status
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 as_fn_set_status $ac_retval
1577 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists and can be compiled using the include files in
1580 # INCLUDES, setting the cache variable VAR accordingly.
1581 ac_fn_c_check_header_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if eval "test \"\${$3+set}\"" = set; then :
1587 $as_echo_n "(cached) " >&6
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1594 if ac_fn_c_try_compile "$LINENO"; then :
1599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 } # ac_fn_c_check_header_compile
1608 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1611 # the include files in INCLUDES and setting the cache variable VAR
1613 ac_fn_c_check_header_mongrel ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if eval "test \"\${$3+set}\"" = set; then :
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval "test \"\${$3+set}\"" = set; then :
1620 $as_echo_n "(cached) " >&6
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1626 # Is the header compilable?
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1628 $as_echo_n "checking $2 usability... " >&6; }
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 ac_header_compiler=yes
1637 ac_header_compiler=no
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1641 $as_echo "$ac_header_compiler" >&6; }
1643 # Is the header present?
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1645 $as_echo_n "checking $2 presence... " >&6; }
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1650 if ac_fn_c_try_cpp "$LINENO"; then :
1651 ac_header_preproc=yes
1653 ac_header_preproc=no
1655 rm -f conftest.err conftest.i conftest.$ac_ext
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1657 $as_echo "$ac_header_preproc" >&6; }
1659 # So? What about this header?
1660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1663 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1669 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1671 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1673 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1675 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval "test \"\${$3+set}\"" = set; then :
1683 $as_echo_n "(cached) " >&6
1685 eval "$3=\$ac_header_compiler"
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 } # ac_fn_c_check_header_mongrel
1695 # ac_fn_c_check_func LINENO FUNC VAR
1696 # ----------------------------------
1697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1698 ac_fn_c_check_func ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval "test \"\${$3+set}\"" = set; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1710 #define $2 innocuous_$2
1712 /* System header to define __stub macros and hopefully few prototypes,
1713 which can conflict with char $2 (); below.
1714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1715 <limits.h> exists even on freestanding compilers. */
1718 # include <limits.h>
1720 # include <assert.h>
1725 /* Override any GCC internal prototype to avoid an error.
1726 Use char because int might match the return type of a GCC
1727 builtin and then its argument prototype would still apply. */
1732 /* The GNU C library defines this for functions which it implements
1733 to always fail with ENOSYS. Some functions are actually named
1734 something starting with __ and the normal name is an alias. */
1735 #if defined __stub_$2 || defined __stub___$2
1747 if ac_fn_c_try_link "$LINENO"; then :
1752 rm -f core conftest.err conftest.$ac_objext \
1753 conftest$ac_exeext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_func
1762 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1763 # ----------------------------------------------------
1764 # Tries to find if the field MEMBER exists in type AGGR, after including
1765 # INCLUDES, setting cache variable VAR accordingly.
1766 ac_fn_c_check_member ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1770 $as_echo_n "checking for $2.$3... " >&6; }
1771 if eval "test \"\${$4+set}\"" = set; then :
1772 $as_echo_n "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1787 if ac_fn_c_try_compile "$LINENO"; then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1797 if (sizeof ac_aggr.$3)
1803 if ac_fn_c_try_compile "$LINENO"; then :
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_check_member
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1822 It was created by $as_me, which was
1823 generated by GNU Autoconf 2.67. Invocation command line was
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_must_keep_next=false
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912 -* ) ac_must_keep_next=true ;;
1915 as_fn_append ac_configure_args " '$ac_arg'"
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1933 $as_echo "## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##"
1937 # The following way of writing the cache mishandles newlines in values,
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 $as_echo "## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##"
1973 for ac_var in $ac_subst_vars
1975 eval ac_val=\$$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1983 if test -n "$ac_subst_files"; then
1984 $as_echo "## ------------------- ##
1985 ## File substitutions. ##
1986 ## ------------------- ##"
1988 for ac_var in $ac_subst_files
1990 eval ac_val=\$$ac_var
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 $as_echo "$ac_var='\''$ac_val'\''"
1999 if test -s confdefs.h; then
2000 $as_echo "## ----------- ##
2007 test "$ac_signal" != 0 &&
2008 $as_echo "$as_me: caught signal $ac_signal"
2009 $as_echo "$as_me: exit $exit_status"
2011 rm -f core *.core core.conftest.* &&
2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015 for ac_signal in 1 2 13 15; do
2016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2023 $as_echo "/* confdefs.h */" > confdefs.h
2025 # Predefined preprocessor variables.
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2056 if test -n "$CONFIG_SITE"; then
2057 # We do not want a PATH search for config.site.
2058 case $CONFIG_SITE in #((
2059 -*) ac_site_file1=./$CONFIG_SITE;;
2060 */*) ac_site_file1=$CONFIG_SITE;;
2061 *) ac_site_file1=./$CONFIG_SITE;;
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE && continue
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2078 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5 ; }
2085 if test -r "$cache_file"; then
2086 # Some versions of bash will fail to source /dev/null (special files
2087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 as_fn_append ac_header_list " stdarg.h"
2103 as_fn_append ac_header_list " varargs.h"
2104 # Check that the precious variables saved in the cache have kept the same
2106 ac_cache_corrupted=false
2107 for ac_var in $ac_precious_vars; do
2108 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2109 eval ac_new_set=\$ac_env_${ac_var}_set
2110 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2111 eval ac_new_val=\$ac_env_${ac_var}_value
2112 case $ac_old_set,$ac_new_set in
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2115 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2116 ac_cache_corrupted=: ;;
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2119 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2120 ac_cache_corrupted=: ;;
2123 if test "x$ac_old_val" != "x$ac_new_val"; then
2124 # differences in whitespace do not lead to failure.
2125 ac_old_val_w=`echo x $ac_old_val`
2126 ac_new_val_w=`echo x $ac_new_val`
2127 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2129 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2130 ac_cache_corrupted=:
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2133 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2134 eval $ac_var=\$ac_old_val
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2137 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2139 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2145 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2154 if $ac_cache_corrupted; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2158 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2159 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161 ## -------------------- ##
2162 ## Main body of script. ##
2163 ## -------------------- ##
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring ccache" >&5
2175 $as_echo "$as_me: Configuring ccache" >&6;}
2177 ac_config_headers="$ac_config_headers config.h"
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}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 test "${ac_cv_prog_CC+set}" = set; then :
2195 $as_echo_n "(cached) " >&6
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2220 $as_echo "$CC" >&6; }
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2223 $as_echo "no" >&6; }
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2235 $as_echo_n "(cached) " >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2260 $as_echo "$ac_ct_CC" >&6; }
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2263 $as_echo "no" >&6; }
2266 if test "x$ac_ct_CC" = x; then
2269 case $cross_compiling:$ac_tool_warned in
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2273 ac_tool_warned=yes ;;
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}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 test "${ac_cv_prog_CC+set}" = set; 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.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_CC="${ac_tool_prefix}cc"
2301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 if test -n "$CC"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2316 $as_echo "no" >&6; }
2322 if test -z "$CC"; then
2323 # Extract the first word of "cc", so it can be a program name with args.
2324 set dummy cc; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then :
2328 $as_echo_n "(cached) " >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2342 ac_prog_rejected=yes
2346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 if test $ac_prog_rejected = yes; then
2354 # We found a bogon in the path, so make sure we never use it.
2355 set dummy $ac_cv_prog_CC
2357 if test $# != 0; then
2358 # We chose a different compiler from the bogus one.
2359 # However, it has the same basename, so the bogon will be chosen
2360 # first if we set CC to just the basename; use the full file name.
2362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2368 if test -n "$CC"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2370 $as_echo "$CC" >&6; }
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373 $as_echo "no" >&6; }
2378 if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 for ac_prog in cl.exe
2382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if test "${ac_cv_prog_CC+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2389 if test -n "$CC"; then
2390 ac_cv_prog_CC="$CC" # Let the user override the test.
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 if test -n "$CC"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2412 $as_echo "$CC" >&6; }
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2419 test -n "$CC" && break
2422 if test -z "$CC"; then
2424 for ac_prog in cl.exe
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="$ac_prog"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2456 $as_echo "$ac_ct_CC" >&6; }
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2463 test -n "$ac_ct_CC" && break
2466 if test "x$ac_ct_CC" = x; then
2469 case $cross_compiling:$ac_tool_warned in
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 as_fn_error $? "no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details" "$LINENO" 5 ; }
2487 # Provide some information about the compiler.
2488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2491 for ac_option in --version -v -V -qversion; do
2492 { { ac_try="$ac_compiler $ac_option >&5"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2501 if test -s conftest.err; then
2503 ... rest of stderr output deleted ...
2504 10q' conftest.err >conftest.er1
2505 cat conftest.er1 >&5
2507 rm -f conftest.er1 conftest.err
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; }
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2523 ac_clean_files_save=$ac_clean_files
2524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2525 # Try to create an executable without -o first, disregard a.out.
2526 # It will help us diagnose broken compilers, and finding out an intuition
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2529 $as_echo_n "checking whether the C compiler works... " >&6; }
2530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2532 # The possible output files:
2533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2536 for ac_file in $ac_files
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2540 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2545 if { { ac_try="$ac_link_default"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2551 $as_echo "$ac_try_echo"; } >&5
2552 (eval "$ac_link_default") 2>&5
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; }; then :
2556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2558 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2559 # so that the user can short-circuit this test for compilers unknown to
2561 for ac_file in $ac_files ''
2563 test -f "$ac_file" || continue
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2568 # We found the default executable, but exeext='' is most
2572 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2576 # We set ac_cv_exeext here because the later test for it is not
2577 # safe: cross compilers may not add the suffix if given an `-o'
2578 # argument, so we may need to know it at that point already.
2579 # Even if this section looks crufty: it has the advantage of
2586 test "$ac_cv_exeext" = no && ac_cv_exeext=
2591 if test -z "$ac_file"; then :
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 $as_echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 as_fn_error 77 "C compiler cannot create executables
2600 See \`config.log' for more details" "$LINENO" 5 ; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2606 $as_echo_n "checking for C compiler default output file name... " >&6; }
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2608 $as_echo "$ac_file" >&6; }
2609 ac_exeext=$ac_cv_exeext
2611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2612 ac_clean_files=$ac_clean_files_save
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2614 $as_echo_n "checking for suffix of executables... " >&6; }
2615 if { { ac_try="$ac_link"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_link") 2>&5
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; }; then :
2626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2628 # work properly (i.e., refer to `conftest.exe'), while it won't with
2630 for ac_file in conftest.exe conftest conftest.*; do
2631 test -f "$ac_file" || continue
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2643 See \`config.log' for more details" "$LINENO" 5 ; }
2645 rm -f conftest conftest$ac_cv_exeext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2647 $as_echo "$ac_cv_exeext" >&6; }
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2658 FILE *f = fopen ("conftest.out", "w");
2659 return ferror (f) || fclose (f) != 0;
2665 ac_clean_files="$ac_clean_files conftest.out"
2666 # Check that the compiler produces executables we can run. If not, either
2667 # the compiler is broken, or we cross compile.
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2669 $as_echo_n "checking whether we are cross compiling... " >&6; }
2670 if test "$cross_compiling" != yes; then
2671 { { ac_try="$ac_link"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_link") 2>&5
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; }
2682 if { ac_try='./conftest$ac_cv_exeext'
2683 { { case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689 (eval "$ac_try") 2>&5
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }; }; then
2695 if test "$cross_compiling" = maybe; then
2698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700 as_fn_error $? "cannot run C compiled programs.
2701 If you meant to cross compile, use \`--host'.
2702 See \`config.log' for more details" "$LINENO" 5 ; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2707 $as_echo "$cross_compiling" >&6; }
2709 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2710 ac_clean_files=$ac_clean_files_save
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2712 $as_echo_n "checking for suffix of object files... " >&6; }
2713 if test "${ac_cv_objext+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2727 rm -f conftest.o conftest.obj
2728 if { { ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734 $as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_compile") 2>&5
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }; then :
2739 for ac_file in conftest.o conftest.obj conftest.*; do
2740 test -f "$ac_file" || continue;
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2748 $as_echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error $? "cannot compute suffix of object files: cannot compile
2754 See \`config.log' for more details" "$LINENO" 5 ; }
2756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2759 $as_echo "$ac_cv_objext" >&6; }
2760 OBJEXT=$ac_cv_objext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2763 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2764 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2781 if ac_fn_c_try_compile "$LINENO"; then :
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2791 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2792 if test $ac_compiler_gnu = yes; then
2797 ac_test_CFLAGS=${CFLAGS+set}
2798 ac_save_CFLAGS=$CFLAGS
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2800 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2801 if test "${ac_cv_prog_cc_g+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2804 ac_save_c_werror_flag=$ac_c_werror_flag
2805 ac_c_werror_flag=yes
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2819 if ac_fn_c_try_compile "$LINENO"; then :
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2834 if ac_fn_c_try_compile "$LINENO"; then :
2837 ac_c_werror_flag=$ac_save_c_werror_flag
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2850 if ac_fn_c_try_compile "$LINENO"; then :
2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 ac_c_werror_flag=$ac_save_c_werror_flag
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2861 $as_echo "$ac_cv_prog_cc_g" >&6; }
2862 if test "$ac_test_CFLAGS" = set; then
2863 CFLAGS=$ac_save_CFLAGS
2864 elif test $ac_cv_prog_cc_g = yes; then
2865 if test "$GCC" = yes; then
2871 if test "$GCC" = yes; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2878 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2879 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2882 ac_cv_prog_cc_c89=no
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2888 #include <sys/types.h>
2889 #include <sys/stat.h>
2890 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2891 struct buf { int x; };
2892 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2893 static char *e (p, i)
2899 static char *f (char * (*g) (char **, int), char **p, ...)
2904 s = g (p, va_arg (v,int));
2909 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2910 function prototypes and stuff, but not '\xHH' hex character constants.
2911 These don't provoke an error unfortunately, instead are silently treated
2912 as 'x'. The following induces an error, until -std is added to get
2913 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2914 array size at least. It's necessary to write '\x00'==0 to get something
2915 that's true only with -std. */
2916 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2918 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2919 inside strings and character constants. */
2921 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2923 int test (int i, double x);
2924 struct s1 {int (*f) (int a);};
2925 struct s2 {int (*f) (double a);};
2926 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2932 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2937 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2938 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2940 CC="$ac_save_CC $ac_arg"
2941 if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_cv_prog_cc_c89=$ac_arg
2944 rm -f core conftest.err conftest.$ac_objext
2945 test "x$ac_cv_prog_cc_c89" != "xno" && break
2947 rm -f conftest.$ac_ext
2952 case "x$ac_cv_prog_cc_c89" in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2955 $as_echo "none needed" >&6; } ;;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2958 $as_echo "unsupported" >&6; } ;;
2960 CC="$CC $ac_cv_prog_cc_c89"
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2962 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2964 if test "x$ac_cv_prog_cc_c89" != xno; then :
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2981 # On Suns, sometimes $CPP names a directory.
2982 if test -n "$CPP" && test -d "$CPP"; then
2985 if test -z "$CPP"; then
2986 if test "${ac_cv_prog_CPP+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2989 # Double quotes because CPP needs to be expanded
2990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2993 for ac_c_preproc_warn_flag in '' yes
2995 # Use a header file that comes with gcc, so configuring glibc
2996 # with a fresh cross-compiler works.
2997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2998 # <limits.h> exists even on freestanding compilers.
2999 # On the NeXT, cc -E runs the code through the compiler's parser,
3000 # not just through cpp. "Syntax error" is here to catch this case.
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3004 # include <limits.h>
3006 # include <assert.h>
3010 if ac_fn_c_try_cpp "$LINENO"; then :
3013 # Broken: fails on valid input.
3016 rm -f conftest.err conftest.i conftest.$ac_ext
3018 # OK, works on sane cases. Now check whether nonexistent headers
3019 # can be detected and how.
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3022 #include <ac_nonexistent.h>
3024 if ac_fn_c_try_cpp "$LINENO"; then :
3025 # Broken: success on invalid input.
3028 # Passes both tests.
3032 rm -f conftest.err conftest.i conftest.$ac_ext
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.i conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then :
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3050 $as_echo "$CPP" >&6; }
3052 for ac_c_preproc_warn_flag in '' yes
3054 # Use a header file that comes with gcc, so configuring glibc
3055 # with a fresh cross-compiler works.
3056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057 # <limits.h> exists even on freestanding compilers.
3058 # On the NeXT, cc -E runs the code through the compiler's parser,
3059 # not just through cpp. "Syntax error" is here to catch this case.
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3063 # include <limits.h>
3065 # include <assert.h>
3069 if ac_fn_c_try_cpp "$LINENO"; then :
3072 # Broken: fails on valid input.
3075 rm -f conftest.err conftest.i conftest.$ac_ext
3077 # OK, works on sane cases. Now check whether nonexistent headers
3078 # can be detected and how.
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if ac_fn_c_try_cpp "$LINENO"; then :
3084 # Broken: success on invalid input.
3087 # Passes both tests.
3091 rm -f conftest.err conftest.i conftest.$ac_ext
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.i conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then :
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details" "$LINENO" 5 ; }
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3113 if test -f "$ac_dir/install-sh"; then
3115 ac_install_sh="$ac_aux_dir/install-sh -c"
3117 elif test -f "$ac_dir/install.sh"; then
3119 ac_install_sh="$ac_aux_dir/install.sh -c"
3121 elif test -f "$ac_dir/shtool"; then
3123 ac_install_sh="$ac_aux_dir/shtool install -c"
3127 if test -z "$ac_aux_dir"; then
3128 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3131 # These three variables are undocumented and unsupported,
3132 # and are intended to be withdrawn in a future Autoconf release.
3133 # They can cause serious problems if a builder's source tree is in a directory
3134 # whose full name contains unusual characters.
3135 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3136 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3137 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3140 # Find a good install program. We prefer a C program (faster),
3141 # so one script is as good as another. But avoid the broken or
3142 # incompatible versions:
3143 # SysV /etc/install, /usr/sbin/install
3144 # SunOS /usr/etc/install
3145 # IRIX /sbin/install
3147 # AmigaOS /C/install, which installs bootblocks on floppy discs
3148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3151 # OS/2's system install, which has a completely different semantic
3152 # ./install, which can be erroneously created by make from ./install.sh.
3153 # Reject install programs that cannot install multiple files.
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3155 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3156 if test -z "$INSTALL"; then
3157 if test "${ac_cv_path_install+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 # Account for people who put trailing slashes in PATH elements.
3166 case $as_dir/ in #((
3167 ./ | .// | /[cC]/* | \
3168 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3169 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3172 # OSF1 and SCO ODT 3.0 have their own names for install.
3173 # Don't use installbsd from OSF since it installs stuff as root
3175 for ac_prog in ginstall scoinst install; do
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3178 if test $ac_prog = install &&
3179 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3180 # AIX install. It has an incompatible calling convention.
3182 elif test $ac_prog = install &&
3183 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # program-specific install script used by HP pwplus--don't use.
3187 rm -rf conftest.one conftest.two conftest.dir
3188 echo one > conftest.one
3189 echo two > conftest.two
3191 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3192 test -s conftest.one && test -s conftest.two &&
3193 test -s conftest.dir/conftest.one &&
3194 test -s conftest.dir/conftest.two
3196 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3209 rm -rf conftest.one conftest.two conftest.dir
3212 if test "${ac_cv_path_install+set}" = set; then
3213 INSTALL=$ac_cv_path_install
3215 # As a last resort, use the slow shell script. Don't cache a
3216 # value for INSTALL within a source directory, because that will
3217 # break other packages using the cache if that directory is
3218 # removed, or if the value is a relative name.
3219 INSTALL=$ac_install_sh
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3223 $as_echo "$INSTALL" >&6; }
3225 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3226 # It thinks the first close brace ends the variable substitution.
3227 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3229 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3231 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$RANLIB"; then
3242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 RANLIB=$ac_cv_prog_RANLIB
3262 if test -n "$RANLIB"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3264 $as_echo "$RANLIB" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3272 if test -z "$ac_cv_prog_RANLIB"; then
3273 ac_ct_RANLIB=$RANLIB
3274 # Extract the first word of "ranlib", so it can be a program name with args.
3275 set dummy ranlib; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$ac_ct_RANLIB"; then
3282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_ac_ct_RANLIB="ranlib"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3302 if test -n "$ac_ct_RANLIB"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3304 $as_echo "$ac_ct_RANLIB" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3310 if test "x$ac_ct_RANLIB" = x; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3319 RANLIB=$ac_ct_RANLIB
3322 RANLIB="$ac_cv_prog_RANLIB"
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}ar; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_AR+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$AR"; then
3334 ac_cv_prog_AR="$AR" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_AR="${ac_tool_prefix}ar"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 if test -n "$AR"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3356 $as_echo "$AR" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3364 if test -z "$ac_cv_prog_AR"; then
3366 # Extract the first word of "ar", so it can be a program name with args.
3367 set dummy ar; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$ac_ct_AR"; then
3374 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_ac_ct_AR="ar"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3394 if test -n "$ac_ct_AR"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3396 $as_echo "$ac_ct_AR" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3402 if test "x$ac_ct_AR" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3417 if test -z "$AR"; then
3418 as_fn_error $? "cannot find ar" "$LINENO" 5
3422 # The later defininition of _XOPEN_SOURCE disables certain features
3423 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
3425 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3428 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3429 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3432 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
3435 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3436 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3439 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
3442 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3443 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
3445 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
3448 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3449 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3452 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3455 define_xopen_source=yes
3457 ac_sys_system=`uname -s`
3458 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
3459 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
3460 ac_sys_release=`uname -v`
3462 ac_sys_release=`uname -r`
3465 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3466 # disable features if it is defined, without any means to access these
3467 # features as extensions. For these systems, we skip the definition of
3468 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
3469 # some feature, make sure there is no alternative way to access this
3470 # feature. Also, when using wildcards, make sure you have verified the
3471 # need for not defining _XOPEN_SOURCE on all systems matching the
3472 # wildcard, and that the wildcard does not include future systems
3473 # (which may remove their limitations).
3474 case $ac_sys_system/$ac_sys_release in
3475 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3476 # even though select is a POSIX function. Reported by J. Ribbens.
3477 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3478 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
3479 define_xopen_source=no
3480 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3481 # also defined. This can be overridden by defining _BSD_SOURCE
3482 # As this has a different meaning on Linux, only define it on OpenBSD
3484 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3487 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3488 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3490 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3491 define_xopen_source=no;;
3492 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
3493 # of union __?sigval. Reported by Stuart Bishop.
3495 define_xopen_source=no;;
3496 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3497 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3498 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3499 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3500 define_xopen_source=no;;
3501 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3502 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3504 define_xopen_source=no;;
3505 # On FreeBSD 4, the math functions C89 does not cover are never defined
3506 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3508 define_xopen_source=no;;
3509 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3510 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3511 # identifies itself as Darwin/7.*
3512 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3513 # disables platform specific features beyond repair.
3514 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3515 # has no effect, don't bother defining them
3517 define_xopen_source=no;;
3518 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3519 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3520 # or has another value. By not (re)defining it, the defaults come in place.
3522 define_xopen_source=no;;
3524 if test `uname -r` -eq 1; then
3525 define_xopen_source=no
3528 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3529 # defining NI_NUMERICHOST.
3531 define_xopen_source=no
3536 if test $define_xopen_source = yes
3538 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
3539 # defined precisely as g++ defines it
3540 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
3542 case $ac_sys_system/$ac_sys_release in
3543 SunOS/5.8|SunOS/5.9|SunOS/5.10)
3545 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3550 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3555 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3556 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3557 # several APIs are not declared. Since this is also needed in some
3558 # cases for HP-UX, we define it globally.
3559 # except for Solaris 10, where it must not be defined,
3560 # as it implies XPG4.2
3561 case $ac_sys_system/$ac_sys_release in
3566 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3572 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3578 # If GCC, turn on warnings.
3579 if test "x$GCC" = "xyes"; then
3580 CFLAGS="$CFLAGS -Wall -W"
3587 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3588 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3590 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3591 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <sys/types.h>
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609 eval "$as_ac_Header=yes"
3611 eval "$as_ac_Header=no"
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 eval ac_res=\$$as_ac_Header
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3617 $as_echo "$ac_res" >&6; }
3618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3619 cat >>confdefs.h <<_ACEOF
3620 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3623 ac_header_dirent=$ac_hdr; break
3627 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3628 if test $ac_header_dirent = dirent.h; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3630 $as_echo_n "checking for library containing opendir... " >&6; }
3631 if test "${ac_cv_search_opendir+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_func_search_save_LIBS=$LIBS
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3638 /* Override any GCC internal prototype to avoid an error.
3639 Use char because int might match the return type of a GCC
3640 builtin and then its argument prototype would still apply. */
3653 for ac_lib in '' dir; do
3654 if test -z "$ac_lib"; then
3655 ac_res="none required"
3658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3660 if ac_fn_c_try_link "$LINENO"; then :
3661 ac_cv_search_opendir=$ac_res
3663 rm -f core conftest.err conftest.$ac_objext \
3665 if test "${ac_cv_search_opendir+set}" = set; then :
3669 if test "${ac_cv_search_opendir+set}" = set; then :
3672 ac_cv_search_opendir=no
3675 LIBS=$ac_func_search_save_LIBS
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3678 $as_echo "$ac_cv_search_opendir" >&6; }
3679 ac_res=$ac_cv_search_opendir
3680 if test "$ac_res" != no; then :
3681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3687 $as_echo_n "checking for library containing opendir... " >&6; }
3688 if test "${ac_cv_search_opendir+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3691 ac_func_search_save_LIBS=$LIBS
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3695 /* Override any GCC internal prototype to avoid an error.
3696 Use char because int might match the return type of a GCC
3697 builtin and then its argument prototype would still apply. */
3710 for ac_lib in '' x; do
3711 if test -z "$ac_lib"; then
3712 ac_res="none required"
3715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3717 if ac_fn_c_try_link "$LINENO"; then :
3718 ac_cv_search_opendir=$ac_res
3720 rm -f core conftest.err conftest.$ac_objext \
3722 if test "${ac_cv_search_opendir+set}" = set; then :
3726 if test "${ac_cv_search_opendir+set}" = set; then :
3729 ac_cv_search_opendir=no
3732 LIBS=$ac_func_search_save_LIBS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
3735 $as_echo "$ac_cv_search_opendir" >&6; }
3736 ac_res=$ac_cv_search_opendir
3737 if test "$ac_res" != no; then :
3738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
3745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3746 if test "${ac_cv_header_time+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <sys/types.h>
3752 #include <sys/time.h>
3758 if ((struct tm *) 0)
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765 ac_cv_header_time=yes
3767 ac_cv_header_time=no
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
3772 $as_echo "$ac_cv_header_time" >&6; }
3773 if test $ac_cv_header_time = yes; then
3775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3781 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3782 if test "${ac_cv_path_GREP+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -z "$GREP"; then
3786 ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in grep ggrep; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3797 # Check for GNU ac_path_GREP and select it if it is found.
3798 # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3804 $as_echo_n 0123456789 >"conftest.in"
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 $as_echo 'GREP' >> "conftest.nl"
3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 as_fn_arith $ac_count + 1 && ac_count=$as_val
3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_GREP="$ac_path_GREP"
3817 ac_path_GREP_max=$ac_count
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825 $ac_path_GREP_found && break 3
3830 if test -z "$ac_cv_path_GREP"; then
3831 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3834 ac_cv_path_GREP=$GREP
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3839 $as_echo "$ac_cv_path_GREP" >&6; }
3840 GREP="$ac_cv_path_GREP"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3844 $as_echo_n "checking for egrep... " >&6; }
3845 if test "${ac_cv_path_EGREP+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3848 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3849 then ac_cv_path_EGREP="$GREP -E"
3851 if test -z "$EGREP"; then
3852 ac_path_EGREP_found=false
3853 # Loop through the user's path and test for each of PROGNAME-LIST
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in egrep; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3862 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3863 # Check for GNU ac_path_EGREP and select it if it is found.
3864 # Check for GNU $ac_path_EGREP
3865 case `"$ac_path_EGREP" --version 2>&1` in
3867 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3870 $as_echo_n 0123456789 >"conftest.in"
3873 cat "conftest.in" "conftest.in" >"conftest.tmp"
3874 mv "conftest.tmp" "conftest.in"
3875 cp "conftest.in" "conftest.nl"
3876 $as_echo 'EGREP' >> "conftest.nl"
3877 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879 as_fn_arith $ac_count + 1 && ac_count=$as_val
3880 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3881 # Best one so far, save it but keep looking for a better one
3882 ac_cv_path_EGREP="$ac_path_EGREP"
3883 ac_path_EGREP_max=$ac_count
3885 # 10*(2^10) chars as input seems more than enough
3886 test $ac_count -gt 10 && break
3888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3891 $ac_path_EGREP_found && break 3
3896 if test -z "$ac_cv_path_EGREP"; then
3897 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3900 ac_cv_path_EGREP=$EGREP
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3906 $as_echo "$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3911 $as_echo_n "checking for ANSI C header files... " >&6; }
3912 if test "${ac_cv_header_stdc+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_header_stdc=yes
3933 ac_cv_header_stdc=no
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 if test $ac_cv_header_stdc = yes; then
3938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "memchr" >/dev/null 2>&1; then :
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3962 $EGREP "free" >/dev/null 2>&1; then :
3965 ac_cv_header_stdc=no
3971 if test $ac_cv_header_stdc = yes; then
3972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3973 if test "$cross_compiling" = yes; then :
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3980 #if ((' ' & 0x0FF) == 0x020)
3981 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3982 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984 # define ISLOWER(c) \
3985 (('a' <= (c) && (c) <= 'i') \
3986 || ('j' <= (c) && (c) <= 'r') \
3987 || ('s' <= (c) && (c) <= 'z'))
3988 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3991 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3996 for (i = 0; i < 256; i++)
3997 if (XOR (islower (i), ISLOWER (i))
3998 || toupper (i) != TOUPPER (i))
4003 if ac_fn_c_try_run "$LINENO"; then :
4006 ac_cv_header_stdc=no
4008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4009 conftest.$ac_objext conftest.beam conftest.$ac_ext
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4015 $as_echo "$ac_cv_header_stdc" >&6; }
4016 if test $ac_cv_header_stdc = yes; then
4018 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4022 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4024 inttypes.h stdint.h unistd.h
4026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4030 cat >>confdefs.h <<_ACEOF
4031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4040 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4041 if test "${ac_cv_header_stdbool_h+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4047 #include <stdbool.h>
4049 "error: bool is not defined"
4052 "error: false is not defined"
4055 "error: false is not 0"
4058 "error: true is not defined"
4061 "error: true is not 1"
4063 #ifndef __bool_true_false_are_defined
4064 "error: __bool_true_false_are_defined is not defined"
4067 struct s { _Bool s: 1; _Bool t; } s;
4069 char a[true == 1 ? 1 : -1];
4070 char b[false == 0 ? 1 : -1];
4071 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4072 char d[(bool) 0.5 == true ? 1 : -1];
4074 char f[(_Bool) 0.0 == false ? 1 : -1];
4076 char h[sizeof (_Bool)];
4078 enum { j = false, k = true, l = false * true, m = true * 256 };
4079 /* The following fails for
4080 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4082 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4083 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4084 # if defined __xlc__ || defined __GNUC__
4085 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4086 reported by James Lemley on 2005-10-05; see
4087 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4088 This test is not quite right, since xlc is allowed to
4089 reject this program, as the initializer for xlcbug is
4090 not one of the forms that C requires support for.
4091 However, doing the test right would require a runtime
4092 test, and that would make cross-compilation harder.
4093 Let us hope that IBM fixes the xlc bug, and also adds
4094 support for this kind of constant expression. In the
4095 meantime, this test will reject xlc, which is OK, since
4096 our stdbool.h substitute should suffice. We also test
4097 this with GCC, where it should work, to detect more
4098 quickly whether someone messes up the test in the
4100 char digs[] = "0123456789";
4101 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4103 /* Catch a bug in an HP-UX C compiler. See
4104 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4105 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4116 /* Refer to every declared value, to avoid compiler optimizations. */
4117 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4118 + !m + !n + !o + !p + !q + !pq);
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_cv_header_stdbool_h=yes
4127 ac_cv_header_stdbool_h=no
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4132 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4133 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4134 if test "x$ac_cv_type__Bool" = x""yes; then :
4136 cat >>confdefs.h <<_ACEOF
4137 #define HAVE__BOOL 1
4143 if test $ac_cv_header_stdbool_h = yes; then
4145 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4150 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4151 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 #include <sys/types.h>
4157 #include <sys/wait.h>
4159 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_header_sys_wait_h=yes
4178 ac_cv_header_sys_wait_h=no
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4183 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4184 if test $ac_cv_header_sys_wait_h = yes; then
4186 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4191 for ac_header in ctype.h pwd.h stdlib.h string.h strings.h sys/time.h sys/mman.h
4193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4194 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4196 cat >>confdefs.h <<_ACEOF
4197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4204 for ac_header in termios.h
4206 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
4207 if test "x$ac_cv_header_termios_h" = x""yes; then :
4208 cat >>confdefs.h <<_ACEOF
4209 #define HAVE_TERMIOS_H 1
4217 for ac_func in gethostname
4219 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
4220 if test "x$ac_cv_func_gethostname" = x""yes; then :
4221 cat >>confdefs.h <<_ACEOF
4222 #define HAVE_GETHOSTNAME 1
4228 for ac_func in getopt_long
4230 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
4231 if test "x$ac_cv_func_getopt_long" = x""yes; then :
4232 cat >>confdefs.h <<_ACEOF
4233 #define HAVE_GETOPT_LONG 1
4239 for ac_func in getpwuid
4241 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
4242 if test "x$ac_cv_func_getpwuid" = x""yes; then :
4243 cat >>confdefs.h <<_ACEOF
4244 #define HAVE_GETPWUID 1
4250 for ac_func in gettimeofday
4252 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4253 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
4254 cat >>confdefs.h <<_ACEOF
4255 #define HAVE_GETTIMEOFDAY 1
4261 for ac_func in mkstemp
4263 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
4264 if test "x$ac_cv_func_mkstemp" = x""yes; then :
4265 cat >>confdefs.h <<_ACEOF
4266 #define HAVE_MKSTEMP 1
4272 for ac_func in realpath
4274 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
4275 if test "x$ac_cv_func_realpath" = x""yes; then :
4276 cat >>confdefs.h <<_ACEOF
4277 #define HAVE_REALPATH 1
4283 for ac_func in strndup
4285 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
4286 if test "x$ac_cv_func_strndup" = x""yes; then :
4287 cat >>confdefs.h <<_ACEOF
4288 #define HAVE_STRNDUP 1
4294 for ac_func in utimes
4296 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
4297 if test "x$ac_cv_func_utimes" = x""yes; then :
4298 cat >>confdefs.h <<_ACEOF
4299 #define HAVE_UTIMES 1
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compar_fn_t in stdlib.h" >&5
4307 $as_echo_n "checking for compar_fn_t in stdlib.h... " >&6; }
4308 if test "${ccache_cv_COMPAR_FN_T+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4318 void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 ccache_cv_COMPAR_FN_T=yes
4326 ccache_cv_COMPAR_FN_T=no
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccache_cv_COMPAR_FN_T" >&5
4331 $as_echo "$ccache_cv_COMPAR_FN_T" >&6; }
4332 if test x"$ccache_cv_COMPAR_FN_T" = x"yes"; then
4334 $as_echo "#define HAVE_COMPAR_FN_T 1" >>confdefs.h
4338 # $Id: snprintf.m4,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $
4340 # Copyright (c) 2008 Holger Weiss <holger@jhweiss.de>.
4342 # This code may freely be used, modified and/or redistributed for any purpose.
4343 # It would be nice if additions and fixes to this file (including trivial code
4344 # cleanups) would be sent back in order to let me include them in the version
4345 # available at <http://www.jhweiss.de/software/snprintf.html>. However, this is
4346 # not a requirement for using or redistributing (possibly modified) versions of
4347 # this file, nor is leaving this notice intact mandatory.
4349 # HW_HEADER_STDARG_H
4350 # ------------------
4351 # Define HAVE_STDARG_H to 1 if <stdarg.h> is available.
4352 # HW_HEADER_STDARG_H
4354 # HW_HEADER_VARARGS_H
4355 # -------------------
4356 # Define HAVE_VARARGS_H to 1 if <varargs.h> is available.
4357 # HW_HEADER_VARARGS_H
4361 # Set $hw_cv_func_va_copy to "yes" or "no". Define HAVE_VA_COPY to 1 if
4362 # $hw_cv_func_va_copy is set to "yes". Note that it's "unspecified whether
4363 # va_copy and va_end are macros or identifiers declared with external linkage."
4364 # (C99: 7.15.1, 1) Therefore, the presence of va_copy(3) cannot simply "be
4365 # tested with #ifdef", as suggested by the Autoconf manual (5.5.1).
4370 # Set $hw_cv_func___va_copy to "yes" or "no". Define HAVE___VA_COPY to 1 if
4371 # $hw_cv_func___va_copy is set to "yes".
4376 # Set $hw_cv_func_vsnprintf and $hw_cv_func_vsnprintf_c99 to "yes" or "no",
4377 # respectively. Define HAVE_VSNPRINTF to 1 only if $hw_cv_func_vsnprintf_c99
4378 # is set to "yes". Otherwise, define vsnprintf to rpl_vsnprintf and make sure
4379 # the replacement function will be built.
4384 # Set $hw_cv_func_snprintf and $hw_cv_func_snprintf_c99 to "yes" or "no",
4385 # respectively. Define HAVE_SNPRINTF to 1 only if $hw_cv_func_snprintf_c99
4386 # is set to "yes". Otherwise, define snprintf to rpl_snprintf and make sure
4387 # the replacement function will be built.
4392 # Set $hw_cv_func_vasprintf to "yes" or "no". Define HAVE_VASPRINTF to 1 if
4393 # $hw_cv_func_vasprintf is set to "yes". Otherwise, define vasprintf to
4394 # rpl_vasprintf and make sure the replacement function will be built.
4399 # Set $hw_cv_func_asprintf to "yes" or "no". Define HAVE_ASPRINTF to 1 if
4400 # $hw_cv_func_asprintf is set to "yes". Otherwise, define asprintf to
4401 # rpl_asprintf and make sure the replacement function will be built.
4404 # _HW_FUNC_XPRINTF_REPLACE
4405 # ------------------------
4406 # Arrange for building snprintf.c. Must be called if one or more of the
4407 # functions provided by snprintf.c are needed.
4408 # _HW_FUNC_XPRINTF_REPLACE
4414 for ac_header in $ac_header_list
4416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420 cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4434 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
4435 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
4436 hw_cv_func_vsnprintf=yes
4438 hw_cv_func_vsnprintf=no
4441 if test "$hw_cv_func_vsnprintf" = yes; then :
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
4443 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
4444 if test "${hw_cv_func_vsnprintf_c99+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if test "$cross_compiling" = yes; then :
4448 hw_cv_func_vsnprintf_c99=no
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4456 static int testprintf(char *buf, size_t size, const char *format, ...)
4460 va_start(ap, format);
4461 result = vsnprintf(buf, size, format, ap);
4469 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
4470 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
4471 buf[0] != 'T' || buf[3] != '\0')
4477 if ac_fn_c_try_run "$LINENO"; then :
4478 hw_cv_func_vsnprintf_c99=yes
4480 hw_cv_func_vsnprintf_c99=no
4482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4483 conftest.$ac_objext conftest.beam conftest.$ac_ext
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
4488 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
4490 hw_cv_func_snprintf_c99=no
4492 if test "$hw_cv_func_vsnprintf_c99" = yes; then :
4494 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
4497 for ac_header in inttypes.h locale.h stddef.h stdint.h
4499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4500 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4501 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4502 cat >>confdefs.h <<_ACEOF
4503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4510 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
4512 if test "x$ac_cv_member_struct_lconv_decimal_point" = x""yes; then :
4514 cat >>confdefs.h <<_ACEOF
4515 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
4520 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
4522 if test "x$ac_cv_member_struct_lconv_thousands_sep" = x""yes; then :
4524 cat >>confdefs.h <<_ACEOF
4525 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4533 $as_echo_n "checking for long long int... " >&6; }
4534 if test "${ac_cv_type_long_long_int+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 /* For now, do not test the preprocessor; as of 2007 there are too many
4541 implementations with broken preprocessors. Perhaps this can
4542 be revisited in 2012. In the meantime, code should not expect
4543 #if to work with literals wider than 32 bits. */
4544 /* Test literals. */
4545 long long int ll = 9223372036854775807ll;
4546 long long int nll = -9223372036854775807LL;
4547 unsigned long long int ull = 18446744073709551615ULL;
4548 /* Test constant expressions. */
4549 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4551 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4557 /* Test availability of runtime routines for shift and division. */
4558 long long int llmax = 9223372036854775807ll;
4559 unsigned long long int ullmax = 18446744073709551615ull;
4560 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4561 | (llmax / ll) | (llmax % ll)
4562 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4563 | (ullmax / ull) | (ullmax % ull));
4569 if ac_fn_c_try_link "$LINENO"; then :
4570 if test "$cross_compiling" = yes; then :
4571 ac_cv_type_long_long_int=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4578 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4579 # define LLONG_MAX (HALF - 1 + HALF)
4584 long long int n = 1;
4588 long long int m = n << i;
4591 if (LLONG_MAX / 2 < m)
4599 if ac_fn_c_try_run "$LINENO"; then :
4600 ac_cv_type_long_long_int=yes
4602 ac_cv_type_long_long_int=no
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4605 conftest.$ac_objext conftest.beam conftest.$ac_ext
4609 ac_cv_type_long_long_int=no
4611 rm -f core conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4615 $as_echo "$ac_cv_type_long_long_int" >&6; }
4616 if test $ac_cv_type_long_long_int = yes; then
4618 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4624 $as_echo_n "checking for unsigned long long int... " >&6; }
4625 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4631 /* For now, do not test the preprocessor; as of 2007 there are too many
4632 implementations with broken preprocessors. Perhaps this can
4633 be revisited in 2012. In the meantime, code should not expect
4634 #if to work with literals wider than 32 bits. */
4635 /* Test literals. */
4636 long long int ll = 9223372036854775807ll;
4637 long long int nll = -9223372036854775807LL;
4638 unsigned long long int ull = 18446744073709551615ULL;
4639 /* Test constant expressions. */
4640 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4642 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4648 /* Test availability of runtime routines for shift and division. */
4649 long long int llmax = 9223372036854775807ll;
4650 unsigned long long int ullmax = 18446744073709551615ull;
4651 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4652 | (llmax / ll) | (llmax % ll)
4653 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4654 | (ullmax / ull) | (ullmax % ull));
4660 if ac_fn_c_try_link "$LINENO"; then :
4661 ac_cv_type_unsigned_long_long_int=yes
4663 ac_cv_type_unsigned_long_long_int=no
4665 rm -f core conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4669 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4670 if test $ac_cv_type_unsigned_long_long_int = yes; then
4672 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4676 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4677 if test "x$ac_cv_type_size_t" = x""yes; then :
4681 cat >>confdefs.h <<_ACEOF
4682 #define size_t unsigned int
4689 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
4690 if test "x$ac_cv_type_intmax_t" = x""yes; then :
4692 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
4695 test $ac_cv_type_long_long_int = yes \
4696 && ac_type='long long int' \
4697 || ac_type='long int'
4699 cat >>confdefs.h <<_ACEOF
4700 #define intmax_t $ac_type
4708 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
4709 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
4711 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4714 test $ac_cv_type_unsigned_long_long_int = yes \
4715 && ac_type='unsigned long long int' \
4716 || ac_type='unsigned long int'
4718 cat >>confdefs.h <<_ACEOF
4719 #define uintmax_t $ac_type
4726 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
4727 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
4729 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
4732 for ac_type in 'unsigned int' 'unsigned long int' \
4733 'unsigned long long int'; do
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 $ac_includes_default
4740 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
4747 if ac_fn_c_try_compile "$LINENO"; then :
4749 cat >>confdefs.h <<_ACEOF
4750 #define uintptr_t $ac_type
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 test -z "$ac_type" && break
4761 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
4762 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
4764 cat >>confdefs.h <<_ACEOF
4765 #define HAVE_PTRDIFF_T 1
4771 for ac_func in localeconv
4773 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
4774 if test "x$ac_cv_func_localeconv" = x""yes; then :
4775 cat >>confdefs.h <<_ACEOF
4776 #define HAVE_LOCALECONV 1
4783 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4785 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4786 if test "${ac_cv_c_const+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4795 /* FIXME: Include the comments suggested by Paul. */
4797 /* Ultrix mips cc rejects this. */
4798 typedef int charset[2];
4800 /* SunOS 4.1.1 cc rejects this. */
4801 char const *const *pcpcc;
4803 /* NEC SVR4.0.2 mips cc rejects this. */
4804 struct point {int x, y;};
4805 static struct point const zero = {0,0};
4806 /* AIX XL C 1.02.0.0 rejects this.
4807 It does not let you subtract one const X* pointer from another in
4808 an arm of an if-expression whose if-part is not a constant
4810 const char *g = "string";
4811 pcpcc = &g + (g ? g-g : 0);
4812 /* HPUX 7.0 cc rejects these. */
4814 ppc = (char**) pcpcc;
4815 pcpcc = (char const *const *) ppc;
4816 { /* SCO 3.2v4 cc rejects this. */
4818 char const *s = 0 ? (char *) 0 : (char const *) 0;
4823 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4825 const int *foo = &x[0];
4828 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4829 typedef const int *iptr;
4833 { /* AIX XL C 1.02.0.0 rejects this saying
4834 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4835 struct s { int j; const int *ap[3]; };
4836 struct s *b; b->j = 5;
4838 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4842 return !cs[0] && !zero.x;
4849 if ac_fn_c_try_compile "$LINENO"; then :
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4857 $as_echo "$ac_cv_c_const" >&6; }
4858 if test $ac_cv_c_const = no; then
4860 $as_echo "#define const /**/" >>confdefs.h
4867 case " $LIBOBJS " in
4868 *" snprintf.$ac_objext "* ) ;;
4869 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4873 _hw_cv_func_xprintf_replace_done=yes
4879 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
4880 if test "x$ac_cv_func_snprintf" = x""yes; then :
4881 hw_cv_func_snprintf=yes
4883 hw_cv_func_snprintf=no
4886 if test "$hw_cv_func_snprintf" = yes; then :
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
4888 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
4889 if test "${hw_cv_func_snprintf_c99+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4892 if test "$cross_compiling" = yes; then :
4893 hw_cv_func_snprintf_c99=no
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4902 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
4903 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
4904 buf[0] != 'T' || buf[3] != '\0')
4910 if ac_fn_c_try_run "$LINENO"; then :
4911 hw_cv_func_snprintf_c99=yes
4913 hw_cv_func_snprintf_c99=no
4915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4916 conftest.$ac_objext conftest.beam conftest.$ac_ext
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
4921 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
4923 hw_cv_func_snprintf_c99=no
4925 if test "$hw_cv_func_snprintf_c99" = yes; then :
4927 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
4931 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4933 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4934 if test "${ac_cv_c_const+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4943 /* FIXME: Include the comments suggested by Paul. */
4945 /* Ultrix mips cc rejects this. */
4946 typedef int charset[2];
4948 /* SunOS 4.1.1 cc rejects this. */
4949 char const *const *pcpcc;
4951 /* NEC SVR4.0.2 mips cc rejects this. */
4952 struct point {int x, y;};
4953 static struct point const zero = {0,0};
4954 /* AIX XL C 1.02.0.0 rejects this.
4955 It does not let you subtract one const X* pointer from another in
4956 an arm of an if-expression whose if-part is not a constant
4958 const char *g = "string";
4959 pcpcc = &g + (g ? g-g : 0);
4960 /* HPUX 7.0 cc rejects these. */
4962 ppc = (char**) pcpcc;
4963 pcpcc = (char const *const *) ppc;
4964 { /* SCO 3.2v4 cc rejects this. */
4966 char const *s = 0 ? (char *) 0 : (char const *) 0;
4971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4973 const int *foo = &x[0];
4976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4977 typedef const int *iptr;
4981 { /* AIX XL C 1.02.0.0 rejects this saying
4982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4983 struct s { int j; const int *ap[3]; };
4984 struct s *b; b->j = 5;
4986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4990 return !cs[0] && !zero.x;
4997 if ac_fn_c_try_compile "$LINENO"; then :
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5005 $as_echo "$ac_cv_c_const" >&6; }
5006 if test $ac_cv_c_const = no; then
5008 $as_echo "#define const /**/" >>confdefs.h
5015 case " $LIBOBJS " in
5016 *" snprintf.$ac_objext "* ) ;;
5017 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5021 _hw_cv_func_xprintf_replace_done=yes
5032 for ac_func in vasprintf
5034 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
5035 if test "x$ac_cv_func_vasprintf" = x""yes; then :
5036 cat >>confdefs.h <<_ACEOF
5037 #define HAVE_VASPRINTF 1
5039 hw_cv_func_vasprintf=yes
5041 hw_cv_func_vasprintf=no
5045 if test "$hw_cv_func_vasprintf" = no; then :
5046 for ac_header in stdlib.h
5048 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5049 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5050 cat >>confdefs.h <<_ACEOF
5051 #define HAVE_STDLIB_H 1
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
5060 $as_echo_n "checking for va_copy... " >&6; }
5061 if test "${hw_cv_func_va_copy+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5064 if test "$cross_compiling" = yes; then :
5065 hw_cv_func_va_copy=no
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5071 #elif HAVE_VARARGS_H
5072 #include <varargs.h>
5077 va_list ap, aq; va_copy(aq, ap);
5082 if ac_fn_c_try_run "$LINENO"; then :
5083 hw_cv_func_va_copy=yes
5085 hw_cv_func_va_copy=no
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5088 conftest.$ac_objext conftest.beam conftest.$ac_ext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
5093 $as_echo "$hw_cv_func_va_copy" >&6; }
5094 if test "$hw_cv_func_va_copy" = yes; then :
5096 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5100 if test "$hw_cv_func_va_copy" = no; then :
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
5103 $as_echo_n "checking for __va_copy... " >&6; }
5104 if test "${hw_cv_func___va_copy+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 if test "$cross_compiling" = yes; then :
5108 hw_cv_func___va_copy=no
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5114 #elif HAVE_VARARGS_H
5115 #include <varargs.h>
5120 va_list ap, aq; __va_copy(aq, ap);
5125 if ac_fn_c_try_run "$LINENO"; then :
5126 hw_cv_func___va_copy=yes
5128 hw_cv_func___va_copy=no
5130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5131 conftest.$ac_objext conftest.beam conftest.$ac_ext
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
5136 $as_echo "$hw_cv_func___va_copy" >&6; }
5137 if test "$hw_cv_func___va_copy" = yes; then :
5139 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5145 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5147 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5148 if test "${ac_cv_c_const+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5157 /* FIXME: Include the comments suggested by Paul. */
5159 /* Ultrix mips cc rejects this. */
5160 typedef int charset[2];
5162 /* SunOS 4.1.1 cc rejects this. */
5163 char const *const *pcpcc;
5165 /* NEC SVR4.0.2 mips cc rejects this. */
5166 struct point {int x, y;};
5167 static struct point const zero = {0,0};
5168 /* AIX XL C 1.02.0.0 rejects this.
5169 It does not let you subtract one const X* pointer from another in
5170 an arm of an if-expression whose if-part is not a constant
5172 const char *g = "string";
5173 pcpcc = &g + (g ? g-g : 0);
5174 /* HPUX 7.0 cc rejects these. */
5176 ppc = (char**) pcpcc;
5177 pcpcc = (char const *const *) ppc;
5178 { /* SCO 3.2v4 cc rejects this. */
5180 char const *s = 0 ? (char *) 0 : (char const *) 0;
5185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5187 const int *foo = &x[0];
5190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5191 typedef const int *iptr;
5195 { /* AIX XL C 1.02.0.0 rejects this saying
5196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5197 struct s { int j; const int *ap[3]; };
5198 struct s *b; b->j = 5;
5200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5204 return !cs[0] && !zero.x;
5211 if ac_fn_c_try_compile "$LINENO"; then :
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5219 $as_echo "$ac_cv_c_const" >&6; }
5220 if test $ac_cv_c_const = no; then
5222 $as_echo "#define const /**/" >>confdefs.h
5229 case " $LIBOBJS " in
5230 *" snprintf.$ac_objext "* ) ;;
5231 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5235 _hw_cv_func_xprintf_replace_done=yes
5241 for ac_func in asprintf
5243 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
5244 if test "x$ac_cv_func_asprintf" = x""yes; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define HAVE_ASPRINTF 1
5248 hw_cv_func_asprintf=yes
5250 hw_cv_func_asprintf=no
5254 if test "$hw_cv_func_asprintf" = no; then :
5256 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5258 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5259 if test "${ac_cv_c_const+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5268 /* FIXME: Include the comments suggested by Paul. */
5270 /* Ultrix mips cc rejects this. */
5271 typedef int charset[2];
5273 /* SunOS 4.1.1 cc rejects this. */
5274 char const *const *pcpcc;
5276 /* NEC SVR4.0.2 mips cc rejects this. */
5277 struct point {int x, y;};
5278 static struct point const zero = {0,0};
5279 /* AIX XL C 1.02.0.0 rejects this.
5280 It does not let you subtract one const X* pointer from another in
5281 an arm of an if-expression whose if-part is not a constant
5283 const char *g = "string";
5284 pcpcc = &g + (g ? g-g : 0);
5285 /* HPUX 7.0 cc rejects these. */
5287 ppc = (char**) pcpcc;
5288 pcpcc = (char const *const *) ppc;
5289 { /* SCO 3.2v4 cc rejects this. */
5291 char const *s = 0 ? (char *) 0 : (char const *) 0;
5296 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5298 const int *foo = &x[0];
5301 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5302 typedef const int *iptr;
5306 { /* AIX XL C 1.02.0.0 rejects this saying
5307 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5308 struct s { int j; const int *ap[3]; };
5309 struct s *b; b->j = 5;
5311 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5315 return !cs[0] && !zero.x;
5322 if ac_fn_c_try_compile "$LINENO"; then :
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5330 $as_echo "$ac_cv_c_const" >&6; }
5331 if test $ac_cv_c_const = no; then
5333 $as_echo "#define const /**/" >>confdefs.h
5340 case " $LIBOBJS " in
5341 *" snprintf.$ac_objext "* ) ;;
5342 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5346 _hw_cv_func_xprintf_replace_done=yes
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
5353 $as_echo_n "checking for library containing cos... " >&6; }
5354 if test "${ac_cv_search_cos+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5357 ac_func_search_save_LIBS=$LIBS
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5361 /* Override any GCC internal prototype to avoid an error.
5362 Use char because int might match the return type of a GCC
5363 builtin and then its argument prototype would still apply. */
5376 for ac_lib in '' m; do
5377 if test -z "$ac_lib"; then
5378 ac_res="none required"
5381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5383 if ac_fn_c_try_link "$LINENO"; then :
5384 ac_cv_search_cos=$ac_res
5386 rm -f core conftest.err conftest.$ac_objext \
5388 if test "${ac_cv_search_cos+set}" = set; then :
5392 if test "${ac_cv_search_cos+set}" = set; then :
5398 LIBS=$ac_func_search_save_LIBS
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
5401 $as_echo "$ac_cv_search_cos" >&6; }
5402 ac_res=$ac_cv_search_cos
5403 if test "$ac_res" != no; then :
5404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.3" >&5
5410 $as_echo_n "checking for zlib >= 1.2.3... " >&6; }
5411 if test "${ccache_cv_zlib_1_2_3+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5421 #if (ZLIB_VERNUM >= 0x1230)
5423 #error "ZLIB_VERNUM < 0x1230"
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 ccache_cv_zlib_1_2_3=yes
5433 ccache_cv_zlib_1_2_3=no
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccache_cv_zlib_1_2_3" >&5
5438 $as_echo "$ccache_cv_zlib_1_2_3" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
5440 $as_echo_n "checking for gzdopen in -lz... " >&6; }
5441 if test "${ac_cv_lib_z_gzdopen+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5444 ac_check_lib_save_LIBS=$LIBS
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5449 /* Override any GCC internal prototype to avoid an error.
5450 Use char because int might match the return type of a GCC
5451 builtin and then its argument prototype would still apply. */
5464 if ac_fn_c_try_link "$LINENO"; then :
5465 ac_cv_lib_z_gzdopen=yes
5467 ac_cv_lib_z_gzdopen=no
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5471 LIBS=$ac_check_lib_save_LIBS
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
5474 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
5475 if test "x$ac_cv_lib_z_gzdopen" = x""yes; then :
5479 if test $ccache_cv_zlib_1_2_3 = yes && test $ac_cv_lib_z_gzdopen = yes; then
5482 use_bundled_zlib=yes
5483 extra_deps="zlib/libz.a"
5484 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/zlib"
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5490 $as_echo_n "checking for inline... " >&6; }
5491 if test "${ac_cv_c_inline+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5495 for ac_kw in inline __inline__ __inline; do
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5500 static $ac_kw foo_t static_foo () {return 0; }
5501 $ac_kw foo_t foo () {return 0; }
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_c_inline=$ac_kw
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 test "$ac_cv_c_inline" != no && break
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5514 $as_echo "$ac_cv_c_inline" >&6; }
5516 case $ac_cv_c_inline in
5519 case $ac_cv_c_inline in
5521 *) ac_val=$ac_cv_c_inline;;
5523 cat >>confdefs.h <<_ACEOF
5525 #define inline $ac_val
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern inline" >&5
5533 $as_echo_n "checking for extern inline... " >&6; }
5534 if test "${ac_cv_c_extern_inline+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5538 ac_cv_c_extern_inline=no
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5542 extern $ac_cv_c_inline double foo(double x);
5543 extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
5544 double foo (double x) { return x + 1.0; };
5554 if ac_fn_c_try_compile "$LINENO"; then :
5555 ac_cv_c_extern_inline="yes"
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_inline" >&5
5560 $as_echo "$ac_cv_c_extern_inline" >&6; }
5561 if test "$ac_cv_c_extern_inline" != no ; then
5563 $as_echo "#define HAVE_EXTERN_INLINE 1" >>confdefs.h
5567 if test -f $srcdir/dev.mk.in && test "$RUN_FROM_BUILD_FARM" != yes; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling developer mode" >&5
5569 $as_echo "$as_me: Enabling developer mode" >&6;}
5570 ac_config_files="$ac_config_files dev.mk"
5572 include_dev_mk='include dev.mk'
5573 version=`(git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'`
5574 echo "const char CCACHE_VERSION[] = \"$version\";" >version.c
5575 elif test ! -f $srcdir/version.c; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine ccache version" >&5
5577 $as_echo "$as_me: WARNING: unable to determine ccache version" >&2;}
5578 echo "const char CCACHE_VERSION[] = \"unknown\";" >version.c
5582 for x in $srcdir/test/test_*.c; do
5583 test_suites="$test_suites $x"
5586 ac_config_files="$ac_config_files Makefile"
5588 cat >confcache <<\_ACEOF
5589 # This file is a shell script that caches the results of configure
5590 # tests run on this system so they can be shared between configure
5591 # scripts and configure runs, see configure's option --config-cache.
5592 # It is not useful on other systems. If it contains results you don't
5593 # want to keep, you may remove or edit it.
5595 # config.status only pays attention to the cache file if you give it
5596 # the --recheck option to rerun configure.
5598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5604 # The following way of writing the cache mishandles newlines in values,
5605 # but we know of no workaround that is simple, portable, and efficient.
5606 # So, we kill variables containing newlines.
5607 # Ultrix sh set writes to stderr and can't be redirected directly,
5608 # and sets the high bit in the cache file unless we assign to the vars.
5610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5611 eval ac_val=\$$ac_var
5615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5619 _ | IFS | as_nl) ;; #(
5620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5621 *) { eval $ac_var=; unset $ac_var;} ;;
5627 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5628 *${as_nl}ac_space=\ *)
5629 # `set' does not quote correctly, so add quotes: double-quote
5630 # substitution turns \\\\ into \\, and sed turns \\ into \.
5633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5636 # `set' quotes correctly as required by POSIX, so do not add quotes.
5637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5646 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5648 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5650 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5651 if test -w "$cache_file"; then
5652 test "x$cache_file" != "x/dev/null" &&
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5654 $as_echo "$as_me: updating cache $cache_file" >&6;}
5655 cat confcache >$cache_file
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5664 # Let make expand exec_prefix.
5665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5667 DEFS=-DHAVE_CONFIG_H
5672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5673 # 1. Remove the extension, and $U if already installed.
5674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5677 # will be set to the directory where LIBOBJS objects are built.
5678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5683 LTLIBOBJS=$ac_ltlibobjs
5687 : ${CONFIG_STATUS=./config.status}
5689 ac_clean_files_save=$ac_clean_files
5690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5696 # Generated by $as_me.
5697 # Run this file to recreate the current configuration.
5698 # Compiler output produced by configure, useful for debugging
5699 # configure, is in config.log if it exists.
5705 SHELL=\${CONFIG_SHELL-$SHELL}
5708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5709 ## -------------------- ##
5710 ## M4sh Initialization. ##
5711 ## -------------------- ##
5713 # Be more Bourne compatible
5714 DUALCASE=1; export DUALCASE # for MKS sh
5715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5719 # is contrary to our usage. Disable this feature.
5720 alias -g '${1+"$@"}'='"$@"'
5721 setopt NO_GLOB_SUBST
5723 case `(set -o) 2>/dev/null` in #(
5735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5739 # Prefer a ksh shell builtin over an external printf program on Solaris,
5740 # but without wasting forks for bash or zsh.
5741 if test -z "$BASH_VERSION$ZSH_VERSION" \
5742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5743 as_echo='print -r --'
5744 as_echo_n='print -rn --'
5745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5746 as_echo='printf %s\n'
5747 as_echo_n='printf %s'
5749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5751 as_echo_n='/usr/ucb/echo -n'
5753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5754 as_echo_n_body='eval
5758 expr "X$arg" : "X\\(.*\\)$as_nl";
5759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5763 export as_echo_n_body
5764 as_echo_n='sh -c $as_echo_n_body as_echo'
5767 as_echo='sh -c $as_echo_body as_echo'
5770 # The user is always right.
5771 if test "${PATH_SEPARATOR+set}" != set; then
5773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5781 # We need space, tab and new line, in precisely that order. Quoting is
5782 # there to prevent editors from complaining about space-tab.
5783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5784 # splitting by setting IFS to empty value.)
5787 # Find who we are. Look in the path if we contain no directory separator.
5789 *[\\/]* ) as_myself=$0 ;;
5790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5801 # We did not find ourselves, most probably we were run as `sh COMMAND'
5802 # in which case we are not to be found in the path.
5803 if test "x$as_myself" = x; then
5806 if test ! -f "$as_myself"; then
5807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5811 # Unset variables that we do not need and which cause bugs (e.g. in
5812 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5813 # suppresses any "Segmentation fault" message there. '((' could
5814 # trigger a bug in pdksh 5.2.14.
5815 for as_var in BASH_ENV ENV MAIL MAILPATH
5816 do eval test x\${$as_var+set} = xset \
5817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5833 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5834 # ----------------------------------------
5835 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5836 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5837 # script with STATUS, using 1 if that was 0.
5840 as_status=$1; test $as_status -eq 0 && as_status=1
5842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5845 $as_echo "$as_me: error: $2" >&2
5846 as_fn_exit $as_status
5850 # as_fn_set_status STATUS
5851 # -----------------------
5852 # Set $? to STATUS, without forking.
5856 } # as_fn_set_status
5860 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5870 # Portably unset VAR.
5873 { eval $1=; unset $1;}
5875 as_unset=as_fn_unset
5876 # as_fn_append VAR VALUE
5877 # ----------------------
5878 # Append the text in VALUE to the end of the definition contained in VAR. Take
5879 # advantage of any shell optimizations that allow amortized linear growth over
5880 # repeated appends, instead of the typical quadratic growth present in naive
5882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5883 eval 'as_fn_append ()
5894 # as_fn_arith ARG...
5895 # ------------------
5896 # Perform arithmetic evaluation on the ARGs, and store the result in the
5897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5898 # must be portable across $(()) and expr.
5899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5900 eval 'as_fn_arith ()
5907 as_val=`expr "$@" || test $? -eq 1`
5912 if expr a : '\(a\)' >/dev/null 2>&1 &&
5913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5920 as_basename=basename
5925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5931 as_me=`$as_basename -- "$0" ||
5932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5933 X"$0" : 'X\(//\)$' \| \
5934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5936 sed '/^.*\/\([^/][^/]*\)\/*$/{
5950 # Avoid depending upon Character Ranges.
5951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5954 as_cr_digits='0123456789'
5955 as_cr_alnum=$as_cr_Letters$as_cr_digits
5957 ECHO_C= ECHO_N= ECHO_T=
5958 case `echo -n x` in #(((((
5960 case `echo 'xy\c'` in
5961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5970 rm -f conf$$ conf$$.exe conf$$.file
5971 if test -d conf$$.dir; then
5972 rm -f conf$$.dir/conf$$.file
5975 mkdir conf$$.dir 2>/dev/null
5977 if (echo >conf$$.file) 2>/dev/null; then
5978 if ln -s conf$$.file conf$$ 2>/dev/null; then
5980 # ... but there are two gotchas:
5981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5983 # In both cases, we have to default to `cp -p'.
5984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5986 elif ln conf$$.file conf$$ 2>/dev/null; then
5994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5995 rmdir conf$$.dir 2>/dev/null
6000 # Create "$as_dir" as a directory, including parents if necessary.
6005 -*) as_dir=./$as_dir;;
6007 test -d "$as_dir" || eval $as_mkdir_p || {
6011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6012 *) as_qdir=$as_dir;;
6014 as_dirs="'$as_qdir' $as_dirs"
6015 as_dir=`$as_dirname -- "$as_dir" ||
6016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6017 X"$as_dir" : 'X\(//\)[^/]' \| \
6018 X"$as_dir" : 'X\(//\)$' \| \
6019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6020 $as_echo X"$as_dir" |
6021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6038 test -d "$as_dir" && break
6040 test -z "$as_dirs" || eval "mkdir $as_dirs"
6041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6045 if mkdir -p . 2>/dev/null; then
6046 as_mkdir_p='mkdir -p "$as_dir"'
6048 test -d ./-p && rmdir ./-p
6052 if test -x / >/dev/null 2>&1; then
6055 if ls -dL / >/dev/null 2>&1; then
6062 if test -d "$1"; then
6068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6069 ???[sx]*):;;*)false;;esac;fi
6073 as_executable_p=$as_test_x
6075 # Sed expression to map a string onto a valid CPP name.
6076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6078 # Sed expression to map a string onto a valid variable name.
6079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6083 ## ----------------------------------- ##
6084 ## Main body of $CONFIG_STATUS script. ##
6085 ## ----------------------------------- ##
6087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6090 # Save the log message, to keep $0 and so on meaningful, and to
6091 # report actual input values of CONFIG_FILES etc. instead of their
6092 # values after options handling.
6094 This file was extended by $as_me, which was
6095 generated by GNU Autoconf 2.67. Invocation command line was
6097 CONFIG_FILES = $CONFIG_FILES
6098 CONFIG_HEADERS = $CONFIG_HEADERS
6099 CONFIG_LINKS = $CONFIG_LINKS
6100 CONFIG_COMMANDS = $CONFIG_COMMANDS
6103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6108 case $ac_config_files in *"
6109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6112 case $ac_config_headers in *"
6113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6118 # Files that config.status was made for.
6119 config_files="$ac_config_files"
6120 config_headers="$ac_config_headers"
6124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6126 \`$as_me' instantiates files and other configuration actions
6127 from templates according to the current configuration. Unless the files
6128 and actions are specified as TAGs, all are instantiated by default.
6130 Usage: $0 [OPTION]... [TAG]...
6132 -h, --help print this help, then exit
6133 -V, --version print version number and configuration settings, then exit
6134 --config print configuration, then exit
6135 -q, --quiet, --silent
6136 do not print progress messages
6137 -d, --debug don't remove temporary files
6138 --recheck update $as_me by reconfiguring in the same conditions
6139 --file=FILE[:TEMPLATE]
6140 instantiate the configuration file FILE
6141 --header=FILE[:TEMPLATE]
6142 instantiate the configuration header FILE
6144 Configuration files:
6147 Configuration headers:
6150 Report bugs to the package provider."
6153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6154 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6157 configured by $0, generated by GNU Autoconf 2.67,
6158 with options \\"\$ac_cs_config\\"
6160 Copyright (C) 2010 Free Software Foundation, Inc.
6161 This config.status script is free software; the Free Software Foundation
6162 gives unlimited permission to copy, distribute and modify it."
6167 test -n "\$AWK" || AWK=awk
6170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6171 # The default lists apply if the user does not specify any file.
6177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6194 # Handling of the options.
6195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6198 $as_echo "$ac_cs_version"; exit ;;
6199 --config | --confi | --conf | --con | --co | --c )
6200 $as_echo "$ac_cs_config"; exit ;;
6201 --debug | --debu | --deb | --de | --d | -d )
6203 --file | --fil | --fi | --f )
6206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6207 '') as_fn_error $? "missing file argument" ;;
6209 as_fn_append CONFIG_FILES " '$ac_optarg'"
6210 ac_need_defaults=false;;
6211 --header | --heade | --head | --hea )
6214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6217 ac_need_defaults=false;;
6219 # Conflict between --help and --header
6220 as_fn_error $? "ambiguous option: \`$1'
6221 Try \`$0 --help' for more information.";;
6222 --help | --hel | -h )
6223 $as_echo "$ac_cs_usage"; exit ;;
6224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6229 -*) as_fn_error $? "unrecognized option: \`$1'
6230 Try \`$0 --help' for more information." ;;
6232 *) as_fn_append ac_config_targets " $1"
6233 ac_need_defaults=false ;;
6239 ac_configure_extra_args=
6241 if $ac_cs_silent; then
6243 ac_configure_extra_args="$ac_configure_extra_args --silent"
6247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6248 if \$ac_cs_recheck; then
6249 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6252 CONFIG_SHELL='$SHELL'
6258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6263 ## Running $as_me. ##
6269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6274 # Handling of arguments.
6275 for ac_config_target in $ac_config_targets
6277 case $ac_config_target in
6278 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6279 "dev.mk") CONFIG_FILES="$CONFIG_FILES dev.mk" ;;
6280 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6282 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6287 # If the user did not use the arguments to specify the items to instantiate,
6288 # then the envvar interface is used. Set only those that are not.
6289 # We use the long form for the default assignment because of an extremely
6290 # bizarre bug on SunOS 4.1.3.
6291 if $ac_need_defaults; then
6292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6296 # Have a temporary directory for convenience. Make it in the build tree
6297 # simply because there is no reason against having it here, and in addition,
6298 # creating and moving files from /tmp can sometimes cause problems.
6299 # Hook for its removal unless debugging.
6300 # Note that there is a small window in which the directory will not be cleaned:
6301 # after its creation but before its name has been assigned to `$tmp'.
6305 trap 'exit_status=$?
6306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6308 trap 'as_fn_exit 1' 1 2 13 15
6310 # Create a (secure) tmp directory for tmp files.
6313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6314 test -n "$tmp" && test -d "$tmp"
6317 tmp=./conf$$-$RANDOM
6318 (umask 077 && mkdir "$tmp")
6319 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6321 # Set up the scripts for CONFIG_FILES section.
6322 # No need to generate them if there are no CONFIG_FILES.
6323 # This happens for instance with `./config.status config.h'.
6324 if test -n "$CONFIG_FILES"; then
6327 ac_cr=`echo X | tr X '\015'`
6328 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6329 # But we know of no other shell where ac_cr would be empty at this
6330 # point, so we can use a bashism as a fallback.
6331 if test "x$ac_cr" = x; then
6332 eval ac_cr=\$\'\\r\'
6334 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6335 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6341 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6346 echo "cat >conf$$subs.awk <<_ACEOF" &&
6347 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6351 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6353 for ac_last_try in false false false false false :; do
6354 . ./conf$$subs.sh ||
6355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6357 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6358 if test $ac_delim_n = $ac_delim_num; then
6360 elif $ac_last_try; then
6361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6369 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6373 s/^/S["/; s/!.*/"]=/
6383 s/\(.\{148\}\)..*/\1/
6385 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6397 s/\(.\{148\}\)..*/\1/
6399 s/["\\]/\\&/g; s/^/"/; s/$/"/
6403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6408 ' <conf$$subs.awk | sed '
6413 ' >>$CONFIG_STATUS || ac_write_fail=1
6414 rm -f conf$$subs.awk
6415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6417 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6418 for (key in S) S_is_set[key] = 1
6424 nfields = split(line, field, "@")
6426 len = length(field[1])
6427 for (i = 2; i < nfields; i++) {
6429 keylen = length(key)
6430 if (S_is_set[key]) {
6432 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6433 len += length(value) + length(field[++i])
6444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6445 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6446 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6449 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6450 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6453 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6454 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6455 # trailing colons and then remove the whole line if VPATH becomes empty
6456 # (actually we leave an empty line to preserve line numbers).
6457 if test "x$srcdir" = x.; then
6458 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6477 fi # test -n "$CONFIG_FILES"
6479 # Set up the scripts for CONFIG_HEADERS section.
6480 # No need to generate them if there are no CONFIG_HEADERS.
6481 # This happens for instance with `./config.status Makefile'.
6482 if test -n "$CONFIG_HEADERS"; then
6483 cat >"$tmp/defines.awk" <<\_ACAWK ||
6487 # Transform confdefs.h into an awk script `defines.awk', embedded as
6488 # here-document in config.status, that substitutes the proper values into
6489 # config.h.in to produce config.h.
6491 # Create a delimiter string that does not exist in confdefs.h, to ease
6492 # handling of long lines.
6494 for ac_last_try in false false :; do
6495 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6496 if test -z "$ac_t"; then
6498 elif $ac_last_try; then
6499 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6501 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6505 # For the awk script, D is an array of macro values keyed by name,
6506 # likewise P contains macro parameters if any. Preserve backslash
6507 # newline sequences.
6509 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6511 s/.\{148\}/&'"$ac_delim"'/g
6514 s/^[ ]*#[ ]*define[ ][ ]*/ /
6521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6527 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6528 D["\1"]=" \3\\\\\\n"\\/p
6530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6535 s/.\{148\}/&'"$ac_delim"'/g
6540 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6543 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6545 ' <confdefs.h | sed '
6546 s/'"$ac_delim"'/"\\\
6547 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6550 for (key in D) D_is_set[key] = 1
6553 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6555 split(line, arg, " ")
6556 if (arg[1] == "#") {
6560 defundef = substr(arg[1], 2)
6563 split(mac1, mac2, "(") #)
6565 prefix = substr(line, 1, index(line, defundef) - 1)
6566 if (D_is_set[macro]) {
6567 # Preserve the white space surrounding the "#".
6568 print prefix "define", macro P[macro] D[macro]
6571 # Replace #undef with comments. This is necessary, for example,
6572 # in the case of _POSIX_SOURCE, which is predefined and required
6573 # on some systems where configure will not decide to define it.
6574 if (defundef == "undef") {
6575 print "/*", prefix defundef, macro, "*/"
6583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6584 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6585 fi # test -n "$CONFIG_HEADERS"
6588 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6593 :[FHLC]) ac_mode=$ac_tag; continue;;
6595 case $ac_mode$ac_tag in
6597 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6598 :[FH]-) ac_tag=-:-;;
6599 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6616 -) ac_f="$tmp/stdin";;
6617 *) # Look for the file first in the build tree, then in the source tree
6618 # (if the path is not absolute). The absolute path cannot be DOS-style,
6619 # because $ac_f cannot contain `:'.
6623 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6625 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6627 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6628 as_fn_append ac_file_inputs " '$ac_f'"
6631 # Let's still pretend it is `configure' which instantiates (i.e., don't
6632 # use $as_me), people would be surprised to read:
6633 # /* config.h. Generated by config.status. */
6634 configure_input='Generated from '`
6635 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6637 if test x"$ac_file" != x-; then
6638 configure_input="$ac_file. $configure_input"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6640 $as_echo "$as_me: creating $ac_file" >&6;}
6642 # Neutralize special characters interpreted by sed in replacement strings.
6643 case $configure_input in #(
6644 *\&* | *\|* | *\\* )
6645 ac_sed_conf_input=`$as_echo "$configure_input" |
6646 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6647 *) ac_sed_conf_input=$configure_input;;
6651 *:-:* | *:-) cat >"$tmp/stdin" \
6652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6657 ac_dir=`$as_dirname -- "$ac_file" ||
6658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6659 X"$ac_file" : 'X\(//\)[^/]' \| \
6660 X"$ac_file" : 'X\(//\)$' \| \
6661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6662 $as_echo X"$ac_file" |
6663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6680 as_dir="$ac_dir"; as_fn_mkdir_p
6684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6687 # A ".." for each directory in $ac_dir_suffix.
6688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6689 case $ac_top_builddir_sub in
6690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6694 ac_abs_top_builddir=$ac_pwd
6695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6696 # for backward compatibility:
6697 ac_top_builddir=$ac_top_build_prefix
6700 .) # We are building in place.
6702 ac_top_srcdir=$ac_top_builddir_sub
6703 ac_abs_top_srcdir=$ac_pwd ;;
6704 [\\/]* | ?:[\\/]* ) # Absolute name.
6705 ac_srcdir=$srcdir$ac_dir_suffix;
6706 ac_top_srcdir=$srcdir
6707 ac_abs_top_srcdir=$srcdir ;;
6709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6710 ac_top_srcdir=$ac_top_build_prefix$srcdir
6711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6724 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6729 # If the template does not know about datarootdir, expand it.
6730 # FIXME: This hack should be removed a few years after 2.60.
6731 ac_datarootdir_hack=; ac_datarootdir_seen=
6742 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6743 *datarootdir*) ac_datarootdir_seen=yes;;
6744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6746 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6749 ac_datarootdir_hack='
6750 s&@datadir@&$datadir&g
6751 s&@docdir@&$docdir&g
6752 s&@infodir@&$infodir&g
6753 s&@localedir@&$localedir&g
6754 s&@mandir@&$mandir&g
6755 s&\\\${datarootdir}&$datarootdir&g' ;;
6759 # Neutralize VPATH when `$srcdir' = `.'.
6760 # Shell code in configure.ac might set extrasub.
6761 # FIXME: do we really want to maintain this feature?
6762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6763 ac_sed_extra="$ac_vpsub
6766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6769 s|@configure_input@|$ac_sed_conf_input|;t t
6770 s&@top_builddir@&$ac_top_builddir_sub&;t t
6771 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6772 s&@srcdir@&$ac_srcdir&;t t
6773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6774 s&@top_srcdir@&$ac_top_srcdir&;t t
6775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6776 s&@builddir@&$ac_builddir&;t t
6777 s&@abs_builddir@&$ac_abs_builddir&;t t
6778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6779 s&@INSTALL@&$ac_INSTALL&;t t
6780 $ac_datarootdir_hack
6782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6786 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6789 which seems to be undefined. Please make sure it is defined" >&5
6790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6791 which seems to be undefined. Please make sure it is defined" >&2;}
6795 -) cat "$tmp/out" && rm -f "$tmp/out";;
6796 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6804 if test x"$ac_file" != x-; then
6806 $as_echo "/* $configure_input */" \
6807 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6808 } >"$tmp/config.h" \
6809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6810 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6812 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6815 mv "$tmp/config.h" "$ac_file" \
6816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6819 $as_echo "/* $configure_input */" \
6820 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6821 || as_fn_error $? "could not create -" "$LINENO" 5
6833 ac_clean_files=$ac_clean_files_save
6835 test $ac_write_fail = 0 ||
6836 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6839 # configure is writing to config.log, and then calls config.status.
6840 # config.status does its own redirection, appending to config.log.
6841 # Unfortunately, on DOS this fails, as config.log is still kept open
6842 # by configure, so config.status won't be able to write to it; its
6843 # output is simply discarded. So we exec the FD to /dev/null,
6844 # effectively closing config.log, so it can be properly (re)opened and
6845 # appended to by config.status. When coming back to configure, we
6846 # need to make the FD available again.
6847 if test "$no_create" != yes; then
6849 ac_config_status_args=
6850 test "$silent" = yes &&
6851 ac_config_status_args="$ac_config_status_args --quiet"
6853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6856 # would make configure fail if this is the last instruction.
6857 $ac_cs_success || as_fn_exit 1
6859 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6861 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6865 cat <<EOF >config.h.tmp
6866 #ifndef CCACHE_CONFIG_H
6867 #define CCACHE_CONFIG_H
6869 cat config.h >>config.h.tmp
6870 echo '#endif' >>config.h.tmp
6871 mv config.h.tmp config.h
6875 if test x$use_bundled_zlib = xyes; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using bundled zlib" >&5
6877 $as_echo "$as_me: WARNING: using bundled zlib" >&2;}
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: now build ccache by running make" >&5
6881 $as_echo "$as_me: now build ccache by running make" >&6;}