2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
641 no_implicit_fallthrough_warning
683 program_transform_name
696 enable_option_checking
701 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 ac_unrecognized_opts=
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
726 program_transform_name=s,x,x,
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir='${exec_prefix}/bin'
741 sbindir='${exec_prefix}/sbin'
742 libexecdir='${exec_prefix}/libexec'
743 datarootdir='${prefix}/share'
744 datadir='${datarootdir}'
745 sysconfdir='${prefix}/etc'
746 sharedstatedir='${prefix}/com'
747 localstatedir='${prefix}/var'
748 runstatedir='${localstatedir}/run'
749 includedir='${prefix}/include'
750 oldincludedir='/usr/include'
751 docdir='${datarootdir}/doc/${PACKAGE}'
752 infodir='${datarootdir}/info'
757 libdir='${exec_prefix}/lib'
758 localedir='${datarootdir}/locale'
759 mandir='${datarootdir}/man'
765 # If the previous option needs an argument, assign it.
766 if test -n "$ac_prev"; then
767 eval $ac_prev=\$ac_option
773 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778 # Accept the important Cygnus configure options, so we can diagnose typos.
780 case $ac_dashdash$ac_option in
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
802 cache_file=config.cache ;;
804 -datadir | --datadir | --datadi | --datad)
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
816 -disable-* | --disable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error $? "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
830 eval enable_$ac_useropt=no ;;
832 -docdir | --docdir | --docdi | --doc | --do)
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 -enable-* | --enable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
856 eval enable_$ac_useropt=\$ac_optarg ;;
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
871 -help | --help | --hel | --he | -h)
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887 htmldir=$ac_optarg ;;
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
901 -libdir | --libdir | --libdi | --libd)
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
913 -localedir | --localedir | --localedi | --localed | --locale)
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 # Obsolete; use --without-fp.
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
992 -psdir | --psdir | --psdi | --psd | --ps)
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
1001 -runstatedir | --runstatedir | --runstatedi | --runstated \
1002 | --runstate | --runstat | --runsta | --runst | --runs \
1003 | --run | --ru | --r)
1004 ac_prev=runstatedir ;;
1005 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1006 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1007 | --run=* | --ru=* | --r=*)
1008 runstatedir=$ac_optarg ;;
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 sbindir=$ac_optarg ;;
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 sharedstatedir=$ac_optarg ;;
1027 -site | --site | --sit)
1029 -site=* | --site=* | --sit=*)
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval with_$ac_useropt=\$ac_optarg ;;
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval with_$ac_useropt=no ;;
1088 # Obsolete; use --with-x.
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir runstatedir
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1226 ac_srcdir_defaulted=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures this package to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324 if test -n "$ac_init_help"; then
1329 --disable-option-checking ignore unrecognized --enable/--with options
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-more-warnings enable more compiler warnings
1333 --disable-man disable installing man pages
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --with-bundled-zlib use bundled zlib instead of the system's default
1341 Some influential environment variables:
1342 CC C compiler command
1343 CFLAGS C compiler flags
1344 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1345 nonstandard directory <lib dir>
1346 LIBS libraries to pass to the linker, e.g. -l<library>
1347 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1348 you have headers in a nonstandard directory <include dir>
1351 Use these variables to override the choices made by `configure' or to help
1352 it to find libraries and programs with nonstandard names/locations.
1354 Report bugs to the package provider.
1359 if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
1361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362 test -d "$ac_dir" ||
1363 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1371 # A ".." for each directory in $ac_dir_suffix.
1372 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1373 case $ac_top_builddir_sub in
1374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 ac_abs_top_builddir=$ac_pwd
1379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1380 # for backward compatibility:
1381 ac_top_builddir=$ac_top_build_prefix
1384 .) # We are building in place.
1386 ac_top_srcdir=$ac_top_builddir_sub
1387 ac_abs_top_srcdir=$ac_pwd ;;
1388 [\\/]* | ?:[\\/]* ) # Absolute name.
1389 ac_srcdir=$srcdir$ac_dir_suffix;
1390 ac_top_srcdir=$srcdir
1391 ac_abs_top_srcdir=$srcdir ;;
1393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1394 ac_top_srcdir=$ac_top_build_prefix$srcdir
1395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399 cd "$ac_dir" || { ac_status=$?; continue; }
1400 # Check for guested configure.
1401 if test -f "$ac_srcdir/configure.gnu"; then
1403 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1404 elif test -f "$ac_srcdir/configure"; then
1406 $SHELL "$ac_srcdir/configure" --help=recursive
1408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410 cd "$ac_pwd" || { ac_status=$?; break; }
1414 test -n "$ac_init_help" && exit $ac_status
1415 if $ac_init_version; then
1418 generated by GNU Autoconf 2.69
1420 Copyright (C) 2012 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1427 ## ------------------------ ##
1428 ## Autoconf initialization. ##
1429 ## ------------------------ ##
1431 # ac_fn_c_try_compile LINENO
1432 # --------------------------
1433 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1434 ac_fn_c_try_compile ()
1436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1437 rm -f conftest.$ac_objext
1438 if { { ac_try="$ac_compile"
1440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1441 *) ac_try_echo=$ac_try;;
1443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1444 $as_echo "$ac_try_echo"; } >&5
1445 (eval "$ac_compile") 2>conftest.err
1447 if test -s conftest.err; then
1448 grep -v '^ *+' conftest.err >conftest.er1
1449 cat conftest.er1 >&5
1450 mv -f conftest.er1 conftest.err
1452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1453 test $ac_status = 0; } && {
1454 test -z "$ac_c_werror_flag" ||
1455 test ! -s conftest.err
1456 } && test -s conftest.$ac_objext; then :
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.$ac_ext >&5
1464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1465 as_fn_set_status $ac_retval
1467 } # ac_fn_c_try_compile
1469 # ac_fn_c_try_cpp LINENO
1470 # ----------------------
1471 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 if { { ac_try="$ac_cpp conftest.$ac_ext"
1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478 *) ac_try_echo=$ac_try;;
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1484 if test -s conftest.err; then
1485 grep -v '^ *+' conftest.err >conftest.er1
1486 cat conftest.er1 >&5
1487 mv -f conftest.er1 conftest.err
1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490 test $ac_status = 0; } > conftest.i && {
1491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1492 test ! -s conftest.err
1496 $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502 as_fn_set_status $ac_retval
1506 # ac_fn_c_try_link LINENO
1507 # -----------------------
1508 # Try to link conftest.$ac_ext, and return whether this succeeded.
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext conftest$ac_exeext
1513 if { { ac_try="$ac_link"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_link") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest$ac_exeext && {
1532 test "$cross_compiling" = yes ||
1533 test -x conftest$ac_exeext
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1544 # interfere with the next link command; also delete a directory that is
1545 # left behind by Apple's compiler. We do this before executing the actions.
1546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_link
1552 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1553 # -------------------------------------------
1554 # Tests whether TYPE exists after having included INCLUDES, setting cache
1555 # variable VAR accordingly.
1556 ac_fn_c_check_type ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 $as_echo_n "checking for $2... " >&6; }
1561 if eval \${$3+:} false; then :
1562 $as_echo_n "(cached) " >&6
1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566 /* end confdefs.h. */
1577 if ac_fn_c_try_compile "$LINENO"; then :
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1590 if ac_fn_c_try_compile "$LINENO"; then :
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 } # ac_fn_c_check_type
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=$ac_status
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1682 # the include files in INCLUDES and setting the cache variable VAR
1684 ac_fn_c_check_header_mongrel ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if eval \${$3+:} false; then :
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1689 $as_echo_n "checking for $2... " >&6; }
1690 if eval \${$3+:} false; then :
1691 $as_echo_n "(cached) " >&6
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1697 # Is the header compilable?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1699 $as_echo_n "checking $2 usability... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 ac_header_compiler=yes
1708 ac_header_compiler=no
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1712 $as_echo "$ac_header_compiler" >&6; }
1714 # Is the header present?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1716 $as_echo_n "checking $2 presence... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1721 if ac_fn_c_try_cpp "$LINENO"; then :
1722 ac_header_preproc=yes
1724 ac_header_preproc=no
1726 rm -f conftest.err conftest.i conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1728 $as_echo "$ac_header_preproc" >&6; }
1730 # So? What about this header?
1731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1734 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1740 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1742 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1744 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1746 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1748 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1756 eval "$3=\$ac_header_compiler"
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 } # ac_fn_c_check_header_mongrel
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1789 # include <limits.h>
1791 # include <assert.h>
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1818 if ac_fn_c_try_link "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_func
1833 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1834 # ----------------------------------------------------
1835 # Tries to find if the field MEMBER exists in type AGGR, after including
1836 # INCLUDES, setting cache variable VAR accordingly.
1837 ac_fn_c_check_member ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1841 $as_echo_n "checking for $2.$3... " >&6; }
1842 if eval \${$4+:} false; then :
1843 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1868 if (sizeof ac_aggr.$3)
1874 if ac_fn_c_try_compile "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_member
1889 cat >config.log <<_ACEOF
1890 This file contains any messages produced by compilers while
1891 running configure, to aid debugging if configure makes a mistake.
1893 It was created by $as_me, which was
1894 generated by GNU Autoconf 2.69. Invocation command line was
1906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1907 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1908 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1909 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1910 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1918 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 $as_echo "PATH: $as_dir"
1946 # Keep a trace of the command line.
1947 # Strip out --no-create and --no-recursion so they do not pile up.
1948 # Strip out --silent because we don't want to record it for future runs.
1949 # Also quote any args containing shell meta-characters.
1950 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_must_keep_next=false
1960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1962 | -silent | --silent | --silen | --sile | --sil)
1965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970 as_fn_append ac_configure_args1 " '$ac_arg'"
1971 if test $ac_must_keep_next = true; then
1972 ac_must_keep_next=false # Got value, back to normal.
1975 *=* | --config-cache | -C | -disable-* | --disable-* \
1976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1978 | -with-* | --with-* | -without-* | --without-* | --x)
1979 case "$ac_configure_args0 " in
1980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 -* ) ac_must_keep_next=true ;;
1986 as_fn_append ac_configure_args " '$ac_arg'"
1991 { ac_configure_args0=; unset ac_configure_args0;}
1992 { ac_configure_args1=; unset ac_configure_args1;}
1994 # When interrupted or exit'd, cleanup temporary files, and complete
1995 # config.log. We remove comments because anyway the quotes in there
1996 # would cause problems or look ugly.
1997 # WARNING: Use '\'' to represent an apostrophe within the trap.
1998 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1999 trap 'exit_status=$?
2000 # Save into config.log some information that might help in debugging.
2004 $as_echo "## ---------------- ##
2005 ## Cache variables. ##
2006 ## ---------------- ##"
2008 # The following way of writing the cache mishandles newlines in values,
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 $as_echo "## ----------------- ##
2041 ## Output variables. ##
2042 ## ----------------- ##"
2044 for ac_var in $ac_subst_vars
2046 eval ac_val=\$$ac_var
2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 $as_echo "$ac_var='\''$ac_val'\''"
2054 if test -n "$ac_subst_files"; then
2055 $as_echo "## ------------------- ##
2056 ## File substitutions. ##
2057 ## ------------------- ##"
2059 for ac_var in $ac_subst_files
2061 eval ac_val=\$$ac_var
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 $as_echo "$ac_var='\''$ac_val'\''"
2070 if test -s confdefs.h; then
2071 $as_echo "## ----------- ##
2078 test "$ac_signal" != 0 &&
2079 $as_echo "$as_me: caught signal $ac_signal"
2080 $as_echo "$as_me: exit $exit_status"
2082 rm -f core *.core core.conftest.* &&
2083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 for ac_signal in 1 2 13 15; do
2087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2092 rm -f -r conftest* confdefs.h
2094 $as_echo "/* confdefs.h */" > confdefs.h
2096 # Predefined preprocessor variables.
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_URL "$PACKAGE_URL"
2123 # Let the site file select an alternate cache file if it wants to.
2124 # Prefer an explicitly selected file to automatically selected ones.
2127 if test -n "$CONFIG_SITE"; then
2128 # We do not want a PATH search for config.site.
2129 case $CONFIG_SITE in #((
2130 -*) ac_site_file1=./$CONFIG_SITE;;
2131 */*) ac_site_file1=$CONFIG_SITE;;
2132 *) ac_site_file1=./$CONFIG_SITE;;
2134 elif test "x$prefix" != xNONE; then
2135 ac_site_file1=$prefix/share/config.site
2136 ac_site_file2=$prefix/etc/config.site
2138 ac_site_file1=$ac_default_prefix/share/config.site
2139 ac_site_file2=$ac_default_prefix/etc/config.site
2141 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143 test "x$ac_site_file" = xNONE && continue
2144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2146 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2147 sed 's/^/| /' "$ac_site_file" >&5
2149 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 as_fn_error $? "failed to load site script $ac_site_file
2152 See \`config.log' for more details" "$LINENO" 5; }
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special files
2158 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 $as_echo "$as_me: loading cache $cache_file" >&6;}
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 as_fn_append ac_header_list " stdarg.h"
2174 as_fn_append ac_header_list " varargs.h"
2175 # Check that the precious variables saved in the cache have kept the same
2177 ac_cache_corrupted=false
2178 for ac_var in $ac_precious_vars; do
2179 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2180 eval ac_new_set=\$ac_env_${ac_var}_set
2181 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2182 eval ac_new_val=\$ac_env_${ac_var}_value
2183 case $ac_old_set,$ac_new_set in
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2194 if test "x$ac_old_val" != "x$ac_new_val"; then
2195 # differences in whitespace do not lead to failure.
2196 ac_old_val_w=`echo x $ac_old_val`
2197 ac_new_val_w=`echo x $ac_new_val`
2198 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2200 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2201 ac_cache_corrupted=:
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2204 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2205 eval $ac_var=\$ac_old_val
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2208 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2210 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2213 # Pass precious variables to config.status.
2214 if test "$ac_new_set" = set; then
2216 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 *) ac_arg=$ac_var=$ac_new_val ;;
2219 case " $ac_configure_args " in
2220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2221 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2225 if $ac_cache_corrupted; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2229 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2230 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2232 ## -------------------- ##
2233 ## Main body of script. ##
2234 ## -------------------- ##
2237 ac_cpp='$CPP $CPPFLAGS'
2238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ccache" >&5
2246 $as_echo "$as_me: configuring ccache" >&6;}
2248 ac_config_headers="$ac_config_headers config.h"
2252 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253 if test -f "$ac_dir/install-sh"; then
2255 ac_install_sh="$ac_aux_dir/install-sh -c"
2257 elif test -f "$ac_dir/install.sh"; then
2259 ac_install_sh="$ac_aux_dir/install.sh -c"
2261 elif test -f "$ac_dir/shtool"; then
2263 ac_install_sh="$ac_aux_dir/shtool install -c"
2267 if test -z "$ac_aux_dir"; then
2268 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2285 $as_echo_n "checking build system type... " >&6; }
2286 if ${ac_cv_build+:} false; then :
2287 $as_echo_n "(cached) " >&6
2289 ac_build_alias=$build_alias
2290 test "x$ac_build_alias" = x &&
2291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2292 test "x$ac_build_alias" = x &&
2293 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2299 $as_echo "$ac_cv_build" >&6; }
2300 case $ac_cv_build in
2302 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2305 ac_save_IFS=$IFS; IFS='-'
2311 # Remember, the first character of IFS is used to create $*,
2312 # except with old shells:
2315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2319 $as_echo_n "checking host system type... " >&6; }
2320 if ${ac_cv_host+:} false; then :
2321 $as_echo_n "(cached) " >&6
2323 if test "x$host_alias" = x; then
2324 ac_cv_host=$ac_cv_build
2326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2327 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2332 $as_echo "$ac_cv_host" >&6; }
2335 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2338 ac_save_IFS=$IFS; IFS='-'
2344 # Remember, the first character of IFS is used to create $*,
2345 # except with old shells:
2348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2353 *mingw32* | *mingw64* | *cygwin* | *wince* | *mingwce*)
2356 $as_echo "#define _WIN32_WINNT 0x0600" >>confdefs.h
2370 # The later defininition of _XOPEN_SOURCE disables certain features
2371 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2373 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2376 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2377 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2380 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2383 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2384 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2387 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2390 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2391 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2393 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
2396 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2397 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2400 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2403 define_xopen_source=yes
2405 ac_sys_system=`uname -s`
2406 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2407 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2408 ac_sys_release=`uname -v`
2410 ac_sys_release=`uname -r`
2413 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2414 # disable features if it is defined, without any means to access these
2415 # features as extensions. For these systems, we skip the definition of
2416 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2417 # some feature, make sure there is no alternative way to access this
2418 # feature. Also, when using wildcards, make sure you have verified the
2419 # need for not defining _XOPEN_SOURCE on all systems matching the
2420 # wildcard, and that the wildcard does not include future systems
2421 # (which may remove their limitations).
2422 case $ac_sys_system/$ac_sys_release in
2423 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2424 # even though select is a POSIX function. Reported by J. Ribbens.
2425 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2426 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2427 define_xopen_source=no
2428 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2429 # also defined. This can be overridden by defining _BSD_SOURCE
2430 # As this has a different meaning on Linux, only define it on OpenBSD
2432 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
2435 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2436 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2438 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2439 define_xopen_source=no;;
2440 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2441 # of union __?sigval. Reported by Stuart Bishop.
2443 define_xopen_source=no;;
2444 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2445 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2446 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2447 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2448 define_xopen_source=no;;
2449 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2450 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2452 define_xopen_source=no;;
2453 # On FreeBSD 4, the math functions C89 does not cover are never defined
2454 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2456 define_xopen_source=no;;
2457 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2458 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2459 # identifies itself as Darwin/7.*
2460 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2461 # disables platform specific features beyond repair.
2462 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2463 # has no effect, don't bother defining them
2465 define_xopen_source=no;;
2466 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2467 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2468 # or has another value. By not (re)defining it, the defaults come in place.
2470 define_xopen_source=no;;
2472 if test `uname -r` -eq 1; then
2473 define_xopen_source=no
2476 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2477 # defining NI_NUMERICHOST.
2479 define_xopen_source=no
2484 if test $define_xopen_source = yes
2486 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2487 # defined precisely as g++ defines it
2488 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2490 case $ac_sys_system/$ac_sys_release in
2491 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2493 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
2498 $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
2503 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2504 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2505 # several APIs are not declared. Since this is also needed in some
2506 # cases for HP-UX, we define it globally.
2507 # except for Solaris 10, where it must not be defined,
2508 # as it implies XPG4.2
2509 case $ac_sys_system/$ac_sys_release in
2510 SunOS/5.10|SunOS/5.11)
2512 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
2517 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
2523 $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
2528 # _AC_LANG_COMPILER_CLANG
2529 # ---------------------
2530 # Check whether the compiler for the current language is clang.
2531 # Adapted from standard autoconf function: _AC_LANG_COMPILER_GNU
2533 # Note: clang also identifies itself as a GNU compiler (gcc 4.2.1)
2534 # for compatibility reasons, so that cannot be used to determine
2535 # _AC_LANG_COMPILER_CLANG
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_CC+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test -n "$CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2575 $as_echo "$CC" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2583 if test -z "$ac_cv_prog_CC"; then
2585 # Extract the first word of "gcc", so it can be a program name with args.
2586 set dummy gcc; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2590 $as_echo_n "(cached) " >&6
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 ac_cv_prog_ac_ct_CC="gcc"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2615 $as_echo "$ac_ct_CC" >&6; }
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2621 if test "x$ac_ct_CC" = x; then
2624 case $cross_compiling:$ac_tool_warned in
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2628 ac_tool_warned=yes ;;
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}cc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_CC+:} false; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_CC="${ac_tool_prefix}cc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2677 if test -z "$CC"; then
2678 # Extract the first word of "cc", so it can be a program name with args.
2679 set dummy cc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_CC+:} false; then :
2683 $as_echo_n "(cached) " >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2697 ac_prog_rejected=yes
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test $ac_prog_rejected = yes; then
2709 # We found a bogon in the path, so make sure we never use it.
2710 set dummy $ac_cv_prog_CC
2712 if test $# != 0; then
2713 # We chose a different compiler from the bogus one.
2714 # However, it has the same basename, so the bogon will be chosen
2715 # first if we set CC to just the basename; use the full file name.
2717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 for ac_prog in cl.exe
2737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2774 test -n "$CC" && break
2777 if test -z "$CC"; then
2779 for ac_prog in cl.exe
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$ac_ct_CC"; then
2789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2798 ac_cv_prog_ac_ct_CC="$ac_prog"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2811 $as_echo "$ac_ct_CC" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2818 test -n "$ac_ct_CC" && break
2821 if test "x$ac_ct_CC" = x; then
2824 case $cross_compiling:$ac_tool_warned in
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 as_fn_error $? "no acceptable C compiler found in \$PATH
2840 See \`config.log' for more details" "$LINENO" 5; }
2842 # Provide some information about the compiler.
2843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2846 for ac_option in --version -v -V -qversion; do
2847 { { ac_try="$ac_compiler $ac_option >&5"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2856 if test -s conftest.err; then
2858 ... rest of stderr output deleted ...
2859 10q' conftest.err >conftest.er1
2860 cat conftest.er1 >&5
2862 rm -f conftest.er1 conftest.err
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; }
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2884 $as_echo_n "checking whether the C compiler works... " >&6; }
2885 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887 # The possible output files:
2888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891 for ac_file in $ac_files
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2900 if { { ac_try="$ac_link_default"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2906 $as_echo "$ac_try_echo"; } >&5
2907 (eval "$ac_link_default") 2>&5
2909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2910 test $ac_status = 0; }; then :
2911 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2912 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2913 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2914 # so that the user can short-circuit this test for compilers unknown to
2916 for ac_file in $ac_files ''
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2923 # We found the default executable, but exeext='' is most
2927 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 # We set ac_cv_exeext here because the later test for it is not
2932 # safe: cross compilers may not add the suffix if given an `-o'
2933 # argument, so we may need to know it at that point already.
2934 # Even if this section looks crufty: it has the advantage of
2941 test "$ac_cv_exeext" = no && ac_cv_exeext=
2946 if test -z "$ac_file"; then :
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 $as_echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 as_fn_error 77 "C compiler cannot create executables
2955 See \`config.log' for more details" "$LINENO" 5; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2961 $as_echo_n "checking for C compiler default output file name... " >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2963 $as_echo "$ac_file" >&6; }
2964 ac_exeext=$ac_cv_exeext
2966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2967 ac_clean_files=$ac_clean_files_save
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2969 $as_echo_n "checking for suffix of executables... " >&6; }
2970 if { { ac_try="$ac_link"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_link") 2>&5
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2983 # work properly (i.e., refer to `conftest.exe'), while it won't with
2985 for ac_file in conftest.exe conftest conftest.*; do
2986 test -f "$ac_file" || continue
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2998 See \`config.log' for more details" "$LINENO" 5; }
3000 rm -f conftest conftest$ac_cv_exeext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3002 $as_echo "$ac_cv_exeext" >&6; }
3004 rm -f conftest.$ac_ext
3005 EXEEXT=$ac_cv_exeext
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3013 FILE *f = fopen ("conftest.out", "w");
3014 return ferror (f) || fclose (f) != 0;
3020 ac_clean_files="$ac_clean_files conftest.out"
3021 # Check that the compiler produces executables we can run. If not, either
3022 # the compiler is broken, or we cross compile.
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3024 $as_echo_n "checking whether we are cross compiling... " >&6; }
3025 if test "$cross_compiling" != yes; then
3026 { { ac_try="$ac_link"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_link") 2>&5
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }
3037 if { ac_try='./conftest$ac_cv_exeext'
3038 { { case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_try") 2>&5
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; }; then
3050 if test "$cross_compiling" = maybe; then
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error $? "cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details" "$LINENO" 5; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3062 $as_echo "$cross_compiling" >&6; }
3064 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3065 ac_clean_files=$ac_clean_files_save
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3067 $as_echo_n "checking for suffix of object files... " >&6; }
3068 if ${ac_cv_objext+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3082 rm -f conftest.o conftest.obj
3083 if { { ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compile") 2>&5
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details" "$LINENO" 5; }
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3114 $as_echo "$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3119 if ${ac_cv_c_compiler_gnu+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3136 if ac_fn_c_try_compile "$LINENO"; then :
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3147 if test $ac_compiler_gnu = yes; then
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3156 if ${ac_cv_prog_cc_g+:} false; then :
3157 $as_echo_n "(cached) " >&6
3159 ac_save_c_werror_flag=$ac_c_werror_flag
3160 ac_c_werror_flag=yes
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3174 if ac_fn_c_try_compile "$LINENO"; then :
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3189 if ac_fn_c_try_compile "$LINENO"; then :
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3205 if ac_fn_c_try_compile "$LINENO"; then :
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3226 if test "$GCC" = yes; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if ${ac_cv_prog_cc_c89+:} false; then :
3235 $as_echo_n "(cached) " >&6
3237 ac_cv_prog_cc_c89=no
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3258 s = g (p, va_arg (v,int));
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
3266 as 'x'. The following induces an error, until -std is added to get
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
3269 that's true only with -std. */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 CC="$ac_save_CC $ac_arg"
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296 ac_cv_prog_cc_c89=$ac_arg
3298 rm -f core conftest.err conftest.$ac_objext
3299 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 rm -f conftest.$ac_ext
3306 case "x$ac_cv_prog_cc_c89" in
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3309 $as_echo "none needed" >&6; } ;;
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3312 $as_echo "unsupported" >&6; } ;;
3314 CC="$CC $ac_cv_prog_cc_c89"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3318 if test "x$ac_cv_prog_cc_c89" != xno; then :
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the clang C compiler" >&5
3329 $as_echo_n "checking whether we are using the clang C compiler... " >&6; }
3330 if ${ac_cv_c_compiler_clang+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348 ac_compiler_clang=yes
3350 ac_compiler_clang=no
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_cv_c_compiler_clang=$ac_compiler_clang
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_clang" >&5
3357 $as_echo "$ac_cv_c_compiler_clang" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3359 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3360 if ${ac_cv_prog_cc_c99+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 ac_cv_prog_cc_c99=no
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3368 #include <stdbool.h>
3373 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3374 #define debug(...) fprintf (stderr, __VA_ARGS__)
3375 #define showlist(...) puts (#__VA_ARGS__)
3376 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3378 test_varargs_macros (void)
3383 debug ("X = %d\n", x);
3384 showlist (The first, second, and third items.);
3385 report (x>y, "x is %d but y is %d", x, y);
3388 // Check long long types.
3389 #define BIG64 18446744073709551615ull
3390 #define BIG32 4294967295ul
3391 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3393 your preprocessor is broken;
3397 your preprocessor is broken;
3399 static long long int bignum = -9223372036854775807LL;
3400 static unsigned long long int ubignum = BIG64;
3402 struct incomplete_array
3410 const wchar_t *name;
3414 typedef const char *ccp;
3417 test_restrict (ccp restrict text)
3419 // See if C++-style comments work.
3420 // Iterate through items via the restricted pointer.
3421 // Also check for declarations in for loops.
3422 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3427 // Check varargs and va_copy.
3429 test_varargs (const char *format, ...)
3432 va_start (args, format);
3434 va_copy (args_copy, args);
3445 str = va_arg (args_copy, const char *);
3448 number = va_arg (args_copy, int);
3451 fnumber = va_arg (args_copy, double);
3466 _Bool success = false;
3469 if (test_restrict ("String literal") == 0)
3471 char *restrict newvar = "Another string";
3474 test_varargs ("s, d' f .", "string", 65, 34.234);
3475 test_varargs_macros ();
3477 // Check flexible array members.
3478 struct incomplete_array *ia =
3479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3481 for (int i = 0; i < ia->datasize; ++i)
3482 ia->data[i] = i * 1.234;
3484 // Check named initializers.
3485 struct named_init ni = {
3487 .name = L"Test wide string",
3488 .average = 543.34343,
3493 int dynamic_array[ni.number];
3494 dynamic_array[ni.number - 1] = 543;
3496 // work around unused variable warnings
3497 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3498 || dynamic_array[ni.number - 1] != 543);
3504 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3506 CC="$ac_save_CC $ac_arg"
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_c99=$ac_arg
3510 rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c99" != "xno" && break
3513 rm -f conftest.$ac_ext
3518 case "x$ac_cv_prog_cc_c99" in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 $as_echo "none needed" >&6; } ;;
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524 $as_echo "unsupported" >&6; } ;;
3526 CC="$CC $ac_cv_prog_cc_c99"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3528 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3530 if test "x$ac_cv_prog_cc_c99" != xno; then :
3535 if test "$ac_cv_prog_cc_c99" = no; then
3536 as_fn_error $? "cannot find a C99-compatible compiler" "$LINENO" 5
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3545 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3546 # On Suns, sometimes $CPP names a directory.
3547 if test -n "$CPP" && test -d "$CPP"; then
3550 if test -z "$CPP"; then
3551 if ${ac_cv_prog_CPP+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 # Double quotes because CPP needs to be expanded
3555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3558 for ac_c_preproc_warn_flag in '' yes
3560 # Use a header file that comes with gcc, so configuring glibc
3561 # with a fresh cross-compiler works.
3562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563 # <limits.h> exists even on freestanding compilers.
3564 # On the NeXT, cc -E runs the code through the compiler's parser,
3565 # not just through cpp. "Syntax error" is here to catch this case.
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3569 # include <limits.h>
3571 # include <assert.h>
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3578 # Broken: fails on valid input.
3581 rm -f conftest.err conftest.i conftest.$ac_ext
3583 # OK, works on sane cases. Now check whether nonexistent headers
3584 # can be detected and how.
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <ac_nonexistent.h>
3589 if ac_fn_c_try_cpp "$LINENO"; then :
3590 # Broken: success on invalid input.
3593 # Passes both tests.
3597 rm -f conftest.err conftest.i conftest.$ac_ext
3600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601 rm -f conftest.i conftest.err conftest.$ac_ext
3602 if $ac_preproc_ok; then :
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3615 $as_echo "$CPP" >&6; }
3617 for ac_c_preproc_warn_flag in '' yes
3619 # Use a header file that comes with gcc, so configuring glibc
3620 # with a fresh cross-compiler works.
3621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3622 # <limits.h> exists even on freestanding compilers.
3623 # On the NeXT, cc -E runs the code through the compiler's parser,
3624 # not just through cpp. "Syntax error" is here to catch this case.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3628 # include <limits.h>
3630 # include <assert.h>
3634 if ac_fn_c_try_cpp "$LINENO"; then :
3637 # Broken: fails on valid input.
3640 rm -f conftest.err conftest.i conftest.$ac_ext
3642 # OK, works on sane cases. Now check whether nonexistent headers
3643 # can be detected and how.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #include <ac_nonexistent.h>
3648 if ac_fn_c_try_cpp "$LINENO"; then :
3649 # Broken: success on invalid input.
3652 # Passes both tests.
3656 rm -f conftest.err conftest.i conftest.$ac_ext
3659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3660 rm -f conftest.i conftest.err conftest.$ac_ext
3661 if $ac_preproc_ok; then :
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details" "$LINENO" 5; }
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 # Find a good install program. We prefer a C program (faster),
3677 # so one script is as good as another. But avoid the broken or
3678 # incompatible versions:
3679 # SysV /etc/install, /usr/sbin/install
3680 # SunOS /usr/etc/install
3681 # IRIX /sbin/install
3683 # AmigaOS /C/install, which installs bootblocks on floppy discs
3684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3687 # OS/2's system install, which has a completely different semantic
3688 # ./install, which can be erroneously created by make from ./install.sh.
3689 # Reject install programs that cannot install multiple files.
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3692 if test -z "$INSTALL"; then
3693 if ${ac_cv_path_install+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 # Account for people who put trailing slashes in PATH elements.
3702 case $as_dir/ in #((
3703 ./ | .// | /[cC]/* | \
3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3708 # OSF1 and SCO ODT 3.0 have their own names for install.
3709 # Don't use installbsd from OSF since it installs stuff as root
3711 for ac_prog in ginstall scoinst install; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3714 if test $ac_prog = install &&
3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716 # AIX install. It has an incompatible calling convention.
3718 elif test $ac_prog = install &&
3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # program-specific install script used by HP pwplus--don't use.
3723 rm -rf conftest.one conftest.two conftest.dir
3724 echo one > conftest.one
3725 echo two > conftest.two
3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3728 test -s conftest.one && test -s conftest.two &&
3729 test -s conftest.dir/conftest.one &&
3730 test -s conftest.dir/conftest.two
3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3745 rm -rf conftest.one conftest.two conftest.dir
3748 if test "${ac_cv_path_install+set}" = set; then
3749 INSTALL=$ac_cv_path_install
3751 # As a last resort, use the slow shell script. Don't cache a
3752 # value for INSTALL within a source directory, because that will
3753 # break other packages using the cache if that directory is
3754 # removed, or if the value is a relative name.
3755 INSTALL=$ac_install_sh
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3759 $as_echo "$INSTALL" >&6; }
3761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3762 # It thinks the first close brace ends the variable substitution.
3763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if ${ac_cv_prog_RANLIB+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$RANLIB"; then
3778 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 RANLIB=$ac_cv_prog_RANLIB
3798 if test -n "$RANLIB"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3800 $as_echo "$RANLIB" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3808 if test -z "$ac_cv_prog_RANLIB"; then
3809 ac_ct_RANLIB=$RANLIB
3810 # Extract the first word of "ranlib", so it can be a program name with args.
3811 set dummy ranlib; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$ac_ct_RANLIB"; then
3818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_RANLIB="ranlib"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3838 if test -n "$ac_ct_RANLIB"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3840 $as_echo "$ac_ct_RANLIB" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3846 if test "x$ac_ct_RANLIB" = x; then
3849 case $cross_compiling:$ac_tool_warned in
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3855 RANLIB=$ac_ct_RANLIB
3858 RANLIB="$ac_cv_prog_RANLIB"
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}ar; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_prog_AR+:} false; then :
3867 $as_echo_n "(cached) " >&6
3869 if test -n "$AR"; then
3870 ac_cv_prog_AR="$AR" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_AR="${ac_tool_prefix}ar"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 if test -n "$AR"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3892 $as_echo "$AR" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3900 if test -z "$ac_cv_prog_AR"; then
3902 # Extract the first word of "ar", so it can be a program name with args.
3903 set dummy ar; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -n "$ac_ct_AR"; then
3910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_AR="ar"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3930 if test -n "$ac_ct_AR"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3932 $as_echo "$ac_ct_AR" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3938 if test "x$ac_ct_AR" = x; then
3941 case $cross_compiling:$ac_tool_warned in
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned=yes ;;
3953 if test -z "$AR"; then
3954 as_fn_error $? "cannot find ar" "$LINENO" 5
3957 # Prefer bash, needed for test.sh
3958 if test -n "$ac_tool_prefix"; then
3959 # Extract the first word of "${ac_tool_prefix}bash", so it can be a program name with args.
3960 set dummy ${ac_tool_prefix}bash; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if ${ac_cv_path_BASH+:} false; then :
3964 $as_echo_n "(cached) " >&6
3968 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 BASH=$ac_cv_path_BASH
3990 if test -n "$BASH"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
3992 $as_echo "$BASH" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
4000 if test -z "$ac_cv_path_BASH"; then
4002 # Extract the first word of "bash", so it can be a program name with args.
4003 set dummy bash; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_path_ac_pt_BASH+:} false; then :
4007 $as_echo_n "(cached) " >&6
4011 ac_cv_path_ac_pt_BASH="$ac_pt_BASH" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_path_ac_pt_BASH="$as_dir/$ac_word$ac_exec_ext"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 ac_pt_BASH=$ac_cv_path_ac_pt_BASH
4033 if test -n "$ac_pt_BASH"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_BASH" >&5
4035 $as_echo "$ac_pt_BASH" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4041 if test "x$ac_pt_BASH" = x; then
4044 case $cross_compiling:$ac_tool_warned in
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4053 BASH="$ac_cv_path_BASH"
4057 # If GCC (or clang), turn on warnings.
4058 if test "$ac_compiler_gnu" = yes; then
4059 CFLAGS="$CFLAGS -Wall -W"
4064 more_warnings="-Wextra -Wpedantic"
4065 if test "$ac_compiler_clang" = yes; then
4066 more_warnings="$more_warnings -Weverything"
4067 more_warnings="$more_warnings -Wno-conversion"
4068 more_warnings="$more_warnings -Wno-disabled-macro-expansion"
4069 more_warnings="$more_warnings -Wno-format-nonliteral"
4070 more_warnings="$more_warnings -Wno-padded"
4071 more_warnings="$more_warnings -Wno-shorten-64-to-32"
4072 more_warnings="$more_warnings -Wno-sign-conversion"
4075 # Check whether --enable-more_warnings was given.
4076 if test "${enable_more_warnings+set}" = set; then :
4077 enableval=$enable_more_warnings;
4080 if test x${enable_more_warnings} = xyes; then
4081 CFLAGS="$CFLAGS $more_warnings"
4086 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4087 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4089 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4090 if eval \${$as_ac_Header+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <sys/types.h>
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 eval "$as_ac_Header=yes"
4110 eval "$as_ac_Header=no"
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 eval ac_res=\$$as_ac_Header
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4116 $as_echo "$ac_res" >&6; }
4117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4118 cat >>confdefs.h <<_ACEOF
4119 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4122 ac_header_dirent=$ac_hdr; break
4126 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4127 if test $ac_header_dirent = dirent.h; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4129 $as_echo_n "checking for library containing opendir... " >&6; }
4130 if ${ac_cv_search_opendir+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_func_search_save_LIBS=$LIBS
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4137 /* Override any GCC internal prototype to avoid an error.
4138 Use char because int might match the return type of a GCC
4139 builtin and then its argument prototype would still apply. */
4152 for ac_lib in '' dir; do
4153 if test -z "$ac_lib"; then
4154 ac_res="none required"
4157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4159 if ac_fn_c_try_link "$LINENO"; then :
4160 ac_cv_search_opendir=$ac_res
4162 rm -f core conftest.err conftest.$ac_objext \
4164 if ${ac_cv_search_opendir+:} false; then :
4168 if ${ac_cv_search_opendir+:} false; then :
4171 ac_cv_search_opendir=no
4174 LIBS=$ac_func_search_save_LIBS
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4177 $as_echo "$ac_cv_search_opendir" >&6; }
4178 ac_res=$ac_cv_search_opendir
4179 if test "$ac_res" != no; then :
4180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4186 $as_echo_n "checking for library containing opendir... " >&6; }
4187 if ${ac_cv_search_opendir+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 ac_func_search_save_LIBS=$LIBS
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4194 /* Override any GCC internal prototype to avoid an error.
4195 Use char because int might match the return type of a GCC
4196 builtin and then its argument prototype would still apply. */
4209 for ac_lib in '' x; do
4210 if test -z "$ac_lib"; then
4211 ac_res="none required"
4214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4216 if ac_fn_c_try_link "$LINENO"; then :
4217 ac_cv_search_opendir=$ac_res
4219 rm -f core conftest.err conftest.$ac_objext \
4221 if ${ac_cv_search_opendir+:} false; then :
4225 if ${ac_cv_search_opendir+:} false; then :
4228 ac_cv_search_opendir=no
4231 LIBS=$ac_func_search_save_LIBS
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4234 $as_echo "$ac_cv_search_opendir" >&6; }
4235 ac_res=$ac_cv_search_opendir
4236 if test "$ac_res" != no; then :
4237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4244 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4245 if ${ac_cv_header_time+:} false; then :
4246 $as_echo_n "(cached) " >&6
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <sys/types.h>
4251 #include <sys/time.h>
4257 if ((struct tm *) 0)
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_header_time=yes
4266 ac_cv_header_time=no
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4271 $as_echo "$ac_cv_header_time" >&6; }
4272 if test $ac_cv_header_time = yes; then
4274 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4279 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4280 if ${ac_cv_header_sys_wait_h+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <sys/types.h>
4286 #include <sys/wait.h>
4288 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4291 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4299 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_header_sys_wait_h=yes
4307 ac_cv_header_sys_wait_h=no
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4312 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4313 if test $ac_cv_header_sys_wait_h = yes; then
4315 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323 if ${ac_cv_path_GREP+:} false; then :
4324 $as_echo_n "(cached) " >&6
4326 if test -z "$GREP"; then
4327 ac_path_GREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in grep ggrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337 as_fn_executable_p "$ac_path_GREP" || continue
4338 # Check for GNU ac_path_GREP and select it if it is found.
4339 # Check for GNU $ac_path_GREP
4340 case `"$ac_path_GREP" --version 2>&1` in
4342 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4345 $as_echo_n 0123456789 >"conftest.in"
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'GREP' >> "conftest.nl"
4352 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 as_fn_arith $ac_count + 1 && ac_count=$as_val
4355 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_GREP="$ac_path_GREP"
4358 ac_path_GREP_max=$ac_count
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4366 $ac_path_GREP_found && break 3
4371 if test -z "$ac_cv_path_GREP"; then
4372 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4375 ac_cv_path_GREP=$GREP
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380 $as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385 $as_echo_n "checking for egrep... " >&6; }
4386 if ${ac_cv_path_EGREP+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390 then ac_cv_path_EGREP="$GREP -E"
4392 if test -z "$EGREP"; then
4393 ac_path_EGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in egrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_EGREP" || continue
4404 # Check for GNU ac_path_EGREP and select it if it is found.
4405 # Check for GNU $ac_path_EGREP
4406 case `"$ac_path_EGREP" --version 2>&1` in
4408 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4411 $as_echo_n 0123456789 >"conftest.in"
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'EGREP' >> "conftest.nl"
4418 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_EGREP="$ac_path_EGREP"
4424 ac_path_EGREP_max=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 $ac_path_EGREP_found && break 3
4437 if test -z "$ac_cv_path_EGREP"; then
4438 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4441 ac_cv_path_EGREP=$EGREP
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447 $as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4452 $as_echo_n "checking for ANSI C header files... " >&6; }
4453 if ${ac_cv_header_stdc+:} false; then :
4454 $as_echo_n "(cached) " >&6
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_cv_header_stdc=yes
4474 ac_cv_header_stdc=no
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 if test $ac_cv_header_stdc = yes; then
4479 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then :
4489 ac_cv_header_stdc=no
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503 $EGREP "free" >/dev/null 2>&1; then :
4506 ac_cv_header_stdc=no
4512 if test $ac_cv_header_stdc = yes; then
4513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4514 if test "$cross_compiling" = yes; then :
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4521 #if ((' ' & 0x0FF) == 0x020)
4522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 # define ISLOWER(c) \
4526 (('a' <= (c) && (c) <= 'i') \
4527 || ('j' <= (c) && (c) <= 'r') \
4528 || ('s' <= (c) && (c) <= 'z'))
4529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i))
4539 || toupper (i) != TOUPPER (i))
4544 if ac_fn_c_try_run "$LINENO"; then :
4547 ac_cv_header_stdc=no
4549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4550 conftest.$ac_objext conftest.beam conftest.$ac_ext
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4556 $as_echo "$ac_cv_header_stdc" >&6; }
4557 if test $ac_cv_header_stdc = yes; then
4559 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4563 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565 inttypes.h stdint.h unistd.h
4567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4571 cat >>confdefs.h <<_ACEOF
4572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4581 if test "x$ac_cv_type_long_long" = xyes; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define HAVE_LONG_LONG 1
4591 for ac_header in ctype.h pwd.h stdlib.h string.h strings.h sys/time.h sys/mman.h
4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4596 cat >>confdefs.h <<_ACEOF
4597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4604 for ac_header in termios.h
4606 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
4607 if test "x$ac_cv_header_termios_h" = xyes; then :
4608 cat >>confdefs.h <<_ACEOF
4609 #define HAVE_TERMIOS_H 1
4617 for ac_func in gethostname
4619 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
4620 if test "x$ac_cv_func_gethostname" = xyes; then :
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_GETHOSTNAME 1
4628 for ac_func in getopt_long
4630 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
4631 if test "x$ac_cv_func_getopt_long" = xyes; then :
4632 cat >>confdefs.h <<_ACEOF
4633 #define HAVE_GETOPT_LONG 1
4639 for ac_func in getpwuid
4641 ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid"
4642 if test "x$ac_cv_func_getpwuid" = xyes; then :
4643 cat >>confdefs.h <<_ACEOF
4644 #define HAVE_GETPWUID 1
4650 for ac_func in gettimeofday
4652 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4653 if test "x$ac_cv_func_gettimeofday" = xyes; then :
4654 cat >>confdefs.h <<_ACEOF
4655 #define HAVE_GETTIMEOFDAY 1
4661 for ac_func in mkstemp
4663 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
4664 if test "x$ac_cv_func_mkstemp" = xyes; then :
4665 cat >>confdefs.h <<_ACEOF
4666 #define HAVE_MKSTEMP 1
4672 for ac_func in realpath
4674 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
4675 if test "x$ac_cv_func_realpath" = xyes; then :
4676 cat >>confdefs.h <<_ACEOF
4677 #define HAVE_REALPATH 1
4683 for ac_func in strndup
4685 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
4686 if test "x$ac_cv_func_strndup" = xyes; then :
4687 cat >>confdefs.h <<_ACEOF
4688 #define HAVE_STRNDUP 1
4694 for ac_func in strtok_r
4696 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
4697 if test "x$ac_cv_func_strtok_r" = xyes; then :
4698 cat >>confdefs.h <<_ACEOF
4699 #define HAVE_STRTOK_R 1
4705 for ac_func in unsetenv
4707 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
4708 if test "x$ac_cv_func_unsetenv" = xyes; then :
4709 cat >>confdefs.h <<_ACEOF
4710 #define HAVE_UNSETENV 1
4716 for ac_func in utimes
4718 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
4719 if test "x$ac_cv_func_utimes" = xyes; then :
4720 cat >>confdefs.h <<_ACEOF
4721 #define HAVE_UTIMES 1
4728 if test x"$ac_cv_func_getopt_long" != x"yes"; then
4729 getopt_long_c="src/getopt_long.c"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compar_fn_t in stdlib.h" >&5
4733 $as_echo_n "checking for compar_fn_t in stdlib.h... " >&6; }
4734 if ${ccache_cv_COMPAR_FN_T+:} false; then :
4735 $as_echo_n "(cached) " >&6
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4744 void test_fn(void) { qsort(NULL, 0, 0, (__compar_fn_t)NULL); }
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ccache_cv_COMPAR_FN_T=yes
4752 ccache_cv_COMPAR_FN_T=no
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccache_cv_COMPAR_FN_T" >&5
4757 $as_echo "$ccache_cv_COMPAR_FN_T" >&6; }
4758 if test x"$ccache_cv_COMPAR_FN_T" = x"yes"; then
4760 $as_echo "#define HAVE_COMPAR_FN_T 1" >>confdefs.h
4764 # $Id: snprintf.m4,v 1.1.1.1 2008/01/06 03:24:00 holger Exp $
4766 # Copyright (c) 2008 Holger Weiss <holger@jhweiss.de>.
4768 # This code may freely be used, modified and/or redistributed for any purpose.
4769 # It would be nice if additions and fixes to this file (including trivial code
4770 # cleanups) would be sent back in order to let me include them in the version
4771 # available at <http://www.jhweiss.de/software/snprintf.html>. However, this is
4772 # not a requirement for using or redistributing (possibly modified) versions of
4773 # this file, nor is leaving this notice intact mandatory.
4775 # HW_HEADER_STDARG_H
4776 # ------------------
4777 # Define HAVE_STDARG_H to 1 if <stdarg.h> is available.
4778 # HW_HEADER_STDARG_H
4780 # HW_HEADER_VARARGS_H
4781 # -------------------
4782 # Define HAVE_VARARGS_H to 1 if <varargs.h> is available.
4783 # HW_HEADER_VARARGS_H
4787 # Set $hw_cv_func_va_copy to "yes" or "no". Define HAVE_VA_COPY to 1 if
4788 # $hw_cv_func_va_copy is set to "yes". Note that it's "unspecified whether
4789 # va_copy and va_end are macros or identifiers declared with external linkage."
4790 # (C99: 7.15.1, 1) Therefore, the presence of va_copy(3) cannot simply "be
4791 # tested with #ifdef", as suggested by the Autoconf manual (5.5.1).
4796 # Set $hw_cv_func___va_copy to "yes" or "no". Define HAVE___VA_COPY to 1 if
4797 # $hw_cv_func___va_copy is set to "yes".
4802 # Set $hw_cv_func_vsnprintf and $hw_cv_func_vsnprintf_c99 to "yes" or "no",
4803 # respectively. Define HAVE_VSNPRINTF to 1 only if $hw_cv_func_vsnprintf_c99
4804 # is set to "yes". Otherwise, define vsnprintf to rpl_vsnprintf and make sure
4805 # the replacement function will be built.
4810 # Set $hw_cv_func_snprintf and $hw_cv_func_snprintf_c99 to "yes" or "no",
4811 # respectively. Define HAVE_SNPRINTF to 1 only if $hw_cv_func_snprintf_c99
4812 # is set to "yes". Otherwise, define snprintf to rpl_snprintf and make sure
4813 # the replacement function will be built.
4818 # Set $hw_cv_func_vasprintf to "yes" or "no". Define HAVE_VASPRINTF to 1 if
4819 # $hw_cv_func_vasprintf is set to "yes". Otherwise, define vasprintf to
4820 # rpl_vasprintf and make sure the replacement function will be built.
4825 # Set $hw_cv_func_asprintf to "yes" or "no". Define HAVE_ASPRINTF to 1 if
4826 # $hw_cv_func_asprintf is set to "yes". Otherwise, define asprintf to
4827 # rpl_asprintf and make sure the replacement function will be built.
4830 # _HW_FUNC_XPRINTF_REPLACE
4831 # ------------------------
4832 # Arrange for building snprintf.c. Must be called if one or more of the
4833 # functions provided by snprintf.c are needed.
4834 # _HW_FUNC_XPRINTF_REPLACE
4840 for ac_header in $ac_header_list
4842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4846 cat >>confdefs.h <<_ACEOF
4847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4861 $as_echo_n "checking for unsigned long long int... " >&6; }
4862 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 ac_cv_type_unsigned_long_long_int=yes
4866 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4870 /* For now, do not test the preprocessor; as of 2007 there are too many
4871 implementations with broken preprocessors. Perhaps this can
4872 be revisited in 2012. In the meantime, code should not expect
4873 #if to work with literals wider than 32 bits. */
4874 /* Test literals. */
4875 long long int ll = 9223372036854775807ll;
4876 long long int nll = -9223372036854775807LL;
4877 unsigned long long int ull = 18446744073709551615ULL;
4878 /* Test constant expressions. */
4879 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4881 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4887 /* Test availability of runtime routines for shift and division. */
4888 long long int llmax = 9223372036854775807ll;
4889 unsigned long long int ullmax = 18446744073709551615ull;
4890 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4891 | (llmax / ll) | (llmax % ll)
4892 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4893 | (ullmax / ull) | (ullmax % ull));
4899 if ac_fn_c_try_link "$LINENO"; then :
4902 ac_cv_type_unsigned_long_long_int=no
4904 rm -f core conftest.err conftest.$ac_objext \
4905 conftest$ac_exeext conftest.$ac_ext
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4909 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4910 if test $ac_cv_type_unsigned_long_long_int = yes; then
4912 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4917 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
4918 if test "x$ac_cv_func_vsnprintf" = xyes; then :
4919 hw_cv_func_vsnprintf=yes
4921 hw_cv_func_vsnprintf=no
4924 if test "$hw_cv_func_vsnprintf" = yes; then :
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
4926 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
4927 if ${hw_cv_func_vsnprintf_c99+:} false; then :
4928 $as_echo_n "(cached) " >&6
4930 if test "$cross_compiling" = yes; then :
4931 hw_cv_func_vsnprintf_c99=no
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4939 static int testprintf(char *buf, size_t size, const char *format, ...)
4943 va_start(ap, format);
4944 result = vsnprintf(buf, size, format, ap);
4952 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
4953 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
4954 buf[0] != 'T' || buf[3] != '\0')
4960 if ac_fn_c_try_run "$LINENO"; then :
4961 hw_cv_func_vsnprintf_c99=yes
4963 hw_cv_func_vsnprintf_c99=no
4965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4966 conftest.$ac_objext conftest.beam conftest.$ac_ext
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
4971 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
4973 hw_cv_func_snprintf_c99=no
4975 if test "$hw_cv_func_vsnprintf_c99" = yes; then :
4977 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
4980 for ac_header in inttypes.h locale.h stddef.h stdint.h
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
4995 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
4997 cat >>confdefs.h <<_ACEOF
4998 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
5003 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
5005 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
5007 cat >>confdefs.h <<_ACEOF
5008 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5017 $as_echo_n "checking for long long int... " >&6; }
5018 if ${ac_cv_type_long_long_int+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 ac_cv_type_long_long_int=yes
5022 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5023 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5024 if test $ac_cv_type_long_long_int = yes; then
5025 if test "$cross_compiling" = yes; then :
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5033 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5034 # define LLONG_MAX (HALF - 1 + HALF)
5039 long long int n = 1;
5043 long long int m = n << i;
5046 if (LLONG_MAX / 2 < m)
5054 if ac_fn_c_try_run "$LINENO"; then :
5057 ac_cv_type_long_long_int=no
5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5060 conftest.$ac_objext conftest.beam conftest.$ac_ext
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5067 $as_echo "$ac_cv_type_long_long_int" >&6; }
5068 if test $ac_cv_type_long_long_int = yes; then
5070 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5076 $as_echo_n "checking for unsigned long long int... " >&6; }
5077 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 ac_cv_type_unsigned_long_long_int=yes
5081 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5085 /* For now, do not test the preprocessor; as of 2007 there are too many
5086 implementations with broken preprocessors. Perhaps this can
5087 be revisited in 2012. In the meantime, code should not expect
5088 #if to work with literals wider than 32 bits. */
5089 /* Test literals. */
5090 long long int ll = 9223372036854775807ll;
5091 long long int nll = -9223372036854775807LL;
5092 unsigned long long int ull = 18446744073709551615ULL;
5093 /* Test constant expressions. */
5094 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5096 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5102 /* Test availability of runtime routines for shift and division. */
5103 long long int llmax = 9223372036854775807ll;
5104 unsigned long long int ullmax = 18446744073709551615ull;
5105 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5106 | (llmax / ll) | (llmax % ll)
5107 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5108 | (ullmax / ull) | (ullmax % ull));
5114 if ac_fn_c_try_link "$LINENO"; then :
5117 ac_cv_type_unsigned_long_long_int=no
5119 rm -f core conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5124 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5125 if test $ac_cv_type_unsigned_long_long_int = yes; then
5127 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5131 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5132 if test "x$ac_cv_type_size_t" = xyes; then :
5136 cat >>confdefs.h <<_ACEOF
5137 #define size_t unsigned int
5144 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5145 if test "x$ac_cv_type_intmax_t" = xyes; then :
5147 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5150 test $ac_cv_type_long_long_int = yes \
5151 && ac_type='long long int' \
5152 || ac_type='long int'
5154 cat >>confdefs.h <<_ACEOF
5155 #define intmax_t $ac_type
5163 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5164 if test "x$ac_cv_type_uintmax_t" = xyes; then :
5166 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5169 test $ac_cv_type_unsigned_long_long_int = yes \
5170 && ac_type='unsigned long long int' \
5171 || ac_type='unsigned long int'
5173 cat >>confdefs.h <<_ACEOF
5174 #define uintmax_t $ac_type
5181 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5182 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5184 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5187 for ac_type in 'unsigned int' 'unsigned long int' \
5188 'unsigned long long int'; do
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 $ac_includes_default
5195 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5197 return test_array [0];
5203 if ac_fn_c_try_compile "$LINENO"; then :
5205 cat >>confdefs.h <<_ACEOF
5206 #define uintptr_t $ac_type
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 test -z "$ac_type" && break
5217 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5218 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5220 cat >>confdefs.h <<_ACEOF
5221 #define HAVE_PTRDIFF_T 1
5227 for ac_func in localeconv
5229 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
5230 if test "x$ac_cv_func_localeconv" = xyes; then :
5231 cat >>confdefs.h <<_ACEOF
5232 #define HAVE_LOCALECONV 1
5239 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5241 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5242 if ${ac_cv_c_const+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5253 /* Ultrix mips cc rejects this sort of thing. */
5254 typedef int charset[2];
5255 const charset cs = { 0, 0 };
5256 /* SunOS 4.1.1 cc rejects this. */
5257 char const *const *pcpcc;
5259 /* NEC SVR4.0.2 mips cc rejects this. */
5260 struct point {int x, y;};
5261 static struct point const zero = {0,0};
5262 /* AIX XL C 1.02.0.0 rejects this.
5263 It does not let you subtract one const X* pointer from another in
5264 an arm of an if-expression whose if-part is not a constant
5266 const char *g = "string";
5267 pcpcc = &g + (g ? g-g : 0);
5268 /* HPUX 7.0 cc rejects these. */
5270 ppc = (char**) pcpcc;
5271 pcpcc = (char const *const *) ppc;
5272 { /* SCO 3.2v4 cc rejects this sort of thing. */
5275 char const *s = 0 ? (char *) 0 : (char const *) 0;
5280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5282 const int *foo = &x[0];
5285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5286 typedef const int *iptr;
5290 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5292 struct s { int j; const int *ap[3]; } bx;
5293 struct s *b = &bx; b->j = 5;
5295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5299 return !cs[0] && !zero.x;
5306 if ac_fn_c_try_compile "$LINENO"; then :
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5314 $as_echo "$ac_cv_c_const" >&6; }
5315 if test $ac_cv_c_const = no; then
5317 $as_echo "#define const /**/" >>confdefs.h
5324 case " $LIBOBJS " in
5325 *" snprintf.$ac_objext "* ) ;;
5326 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5330 _hw_cv_func_xprintf_replace_done=yes
5336 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5337 if test "x$ac_cv_func_snprintf" = xyes; then :
5338 hw_cv_func_snprintf=yes
5340 hw_cv_func_snprintf=no
5343 if test "$hw_cv_func_snprintf" = yes; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
5345 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
5346 if ${hw_cv_func_snprintf_c99+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 if test "$cross_compiling" = yes; then :
5350 hw_cv_func_snprintf_c99=no
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5359 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
5360 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
5361 buf[0] != 'T' || buf[3] != '\0')
5367 if ac_fn_c_try_run "$LINENO"; then :
5368 hw_cv_func_snprintf_c99=yes
5370 hw_cv_func_snprintf_c99=no
5372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5373 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
5378 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
5380 hw_cv_func_snprintf_c99=no
5382 if test "$hw_cv_func_snprintf_c99" = yes; then :
5384 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
5388 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5390 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5391 if ${ac_cv_c_const+:} false; then :
5392 $as_echo_n "(cached) " >&6
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5402 /* Ultrix mips cc rejects this sort of thing. */
5403 typedef int charset[2];
5404 const charset cs = { 0, 0 };
5405 /* SunOS 4.1.1 cc rejects this. */
5406 char const *const *pcpcc;
5408 /* NEC SVR4.0.2 mips cc rejects this. */
5409 struct point {int x, y;};
5410 static struct point const zero = {0,0};
5411 /* AIX XL C 1.02.0.0 rejects this.
5412 It does not let you subtract one const X* pointer from another in
5413 an arm of an if-expression whose if-part is not a constant
5415 const char *g = "string";
5416 pcpcc = &g + (g ? g-g : 0);
5417 /* HPUX 7.0 cc rejects these. */
5419 ppc = (char**) pcpcc;
5420 pcpcc = (char const *const *) ppc;
5421 { /* SCO 3.2v4 cc rejects this sort of thing. */
5424 char const *s = 0 ? (char *) 0 : (char const *) 0;
5429 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5431 const int *foo = &x[0];
5434 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5435 typedef const int *iptr;
5439 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5440 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5441 struct s { int j; const int *ap[3]; } bx;
5442 struct s *b = &bx; b->j = 5;
5444 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5448 return !cs[0] && !zero.x;
5455 if ac_fn_c_try_compile "$LINENO"; then :
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5463 $as_echo "$ac_cv_c_const" >&6; }
5464 if test $ac_cv_c_const = no; then
5466 $as_echo "#define const /**/" >>confdefs.h
5473 case " $LIBOBJS " in
5474 *" snprintf.$ac_objext "* ) ;;
5475 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5479 _hw_cv_func_xprintf_replace_done=yes
5490 for ac_func in vasprintf
5492 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
5493 if test "x$ac_cv_func_vasprintf" = xyes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_VASPRINTF 1
5497 hw_cv_func_vasprintf=yes
5499 hw_cv_func_vasprintf=no
5503 if test "$hw_cv_func_vasprintf" = no; then :
5504 for ac_header in stdlib.h
5506 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5507 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5508 cat >>confdefs.h <<_ACEOF
5509 #define HAVE_STDLIB_H 1
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
5518 $as_echo_n "checking for va_copy... " >&6; }
5519 if ${hw_cv_func_va_copy+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 if test "$cross_compiling" = yes; then :
5523 hw_cv_func_va_copy=no
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5529 #elif HAVE_VARARGS_H
5530 #include <varargs.h>
5535 va_list ap, aq; va_copy(aq, ap);
5540 if ac_fn_c_try_run "$LINENO"; then :
5541 hw_cv_func_va_copy=yes
5543 hw_cv_func_va_copy=no
5545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5546 conftest.$ac_objext conftest.beam conftest.$ac_ext
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5
5551 $as_echo "$hw_cv_func_va_copy" >&6; }
5552 if test "$hw_cv_func_va_copy" = yes; then :
5554 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5558 if test "$hw_cv_func_va_copy" = no; then :
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
5561 $as_echo_n "checking for __va_copy... " >&6; }
5562 if ${hw_cv_func___va_copy+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test "$cross_compiling" = yes; then :
5566 hw_cv_func___va_copy=no
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5572 #elif HAVE_VARARGS_H
5573 #include <varargs.h>
5578 va_list ap, aq; __va_copy(aq, ap);
5583 if ac_fn_c_try_run "$LINENO"; then :
5584 hw_cv_func___va_copy=yes
5586 hw_cv_func___va_copy=no
5588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5589 conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5
5594 $as_echo "$hw_cv_func___va_copy" >&6; }
5595 if test "$hw_cv_func___va_copy" = yes; then :
5597 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
5603 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5605 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5606 if ${ac_cv_c_const+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5617 /* Ultrix mips cc rejects this sort of thing. */
5618 typedef int charset[2];
5619 const charset cs = { 0, 0 };
5620 /* SunOS 4.1.1 cc rejects this. */
5621 char const *const *pcpcc;
5623 /* NEC SVR4.0.2 mips cc rejects this. */
5624 struct point {int x, y;};
5625 static struct point const zero = {0,0};
5626 /* AIX XL C 1.02.0.0 rejects this.
5627 It does not let you subtract one const X* pointer from another in
5628 an arm of an if-expression whose if-part is not a constant
5630 const char *g = "string";
5631 pcpcc = &g + (g ? g-g : 0);
5632 /* HPUX 7.0 cc rejects these. */
5634 ppc = (char**) pcpcc;
5635 pcpcc = (char const *const *) ppc;
5636 { /* SCO 3.2v4 cc rejects this sort of thing. */
5639 char const *s = 0 ? (char *) 0 : (char const *) 0;
5644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5646 const int *foo = &x[0];
5649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5650 typedef const int *iptr;
5654 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5656 struct s { int j; const int *ap[3]; } bx;
5657 struct s *b = &bx; b->j = 5;
5659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5663 return !cs[0] && !zero.x;
5670 if ac_fn_c_try_compile "$LINENO"; then :
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5678 $as_echo "$ac_cv_c_const" >&6; }
5679 if test $ac_cv_c_const = no; then
5681 $as_echo "#define const /**/" >>confdefs.h
5688 case " $LIBOBJS " in
5689 *" snprintf.$ac_objext "* ) ;;
5690 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5694 _hw_cv_func_xprintf_replace_done=yes
5700 for ac_func in asprintf
5702 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
5703 if test "x$ac_cv_func_asprintf" = xyes; then :
5704 cat >>confdefs.h <<_ACEOF
5705 #define HAVE_ASPRINTF 1
5707 hw_cv_func_asprintf=yes
5709 hw_cv_func_asprintf=no
5713 if test "$hw_cv_func_asprintf" = no; then :
5715 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5717 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5718 if ${ac_cv_c_const+:} false; then :
5719 $as_echo_n "(cached) " >&6
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5729 /* Ultrix mips cc rejects this sort of thing. */
5730 typedef int charset[2];
5731 const charset cs = { 0, 0 };
5732 /* SunOS 4.1.1 cc rejects this. */
5733 char const *const *pcpcc;
5735 /* NEC SVR4.0.2 mips cc rejects this. */
5736 struct point {int x, y;};
5737 static struct point const zero = {0,0};
5738 /* AIX XL C 1.02.0.0 rejects this.
5739 It does not let you subtract one const X* pointer from another in
5740 an arm of an if-expression whose if-part is not a constant
5742 const char *g = "string";
5743 pcpcc = &g + (g ? g-g : 0);
5744 /* HPUX 7.0 cc rejects these. */
5746 ppc = (char**) pcpcc;
5747 pcpcc = (char const *const *) ppc;
5748 { /* SCO 3.2v4 cc rejects this sort of thing. */
5751 char const *s = 0 ? (char *) 0 : (char const *) 0;
5756 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5758 const int *foo = &x[0];
5761 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5762 typedef const int *iptr;
5766 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5767 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5768 struct s { int j; const int *ap[3]; } bx;
5769 struct s *b = &bx; b->j = 5;
5771 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5775 return !cs[0] && !zero.x;
5782 if ac_fn_c_try_compile "$LINENO"; then :
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5790 $as_echo "$ac_cv_c_const" >&6; }
5791 if test $ac_cv_c_const = no; then
5793 $as_echo "#define const /**/" >>confdefs.h
5800 case " $LIBOBJS " in
5801 *" snprintf.$ac_objext "* ) ;;
5802 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
5806 _hw_cv_func_xprintf_replace_done=yes
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
5813 $as_echo_n "checking for library containing cos... " >&6; }
5814 if ${ac_cv_search_cos+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 ac_func_search_save_LIBS=$LIBS
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 /* Override any GCC internal prototype to avoid an error.
5822 Use char because int might match the return type of a GCC
5823 builtin and then its argument prototype would still apply. */
5836 for ac_lib in '' m; do
5837 if test -z "$ac_lib"; then
5838 ac_res="none required"
5841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 ac_cv_search_cos=$ac_res
5846 rm -f core conftest.err conftest.$ac_objext \
5848 if ${ac_cv_search_cos+:} false; then :
5852 if ${ac_cv_search_cos+:} false; then :
5858 LIBS=$ac_func_search_save_LIBS
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
5861 $as_echo "$ac_cv_search_cos" >&6; }
5862 ac_res=$ac_cv_search_cos
5863 if test "$ac_res" != no; then :
5864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5871 # Check whether --with-bundled-zlib was given.
5872 if test "${with_bundled_zlib+set}" = set; then :
5873 withval=$with_bundled_zlib;
5876 if test x${with_bundled_zlib} = x; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.3" >&5
5878 $as_echo_n "checking for zlib >= 1.2.3... " >&6; }
5879 if ${ccache_cv_zlib_1_2_3+:} false; then :
5880 $as_echo_n "(cached) " >&6
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5889 #if (ZLIB_VERNUM >= 0x1230)
5891 #error "ZLIB_VERNUM < 0x1230"
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 ccache_cv_zlib_1_2_3=yes
5901 ccache_cv_zlib_1_2_3=no
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ccache_cv_zlib_1_2_3" >&5
5906 $as_echo "$ccache_cv_zlib_1_2_3" >&6; }
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
5908 $as_echo_n "checking for gzdopen in -lz... " >&6; }
5909 if ${ac_cv_lib_z_gzdopen+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 ac_check_lib_save_LIBS=$LIBS
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5917 /* Override any GCC internal prototype to avoid an error.
5918 Use char because int might match the return type of a GCC
5919 builtin and then its argument prototype would still apply. */
5932 if ac_fn_c_try_link "$LINENO"; then :
5933 ac_cv_lib_z_gzdopen=yes
5935 ac_cv_lib_z_gzdopen=no
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 LIBS=$ac_check_lib_save_LIBS
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
5942 $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
5943 if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
5947 if test $ccache_cv_zlib_1_2_3 = yes && test $ac_cv_lib_z_gzdopen = yes; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using bundled zlib" >&5
5951 $as_echo "$as_me: WARNING: using bundled zlib" >&2;}
5952 use_bundled_zlib=yes
5955 if test x${with_bundled_zlib} = xno; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: using system zlib as requested" >&5
5957 $as_echo "$as_me: using system zlib as requested" >&6;}
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled zlib as requested" >&5
5961 $as_echo "$as_me: using bundled zlib as requested" >&6;}
5962 use_bundled_zlib=yes
5966 if test x${use_bundled_zlib} = xyes; then
5967 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/src/zlib"
5968 extra_libs="src/zlib/libz.a"
5974 # Check whether --enable-man was given.
5975 if test "${enable_man+set}" = set; then :
5976 enableval=$enable_man;
5979 if test x${enable_man} = xno; then
5983 if test x${windows_os} = xyes; then
5984 LIBS="$LIBS -lws2_32"
5985 for ac_func in GetFinalPathNameByHandleW
5987 ac_fn_c_check_func "$LINENO" "GetFinalPathNameByHandleW" "ac_cv_func_GetFinalPathNameByHandleW"
5988 if test "x$ac_cv_func_GetFinalPathNameByHandleW" = xyes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define HAVE_GETFINALPATHNAMEBYHANDLEW 1
5994 LIBS="$LIBS -lpsapi"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6001 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6002 if ${ac_cv_c_bigendian+:} false; then :
6003 $as_echo_n "(cached) " >&6
6005 ac_cv_c_bigendian=unknown
6006 # See if we're dealing with a universal compiler.
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #ifndef __APPLE_CC__
6010 not a universal capable compiler
6015 if ac_fn_c_try_compile "$LINENO"; then :
6017 # Check for potential -arch flags. It is not universal unless
6018 # there are at least two -arch flags with different values.
6021 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6022 if test -n "$ac_prev"; then
6024 i?86 | x86_64 | ppc | ppc64)
6025 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6028 ac_cv_c_bigendian=universal
6034 elif test "x$ac_word" = "x-arch"; then
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 if test $ac_cv_c_bigendian = unknown; then
6041 # See if sys/param.h defines the BYTE_ORDER macro.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6045 #include <sys/param.h>
6050 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6051 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6060 if ac_fn_c_try_compile "$LINENO"; then :
6061 # It does; now see whether it defined to BIG_ENDIAN or not.
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6065 #include <sys/param.h>
6070 #if BYTE_ORDER != BIG_ENDIAN
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 ac_cv_c_bigendian=yes
6081 ac_cv_c_bigendian=no
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 if test $ac_cv_c_bigendian = unknown; then
6088 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6096 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6104 if ac_fn_c_try_compile "$LINENO"; then :
6105 # It does; now see whether it defined to _BIG_ENDIAN or not.
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122 ac_cv_c_bigendian=yes
6124 ac_cv_c_bigendian=no
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 if test $ac_cv_c_bigendian = unknown; then
6131 # Compile a test program.
6132 if test "$cross_compiling" = yes; then :
6133 # Try to guess by grepping values from an object file.
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 short int ascii_mm[] =
6137 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6138 short int ascii_ii[] =
6139 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6140 int use_ascii (int i) {
6141 return ascii_mm[i] + ascii_ii[i];
6143 short int ebcdic_ii[] =
6144 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6145 short int ebcdic_mm[] =
6146 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6147 int use_ebcdic (int i) {
6148 return ebcdic_mm[i] + ebcdic_ii[i];
6155 return use_ascii (foo) == use_ebcdic (foo);
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6162 ac_cv_c_bigendian=yes
6164 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6165 if test "$ac_cv_c_bigendian" = unknown; then
6166 ac_cv_c_bigendian=no
6168 # finding both strings is unlikely to happen, but who knows?
6169 ac_cv_c_bigendian=unknown
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 $ac_includes_default
6182 /* Are we little or big endian? From Harbison&Steele. */
6186 char c[sizeof (long int)];
6189 return u.c[sizeof (long int) - 1] == 1;
6195 if ac_fn_c_try_run "$LINENO"; then :
6196 ac_cv_c_bigendian=no
6198 ac_cv_c_bigendian=yes
6200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6201 conftest.$ac_objext conftest.beam conftest.$ac_ext
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6207 $as_echo "$ac_cv_c_bigendian" >&6; }
6208 case $ac_cv_c_bigendian in #(
6210 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6216 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6220 as_fn_error $? "unknown endianness
6221 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6226 $as_echo_n "checking for inline... " >&6; }
6227 if ${ac_cv_c_inline+:} false; then :
6228 $as_echo_n "(cached) " >&6
6231 for ac_kw in inline __inline__ __inline; do
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6236 static $ac_kw foo_t static_foo () {return 0; }
6237 $ac_kw foo_t foo () {return 0; }
6241 if ac_fn_c_try_compile "$LINENO"; then :
6242 ac_cv_c_inline=$ac_kw
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 test "$ac_cv_c_inline" != no && break
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6250 $as_echo "$ac_cv_c_inline" >&6; }
6252 case $ac_cv_c_inline in
6255 case $ac_cv_c_inline in
6257 *) ac_val=$ac_cv_c_inline;;
6259 cat >>confdefs.h <<_ACEOF
6261 #define inline $ac_val
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern inline" >&5
6269 $as_echo_n "checking for extern inline... " >&6; }
6270 if ${ac_cv_c_extern_inline+:} false; then :
6271 $as_echo_n "(cached) " >&6
6274 ac_cv_c_extern_inline=no
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 extern $ac_cv_c_inline double foo(double x);
6279 extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
6280 double foo (double x) { return x + 1.0; };
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_c_extern_inline="yes"
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_inline" >&5
6296 $as_echo "$ac_cv_c_extern_inline" >&6; }
6297 if test "$ac_cv_c_extern_inline" != no ; then
6299 $as_echo "#define HAVE_EXTERN_INLINE 1" >>confdefs.h
6303 mkdir -p .deps src unittest
6305 if test ! -f $srcdir/dev_mode_disabled && test "$RUN_FROM_BUILD_FARM" != yes; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: developer mode enabled" >&5
6307 $as_echo "$as_me: developer mode enabled" >&6;}
6308 ac_config_files="$ac_config_files dev.mk"
6310 include_dev_mk='include dev.mk'
6311 version=`(git --git-dir=$srcdir/.git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'`
6312 echo "extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = \"$version\";" >src/version.c
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: developer mode disabled" >&5
6315 $as_echo "$as_me: developer mode disabled" >&6;}
6318 if test ! -f $srcdir/src/version.c -a ! -f src/version.c ; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine ccache version" >&5
6320 $as_echo "$as_me: WARNING: unable to determine ccache version" >&2;}
6321 echo "extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = \"unknown\";" >src/version.c
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -Wno-implicit-fallthrough" >&5
6325 $as_echo_n "checking whether C compiler supports -Wno-implicit-fallthrough... " >&6; }
6326 saved_cflags=$CFLAGS
6327 CFLAGS=-Wno-implicit-fallthrough
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6339 if ac_fn_c_try_compile "$LINENO"; then :
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6341 $as_echo "yes" >&6; }
6342 no_implicit_fallthrough_warning="-Wno-implicit-fallthrough"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 CFLAGS=$saved_cflags
6351 test_suites=`cd $srcdir && ls unittest/test_*.c | egrep -v 'BASE|BACKUP|LOCAL|REMOTE' | xargs echo`
6353 ac_config_files="$ac_config_files Makefile"
6355 cat >confcache <<\_ACEOF
6356 # This file is a shell script that caches the results of configure
6357 # tests run on this system so they can be shared between configure
6358 # scripts and configure runs, see configure's option --config-cache.
6359 # It is not useful on other systems. If it contains results you don't
6360 # want to keep, you may remove or edit it.
6362 # config.status only pays attention to the cache file if you give it
6363 # the --recheck option to rerun configure.
6365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6371 # The following way of writing the cache mishandles newlines in values,
6372 # but we know of no workaround that is simple, portable, and efficient.
6373 # So, we kill variables containing newlines.
6374 # Ultrix sh set writes to stderr and can't be redirected directly,
6375 # and sets the high bit in the cache file unless we assign to the vars.
6377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6378 eval ac_val=\$$ac_var
6382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6386 _ | IFS | as_nl) ;; #(
6387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6388 *) { eval $ac_var=; unset $ac_var;} ;;
6394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6395 *${as_nl}ac_space=\ *)
6396 # `set' does not quote correctly, so add quotes: double-quote
6397 # substitution turns \\\\ into \\, and sed turns \\ into \.
6400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6403 # `set' quotes correctly as required by POSIX, so do not add quotes.
6404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6418 if test -w "$cache_file"; then
6419 if test "x$cache_file" != "x/dev/null"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6421 $as_echo "$as_me: updating cache $cache_file" >&6;}
6422 if test ! -f "$cache_file" || test -h "$cache_file"; then
6423 cat confcache >"$cache_file"
6425 case $cache_file in #(
6427 mv -f confcache "$cache_file"$$ &&
6428 mv -f "$cache_file"$$ "$cache_file" ;; #(
6430 mv -f confcache "$cache_file" ;;
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6442 # Let make expand exec_prefix.
6443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6445 DEFS=-DHAVE_CONFIG_H
6450 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6451 # 1. Remove the extension, and $U if already installed.
6452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6453 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6455 # will be set to the directory where LIBOBJS objects are built.
6456 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6457 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6461 LTLIBOBJS=$ac_ltlibobjs
6466 : "${CONFIG_STATUS=./config.status}"
6468 ac_clean_files_save=$ac_clean_files
6469 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6471 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6473 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6475 # Generated by $as_me.
6476 # Run this file to recreate the current configuration.
6477 # Compiler output produced by configure, useful for debugging
6478 # configure, is in config.log if it exists.
6484 SHELL=\${CONFIG_SHELL-$SHELL}
6487 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6488 ## -------------------- ##
6489 ## M4sh Initialization. ##
6490 ## -------------------- ##
6492 # Be more Bourne compatible
6493 DUALCASE=1; export DUALCASE # for MKS sh
6494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6498 # is contrary to our usage. Disable this feature.
6499 alias -g '${1+"$@"}'='"$@"'
6500 setopt NO_GLOB_SUBST
6502 case `(set -o) 2>/dev/null` in #(
6514 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6515 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6517 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6518 # Prefer a ksh shell builtin over an external printf program on Solaris,
6519 # but without wasting forks for bash or zsh.
6520 if test -z "$BASH_VERSION$ZSH_VERSION" \
6521 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6522 as_echo='print -r --'
6523 as_echo_n='print -rn --'
6524 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6525 as_echo='printf %s\n'
6526 as_echo_n='printf %s'
6528 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6529 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6530 as_echo_n='/usr/ucb/echo -n'
6532 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6533 as_echo_n_body='eval
6537 expr "X$arg" : "X\\(.*\\)$as_nl";
6538 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6540 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6542 export as_echo_n_body
6543 as_echo_n='sh -c $as_echo_n_body as_echo'
6546 as_echo='sh -c $as_echo_body as_echo'
6549 # The user is always right.
6550 if test "${PATH_SEPARATOR+set}" != set; then
6552 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6553 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6560 # We need space, tab and new line, in precisely that order. Quoting is
6561 # there to prevent editors from complaining about space-tab.
6562 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6563 # splitting by setting IFS to empty value.)
6566 # Find who we are. Look in the path if we contain no directory separator.
6569 *[\\/]* ) as_myself=$0 ;;
6570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6581 # We did not find ourselves, most probably we were run as `sh COMMAND'
6582 # in which case we are not to be found in the path.
6583 if test "x$as_myself" = x; then
6586 if test ! -f "$as_myself"; then
6587 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6591 # Unset variables that we do not need and which cause bugs (e.g. in
6592 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6593 # suppresses any "Segmentation fault" message there. '((' could
6594 # trigger a bug in pdksh 5.2.14.
6595 for as_var in BASH_ENV ENV MAIL MAILPATH
6596 do eval test x\${$as_var+set} = xset \
6597 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6613 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6614 # ----------------------------------------
6615 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6616 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6617 # script with STATUS, using 1 if that was 0.
6620 as_status=$1; test $as_status -eq 0 && as_status=1
6622 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6623 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6625 $as_echo "$as_me: error: $2" >&2
6626 as_fn_exit $as_status
6630 # as_fn_set_status STATUS
6631 # -----------------------
6632 # Set $? to STATUS, without forking.
6636 } # as_fn_set_status
6640 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6650 # Portably unset VAR.
6653 { eval $1=; unset $1;}
6655 as_unset=as_fn_unset
6656 # as_fn_append VAR VALUE
6657 # ----------------------
6658 # Append the text in VALUE to the end of the definition contained in VAR. Take
6659 # advantage of any shell optimizations that allow amortized linear growth over
6660 # repeated appends, instead of the typical quadratic growth present in naive
6662 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6663 eval 'as_fn_append ()
6674 # as_fn_arith ARG...
6675 # ------------------
6676 # Perform arithmetic evaluation on the ARGs, and store the result in the
6677 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6678 # must be portable across $(()) and expr.
6679 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6680 eval 'as_fn_arith ()
6687 as_val=`expr "$@" || test $? -eq 1`
6692 if expr a : '\(a\)' >/dev/null 2>&1 &&
6693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6700 as_basename=basename
6705 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6711 as_me=`$as_basename -- "$0" ||
6712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6713 X"$0" : 'X\(//\)$' \| \
6714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6716 sed '/^.*\/\([^/][^/]*\)\/*$/{
6730 # Avoid depending upon Character Ranges.
6731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6734 as_cr_digits='0123456789'
6735 as_cr_alnum=$as_cr_Letters$as_cr_digits
6737 ECHO_C= ECHO_N= ECHO_T=
6738 case `echo -n x` in #(((((
6740 case `echo 'xy\c'` in
6741 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6743 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6750 rm -f conf$$ conf$$.exe conf$$.file
6751 if test -d conf$$.dir; then
6752 rm -f conf$$.dir/conf$$.file
6755 mkdir conf$$.dir 2>/dev/null
6757 if (echo >conf$$.file) 2>/dev/null; then
6758 if ln -s conf$$.file conf$$ 2>/dev/null; then
6760 # ... but there are two gotchas:
6761 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6762 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6763 # In both cases, we have to default to `cp -pR'.
6764 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6766 elif ln conf$$.file conf$$ 2>/dev/null; then
6774 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6775 rmdir conf$$.dir 2>/dev/null
6780 # Create "$as_dir" as a directory, including parents if necessary.
6785 -*) as_dir=./$as_dir;;
6787 test -d "$as_dir" || eval $as_mkdir_p || {
6791 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6792 *) as_qdir=$as_dir;;
6794 as_dirs="'$as_qdir' $as_dirs"
6795 as_dir=`$as_dirname -- "$as_dir" ||
6796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6797 X"$as_dir" : 'X\(//\)[^/]' \| \
6798 X"$as_dir" : 'X\(//\)$' \| \
6799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6800 $as_echo X"$as_dir" |
6801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6818 test -d "$as_dir" && break
6820 test -z "$as_dirs" || eval "mkdir $as_dirs"
6821 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6825 if mkdir -p . 2>/dev/null; then
6826 as_mkdir_p='mkdir -p "$as_dir"'
6828 test -d ./-p && rmdir ./-p
6833 # as_fn_executable_p FILE
6834 # -----------------------
6835 # Test if FILE is an executable regular file.
6836 as_fn_executable_p ()
6838 test -f "$1" && test -x "$1"
6839 } # as_fn_executable_p
6841 as_executable_p=as_fn_executable_p
6843 # Sed expression to map a string onto a valid CPP name.
6844 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6846 # Sed expression to map a string onto a valid variable name.
6847 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6851 ## ----------------------------------- ##
6852 ## Main body of $CONFIG_STATUS script. ##
6853 ## ----------------------------------- ##
6855 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6858 # Save the log message, to keep $0 and so on meaningful, and to
6859 # report actual input values of CONFIG_FILES etc. instead of their
6860 # values after options handling.
6862 This file was extended by $as_me, which was
6863 generated by GNU Autoconf 2.69. Invocation command line was
6865 CONFIG_FILES = $CONFIG_FILES
6866 CONFIG_HEADERS = $CONFIG_HEADERS
6867 CONFIG_LINKS = $CONFIG_LINKS
6868 CONFIG_COMMANDS = $CONFIG_COMMANDS
6871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6876 case $ac_config_files in *"
6877 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6880 case $ac_config_headers in *"
6881 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6886 # Files that config.status was made for.
6887 config_files="$ac_config_files"
6888 config_headers="$ac_config_headers"
6892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6894 \`$as_me' instantiates files and other configuration actions
6895 from templates according to the current configuration. Unless the files
6896 and actions are specified as TAGs, all are instantiated by default.
6898 Usage: $0 [OPTION]... [TAG]...
6900 -h, --help print this help, then exit
6901 -V, --version print version number and configuration settings, then exit
6902 --config print configuration, then exit
6903 -q, --quiet, --silent
6904 do not print progress messages
6905 -d, --debug don't remove temporary files
6906 --recheck update $as_me by reconfiguring in the same conditions
6907 --file=FILE[:TEMPLATE]
6908 instantiate the configuration file FILE
6909 --header=FILE[:TEMPLATE]
6910 instantiate the configuration header FILE
6912 Configuration files:
6915 Configuration headers:
6918 Report bugs to the package provider."
6921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6922 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6925 configured by $0, generated by GNU Autoconf 2.69,
6926 with options \\"\$ac_cs_config\\"
6928 Copyright (C) 2012 Free Software Foundation, Inc.
6929 This config.status script is free software; the Free Software Foundation
6930 gives unlimited permission to copy, distribute and modify it."
6935 test -n "\$AWK" || AWK=awk
6938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6939 # The default lists apply if the user does not specify any file.
6945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6962 # Handling of the options.
6963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6965 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6966 $as_echo "$ac_cs_version"; exit ;;
6967 --config | --confi | --conf | --con | --co | --c )
6968 $as_echo "$ac_cs_config"; exit ;;
6969 --debug | --debu | --deb | --de | --d | -d )
6971 --file | --fil | --fi | --f )
6974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6975 '') as_fn_error $? "missing file argument" ;;
6977 as_fn_append CONFIG_FILES " '$ac_optarg'"
6978 ac_need_defaults=false;;
6979 --header | --heade | --head | --hea )
6982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6984 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6985 ac_need_defaults=false;;
6987 # Conflict between --help and --header
6988 as_fn_error $? "ambiguous option: \`$1'
6989 Try \`$0 --help' for more information.";;
6990 --help | --hel | -h )
6991 $as_echo "$ac_cs_usage"; exit ;;
6992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6993 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6997 -*) as_fn_error $? "unrecognized option: \`$1'
6998 Try \`$0 --help' for more information." ;;
7000 *) as_fn_append ac_config_targets " $1"
7001 ac_need_defaults=false ;;
7007 ac_configure_extra_args=
7009 if $ac_cs_silent; then
7011 ac_configure_extra_args="$ac_configure_extra_args --silent"
7015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7016 if \$ac_cs_recheck; then
7017 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7019 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7020 CONFIG_SHELL='$SHELL'
7026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7031 ## Running $as_me. ##
7037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7042 # Handling of arguments.
7043 for ac_config_target in $ac_config_targets
7045 case $ac_config_target in
7046 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7047 "dev.mk") CONFIG_FILES="$CONFIG_FILES dev.mk" ;;
7048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7055 # If the user did not use the arguments to specify the items to instantiate,
7056 # then the envvar interface is used. Set only those that are not.
7057 # We use the long form for the default assignment because of an extremely
7058 # bizarre bug on SunOS 4.1.3.
7059 if $ac_need_defaults; then
7060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7064 # Have a temporary directory for convenience. Make it in the build tree
7065 # simply because there is no reason against having it here, and in addition,
7066 # creating and moving files from /tmp can sometimes cause problems.
7067 # Hook for its removal unless debugging.
7068 # Note that there is a small window in which the directory will not be cleaned:
7069 # after its creation but before its name has been assigned to `$tmp'.
7073 trap 'exit_status=$?
7075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7077 trap 'as_fn_exit 1' 1 2 13 15
7079 # Create a (secure) tmp directory for tmp files.
7082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7086 tmp=./conf$$-$RANDOM
7087 (umask 077 && mkdir "$tmp")
7088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7091 # Set up the scripts for CONFIG_FILES section.
7092 # No need to generate them if there are no CONFIG_FILES.
7093 # This happens for instance with `./config.status config.h'.
7094 if test -n "$CONFIG_FILES"; then
7097 ac_cr=`echo X | tr X '\015'`
7098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7099 # But we know of no other shell where ac_cr would be empty at this
7100 # point, so we can use a bashism as a fallback.
7101 if test "x$ac_cr" = x; then
7102 eval ac_cr=\$\'\\r\'
7104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7116 echo "cat >conf$$subs.awk <<_ACEOF" &&
7117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7123 for ac_last_try in false false false false false :; do
7124 . ./conf$$subs.sh ||
7125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7128 if test $ac_delim_n = $ac_delim_num; then
7130 elif $ac_last_try; then
7131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7143 s/^/S["/; s/!.*/"]=/
7153 s/\(.\{148\}\)..*/\1/
7155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7167 s/\(.\{148\}\)..*/\1/
7169 s/["\\]/\\&/g; s/^/"/; s/$/"/
7173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7178 ' <conf$$subs.awk | sed '
7183 ' >>$CONFIG_STATUS || ac_write_fail=1
7184 rm -f conf$$subs.awk
7185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7188 for (key in S) S_is_set[key] = 1
7194 nfields = split(line, field, "@")
7196 len = length(field[1])
7197 for (i = 2; i < nfields; i++) {
7199 keylen = length(key)
7200 if (S_is_set[key]) {
7202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7203 len += length(value) + length(field[++i])
7214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7220 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7225 # trailing colons and then remove the whole line if VPATH becomes empty
7226 # (actually we leave an empty line to preserve line numbers).
7227 if test "x$srcdir" = x.; then
7228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7247 fi # test -n "$CONFIG_FILES"
7249 # Set up the scripts for CONFIG_HEADERS section.
7250 # No need to generate them if there are no CONFIG_HEADERS.
7251 # This happens for instance with `./config.status Makefile'.
7252 if test -n "$CONFIG_HEADERS"; then
7253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7257 # Transform confdefs.h into an awk script `defines.awk', embedded as
7258 # here-document in config.status, that substitutes the proper values into
7259 # config.h.in to produce config.h.
7261 # Create a delimiter string that does not exist in confdefs.h, to ease
7262 # handling of long lines.
7264 for ac_last_try in false false :; do
7265 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7266 if test -z "$ac_tt"; then
7268 elif $ac_last_try; then
7269 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7275 # For the awk script, D is an array of macro values keyed by name,
7276 # likewise P contains macro parameters if any. Preserve backslash
7277 # newline sequences.
7279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7281 s/.\{148\}/&'"$ac_delim"'/g
7284 s/^[ ]*#[ ]*define[ ][ ]*/ /
7291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7298 D["\1"]=" \3\\\\\\n"\\/p
7300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7305 s/.\{148\}/&'"$ac_delim"'/g
7310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7315 ' <confdefs.h | sed '
7316 s/'"$ac_delim"'/"\\\
7317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7320 for (key in D) D_is_set[key] = 1
7323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7325 split(line, arg, " ")
7326 if (arg[1] == "#") {
7330 defundef = substr(arg[1], 2)
7333 split(mac1, mac2, "(") #)
7335 prefix = substr(line, 1, index(line, defundef) - 1)
7336 if (D_is_set[macro]) {
7337 # Preserve the white space surrounding the "#".
7338 print prefix "define", macro P[macro] D[macro]
7341 # Replace #undef with comments. This is necessary, for example,
7342 # in the case of _POSIX_SOURCE, which is predefined and required
7343 # on some systems where configure will not decide to define it.
7344 if (defundef == "undef") {
7345 print "/*", prefix defundef, macro, "*/"
7353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7354 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7355 fi # test -n "$CONFIG_HEADERS"
7358 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7363 :[FHLC]) ac_mode=$ac_tag; continue;;
7365 case $ac_mode$ac_tag in
7367 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7368 :[FH]-) ac_tag=-:-;;
7369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7386 -) ac_f="$ac_tmp/stdin";;
7387 *) # Look for the file first in the build tree, then in the source tree
7388 # (if the path is not absolute). The absolute path cannot be DOS-style,
7389 # because $ac_f cannot contain `:'.
7393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7395 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7397 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7398 as_fn_append ac_file_inputs " '$ac_f'"
7401 # Let's still pretend it is `configure' which instantiates (i.e., don't
7402 # use $as_me), people would be surprised to read:
7403 # /* config.h. Generated by config.status. */
7404 configure_input='Generated from '`
7405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7407 if test x"$ac_file" != x-; then
7408 configure_input="$ac_file. $configure_input"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7410 $as_echo "$as_me: creating $ac_file" >&6;}
7412 # Neutralize special characters interpreted by sed in replacement strings.
7413 case $configure_input in #(
7414 *\&* | *\|* | *\\* )
7415 ac_sed_conf_input=`$as_echo "$configure_input" |
7416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7417 *) ac_sed_conf_input=$configure_input;;
7421 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7427 ac_dir=`$as_dirname -- "$ac_file" ||
7428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7429 X"$ac_file" : 'X\(//\)[^/]' \| \
7430 X"$ac_file" : 'X\(//\)$' \| \
7431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7432 $as_echo X"$ac_file" |
7433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7450 as_dir="$ac_dir"; as_fn_mkdir_p
7454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7457 # A ".." for each directory in $ac_dir_suffix.
7458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7459 case $ac_top_builddir_sub in
7460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7464 ac_abs_top_builddir=$ac_pwd
7465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7466 # for backward compatibility:
7467 ac_top_builddir=$ac_top_build_prefix
7470 .) # We are building in place.
7472 ac_top_srcdir=$ac_top_builddir_sub
7473 ac_abs_top_srcdir=$ac_pwd ;;
7474 [\\/]* | ?:[\\/]* ) # Absolute name.
7475 ac_srcdir=$srcdir$ac_dir_suffix;
7476 ac_top_srcdir=$srcdir
7477 ac_abs_top_srcdir=$srcdir ;;
7479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7480 ac_top_srcdir=$ac_top_build_prefix$srcdir
7481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7499 # If the template does not know about datarootdir, expand it.
7500 # FIXME: This hack should be removed a few years after 2.60.
7501 ac_datarootdir_hack=; ac_datarootdir_seen=
7512 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7513 *datarootdir*) ac_datarootdir_seen=yes;;
7514 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7516 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7519 ac_datarootdir_hack='
7520 s&@datadir@&$datadir&g
7521 s&@docdir@&$docdir&g
7522 s&@infodir@&$infodir&g
7523 s&@localedir@&$localedir&g
7524 s&@mandir@&$mandir&g
7525 s&\\\${datarootdir}&$datarootdir&g' ;;
7529 # Neutralize VPATH when `$srcdir' = `.'.
7530 # Shell code in configure.ac might set extrasub.
7531 # FIXME: do we really want to maintain this feature?
7532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7533 ac_sed_extra="$ac_vpsub
7536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7539 s|@configure_input@|$ac_sed_conf_input|;t t
7540 s&@top_builddir@&$ac_top_builddir_sub&;t t
7541 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7542 s&@srcdir@&$ac_srcdir&;t t
7543 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7544 s&@top_srcdir@&$ac_top_srcdir&;t t
7545 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7546 s&@builddir@&$ac_builddir&;t t
7547 s&@abs_builddir@&$ac_abs_builddir&;t t
7548 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7549 s&@INSTALL@&$ac_INSTALL&;t t
7550 $ac_datarootdir_hack
7552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7558 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7560 which seems to be undefined. Please make sure it is defined" >&5
7561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7562 which seems to be undefined. Please make sure it is defined" >&2;}
7564 rm -f "$ac_tmp/stdin"
7566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7575 if test x"$ac_file" != x-; then
7577 $as_echo "/* $configure_input */" \
7578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7579 } >"$ac_tmp/config.h" \
7580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7586 mv "$ac_tmp/config.h" "$ac_file" \
7587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7590 $as_echo "/* $configure_input */" \
7591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7592 || as_fn_error $? "could not create -" "$LINENO" 5
7604 ac_clean_files=$ac_clean_files_save
7606 test $ac_write_fail = 0 ||
7607 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7610 # configure is writing to config.log, and then calls config.status.
7611 # config.status does its own redirection, appending to config.log.
7612 # Unfortunately, on DOS this fails, as config.log is still kept open
7613 # by configure, so config.status won't be able to write to it; its
7614 # output is simply discarded. So we exec the FD to /dev/null,
7615 # effectively closing config.log, so it can be properly (re)opened and
7616 # appended to by config.status. When coming back to configure, we
7617 # need to make the FD available again.
7618 if test "$no_create" != yes; then
7620 ac_config_status_args=
7621 test "$silent" = yes &&
7622 ac_config_status_args="$ac_config_status_args --quiet"
7624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7627 # would make configure fail if this is the last instruction.
7628 $ac_cs_success || as_fn_exit 1
7630 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7632 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7636 cat <<EOF >config.h.tmp
7637 #ifndef CCACHE_CONFIG_H
7638 #define CCACHE_CONFIG_H
7640 #pragma clang diagnostic push
7641 #if __clang_major__ >= 4
7642 #pragma clang diagnostic ignored "-Wreserved-id-macro"
7647 cat config.h >>config.h.tmp
7648 cat <<EOF >>config.h.tmp
7651 #pragma clang diagnostic pop
7653 #endif // ifndef CCACHE_CONFIG_H
7655 mv config.h.tmp config.h
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: now build ccache by running make" >&5
7658 $as_echo "$as_me: now build ccache by running make" >&6;}